Individual adjustments

Convert more than 700 units and unit combinations
Umwandlung für mehr als 700 Einheiten und -kombinationen
Post Reply
Ramiro

Individual adjustments

Post 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)
User avatar
Hans
Site Admin
Posts: 77
Joined: 16 Dec 2005, 16:52
Location: Germany
Contact:

Sure you can

Post 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
Your forum admin
Post Reply