Creating and altering language files

Previous Top Next

New languages my be added, and existing ones altered using the languages editor.

New language files must be stored in the PicToWeave directory in order for them to become active.

The language file editor should only be used by persons with a high degree of computer skills.

Languages that use special characters such as Arabic, Chinese, Greek etc may not display correctly after translation.

The language files list all the application components and messages that are controlled by the file.
It is broken into sections which are headed by section references contained in square brackets.
e.g. [MainForm]
All subsequent entries relate to that application component and are in the format of;
ApplicationComponent=Text to be displayed.
e.g.  Label1Caption=Weave height

The first entry in the language file denotes the language that file relates to.
e.g.
[Language]
Language=English.lng

If this entry is missing, or incorrectly done, the languages menu will display ERROR.
Likewise is "English.lng" cannot be found in the PicToWeave directory, an ERROR will be displayed.

To create a new language file, open the language editor.
Click on the "Read" button and select the "English.lng" file.
Type in the name of the language you are translating to in the space provided..
On the left of the language editor is displayed all the sections in the language file.
As each section is clicked on to select it, the text for each component is both displayed and copied to the clipboard.
If you are using translation software, you can paste it directly into that software.
When you have translated it, paste the translated text into the last memo box.
Check to ensure that not double quotes are control characters have been altered in any way.
 e.g. the correct format is "#13#10"  (no spaces)
 " # 13 # 10 " would fail!
To insert an Ampersand into the text it must be typed twice e.g. &&
A single ampersand can be used for menu items that respond to the ALT key.
e.g.  E&xit would allow the key combination ALT + X to activate that menu item.
Each menu item must have a unique key combination for proper results.

For manual translations, simply type each translation on a single line in exactly the same order as the English text.

After all the text for each section has been translated in a section, click on the "Write" button to save it.

Repeat the process until all sections have been completed.

Some abbreviation may be required to allow proper display in the screen space available for each component.
Test and revise as necessary.