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 »

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: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

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

Post 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.
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 »

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: 7459
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 »

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 »

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: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

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

Post 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
Use the source, Luke!
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
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 »

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: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

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

Post 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.
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 »

MAC_DRIVER.png
MAC_DRIVER.png (31.72 KiB) Viewed 2406 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: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

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

Post by doublemax »

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: 7459
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 »

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 »

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