cancel
Showing results for 
Search instead for 
Did you mean: 

Language Conversion issue of HWC SUP APP

Former Member
0 Kudos

Hello Experts

Can any one have idea for conversion the hwc sup App from English to other language(French) which was built in SUP2.1.3?

Thanks in advanced for your suggestion.

Thanks

Anil

Accepted Solutions (1)

Accepted Solutions (1)

midhun_vp
Active Contributor
0 Kudos

You have option to change the language of the HWC using the option "localization".

Change the language of the phone to see the change.

Midhun VP

Former Member
0 Kudos

Hi Midhun

Thank you for your reply.

Actually I did what you said but I am not getting.

Is there any steps more?

Can it be possible that one can change the App language at run time dynamically by passing the language through MBO?

Thanks

Anil

Former Member
0 Kudos

The HWC will pick up the current language when it is started.  If you change the device language when the application is already launched, it is not going to pick it up until the next time it is restarted.

Thanks,

Andrew.

Former Member
0 Kudos

Hi Midhun

I am not getting after Localization steps done.

can you share some idea regarding the issue?

Thanks

Anil

midhun_vp
Active Contributor
0 Kudos

Can you give the steps you followed. Have you changed the language of device from device settings before running the app to see the change.

Midhun VP

Former Member
0 Kudos

Thanks for your reply.

Even If I change the device language ,The app is not coverted to French.

But my requirement is not to change the device language.

Is it possible to change the application into French without changing the device language ?

Please share some kind suggestions?

Thanks

Anil

Former Member
0 Kudos

Have you restarted the application or device after you changed the device language to French?  The HWC will pick up the current language when it is started.  If you change the device language when the application is already launched, it is not going to pick it up until the next time it is restarted.

The current device language is passed into your application on the query string with the lang parameter.  You can display the value of this parameter in an alert to double check the app has the language that you think should be displayed. 

URL Parameters

Then make sure your localized application has a Locale Properties file that matches what the device is showing for lang.

Localizing a Hybrid App Package

Thanks,

Andrew.

Former Member
0 Kudos

Hi Andrew,

Thank you so much for reply.

But I have restarted the device.Still the Application is not converting to French Language.

I made the Localization file also.

Still it is not working.

Thank you so much.

Former Member
0 Kudos

Perhaps you can share a screenshot of your localization tab in your application.

Thanks,

Andrew.

Former Member
0 Kudos

Here is the screenshot Andrew.

Please check the screenshot.

I have set the Localization properties in  form editor(.xbw file).

Former Member
0 Kudos

Please also share the contents of your locale properties file.

Editing the Locale Properties File

Thanks,

Andrew.

Former Member
0 Kudos

Thank you so much Andrew for your valuable reply.

Here is my local properties file shared .(Please check the attachment)

Note: The Images are also not displaying after localization to be set as French.

Thank you so much

Anil

Former Member
0 Kudos

I don't see any French text in your locale properties file?  Are you sure you've attached the translated French version?

Thanks,

Andrew.

Former Member
0 Kudos

Hi Andrew

I have change the Localization as French and deploy the project.

After that I share the file to you.It will contain only English text.

Is it like that I will change the file content manually to French Language?

I am setting the Localization filr as follow.

The Overwrite Existing file Checkbox is Disable.

(Please check the attach screen)

Thanks

Anil

Former Member
0 Kudos

After you have created the locale properties file for a different language (French in your case), you will have a new COPY containing all the resources in English.  You then need to translate the English resources to your target language by editing the French locale properties file that you just created. 

Editing the Locale Properties File

The IDE is not going to automatically translate all strings if that is the expectation.

Thanks,

Andrew.

Answers (1)

Answers (1)

Virinchy
Active Contributor
0 Kudos

Please check this document which explains how to achieve the localization in Hybrid Web Container  .

SyBooks Online