Translations library

Translations library

Translation files to enable e.g. multi-language templates. These can be used in the translation element in the designer and the built-in ng:translate function.

The translate files are explained on the translation element.

New or changed translation files can be uploaded via the Library.


Please note regarding underscore _

Please note, that the underscore character, '_' is a protected character and should not be a part of either the folder names used for the translations and the only place to use underscore in the name of the translation file is at the end to delimit the two parts of the locale.

 

Please note regarding the translation key

The key in the translation file must not contain any spaces. Here you can e.g. consider to use underscore instead as underscore are allowed as a part of the key.

 

How to edit a translation file

When you change a resource in InterFormNG2, then you will normally need to upload the resource again in the Library. You can also do that for translation files, but there is also an alternative as you can edit the translation files directly in the InterFormNG2 Library.

 

If you select the translations folder or tile in the InterFormNG2 library, then you will see a list of the translation files and folders:

 

NG2Translation0009

 

If you click on the left on one of the translation files, then this editor will start:

 

NG2Translation0010

 

In the editor you have these options:

 

1.Search for a specific text.

2.Add a new line in a translation file.

3.Edit a key and translation text

4.Delete entries in the translation file

 

 

Search for a text

You can search for a text in the translation file by typing the text in the upper right corner of the editor above. If you do that, then all entries with the text inside either the key or translation text will be shown. The search is case-insensitive:

 

NG2Translation0014

 

 

Add a new line in a translation file

You can add new entries in a translation file, if you click the Add icon on the top left corner of the editor:

 

NG2Translation0015

 

Now you might need to scroll down a bit to see the new line, where you can type in the new key and related text:

 

NG2Translation0016

 

You can save the change with the leftmost icon, after you have typed them in. You can also regret the add with the X-icon on the left.

 

Please note regarding the translation key

The key in the translation file must not contain any spaces. Here you can e.g. consider to use underscore instead as underscore are allowed as a part of the key.

 

Notice: The key name: *OTHERWISE* is as reserved name, which can be used in the 'root' translation file (the one without a locale) to return a predefined value if a specified key was not found in the translation file, when the translation file is used in e.g. either a translation element or in the ng:translate function.

 

Edit a key and translation text

You can change the contents of a translation file in two manners:

1.You can edit the file outside InterFormNG2 and then upload the changed file via the web interface.

2.You can also edit the file directly in the InterFormNG2 library with the editor above.

 

In the InterFormNG2 editor you can click the blue edit button to start editing the translation file:

 

NG2Translation0011

 

Now you can simply type over and edit the existing keys and translation text. When you are done, you click the icon marked above (with the blue arrow) to save the changes.

You can also click the x icon to cancel the changes.

Notice: The key name: *OTHERWISE* is as reserved name, which can be used in the 'root' translation file (the one without a locale) to return a predefined value if a specified key was not found in the translation file, when the translation file is used in e.g. either a translation element or in the ng:translate function.

 

 

Delete entries in the translation files

It is possible to delete lines/entries in the translation files directly in the editor in InterFormNG2. To do that you simply click on the garbage can icon on the left next to the line, that you want to delete:

 

NG2Translation0012

 

When you click the icon you are asked to confirm the delete:

 

NG2Translation0013

 

Here you click the leftmost icon to confirm the delete or the X icon to cancel the delete.

 

If you want to delete many entries you can also edit the translation file outside of InterFormNG2, and then upload the changed file via the Library.


    • Related Articles

    • Library

      Library : You have access to the Library tab in InterFormNG2, if you are signed on to a tenant: The library is the place to go, if you want to install new (or delete) resources in InterFormNG2. The only alternative are the tenant export and import. ...
    • Others library

      You can use the others section of the library for other resources e.g. digital certificates, that are used for digitally signing PDF files.
    • Images library

      In InterFormNG2 you can use these image types: bmp, png, gif, tif, tiff, jpg, jpeg, svg and webp. The images can be referred to in the designer via the image element. You can install/upload the images in the Library via your browser, but you can also ...
    • Documents library

      Documents library : The documents section in the Library of InterFormNG2 contains the input documents (xml files and loaded spooled files), that can be used in the designer. Two input file types are covered in the sections below: •Load an xml (or ...
    • Templates library

      The templates library contains the forms, that you want to merge your input data files (xml or spooled files) with. The forms can be both: 1.InterFormNG2 templates. These are files with the extension .ift. These templates can be edited with the ...