CopyPaste Native Language

4 posts, 0 answers
  1. Anton
    Anton avatar
    2 posts
    Member since:
    Feb 2013

    Posted 08 Oct 2013 Link to this post

    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
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 09 Oct 2013 Link to this post

    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.
  3. Anton
    Anton avatar
    2 posts
    Member since:
    Feb 2013

    Posted 09 Oct 2013 Link to this post

    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
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 11 Oct 2013 Link to this post

    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.
Back to Top