Ruby-GetText-Package document for Developers
- pot-file, po-file
- They are the text files with msgid(Original message) and msgstr(Translated message). pot-file is the template. The developer of your application generate pot-file using rgettext(or merge old one with msgmerge). Then translaters copy it and rename the extension to .po(po-file) and edit it.
- These are binary files which created from po-files by rmsgfmt. The Ruby-GetText-Package library read mo-files, not po-files.
- domain is just mo-file name. Usually, it is called PACKAGE(like in GNOME).
Set your locale. ja_JP.eucJP, ja_JP.UTF-8, etc. If it's not set, it's set C under UNIX environment, and it's got from system environment under MS Windows.
Set output-charset. UTF-8, euc-jp, etc. Optional.
Set mo-files path. Use "," to set plural paths. This is useful when you develop your application unless installing mo.files.
- bindtextdomain has locale argument.
- do not exist a method same as textdomain function.
- do not support category.