Gettext support

3 views
Skip to first unread message

David Delassus

unread,
May 28, 2011, 8:49:22 AM5/28/11
to cream-bro...@googlegroups.com
Hi,

I'm currently working on the gettext support in order to translate Cream-Browser easily.

Why now ? Because after it may create so much work :(

Here is the todo list :
  • Adapt source code for gettext usage (done)
  • Add po/ files (working on)
  • Add Makefile's rules for gettext (todo)
It will be soon committed :)

David Delassus

unread,
May 28, 2011, 10:21:48 AM5/28/11
to cream-bro...@googlegroups.com
Gettext support is now completely added.

You have a po/ folder in the project's tree which contains :
  • A Makefile in order to create/update/build translations files.
  • po and mo files
How to use this makefile ?
  • To create the template po file, run : make messages.pot
  • To create a new po file (from messages.pot), run : make create_po LANG=LL (ie. LANG=fr for a french translation). Don't forget to edit the file's header.
  • To update a po file (from messages.pot), run : make update_po LANG=LL
  • To compile a po file into a mo file, run : make mo
Then you just have to add your po,mo files to git.

NB: messages.pot is generated automatically.

Custom Processing Unlimited

unread,
May 28, 2011, 1:42:01 PM5/28/11
to cream-bro...@googlegroups.com
good stuff, man...  Glad to see this, as it fairly well eliminates the need to visit a site via google translator... would still compare and contrast so I could see which method is more accurate, but still good to have that level of an option available for the browser itself...

--
If "custom" was mass produced... it would just be a "product line."
Custom Processing Unlimited

David Delassus

unread,
May 29, 2011, 4:09:35 AM5/29/11
to cream-bro...@googlegroups.com
Gettext is used to translate the UI, not website.

I hope I will be able to distribute more translations in the future :)

Custom Processing Unlimited

unread,
May 29, 2011, 11:46:55 AM5/29/11
to cream-bro...@googlegroups.com
OHHH ok... you can tell I don't know much about this stuff (yet)...
Reply all
Reply to author
Forward
0 new messages