Translate, again

Source code related resources

Moderator: Rathinagiri

Post Reply
User avatar
dragancesu
Posts: 920
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Translate, again

Post by dragancesu »

This forum is world's, I do not know from how many countries are members, but I see that coming new every day

Examples of the program are short and every single function, there are only a few applications. Is that enough for beginners do not know, but I think it needs a few more complete examples that include menus, forms and reports. I attached one (already seen).

An example is in English, but there are also following that has translated into my language, Serbian. Translation is in the folder lang and there are files with translation

The following program is nlsedit which serves to make the necessary. There are three steps,
analysis of the program - reads strings in programs,
changes - allows input translation, and
save finally translate

When there is a LINE shift and tell translation
LINE 0 is reserved for the name of the language, so it will be called files
LINE <0 is reserved for comments

The programs i18n.prg features that are necessary
nls_init - at the beginning of
nls_select - language selection
nls_lang - to display the translation

Finaly, strings you want to translate replace it with a translation nls_lang (n)

It looks like this

Code: Select all

         DEFINE POPUP nls_lang(4)  // date
            MENUITEM nls_lang(5)                          ACTION edit_cost() // costs
            MENUITEM nls_lang(6)                        ACTION edit_pay() // payment
            MENUITEM nls_lang(7)               ACTION md_cost() // costs and payment
            SEPARATOR 
            MENUITEM nls_lang(8)                           ACTION MainForm.Release // exit program
         END POPUP 
What I do need is a change of code page

For the next language is sufficient editor, so I'll ask the members of good will to do the translation for your language and leave it on the forum

Regards to all
demo1.zip
english version
(33.87 KiB) Downloaded 259 times
demo2.zip
with translate
(38.95 KiB) Downloaded 284 times
nls.zip
NLSeditor
(21.36 KiB) Downloaded 258 times
User avatar
serge_girard
Posts: 3161
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Translate, again

Post by serge_girard »

Thanks Dragan,

I can make the dutch translation.

Serge
There's nothing you can do that can't be done...
User avatar
tonton2
Posts: 444
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: Translate, again

Post by tonton2 »

Bonsoir à toute l'equipe
Merci beaucoup pour cette initiative, mais je n'ai pas bien compris la procedure vu que mon anglais est très mediocre ;)
Hi
Thank you very much for this initiative, but I did not understand the procedure because my English is very mediocre :roll:
L'Algerie vous salut
Y.TABET
User avatar
dragancesu
Posts: 920
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: Translate, again

Post by dragancesu »

Thank you for interest

Attachment contains maunual (english version) how to make translate,
also tables, indexes, sample program and final program
Attachments
nls&manual.zip
(601.59 KiB) Downloaded 283 times
User avatar
tonton2
Posts: 444
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: Translate, again

Post by tonton2 »

merci mon ami
L'Algerie vous salut
Y.TABET
Post Reply