Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 98F4B10135 for ; Wed, 22 Jan 2014 01:56:43 +0000 (UTC) Received: (qmail 39386 invoked by uid 500); 22 Jan 2014 01:56:43 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 39338 invoked by uid 500); 22 Jan 2014 01:56:42 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 39330 invoked by uid 99); 22 Jan 2014 01:56:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jan 2014 01:56:42 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of agrieve@google.com designates 209.85.192.176 as permitted sender) Received: from [209.85.192.176] (HELO mail-pd0-f176.google.com) (209.85.192.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jan 2014 01:56:38 +0000 Received: by mail-pd0-f176.google.com with SMTP id w10so3686628pde.21 for ; Tue, 21 Jan 2014 17:56:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=xd2j5VGfGEQhiZoOQA+gL23Gx1WbkQLoe6GYnA1t1NY=; b=YVaHx+VdnDmH2y63/zQurN75WH+OOU0Fo52NbxyCliqcrtzqKX4Kt7FAJUFMYc4hLd 6gNtfy5RpqLt3ZaxDJeEtg3o1S3T5RYxE26U9coJq0AxF5bghJE6Be6YRBX5NpzR2Kph /DOuQBdEKU93qWcVB55WTyZjXSPkSWdoQaSZ586xyf0zUCu/7pfAQHgKBjnc54KU3kU7 zF36CD92K0JXmGzrZBFNnKZ/15WRiEaGbyvfL4WjhxVv2y2Cq36cQB1jFXOOO2jjTyNM xp85erS5duA1LwkugK2NifnzJ0J99kmEiPg3JgY/VgVG8drXlkgwErKkroRXNOVbWhx4 PxZA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=xd2j5VGfGEQhiZoOQA+gL23Gx1WbkQLoe6GYnA1t1NY=; b=KqrQoVE7V2G6w4H1Lm7vwoJP6TI5k08w3b9m3XJb7DWR4oDit32qIf8uIOIJgYyTry HD/0c7te6IuMGsRRoVUgYtJHZW+UJ5vOqFq3KKm/zMA+tkB3mGj2vGo95Q0bTWuVbFCd 4unKruM4KLhquA/gISqmMQVnGTzHVRob5MHhY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=xd2j5VGfGEQhiZoOQA+gL23Gx1WbkQLoe6GYnA1t1NY=; b=bLuSrdwENU95RnFqy7OTFJoeCrll8b9s/n0rQjlcWRUK59dhaNMJQJjzR7et+6j1Cb pWm1bSDOLPIMKfGtrBqIR+mapahW3hYACKcS4Ub1RPA4LXfsxUbw20C65Dd0+qzT1n5E plTWOdoYHDSxDlq8HgTmYubhtXXdLmQdg52wMAxK55XO1iarWzUAVMfMzu8zaEQhNHq9 A17h8KvQ7EedMoIX+lBVcDcXzi/3Iq6FF6LBDLpg/jQkDHCAu1JxewbZOz1LZ96LGNPD hevxxxsyoYqhekRgEqRWaTymGA31Yq5E1psRRc0i//k0YebG+fJo+gJU0yeRv/5HpEuI NyLg== X-Gm-Message-State: ALoCoQnB6pQ97ZT7B0QJpcZo03ZcznWRGAAHKPNHSVF8R8b3+rEn+ZifW/5YIUteM5xgOZibnWcUpI8ETGDFLQJAJ1sv07Gu/8pjqMcJdwiWIdt21SyhsIeqKCpL3eaSv7DiyE+RKuQtMsIFHCLDCKvYChZj3NB4pfIbxeM2S+ozuKi8CFTQdzO5qbjoX32ukswboYKkHz1qJ5eFseD2EYSIvb64O4lpOw== X-Received: by 10.68.139.100 with SMTP id qx4mr12645999pbb.144.1390355778520; Tue, 21 Jan 2014 17:56:18 -0800 (PST) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.68.130.198 with HTTP; Tue, 21 Jan 2014 17:55:58 -0800 (PST) In-Reply-To: References: From: Andrew Grieve Date: Tue, 21 Jan 2014 20:55:58 -0500 X-Google-Sender-Auth: ISbEmnPlEkUvJch98odJi6sOOKo Message-ID: Subject: Re: Globalization broken in Cordova 3.3, iOS To: Andrew Grieve Cc: Jamie Perkins , dev Content-Type: multipart/alternative; boundary=001a11c361d24a83bd04f0856e8c X-Virus-Checked: Checked by ClamAV on apache.org --001a11c361d24a83bd04f0856e8c Content-Type: text/plain; charset=UTF-8 Ah, (didn't see your last message). Yeah, you hit the "didn't run prepare" bug then. We do support building from the IDE, doing so going forward should work fine. On Tue, Jan 21, 2014 at 8:54 PM, Andrew Grieve wrote: > There's a bug right now where you need to run "cordova prepare" after > installing a new plugin. Maybe you're hitting that? > > > On Tue, Jan 21, 2014 at 4:38 PM, Jamie Perkins wrote: > >> Hmm, nope. I definitely wait for the 'deviceready' event. >> >> I even tested it directly in the "Hello Cordova" project by adding it >> right into here: >> >> var app = { >> initialize: function() { >> this.bindEvents(); >> }, >> bindEvents: function() { >> document.addEventListener('deviceready', this.onDeviceReady, >> false); >> }, >> onDeviceReady: function() { >> app.receivedEvent('deviceready'); >> }, >> receivedEvent: function(id) { >> var parentElement = document.getElementById(id); >> var listeningElement = parentElement.querySelector('.listening'); >> var receivedElement = parentElement.querySelector('.received'); >> >> listeningElement.setAttribute('style', 'display:none;'); >> receivedElement.setAttribute('style', 'display:block;'); >> var lang = ''; >> navigator.globalization.getPreferredLanguage(function (language) { >> console.log('automatically detected language: >> '+language.value); >> lang = language.value.substr(0,2); >> }, function() { >> console.log('error retrieving language') >> }); >> >> console.log('Received Event: ' + id); >> } >> }; >> >> >> - get nothing. Also - console isn't logging either. Had to rerun >> 'app.initialize()' in safari web inspector. Am I going crazy here? >> >> >> On Tue, Jan 21, 2014 at 2:05 PM, Andrew Grieve wrote: >> >>> You can create issues here: https://issues.apache.org/jira/browse/CB/ >>> >>> Sounds like you have forgotten to wait for the "deviceready" event >>> before calling the API. >>> >>> >>> On Tue, Jan 21, 2014 at 1:19 PM, Jamie Perkins < >>> jamie@inorganikproduce.com> wrote: >>> >>>> Hi Adam, >>>> >>>> I wasn't sure how to create an issue at git-wip-us.apache.org, so >>>> sorry for the email. >>>> >>>> It appears globalization doesn't work for Cordova 3.3, at least for >>>> iOS. Please see a complete summary here: >>>> http://stackoverflow.com/questions/21249086/globalization-broken-in-cordova-3-x >>>> >>>> Project I created is using v 0.2.5 (Jan 02, 2014) of your plugin, and >>>> a quick check in the console shows while it is running in the iOS simulator >>>> for 'navigator.globalization' returns 'undefined'. >>>> >>>> Thanks, >>>> Jamie >>>> >>>> *Inorganik Produce* >>>> PO Box 19263, Denver, CO 80219 >>>> Office: 720-744-3333 >>>> Cell: 720-635-9563 >>>> jamie@inorganikproduce.com >>>> http://inorganikproduce.com >>>> >>> >>> >> > --001a11c361d24a83bd04f0856e8c--