Translate Contango child theme

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #570
    jimmythetulip
    Participant

    I followed this step-by step guide for translating the theme.

    http://designorbital.com/community/threads/translation.145/#post-544

    I also made a folder inside the contango-child theme folder named: “languages” and placed the .po and .mo files here. But it didn’t work.

    Have I missed something?

    #1485
    admin
    Participant

    Hello,
    Please follow the article about the translation of Child themes.

    http://codex.wordpress.org/Child_Themes#Internationalization

    Thanks

    #1486
    jimmythetulip
    Participant

    Hi Admin
    That didn’t work for me, so I’ve put my translated strings inside the functions.php and that worked !

    [PHP]function change_translate_text( $translated ) {
    $text = array(
    ‘1 Comment’ => ‘1 Kommentar’,
    ‘% Comments’ => ‘% Kommentarer’,
    ‘Edit’ => ‘Rediger’,
    “The following is a list of the latest posts from the blog. Maybe it will help you find what you’re looking for.” => ‘Følgende liste viser de seneste indlæg. Måske vil det hjælpe dig med at finde det du søger.’,
    ‘Reply’ => ‘Svar’,
    ‘said:’ => ‘skrev:’,
    ‘Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.’ => ‘Intet fundet’,
    ‘nothing found’ => ‘Intet Fundet’,
    ‘Search for:’ => ‘Søg efter:’,
    ‘search’ => ‘Søg’,
    ‘Leave a comment’ => ‘Skriv en kommentar’

    );
    $translated = str_ireplace( array_keys($text), $text, $translated );
    return $translated;
    }
    add_filter( ‘gettext’, ‘change_translate_text’, 20 );[/PHP]

    #1487
    admin
    Participant

    Thanks for the feedback.

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