Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #360345

    AtahualpaSeyffert
    Participant

    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/

    #360346

    AtahualpaSeyffert
    Participant
    This reply has been marked as private.
    #360348

    AtahualpaSeyffert
    Participant

    I 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

    #360360

    Christopher
    Moderator

    Hi there,

    Please try poedit (http://poedit.net) to translate strings.

    Hope it helps.