Translation is wrong at button!
-
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?
Someone know ?
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
Edit your language file (.po) and change “Läs resten av denna inlägg” to “Läs mer”
<?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.
Where do I find the language file?
/graphene/languages/sv_SE.po
Assuming your Language is Swedish
I found it, how do I now change it and what do I change ?
Translating the theme – http://wiki.khairul-syahir.com/graphene-theme/wiki/Translating_the_theme
Viewing 10 posts - 1 through 10 (of 15 total)
- 1
- 2
- You must be logged in to reply to this topic.