Posted: February 1, 2019 at 12:36 am
|
Hi guys, got a problem with the translation… “Attendee” is translate with loco translate but it does’nt work/shown…you can have a look: https://abg-wuppertal.de/test-event-espresso/ what can i do to fix it? Thanks ๐ |
Hi, Here’s the string in the source: You’ll note that the translation function used there is |
|
|
Hi Josh, thanks, i got it…i’ve overwritten the php-data which you have shown me… ๐ |
You’ve edited the PHP files directly? If so that’s not the correct method to translate the plugin and you’ll lose any changes when Event Espresso updates. You can just translate the |
|
I have the same problem. I am sure that the Attendee %d string ist translated. What can I do? |
|
Hi, One way to translate the above string would be to use the gettext_with_context filter. Here’s a code example that shows how to use that filter to translate that string: https://gist.github.com/joshfeck/62183600028f7ff7bd135bfdc89c5684 |
|
This reply has been marked as private. | |
Please explain what exactly “the problem” is. The text is translation-ready. For example, if another plugin is unable to translate that string, the fix will need to happen in the other plugin. |
|
The problem is, that I can’t translate the text via the PO and MO file. |
|
May I ask which po file are you using, and where was it downloaded from? |
|
I downloaded it from https://translate.eventespresso.com/projects/event-espresso-4/de/event-espresso-de_de/ |
|
It doesn’t appear that the string is translated: https://slack-files.com/T02SY781D-FG22GHKSP-9f70a143f5 I can add one now so if you do another export the .mo file will include a translation for that string. |
|
OK it’s updated now. |
|
The support post ‘Attendee Translation with loco translate’ 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.