Can't seem to add zh-cn and zh-tw as regions. - WPML

文章推薦指數: 80 %
投票人數:10人

Steps to duplicate the issue: Add Language > zh-cn as code, zh_CN as default Locale. Save. It would appear that zh-hans maps to zh_CN in the ... SkipNavigation ThisisthetechnicalsupportforumforWPML-themultilingualWordPressplugin. Everyonecanread,butonlyWPMLclientscanposthere.WPMLteamisreplyingontheforum6daysperweek,22hoursperday. Tagged: LanguageURL Relateddocumentation: LanguageURLOptions Thistopiccontains4replies,has2voices.LastupdatedbymatthewS-64years,6monthsago.Assignedsupportstaff:Joanna. Author Posts May23,2017at8:14pm #1283118 matthewS-6 Iamtryingto: Addthezh-cnandzh-twregionsasseparatelanguages URLof(my)websitewhereproblemappears: hiddenlinkbuttheerrorisinthebackend. Iexpectedtosee: Thelanguageaddedtothetable! Instead,Igot: DefaultLocalealreadyexists Stepstoduplicatetheissue: AddLanguage>zh-cnascode,zh_CNasdefaultLocale.Save. Itwouldappearthatzh-hansmapstozh_CNintheici_languagestable,andzh-hanttoTaiwan.Theproblemiswearesellingtoallthesemarketsandhavespecificlanguageforeachone...andwehavetherequirementofusingcountryspecificmarkers,notlanguagespecific. ShouldIchange(orremove)thezh-hantandzh-hansentriestosomethingelseinthedatabasesoIcanusedthezh_CNandzh_TWlocalesoristhereabetterway? May23,2017at8:15pm #1283119 matthewS-6 pleasecc:[email protected] May25,2017at3:30pm #1284687 matthewS-6 I'dliketoaddanupdatetothis.Ihavegoneinandchangedtheicl_langugagestabletochangezh-hansandzh-hantrecordstoblank,butIdon'tknowifthiswillcauseproblemsdowntheline.Isthistherecommendedcourseofactioninthiscase?Itseemslikeahack. Also,I'mcuriousonhowdefaultlocaleandlanguagetagareusedbyWPML?Understandingthisbetterwillhelpmemakeinformeddecisionsinthefuture. May31,2017at11:36am #1288257 Joanna Hello@matthews-6, I'msorrythatyouhadtowaitsolongfortheanswer.IfIunderstoodyoucorrectly,youwantedtocreatecustomlanguageswithzh_CNandzh_TWlocales.Indeed,weuseitmixedwithzh-hansandzh-hanttags.Itwillbechangedinthefuturesothelocalematchesthetagandthelanguagecode,aswellasWordPresslocalecodes. Fornow,editingthe*_icl_languagestableisthebestoption.Leavingitemptyshouldn'tcauseanyissueuntilyoudecidetouseoneofthepredefinedChineselanguages.However,theworst"issue"youcanhaveistheerrormessageinthebackendthatthetranslationisnotavailable. Regardingyourquestionaboutthedefaultlocaleandthelanguagetag: 1.defaultlocaleisusedwhenyouwanttousetranslationsyouhaveinthe.mofiles,e.g.ifyousetthedefaultlocaletozh_TWandyouwanttousethetranslationsfromtheme/plugin/WordPress.mofiles,.mofileshavetoinclude"zh_TW"inthefilenames. 2.thetagisusedinthehreflangtagsthattellGooglewhichlanguageisusedonthespecificpage;thedefaultlocalevalueisusedasafallback Youcanreadmoreabouthreflangsathiddenlink. Pleaseletmeknowifyouhaveanymorequestions. June6,2017at3:42pm #1292407 matthewS-6 ThanksJoanna, Thishelpsabunch!Dealingwith4differentChinesescriptsanddifferentspokenlanguagesisquitechallenging! Knownissuesandsolutions» Frequentlyaskedsupportquestions» 4easyfixesbeforeopeningaticketinWPMLsupport» Openingaticketinourforum» PreventPerformanceissueswithWPML» Howwedebugperformanceissues» Supportticketsarchive» ImportingMultilingualContentUsingWPAllImportAndWPML HowtoMakeaMultilingualBusinessWebsite|Uncode&WPML CreateMultilingualContactFormsusingContactForm7andWPML LearnHowtoDoMultilingualSEOUsingYoastandWPML Gethelpfromexperiencedcontractors» MeetWPMLsupportteam» WPMLCustomerSupportPolicy» Needtotellussomethingaboutthequalityofsupport» Howtoremovepersonalinformationfromyourdatabaseforsupport»



請為這篇文章評分?