You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Hedcler Morais <he...@gmail.com> on 2013/05/03 16:06:16 UTC

Camera UI Language

Hello,

I'am writing an iOS app using phonegap and I like understand who change UI
language to default components, for example in camera interation buttons...

I use this code to call a camera and take an photo:

// Capture image using Cordova API
        navigator.device.capture.captureImage( function ( mediaFiles ) {
            // SUCCESS CALLBACK
            console.log('AppModel.captureImage SUCCESS');
            _self.set({ imgid: (new Date().getTime()).toString(16),
captured: mediaFiles[0], captureStatus: 'success' });
        }, function ( error ) {
            // ERROR CALLBACK
            console.log('AppModel.captureImage ERROR ' + error.code);
            _self.set({ imgid: null, captured: null, captureStatus: 'error
' + error.code });
        }, {
            // CONFIGURATIONS
            quality: 50,
            limit: 1
        });

But all buttons are in English language and I want change it for language
used in Device... Is it possible?

Tks..

-- 
Hedcler Morais

Telefone: +55 11 9 5945-4331
MSN: hedcler@msn.com
GTalk: hedclermorais@gmail.com
Skype: hedcler

Re: Camera UI Language

Posted by Shazron <sh...@gmail.com>.
Hi Hedcler,
This list is for developing Cordova. For using Cordova there is the
PhoneGap Google Groups:
https://groups.google.com/forum/?fromgroups#!forum/phonegap

That being said - the UI is controlled by Xcode and not Cordova. See this
question to have your answer:
https://github.com/shazron/phonegap-questions/issues/1


On Fri, May 3, 2013 at 7:06 AM, Hedcler Morais <he...@gmail.com>wrote:

> Hello,
>
> I'am writing an iOS app using phonegap and I like understand who change UI
> language to default components, for example in camera interation buttons...
>
> I use this code to call a camera and take an photo:
>
> // Capture image using Cordova API
>         navigator.device.capture.captureImage( function ( mediaFiles ) {
>             // SUCCESS CALLBACK
>             console.log('AppModel.captureImage SUCCESS');
>             _self.set({ imgid: (new Date().getTime()).toString(16),
> captured: mediaFiles[0], captureStatus: 'success' });
>         }, function ( error ) {
>             // ERROR CALLBACK
>             console.log('AppModel.captureImage ERROR ' + error.code);
>             _self.set({ imgid: null, captured: null, captureStatus: 'error
> ' + error.code });
>         }, {
>             // CONFIGURATIONS
>             quality: 50,
>             limit: 1
>         });
>
> But all buttons are in English language and I want change it for language
> used in Device... Is it possible?
>
> Tks..
>
> --
> Hedcler Morais
>
> Telefone: +55 11 9 5945-4331
> MSN: hedcler@msn.com
> GTalk: hedclermorais@gmail.com
> Skype: hedcler
>