Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #29141

    Please, suggest, where do I find these lines for translation?

    #139825

    Labdien!

    Have you tried going to Catalog > Update from sources in Poedit and see if new strings will be added?

    Regards,

    Yigit

    #139826

    Yes, I did, but this string doesn’t appear there. I did find this line in some folder before but after update translation is dismissed and I cannot find where it can be changed.

    Also some of the lines that are translated “Logged in as… Log out?” “Post comment” that are translate in the .po file still appear in English on the webpage.

    #139827

    Please use Codestyling: http://wordpress.org/plugins/codestyling-localization/ to translat the plugin.

    Install the plugin, go to Tools > Localization and select “Themes”. Then search for “Enfold” in the list and click on “Add new language”. Then select your language from the list and click the “create po-file” button. Click on “Rescan” to fetch all text strings. Then click on “Edit” and translate the required strings from the “avia_framework” textdomain. At least click the “create mo file” button next to the “Textdomain” selection dropdown (top left corner). If you still can’t find the text strings in the generated po file you can use the title filter to change the text. Add following code at the bottom of functions.php

    add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
    function fix_single_post_title($args,$id)
    {
    if ( $args['title'] == 'Blog - Latest News' )
    {
    $args['title'] = 'MY TEXT';
    }

    return $args;
    }

    and instead of MY TEXT insert your translation.

    The other text strings you mentioned ( “Logged in as… Log out?” “Post comment” , etc.) are not part of the theme code and you can’t translate them with the theme po/mo files. You maybe need to update the translation of wordpress ( http://codex.wordpress.org/WordPress_in_Your_Language ) or a plugin adds these text strings to the website – then you must translate the plugin.

    #139828

    Thank You, Dude and Yigit.

    Everything solved. I don’t use codestyling plugin because it indicated error (at least with previous version of Enfold), but translate .po file directly. Added code to function.php and translated extra lines in wordpress .po file.

    Just in case somebody will use this query to solve his issues as I usually do. Searching forum provides answers to most questions I have. Great job, guys!

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Translate "Blog – Latest News"’ is closed to new replies.