-
AuthorPosts
-
February 2, 2015 at 2:15 pm #389308
Hi guys,
I bought WPML specifically to translate the front-end of Enfold. Thought it was a fast solution. I tried the code localization plugin before that and it did not work.
But, WPML is to big a hassle (time suck) and it slows down my site. Right now I do not need such a powerful plugin.
Is there any efficient way I can manually translate only the front-end of Enfold without having to do it over again and again after updates?
EDIT: I copied the social share class to my functions.php in my Child Theme and translated it, do I have to do the same with every class that needs translating?
Sincerely,
Morticka- This topic was modified 9 years, 9 months ago by Josue.
February 2, 2015 at 2:23 pm #389313Hey Barb! :)
If you do not need a multilingual solution, you can use this plugin to translate missing strings – https://wordpress.org/plugins/codestyling-localization/
And @briefencv was so nice to contribute Dutch language files here – https://kriesi.at/support/topic/please-contribute-and-translate-enfold/page/10/#post-388496
We will be adding it to the upcoming updates. If you would like to use your own version, you can go to Enfold/lang folder and make a backup of nl_NL.po file and replace it after each update :)Regards,
YigitFebruary 2, 2015 at 2:55 pm #389329Hey Yigit :D,
Yes, I tried the codestyling plugin before and it did not work. But, I’m trying it again since there have been some Enfold updates since then. :)
*********************
Okay, I installed codestyling localization and got 4 malfunctions by the scripting guard: SEO plugin from Yoast, Enfold and LearnDash (2 paid plugins for elearning)
1. What do I do about those?( I also see that the plugin has not been updated since 2008, that makes me a little uncomfortable)
2. And where do I put the po and mo files from Remco (@briefencv)?
3. Is there another way without having to use a plugin? Every plugin slows down my site and I have a lot of them already, mostly paid plugins.
Sincerely,
BarbFebruary 2, 2015 at 3:05 pm #389333Hey!
You need to use the plugin to translate missing strings but you can simply place the file Remco posted inside Enfold/lang folder and you should be using WordPress in Dutch, that is it.
It has not been updated in a long time but plugin works fine :)Best regards,
YigitFebruary 7, 2015 at 3:50 pm #392509Hi Yigit,
My apologies about waiting so long to answer, I had a family emergency over here.
I do not want WordPress to be in Dutch, just the Enfold theme and some plugins that show up in the frontend. I’ve been looking at tutorials how to use Codestyling Localization, but since I’m using a child theme, it does not work.
The Codestyling Localization plugin says that the Enfold theme is deactivated which is correct, because I’m using a child theme. So I followed the instructions on #140430
I created a lang folder in my child theme and copied the dutch .mo and .po files there. Then I copied the following code in my child theme functions.php:
add_action(‘after_setup_theme’, ‘avia_lang_setup’);
function avia_lang_setup()
{
$lang = get_stylesheet_directory() . ‘/lang’;<br />
load_child_theme_textdomain(‘avia_framework’, $lang);
}I got a parse error and had to remove the code again.
I don’t know what to do anymore.
Do you have any suggestions?
Sincerely,
BarbFebruary 9, 2015 at 11:37 pm #393395Hey Barb!
I got a parse error and had to remove the code again
Can you paste the error you got?
Best regards,
JosueFebruary 10, 2015 at 1:27 am #393443Hey Josue :D,
Whoohoo, it works!!
I tried to recreate the parse error, which was:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /srv/mydomainname/wp-content/themes/enfold-child/functions.php on line 198Then I looked at the code again and I saw a </br> in there, I removed it, and the code was accepted!!
I also changed the wplang in the wp-config to nl_NL (I looked at one of the codestyling tutorials and they gave the tip there)
The frontend of Enfold is in Dutch and the child theme showed up in the codestyling localization plugin!! (WordPress is in Dutch too, but I’ll take it, maybe I can change that again in English in the CSL plugin :D)
Thanks guys, you are the best!!
Sincerely,
Barb -
AuthorPosts
- The topic ‘Question about translating theme’ is closed to new replies.