• Dani

    (@danicasati)


    Hi.
    I upload updated SPANISH version in wp-content/themes/languages
    and I delete original .PO and .MO files from virtue/languages folder.

    After a short time, packed version of SPANISH language is reverted automatically in site, so I need to re-upload.
    How can I make PERMANENTLY my updated language files in main theme and any child?

    • This topic was modified 6 years, 1 month ago by Dani.
    • This topic was modified 6 years, 1 month ago by Dani.
Viewing 7 replies - 1 through 7 (of 7 total)
  • hannah

    (@hannahritner)

    Hey,
    Were you making these changes in a parent theme or child? Your edits would not be saved with updates in a parent theme, which is the purpose of a child theme. Let me know if you need help getting a child theme going!

    Hannah

    Thread Starter Dani

    (@danicasati)

    If I upload to a child, translation doesn’t work.
    I uploaded to WP-CONTENT/LANGUAGES/THEMES folder, but original translation is reverted automatically, so I need to re-upload my translation everytime.

    Thread Starter Dani

    (@danicasati)

    Why default translation is restored automatically in WP-CONTENT/LANGUAGES/THEMES folder?
    It’s very annoying to check continuosly and re-upload my own translation.

    [ Please do not bump. ]

    • This reply was modified 6 years, 1 month ago by Dani.

    Hey,
    I suggest you use a child theme, You just need to add this function to your child theme functions file to make it work.

    function child_theme_slug_setup() {
        load_child_theme_textdomain( 'virtue', get_stylesheet_directory() . '/languages' );
    }
    add_action( 'after_setup_theme', 'child_theme_slug_setup', 20 );

    I hope that helps!

    Ben

    Thread Starter Dani

    (@danicasati)

    Actually, I’m using child theme.

    hannah

    (@hannahritner)

    Hey @danicasati,
    Glad you’re using a child theme. Did you add the function that Ben gave?

    Hannah

    Thread Starter Dani

    (@danicasati)

    I’ll try it tomorrow.
    Please, stay tuned.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Language problem’ is closed to new replies.