Translation / localization

This topic contains 3 replies, has 2 voices, and was last updated by  mameha 11 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5365

    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
    #5369

    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
    #5370

    Of course, it its the front-end, you can always simply edit the templates.

    Stephen Harris
    #5374

    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
Viewing 4 posts - 1 through 4 (of 4 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.