![]() ![]() Phew! That was a long section, but now you have a translated theme! Congrats. Save that as your language code, so in this case, it'd be de_DE.mo like this mo for short, so in Poedit Go to File > "Compile to MO" like this: Next, we need to create what's known as a "machine-readable file" or. Now you've added your translations, let's make sure we save it, so in Poedit Go to > File > Saves As, name it in your language code, so for this article as it's German, we'd use "de_DE.po", save it anywhere on your computer, as we'll upload it via FTP (or it should allow you to save it straight to FTP anyway). Note: At this point before moving on to the next steps, you can translate as much as you want, just go through the file and click on each string in Poedit and add your translation, once you've completed that, follow the steps below. ![]() Once you've brought up the search bar which should look like thisĪnd click "next", which will take you to that specific string like thisĪs you can see, right now our translation for this string is empty, so let's change that.Įnter in your translation for that string, so in my case, that's "Unten sehen Sie alles, was wir gefunden haben zu Ihrer Suche nach" As I'm translating in German. On Mac, just hold cmd + f to bring up the search bar. Poedit has a great feature, which allows us to find any string we want. So the string we're going to translate as mentioned earlier is "Below you'll see everything we could locate for your search of". Now it's time to actually translate the theme, as we covered further up, for this purpose of this example, we're just going to translate one string, but you can translate as much or as little of the theme as you want and what you've translated will still work. Once you've done that click "ok" and your new. This would be the country code or you can use a country name, so for German, we could use de or just type "German". Creating a new TranslationĮnter the language of the translation itself. Note: If you don't have the same option, right click and download the x.pot file and then open with Poedit, either way, is fine. Right-click on the pro.pot file and click "open with Poedit". Now click on the framework folder, and then the "lang" folder, so the complete path you should be at now is wp-content/themes/pro/framework/lang You should see the pro.pot file within the lang folder like this. Navigate to your wp-content/themes/pro/ folder, normally located in /public_html/ (if it's the root of your install), if you have multiple domains it might be something like /public_html//wp-content/themes/pro It's worth noting here though that not all file structures will be the same if you get stuck at all, open a support topic and we'll be right along to assist. Once you're logged in, you should see a file structure similar to this Open up your FTP program and login with your FTP credentials, if you don't know where to find these, you can use the cPanel file manager or ask your host. We will also be referencing Pro, but the same instructions work for X. We'll be using Coda for this demonstration. This could be in a local development environment, but for the purpose of this article, we're going to use FTP. To begin translating, open the directory where your theme (X or Pro) is loacated. Congrats! Poedit is now installed and ready to use. Head to Poedit and click on the free download buttonĬlick on open and unzip/uncompress the zip file, the file just contains the Poedit application. It's simple to use and quite straightforward. Downloading Required Resourcesįor the translation, we'll be using a tool called "Poedit" Poedit is a translation tool for translating strings from there original language to the one you want. The specific string we're translating is "Below you'll see everything we could locate for your search of" for this article, we're going to use Deutsche, but you can translate in any language and we'll cover that below. Getting Startedįor the purpose of this article, we'll just be translating one string as an example, but this same principle applies to translating the whole theme. We'll be covering one main method of translation and then have a brief section on other ways you can translate. X downloaded and installed on your WordPress siteįTP/SFTP details (for uploading the translation) This article won't cover translating plugins, if you'd like to learn about translating plugins, here are some great articles you can check out.īefore we get started, you should have the following: This article will cover translating the X theme into any language apart from the default (en_US). ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |