doc/i18n.md in hammer_cli-0.1.1 vs doc/i18n.md in hammer_cli-0.1.2

- old
+ new

@@ -81,5 +81,20 @@ # WRONG puts _("Hello %s, it is %s" % [name, day]) # CORRECT puts _("Hello %{name}, it is %{day}") % {:name => name, :day => day} ``` + + +3) Don't use newlines in the gettext function. Strings with newlines are not extracted correctly. +```ruby +# WRONG +puts _("TODO: \n - make dishes\n - do shopping") +# CORRECT +puts _("TODO:") + + "\n - " + _("make dishes") + + "\n - " + _("do shopping") +``` + + +4) Try setting `:mark_translated: true` to identify gaps in your translations. +This will wrap all translated strings with angle brackets '>message<'.