Translation is wrong at button!

  • GrafenGruppen

    #3525

    Hi!

    I wonder how to change my <!–more–> button. It is wrong translated in Swedish.

    It says “Läs resten av denna inlägg” = “Read rest this post”

    I want it to be “Läs mer” = “Read more”

    How can I fix this?

    GrafenGruppen

    #24668

    Someone know ?

    GrafenGruppen

    #24670

    I am trying to change the text in functions.php but I get an error when I update the text “Read More” to “Läs mer” I get this message “error 404 php”

    http://grafengruppen.se/?s=theme%2520editor.php&search_404=1

    Anonymous

    #24671

    Edit your language file (.po) and change “Läs resten av denna inlägg” to “Läs mer”

    Anonymous

    #24672
    <?php
    function graphene_filter_gettext( $translated, $original, $domain ) {
    $strings = array(
    'Läs resten av denna inlägg' => 'Läs mer',
    );
    if ( ! empty( $strings[$original] ) ) {
    $translations = &get_translations_for_domain( $domain );
    $translated = $translations->translate( $strings[$original] );
    }
    return $translated;
    }
    add_filter( 'gettext', 'graphene_filter_gettext', 10, 3 );
    ?>

    Give some attention to encoding.

    GrafenGruppen

    #24673

    Where do I find the language file?

    Anonymous

    #24674

    /graphene/languages/sv_SE.po

    Assuming your Language is Swedish

    GrafenGruppen

    #24675

    I found it, how do I now change it and what do I change ?

    Anonymous

    #24676

Viewing 10 posts - 1 through 10 (of 15 total)

  • 1
  • 2
  • You must be logged in to reply to this topic.