Gettext oddities with Ruby
I was having a lot of trouble with
gettext in Ruby, mostly due to lacking
documentation. Here are some useful things I figured out while writing TTime. I
ended up having a single gettext_settings.rb, included from every file which
uses gettext. Here it is (with some extra notes)
| |
One note for context: I use
setup.rb (and ruby-pkg-tools) to
package TTime. So my localizations go in data/locale.
