No commit activity in last 3 years
No release in over 3 years
gettext for as3
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 2.0.0
 Project Readme

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¶ ↑

Original¶ ↑

Author

Yuichi Tateno <hotchpotch@no.spam@gmail.com>

Copyright

Copyright © 2008 Yuichi Tateno

License

MIT License