2012-02-27 20:19
浏览 49


I did this so far

$locale = 'fr_FR';
$domain = 'bla';
$path = 'C:\wamp\www\site/lang';

setlocale(LC_ALL, $locale);
bindtextdomain($domain, $path);
bind_textdomain_codeset($domain, 'UTF-8');

(bintextdomain returns C:\wamp\www\site\lang)

But I don't get my messages translated.

Using echo dcgettext('bla', $english_message, 1); and I get the original message shown, not the translation.

What is the "category" argument for? I just passed 1 because I don't know what is supposed to represent...

图片转代码服务由CSDN问答提供 功能建议

到目前为止我这样做了</ p>

  $ locale ='fr_FR  '; 
 $ domain ='bla'; 
 $ path ='C:\ wamp \ www \ site / lang'; 
putenv(“LC_ALL = {$ locale}”); 
setlocale(LC_ALL,$  locale); 
bindtextdomain($ domain,$ path); 
textindmain($ domain); 
bind_textdomain_codeset($ domain,'UTF-8'); 
 </ code> </ pre> 

(bintextdomain返回 C:\ wamp \ www \ site \ lang </ code>)</ p>

但我没有翻译我的消息。</ p>

使用 echo dcgettext('bla',$ english_message,1); </ code>,我得到原始信息,而不是翻译。</ p>

什么是 “类别”的论点是? 我刚刚通过 1 </ code>,因为我不知道该代表什么... </ p> </ div>

1条回答 默认 最新

相关推荐 更多相似问题