Page 1 of 1

Individual adjustments

Posted: 10 Feb 2006, 03:28
by Ramiro
Hello.

Very nice this program, and it's free. Thanks.

Can i translate to portuguese language?
Can i add more "typeID" and more "enlist"?
If i can, tell me how i can add more "enlist".
Add more "typeID" it's easy, but i try add more "enlist" and make error.

(Spitted from the previous topic and given a subject by Hans - 2006-02-10)

Sure you can

Posted: 10 Feb 2006, 08:41
by Hans
Hello Ramiro,

sure you can translate the converter to portugese. I'd be happy if you could send me a copy of your translation. I may then look how to include your translation in the standard package.

To add a new category, go to the html-part at the end of 'units.html' and add a new option-line

Code: Select all

  <option id="myCategory">English-Name | German-Name</option>
To fill the new category with your units, include a new block with 'enlist'-commands. These blocks are placed before the above mentioned html-part:

Code: Select all

  else if (typeID=="myCategory") {
      enlist("yourUnitDescription",conversionFactor);
         .....
      }
Care: the last block of 'enlist'-commands closes with two braces '}}'. If you want to append your own block of 'enlist'-commands past this block, insert it between these two braces.

That's all. I hope my description is easy to understand. If you encounter any problems, don't hesitate to send me your 'units-html', i then will try to solve your problem.

Best wishes and great thanks
Hans