Page 1 of 1

MAC driver UI doesn't come up with localization text.

Posted: Thu Feb 28, 2019 12:11 pm
by Kabir
MAC driver UI doesn't come up with localization text loads in English only
From an wxwidget based application when we initiate the print which in turn launch another mac Application where we setup locale
and launch driver but driver comes up with English only even if language-id and OS langues is set as Japanese.
locale.Init(languageId, wxLOCALE_DONT_LOAD_DEFAULT);
wxPrintData prntDta;
wxPrintDialogData printDlg( prntDta);
wxPrinter print(&printDlg);

Re: MAC driver UI doesn't come up with localization text.

Posted: Thu Feb 28, 2019 12:17 pm
by doublemax
Did you add the wxWidgets languages catalogs for the languages you want to support to the application?

Please build and run the "internat" sample that comes with wxWidgets. It shows how to do that.

Re: MAC driver UI doesn't come up with localization text.

Posted: Fri Mar 01, 2019 5:06 am
by Kabir
Yes,
locale.AddCatalog(wxT("wx"));
if we launch message box in application localization string appears for Yes or No however printer driver text remain in English.

Re: MAC driver UI doesn't come up with localization text.

Posted: Fri Mar 01, 2019 3:51 pm
by ONEEYEMAN
Hi,
Does the strings are translated and put inside the translation file?
Does the strings inside the code use

Code: Select all

_( "Text to be translated" )
syntax?

Thank you.

Re: MAC driver UI doesn't come up with localization text.

Posted: Wed Mar 06, 2019 9:56 am
by Kabir
Mac drivers basic screen expected to be localized , it showing in English , not using any user defined localization text there.

Re: MAC driver UI doesn't come up with localization text.

Posted: Wed Mar 06, 2019 3:04 pm
by doublemax
If nobody else here can help, try asking on the wx-users mailing list / Google group:
https://groups.google.com/forum/#!forum/wx-users

Re: MAC driver UI doesn't come up with localization text.

Posted: Wed Mar 06, 2019 3:27 pm
by ONEEYEMAN
Hi,
Can you run under debugger and see what is happening?
Does the program finds the catalog? Does it finds an appropriaste translation inside the file?
Is all you strings in the source code have "_()" around?
What locale is used in you OS by default?

Thank you.

Re: MAC driver UI doesn't come up with localization text.

Posted: Wed Mar 06, 2019 5:13 pm
by doublemax
@OP
Can you show a screenshot of the dialog?

@ONEEYEMAN
If he's talking about the native OSX printer dialog, i don't think the wx translations has anything to do with it.

Re: MAC driver UI doesn't come up with localization text.

Posted: Thu Mar 07, 2019 5:14 am
by Kabir
MAC_DRIVER.png
MAC_DRIVER.png (31.72 KiB) Viewed 2415 times
This is the image of driver expected to be in Japanese but shown in English, OS language set to Japanese and same language is passed to app which set locale then launch driver.

Re: MAC driver UI doesn't come up with localization text.

Posted: Thu Mar 07, 2019 8:37 am
by doublemax
Does this dialog appear in Japanese if you print from another application?

Re: MAC driver UI doesn't come up with localization text.

Posted: Thu Mar 07, 2019 3:15 pm
by ONEEYEMAN
Hi,
Or probably the better question is - does your Mac is Japan computer? Meaning it was bought and set up in Japan?
If not - does Japan-specific locales and appropriate fonts were installed?

Thank you.

Re: MAC driver UI doesn't come up with localization text.

Posted: Thu Mar 14, 2019 7:21 am
by Kabir
Yes machine language was Japanese only .
I got the solution, had to add supported langues in plist file.
thanks all for help.