aboutsummaryrefslogtreecommitdiff
path: root/src/gettext.h
AgeCommit message (Collapse)Author
2021-12-05Fix various code & correctness issues (#11815)sfan5
2021-11-01Localize error messages in mainmenu (#11495)Riceball LEE
Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-08-19Add fwgettext util functionrubenwardy
2018-04-09Fix segfault caused by wrong wgettext()sfan5
2018-04-09Fix for translating empty stringsminduser00
Fix for incorrect translation of empty strings In the key change menu, when a button key not have name an empty string is passed to gettext. The empty string is reserved for gettext to return de header of the .po file an this is shoved in the button
2017-08-17C++ modernize: Pragma once (#6264)Loïc Blot
* Migrate cpp headers to pragma once
2017-08-16Cleanup various headers to reduce compilation times (#6255)Loïc Blot
* Cleanup various headers to reduce compilation times
2016-08-21gettext.h: include <locale> before defining the gettext macro (#4452)kahrl
Fixes #4446: a syntax error that happens if something else (such as <iomanip> or <locale> in certain libstdc++ versions) includes <libintl.h> later, which contains a function declaration for gettext that gets mangled by the macro. See the added comment in gettext.h and the discussion in #4446/#4452 for details.
2015-10-24Fix compilation under MSVC and remove unnecessary conditional function prototypekwolekr
Thanks to SmallJoker for pointing this out.
2015-10-18Remove wstrgettextest31
Everywhere where wstrgettext was used, its output was converted back to utf8. As wstrgettext internally converts the return value from utf8 to wstring, it has been a waste. Remove the function, and use strgettext instead.
2015-10-15Clean up gettext initializationShadowNinja
2015-07-08Use UTF-8 instead of narrowest31
Use wide_to_utf8 and utf8_to_wide instead of wide_to_narrow and narrow_to_wide at almost all places. Only exceptions: test functions for narrow conversion, and chat, which is done in a separate commit.
2015-03-07Fix Android text bug (no text displaying)Craig Robbins
2015-02-12Fix gettext on MSVCBlockMen
2015-02-05Fix gettextShadowNinja
2015-02-05Reduce gettext wide/narrow and string/char* conversionsShadowNinja
2014-07-06Fix errors/warnings reported by valgrindsfan5
2014-04-19Use narrow_to_wide in gettext instead of os dependent conversion fctsapier
2013-11-18fix gettext compile issues under win32MetaDucky
2013-11-11Fix win32/msvc i18n (quite UGLY version, blame Microsoft)sapier
2013-08-04Fix formspec label issues in win builds (MSVC)BlockMen
2013-06-23Add support for IPv6proller
Two new configuration options are added: - "enable_ipv6" to enable/disable the overall use of IPv6 - "ipv6_server" to enable/disable the use of IPv6 sockets when running a server (when "enable_ipv6" is enabled)
2013-02-14Add Freetype supportIlya Zhuravlev
2012-03-11Clean up log messages everywherePerttu Ahola
2011-08-05fixed some error :/Constantin Wenger
2011-08-02Introduce wgettextGiuseppe Bilotta
All usages of gettext() are converted to wchars, so let's factor this into a single inline.
2011-07-31last fix was shit but this one works (tested)Constantin Wenger
2011-07-30fixe for msvc broke linuxConstantin Wenger
2011-07-30this fixes problem with msvc++ and should work on other systems and so on ↵Constantin Wenger
anyway.
2011-07-30fixed redefinitivon of gettext.h is included more than onceConstantin Wenger
2011-07-30set locales to C because en_US not installed on some systems, only UTF-8 ↵Constantin Wenger
version and en_US.UTF-8 does not work.
2011-07-24Read config from gettext.hGiuseppe Bilotta
Otherwise the USE_GETTEXT define might not be visible.
2011-07-24Sanitize GETTEXT usage macrosGiuseppe Bilotta
Now the user-level option is called ENABLE_GETTEXT, and USE_GETTEXT is only set to true if gettext was enabled and found. This simplifies all check to USE_GETTEXT only rather than the double checks for it being enabled and found.
2011-07-24Refactor gettext initGiuseppe Bilotta
Put the gettext init code in a macro and define it appropriately depending on whether gettext is actually available or not.
2011-07-23updated cmakerules to autodetect if gettext can be usedConstantin Wenger
fixed error if gettext is disabled
2011-07-21Make gettext optionalGiuseppe Bilotta
2011-07-20added gettext supportConstantin Wenger
german translation file and bashscript to update translations