Tagged: translation
-
AuthorPosts
-
March 5, 2018 at 4:18 pm #921537
Hello guys,
i try to find in this forum a and web out there, a solution for this issue and i cant find one =(Im using enfold-child on my multisite and i need translate contents for pt_BR
i try everything what i find here and nothing happen. Why?ex:
lang directory on child theme is already fine the translations
child theme already has the info and i try 2 ways, none work, see below.#1
function overwrite_language_file_child_theme() {
$lang = get_stylesheet_directory().’/lang’;
return $lang;
}
add_filter(‘ava_theme_textdomain_path’, ‘overwrite_language_file_child_theme’);#2
add_action(‘after_setup_theme’, ‘avia_child_lang_setup’);
function avia_child_lang_setup() {
remove_action(‘after_setup_theme’, ‘avia_lang_setup’);
$lang = get_stylesheet_directory() . ‘/lang’;
load_theme_textdomain(‘avia_framework’, $lang);
}lang directory has 755 chmod permission. When i try to update from wp-admin panel. Loco plugin says bad request or error.
March 6, 2018 at 5:13 am #922028Hey RODRIGO,
What exactly are you looking to translate and where can we see it? We might need access to the backend of your site to be able to help you out, so please include admin login details in private with your reply.
Best regards,
RikardMarch 6, 2018 at 1:56 pm #922283This reply has been marked as private.March 7, 2018 at 8:32 pm #923289Hi,
I tried to do it and I did got the issue.
Getting on a next step to debug the problem – if you remove the functions and load from the main theme and not child theme, do they work?Best regards,
BasilisMarch 8, 2018 at 10:00 pm #924120Yes, because i have others sites using enfold folder, not child, and using loco translate i can make all what i want.
BUT, in this case, if i use child theme, i need of what is in functions to make work, like your posts in this forum recommended.So what can we do?
March 14, 2018 at 8:28 am #926475Hi,
Thank you for the update. Please enable the Appearance > Editor panel so that we can modify the functions.php file. Did you copy the language files inside the child theme’s lang folder?
Best regards,
IsmaelMarch 15, 2018 at 11:43 pm #927799sorry but if isnt enable where i can go for do that ?
Child, already have lag folder and contentsMarch 19, 2018 at 3:36 am #928846 -
AuthorPosts
- You must be logged in to reply to this topic.