Skip to content

Releases: veelo/gettext

Work around Phobos bug.

Choose a tag to compare

@veelo veelo released this 23 Dec 20:51

The fix from 5077f20 was insufficient to work around dlang/phobos#10916 at compile.

Minor stability fixes.

Choose a tag to compare

@veelo veelo released this 23 Dec 17:14
Don't panic on malformed format specifiers.

When a malformed format secifier is encountered, treat the entire string as not having format specifiers.

Documentation improvements.

Choose a tag to compare

@veelo veelo released this 01 Sep 13:37
v1.0.8

Merge branch 'main' of https://github.com/veelo/gettext into main

New Context and Comment API

Choose a tag to compare

@veelo veelo released this 27 Aug 11:27

Previously, context and notes to the translator were supplied as an associate array literal:

tr!("Review the draft.", [Tr.context: "nautical",
                          Tr.note: `Nautical term! "Draft" = how deep the bottom` ~
                                   `of the ship is below the water level.`]);

Now, the preferred way is this:

tr!("Review the draft.", Context("nautical"),
                         Comment(`Nautical term! "Draft" = how deep the bottom` ~
                                 `of the ship is below the water level.`));

The previous form is still supported, but intentionally not documented.

Context and comments on plural forms.

Choose a tag to compare

@veelo veelo released this 25 Aug 19:46
  • Support plural forms with context differentiation and comments to the translator.
  • Improvements to the documentation.

gettext:todo robustness

Choose a tag to compare

@veelo veelo released this 14 Jul 12:35
  • Increase the robustness of the scanner for untranslated strings gettext:todo.
  • Add documentation for justifying translated strings.

Bug fix.

Choose a tag to compare

@veelo veelo released this 01 Aug 10:22

Don't throw on non-format strings containing %.