5e39b717aa
Fix compilation with ICU 61
...
Initial patch by: elexis
Reviewed By: mapkoc, elexis
Fixes : #5114
Differential Revision: https://code.wildfiregames.com/D1436
This was SVN commit r21688.
2018-04-10 18:13:32 +00:00
09e974e1cb
Bump year number of files changed this year in the license headers.
...
This was SVN commit r19503.
2017-05-01 14:28:22 +00:00
a74fcdcb35
Durations over 1 hour aren't displayed correctly
...
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D44
refs #4418 , #3350
This was SVN commit r19180.
2017-01-28 10:59:53 +00:00
417c84870c
Actually remove trailing tabs from source/.
...
This was SVN commit r18991.
2016-11-23 14:09:58 +00:00
6149dd3841
Actually remove trailing whitespace for non-header files as well.
...
This was SVN commit r18989.
2016-11-23 13:02:58 +00:00
a3c3ca79cf
Save the config file even it does not exist, patch by Vladislav Belov, fixes #4146
...
This was SVN commit r18960.
2016-11-18 18:06:01 +00:00
c92e74138a
Use the local timezone when localizing UTC timestamps. Patch by Imarok, fixes #3350 , refs #2938 .
...
Thus show the correct time in the lobby, savegame and replay menu.
This was SVN commit r18725.
2016-09-15 13:16:48 +00:00
e7df8edc7d
Mark method const.
...
This was SVN commit r18619.
2016-08-21 20:35:06 +00:00
43f358563c
when saving an option to file, write only that value and not all the content of the user configDB, refs #3737
...
This was SVN commit r17738.
2016-02-07 11:31:23 +00:00
540cf75794
L10n code cleanup.
...
This was SVN commit r16892.
2015-07-29 23:44:05 +00:00
e02d7ad949
Automatically replace %hs/%ls with %s in CLogger format strings.
...
Everything is char* now, so we don't need to mess around with different
string types.
Done with:
ag -ls 'LOG(MESSAGE|MESSAGERENDER|WARNING|ERROR)' source | xargs perl
-pi -e'1 while
s/(LOG(MESSAGE|MESSAGERENDER|WARNING|ERROR).*)%[hl]s/$1%s/g'
This was SVN commit r16187.
2015-01-22 20:36:24 +00:00
38a8e2e0d6
Automatically convert most path.string().c_str() to path.string8()
...
Done with:
ag -l 'LOG.*string\(\).c_str\(\)' source | xargs perl -pi -e'1 while
s/(LOG.*string)\(\)\.c_str\(\)/${1}8()/g'
This was SVN commit r16186.
2015-01-22 20:35:17 +00:00
49e2ecea63
Automatically convert all CLogger format strings from wchar_t* to char*.
...
Done with:
ag -ls 'LOG(MESSAGE|MESSAGERENDER|WARNING|ERROR)' source | xargs sed
-i 's/LOG\(MESSAGE\|MESSAGERENDER\|WARNING\|ERROR\)(L/LOG\1(/g'
This was SVN commit r16183.
2015-01-22 20:31:30 +00:00
aeb18239c3
Update tinygettext to upstream commit ca0f3ff640. Refs #2522 .
...
Keeps our addition of precompiled.h (fd3d335265
), win32/dirent,
4c9d99ff68
, de6823d23f
, and 8fc14655b5
.
This was SVN commit r16168.
2015-01-21 20:37:37 +00:00
a9c6b7080a
Fixes intermittent error messages caused by uninitialized variable
...
This was SVN commit r16049.
2014-12-14 17:43:40 +00:00
eb8a6c9427
Explictly use GMT when displaying a localized time that is not a date. Patch by lafferjm. Fixes #2938 .
...
Also make some parameters const references.
This was SVN commit r16037.
2014-12-12 01:11:00 +00:00
9407dbe45e
Remove useless parameter from CFG_GET_VALUE.
...
This was SVN commit r15984.
2014-11-17 23:29:49 +00:00
e108b162b6
Add hotloading for translation files. Fixes #2915 .
...
This was SVN commit r15947.
2014-11-09 16:58:14 +00:00
18ab827886
Change L10n code to use ps/Singleton, so that we can recreate it.
...
This allows for adding locales in mods.
This was SVN commit r15874.
2014-10-15 16:04:37 +00:00
c37a8cafc3
Fixes a few building warnings and convention issues from 19ca1e3ebf
...
This was SVN commit r15128.
2014-05-07 23:33:21 +00:00
19ca1e3ebf
Fix locale verification to also allow ICU locales without data, but still don't allow bogus locales. Patch by Yves. Fixes #2533 .
...
This was SVN commit r15122.
2014-05-07 08:14:57 +00:00
2b192a4fb5
Do not call Translate() on empty lines
...
Reported by Yves at Github:
https://github.com/leper/0ad/issues/11
This was SVN commit r15003.
2014-04-26 16:05:41 +00:00
8fea36cdd0
Made tinygettext’s debug output optional
...
You can now enable tinygettext’s output from the user.cfg file
(tinygettext.debug).
This enhancement also solved a warning due to the previous workaround,
which was
to uncomment the output line to avoid the debug messages.
This issue was reported by Yves at Github:
https://github.com/leper/0ad/issues/10
This was SVN commit r15002.
2014-04-26 15:32:18 +00:00
c82544be9f
Use an early return in L10n::GetDictionaryLocale()
...
Suggested by l777 on the IRC.
This was SVN commit r14999.
2014-04-26 12:29:01 +00:00
d6e37321d5
Removed an obsolete TODO comment in the L10n class implementation
...
This was SVN commit r14997.
2014-04-26 12:11:08 +00:00
9b9a96382c
Fix boolean type
...
This was SVN commit r14971.
2014-04-22 12:52:49 +00:00
21362de6ac
Add workaround for testing long strings with the separate po. ICU wouldn't accept a non-existing language.
...
This was SVN commit r14969.
2014-04-22 11:38:15 +00:00
d6db5a466d
Internationalization of the C++ side
...
Provides the logic to detect the system language, load translations, and
use
loaded translations both in the C++ and the JavaScript side.
This patch includes code by Yves, sanderd17, leper, historic_bruno and
Gallaecio. It’s worth noting that Yves and historic_bruno were also the
main
contributors behind the changes in 1b3261b8f4
as well.
This was SVN commit r14953.
2014-04-20 20:03:57 +00:00