WordPress.org

Ready to get started?Download WordPress

Forums

Change language in Mystique theme (3 posts)

  1. robo.sarudy
    Member
    Posted 4 years ago #

    Hi,

    #01 I'm using Mystique theme, and I'd like to change the language of the theme from en to cz. I already have those files located on my computer. How can I do it? Do I have to write it into php somewhere?

    #02 How can I create my own language localization for this theme? I am talking about the .mo and .po files.

    Thanks in advance.

  2. @robo.sarudy

    Answer 1: This is my answer to a plugin question, but it's basically the same for themes. You need to match the WPLANG setting in wp-config.php file and the .mo file in the theme file.

    Only difference from plugin translation is that theme MO file name doesn't have to have the "textdomain" (leading text before the locale name).
    If you have a localized version of WordPress, take a look at the default theme directory.

    Answer 2: The easiest way is to open the PO file using Poedit. When you save changes, Poedit saves MO file (you need this for localization. PO is just a source file).

  3. robo.sarudy
    Member
    Posted 4 years ago #

    @Nao

    Thank you very much! I am sure this will help.

Topic Closed

This topic has been closed to new replies.

About this Topic