Commit Graph

11 Commits

Author SHA1 Message Date
Thierry Crozat
780e0fe490 DEVTOOLS: Add missing end of line in error messages for cp parser 2017-01-15 19:39:46 +00:00
Thierry Crozat
729264f116 I18N: Read language name preferably from custom 'X-Language-name' header
We have been abusing the 'Language' field to store the language name
that appears in the GUI for a translation. But this field is officially
supposed to store the language code, and most tools that edit po file
set it automatically. This has caused the language being changed by
mistake in the paste.

There is a provision for custom fields with a name starting with 'X-'
though. So Now, if defined, it will use the custom 'X-Language-name'
field, and fall back to 'Language' in case that custom field is not defined.
This should prevent the language being lost when not careful while
editing the translation.
2016-11-08 02:21:16 +00:00
Johannes Schickel
84ac8fa735 DEVTOOLS: A few formatting fixes. 2015-12-12 06:54:58 +01:00
Ben Castricum
235f299db5 I18N: Fix missing translation entries
The last translation entry of a .po file was not properly handled.
2014-11-29 13:40:24 +00:00
Johannes Schickel
e96900aec3 DEVTOOLS: Make GPL headers consistent in themselves. 2014-02-18 02:39:33 +01:00
Eugene Sandulenko
ca5804a253 DEVTOOLS: Make Coverity happy.
This is mainly due to unhandled clang __has_featrure() buit-in.
I do not like this hack, but Coverity proved to be a very good tool for us.
2013-09-27 12:28:25 +03:00
Christoph Mallon
4ed136a6c1 DEVTOOLS: Print error message to stderr, not stdout. 2012-03-17 23:00:57 +01:00
Christoph Mallon
b520b5db69 JANITORIAL: Simplify stripLine().
Simply use pointers to the source and destination chars instead of multiple indices.
2012-03-17 23:00:57 +01:00
Thierry Crozat
334989f146 DEVTOOLS: Fix parsing of codepage file path
When the path does not contains a path separator (/ or \) the first
character of charset was skipped.
2012-03-11 13:21:41 +00: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
Max Horn
6cf1de87ac DEVTOOLS: Renamed 'tools' directory to 'devtools' 2011-04-09 23:47:35 +02:00