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

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Kabir
In need of some credit
In need of some credit
Posts: 5
Joined: Thu Oct 01, 2015 4:44 am

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

Post by Kabir » Thu Feb 28, 2019 12:11 pm

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);

User avatar
doublemax
Moderator
Moderator
Posts: 13601
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

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

Post by doublemax » Thu Feb 28, 2019 12:17 pm

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.
Use the source, Luke!

Kabir
In need of some credit
In need of some credit
Posts: 5
Joined: Thu Oct 01, 2015 4:44 am

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

Post by Kabir » Fri Mar 01, 2019 5:06 am

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.

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3276
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

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

Post by ONEEYEMAN » Fri Mar 01, 2019 3:51 pm

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.

Kabir
In need of some credit
In need of some credit
Posts: 5
Joined: Thu Oct 01, 2015 4:44 am

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

Post by Kabir » Wed Mar 06, 2019 9:56 am

Mac drivers basic screen expected to be localized , it showing in English , not using any user defined localization text there.

User avatar
doublemax
Moderator
Moderator
Posts: 13601
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

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

Post by doublemax » Wed Mar 06, 2019 3:04 pm

If nobody else here can help, try asking on the wx-users mailing list / Google group:
https://groups.google.com/forum/#!forum/wx-users
Use the source, Luke!

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3276
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

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

Post by ONEEYEMAN » Wed Mar 06, 2019 3:27 pm

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.

User avatar
doublemax
Moderator
Moderator
Posts: 13601
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

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

Post by doublemax » Wed Mar 06, 2019 5:13 pm

@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.
Use the source, Luke!

Kabir
In need of some credit
In need of some credit
Posts: 5
Joined: Thu Oct 01, 2015 4:44 am

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

Post by Kabir » Thu Mar 07, 2019 5:14 am

MAC_DRIVER.png
MAC_DRIVER.png (31.72 KiB) Viewed 301 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.

User avatar
doublemax
Moderator
Moderator
Posts: 13601
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

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

Post by doublemax » Thu Mar 07, 2019 8:37 am

Does this dialog appear in Japanese if you print from another application?
Use the source, Luke!

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3276
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

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

Post by ONEEYEMAN » Thu Mar 07, 2019 3:15 pm

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.

Kabir
In need of some credit
In need of some credit
Posts: 5
Joined: Thu Oct 01, 2015 4:44 am

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

Post by Kabir » Thu Mar 14, 2019 7:21 am

Yes machine language was Japanese only .
I got the solution, had to add supported langues in plist file.
thanks all for help.

Post Reply