![]() ![]() Now you just have to tell WordPress to use the translation you created! 6. mo file and saves it in the same directory on your hard drive.Īfter saving the files to your hard drive, use an FTP client to upload both files to the “languages” folder in your theme’s directory. po file from Poedit, the application automatically generates an additional. Just highlight each line, one by one, and enter the translation in the box in the bottom left corner of the Poedit interface. ![]() That’s how those lines of text got there. pot file has already compiled everything you need to translate. Here’s where your language skills come in! Go through every line of human-readable text in your theme and translate it to the target language. Poedit creates these extensions automatically, but here’s a lengthy list of country and language codes if you’re interested. A Uruguayan Spanish translation would be es_UY.po, and a Vietnamese translation would end up being vi_VN.po. In our case, we’re using Peruvian Spanish, so our file will be es_PE.po. po file will be titled according to abbreviations for the language and associated country. After you’ve entered the language, open a set of parentheses and enter the name of the country. Just begin typing the language and Poedit will fill it in for you. Poedit saves your translation according to the language and an associated country (for localization). If you didn’t save a local copy of your theme, don’t worry! You can download it from the members’ area of our site. You should be able to find it in the folder titled “languages” within the theme folder. You will see this screen:Ĭlick the “Create new translation” option in Poedit and browse your hard drive for a local copy of the. When the download completes, unzip the file and open the application. It’s also free to use, which eliminates a major barrier to entry for first-time translators. Poedit has been around for several years and is a favorite among developers and translators in the WordPress community. There are several translations editors out there, some of which we’ll consider toward the end of this article. Let’s get started by downloading a free translations editor. pot file for a different theme, refer to this primer in the WordPress Codex. ![]() If you’re not translating one of our themes and you need to generate a. Using Make as an example, we’ll show you how to translate the theme to Spanish – Peruvian Spanish, to be precise! Translating our themesĮvery theme from The Theme Foundry comes with a. Now let’s go over how to translate one of our WordPress themes to another language. po file to this file type so that WordPress can use it. mo: This is the “machine object file.” When your translation is complete, you will convert or export your. It’s the file we’re about to show you how to edit. po: The “portable object” file contains the original text and the translations. It doesn’t contain the translations themselves. Since it’s just a template, it serves as the basis for your translation. pot: This file is a “portable object template” that contains all of the text to be translated. Here’s a quick rundown of the three file types and what they contain: But first, let’s examine the three types of files involved in the translation process. We’re about to show you how to translate our themes. Tip: Use a virtual private network to research common terms that appear on search engine results pages in other countries. Localization can help you tailor a theme to the vernacular of a specific country or region, if you so desire. For example, our friends in the UK might “get ‘round to” a task while Americans simply “get to” it. Translating a theme can also help you “localize” it for a specific lexicon. People all around the world use WordPress! Why translate a WordPress theme? For starters, around 44% of WordPress websites are written in a language other than English. All that’s left is performing the actual translation, which is where you (or a professional translator) come(s) in. Instead of making you create a file containing the human-readable text from a particular theme, we’ve included that file with the theme itself. Translate our WordPress themes to another languageĪll themes from The Theme Foundry come translation-ready. ![]()
0 Comments
Leave a Reply. |