Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #296353
    • If you are not happy with the results below please do another search
    • Share this entry

    Yigit suggested me to use “codestyling-localization” https://kriesi.at/support/topic/share-this-entry-a-language-missing-string/
    I thought it is a different solution, but it seems same as Poedit(I use pro version), but what I meant for language string missing is even you have had translated the phrase, it just not work at all!!

    Please help, I don’t want to edit it from theme file.

    #296361

    Hey fendyhuang!

    If you check the search.php file in the theme files you’ll see:

    
    echo "<p>".__('If you are not happy with the results below please do another search','avia_framework')."</p>";

    And the same for the sharing text:

    
    $this->html .= 	apply_filters('avia_social_share_title', __("Share this entry",'avia_framework'), $this->args);
    

    That should correctly be pulled up when scanning. There isn’t any other support we could add to make it more translation ready.

    Regards,
    Devin

    #301987

    I’ve searched this forum and also looked at the other solutions, but this string IS translated in the Dutch PO/MO files, but it just is not translating in the theme. (NOTE: I’m using a child theme, but I’ve got no search*.php in there).

    One of the offered solutions was to use codestyling localisation (https://kriesi.at/support/topic/search-page-no-result-string-no-translation/) but that too did not fix the issue.

    There must be something else wrong with this if more people have this same issue.(see this link)

    #301988

    Might have something to do with the languagefiles and BELOW and BELLOW in the English translation …

    #301990

    Yes; that was it. I used Codestyling-localisation plugin to rescan the themefiles. Then it found that in the theme-files BELLOW was changed to BELOW, but the languagefiles just weren’t up-to-date yet.

    Now they are; and it works.

    So if you want to fix this:
    1) create new .PO translationfiles with the CodestylingPlugin (‘scan’ or Dutch:’inlezen’ )
    2) translate this sentence yourself
    3) publish the .MO
    4) see translation in effect.

    #301993

    Pictures:
    Scan files:
    Codestyling Localisation

    Edit MO file
    step 2: edit the MO file

    Search for String:
    Search for the translation string

    Translate it and publish.
    Translate it, save and publish the MO file.

    #302152

    Thank you very much for sharing this @Pixelbits!

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