mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
Internationalization
- Fixed the mechanism used to select translations (thanks to Fidel Mato).
This commit is contained in:
parent
9fe9f96f8f
commit
879ecf9505
6 changed files with 40 additions and 24 deletions
11
src/i18n.h
11
src/i18n.h
|
@ -44,14 +44,17 @@
|
|||
#include <cmake.h>
|
||||
|
||||
// Translators:
|
||||
// Duplicate these three lines, changing "EN_US" and "en-US" to the new
|
||||
// localization.
|
||||
// Add more, as appropriate.
|
||||
#if PACKAGE_LANGUAGE == LANGUAGE_EN_US
|
||||
#include <en-US.h>
|
||||
#elif PACKAGE_LANGUAGE == LANGUAGE_ES_ES
|
||||
#include <es-ES.h>
|
||||
#elif PACKAGE_LANGUAGE == LANGUAGE_DE_DE
|
||||
#include <de-DE.h>
|
||||
#elif PACKAGE_LANGUAGE == LANGUAGE_FR_FR
|
||||
#include <fr-FR.h>
|
||||
#endif
|
||||
|
||||
// Add other languages here.
|
||||
|
||||
#define CCOLOR_BOLD 500
|
||||
#define CCOLOR_UNDERLINE 501
|
||||
#define CCOLOR_ON 502
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue