• Resolved Avantart

    (@avantart)


    I created a german translation.
    I translated all strings using PoEdit
    I uploaded the file to the correct folder.

    This string from content-meta.php is not translated:
    ‘ <span class=”comments-link”><?php comments_popup_link( __( ‘Leave a comment’, ‘editor’ ), __( ‘1 Comment’, ‘editor’ ), __( ‘% Comments’, ‘editor’ ) ); ?></span>’

    so I had to edit the file in my child-theme, which is a no-go!

    Download of the files:
    https://drive.google.com/file/d/0B_IcPrnmgx9oX2swakJZZ0ZoS2s/edit?usp=sharing

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Avantart

    (@avantart)

    you can see it at

    https://www.realistan.de

    Hi,

    I downloaded your translation and copied it into the theme, defined my language as de_DE by adding this line in the WordPress config file wp-config.php:

    define ('WPLANG', 'de_DE');

    and I get the translated strings. See this screenshot.

    Did you define your language in the wp-config.php file?

    Thread Starter Avantart

    (@avantart)

    for sure de_DE is defined.
    I always install it with that.

    Please try it with a child theme.
    Which version of the theme do you use?

    I updated the theme today, and the content-meta.php is not in my child-folder…

    Can’t understand that

    I just tested it with a child theme and it works there too. I’m using Editor version 1.0.7 direct from here.

    Does it work for you if you copy your translation files into the parent Editor languages folder and activate Editor? That would help determine if it’s an issue with your child theme.

    Thread Starter Avantart

    (@avantart)

    Holy sh…t ;=)

    the language files WERE in the parent’s language folder and got deleted because of the theme update!…….

    But when I create a language folder in the child-theme and add the language files there, taking them out of the parent’s language folder, they are not read.

    So what to do? Re-Upload everytime after a parent theme update?????

    I think this is not the normal theme behaviour ;=(

    Glad to hear you figured it out! ??

    We’ll double check the language files and if they’re complete we’ll add them to the next update so when you update they’ll still be there.

    In the future, you can upload your translation files to your child theme’s /languages folder and load them with this code in your functions.php:

    function load_child_translations() {
    load_child_theme_textdomain( 'editor', get_stylesheet_directory() . '/languages' );
    }
    add_action( 'after_setup_theme', 'load_child_translations' );
    Thread Starter Avantart

    (@avantart)

    Hello!

    To include the language file into the theme’s package, that is ok

    but the second suggestion, to load it via functios.php is more safe for me as I sometimes use quite personal translations which do not follow the standard.

    For example, as we germans have formal and informal expressions I prefer “SIE” instead of “DU”, I prefer formal, polite style while most of the german internet prefers “DU”, adressing the site visitor quite informal, like a friend from school ;=)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Theme only partially translated’ is closed to new replies.