{"id":685,"date":"2022-12-03T10:12:40","date_gmt":"2022-12-03T10:12:40","guid":{"rendered":"https:\/\/loftocean.com\/doc\/patiotime\/?post_type=ptkb&#038;p=685"},"modified":"2024-03-15T09:19:52","modified_gmt":"2024-03-15T09:19:52","slug":"bilingual-multilingual-polylang","status":"publish","type":"ptkb","link":"https:\/\/loftocean.com\/doc\/cozystay\/ptkb\/bilingual-multilingual-polylang\/","title":{"rendered":"Bilingual \/ Multilingual &#8211; Polylang"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"685\" class=\"elementor elementor-685\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-442f3cb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"442f3cb\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8536bb7\" data-id=\"8536bb7\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3dce06f elementor-widget elementor-widget-text-editor\" data-id=\"3dce06f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In this tutorial, we will provide simple explanations and points to explain how to make your WordPress site to be a bilingual\/multilingual site when you are using <span class=\"highlighted2\">CozyStay<\/span>\u00a0theme and the third-party plugin\u00a0<span class=\"highlighted2\">Polylang<\/span>.<\/p><p>If you want to use WPML, please\u00a0<a href=\"https:\/\/loftocean.com\/doc\/cozystay\/ptkb\/bilingual-multilingual-wpml\/\">read this tutorial<\/a>.<\/p><p><span class=\"highlighted\">Please note:<\/span>\u00a0because Polylang is a third-party plugin, so we will only provide links to this plugin\u2019s official documentation. We will not be able to provide details about how to use this plugin, or provide support service for this plugin.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-92002ca elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"92002ca\" data-element_type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-99238cc elementor-widget elementor-widget-text-editor\" data-id=\"99238cc\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h6 id=\"multilingual-1\">Step 1 \u2013 Basic Knowledge<\/h6><p>There are\u00a0<strong>several different types of content<\/strong>\u00a0that need to be translated separately:<\/p><ul><li><strong><span class=\"highlighted\">Theme Strings<\/span><\/strong>: they are strings written in the theme code. Please continue reading to know more information in\u00a0<a href=\"https:\/\/loftocean.com\/doc\/cozystay\/ptkb\/bilingual-multilingual-polylang\/#step-2-translate-theme-strings\">Step 2<\/a>.<\/li><li><strong><span class=\"highlighted\">Dynamic content<\/span><\/strong>: like posts, pages, categories, and\u00a0<strong>user defined strings<\/strong>. To translate those content, you can use the Polylang plugin. Please continue reading to know more information in\u00a0<a href=\"https:\/\/loftocean.com\/doc\/cozystay\/ptkb\/bilingual-multilingual-polylang\/#step-3-translate-dynamic-content-with-polylang\">Step 3<\/a>.<\/li><li><strong><span class=\"highlighted\">Newsletter Signup Form<\/span><\/strong>: Please find the details in\u00a0<a href=\"https:\/\/loftocean.com\/doc\/cozystay\/ptkb\/bilingual-multilingual-polylang\/#step-4-translate-newsletter-signup-form\">Step 4<\/a>.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bf4155f elementor-widget elementor-widget-text-editor\" data-id=\"bf4155f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Resources of Polylang:<\/strong><\/p><ul><li>Polylang Free Version:\u00a0<a href=\"https:\/\/wordpress.org\/plugins\/polylang\/\" target=\"_blank\" rel=\"noopener\">https:\/\/wordpress.org\/plugins\/polylang\/<\/a><\/li><li>Polylang Official Documentation:\u00a0<a href=\"https:\/\/polylang.pro\/doc-category\/getting-started\/\" target=\"_blank\" rel=\"noopener\">https:\/\/polylang.pro\/doc-category\/getting-started\/<\/a><\/li><li>Polylang FAQ:\u00a0<a href=\"https:\/\/wordpress.org\/plugins\/polylang\/#faq\" target=\"_blank\" rel=\"noopener\">https:\/\/wordpress.org\/plugins\/polylang\/#faq<\/a><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-66df2a3 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"66df2a3\" data-element_type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-61ce972 elementor-widget elementor-widget-text-editor\" data-id=\"61ce972\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h6 id=\"multilingual-2\">Step 2 \u2013 Translate Theme Strings<\/h6><p><strong>Theme Strings<\/strong>: they are strings written in the theme code (included in the .pot file), for example, &#8220;Join the Conversation&#8221; (Comments Section Title) on each single post or page. To translate these strings, please follow this guide:\u00a0<a href=\"https:\/\/loftocean.com\/doc\/patiotime\/ptkb\/translating-theme-with-loco-translate\/\">Translating the theme<\/a>.<\/p><p>Please make sure you have translated all the\u00a0<strong>Theme Strings<\/strong>\u00a0you need.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6dfcb1a elementor-widget elementor-widget-text-editor\" data-id=\"6dfcb1a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span class=\"highlighted\">Please note:<\/span>\u00a0if you have imported demo data, then some strings are entered into the customizer during the demo importing process, then you will need to translate these strings by Polylang. Please see more details in\u00a0<strong>&#8220;Step 3 \u2013 2. Translate User Defined Strings&#8221;<\/strong>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-905d5ea elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"905d5ea\" data-element_type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-eef76bf elementor-widget elementor-widget-text-editor\" data-id=\"eef76bf\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h6 id=\"multilingual-3\">Step 3 \u2013 Translate Dynamic Content with Polylang<\/h6>\n<ol class=\"rich-content\">\n<li><strong>Setup wizard: <\/strong>When activating Polylang for the first time, the setup wizard is automatically launched with all the necessary steps to configure more easily a multilingual website. You should follow each step one by one until you reach the \u201cReady!\u201d step at the end of the setup wizard. Please read this article for details:&nbsp;<a href=\"https:\/\/polylang.pro\/doc\/setup-wizard\/\" target=\"_blank\" rel=\"noopener\">https:\/\/polylang.pro\/doc\/setup-wizard\/<\/a>.<\/li>\n<li><strong>Translate User Defined Strings<\/strong><br>\n<blockquote class=\"box\"><p>Polylang allows you to translate user defined strings such as the site title, the tagline, or the widget titles. Moreover themes and plugins can allow you to translate their options here.<\/p><\/blockquote>\n<p>To translate&nbsp;<strong><span class=\"highlighted\">User Defined String<\/span><\/strong>, you must use the&nbsp;<strong><span class=\"highlighted2\">Strings Translations Table<\/span><\/strong>&nbsp;of the Polylang plugin.<br>\nPlease read this article:&nbsp;<a href=\"https:\/\/polylang.pro\/doc\/strings-translations\/\" target=\"_blank\" rel=\"noopener\">https:\/\/polylang.pro\/doc\/strings-translations\/<\/a><\/p>\n<div class=\"info-box\">\n<p>There are 2 types of User Defined String:<\/p>\n<ul>\n<li>Strings entered with WordPress core features: such as the site title, the tagline, or the widget titles.<\/li>\n<li>Strings entered with theme and plugins. Please see more details below:<\/li>\n<\/ul>\n<\/div>\n<p><strong>Theme Options Strings<\/strong>: They are strings entered in the theme options (customizer). When customizing your site with CozyStay theme, you will be able to enter many custom text in the customizer. To translate <strong>any custom text you entered in the customizer<\/strong> you need to use <strong>Strings Translations<\/strong> table of the Polylang plugin.<\/p>\n<p>To locate <em><strong>Strings Translations Table<\/strong><\/em>: on your site <strong>admin panel &gt; Languages &gt; Strings Translations<\/strong>.<\/p>\n<p>For example, you can change the text of &#8220;Read More&#8221; buttons to &#8220;Continue Reading&#8221;, or you can change the related posts section&#8217;s title &#8220;Other Posts You May Enjoy&#8221; to any other text like &#8220;Read more articles in this category&#8221;. After you have entered\/modified custom text in the customizer, you can find these text shown in the <em><strong>Strings Translations Table<\/strong><\/em>.<\/p><\/li>\n<li><strong>Create Menus<br>\n<\/strong><br>\nYou have to create one menu per language and save them. Please read this article:&nbsp;<a href=\"https:\/\/polylang.pro\/doc\/create-menus\/\" target=\"_blank\" rel=\"noopener\">https:\/\/polylang.pro\/doc\/create-menus\/<\/a>.<\/li>\n<li><strong>About Widgets<\/strong><br>\n<blockquote class=\"box\"><p>For all widgets you have now the possibility to choose to display it for all languages (default) or only one language. If you select &#8220;All languages&#8221; you will have the possibility to translate the title in the Strings translation option.<\/p><\/blockquote>\n<p>Please read this article:&nbsp;<a href=\"https:\/\/polylang.pro\/doc\/widgets\/\" target=\"_blank\" rel=\"noopener\">https:\/\/polylang.pro\/doc\/widgets\/<\/a>.<\/p>\n<p><span class=\"highlighted\">Please note:<\/span>&nbsp;for custom widget&nbsp;<strong>CozyStay Category<\/strong>, you have to create one widget per language, because you have to choose different categories for each language.<\/p><\/li>\n<li><strong>Translating pages, posts, categories and tags<br>\n<\/strong><br>\nPlease read this article:&nbsp;<a href=\"https:\/\/polylang.pro\/doc\/translating-pages-posts-categories-and-tags\/\" target=\"_blank\" rel=\"noopener\">https:\/\/polylang.pro\/doc\/translating-pages-posts-categories-and-tags\/<\/a>.<\/li>\n<li><strong>Translating Custom Post Types<\/strong>: Including&nbsp;<span class=\"highlighted\">Site Headers<\/span>, <span class=\"highlighted\">Custom Blocks<\/span> &nbsp;and&nbsp;<span \n class=\"highlighted\">Rooms<\/span>.<br>\nPlease navigate to&nbsp;<strong>Languages &gt; Settings<\/strong>, find&nbsp;<strong>Custom post types and Taxonomies<\/strong>&nbsp;and click&nbsp;<strong>Settings<\/strong>.<a href=\"https:\/\/loftocean.com\/doc\/patiotime\/wp-content\/uploads\/sites\/6\/2022\/12\/polylang-post-type-1.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-693\" src=\"https:\/\/loftocean.com\/doc\/patiotime\/wp-content\/uploads\/sites\/6\/2022\/12\/polylang-post-type-1.jpg\" alt=\"\" width=\"2524\" height=\"1231\"><\/a>And then please make sure that you have ticked the checkboxes for&nbsp;<strong><span class=\"highlighted\">Custom Blocks,<\/span><\/strong>&nbsp;<strong><span class=\"highlighted\">Header Builder<\/span><\/strong>&nbsp;and <strong><span class=\"highlighted\">Rooms<\/span><\/strong>. <a href=\"http:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2024\/03\/polylang-post-type-3.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-1558\" src=\"http:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2024\/03\/polylang-post-type-3.jpg\" alt=\"\" width=\"1920\" height=\"955\" srcset=\"https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2024\/03\/polylang-post-type-3.jpg 1920w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2024\/03\/polylang-post-type-3-300x149.jpg 300w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2024\/03\/polylang-post-type-3-1024x509.jpg 1024w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2024\/03\/polylang-post-type-3-768x382.jpg 768w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2024\/03\/polylang-post-type-3-1536x764.jpg 1536w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2024\/03\/polylang-post-type-3-1440x716.jpg 1440w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2024\/03\/polylang-post-type-3-1200x597.jpg 1200w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2024\/03\/polylang-post-type-3-780x388.jpg 780w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2024\/03\/polylang-post-type-3-600x298.jpg 600w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2024\/03\/polylang-post-type-3-550x274.jpg 550w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2024\/03\/polylang-post-type-3-370x184.jpg 370w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2024\/03\/polylang-post-type-3-255x127.jpg 255w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a><\/li>\n<li>After that, you can translate the <em><strong>Custom Blocks<\/strong><\/em>, <em><strong>Site Headers <\/strong>and<strong> Rooms<\/strong><\/em> just like translating pages or posts.<\/li>\n<\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3c2f2d4 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"3c2f2d4\" data-element_type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-407311d elementor-widget elementor-widget-text-editor\" data-id=\"407311d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h6 id=\"multilingual-4\">Step 4 \u2013 Translate Newsletter Signup Form<\/h6><p>On your website dashboard, please go to\u00a0<strong>CozyStay Dashboard<\/strong>\u00a0&gt;\u00a0<strong>Integrations<\/strong>, you will find the\u00a0<span class=\"highlighted\">MC4WP Multilingual Manager for Polylang<\/span>. This option will show when\u00a0<strong>Polylang<\/strong>\u00a0and\u00a0<strong>MC4WP<\/strong>\u00a0are installed and activated.<\/p><ul><li>If you are using the premium version of the &#8220;MailChimp for WordPress&#8221; plugin, you can create multiple forms. Therefore, please create different forms for each language, and then select a different form for each language on this page.<a href=\"https:\/\/loftocean.com\/doc\/patiotime\/wp-content\/uploads\/sites\/6\/2022\/12\/polylang-mc4wp-1.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-697\" src=\"https:\/\/loftocean.com\/doc\/patiotime\/wp-content\/uploads\/sites\/6\/2022\/12\/polylang-mc4wp-1.jpg\" alt=\"\" width=\"1492\" height=\"592\" \/><\/a><\/li><li>If you are using the free version of the &#8220;MailChimp for WordPress&#8221; plugin, you can only create one form. Then, please click the\u00a0<span class=\"highlighted\">Translate the Form<\/span>\u00a0link to translate this form into another language.<a href=\"https:\/\/loftocean.com\/doc\/patiotime\/wp-content\/uploads\/sites\/6\/2022\/12\/polylang-mc4wp-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-698\" src=\"https:\/\/loftocean.com\/doc\/patiotime\/wp-content\/uploads\/sites\/6\/2022\/12\/polylang-mc4wp-2.jpg\" alt=\"\" width=\"1492\" height=\"592\" \/><\/a>You will be redirected to the form edit page. You just need to edit the form title, content and messages into the target language. And save the changes.<a href=\"https:\/\/loftocean.com\/doc\/patiotime\/wp-content\/uploads\/sites\/6\/2022\/12\/polylang-mc4wp-3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-699\" src=\"https:\/\/loftocean.com\/doc\/patiotime\/wp-content\/uploads\/sites\/6\/2022\/12\/polylang-mc4wp-3.jpg\" alt=\"\" width=\"1800\" height=\"1392\" \/><\/a><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"menu_order":0,"template":"","ptkb_category":[14],"class_list":["post-685","ptkb","type-ptkb","status-publish","hentry","ptkb_category-translation"],"_links":{"self":[{"href":"https:\/\/loftocean.com\/doc\/cozystay\/wp-json\/wp\/v2\/ptkb\/685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loftocean.com\/doc\/cozystay\/wp-json\/wp\/v2\/ptkb"}],"about":[{"href":"https:\/\/loftocean.com\/doc\/cozystay\/wp-json\/wp\/v2\/types\/ptkb"}],"version-history":[{"count":5,"href":"https:\/\/loftocean.com\/doc\/cozystay\/wp-json\/wp\/v2\/ptkb\/685\/revisions"}],"predecessor-version":[{"id":1563,"href":"https:\/\/loftocean.com\/doc\/cozystay\/wp-json\/wp\/v2\/ptkb\/685\/revisions\/1563"}],"wp:attachment":[{"href":"https:\/\/loftocean.com\/doc\/cozystay\/wp-json\/wp\/v2\/media?parent=685"}],"wp:term":[{"taxonomy":"ptkb_category","embeddable":true,"href":"https:\/\/loftocean.com\/doc\/cozystay\/wp-json\/wp\/v2\/ptkb_category?post=685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}