{"id":7422,"date":"2019-08-14T10:13:19","date_gmt":"2019-08-14T02:13:19","guid":{"rendered":"https:\/\/5566.site\/?p=7422"},"modified":"2019-08-14T10:20:17","modified_gmt":"2019-08-14T02:20:17","slug":"wordpress%e6%8f%92%e4%bb%b6po-mo%e7%bf%bb%e8%af%91","status":"publish","type":"post","link":"https:\/\/5566.site\/en\/web7422.html","title":{"rendered":"wordpress plugin po mo translation"},"content":{"rendered":"<p>Many wordpress plugins have translation template pot files. We can use Poedit to translate Chinese into Chinese. Generally, plugins or themes will have a languages folder, which is used to store translation files. After normal translation, upload PO and MO files to this. The directory is enough, but sometimes it is invalid after uploading, and it is still in English. At this time, we need to add the following code to any location of the plugin to let wordpress know that I have this translation file here.<\/p>\n<p>&nbsp;<\/p>\n<blockquote><p>function my_plugin_init() {<br \/>\nload_plugin_textdomain( &#039;fusion-builder&#039;, false, basename( dirname( __FILE__ ) ) . &#039;\/languages\/&#039; );<br \/>\n}<br \/>\nadd_action(&#039;plugins_loaded&#039;, &#039;my_plugin_init&#039;);<\/p><\/blockquote>\n<p>Note: Only need to modify as follows<br \/>\nfusion-builder is the plugin directory name,<br \/>\n\/languages\/ is the location where the plugin releases the Chinese files (the default is languages, if not, it needs to be modified)<\/p>","protected":false},"excerpt":{"rendered":"<p>Many wordpress plugins come with translation templates<\/p>","protected":false},"author":1,"featured_media":7414,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[39,97,96],"class_list":["post-7422","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-wordpress","tag-97","tag-96"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>wordpress\u63d2\u4ef6po mo\u7ffb\u8bd1\u65e0\u6548\u7684\u89e3\u51b3\u65b9\u6cd5 | Wordpress\u4e3b\u9898\u63d2\u4ef6\u6c49\u5316-Mloun<\/title>\n<meta name=\"description\" content=\"\u5f88\u591awordpress\u63d2\u4ef6\u90fd\u5e26\u6709\u7ffb\u8bd1\u6a21\u677fpot\u6587\u4ef6\u4e86\uff0c\u6211\u4eec\u53ef\u4ee5\u5229\u7528Poedit\u6765\u7ffb\u8bd1\u4e2d\u6587\u6c49\u5316\uff0c\u4e00\u822c\u63d2\u4ef6\u6216\u8005\u4e3b\u9898\u90fd\u4f1a\u6709\u4e00\u4e2alanguages\u6587\u4ef6\u5939\uff0c\u662f\u7528\u6765\u653e\u7ffb\u8bd1\u6587\u4ef6\u7684\uff0c\u6b63\u5e38\u7ffb\u8bd1\u540e\u4e0a\u4f20PO\u548c MO\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/5566.site\/en\/web7422-html?wmc-currency=USD\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"wordpress\u63d2\u4ef6po mo\u7ffb\u8bd1\u65e0\u6548\u7684\u89e3\u51b3\u65b9\u6cd5 | Wordpress\u4e3b\u9898\u63d2\u4ef6\u6c49\u5316-Mloun\" \/>\n<meta property=\"og:description\" content=\"\u5f88\u591awordpress\u63d2\u4ef6\u90fd\u5e26\u6709\u7ffb\u8bd1\u6a21\u677fpot\u6587\u4ef6\u4e86\uff0c\u6211\u4eec\u53ef\u4ee5\u5229\u7528Poedit\u6765\u7ffb\u8bd1\u4e2d\u6587\u6c49\u5316\uff0c\u4e00\u822c\u63d2\u4ef6\u6216\u8005\u4e3b\u9898\u90fd\u4f1a\u6709\u4e00\u4e2alanguages\u6587\u4ef6\u5939\uff0c\u662f\u7528\u6765\u653e\u7ffb\u8bd1\u6587\u4ef6\u7684\uff0c\u6b63\u5e38\u7ffb\u8bd1\u540e\u4e0a\u4f20PO\u548c MO\" \/>\n<meta property=\"og:url\" content=\"https:\/\/5566.site\/en\/web7422-html?wmc-currency=USD\" \/>\n<meta property=\"og:site_name\" content=\"Wordpress\u4e3b\u9898\u63d2\u4ef6\u6c49\u5316-Mloun\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-14T02:13:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-08-14T02:20:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/5566.site\/wp-content\/uploads\/2019\/08\/code.png\" \/>\n\t<meta property=\"og:image:width\" content=\"534\" \/>\n\t<meta property=\"og:image:height\" content=\"568\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"\u6d6a\u82b1\u5c9b\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6d6a\u82b1\u5c9b\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/web7422.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/web7422.html\"},\"author\":{\"name\":\"\u6d6a\u82b1\u5c9b\",\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/#\\\/schema\\\/person\\\/7305519cbaaed13b3bf3e89698ec32dc\"},\"headline\":\"wordpress\u63d2\u4ef6po mo\u7ffb\u8bd1\",\"datePublished\":\"2019-08-14T02:13:19+00:00\",\"dateModified\":\"2019-08-14T02:20:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/web7422.html\"},\"wordCount\":34,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/web7422.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/5566.site\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/code.png\",\"keywords\":[\"Wordpress\",\"\u6c49\u5316\",\"\u7ffb\u8bd1\"],\"articleSection\":[\"wordpress\u5efa\u7ad9\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/5566.site\\\/en\\\/web7422.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/web7422.html\",\"url\":\"https:\\\/\\\/5566.site\\\/en\\\/web7422.html\",\"name\":\"wordpress\u63d2\u4ef6po mo\u7ffb\u8bd1\u65e0\u6548\u7684\u89e3\u51b3\u65b9\u6cd5 | Wordpress\u4e3b\u9898\u63d2\u4ef6\u6c49\u5316-Mloun\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/web7422.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/web7422.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/5566.site\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/code.png\",\"datePublished\":\"2019-08-14T02:13:19+00:00\",\"dateModified\":\"2019-08-14T02:20:17+00:00\",\"description\":\"\u5f88\u591awordpress\u63d2\u4ef6\u90fd\u5e26\u6709\u7ffb\u8bd1\u6a21\u677fpot\u6587\u4ef6\u4e86\uff0c\u6211\u4eec\u53ef\u4ee5\u5229\u7528Poedit\u6765\u7ffb\u8bd1\u4e2d\u6587\u6c49\u5316\uff0c\u4e00\u822c\u63d2\u4ef6\u6216\u8005\u4e3b\u9898\u90fd\u4f1a\u6709\u4e00\u4e2alanguages\u6587\u4ef6\u5939\uff0c\u662f\u7528\u6765\u653e\u7ffb\u8bd1\u6587\u4ef6\u7684\uff0c\u6b63\u5e38\u7ffb\u8bd1\u540e\u4e0a\u4f20PO\u548c MO\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/web7422.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/5566.site\\\/en\\\/web7422.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/web7422.html#primaryimage\",\"url\":\"https:\\\/\\\/5566.site\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/code.png\",\"contentUrl\":\"https:\\\/\\\/5566.site\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/code.png\",\"width\":534,\"height\":568,\"caption\":\"code\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/web7422.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/5566.site\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"wordpress\u63d2\u4ef6po mo\u7ffb\u8bd1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/5566.site\\\/en\\\/\",\"name\":\"Wordpress\u4e3b\u9898\u63d2\u4ef6\u6c49\u5316-Mloun\",\"description\":\"\u6d6a\u82b1\u5c9b\",\"publisher\":{\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/5566.site\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/#organization\",\"name\":\"\u6d6a\u82b1\u5c9b\",\"url\":\"https:\\\/\\\/5566.site\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/5566.site\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/logo-700.png\",\"contentUrl\":\"https:\\\/\\\/5566.site\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/logo-700.png\",\"width\":700,\"height\":700,\"caption\":\"\u6d6a\u82b1\u5c9b\"},\"image\":{\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/5566.site\\\/en\\\/#\\\/schema\\\/person\\\/7305519cbaaed13b3bf3e89698ec32dc\",\"name\":\"\u6d6a\u82b1\u5c9b\",\"description\":\"Wordpress \u5916\u8d38\u5efa\u7ad9\uff0cB2B\u4f01\u4e1a\u5c55\u793a\uff0cB2C\u5728\u7ebf\u5546\u5e97\uff0cB2B2C\u5e73\u53f0\uff0cWordpress\u4e3b\u9898\u548c\u63d2\u4ef6\u7ffb\u8bd1\",\"sameAs\":[\"https:\\\/\\\/5566.site\"],\"url\":\"https:\\\/\\\/5566.site\\\/en\\\/webauthor\\\/hacken\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Wordpress plugin po mo translation invalid solution | Wordpress theme plugin Sinicization-Mloun","description":"Many wordpress plugins have translation template pot files. We can use Poedit to translate Chinese into Chinese. Generally, plugins or themes will have a languages folder for translation files. After normal translation, upload PO and MO.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/5566.site\/en\/web7422-html?wmc-currency=USD","og_locale":"en_US","og_type":"article","og_title":"wordpress\u63d2\u4ef6po mo\u7ffb\u8bd1\u65e0\u6548\u7684\u89e3\u51b3\u65b9\u6cd5 | Wordpress\u4e3b\u9898\u63d2\u4ef6\u6c49\u5316-Mloun","og_description":"\u5f88\u591awordpress\u63d2\u4ef6\u90fd\u5e26\u6709\u7ffb\u8bd1\u6a21\u677fpot\u6587\u4ef6\u4e86\uff0c\u6211\u4eec\u53ef\u4ee5\u5229\u7528Poedit\u6765\u7ffb\u8bd1\u4e2d\u6587\u6c49\u5316\uff0c\u4e00\u822c\u63d2\u4ef6\u6216\u8005\u4e3b\u9898\u90fd\u4f1a\u6709\u4e00\u4e2alanguages\u6587\u4ef6\u5939\uff0c\u662f\u7528\u6765\u653e\u7ffb\u8bd1\u6587\u4ef6\u7684\uff0c\u6b63\u5e38\u7ffb\u8bd1\u540e\u4e0a\u4f20PO\u548c MO","og_url":"https:\/\/5566.site\/en\/web7422-html?wmc-currency=USD","og_site_name":"Wordpress\u4e3b\u9898\u63d2\u4ef6\u6c49\u5316-Mloun","article_published_time":"2019-08-14T02:13:19+00:00","article_modified_time":"2019-08-14T02:20:17+00:00","og_image":[{"width":534,"height":568,"url":"https:\/\/5566.site\/wp-content\/uploads\/2019\/08\/code.png","type":"image\/png"}],"author":"\u6d6a\u82b1\u5c9b","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\u6d6a\u82b1\u5c9b"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/5566.site\/en\/web7422.html#article","isPartOf":{"@id":"https:\/\/5566.site\/en\/web7422.html"},"author":{"name":"\u6d6a\u82b1\u5c9b","@id":"https:\/\/5566.site\/en\/#\/schema\/person\/7305519cbaaed13b3bf3e89698ec32dc"},"headline":"wordpress\u63d2\u4ef6po mo\u7ffb\u8bd1","datePublished":"2019-08-14T02:13:19+00:00","dateModified":"2019-08-14T02:20:17+00:00","mainEntityOfPage":{"@id":"https:\/\/5566.site\/en\/web7422.html"},"wordCount":34,"commentCount":0,"publisher":{"@id":"https:\/\/5566.site\/en\/#organization"},"image":{"@id":"https:\/\/5566.site\/en\/web7422.html#primaryimage"},"thumbnailUrl":"https:\/\/5566.site\/wp-content\/uploads\/2019\/08\/code.png","keywords":["Wordpress","\u6c49\u5316","\u7ffb\u8bd1"],"articleSection":["wordpress\u5efa\u7ad9"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/5566.site\/en\/web7422.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/5566.site\/en\/web7422.html","url":"https:\/\/5566.site\/en\/web7422.html","name":"Wordpress plugin po mo translation invalid solution | Wordpress theme plugin Sinicization-Mloun","isPartOf":{"@id":"https:\/\/5566.site\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/5566.site\/en\/web7422.html#primaryimage"},"image":{"@id":"https:\/\/5566.site\/en\/web7422.html#primaryimage"},"thumbnailUrl":"https:\/\/5566.site\/wp-content\/uploads\/2019\/08\/code.png","datePublished":"2019-08-14T02:13:19+00:00","dateModified":"2019-08-14T02:20:17+00:00","description":"Many wordpress plugins have translation template pot files. We can use Poedit to translate Chinese into Chinese. Generally, plugins or themes will have a languages folder for translation files. After normal translation, upload PO and MO.","breadcrumb":{"@id":"https:\/\/5566.site\/en\/web7422.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/5566.site\/en\/web7422.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/5566.site\/en\/web7422.html#primaryimage","url":"https:\/\/5566.site\/wp-content\/uploads\/2019\/08\/code.png","contentUrl":"https:\/\/5566.site\/wp-content\/uploads\/2019\/08\/code.png","width":534,"height":568,"caption":"code"},{"@type":"BreadcrumbList","@id":"https:\/\/5566.site\/en\/web7422.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/5566.site\/"},{"@type":"ListItem","position":2,"name":"wordpress\u63d2\u4ef6po mo\u7ffb\u8bd1"}]},{"@type":"WebSite","@id":"https:\/\/5566.site\/en\/#website","url":"https:\/\/5566.site\/en\/","name":"Wordpress theme plugin finished-Mloun","description":"Splash Island","publisher":{"@id":"https:\/\/5566.site\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/5566.site\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/5566.site\/en\/#organization","name":"Splash Island","url":"https:\/\/5566.site\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/5566.site\/en\/#\/schema\/logo\/image\/","url":"https:\/\/5566.site\/wp-content\/uploads\/2023\/05\/logo-700.png","contentUrl":"https:\/\/5566.site\/wp-content\/uploads\/2023\/05\/logo-700.png","width":700,"height":700,"caption":"\u6d6a\u82b1\u5c9b"},"image":{"@id":"https:\/\/5566.site\/en\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/5566.site\/en\/#\/schema\/person\/7305519cbaaed13b3bf3e89698ec32dc","name":"Splash Island","description":"Wordpress foreign trade website, B2B enterprise display, B2C online store, B2B2C platform, Wordpress theme and plugin translation","sameAs":["https:\/\/5566.site"],"url":"https:\/\/5566.site\/en\/webauthor\/hacken"}]}},"_links":{"self":[{"href":"https:\/\/5566.site\/en\/wp-json\/wp\/v2\/posts\/7422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/5566.site\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/5566.site\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/5566.site\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/5566.site\/en\/wp-json\/wp\/v2\/comments?post=7422"}],"version-history":[{"count":0,"href":"https:\/\/5566.site\/en\/wp-json\/wp\/v2\/posts\/7422\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/5566.site\/en\/wp-json\/wp\/v2\/media\/7414"}],"wp:attachment":[{"href":"https:\/\/5566.site\/en\/wp-json\/wp\/v2\/media?parent=7422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/5566.site\/en\/wp-json\/wp\/v2\/categories?post=7422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/5566.site\/en\/wp-json\/wp\/v2\/tags?post=7422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}