Skip to:
Content
Pages
Categories
Search
Top
Bottom

How do I add a POT language file to my plugin?

  • @xberserker

    Participant

    Sorry if this is a stupid question.. I haven’t done it before. Do I just create a “lang” folder and upload the POT there? What else do I need to do?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @r-a-y

    Keymaster

    First, you have to change all references to the strings you want to localize so your POT file knows where to reference them.
    Then, you need to create a POT file.

    Here’s a quick guide I found on Google using poEdit:
    http://weblogtoolscollection.com/archives/2007/08/27/localizing-a-wordpress-plugin-using-poedit/

    There are others of course!

    If you have any Qs, reply back.

    @thekmen

    Participant

    Hi @xberserker,
    you have it included in bp-cubepoint-core.php
    load_textdomain( ‘bp-cubepoint’, dirname( __FILE__ ) . ‘/languages/bp-cubepoint-‘ . get_locale() . ‘.mo’ );

    so just drop translations in the plugins languages folder.

    @xberserker

    Participant

    Ok version 1.7.5 is ready for be localized!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I add a POT language file to my plugin?’ is closed to new replies.
Skip to toolbar