README.markdown in grosser-fast_gettext-0.1.0 vs README.markdown in grosser-fast_gettext-0.2.0
- old
+ new
@@ -10,24 +10,20 @@
#e.g. for locale/de/LC_MESSAGES/my_app.mo
FastGettext.add_text_domain('my_app',:path=>'locale')
Choose text domain, and locale for translation
FastGettext.text_domain = 'my_app'
+ FastGettext.available_locales = ['de','en','fr','en_US','en_UK'] # only allow these locales to be set (optional)
FastGettext.locale = 'de'
Start translating
include FastGettext
_('Car') == 'Auto'
_('not-found') == 'not-found'
s_('Namespace|no-found') == 'not-found'
n_('Axis','Axis',3) == 'Achsen' #German plural of Axis
-Thread-safety
-=============
-locale/text_domain/available_locales are not shared between threads.
-But text_domains is, so that found translations can be reused.
-
Speed
=====
FastGettext
small:
1.000000 0.130000 1.130000 ( 1.132578)
@@ -52,10 +48,10 @@
=====================
ATM you have to use the [original GetText](http://github.com/mutoh/gettext) to create and manage your po/mo-files.
Author
======
-Mofile parsing from Masao Mutoh, see vender/README
+Mofile parsing from Masao Mutoh, see vendor/README
Michael Grosser
grosser.michael@gmail.com
Hereby placed under public domain, do what you want, just do not hold me accountable...
\ No newline at end of file