There is very tiny (240 lines of code directly on the web page!) 
gettext-compatible library at

http://number-none.com/blow/code/mo_file/index.html

It is under very commercial-friendly MIT license and works very well, you have 
to load your resource (.mo) file explicitly. Define something like

   inline const char * _(const char * text){return text_lookup(text)};

in some header and use


  printf(_("This is translated text. Have a nice day!\n"));


You can still use gettext tools (also available under windows) to extract 
strings from your c/c++ source files  and make translations using eg Poedit 
(available
for windows too).


Roman




On 20/05/2011 10:11, asif saeed wrote:
> Hi Torsten,
> 
> Yes, I recall now. I read about it in regards to Linux. But my current
> requirements entail using a commercial-friendly open-source/free
> option/license. I don't think gettext license fits my licensing
> requirements.
> 
> Best regards, Asif
> 
> On Fri, May 20, 2011 at 1:28 PM, Torsten Giebl <[email protected]>wrote:
> 
>> Hello !
>>
>>
>>> I am new to FLTK. I don't understand what you mean by gettext or catgets.
>> I
>>> do want portability but my primary platform is Windows. Are catgets and
>>> gettext some kind of APIs in Windows?
>>
>> Gettext is a portable GNU library, that helps you to add different
>> languages
>> for the GUI messages, labels, help texts and so on to your programm :
>>
>> http://www.gnu.org/software/gettext/
>> http://en.wikipedia.org/wiki/GNU_gettext
>>
>>
>> CU
>>
>> _______________________________________________
>> fltk mailing list
>> [email protected]
>> http://lists.easysw.com/mailman/listinfo/fltk
>>

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to