Okay
  Public Ticket #2443895
Internationalization - Switch to different language
Closed

Comments

  • Luqman started the conversation

    I followed translation guide as mentioned here (https://wpamelia.com/faq/). Once I created a language file for the language I wanted, how I set so that Amelia use this language instead of English by default?

  • [deleted] replied

    Hello Luqman, 

    Thank you for your purchase. 

    You need to create a folder for your language with the .po and .mo files in it, name the folder as the language code, you can find your language code here and add that folder to the location ../wp-content/plugins/ameliabooking/languages/. And then deactivate and activate Amelia on the Plugins page.

    Please note that this translation will be lost with each update of Amelia, so keep it on your local machine and add it after you update the plugin. 

    Let me know if this helped!

    This is the instruction for translating Amelia to a new language:

    Words can be translated using POEDIT or Loco Translate for example.

    If you want to use POEDIT then this is the instruction:

    1. Download Amelia from our TMS Store 

    2. Unzip the downloaded .zip file.

    3. Download and install POEDIT

    4. Open the program and open the file from the extracted folder on your computer ameliabooking/languages/en_US/wpamelia-en_US.po.

    5. Translate all the strings to your language.

    6. Save the file as it suggests you to (the language code; for example wpamelia-id_ID.po if your language is Indonesian) and it will generated a new  wpamelia-id_ID.mo file. Find your language code here

    7. Go to ameliabooking/languages/ folder and make a new folder and name it as the language code for your language (in our example for Indonesian it is id_ID) and  then copy these two files - wpamelia-id_ID.po and wpamelia-id_ID.mo there and then copy the whole folder id_ID back to your website to the location ../wp-content/plugins/ameliabooking/languages/.

    Of course, you will use the language code of your language (we use Indonesian language as an example)

    Please note that this translation will be lost with each update of Amelia, so keep it on your local machine and add it after you update the plugin. Or you can send us your translation so we can include it in our next major update.


  • Luqman replied

    Once I have the language file together with other translation that is readily provided, how could I instruct the plugin to use the translation for the language I just created?

  • [deleted] replied

    Hello Luqman, 

    You need to add the files that you created (.po and .mo file) with the correct (your) language code that you can find here in a folder with the code of the language and then add that folder to Amelia at location 

    wp-content/plugins/ameliabooking/languages 

    deactivate and activate Amelia back on and delete cache. 

    Let me know if this helped. 

  • Luqman replied

    Since in the languages folder there is bunch of language files, does it mean I have to change my WordPress language like this tutorial so that Amelia knows which language to use?

    https://www.hostpapa.ca/knowledgebase/change-wordpress-language/


  • [deleted] replied

    Yes, your WordPress language setting applies to Amelia, so the language you choose in your WP-> Settings -> General will be the language chosen in Amelia.