Readme¶ ↑
Install¶ ↑
-
gem install kdegettextfor your standard ruby version -
gem1.9 install kdegettextfor other ruby versions (command may be slightly differ on your ruby installation)
Acknowledgments¶ ↑
-
Masao Mutoh ( author of gettext package for ruby)
-
How-To write a parser: www.yotabanana.com/hiki/ruby-gettext-howto-poparser.html
-
-
Richard Dale ( some helpful links, author of korundum/qtruby package )
-
the author of that piece of code
Bugs¶ ↑
-
in ruby1.8 the hash (TargetList) is not sorted, so the output in po is not sorted for line numbers
-
IMPORTANT!: This program might work only in a login console (
su - user) and/or with ruby v1.9
Dependencies¶ ↑
-
should be resolved automatically via
gem install -
otherwise manual installation via
-
ruby 1.8:
gem install locale gettext ruby_parser sexp_processor -
ruby 1.9:
gem1.9 install locale gettext ruby_parser sexp_processor
-
Usage¶ ↑
-
kdegettext.rb file_1.rb [file2_rb, ...] -
with other ruby version:
ruby1.9 /usr/bin/kgettext.rb file_1.rb [file2_rb, ...]