Packages
gettext
0.10.0
1.0.2
1.0.1
retired
1.0.0
0.26.2
0.26.1
0.26.0
retired
0.25.0
0.24.0
0.23.1
0.23.0
0.22.3
0.22.2
0.22.1
0.22.0
0.21.0
0.20.0
0.19.1
0.19.0
0.18.2
0.18.1
0.18.0
0.17.4
0.17.3
0.17.2
0.17.1
0.17.0
0.16.1
0.16.0
0.15.0
0.14.1
0.14.0
0.13.1
0.13.0
0.12.2
0.12.1
0.12.0
0.11.0
0.10.0
0.9.0
0.8.0
0.7.0
0.6.1
0.6.0
0.5.0
Internationalization and localization through gettext
Current section
Files
Jump to
Current section
Files
CHANGELOG.md
# Changelog
## v0.10.0
* Emit warnings when the domain passed to one of the `*gettext` macros has
slashes in it (as we don't support domains in subdirectories).
* Discard dangling comments when parsing/dumping PO(T) files (dangling comments
are comments that are not followed by a transaction they can be attached to).
* Updated informative comments for newly generated PO/POT files.
## v0.9.0
* Strip `##` comments from POT files when they're being merged into PO files;
these comments are comments meant to be generated by tools or directed at
developers (so they have no use for translators in PO files).
* Add informative comments at the top of newly generated PO/POT files.
* Add `Gettext.known_locales/1`
* Fix a bug with PO parsing when the PO file starts with a
[BOM](https://en.wikipedia.org/wiki/Byte_order_mark) character (which broke
the parser, now a warning is issued).
## v0.8.0
* Fix a bug with the `*gettext` macros, which raised an error when given
compile-time strings in the form of `~s`/`~S` sigils.
* Create missing locale directories (e.g., `en/LC_MESSAGES`) when running the
`gettext.merge` Mix task.
* Fallback to default translations (i.e., the `msgid`) when the `msgstr` (or one
or more `msgstr` strings for plural translations) is empty.
## v0.7.0
* When dumping PO files, dump as many references as possible on one line,
wrapping at the 80th column
* Parse multiple references in the same reference comment
* Remove `Gettext.locale/0-1` and `Gettext.with_locale/2` in favour of
`Gettext.get_locale/1`, `Gettext.put_locale/2`, and `Gettext.with_locale/3`
which now work by setting/getting the locale on a per-backend basis (instead
of a global one)
* Remove the `:default_locale` config option for the `:gettext` application in
favour of configuring the `:default_locale` for backends tied to their
`:otp_app` (e.g., `config :my_app, MyApp.Gettext, default_locale: "pt_BR"`)
## v0.6.1
* Fix a bug with the `mix gettext.merge` task that was failing in Elixir v1.1.1
because `0.5 in 0..1` returns `false` with it
## v0.6.0
* Add a `:flags` field to the `Gettext.PO.Translation` and
`Gettext.PO.PluralTranslation` structs
* Add support for fuzzy matching translations in `gettext.merge` and
`gettext.extract --merge`
* Add the `:fuzzy_threshold` configuration option for the `:gettext` application
## v0.5.0
* Initial release