r15866 - htdocs/trunk - Tell gettext to serve translations in utf-8

Christian Stimming cstim at cvs.gnucash.org
Tue Apr 10 14:57:05 EDT 2007


Author: cstim
Date: 2007-04-10 14:57:04 -0400 (Tue, 10 Apr 2007)
New Revision: 15866
Trac: http://svn.gnucash.org/trac/changeset/15866

Modified:
   htdocs/trunk/lang.php
Log:
Tell gettext to serve translations in utf-8

Modified: htdocs/trunk/lang.php
===================================================================
--- htdocs/trunk/lang.php	2007-04-10 18:13:07 UTC (rev 15865)
+++ htdocs/trunk/lang.php	2007-04-10 18:57:04 UTC (rev 15866)
@@ -9,6 +9,7 @@
 $domain = "gnucash-htdocs";
 if (! isset($text_dir)) { $text_dir = $top_dir; }
 $dir_res = bindtextdomain($domain, $text_dir);
+bind_textdomain_codeset($domain, "UTF-8"); # serve pages in utf-8
 textdomain($domain);
 echo ("<!-- $lang , locale_res [$locale_res] , dir_res $dir_res -->\n");
 ?>



More information about the gnucash-changes mailing list