Commit Graph

7 Commits

Author SHA1 Message Date
Jordi Vilalta Prat
8388e0dfea JANITORAL: Clean trailing whitespaces.
svn-id: r53160
2010-10-12 02:18:11 +00:00
Thierry Crozat
b77434c415 I18N: Fix create_translation tool when string contain special characters
The english or translated strings in the PO file might have representations of special characters (e.g. '\n') or protected characters (e.g. '\"') visible as
in the source code. However at run time ScummVM expects them to be
the special characters and not their visible representations. Now the
create_translations tool does the substitution if it finds such characters.

svn-id: r52739
2010-09-15 23:12:29 +00:00
Jordi Vilalta Prat
b92c329fa5 I18N: Don't use fuzzy translations.
- Tweaked create_translations to ignore fuzzy translations.
- Fixed some formatting and removed extra whitespaces.

svn-id: r52638
2010-09-08 17:01:21 +00:00
Thierry Crozat
fc05e8a4ff I18N: Modify create-translations tool to remove duplicate translations
The TranslationManager in ScummVM will pick up the translation associated
to no context if present and if a translation could not be found for a specific
context. Based on this, the create_translations tool will now remove the
translation associated to a specific context if the same message has the
same translation associated to no context. This generate a smaller
translation.dat file, and this should also slightly improve performances (less
strings to load from the file and smaller list in which to look for a translated
message).

svn-id: r52459
2010-08-30 22:10:32 +00:00
Andre Heider
2506560bda TOOLS: const correctness to fix compilation.
svn-id: r52394
2010-08-25 19:41:59 +00:00
Thierry Crozat
083faee7c1 i18n: Formatting fixes.
svn-id: r52285
2010-08-22 19:47:07 +00:00
Thierry Crozat
c89462c2a6 i18n: Implement po file parsing in create_translations tool
Until now the parsing was done by the po2c perl script, which
generated a messages.h file. The create_translations executable
had then to be recompiled before being executed. This commit
removes the po2c perl script. The parsing is now directly done by
the create_translations tool.

The parsing has also been extended to support the msgctxt strings.
This is not dumped yet in translations.dat but will be once I have
finished implementing context support for the translations.

svn-id: r52284
2010-08-22 18:49:19 +00:00