Posted: March 29, 2014 at 9:24 am
|
I’ve done some translation in the glotpress site and exported it by filters to .mo and .po files. Then i uploaded the files into the language folder but it doesn’t seem to work. The language is set to “sv_SE” in my wp-config file. Is there anything i got wrong? |
Hi Victor, Could you try adjusting the file names like this: event_espresso-sv_SE.mo —
|
|
|
Hi! Tried that already and it did not work, want me to send you the files or something?? Thanks! |
Hello, when you view Event Espresso menus and pages in the WordPress admin, are any of the words already translated? Also what is the location that you added the files to? — |
|
|
Hello, None of the words are translated. The location for the files are: /anmal.stockholmfotomaraton.se/public_html/wp-content/uploads/espresso/languages/ Thanks again! |
Hello, the language macro may not be setup correctly. Could you relocate the language macro in your wp-config.php file towards the middle of the file and save changes? — |
|
|
Didn’t work… Or wordpress is in swedish but not the EE things “/ |
Okay, I got this working on my test site. I realized that I shared the wrong file name in my earlier post. First, ensure that the following macro is in your wp-config.php file: define(‘WPLANG’,’sv_SE’); Then adjust your file names so they are like this: event_espresso-sv_SE.mo — |
|
|
It won’t work. What exactly did you do? can it be something I miss along the way? I am using Po,Mo files that I’ve translated in https://eventespresso.com/glotpress/projects/event-espresso-4/sv/event-espresso-sv_SE?filters%5Bterm%5D=&filters%5Buser_login%5D=&filters%5Bstatus%5D=current&filter=Filter&sort%5Bby%5D=original&sort%5Bhow%5D=desc and then exported by the export by filter choice so that only the translated files are there. Do i need to change something in the admin panel at the website or something? |
Is there an underscore between event_espresso in the file names instead of a dash? — |
|
|
Yes, this is the filename “event_espresso-sv_SE.mo” and “event_espresso-sv_SE.po”. |
Hi Victor, EE4 should automatically download language files based on the WPLANG settings. If you go to wp-content/plugins/event-espresso-core-reg/languages/ do you find a event_espresso-sv_SE.mo file? If so please remove the two files from wp-content/uploads/espresso/languages/ and test if Event Espresso translates (note the translations are lacking some – http://take.ms/pd3dV) Do you now get the same results as me? If so then there is an issue with the language files you are uploading to wp-content/uploads/espresso/languages/ |
|
|
Ive got it working now! Thank you for the help! The thing I did was to delete the files in the uploads/espresso/languages and put the files under /plugin/event.espresso-sv/…/languages. And now it is working! |
Hi Victor, Firstly just to check ‘/plugin/event.espresso-sv/…/languages’ The event.espresso-sv directory, is that a typo? Can you tell me what the directory is for Event Espresso currently please? Also if I understand correctly you have copied the files FROM the plugins/event-espresso-core-reg/languages/ directory TO wp-content/uploads/espresso/languages/ is that correct? |
|
Hi there Victor, We have a new resource that explains how to translate Event Espresso. You can view it here: https://eventespresso.com/wiki/how-to-translate-event-espresso/ It covers several steps from getting your WordPress site setup all the way to translating registration form questions through your WP dashboard. Thanks — |
|
The support post ‘Translation exported from glotpress not working! EE4’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.