Author: sveinung
Date: Thu Oct 22 11:07:01 2015
New Revision: 30157

URL: http://svn.gna.org/viewcvs/freeciv?rev=30157&view=rev
Log:
i18n: the Freeciv source files are UTF-8

The --from-code option was introduced in gettext version 0.12. Use it to
make gettext aware that the Freeciv input source files are encoded using
UTF-8. This makes it safe, as far as gettext is concerned, to use non ASCII
UTF-8 characters in translation comments and msgids.

Note that nothing is being changed for the C compiler. There is still a risk
that non ASCII characters in string literals are reencoded during the
compilation. A C string literal msgid should therefore avoid using non ASCII
UTF-8 characters.

See patch #6451

Modified:
    trunk/configure.ac

Modified: trunk/configure.ac
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/configure.ac?rev=30157&r1=30156&r2=30157&view=diff
==============================================================================
--- trunk/configure.ac  (original)
+++ trunk/configure.ac  Thu Oct 22 11:07:01 2015
@@ -534,6 +534,7 @@
 AM_XGETTEXT_OPTION([--language=C])
 AM_XGETTEXT_OPTION([--escape])
 AM_XGETTEXT_OPTION([--add-comments="TRANS:"])
+AM_XGETTEXT_OPTION([--from-code=UTF-8])
 
 PKG_PROG_PKG_CONFIG
 if test "x$PKG_CONFIG" = "x" ; then


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to