Can't seem to add zh-cn and zh-tw as regions. - WPML
文章推薦指數: 80 %
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»
延伸文章資訊
- 1各國語言(語系)代碼表(zh-tw, zh-cn,en-us...) json 格式[繁中/簡 ...
各國語言(語系)代碼表(zh-tw, zh-cn,en-us. ... << Language Culture Names json formate (En, Traditional Chine...
- 2zh-tw language code - 社群貼文懶人包
zh-TW, Chinese (T).。 List of ISO 639-1 codes - Wikipedia。 ISO 639 is a standardized nomenclature ...
- 3語系/地區碼zh-TW與zh-CN 中的zh代表什麼? | 簡睿隨筆
Chinese language (ISO 639-1 code: zh), based on a native name of the Chinese language Zhōngwén an...
- 4支援的語言- Play 管理中心說明 - Google Support
語言, 語言代碼. 中文(中華人民共和國), zh-CN. 中文(台灣), zh-TW. 中文(香港), zh-HK. 丹麥文, da. 俄文, ru. 保加利亞文, bg. 克羅埃西亞文, h...
- 5Language Code Table - 语言代码表
xh-ZA, 班图语. zh, 中文. zh-CN, 中文(简体). zh-HK, 中文(香港). zh-MO, 中文(澳门). zh-SG, 中文(新加坡). zh-TW, 中文(繁体). z...