[ANN] Go and gettext, i18n

548 views
Skip to first unread message

José Carlos Nieto

unread,
Oct 6, 2012, 5:54:13 PM10/6/12
to golan...@googlegroups.com
Hello list,

I was working on a Go project that required multilingual features, and I found some previous work on gettext and Go:


The project link does not exists anymore but I found the code by searching a bit, the author says that he was having problems on plural forms and he also wants to do its own tools for extraction, that was not exactly what I required so I kept searching and found another dead link https://github.com/GerardNL/g5t but this time I was not able to find the new URL of the repository.

So I was forced to use cgo to wrap the standard GNU gettext and to play a little with xgettext to find how to use it with the Go syntax (xgettext does not oficially supports Go).

And I just pushed the gettext wrapper to a github repo and added some test translations to Spanish and Deutsch:


Gettext is still a good translation system that has a huge translator base, so I think it's currently the best option for localisation. At least until we find another way [1].

Hope this wrapper can help you if ever run into a similar situation.

Regards, 

José Carlos


Gerard

unread,
Oct 7, 2012, 2:21:30 AM10/7/12
to golan...@googlegroups.com
The project link does not exists anymore but I found the code by searching a bit, the author says that he was having problems on plural forms and he also wants to do its own tools for extraction, that was not exactly what I required so I kept searching and found another dead link https://github.com/GerardNL/g5t 

Hello, the new link is https://github.com/grd/g5t 
However it's a toy thing. The syntax doesn't match that of the real gettext. I didn't advertise it (except on the project dashboard).

Gerard

 
Reply all
Reply to author
Forward
0 new messages