15 Commits

Author SHA1 Message Date
Ignacio R. Morelle
a126563da1 i18n: Use ctor initialization list instead of statement in ctor body
Found by cppcheck.
2015-07-06 21:54:50 -03:00
Ignacio R. Morelle
57ae45387a New Year copyright update 2015-01-01 19:07:35 -03:00
gfgtdf
e99202c580 update the locale lazily
Updating it whenever we add a new messages path or domain could have a
bad performance.
2014-12-14 20:12:42 +01:00
gfgtdf
c96db7a17e dont add gettext paths/domains twice
having the same path multiple times in a boost locale generator slows
down generate() significantly.
2014-12-14 20:12:40 +01:00
gfgtdf
ae86186db7 add utf8 to default locale
there were some occurences reported in the forum that the old code assumed ascii encoding in some cases.
2014-12-11 23:10:09 +01:00
gfgtdf
d9352503b2 fix indention 2014-12-10 00:46:13 +01:00
gfgtdf
f8dd7d6c87 catch boost locale conversion_error
and add some more debug info in boost locale.
2014-12-10 00:31:06 +01:00
gfgtdf
9f798cb4f1 add debug info. 2014-12-10 00:31:03 +01:00
gfgtdf
b6f916adf1 maybe fix default langauge 2014-11-08 23:28:10 +01:00
gfgtdf
91b845d0a5 use LOG_G instead of std::cerr 2014-10-26 02:38:40 +02:00
Chris Beck
bdd109ebcb Fixup boost filesystem options for cmake, scons
The option should control the compilation, in wesnoth-core, of
filesystem_boost.cpp, and gettext_boost.cpp, vs. the old versions.

Using the new code is now the default option, you must explicitly
deactivate with both cmake and scons to get the old stuff back.
2014-10-25 18:53:43 -04:00
gfgtdf
4fc2368229 fix gettext_boost.cpp 2014-10-25 22:03:04 +02:00
gfgtdf
588c008890 fix comilation
move LC_MESSAGES out of wesnoth.cpp and game_config_manager.cpp
2014-10-25 19:02:12 +02:00
gfgtdf
9c799b9a47 fix compilation
it seems like sometimes libintl.h is needed for LC_MESSAGES so we need
to move that last code that uses LV_MESSAGES out of language.cpp into
gettext.cpp
2014-10-25 19:02:10 +02:00
gfgtdf
c4e2c4bf51 use boost locale gettext
This includuces an alternative implementation of gettext.cpp. Libintl gettext doesn't seem to support utf8 filenames on windows. Also it causes problems when changign the language on my msvc build. That why i want to use boost locale gettext at least for our windows builds.
This requires boost locale which is introduced in boost 1.48 (That's why i still hesitate to make it the default on all systems).
2014-10-25 18:56:45 +02:00