Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #226308

    Hi!!
    Congratulations for your theme!!
    I have a doubt, I installed the parent theme, and the child theme from the beginning, I need to translate the theme to Catalan, I installed the Codestyling Location Plugin and already created the .po .mo, the translation I’m doing appears, but only if I do it in the parent theme.
    I’ve copied and pasted the “lang” folder in the child folder, but when I edit the .po file from the child/lang/ folder the translation is not appearing!
    Do I need to edit the funtion.php or anything else!!??
    I will like to keep the translation when we update the theme!
    Thanks lot!

    #226393

    Other issue… I’ve installed also woocommerce pluging….how do I do to Translate to Catalan and keep it safe from updating te plugin?
    Thanks!

    #226559

    Hi!

    Add this on the child theme’s function.php:

    add_action('after_setup_theme', 'avia_lang_setup');
    function avia_lang_setup()
    {
    $lang = get_stylesheet_directory()  . '/lang';
    load_child_theme_textdomain('avia_framework', $lang);
    }

    Regards,
    Ismael

    #226686

    Hi Ismael,
    thanks for the answer, I just copy and paste this code in the childtheme/ funtion.php , I’ve been working in the translation in Poedit, paste it to lang in child folder, but now the translation does not appers, even if I paste .po .mo in the parent lang folder. It is like the theme does not know is catalan the language it has to take and still taking english…
    Thanks!

    • This reply was modified 9 months, 1 week ago by  alquadrat.
    • This reply was modified 9 months, 1 week ago by  alquadrat.
    • This reply was modified 9 months, 1 week ago by  alquadrat.
    #227257

    Hi,

    Can you create an administrator account and post it here as a private reply?

    Regards,
    Josue

    #227354
    This reply has been marked as private.
    #227880

    Hi!

    I think the translation file name is not correct (see http://codex.wordpress.org/WordPress_in_Your_Language#Catalan_-_Catal.C3.A0_.28ca.29 ). Try to rename lang/ca_ES.po to lang/ca.po and lang/ca_ES.mo to lang/ca.mo

    Cheers!
    Peter

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

You must be logged in to reply to this topic.