Viewing 19 posts - 1 through 19 (of 19 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 10 years, 10 months 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

    #445167

    same problem here. Until then I used the Enfold and today activated the Enfold Child, but I can not translate various messages the site, as on page 404. Ex .: https://vivoconfeccoes.com.br/5

    Use the Loco Translate plugin and even copying the main theme of the lang folder into the enfold child not appear any translation file in the plugin. Tb tried adding the code:

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

    within the enfold-child file / functions.php and yet to no avail. Continues without appearing translation archive in loco translate.

    how do I translate the child theme?

    my language is en-US

    #445178

    Hi!

    Try the following:
    http://kriesi.at/documentation/enfold/child-theme-translations/

    Best regards,
    Josue

    #445180

    it did not work :(

    They do not show the translation of files for child-theme in loco translate plugin.

    And if I edit the file pt_BR main theme the changes do not become effective on the site because the active theme is the child-theme :(

    #445302

    Hi,

    Can you please create us a WordPress administrator and a FTP account? post it here as a private reply.

    Regards,
    Josue

    #445303
    This reply has been marked as private.
    #445339

    Hi,

    Use (Email address hidden if logged out) .

    Cheers!
    Josue

    #445442
    This reply has been marked as private.
    #445450

    Hi,

    I’d need a temporary FTP account too.

    Best regards,
    Josue

    #445458
    This reply has been marked as private.
    #445472

    Hi!

    Child translation is working but you won’t be able to edit it using Loco Translate because the plugin doesn’t recognise the child theme translation, however, you can directly edit the pt_BR.po file using a tool like PoEdit, i’ve done that and it works (changed this to test).

    Best regards,
    Josue

    #445490

    Solved! Thanks!!!

    #445494

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 19 posts - 1 through 19 (of 19 total)
  • You must be logged in to reply to this topic.