Home >Backend Development >PHP Tutorial >How to use gettext to achieve internationalization in PHP?
When I set the value of the variable
$lang
tozh_CN
, the text corresponding to zh.CN.mo in thezh_CN
folder can be displayed normally, but when I change the value of$lang
toja_JP
oren_US
, the page will be output as is,But when I move the
ja_JP
under theja_JP.mo
folder to thezh_CN
folder and rename it tozh_CN.mo
, I set the value of the variable$lang
tozh_CN
and the Japanese text can be displayed normally. , why?
When I set the value of the variable
$lang
tozh_CN
, the text corresponding to zh.CN.mo in thezh_CN
folder can be displayed normally, but when I change the value of$lang
toja_JP
oren_US
, the page will be output as is,But when I move the
ja_JP
under theja_JP.mo
folder to thezh_CN
folder and rename it tozh_CN.mo
, I set the value of the variable$lang
tozh_CN
and the Japanese text can be displayed normally. , why?
The specific reason is unknown