-
AuthorPosts
-
August 16, 2015 at 5:32 am #360345
Hi there,
i had the same problem as Naggenum. i put this code into my functions.php:
add_filter('gettext', 'translate_text_to_german', 20, 3); function translate_text_to_german($ttxt, $txt, $d) { switch ($txt) { case 'Submit': return 'Posten'; // Change text here break; case 'Leave a Comment': return 'Kommentar hinterlassen'; // Change text here break; case 'Your Comment': return 'Ihr Kommentar'; // Change text here break; } return $ttxt; }
It worked like a charm for the submit button. But the rest didnt change…
Take a look: http://2015.heidelberger-schloss-gastronomie.de/gruseldinner-jack-the-ripper/
August 16, 2015 at 5:32 am #360346This reply has been marked as private.August 16, 2015 at 5:40 am #360348I would like to translate the entire section shown in the screenshot.
http://www.ur-upload.de/image/cP8
I looked for a plugin to edit .po and .mo files… I used to do this with the plugin “Codestyling Localization”. But when i looked for it today i couldnt find it anymore. and qith qtranslate i had to change to many file attributes to make it work…
Do you have a suggestion for a plugin or another easy way to change these few strings? These would be the only things (language wise) i would like to change.Kind regards,
Atahualpa
August 16, 2015 at 6:00 am #360360 -
AuthorPosts