Commit Graph

24 Commits

Author SHA1 Message Date
Eugene Sandulenko
409ebe5c9b I18N: Change scummvm-devel mailing list for POT file generation 2016-10-04 13:55:28 +02:00
Johannes Schickel
1d80955545 I18N: Always search engine files in lexical order. 2016-01-25 20:36:05 +01:00
Johannes Schickel
378387c903 I18N: Move specification of engine specific files to enginedir/POTFILES.
This allows to keep the engines to specfiy the files for translation close to
the engine sources itself.

Thanks to criezy for his suggestion on this approach.
2013-08-12 17:54:31 +02:00
Johannes Schickel
f63df3bf7b GRAPHICS/GUI: Implement charset mapping for TTF fonts.
The charsets used by the translations now need to have a "$(name).cp" file,
which contains an charset index => unicode mapping. Otherwise
create_translations will fail.
2012-01-29 16:26:20 +01:00
Eugene Sandulenko
fcf60c1643 I18N: Added option for adding translation string comments 2011-08-20 14:18:24 +01:00
Max Horn
6cf1de87ac DEVTOOLS: Renamed 'tools' directory to 'devtools' 2011-04-09 23:47:35 +02:00
Thierry Crozat
c2d20b90d8 BUILD: remove obsolete rule for translation support 2011-03-22 22:20:18 +00:00
Jordi Vilalta Prat
8388e0dfea JANITORAL: Clean trailing whitespaces.
svn-id: r53160
2010-10-12 02:18:11 +00:00
Jordi Vilalta Prat
f1690a2b75 I18N: Fix building translations.dat outside the source tree
svn-id: r52639
2010-09-08 17:05:55 +00:00
Thierry Crozat
3c7a068682 I18N: Update translation template and all translations.
svn-id: r52462
2010-08-30 22:27:51 +00:00
Thierry Crozat
bc821136fd i18n: Add support for context in translations.
This change means there can now be different translations for the same
english string depending on the context. It is based on gettext msgctxt feature.
There is a new macro _c(msg, ctxt) that should be used instead of _(msg) in
the source code when we want to add a context to the message. For the
moment I have added contexts to only one message ("None") so that I could
test the changes. Context could be added also to get shorter translations when
GUI is in 1x mode.

I have also added back the fuzzy option to msmerge since it is useful when
adding contexts to populate the translations for the new contexts.

svn-id: r52308
2010-08-23 19:45:14 +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
Thierry Crozat
5dae3780a4 i18n: Do not use fuzzy matching when updating po files.
When updating the template pot file from source code and then
merging it with existing translations po file, it was trying to translate
automatically new string using a fuzzy matching. I have never seen
it work, so I am disabling the option. I prefer to have an untranslated
string rather than a wrongly translated string. And after discussing
with another translator it seems I am not the only one.

svn-id: r52233
2010-08-20 17:14:46 +00:00
Eugene Sandulenko
040dfff8ce i18n: Move translations to standalone file. Patch #3044975
svn-id: r52208
2010-08-19 11:46:55 +00:00
Johannes Schickel
58fcda82f3 Remove support for translation of console messages.
In recent discussions on -devel it turned out, that this
feature is rather superfluous and instead we should rather
implement a proper error reporting in our GUI.

I also removed the dependency on iconv along with this.

svn-id: r50335
2010-06-26 18:07:41 +00:00
Johannes Schickel
78068df908 Whoops copy&paste mistake...
svn-id: r50052
2010-06-19 17:08:17 +00:00
Johannes Schickel
3b6fac3703 Comment out rule for common/messages.cpp for now and make update-translations update common/messages.cpp directly.
svn-id: r50051
2010-06-19 17:06:37 +00:00
Johannes Schickel
4d3d63223b Cleanup.
svn-id: r50003
2010-06-18 02:29:21 +00:00
Johannes Schickel
e3c8624510 Explcitily use "perl" from the PATH, this fixes translation updating on systems, where perl is not installed in /usr/bin/perl.
svn-id: r49992
2010-06-18 02:08:21 +00:00
Johannes Schickel
e347a6856e Do not rebuild common/messages.cpp automatically when a translation changes, but require the user to do "make update-translations".
This should be helpful for building on a system without perl.

svn-id: r49991
2010-06-18 02:08:00 +00:00
Johannes Schickel
1028e8e0c8 Yet another fix for "update-translations" in out of soucre directory builds. (Whoops...)
svn-id: r49944
2010-06-17 19:14:40 +00:00
Johannes Schickel
e7305339ab Fix out of updatepot and update-translations for source builds.
svn-id: r49942
2010-06-17 19:07:45 +00:00
Willem Jan Palenstijn
7c7054dbd1 Remove unnecessary svn:executable properties
svn-id: r49870
2010-06-15 17:14:38 +00:00
Eugene Sandulenko
859212df25 Implement translation support for ScummVM GUI.
Based on patch #2903830: "Updated Translation Prototype" by alexbevi
which in turn is based on patch #1739965 by jvprat.

Currently it builds all translations right into ScummVM. Once the
feature will be accepted more widely, i.e. more translations will
pop up, it will be trivial to move translation strings to external
file.

Finished translation: Russian
Unfinished translation: Hungarian

Things which are nice to do:
 - Language code -> language mapping for more user friendness
 - Specifying fonts to be used with language
 - Updating of interface language without restart. It will require
   moving of much code to reflowLayout() methods for each dialog

The .po files must be in single byte encodings. I.e. no support
for Unicode.

svn-id: r49759
2010-06-15 10:44:51 +00:00