Commit graph

48 commits

Author SHA1 Message Date
Steve Cotton
5a1a8663a1 Allow translatable strings to display carets to the user (#4359)
Treat "editor^The overlays '^Uf' and '^Ufi' are deprecated because ..."
as a having translation hint "editor", and show "The overlays ..." to the
user. This disallows using carets inside the translation hint itself.

Code already reviewed in the discussion in #4359.
2019-10-06 23:55:38 +02:00
Wedge009
fececabd67 Add a note regarding imbue() and hard-coded locales.
[ci skip]
2019-09-16 16:53:36 +10:00
Wedge009
117f92edbc Disable use of std::put_time in strftime()
Fixes #1709
2019-09-16 16:25:34 +10:00
Charles Dang
4a3be684f4 Removed trailing tabs and whitespaces from C++ source
[ci skip]

I ran the same command from 9b7b1751fd.

Excludes:
* lua/
* spirit_po/
2019-08-04 22:31:10 +11:00
Vlad Drozdov
2303416fa5 Added the mutex for the ci_search function 2019-01-27 23:44:22 +11:00
Vlad Drozdov
b5c48b1270 Campaign selection filter : сhanges for review. 2019-01-27 23:44:21 +11:00
Vlad Drozdov
0f00da0995 Campaign selection filter : search by separate words and filter focuse by default 2019-01-27 23:44:19 +11:00
Vlad Drozdov
397b8e1f3b Campaign selection: Add search functionality 2019-01-27 23:44:19 +11:00
Martin Hrubý (hrubymar10)
674fda85b7 Migrate links to https if available - Fwd c18537edc0
(cherry-picked from commit bc4d22dc72)
2018-10-07 03:23:36 +00:00
Charles Dang
3b89e7f7e9 Rename gettext_boost.cpp to gettext.cpp
Since there isn't another version anymore.

(cherry-picked from commit e0beff6615)
2018-10-07 03:21:16 +00:00
Celtic Minstrel
dc24fa16f7 Remove option to link libintl instead of Boost.Locale 2016-11-18 12:09:56 -05:00
Celtic Minstrel
3ac7f8d970 NULL -> nullptr
A few cases of NULL were missed, since changing them led to errors
(Mainly instances where it was passed to a boost::function)
2016-03-31 00:42:38 -04:00
Chris Beck
ba51524f6e update copyright to year 2016
using this shell script:

find src -type f -print0 | xargs -0 sed -i "s|Copyright (C) \([[:digit:]]*\)\([ ]*\)-\([ ]*\)2015|Copyright (C) \1\2-\32016|g"
2016-01-02 23:59:31 -05:00
Elvish_Hunter
9b7b1751fd Removed trailing tabs and whitespaces from C++ source
I used this command line: find <source directory> -name \*.\[ch\]pp -print0 | xargs -0 sed -i 's/[[:blank:]]*$//'
2015-12-21 20:39:46 +01:00
Ignacio R. Morelle
85cf364ea0 i18n: Skip and warn about textdomain names with a slash (bug #23839)
boost::locale::generator::add_messages_domain() interprets the slash
specially, interpreting everything after it as an encoding name.

It's not clear to me why providing a textdomain with an erroneous name
like this causes Boost.Locale to throw a boost::locale::conv exception
(invalid_charset_error, apparently) when handling t_strings bound to
completely different textdomain, but if we can avoid the issue
altogether then that's good enough.

Made the legacy implementation skip and warn about these names too even
if bindtextdomain(3) says nothing about slashes having a meaning.
2015-08-31 21:58:57 -03:00
Ignacio R. Morelle
1bd91e75f5 i18n/legacy: Fix typo
No functional changes.
2015-08-31 21:33:46 -03:00
Ignacio R. Morelle
57ae45387a New Year copyright update 2015-01-01 19:07:35 -03:00
Chris Beck
ab87bb391f fixup OS X compilation (for BFS-disabled) by reapply bugfix #16694
See irclogs
http://www.wesnoth.org/irclogs/2014/11/%23wesnoth-dev.2014-11-08.log
2014-11-08 18:04:58 -05: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
gfgtdf
9742c9cb54 make gettext.hpp return std::string.
in 99% of cases the returned value was moved into a std::string anyway. We do this becasue the boost gettext functions also return std::string so it makes replacing them easier.
2014-10-25 18:54:03 +02:00
gfgtdf
c5cf699210 reorder gettext.hpp
We want to put all dependencies of linintl.h to getttext.cpp so we can easily replace gettext/libintl with boost locale gettext by replacing that file.
2014-10-25 18:52:26 +02:00
Ignacio R. Morelle
a4f47a63c7 New Year copyright update 2014-01-01 02:08:52 -03:00
Eric S. Raymond
043c4f9fd3 Remove $Id$ cookies. 2013-03-26 21:41:37 -04:00
Mark de Wever
43b71f2ff0 New year copyright update. 2013-01-01 09:22:03 +00:00
Ignacio R. Morelle
6ca69b2df5 New year copyright update 2012-01-07 02:35:17 +00:00
Mark de Wever
ecbabea838 New year copyright update. 2011-01-01 15:57:50 +00:00
Guillaume Melquiond
eeb047de55 Fixed file headers so that they match the content of the COPYING file. 2010-09-01 21:12:38 +00:00
Mark de Wever
92f5f92ce5 New year copyright update. 2010-01-01 13:16:49 +00:00
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +00:00
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +00:00
Mark de Wever
3fcdae4768 More Sun Studio fixes (patch #911). 2008-01-01 21:29:15 +00:00
Mark de Wever
080eb69f60 Updated the headers to state GPL 2+ and a few changelog cleanups. 2007-08-15 13:41:56 +00:00
Mark de Wever
bb01934b85 A rather large update which updates the copyright info
* Wesnoth is distributed under the terms of the GPL version 2, made
  that more explicit

* updated the copyright range to 2007

* updated Dave's email adress
2007-07-21 07:28:04 +00:00
David Philippi
4852283ab3 applied patch from bug #673 2007-02-07 17:34:45 +00:00
András Salamon
cc1b0aecf0 add copyright notices (please change as appropriate), and deDOSify 2005-07-20 08:22:37 +00:00
Yann Dirson
6490ba3b4f moved vegettext() to string_utils,
since it is a wrapper around a higher-level function in there
2005-04-12 22:03:42 +00:00
Guillaume Melquiond
ee891ffdfc Force codeset rebinding everytime a string has to been translated.
Otherwise binary serialized strings may not have a codeset-binded
textdomain, since they don't go through the parser.
2005-03-28 10:04:21 +00:00
Philippe Plantier
ba195ecd8a [[Attack some problems with data serialization in saves]]
* Made serialized data be saved as untranslated. To achieve this, added the
  t_string class, which encapsulates a translatable string.

* Completely rewrote the (text) WML parser, making it use a tokenizer / parser
  architecture. The parser is now much more strict and validates a WML grammar.

  - Change to the WML syntax: pluses are now ignored, spaces are now forbidden
    in WML keys

* Rewrote the way the variables are interpolated. There is no more default
  interpolation, however, the vconfig class was added, which provides a
  variable-interpolating proxy to config objects.

* There is still an important known bug: this is impossible to load textmode
  save games now, because the statistics module saves some WML with spaces in
  keys, which the parser refuses. I am commiting anyway to respect the string
  freeze; the fix for this bug will come tomorrow

Hoping I do not break everything...
2005-03-27 23:06:17 +00:00
Guillaume Melquiond
2ab05941b5 Completely remove string functions from config.cpp. 2005-02-20 21:45:22 +00:00
Guillaume Melquiond
be62da89b1 Because gettext is allowed to do as it pleases...
...when it is fed with an empty string, let's workaround it by adding
a new function.
2004-12-05 18:24:44 +00:00
Dave White
c661b3043a reduced warnings to 0 on VC++ 2004-11-18 04:08:33 +00:00
Dave White
75ca9d4b9e fixed bug in vgettext 2004-10-30 16:33:48 +00:00
Yann Dirson
7861533d0b added support for using C++ files using a different domain;
new dsgettext function
2004-09-02 15:19:01 +00:00
Isaac Clerencia Perez
bad800944a Added support for variables in string translation, basically:
string_map i18n_symbols;
	i18n_symbols["login"] = preferences::login();
	name_entry_.assign(new gui::textbox(disp_,width-20,
		vgettext("$login's game", i18n_symbols)));

Modified po/Makevars to found vgettext translated strings
2004-08-27 11:13:38 +00:00
Yann Dirson
84d908dd18 switch from | to ^ as prefix separator for translatable strings 2004-08-21 22:03:28 +00:00
Dave White
69010899d6 split some files out from 'language' to 'gettext' 2004-08-21 14:19:38 +00:00