WordPress.org

Ready to get started?Download WordPress

Forums

Further information to use I18N for a plugin (3 posts)

  1. nbonniot
    Member
    Posted 4 years ago #

    Hello everybody,
    I still have troubles to finalize everything for my brand new plugin, and I hope you could help me. I have 3 questions :

    • So far, I've got a .pot file and my first .po file (in french). But when I try to use msgfmt, I got the following reply:

      0 translated messages, 19 untranslated messages.

      My .mo is created, but inside there is just the beginning of the file .po and no messages translated. Could you tell me why?

    • When the first point will be solved, where should I put my .mo file? I would like to create a "languages" folder in my plugin folder and drop everything there, but where do I have to tell my plugin that it's here?
    • I didn-t get the point about the text domain. So far all my "__()" or "_e()" don't contain the text domain. Is it mandatory? Should I have to add it?

    Thank you so much for your answer, I would be really appreciated !!

  2. WP Voyager
    Member
    Posted 4 years ago #

    Hmm, good question.

    Have you checked out the page referenced as "additional information" by the Codex?
    http://urbangiraffe.com/articles/localizing-wordpress-themes-and-plugins/
    (Codex Page: http://codex.wordpress.org/I18n_for_WordPress_Developers )

    Sorry if this is not relevant, I am simply not an expert in this field :-)

    I hope it is useful though; internationalization is a wonderful thing.
    MindBlender 3D

  3. nbonniot
    Member
    Posted 4 years ago #

    Thanks for your answer... And sorry for mine late.

    I used POEdit to deal with my .po and .mo files now... But my I18N still doesn't work.

    I just pos a new explanation here... If you could have a look, it would be greatly appreciated !!

    Cheers,

    Nixar

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags