I want to translate some of the plugin text to Japanese.
I see there is an .mo file in the plugin folder, can you please tell me what I need to do to add the Japanese text?
I guess I have to do this but please confirm:
1) copy the mo file and rename it with suitable prefix (ja_jp?)
2) add the translated Japanese text strings to each “msgstr” field
By the way I do not want to translate all the text, only the text shown on the front end, e.g. on this page.
Thanks. Mameha
mameha
You want to copy the .pot
file and save it as ...ja_jp.po
and then from that (via, say poedit) create the .mo
file. Then optionally send it into me (e-mail at the top of event-organiser.php
so I can include it the plug-in for others! 🙂 )
Stephen Harris
Of course, it its the front-end, you can always simply edit the templates.
Stephen Harris
I tried ot edit the single-event.php but it doesn’t contain many strings.
I think this PHP is calling the event details (with the English I want to translate inside):
`
<!-- Get event information, see template: event-meta-event-single.php -->
<!-- The content or the description of the event-->
<?php the_content(); ?>
</div><!-- .entry-content -->
`
So I think I have to find the the_content() function and edit that to use hardcoded japanese text instead of fetching the strings from the mo/po file. But I am not sure where to find the the_content() function.
mameha