• Resolved Startwebsiting

    (@startwebsiting)


    Hi all,

    I am trying to change the default language of the theme but it seems that I am doing something wrong. First, my language doesn’t have the PO and MO files so I translated the default PO and MO and tried to upload the new (bg_BG. PO and MO) to the lang folder but it did not work. After that, I decided just to try to change the language to one that are already define, for example Italian (it_IT. PO and MO). However, it did not change the language again …

    I found that I have wp-config.php files in my wordpress installation (I remember that for some reason I needed to make a copy of the original file). One of them is located at the root directory and one of them is located at root directory/wordpress folder. I tried changing the define('WPLANG', 'it_IT'); to both of them but I did not work again …

    Do you have any idea what could be the issue here?

    Thank you,

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter Startwebsiting

    (@startwebsiting)

    Does someone from the theme developers have any idea what could be the issue here?

    Do I need to install the Polylang to activate the change of the default theme language?

    Thank you

    Did you see this Snippet?

    Thread Starter Startwebsiting

    (@startwebsiting)

    Hi Rdell,

    Yup, I saw that snippet. I started reading it from the top and I stopped on the following:

    Set up WordPress and Customizr

    First, read Setting up WordPress multilingual sites with Customizr, which explains the essentials of setting up WordPress for your languages. This will get you to a point where all the phrases like “Post navigation”, “Category archives”, etc. are automatically translated.

    I started reading the following snippet: Setting up WordPress multilingual sites with Customizr and I noticed two things:

    – the snippet says that wp-config.php file should be in htdocs folder. But I don’t really see this folder. I found that I have two wp-config.php files in my wordpress installation. One of them is located at the root directory and one of them is located at root directory/wordpress folder.

    – when I changed the define(‘WPLANG’, ”);to define('WPLANG', 'it_IT'); into the two wp-config.php files I have, it did not change the default language. Something should be wrong with my wp-config.php file.

    Thank you,

    Mmm, I don’t do a lot with Languages so not noticed that before.

    That seems misleading, and I’d recommend you use THE master wp-config.php in your root directory.

    htdocs is an Apache concept.

    /wordpress is where some ISPs build their standard WP installs. If you have both / and /wordpress then try to establish which is your operational system. When I started out I used /wordpress but then found that this wasn’t considered good practice against hackers.

    Thread Starter Startwebsiting

    (@startwebsiting)

    I’ve already tried different scenarios: first, I added define('WPLANG', 'it_IT'); only to the master wp-config file and it did not work. After that I removed it from the master file and I added it to the file under the /wordpress folder and it did not work again. I also tried adding it to both files at the same time. The result was the same …

    Thank you,

    I just changed wp-config.php to it_IT.

    Then went to Dashboard>Settings>General and changed Site Language to Italiano.

    Thread Starter Startwebsiting

    (@startwebsiting)

    It worked like a charm … that was the step I was missing 🙂 Thank you! You may want to update that snippet so people are not getting confused like me …

    Thank you very much!

    Just one question more related to this topic, do you know how I can translate the names of the months? Do I need some additional plugin like Polylang for that? I did not see the names of the months in the PO and MO files.

    Thanks!

    Thread Starter Startwebsiting

    (@startwebsiting)

    I will mark this topic as resolved.

    Thanks!

    Don’t Know is honest answer, but I’ve used Polylang once and it did the job.

    Thread Starter Startwebsiting

    (@startwebsiting)

    Understood. I will try that one out 🙂 Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Changing the default language issue’ is closed to new replies.