{"id":101053,"date":"2014-09-14T14:46:41","date_gmt":"2014-09-14T14:46:41","guid":{"rendered":"http:\/\/wpml.org\/faq\/fazendo-a-traducao-de-strings-funcionar\/"},"modified":"2021-07-30T13:29:36","modified_gmt":"2021-07-30T13:29:36","slug":"fazendo-a-traducao-de-strings-funcionar","status":"publish","type":"faq","link":"https:\/\/wpml.org\/pt-br\/faq\/fazendo-a-traducao-de-strings-funcionar\/","title":{"rendered":"Por que as strings do tema ou plugin que desenvolvi n\u00e3o est\u00e3o aparecendo no String Translation?"},"content":{"rendered":"<p>Para que as tradu\u00e7\u00f5es apare\u00e7am na p\u00e1gina de String Translations, as seguintes condi\u00e7\u00f5es precisam ser satisfeitas:<\/p>\n<ul>\n<li>O texto precisa estar encapsulado em chamadas <strong>gettext<\/strong>.<\/li>\n<li>Precisa haver um argumento <strong>textdomain<\/strong>.<\/li>\n<\/ul>\n<p>Para mais informa\u00e7\u00f5es sobre cada uma dessas condi\u00e7\u00f5es, consulte nosso artigo sobre <a href=\"\/?page_id=3895367\">habilitar a tradu\u00e7\u00e3o de textos para temas n\u00e3o compat\u00edveis com o WPML<\/a>.<\/p>\n<h2>Sincroniza\u00e7\u00e3o de arquivos de tradu\u00e7\u00e3o para sites executados de m\u00faltiplos servidores<\/h2>\n<p>Por padr\u00e3o, o String Translation s\u00f3 armazena arquivos MO em um servidor. Isso quer dizer que, se seu site \u00e9 executado de v\u00e1rios servidores, todas as solicita\u00e7\u00f5es processadas por outros servidores n\u00e3o traduzem as strings. <\/p>\n<p>Desde o WPML 4.4.0, voc\u00ea pode habilitar um modo personalizado para sincronizar os arquivos MO entre seus servidores. Para fazer isso, adicione o seguinte ao arquivo <strong>wp-config<\/strong>:<\/p>\n<pre>define( 'WPML_ST_SYNC_TRANSLATION_FILES', true );<\/pre>\n<p>Observa\u00e7\u00e3o: esse modo de sincroniza\u00e7\u00e3o adiciona outra camada de l\u00f3gica que talvez afete o desempenho de seu site. Recomendamos us\u00e1-lo apenas se necess\u00e1rio.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Para que as tradu\u00e7\u00f5es apare\u00e7am na p\u00e1gina de String Translations, as seguintes condi\u00e7\u00f5es precisam ser satisfeitas: O texto precisa estar encapsulado em chamadas gettext. Precisa haver um argumento textdomain. Para mais informa\u00e7\u00f5es sobre cada uma dessas condi\u00e7\u00f5es, consulte nosso artigo sobre habilitar a tradu\u00e7\u00e3o de textos para temas n\u00e3o compat\u00edveis com o WPML. Sincroniza\u00e7\u00e3o de [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"menu_order":60,"template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_uag_custom_page_level_css":"","ep_exclude_from_search":false,"footnotes":""},"faq-category":[],"class_list":["post-101053","faq","type-faq","status-publish","hentry"],"spectra_custom_meta":{"_icl_translation":["1"],"_views_template":["0"],"_alp_processed":["1627651776"],"_wp_page_template":[""],"_edit_lock":["1444383957:71887"],"_edit_last":["71887"],"faq_order":["4"],"_wpml_media_duplicate":["1"],"_wpml_media_featured":["1"],"_subscription_coupon_product_id":["0"],"_last_translation_edit_mode":["translation-editor"],"wpcf-faq-category":["4"],"_top_nav_excluded":[""],"_cms_nav_minihome":[""],"_uag_css_file_name":["uag-css-101053.css"],"_uag_page_assets":["a:9:{s:3:\"css\";s:260:\".uag-blocks-common-selector{z-index:var(--z-index-desktop) !important}@media(max-width: 976px){.uag-blocks-common-selector{z-index:var(--z-index-tablet) !important}}@media(max-width: 767px){.uag-blocks-common-selector{z-index:var(--z-index-mobile) !important}}\";s:2:\"js\";s:0:\"\";s:18:\"current_block_list\";a:1:{i:0;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:0;s:11:\"uag_version\";s:10:\"1778504323\";s:6:\"gfonts\";a:0:{}s:10:\"gfonts_url\";s:0:\"\";s:12:\"gfonts_files\";a:0:{}s:14:\"uag_faq_layout\";b:0;}"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"gform-image-choice-sm":false,"gform-image-choice-md":false,"gform-image-choice-lg":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false},"uagb_author_info":{"display_name":"Amir","author_link":"https:\/\/wpml.org\/pt-br\/author\/amir\/"},"uagb_comment_info":0,"uagb_excerpt":"Para que as tradu\u00e7\u00f5es apare\u00e7am na p\u00e1gina de String Translations, as seguintes condi\u00e7\u00f5es precisam ser satisfeitas: O texto precisa estar encapsulado em chamadas gettext. Precisa haver um argumento textdomain. Para mais informa\u00e7\u00f5es sobre cada uma dessas condi\u00e7\u00f5es, consulte nosso artigo sobre habilitar a tradu\u00e7\u00e3o de textos para temas n\u00e3o compat\u00edveis com o WPML. Sincroniza\u00e7\u00e3o de&hellip;","_links":{"self":[{"href":"https:\/\/wpml.org\/pt-br\/wp-json\/wp\/v2\/faq\/101053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/pt-br\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/wpml.org\/pt-br\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/pt-br\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":3,"href":"https:\/\/wpml.org\/pt-br\/wp-json\/wp\/v2\/faq\/101053\/revisions"}],"predecessor-version":[{"id":6961341,"href":"https:\/\/wpml.org\/pt-br\/wp-json\/wp\/v2\/faq\/101053\/revisions\/6961341"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/pt-br\/wp-json\/wp\/v2\/media?parent=101053"}],"wp:term":[{"taxonomy":"faq-category","embeddable":true,"href":"https:\/\/wpml.org\/pt-br\/wp-json\/wp\/v2\/faq-category?post=101053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}