Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
7
Erster Beitrag:
vor 10 Monaten
Letzter Beitrag:
vor 10 Monaten
Beteiligte Autoren:
Mujahid, Peter Holemans, GuenterP, Piet van Zanten

[WD19] Multi Language Not Work in Dialog

Startbeitrag von Mujahid am 20.12.2016 06:53

Hi Friends,

Im using Dialog like this :

//1 : &Yes
//2 : &No
SWITCH Dialog("Do you wish to proceed with the application activation?")
CASE 1

CASE 2
END

The Dialog multi language is not work. Its appear only for default language (English) even the application Nation language is change to other language.

For the project language setting is set to "Changing language immediately..."

Thanks a lot.

Regards,
Mujahid

Antworten:

Hi Mujahid,

you can / should include two windows named WinDevMessageBox.wdw and WinDevDialogBox.wdw in your project. Those windows are adaptable, even for a multi-language project.

von GuenterP - am 20.12.2016 07:21
Hi Guenter,

Yes i already create both windows WinDevMessageBox.wdw and WinDevDialogBox.wdw in my project.

The multi language still not function.

I also put this code at the Global Declarations Of both windows :

language=Val(INIRead("Startup", "Language", "1", CompleteDir(fExeDir())+"RADTranslate.ini"))
Nation(language)

And still not success. :D

Thanks a lot.

Regards,
Mujahid.

von Mujahid - am 20.12.2016 08:30
Hi Mujahid,

I don't think the language in your dialog windows does matter.
The text is passed as a parameter, so make sure the text you feed to the window is translated.

Regards,
Piet

von Piet van Zanten - am 20.12.2016 09:39
Hi Mujahid,

Did you translate the text passed in your Dialog() call?
In other words, is it a multilingual string?
You can open the translation tool when pressing CTRL+T when your cursor is in your string ("Do you wish to proceed with the application activation?" in your case).

Cheers,

Peter Holemans

von Peter Holemans - am 20.12.2016 14:18
Hi Piet,

Yes the text is translated.

Hi Peter Holemans,
Yes, I do the multilingual translation using CTRL + T.

The strange is, if "Languange Displayed Setting" is set to default to second language (Languange 1), then it is ok. It can appear both language.
But if the "Languange Displayed Setting" is set to first Language (English) then it is still same problem.

Maybe it is a bug. :-)

Any idea?

Thanks for the help. :spos:

Regards,
Mujahid

von Mujahid - am 20.12.2016 14:37
Hi Mujahid,

After you have set the language in the global declaration of the window, maybe you need to call Use(WindowsName) first.
In the past this was required whenever you do a language change.

Cheers,

Peter Holemans

von Peter Holemans - am 20.12.2016 15:13
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.