|
How to translate : HTML ValidatorThere are 2 ways to translate the extension.1. On the Web : Babelzilla.You can use Babelzilla and these links:http://www.babelzilla.org/forum/index.php?showtopic=2991 http://www.babelzilla.org/index.php?option=com_wts&Itemid=51&extension=2116&type=lang For more information, see the Babelzilla site. 2. On your PC, with Mozilla translatorYou need Mozilla Translator 5.03 and the JDK 1.4+(Click on the links to download) I have personally MozillaTranslator installed in : C:\my_prog\mozilla\src\translator Step 1 - Start MozillaTranslator
Step 2 - Make a jar file with the english versionThis is already done for you in the translator.zip file of 0.70. The directory locale contains> C:\my_prog\mozilla\src\translator\en-US\locale\en-US\tidy\tidy.dtd > C:\my_prog\mozilla\src\translator\en-US\locale\en-US\tidy\tidy.properties
Step 2 bis - Make a jar file for an existing translation (optional)Let say that you have a existing french translation. I mean the files:> C:\my_prog\mozilla\src\translator\fr-FR\locale\fr-FR\tidy\tidy.dtd > C:\my_prog\mozilla\src\translator\fr-FR\locale\fr-FR\tidy\tidy.properties
Step 3 - In Mozilla Translator - Import the en-Us file.
Step 4 - Update the glossary
A. You have never translated the extension.You can begin to translate.B. You have an existing translation
Step 5 - When finished
Step 6 - Include the translation in the XPI.
Step 7 - Test in Firefox.1) Start Firefox in the desired language.If you do use Firefox in English, you can also change the language on Windows by - by going to about:config - and changing the general.useragent.locale to the desired language (ex: fr-FR) - then restart firefox 2) Open the XPI file on your disk. It will be installed 3) Restart firefox, 4) Test 5) If there are some problem come back to MozillaTranslator and correct the translation. Step 8 - Send me the file.When it work me the jar file with the translations and I will include it in the next 0.7x version. (mgueury@skynet.be)Additional info:A. Translator strings:There are special strings in the translation for the translator name and URL-> tidy.dtd : tidy.translator: Name of the translator -> tidy.dtd : tidy.translator.url: Website for the translation B. Mozilla Translator documentationA documentation of MozillaTranslator is available in the zip file in a OpenOffice format (.sxw). The website of MozillaTranslator is http://sourceforge.net/projects/moztrans/C. Help filesThe above document explain how to translate the dtd and properties files. If you want to translate the HTML help files, you can add them in tidy_extension/jar/content/help/<your lang>/*.html. If a file is not there, not translated, the en-US help file will be used instead.D. Existing translations
E. New in version 0.70
Since the version 0.70, it is possible to translate all the strings
appearing on the screen. Also the error and warning
messages generated by Tidy. They are now contained in tidy.properties.
If the help file are not translated in a translation, the en-Us |
|