ShortinstructionsfortranslationtestingMakesurethelocalesyouareabouttotestarecorrectlyconfiguredinyourserverin/etc/ n(inDebianyoucandothisbyexecutingdpkg-reconfigurelocales)。
Forexample,ifyouaregoingtotesttheEnglishfile,checkthereisanaliasforen_US。Tokeepittidy,makeacopyoftheoriginalmeneame。pofilewhichislocatedinlibs/languagesfoldertothelib/languages/enfolder(forEnglish)。
Youcantranslatethere。Youjusthavetoaddthetargettexttothemsgstrline。 (globalconfiguration)ortothedomain_ p(localcofiguration,higherprioritythanglobal)。
putenv('LANGUAGE=en_US');setlocale(LC_ALL,'en_US');bindtextdomain('meneame',mnminclude。'/languages');textdomain('meneame');Nowyoushouldseethemessagesinthetargetlanguage。
(inDebian,italreadyis)checkthealiasarein/etc/ fileintheLC_MESSAGESdelibs/languages/ensubfolder。