This is a migrated thread and some comments may be shown as answers.

CopyPaste Native Language

3 Answers 56 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anton
Top achievements
Rank 1
Anton asked on 08 Oct 2013, 01:23 PM
Hi!

We are having a problem regarding "select/select all/copy/paste" being displayed only in english translation even that the phone is native in another language.

This is only on iOS, since android already seems to translate to phones native language.

Is there any fix for this so buttons like these translates into phones native language?

Thx for info.

Best regards
Anton

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 09 Oct 2013, 11:43 AM
Hi Anton,

It is possible to have your OS Language in some other language (this would be reported by the locale via the globalization.getLocaleName), but your keyboard to be in English. To change the keyboard - tap and hold the world icon.

For Cordva apps, another option you have is to completely remove not localized buttons which kind of give away that your app is not native. This can be accomplished by altering the HideKeyboardFormAccessoryBar setting in iOS config.xml file. For more information on editing this file, refer to Edit Configuration Files help article.

If you need further help or your problem is different, please elaborate or better yet, provide screenshots that show the problem. Does the same problem occur in other apps (non Cordova)?

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Anton
Top achievements
Rank 1
answered on 09 Oct 2013, 12:54 PM
Hi Steven

Thanks for the reply, but this does not help me since i both have iOS and keyboard layout set to swedish to be precise.

I will try to explain a little better, i would have attached an image, but everytime i open the attach files below reply field it reloads the site and gives me an empty reply instead. Have tested with several computers. 

The problem is rather when you hold your finger on text for a prolonged time and this extra box is displayed with options. Like when you would copy an url from safari url field. It also doesn't translate Next/previous/done buttons above keyboard. But it does translate everything else on keyboard for example the space button is translated correctly to swedish.

If i understanded you correctly there is a way to remove these from not showing up at all. but this is not any help for me since i want those feature in my app. So is it possible to translate it to prefered language? Or is my only option to keep them in english or remove them completly, both gives away in its own way that it is not a native app.

Best Regards
Anton
0
Steve
Telerik team
answered on 11 Oct 2013, 10:55 AM
Hi Anton,

What browser are you using to post in our forums? Is it latest version? Did you try starting it with its plugins disabled? We would appreciate any relevant information, so that we could identify and fix any possible problems with the site. As for screenshots, you could use a free image hosting provider to attach the images for now.

Thanks for the clarification about your original question. It would appear as if the iOS browser (respectively UIWebView) does not look at the region being defined by the settings on the device. The user agent and navigator.language both return en-US and disregard any changes to the region by the user. So it appears that this is a limitation of iOS itself and there is nothing we can do to override it.

If you want to disable user selection which would show the "extra box" you could apply the following css rule to your html page:

<style type="text/css">
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none; /* Disable selection/copy in UIWebView */
}
</style>

Normally the iOS WebView does not have Next/previous/done buttons, those are added by Cordova and therefore this gives away that your app is not native one. They cannot be globalized either, but can be removed altogether by setting the HideKeyboardFormAccessoryBar setting in iOS config.xml file to true.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
General Discussion
Asked by
Anton
Top achievements
Rank 1
Answers by
Steve
Telerik team
Anton
Top achievements
Rank 1
Share this question
or