Releases: leonelquinteros/gotext
v1.3.0
This release fixes an issue that made GetN
and GetNC
use always the "default"
context instead of looking into the package configuration.
It also includes a refactoring of the package configuration that allows to be used in multiple concurrent goroutines without having data races.
As these 2 changes may conflict with packages using it, by assuming the "default" context on the first, or by introducing deadlocks by the second, we're increasing the minor version number for this release to indicate possible backwards compatibility breaks.
Starting on this version, we now have Pull Requests and Issues templates to fill in before creating any of these to help contributors provide all necessary information.
Relevant issues fixed
- #14 GetN and GetNC don't honor domain package variable set by SetDomain()
Relevant commits
v1.2.4
Small release to include the following commit:
- Unify fmt.Sprintf behaviour on Po and Locale
This changes how the Locale object falls back when a translation is not found to behave the same as the Po object and use fmt.Sprintf
only when variables are provided.
v1.2.3
v1.2.2
v1.2.1
- Issue #9 : Handle empty translation strings as untranslated as defined in https://www.gnu.org/software/gettext/manual/html_node/Untranslated-Entries.html
v1.2.0
Small release addressing 2 main changes that break backwards compatibility:
Pull Request: use kinako instead of anko #7
Changes the backend used to evaluate the plural forms. From anko to kinako.
Issue: Remove plural default in Po Gets #8
Plural methods GetN
and GetNC
now return the default singular or plural by checking the n
param as described in the issue.
v1.1.1
Several code changes to improve goreportcard.com results and to make golint and govet happy.
There are no changes on the API so backwards compatibility with v1.1.0 is ensured.
v1.1.0
API compatibility break from version 1.0
n
parameter on plural functions now have different meaning to make them Gettext compliant usingPlural-Forms
header formula definition
New features
- Added parsing for PO file headers
- Added support for
Plural-Forms
formula headers - Plural functions now are gettext compliant
- Added support for multiline strings
v1.0.1
Small release with minor changes not affecting the API.
- Remove version from Godoc
- Added support for LC_MESSAGES directory.
- Improved tests
v1.0.0
Version 1.0.0 release!
All expected features for version 1 are implemented.
Support for standard gettext PO files is complete.