Theme language

  • This topic is empty.
Viewing 15 posts - 1 through 15 (of 27 total)
  • Author
    Posts
  • #668
    Giona
    Participant

    Hi,
    i want to translate your theme, but i can’t find a language file and i’m not sure how to proceed.
    (i’m a noob with WP)

    I guess i should uncomment this line

    Code:
    //load_theme_textdomain(“hot_wine”, get_template_directory() . ‘/languages’);

    in functions.php…and then what?

    Thanks

    #1737
    Ivan Milic
    Participant

    Yes, name of pot file should be;

    hot_wine-xx_XX.pot

    #1743
    Giona
    Participant

    Thanks ivan…what about the file’s content?

    #1744
    Ivan Milic
    Participant
    #1745
    milos
    Moderator

    Hi Giona,

    This is .po file for English language for Hot Wine theme. You can create your own .po file using Poedit for Windows or Mac or similar plugin for WordPress.

    Thanks,
    Milos

    [attachment=3430]en_US.zip[/attachment]

    #1738
    Giona
    Participant

    Thanks a lot for your quick and clear replies!

    #1739
    Giona
    Participant

    I tried to save the file as:
    [ul]
    [li]it_IT.po[/li]
    [li]hot_wine-it_IT.po[/li]
    [li]it_IT.pot[/li]
    [li]hot_wine-it_IT.pot[/li]
    [/ul]

    but none of them seem to work. Should i add/edit anything else in the code? Thanks.

    #1740
    Giona
    Participant

    I also tried the “CodeStyling Localization” plugin, with no success.
    How can i help you to help me? Do you need access via ftp/wp dashboard?

    Thanks

    #1746
    milos
    Moderator

    Hi Giona,

    Translating of WordPress themes is not that easy, however, there are a lot of tutorials on the Internet. Here’s one of them http://premium.wpmudev.org/blog/how-to-translate-a-wordpress-theme/

    Thanks
    Milos

    #1741
    Giona
    Participant

    Sorry, let me be clear…
    I’ve done this:

    [ol]
    [li]Localized WordPress to italian[/li]
    [li]Set WPLANG to it_IT in wp-config.php[/li]
    [li]Uncommented this line in your theme’s function.php:

    Code:
    load_theme_textdomain(“hot_wine”, get_template_directory() . ‘/languages’);

    [/li]
    [li]Translated your en_US file with Poedit ([strike]attached[/strike] can’t attach)[/li]
    [li]Uploaded it (w the mo version) to wp-content/themes/wp_hot_wine/languages/[/li]
    [li]Renaming the file to it_IT or hot_wine-it_IT doesn’t work neither[/li]
    [/ol]

    I don’t see what i’m missing, yet the translation don’t show up.

    #1742
    Giona
    Participant

    Hi, i still can’t get the translation to work.
    What info do you need in order to help me?
    Thanks

    #1753
    milos
    Moderator

    Hi,

    Please send me access of your site privately (FTP and WordPress access) using Report to moderator button here.

    Thanks,
    Milos

    #1755
    milos
    Moderator

    Access received, I can see your site, but my WordPress credentials are not working. I tried several times today.

    Please check.

    #1757
    milos
    Moderator

    Unfortunately, I still can’t access your WP admin. Now, I am getting “403 forbidden” message.

    Please check.

    #1760
    Giona
    Participant

    I can see and work on the site normally, probably it’s just a matter of time while the dns gets updated.
    Please add that line to your hosts file if needed.

Viewing 15 posts - 1 through 15 (of 27 total)
  • You must be logged in to reply to this topic.