Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
To make that clear: I just want to report this as a bug, because other German users will also have this problem. Just try it by yourself. I will update my theme when you have released the new translation file. Thank you in advance.
Because we were running out of time we solved this issue by using the real-time-find-and-replace plugin. It’s a dirty solution but at the moment we are ok with that.
But you can check the missing translation by viewing the attachment of my first post in this thread (“Posted by” instead of “geschrieben von”).
This reply has been marked as private.Okay, I updated the theme. It’s now at version 3.10 and the .po file is from 2015-08-11. Same problem. Did you tried the German translation? Is it working for you? It’s all about the “By %author% …” or “Posted by %author% …” parts. The rest seems to be translated correctly.
It seems that only strings like “[Posted] By %autor% on %date% in %category%” are not translated. And I checked those translations in the de_DE.po from 2015-07-24 02:26+0100 (line 11718):
#, fuzzy #~ msgid "" #~ "By <a href=\"%2$s\" rel=\"author\" itemprop=\"author\">%1$s</a> on <span " #~ "class=\"date updated\">%3$s</span>" #~ msgstr "" #~ "geschrieben von <a href=\"%2$s\" itemprop=\"author\" class=\"fn\">%1$s</" #~ "a> auf <span class=\"date updated\">%3$s</span> in %4$s"
msgid does not fit to msgstr. The first has only 3 word placeholder whereas the second has 4. This might be a problem.
See also line 5486ff, 5496ff, 5521ff and 11772ff.
Sorry, no success. Does the German translation work in your local installation?
Thank you, Ed. Could you please try it with the German language file de_DE.mo?
I’ve never changed any .po or .mo file. I’m just using the provided de_DE.mo from the latest update.
This reply has been marked as private.This reply has been marked as private.Do you mean I should use another plugin to search and replace theme strings, which are not translated? That would be a dirty solution because the theme already has the necessary translations. So the actual problem (those translations seem not to be used) isn’t solved by the plugin, right?
This reply has been marked as private.This reply has been marked as private.I will give you an example. The following part (single.php:222) is not showing up translated:
<?php echo sprintf(__('Posted by <span itemprop="author" class="fn">%1$s</span> on <span class="date updated">%2$s</span> in %3$s', 'swiftframework'), $post_author, $post_date, $post_categories); ?>
while the following (single.php:224) is translated:
<?php comments_number(__('0 Comments', 'swiftframework'), __('1 Comment', 'swiftframework'), __('% Comments', 'swiftframework')); ?>
-
Posted in: We hit Power Elite.