DEPRECATED
*DO NOT USE/FORK THIS.*
*MASTER VERSION IS github.com/one-up/as3gettext-oneup .*
as3gettext-oneup¶ ↑
This is forked from coderepos.org/share/browser/lang/ruby/as3gettext/trunk
Description¶ ↑
gettext for ActionScript3
Installation¶ ↑
Gem Installation¶ ↑
% gem install as3gettext-oneup
Usage¶ ↑
% 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"
Features/Problems¶ ↑
Copyright¶ ↑
Original¶ ↑
- Author
-
Yuichi Tateno <hotchpotch@no.spam@gmail.com>
- Copyright
-
Copyright © 2008 Yuichi Tateno
- License
-
MIT License