wmitime: Improve locale support.
commitcc801880a5be8902af715ff1722981a4bc35bf6d
authorDoug Torrance <dtorrance@monmouthcollege.edu>
Sat, 20 Dec 2014 07:57:04 +0000 (20 01:57 -0600)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 20 Dec 2014 09:55:06 +0000 (20 09:55 +0000)
tree580c6ccbac39871c6d0deee294be68fe1597003b
parent0fbe3d839a0cc147dc8c72633c85910c7619d0ee
wmitime: Improve locale support.

Previously, wmitime only had support for English, French, and (in Debian
only) Hungarian.  In addition, the choice was made at compile time.

This patch adds run-time support for any language using the Latin alphabet.
The locale is determined by the user's environment or may be specified on
the command line with the "-l" option.  Note that users whose environment
specifies a non-Latin locale may wish to use, e.g., "-l C", as otherwise
no date will appear.

Note that, for simplicity, the month and day are now displayed as "01 JAN"
as opposed to "JAN 01".  (Previously, the former format was used for English
and the latter for French.)
wmitime/Makefile
wmitime/french.h [deleted file]
wmitime/language.h [deleted file]
wmitime/wmitime.c