zozothemes available for any customization request made by client.

Okay
  Print

Translate WordPress theme with the Loco Translate plugin

1. Get the theme 

  • In this example we're going to add some translations to our theme Factrie
  • we assume you already know how to install WordPress themes. You don't need to activate the theme yet. Just have it installed into "wp-content/themes" and we can move on.

2. Check you can switch language 

Wordpress Dashboard >> Settings > General admin screen and scroll to the bottom. You should see a dropdown list with the label "Site Language". Changing this will set a new default language for all site visitors. Try it and you should see something like this:

we're going to set the language to Greek, listed under "Available > Ελληνικά" in the list. Once WordPress has downloaded the core language packs for Greek this entry will move to the "Installed" section.

If you don't see your language in the dropdown list you may have to install the core language packs manually.



3. Set up the folders

Before you do any translating, make sure the following folder exists on your site, and is writeable by the web server:

wp-content/languages/loco/themes  


4. Check the theme contains a POT file

  • Looking inside the Factrie theme folder we can see a "languages" sub-folder containing a file called "factrie.pot". This is a translation template provided by the theme author. It contains all the translatable phrases (or strings) that the theme defines.
  • If your theme has no template file, Loco Translate will warn you. In this case we know it exists, but just to be sure check it's at the following location:
wp-content/themes/factrie/languages/factrie.pot


5. Find the theme in the translation dashboard 

Click the admin menu item that says "Loco Translate" and select the "Themes" sub section. This will take you to a list of all available themes in your WordPress. You should see "Factrie" in the list regardless of whether it's your active theme. Click it and you should see the following screen:


Skip PHP Files Larger Than Size always Should be 2000k.



6. Add a new language 

  • Above the language list (which may be empty) you should see a button that says "New language" with an add icon. To start translating the theme into another language click this button and you'll be taken to a new screen where you can choose the language you want.
  • Select a language from the dropdown list of common languages. In this example we'll select 'Greek'. You could achieve the same result by entering "el" into the text field instead

7. Translate some strings

  • Once on the editor screen you'll see all the strings the theme has defined in its template file. Untranslated strings are shown in bold blue. To start with they will all be untranslated.
  • The basics of the editor should be fairly intuitive. Select the English string at the top and enter your translation in the pane at the bottom. You can ignore most of the editor buttons for now. We're just going to enter a translation and save it.


  • For our example we've picked out the phrase "Leave a Reply". Using the text filter at the top of the editor we can find this phrase quickly and select it in the list. Then we enter the text "Αφήστε μια απάντηση" into the bottom panel as our translation.
  • The string at the top now shows a star icon to indicate that our changes are not yet saved.
  • Continue to translate as much as you like and when you're ready click the Save icon in the editor toolbar. Congratulations, you've saved your first WordPress translation.

8. Viewing the translated theme String

  • Our new MO file will be loaded by the Omega theme (and only by the Factrie theme) when the Greek language setting is active. So, let's check it works..
  • blog post on your site and check near comment box the sample phrase we translated . We can see here "Leave a Reply will appear - below the title of every post.


 it Will work.

  • For Our core Plugin Translate same Format like as Theme Translation.
  • Some of our Strings will display from our core Plugin.
  • So we Need to translate our Core Plugin too for language translation.

  • Wordpress Dashboard >> Loco Translate >> Plugin Here you can find Our core plugin Example Factrie Core
  • Create New language >> Select language Example (Example ) Greek we chose before for theme translation. 
  • Select path for pot generation.
  • Finally you can start translate Factrie Core plugin file. 
  • This will also work like Theme string translation.

For More Questions Refer this site

https://localise.biz/wordpress/plugin/beginners