PHP gettext() in Norwegian

。_饼干妹妹 提交于 2019-12-20 06:08:40

问题


I'm using PHP's gettext() for simply transform a website to an other language. The solution worked fine (English/Hungarian) until now because i need to add a Norwegian translation to a new site.

When i set the Norwegian locale with setlocale(LC_ALL, "nb_NO.ISO8859-1"); gettext() only returns the base string not the translated one.

Is this related with my operating systems' installed locales (en_US.UTF-8, hu_HU.UTF-8) so i need to add the Norwegian one too or something else causing this?

Thanks for your help, fabrik


回答1:


Yes, IIRC, you need to have locale on the system to make it work.



来源:https://stackoverflow.com/questions/1431354/php-gettext-in-norwegian

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!