Tagged: child theme, translation
-
AuthorPosts
-
February 19, 2014 at 5:35 pm #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!February 19, 2014 at 7:25 pm #226393Other issue… I’ve installed also woocommerce pluging….how do I do to Translate to Catalan and keep it safe from updating te plugin?
Thanks!February 20, 2014 at 4:20 am #226559Hi!
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,
IsmaelFebruary 20, 2014 at 11:17 am #226686Hi 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, 9 months ago by alquadrat.
February 21, 2014 at 4:51 am #227257Hi,
Can you create an administrator account and post it here as a private reply?
Regards,
JosueFebruary 21, 2014 at 10:50 am #227354This reply has been marked as private.February 22, 2014 at 12:08 pm #227880Hi!
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!
PeterMay 15, 2015 at 9:53 pm #445167same 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
May 15, 2015 at 10:57 pm #445178Hi!
Try the following:
http://kriesi.at/documentation/enfold/child-theme-translations/Best regards,
JosueMay 15, 2015 at 11:03 pm #445180it 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 :(
May 16, 2015 at 10:01 pm #445302Hi,
Can you please create us a WordPress administrator and a FTP account? post it here as a private reply.
Regards,
JosueMay 16, 2015 at 10:06 pm #445303This reply has been marked as private.May 17, 2015 at 5:46 am #445339May 17, 2015 at 9:11 pm #445442This reply has been marked as private.May 17, 2015 at 10:30 pm #445450Hi,
I’d need a temporary FTP account too.
Best regards,
JosueMay 17, 2015 at 11:34 pm #445458This reply has been marked as private.May 18, 2015 at 1:41 am #445472May 18, 2015 at 4:00 am #445490Solved! Thanks!!!
May 18, 2015 at 4:39 am #445494You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.