{"id":1508,"date":"2013-03-20T13:50:45","date_gmt":"2013-03-20T13:50:45","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=1508"},"modified":"2013-03-20T13:50:45","modified_gmt":"2013-03-20T13:50:45","slug":"how-to-make-your-module-compatible-for-all-languages","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/","title":{"rendered":"How to make Your Module Compatible for \u201cAll Languages\u201d"},"content":{"rendered":"<p><b>To change Your Prestashop Language You have to select it at the time of installation.<\/b><\/p>\n<p>1. Use\u00a0 $this-&gt;l(\u2018\u2019)\u00a0 for the element you want to change in other languages in <b>.php files<\/b>.<\/p>\n<p>Example: Suppose we want to display \u201cwelcome\u201d in other languages.<\/p>\n<p>so we have to use $this-&gt;l(\u2018welcome\u2019)<\/p>\n<p>2.\u00a0 Use {l s=&#8221; mod=\u2019module_name\u2019}\u00a0 for the element you want to change in other languages in <b>.tpl or smarty\u00a0 files<\/b>.<\/p>\n<p>Example: Suppose we want to display \u201cwelcome\u201d in other languages.<\/p>\n<p>so we have to use {l s=&#8217;welcome&#8217; mod=\u2019module_name\u2019}<\/p>\n<p>3. Create a folder in your module named \u2018Translations\u2019.<\/p>\n<p>4. Create .<b>php<\/b> file\/files in the Translations folder named under language iso_codes.For iso_code go to ps_lang table in the database.Files in the Translations folder should be empty.<\/p>\n<p>Example: <b>de.php, fr.php.<\/b><\/p>\n<p>5.Now you have to make entries of all the word that you have entered in $this-&gt;ll(\u2018\u2019) and\u00a0 {l s=&#8221; mod=\u2019module_name\u2019}.<\/p>\n<p>6. Go to prestashop back office ,Localisation Tab -&gt;Translation Tab.<\/p>\n<p>7. You have to select from\u00a0 \u201cModify Translation\u201d, for module select \u2018<b>Installed Module Translation<\/b>\u2019 and the<b> language flag<\/b> in which you want to change as shown in image below<\/p>\n<p><a href=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang2.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-1510\" alt=\"lang2\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang2-270x300.png\" width=\"270\" height=\"300\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang2-270x300.png 270w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang2.png 697w\" sizes=\"(max-width: 270px) 100vw, 270px\" loading=\"lazy\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>8. Now go to your module and fill all the values as shown in the image below.<\/p>\n<p><a href=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-1509\" alt=\"lang\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang-269x300.png\" width=\"269\" height=\"300\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang-269x300.png 269w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang.png 693w\" sizes=\"(max-width: 269px) 100vw, 269px\" loading=\"lazy\" \/><\/a><\/p>\n<p>after all changes save it.<\/p>\n<p>Note &#8211; There must be Translation Folder and the file in your module to save the changes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To change Your Prestashop Language You have to select it at the time of installation. 1. Use\u00a0 $this-&gt;l(\u2018\u2019)\u00a0 for the element you want to change in other languages in .php files. Example: Suppose we want to display \u201cwelcome\u201d in other languages. so we have to use $this-&gt;l(\u2018welcome\u2019) 2.\u00a0 Use {l s=&#8221; mod=\u2019module_name\u2019}\u00a0 for the element <a href=\"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[209],"tags":[276,277,2065],"class_list":["post-1508","post","type-post","status-publish","format-standard","hentry","category-prestashop","tag-language-compatiblity-prestashop","tag-languages-prestashop","tag-prestashop"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to make Your Module Compatible for \u201cAll Languages\u201d - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to make Your Module Compatible for \u201cAll Languages\u201d - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"To change Your Prestashop Language You have to select it at the time of installation. 1. Use\u00a0 $this-&gt;l(\u2018\u2019)\u00a0 for the element you want to change in other languages in .php files. Example: Suppose we want to display \u201cwelcome\u201d in other languages. so we have to use $this-&gt;l(\u2018welcome\u2019) 2.\u00a0 Use {l s=&#8221; mod=\u2019module_name\u2019}\u00a0 for the element [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-03-20T13:50:45+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang2-270x300.png\" \/>\n<meta name=\"author\" content=\"Prashu Aggrawal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prashu Aggrawal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/\"},\"author\":{\"name\":\"Prashu Aggrawal\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/8e8a9e77718ff2cc6bfafda0e0c103c1\"},\"headline\":\"How to make Your Module Compatible for \u201cAll Languages\u201d\",\"datePublished\":\"2013-03-20T13:50:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/\"},\"wordCount\":251,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang2-270x300.png\",\"keywords\":[\"language compatiblity prestashop\",\"languages prestashop\",\"prestashop\"],\"articleSection\":[\"prestashop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/\",\"name\":\"How to make Your Module Compatible for \u201cAll Languages\u201d - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang2-270x300.png\",\"datePublished\":\"2013-03-20T13:50:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/#primaryimage\",\"url\":\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang2-270x300.png\",\"contentUrl\":\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang2-270x300.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to make Your Module Compatible for \u201cAll Languages\u201d\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/8e8a9e77718ff2cc6bfafda0e0c103c1\",\"name\":\"Prashu Aggrawal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d9866d78b1efad7fa1f5e6eecedfb90f205cd27356245747604d3e78791449b3?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d9866d78b1efad7fa1f5e6eecedfb90f205cd27356245747604d3e78791449b3?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Prashu Aggrawal\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/prashu\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to make Your Module Compatible for \u201cAll Languages\u201d - Webkul Blog","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:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/","og_locale":"en_US","og_type":"article","og_title":"How to make Your Module Compatible for \u201cAll Languages\u201d - Webkul Blog","og_description":"To change Your Prestashop Language You have to select it at the time of installation. 1. Use\u00a0 $this-&gt;l(\u2018\u2019)\u00a0 for the element you want to change in other languages in .php files. Example: Suppose we want to display \u201cwelcome\u201d in other languages. so we have to use $this-&gt;l(\u2018welcome\u2019) 2.\u00a0 Use {l s=&#8221; mod=\u2019module_name\u2019}\u00a0 for the element [...]","og_url":"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2013-03-20T13:50:45+00:00","og_image":[{"url":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang2-270x300.png","type":"","width":"","height":""}],"author":"Prashu Aggrawal","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Prashu Aggrawal","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/"},"author":{"name":"Prashu Aggrawal","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/8e8a9e77718ff2cc6bfafda0e0c103c1"},"headline":"How to make Your Module Compatible for \u201cAll Languages\u201d","datePublished":"2013-03-20T13:50:45+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/"},"wordCount":251,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/#primaryimage"},"thumbnailUrl":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang2-270x300.png","keywords":["language compatiblity prestashop","languages prestashop","prestashop"],"articleSection":["prestashop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/","url":"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/","name":"How to make Your Module Compatible for \u201cAll Languages\u201d - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/#primaryimage"},"thumbnailUrl":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang2-270x300.png","datePublished":"2013-03-20T13:50:45+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/#primaryimage","url":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang2-270x300.png","contentUrl":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/03\/lang2-270x300.png"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-make-your-module-compatible-for-all-languages\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to make Your Module Compatible for \u201cAll Languages\u201d"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/8e8a9e77718ff2cc6bfafda0e0c103c1","name":"Prashu Aggrawal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d9866d78b1efad7fa1f5e6eecedfb90f205cd27356245747604d3e78791449b3?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d9866d78b1efad7fa1f5e6eecedfb90f205cd27356245747604d3e78791449b3?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Prashu Aggrawal"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/prashu\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=1508"}],"version-history":[{"count":2,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1508\/revisions"}],"predecessor-version":[{"id":1512,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1508\/revisions\/1512"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=1508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=1508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=1508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}