Localize WP Cover

Viewing 15 posts - 1 through 15 (of 18 total)
  • #1813
    perspexy
    Participant

    Hi, I started using WP Cover today, and am about to translate. However: shall I help you by adding the Dutch translation?

    #1814
    Daniel Tara
    Keymaster

    Hi,

    Sure thing, any user contribution is welcome! I’ll add your translation to the theme and credit you for it.

    #1815
    stande
    Participant

    Hello,

    Thanks a lot for your theme – I like it and used for my site http://www.ovsyanka.co.uk/. I would like to translate it to Russian, but don’t understand how I can do it. Can you please help me in this?

    Thanks.

    #1816
    Daniel Tara
    Keymaster

    First you’ll need to [url=http://www.poedit.net/download.php]download Poedit[/url] which is the program that handles translation files.

    Then, grab a translated file, either de_DE.po or ro_RO.po, make a copy of it and name it ru_RU.po

    Open it with Poedit and you’ll see all the text strings in English in the left column. Replace them with the Russian translation in the right column.

    #1817
    Nemesis
    Participant

    Hey,
    I’m using the cover-wp theme. I really like it and I managed to translate almost everything to polish as I wanted to (thanks for help with that). But I still have a tiny problem. The pages listed in menu just below the header are all in polish except for ‘Home’ I can’t find a way to translate it :/
    http://www.biurowodzislaw.pl/

    #1818
    Daniel Tara
    Keymaster

    I haven’t localized that part, you can do it yourself if you want. Find this line:

    <li<?php if(is_home()) echo ' class="current_page_item"'; ?>><a" href="<?php echo home_url(); ?>/">Home</a">

    replace it with:

    <li<?php if(is_home()) echo ' class="current_page_item"'; ?>><a" href="<?php echo home_url(); ?>/"><?php _e('Home', 'cover-wp'); ?></a">

    Watch out, there’s a typo added automatically, a ” after the a, just remove the “.
    You’ll have to update the catalog afterwards.

    • This reply was modified 12 years, 11 months ago by Daniel Tara.
    #1819
    Nemesis
    Participant

    It’s working. Thanks a lot and Merry Christmas πŸ˜‰

    #1820
    oro77
    Participant

    Sorry but I did not find the file to edit in order to change the “Home” string.

    Thank you in advance.

    #3419
    Angelo
    Participant

    I’have just started using WP Cover, but I cannot see how to change from English language to another one available.
    What I mean is that I cannot find the command to change language.
    Thanks
    Angelo

    #3420
    Daniel Tara
    Keymaster

    To change the language you need to open the wp-config.php and edit the line

    define( 'WP_LANG', '' )

    Insert the desired language between the empty brackets, for example:

    define( 'WP_LANG', 'de_DE' )
    #3423
    Angelo
    Participant

    Thanks.
    I have checked WP_LANG, and I have seen that there is already “define( WPLANG, it_IT )”, that’s fine by me beacuse I’m looking for the italian version. I have seen that there is the it_IT.po file with all the traslation needed.
    Nevertheless, the traslation is not done right. On http://www.piccolidavide.org, that is the blog that I’m setting up, some words are in Italian some are in English. For example, “Popular”, even if is translated with “Popolare” in it_IT.po, is shown as Popular.

    #3430
    fw190
    Participant

    You can always do it the hard way and edit the files inside the wordpress editor. I used to do it this way till I found this topic and the needed program.

    #3431
    Angelo
    Participant

    Thanks for the answer.

    While awaiting I tried differently and it worked out: I did a copy of the de_DE.po file changing the name into it_IT.po and replacing this new created file to the existing it_IT.po one.

    I have now another problem: I translated “Featured” into “In evidenza”, I created the new category “In evidenza” but it doesn’t work. What I mean is that the post created in the category “in evidenza” are not shown in the corresponde section of the homepage.
    Thanks
    Angelo

    #3432
    Angelo
    Participant

    Problem solved , thanks. I change 4 files (404.php, home.php, search.php. theme-options.php)
    Thanks

    #3443
    Daniel Tara
    Keymaster

    It may be because this theme hasn’t been updated quite a while. I can see some lines of code necessary for localization are missing. An update is planned.

Viewing 15 posts - 1 through 15 (of 18 total)

Tagged: 

You must be logged in to reply to this topic.