-
AuthorPosts
-
May 6, 2014 at 4:42 pm #260800
Hi there,
I need to import the .po file for the site. The file contains all information for enfold plugins, menus etc… but how do make sure it will be applied to all aspects of the theme?Also, what is the difference with .mo and .po?
I’m using a paid version of WPML.
Are you able to help?thank you
Dominic
May 7, 2014 at 3:52 am #261070Hey syphadius!
Thank you for using the theme!
There is no difference between .po and .mo file actually. The .mo file is the compiled version of the .po file. You can use this application if you want to compile the .po files: http://poedit.net/ / http://www.gnu.org/software/gettext/
Once you get hold of the .po and .mo files, place them on the enfold theme’s lang folder.
Regards,
IsmaelJuly 30, 2014 at 5:35 pm #297836One question to these mo / po files.
I also tried to use “poedit” and as well the wordpress extension.
When I generated a .mo file, it look quite different to the .mo files from original enfold .. Why is taht like that?secondary nothing changed, when I change or kill the .mo files???
// I want to have the English strings in the contactform translated !!
July 30, 2014 at 5:48 pm #297844Hi!
Do you rescan/update the files first? If there are missing strings, rescanning/updating should add them as well
Regards,
YigitJuly 30, 2014 at 5:57 pm #297851here is an EXCERPT OF THE GERMAN de.po FILE
#: config-templatebuilder/avia-shortcodes/contact.php:288
#@ avia_framework
msgid “Please prove that you are human by solving the equation”
msgstr “Bitte lösen Sie die Gleichung. Diese Maßnahme dient der Abwehr von Spam.”///////
The german files are found, everything semes to work fine, but this string is not translating by itself.
-> not translating by itself//// I tried searchung the string with Codestyling Lokalisator
-> nothing found!!! I don´t want to use special functions to earch this string and replace it when it is allready translated !!!!
Can you help?
July 31, 2014 at 2:58 am #298053Did you solve the issue? i don’t know if this is the website with the problem, but the contact form at the bottom is currently in German:
July 31, 2014 at 9:10 am #298148This reply has been marked as private.July 31, 2014 at 9:25 pm #298417Hey!
Please set the account role to Administrator.
Best regards,
JosueAugust 5, 2014 at 6:35 pm #300360sorry – i Changed the role to admin.
– actually I change the english Words in the label with a jQuerry function!! But I want to make this without that function
August 7, 2014 at 4:26 pm #301174Hey!
Not sure why WPML doesn’t translate this text string especially because our code is correct and refers to the right textdomain. I’m pretty sure this is a bug of the WPML plugin. However I could fix the issue on your server with following code though:
add_filter('avia_contact_form_elements', 'avia_change_caption_captcha', 10, 1); function avia_change_caption_captcha($form_fields) { if(defined('ICL_LANGUAGE_CODE') && ICL_LANGUAGE_CODE == 'de') { if(!empty($form_fields['avia_age']['label'])) $form_fields['avia_age']['label'] = "Bitte lösen Sie die Gleichung. Diese Maßnahme dient der Abwehr von Spam."; } return $form_fields; }
Best regards,
PeterAugust 7, 2014 at 5:02 pm #301200ok, thank you very much! – It´s strange and sad, probably a bug, that this string isn´t excluded (transfered) from the .po / .mo file
-
AuthorPosts
- The topic ‘Steps to import translation files .po’ is closed to new replies.