Also, if you can, please upload it to our shared translations page. Image - wp-admin > Loco Translate > Plugins > Ultimate Member. Open the language translation you need or click the 'New language' button to create a new one. It should be named as the starting file, with your language's tag at the end of it. Go to wp-admin > Loco Translate > Plugins > Ultimate Member. A POT file is a 'PO Template', which poedit can handle quite nicely, I believe. The PHP code will scan your plugin's directory and build a POT file for you. Once you have finished translating the plugin, save the translation to have Poedit generate MO files (or generate the MO files yourself using your editor), then upload the generated PO and MO files in the same directory the starting PO file was located. Replace the path to your plugin's folder with the relevant local copy of the plugin, and use your own plugin's slug for the pot file name. In Poedit this can be done from the 'Properties' view: You should access the settings and credit yourself. You're all set to start translating the plugin! Simply translate into the selected language the phrases provided on the left. You can use Poedit to pull all the strings from any plugin or theme you’re working on and use this to generate a POT file. This Plugin by (again) Heiko Rabe does a pretty good job with helping translating your plugin. You can either select it from the list of languages provided. Step 1: Create a POT File for Your Plugin or Theme. Select the language you wish to translate to. Select the PO language file, that you will use as baseģ. Create a new translation PO file starting from one of the existing PO files:Ģ. To create a new translation, do the following:ġ. We are going to use 'poedit' as an example. To begin translating you will need to use the currently existing 'en_US' language file as a starting point. /language/-en_US.po - The plugin language file.The PO Files you will need is the following: A copy of the plugin you're going to translate, or at least of its PO files.We will use 'Poedit' for images and examples. Under Site language, change it to the same language as your Poedit translation.Ĭheck and test your site if it's working.Creating a new Translation for one of our Plugins requires that you generate the necessary PO and MO files, for both the administrator and site sections. mo to the said location, go to your WordPress Dashboard > Settings > General. If you do not have this languages folder in your wp-content folder then simply create it.Ħ. Upload these two files in this location by accessing your site via FTP or your hosting's file manager program, once connected go to wp-content/languages/themes (when dealing with themes) or wp-content/languages/plugins (when dealing with plugin translation). Once you click save Poedit will automatically generate. The text domain of any plugin(if it's translatable) can be found in the main plugin file (usually named the same as the plugin itself): The text domain of any theme (if it's translatable) can be found in the style.css file of that theme: Example: woovina-en_US for US English, woovina-vi for translating WooVina theme to Vietnamese. pot file that we provide, its quite simple to use. The format should be theme-text-domain-language_code. To create a translation of one of our plugins, you can use a program called Poedit. Make sure that you saved the file in the correct format Once you have your language selected, you can now begin the translation For the list of language codes WordPress uses, please click this Link. This needs to be followed otherwise the translation won't work. Note : WordPress uses a language code for every language there is. Choose the language you would want it to be translated into pot of the theme/plugin you wish to translateģ. Open the Poedit software > Create new translationĢ. Once you have both, follow the instructions below. pot file of your theme or plugin - You can get this from the zip file of the theme or plugin that was downloaded from the Purchase History of your account, it's usually in the languages Before you begin the translation, you will need the following:
0 Comments
Leave a Reply. |