{"id":5061,"date":"2026-04-24T12:38:49","date_gmt":"2026-04-24T10:38:49","guid":{"rendered":"https:\/\/cevento-plugin.com\/docs\/004-multi-language\/"},"modified":"2026-04-24T12:38:49","modified_gmt":"2026-04-24T10:38:49","slug":"004-multi-language","status":"publish","type":"docs","link":"https:\/\/cevento-plugin.com\/en\/docs\/004-multi-language\/","title":{"rendered":"Multilingual Support"},"content":{"rendered":"\n<p>Cevento supports multilingual functionality, allowing you to provide the user interface and content in multiple languages.<br>\nThis is achieved through translation files (<code>.po<\/code> and <code>.mo<\/code>) that contain all plugin texts.<br>\nAs is common in WordPress, these translations can be customized or extended in an update-safe way.<\/p>\n<h2 id=\"requirements\">Requirements<\/h2>\n<p>To edit existing translations or add new ones, <a href=\"https:\/\/www.gnu.org\/software\/gettext\/\" rel=\"noopener\">gettext<\/a> must be installed on your system.<br>\nWith the included <code>msgfmt<\/code> tool, edited <code>.po<\/code> files can be compiled into <code>.mo<\/code> files, which WordPress will then use.<\/p>\n<p>Alternatively, you can use a tool like <a href=\"https:\/\/poedit.net\/\" rel=\"noopener\">Poedit<\/a> to edit <code>.po<\/code> files and export the compiled <code>.mo<\/code> files.<\/p>\n<h2 id=\"adjusting-existing-translations\">Adjusting Existing Translations<\/h2>\n<ol>\n<li>Locate the <code>.po<\/code> file of the desired language in the directory <code>[plugin_root]\/languages\/<\/code>.  <\/li>\n<li>Copy this file into the following WordPress language directory:<br>\n<code>[wp_root]\/wp-content\/languages\/plugins\/<\/code>  <\/li>\n<li>Apply your changes to the copied <code>.po<\/code> file.  <\/li>\n<li>\n<p>Generate the <code>.mo<\/code> file with <code>msgfmt<\/code>, e.g. for German (<code>de_DE<\/code>):  <\/p>\n<pre><code class=\"language-bash\">msgfmt -o cevento-de_DE.mo cevento-de_DE.po<\/code><\/pre>\n<\/li>\n<\/ol>\n<h2 id=\"adding-a-new-language\">Adding a New Language<\/h2>\n<ol>\n<li>Copy the file <code>[plugin_root]\/languages\/cevento.po<\/code> and rename it accordingly: <code>cevento-[locale_code].po<\/code>.<br>\nYou can find all locale codes in <a href=\"https:\/\/make.wordpress.org\/polyglots\/teams\/\" rel=\"noopener\">this list<\/a>.  <\/li>\n<li>Move the file into the following directory: <code>[wp_root]\/wp-content\/languages\/plugins\/<\/code>  <\/li>\n<li>Enter all required translations into the <code>.po<\/code> file.  <\/li>\n<li>\n<p>Compile it into a <code>.mo<\/code> file using <code>msgfmt<\/code>:  <\/p>\n<pre><code class=\"language-bash\">msgfmt -o cevento-[locale_code].mo cevento-[locale_code].po<\/code><\/pre>\n<\/li>\n<\/ol>\n\n","protected":false},"featured_media":0,"parent":0,"template":"","meta":{"_acf_changed":false},"thema":[682],"class_list":["post-5061","docs","type-docs","status-publish","hentry","thema-development"],"acf":{"excerpt":"Extend & Customize Translations","toc":"<ol class=\"toc\">\n<li><a href=\"#requirements\"  uk-scroll=\"offset: 120\">Requirements<\/a><\/li>\n<li><a href=\"#adjusting-existing-translations\"  uk-scroll=\"offset: 120\">Adjusting Existing Translations<\/a><\/li>\n<li><a href=\"#adding-a-new-language\"  uk-scroll=\"offset: 120\">Adding a New Language<\/a><\/li>\n<\/ol>\n"},"_links":{"self":[{"href":"https:\/\/cevento-plugin.com\/en\/wp-json\/wp\/v2\/docs\/5061","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cevento-plugin.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/cevento-plugin.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"wp:attachment":[{"href":"https:\/\/cevento-plugin.com\/en\/wp-json\/wp\/v2\/media?parent=5061"}],"wp:term":[{"taxonomy":"thema","embeddable":true,"href":"https:\/\/cevento-plugin.com\/en\/wp-json\/wp\/v2\/thema?post=5061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}