{"id":1743,"date":"2023-07-29T09:32:07","date_gmt":"2023-07-29T02:32:07","guid":{"rendered":"https:\/\/dev.artru.io.vn\/?p=1743"},"modified":"2023-10-27T14:38:03","modified_gmt":"2023-10-27T07:38:03","slug":"vo-hieu-hoa-translatepress-trong-oxygen-builder","status":"publish","type":"post","link":"https:\/\/artru.net\/en\/vo-hieu-hoa-translatepress-trong-oxygen-builder\/","title":{"rendered":"Disable Translatepress in Oxygen Builder"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Translatepress is a multilingual plugin with automatic translation function. It will translate as <code data-no-translation=\"\" data-no-auto-translation=\"\">String<\/code> rather than creating new language fields like Polylang.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also because it translates to String, the problem occurs when the default language is not English. If you turn on Translatepress&#039;s automatic translation feature, the elements in Oxygen Builder will also be translated according to the default language you have installed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This makes editing difficult, because I&#039;m used to Oxygen&#039;s English interface.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As in my case the customizations in Oxygen Builder were translated into Vietnamese language. I don&#039;t want this at all because it doesn&#039;t translate properly, and it&#039;s also difficult when you want to find fault with something, but it&#039;s no longer the default language of Oxygen Builder.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1917\" height=\"923\" src=\"https:\/\/cdn.artru.eu.org\/wp-content\/uploads\/2023\/07\/Translatepress-dich-cac-phan-tu-trong-Oxygen-Builder.jpg\" alt=\"Translatepress translates elements in Oxygen Builder\" class=\"wp-image-1794\"\/><figcaption class=\"wp-element-caption\">Translatepress translates elements in Oxygen Builder<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">To fix this problem, disable Translatepress in Oxygen Builder.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can do it in 2 ways below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Use the FDP plugin included with the add-on<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Install these 2 plugins:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code data-no-translation=\"\" data-no-auto-translation=\"\">Freesoul Deactivate Plugins<\/code><\/li>\n\n\n\n<li><code data-no-translation=\"\" data-no-auto-translation=\"\">Editor Cleanup For Oxygen: FDP add-on to cleanup the Oxygen editor<\/code><\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-group is-content-justification-space-between is-nowrap is-layout-flex wp-container-core-group-is-layout-a4698405 wp-block-group-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"963\" height=\"451\" src=\"https:\/\/cdn.artru.eu.org\/wp-content\/uploads\/2023\/07\/Freesoul-Deactivate-Plugins.png\" alt=\"Freesoul Deactivate Plugins\" class=\"wp-image-1764\"\/><figcaption class=\"wp-element-caption\">Freesoul Deactivate Plugins<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"959\" height=\"453\" src=\"https:\/\/cdn.artru.eu.org\/wp-content\/uploads\/2023\/07\/Plugin-Editor-Cleanup-For-Oxygen.png\" alt=\"Plugin Editor Cleanup For Oxygen\" class=\"wp-image-1765\"\/><figcaption class=\"wp-element-caption\">Plugin Editor Cleanup For Oxygen<\/figcaption><\/figure>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">From the interface <strong>Admin <\/strong>\u2192 <strong>Oxygen <\/strong>\u2192 <strong>Editor Cleanup<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"323\" height=\"185\" src=\"https:\/\/cdn.artru.eu.org\/wp-content\/uploads\/2023\/07\/Editor-Cleanup-Oxygen.png\" alt=\"Editor Cleanup Oxygen\" class=\"wp-image-1786\"\/><figcaption class=\"wp-element-caption\">Editor Cleanup Oxygen<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Select the area to disable the Translatepress plugin in Oxygen Builder.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1304\" height=\"920\" src=\"https:\/\/cdn.artru.eu.org\/wp-content\/uploads\/2023\/07\/Chon-vung-vo-hieu-hoa-plugin-trong-Oxygen-Builder.png\" alt=\"Select the area to disable the plugin in Oxygen Builder\" class=\"wp-image-1788\"\/><figcaption class=\"wp-element-caption\">Select the area to disable the plugin in Oxygen Builder<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Uncheck the box Translatepress plugin to disable and click <strong>Save all Changes<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"675\" src=\"https:\/\/cdn.artru.eu.org\/wp-content\/uploads\/2023\/07\/Oxygen-outer-editor-cleanup.png\" alt=\"Disable translatepress with FDP plugin\" class=\"wp-image-1790\"\/><figcaption class=\"wp-element-caption\">Disable translatepress with FDP plugin<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Using code in function.php<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Write this code in file <code data-no-translation=\"\" data-no-auto-translation=\"\">function.php<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code data-no-translation=\"\" data-no-auto-translation=\"\">add_filter('option_active_plugins', function ($plugins) {\n\tif (strpos($_SERVER&#91;'REQUEST_URI'], 'ct_builder=true') !== false) {\n\t\t$key = array_search('translatepress-multilingual\/index.php', $plugins);\n\t\tif (false !== $key) {\n\t\t\tunset($plugins&#91;$key]);\n\t\t}\n\t}\n\treturn $plugins;\n});<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The code above has the function to deactivate the Translatepress plugin when the URL contains <code data-no-translation=\"\" data-no-auto-translation=\"\">ct_builder=true<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also enable option <code data-no-translation=\"\" data-no-auto-translation=\"\">Advanced<\/code> \u2192 <code data-no-translation=\"\" data-no-auto-translation=\"\">Debug<\/code> \u2192 <code data-no-translation=\"\" data-no-auto-translation=\"\">Disable translation for gettext strings<\/code><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"778\" height=\"715\" src=\"https:\/\/cdn.artru.eu.org\/wp-content\/uploads\/2023\/08\/Disable-translation-for-gettext-strings.png\" alt=\"Disable translation for gettext strings\" class=\"wp-image-1947\"\/><figcaption class=\"wp-element-caption\">Disable translation for gettext strings<\/figcaption><\/figure>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Translatepress l\u00e0 plugin \u0111a ng\u00f4n ng\u1eef c\u00f3 ch\u1ee9c n\u0103ng d\u1ecbch t\u1ef1 \u0111\u1ed9ng. N\u00f3 s\u1ebd d\u1ecbch theo d\u1ea1ng String ch\u1ee9 kh\u00f4ng t\u1ea1o th\u00eam c\u00e1c tr\u01b0\u1eddng ng\u00f4n ng\u1eef m\u1edbi nh\u01b0 Polylang. C\u0169ng ch\u00ednh v\u00ec n\u00f3 d\u1ecbch theo String n\u00ean v\u1ea5n \u0111\u1ec1 x\u1ea3y ra khi ng\u00f4n ng\u1eef m\u1eb7c \u0111\u1ecbnh kh\u00f4ng ph\u1ea3i l\u00e0 ti\u1ebfng Anh. N\u1ebfu b\u1ea1n b\u1eadt t\u00ednh [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1950,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[111],"class_list":["post-1743","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oxygen-builder","tag-translatepress"],"_links":{"self":[{"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/posts\/1743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/comments?post=1743"}],"version-history":[{"count":0,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/posts\/1743\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/media\/1950"}],"wp:attachment":[{"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/media?parent=1743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/categories?post=1743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/tags?post=1743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}