Quote from Christian Schaer on July 27, 2020, 12:50 amHi to all they work with VisualNEO Win,
Its interest me how to localize my App without i have to hard edit.
I mean here like PoeEdit or some Other tools.
To edit the Language File is much easier than all hard coded Menue or Buttons.
I only not found a Topic to this by a search with Google.
How you solve something ?
Kind regards
Chris
Hi to all they work with VisualNEO Win,
Its interest me how to localize my App without i have to hard edit.
I mean here like PoeEdit or some Other tools.
To edit the Language File is much easier than all hard coded Menue or Buttons.
I only not found a Topic to this by a search with Google.
How you solve something ?
Kind regards
Chris
Quote from Vadim on July 27, 2020, 10:18 amHi!
To change the interface language on the fly, you need to use variables instead of labels. When the program is loaded (and when changing the language), these variables can be automatically filled from the file of the selected language.
Hi!
To change the interface language on the fly, you need to use variables instead of labels. When the program is loaded (and when changing the language), these variables can be automatically filled from the file of the selected language.
Quote from Gaev on July 27, 2020, 6:26 pm@christian-schaer
As mentioned by @vadim ...
To change the interface language on the fly, you need to use variables instead of labels. When the program is loaded (and when changing the language), these variables can be automatically filled from the file of the selected language.
While I agree that 'variables instead of labels' is about the only option, this can be a very labour intensive process.
I attempted this technique with one of my Applications more than 10 years ago. I populated the variables via SetVar commands at Startup; due to longer (noticeable) start up, I had to split this process into the PageStart script sections (with a flag to prevent translation at second/subsequent visits to the same page).
As well, where paragraphs of messages/responses are composed dynamically, you will need to account for grammatical differences between languages e.g. ...
English: I like [colour] apples
French: J'aime les pommes [colour]Later, NeoBook introduced the PopulateStr command, a hidden gem, that can make the translation process a lot less intensive.
As mentioned by @vadim ...
To change the interface language on the fly, you need to use variables instead of labels. When the program is loaded (and when changing the language), these variables can be automatically filled from the file of the selected language.
While I agree that 'variables instead of labels' is about the only option, this can be a very labour intensive process.
I attempted this technique with one of my Applications more than 10 years ago. I populated the variables via SetVar commands at Startup; due to longer (noticeable) start up, I had to split this process into the PageStart script sections (with a flag to prevent translation at second/subsequent visits to the same page).
As well, where paragraphs of messages/responses are composed dynamically, you will need to account for grammatical differences between languages e.g. ...
English: I like [colour] apples
French: J'aime les pommes [colour]
Later, NeoBook introduced the PopulateStr command, a hidden gem, that can make the translation process a lot less intensive.
Quote from Christian Schaer on August 13, 2020, 2:57 am@gaev and @vadim,
Hi and thank you. I see on VisualNEO have something to Localization, i only was a little overstrain on the message by integration.
and sorry to my bad knowledge of English.What i understand with Vars i can universal change but i don't know how to load the local language file from VisualNEO.
To change the interface language on the fly, you need to use variables instead of labels. When the program is loaded (and when changing the language), these variables can be automatically filled from the file of the selected language.
This is what i understand, thanks. only exist, what i not found a trigger to load the File ?
Like i load hardcoded by developing to load the File "German" or "Italian".App -> App Properties -> Languages
Sorry i still thinks oldSchool sometimes with beginning in Turbo Pascal but the Delphi is to expensive now only to a Hobby.
and Lazarus is to search the Info not easy if to search over 100's of pages.
Thank's a lot to the Help and a nice Day.
Christian
Hi and thank you. I see on VisualNEO have something to Localization, i only was a little overstrain on the message by integration.
and sorry to my bad knowledge of English.
What i understand with Vars i can universal change but i don't know how to load the local language file from VisualNEO.
To change the interface language on the fly, you need to use variables instead of labels. When the program is loaded (and when changing the language), these variables can be automatically filled from the file of the selected language.
This is what i understand, thanks. only exist, what i not found a trigger to load the File ?
Like i load hardcoded by developing to load the File "German" or "Italian".
App -> App Properties -> Languages
Sorry i still thinks oldSchool sometimes with beginning in Turbo Pascal but the Delphi is to expensive now only to a Hobby.
and Lazarus is to search the Info not easy if to search over 100's of pages.
Thank's a lot to the Help and a nice Day.
Christian