Upgraded to WordPress 6.0 and have issues? Please check the hotfix which you need to apply.

Okay
  Public Ticket #1773440
change the widget and blog language
Closed

Comments

  • REMY started the conversation

    I am in process to change the language of some modules like the widgets (I want to translate "Post by" by the french words  and also some items of the blogs ( for example "No comments " ) and when I read your current documentation , I have the following trouble with POEdith :

    it is says : Open your wp-config.php file in a text editor and search for: define ('WPLANG', '');

     Edit this line according to the .mo file you've just created, e.g. define ('WPLANG', bakeryfr_FR');

    but there is no "define WPLANG " in my wp-config.php file !!! my theme version is 2.3

    Can you tell me what is wrong ?

    Thanks in advance

    Remy 

  •  228
    Milingona replied

    Hello Remy,

    Bakery theme comes with a POT file that can be imported into PoEdit to translate. You need to perform the following steps in order to add your translation:

    • Open PoEdit and go to File > New catalog from POT file.
    • Choose bakery.pot and enter your name and details
    • Save your .po file. Name it based on what you are translating to, i.e., a French translation is saved as bakery-fr_FR.po .
    • Save after translating strings. The .mo file is generated automatically.
    • Finally, upload the translation to wp-content/languages/themes/bakery-fr_FR.po

    Kind regards,


    Milingona Support

    Follow on     Envato     Facebook     Twitter

  •  228
    Milingona replied

    UPDATE: To change your site language simply go to Settings > General > Site Language.


    Milingona Support

    Follow on     Envato     Facebook     Twitter

  • REMY replied

    Thank you very much for your support ,

    Unfortunatelly setting the site language via general settings doesnot translate all the theme sentences .
    With your  reply , it works fine with the loading in the correct directory that you mentionned below , I can translate the widgets and others items.
    My mistake was to follow up strictly the documentation which is speaking about another existing directory very similar !!
    "Find bakery.pot file under Bakery theme folder /lang (e.g. /wpcontent/themes/bakery/lang/bakery.pot) "
    and then "When you have finished translating, go to File → Save as… again to generate the .mo file. "
    It should be good also to remove from the doc the paragraph about WPLANG in wp-config which seems no more valid.

    Once again thank you for your efficient reply !
    Remy

  •  228
    Milingona replied

    Hi Remy,

    Thank you very much for your feedback. We do agree that documentation needs improvement. We have been working for a while on a new online documentation but unfortunately couldn't release it yet.

    Best regards,


    Milingona Support

    Follow on     Envato     Facebook     Twitter