Tagged: Language, Localization
-
AuthorPosts
-
July 27, 2014 at 5:03 am #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.
July 27, 2014 at 5:23 am #296361Hey 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,
DevinAugust 9, 2014 at 1:11 pm #301987I’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)
August 9, 2014 at 1:14 pm #301988Might have something to do with the languagefiles and BELOW and BELLOW in the English translation …
August 9, 2014 at 1:21 pm #301990Yes; 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.August 9, 2014 at 1:31 pm #301993Pictures:
Scan files:
Edit MO file
Search for String:
Translate it and publish.
August 10, 2014 at 5:12 am #302152Thank you very much for sharing this @Pixelbits!
-
AuthorPosts
- You must be logged in to reply to this topic.