Ingo Ruhnke
|
43245bbe1b
Put file local functions into anonymous namespace
|
5 years ago |
Ingo Ruhnke
|
328f015d0b
Merge pull request #14 from leper/collision_logging
|
8 years ago |
leper
|
7d848c9d94
Log collisions for plural translations without context.
|
8 years ago |
leper
|
1ec441370f
Make collision logging for plurals actually list all values.
|
8 years ago |
leper
|
91f6e18239
Only log collisions if they actually occured.
|
8 years ago |
leper
|
5df4ae3ecf
Only build reference after verifying it is valid.
|
8 years ago |
leper
|
9217df09e6
Mark some functions as const.
|
8 years ago |
Ingo Ruhnke
|
0e4adde0b6
Replaced GPL2+ with zlib license
|
9 years ago |
leper
|
cbda8cacd5
Only warn about actual collisions.
|
9 years ago |
Ingo Ruhnke
|
f71a8e5e84
Trimmed trailing whitespace and removed page break characters
|
9 years ago |
Ingo Ruhnke
|
4601f5c111
Added Dictionary::addFallback(Dictionary* fallback)
|
9 years ago |
Ingo Ruhnke
|
f1427ca388
Merge pull request #2 from leper/master
|
9 years ago |
Ingo Ruhnke
|
2cf95f054b
Removed trailing whitespace
|
9 years ago |
leper
|
0dc17192d2
Handle missing plural forms gracefully.
|
9 years ago |
Ingo Ruhnke
|
ae5dcfaf35
Changed the directory structure to be more include friendly and more resilient to naming conflicts
|
9 years ago |
Mathnerd314
|
4c96834281
* CMake building works; just make sure it finds iconv
|
14 years ago |
Ingo Ruhnke
|
32e371d3ff
Made the code '-ansi', '-pedantic', '-Wall', '-Werror', '-Wnon-virtual-dtor', '-Weffc++' clean
|
15 years ago |
Ingo Ruhnke
|
99f69612fe
Turned PluralForms into a class, some better error checking for Plural-Forms
|
15 years ago |
Ingo Ruhnke
|
968a3490dc
Moved Language out of Dictionary and replaced it by Plural-Forms
|
15 years ago |
Ingo Ruhnke
|
1faa124e60
Removed ability to create Dictionary without giving a Language, since we need a language to resolv plural forms. Merged singular and plural forms into a single list in Dictionary to behave more like gettext. Replaced std::map with std::vector to lookup plural forms.
|
15 years ago |
Ingo Ruhnke
|
908c4f8dc1
Added handling of message context, found issue with plural forms while doing so
|
15 years ago |
Ingo Ruhnke
|
dfda466957
Some work on msgctxt, just API, no implementation
|
15 years ago |
Ingo Ruhnke
|
bbf1bba4cc
Renamed plural version of translate to translate_plural, added translate_ctx() and translate_ctx_plural(), just placeholder implementations
|
15 years ago |
Ingo Ruhnke
|
3dfa7260e1
Added lightwight wrapper class around LanguageDef
|
15 years ago |
Ingo Ruhnke
|
3a1d43a5fa
Renamed convert to iconv_convert, removed Dictionary::set_charset and ::set_language, now handled via constructor
|
15 years ago |
Ingo Ruhnke
|
44ea04b99a
Added short description to header comment
|
15 years ago |
Ingo Ruhnke
|
db97ee5d52
Use Language typedef instead of std::string to hold language
|
15 years ago |
Ingo Ruhnke
|
1b6481c9ac
Branched of and quickly hacked together a version that compiles outside of SuperTux
|
15 years ago |