{"id":134,"date":"2025-02-06T12:40:05","date_gmt":"2025-02-06T12:40:05","guid":{"rendered":"https:\/\/documentation.userswp.io\/article\/how-to-translate-or-localize-userswp\/"},"modified":"2025-03-26T16:49:10","modified_gmt":"2025-03-26T16:49:10","slug":"how-to-translate-or-localize-userswp","status":"publish","type":"gd_place","link":"https:\/\/userswp.io\/documentation\/article\/how-tos\/how-to-translate-or-localize-userswp\/","title":{"rendered":"How To Translate Or Localize UsersWP"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">UsersWP, by default, comes in English. (en_US)<\/h3>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-warning mb-3\" role=\"alert\"><span class=\"fas fa-exclamation-triangle me-2\"><\/span><span class=\"flex-grow-1\">Our users fully translated UsersWP into <a href=\"https:\/\/translate.wordpress.org\/projects\/wp-plugins\/userswp\/\" target=\"_blank\" rel=\"noreferrer noopener\">several languages<\/a>. If yours is incomplete or you want to edit a language, you can by following the steps in this document.<\/span><\/div>\n\n\n\n<p>There are 2 options, creating a translation file or using an existing translation file.<\/p>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-container mb-3 bg-image-fixed list-group list-group-numbered\">\n<div class=\"wp-block-blockstrap-blockstrap-widget-container border-0 bg-image-fixed list-group-item\">\n<p class=\"d-inline-block\"><strong><strong>Create a translation file<\/strong><\/strong><\/p>\n\n\n\n<p>Download and install <a href=\"http:\/\/www.poedit.net\/\" target=\"_blank\" rel=\"noopener\">POEdit<\/a>. Launch it to open this file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">userswp\/languages\/userswp-en_US.po\t<\/pre>\n\n\n\n<p><br><strong>Add your translations<\/strong> and once you finish, <strong>click File &gt; Compile to MO&#8230;<\/strong><\/p>\n\n\n\n<p><strong>Change the file name<\/strong> to reflect your <strong>Locale<\/strong> (the Locale is a unique code for each language). For example, if your <strong>translation is to&nbsp;<\/strong><strong>Italian<\/strong>, the locale is&nbsp;<strong>it_IT.<\/strong>&nbsp;<\/p>\n\n\n\n<p>The file name should be:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">userswp-it_IT.mo<\/pre>\n\n\n\n<p><br>Here you can find the full list of <a href=\"https:\/\/translate.wordpress.org\/\">Locale<\/a> codes.<\/p>\n\n\n\n<p id=\"1\">Inside the wp-content folder, create the folder \/languages\/<\/p>\n\n\n\n<p>Inside the&nbsp;languages&nbsp;folder, create the folder \/plugins\/<\/p>\n\n\n\n<p><strong style=\"background-color: initial;\">Transfer the .mo file<\/strong> via FTP into the newly created folder:<\/p>\n\n\n\n<p>The complete path should look like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wp-content\/languages\/plugins\/userswp-it_IT.mo<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-container border-0 bg-image-fixed list-group-item\">\n<p class=\"d-inline-block\"><strong>Using an existing translation file<\/strong><\/p>\n\n\n\n<p><strong>Download<\/strong> the desired language file from the <a href=\"https:\/\/translate.wordpress.org\/projects\/wp-plugins\/userswp\/\" target=\"_blank\" rel=\"noopener\">UsersWP GlotPress page<\/a>.<\/p>\n\n\n\n<p>You can download the file as .po file and modify it following point 1 of this doc or download it directly as .mo file, skip editing with POEdit \/ compiling the mo file, and follow the steps from <a href=\"#1\">here<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-warning mb-3\" role=\"alert\"><span class=\"fas fa-exclamation-triangle me-2\"><\/span><span class=\"flex-grow-1\">If you save the translation file in the wp-content\/plugins\/userswp\/languages\/ folder, you will lose your translation with each plugin update.<\/span><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-container border-0 bg-image-fixed list-group-item\">\n<p class=\"d-inline-block\"><strong>Change WordPress language<\/strong><\/p>\n\n\n\n<p>From your WordPress dashboard go to Settings &gt; General &gt; Site Language. Change it to your language. WordPress and UsersWP will start using the translation files for your language.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/userswp.io\/documentation\/wp-content\/uploads\/2025\/02\/file-bvICK8x5RI-1024x176-1.jpg\" alt=\"\"\/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Translating Add-ons<\/h2>\n\n\n\n<p><strong>to translate the add-ons<\/strong> the procedure is <strong>identical<\/strong>. Only the location of the translation files changes:<\/p>\n\n\n\n<p>They can be downloaded from our website and not from wordpress.org.&nbsp;<\/p>\n\n\n\n<p>The URL is <a href=\"https:\/\/userswp.io\/translate\/projects\/\">https:\/\/userswp.io\/translate\/projects\/<\/a>.<\/p>\n\n\n\n<p>Once you are ready to <strong>load your translation file<\/strong>, the&nbsp;path for example for the Location Manager should look <strong>like this<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/wp-content\/languages\/plugins\/userswp-en_US.mo<\/pre>\n\n\n\n<p><br>Let&#8217;s take another example. For the Advanced search add-on the path should look like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/wp-content\/languages\/plugins\/uwp-search-en_US.mo<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Updating Translations<\/h2>\n\n\n\n<p>Sometimes a new release comes out with new features and in some cases, these new features require new text strings.<\/p>\n\n\n\n<p>When this happens, you&#8217;ll need to merge your translated PO file with the new language file provided with the update.<\/p>\n\n\n\n<p>To do so, you need to have both files on your desktop. For example:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">userswp-it_IT.po (your translated PO file)<br><br>userswp-en_US.po (the new translation file shipped with the plugin update)<\/pre>\n\n\n\n<p><br><strong>Open the first file<\/strong>&nbsp;(userswp-it_IT.po) with <b style=\"background-color: initial;\">POEdit<\/b>&nbsp;<\/p>\n\n\n\n<p>From the PoEdit menu, click <strong>Catalogue<\/strong> and then <strong>Update from POT file\u2026<\/strong><\/p>\n\n\n\n<div>Browse to the new PO file (userswp-en_US.po) and press the open button.<\/div>\n\n\n\n<div>That will merge the new language strings with your translated file. Make any changes as required, save and upload the new&nbsp;MO file with updated translation in the wp-content\/languages\/plugins folder.&nbsp;&nbsp; &nbsp;<\/div>\n","protected":false},"excerpt":{"rendered":"<p>UsersWP, by default, comes in English. (en_US) There are 2 options, creating a translation file or using an existing translation file. Translating Add-ons to translate the add-ons the procedure is identical. Only the location of the translation files changes: They can be downloaded from our website and not from wordpress.org.&nbsp; The URL is https:\/\/userswp.io\/translate\/projects\/. Once [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[41,7],"class_list":["post-134","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-how-tos","gd_placecategory-tips-tricks-more"],"_links":{"self":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/comments?post=134"}],"version-history":[{"count":0,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/134\/revisions"}],"wp:attachment":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/media?parent=134"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/tags?post=134"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/categories?post=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}