Re: Localizing Tidy [was: automatic generation of quickref.html]

Terry Teague <[email protected]>
Newsgroups gmane.comp.web.html-tidy.devel
Message-ID <l03130302be681fb129f5@[17.219.128.111]>
At 11:15 PM +0100 3/23/05, Marc Gueury wrote:
>I have an additional remark about translation.
>
>If you look the code of tidylib, all the strings that are translatable are
>all contained in the localize.c file. In a bad way, I think for some reason
>I will probably explain in another mail. (in short, localize.c contains code
>and strings + there is no way to make a multilingual tidy program).


Tidy and localize.c were not really designed to be multi-lingual, but over
time most of the strings have migrated to localize.c to at least give you a
chance at localizing Tidy.


>Whatever, all the translations and translatable strings are contained
>in that single file. So that, if, for example, somebody wants to
>translate tidy.
>It is quite easy. He just need to change that file. I think that the
>description
>should follow the same principle.


We had some discussions several years ago on the subject of localizing
Tidy, but we couldn't come up with a good cross-platform solution. It is
not a problem to do something that works well for the Windows and Mac OS
platforms, but the closest we came for other platforms was the use of
"gettext".


>Place your code in a new file. But the strings in localize.c.


I would argue the opposite - code in localize.c and strings in something
that is NOT a ".c" file.


>Also, I have additional request: please add an API for tidyLib
>to get help for one parameter only for allowing UI program
>using tidylib to show help about one parameter in a tooltip for example.


Write up a feature request. TidyLib doesn't really have a concept of help,
so I don't think an API is needed - help is implemented in the "tidy"
console program, which IMHO is just a sample application using TidyLib.


>Thanks by advance,
>
>Marc

Regards, Terry





-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.