DEPRECATED
*DO NOT USE/FORK THIS.*
*MASTER VERSION IS github.com/one-up/as3gettext-oneup .*
This is forked from coderepos.org/share/browser/lang/ruby/as3gettext/trunk
gettext for ActionScript3
% gem install as3gettext-oneup
% as3gettext -h $ as3gettext src/HelloWrold.as src/**/*.mxml -o template.pot $ as3gettext i18n/**.po -x -o langs.xml $ as3gettext -g path/to/your/as3/src -h, --help show this message -x export XML -o=VAL output file -g=VAL generate as3 library
Generating gettext as3 library to your as3 src directory
% as3gettext -g path/to/your/as3/src
in your as code:
// initialize var xml_string:String = load(langs.xml); // load langs.xml com.rails2u.gettext.GetText.initLangFile(new XML(xml_string)); // use _() function trace(_("foo")) //=> "bar"
- Author
-
Yuichi Tateno <[email protected]@gmail.com>
- Copyright
-
Copyright © 2008 Yuichi Tateno
- License
-
MIT License