IGWiki Main Page


IGSuite Howto

Related documents
   
    No entry found

Search pages

SourceForge Logo

IGSuiteHow to translate IGSuite in other languages (Document expired)
  Edit WikiPage historyPropertyGet PdfCalcShows a printable version of this pageCan I help you ?

How to translate IGSuite in other languages

Dizionario

Through specific files which are similar to "dictionaries", IGSuite offer the possibility to be easily translated in other languages. Infact one of first actions done by IGSuite framework during his execution is the loading of dictionary file related to language set by user.

IGSuite store all dictionary files (each file per application) in a directory with a path similar to "../cgi-bin/lang/en/myapplication_lang" so we have in this example that IGSuite load the English dictionary language, for the application named "myapplication". Each dictionary file has the same name of the application that it has to translate plus the extension "_lang" and it is contained in a directory with the name equal to the acronym that represents the language.

N.b. makes exception the files base_lang and default_lang because they contain common terms to each application.

To create new dictionaries

In order to create new dictionaries file you have two possibilities: using the IGSuite Language Tool , or create a new directory correspondent to language you have to translate, and copying there all dictionary files taken from an existing language directory. To translate manually dictionary files you have to translate only the right content of each term.

In the first case, after installing IGSuite, you have just to connect to a link like this http://localhost/cgi-bin/langtool and modify all dictionary words. You will have to select application to translate and then translate all form values.

In the second case after you have copied all dictionary files, you will be able to use a text editor to translate each files. Here you are as a sample, one of the application dictionary files (postit application).


## IGSuite 3.2.0
## Language: postit_lang
## Last update: 04/04/2005

%lang = (%lang,
   (
     attachments     =>'Allegati',
     same_window     =>'Apri all/'interno di IGSuite',
     new_window      =>'Apri in una nuova finestra',
     save_link       =>'Salva come nuovo collegamento',
     Err_nolink      =>'Errore: manca il nome del collegamento',
   ));

1;


N.b. IMPORTANT!! dictionary files have to respect syntax of the Perl programming language. Look at second term quoting "same_window"

Check your work


The IGSuite Language Tool has a little feature you can execute by command prompt, able to check all dictionary files items.

To start a dictionaries check just move to IGSuite cgi directory and from command prompt:

perl langtool -action=ckitem

You should read a message like this:

Check language: it
Ok!

Check language: en
Ok!

Check language: es
Ok!

Check language: pt
Ok!

Comments

malkova mali  I have been looking for this information for a long time, I was very surprised when I found it here. http://www.19216811ip.mobi link
(23.04.2019 12:32)
Joshua A. Price  I have to voice my passion for your kindness giving support to those people that should have guidance on this important matter. https://www.capecoralwindowtinting.com/ link
(06.08.2019 07:17)
Dan  Oh! I appreciate your effort translating this IG suites in other languages. Thanks! https://scott-keever-seo-washington-dc.business.si... link
(29.10.2019 19:23)

Name: how translate IGSuite in other languages - Revision: 0 - Author: LucaS (21.12.2005) - Last Editor: LucaS (20.02.2006) - Category: HowTo - Due Date: 31.12.2009 - View privileges: All the world - Edit privileges: Shared by all users - Approved by: LucaS - Copyright © LucaS All right reserved - Page available also in: it