diff options
author | SQP <meuarrr@gmail.com> | 2015-06-08 13:59:21 +0200 |
---|---|---|
committer | SQP <meuarrr@gmail.com> | 2015-06-08 13:59:21 +0200 |
commit | c7205ad47e6bd7e7816ef5186f463c53ea4a046e (patch) | |
tree | b291ecbcd587165c27a3fd16162019daf924348f /examples/gettext.go | |
parent | Styling typos. (diff) | |
download | gotext-c7205ad47e6bd7e7816ef5186f463c53ea4a046e.tar.gz gotext-c7205ad47e6bd7e7816ef5186f463c53ea4a046e.tar.xz |
Fix translations with DGettext (and other D... func) when the domain name is empty.
According to the doc, NULL allow to use the current domain as fallback:
http://www.gnu.org/software/libc/manual/html_node/Translation-with-gettext.html
If the domainname parameter is the null pointer the dgettext function is exactly equivalent to gettext since the default value for the domain name is used.
Diffstat (limited to 'examples/gettext.go')
0 files changed, 0 insertions, 0 deletions