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 D6FD5101F0 for ; Wed, 22 Jan 2014 16:45:57 +0000 (UTC) Received: (qmail 56119 invoked by uid 500); 22 Jan 2014 16:45:57 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 56088 invoked by uid 500); 22 Jan 2014 16:45:57 -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 56078 invoked by uid 99); 22 Jan 2014 16:45:56 -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 16:45:56 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of agrieve@google.com designates 209.85.220.52 as permitted sender) Received: from [209.85.220.52] (HELO mail-pa0-f52.google.com) (209.85.220.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jan 2014 16:45:53 +0000 Received: by mail-pa0-f52.google.com with SMTP id bj1so623983pad.11 for ; Wed, 22 Jan 2014 08:45:32 -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=GzlnIxTAPsRC8ZQiVEL4AyKlnOplP9a3dBSUfkZeutY=; b=M2YeG/cQ0ZXGRMI79ykq2Pwr2ednvUi4YlOGwNGhBSLHio0CaUMgDK32CY2DYlSiVk KSNZopRoSYpq1kLWwWLemj0iyCV9MjP5H1ru86fGnl49RxQgomHLpqeAYvpfTt406Vpr VlI6nf8WYFJxmdZw5dz9tQMbpGIWmEVCPKZhaeyQf/HdWUkWc4mvuxU5yDZV1ZEPHjTR AUsT6xpWQ9+p6DcUgE7qcx4BZVVb7HXpttZIzVWRxUuy9xc1dRMm1J6U/1IwuuxnBZLF JaA3SHl5/7A5WIYU3pLB+DKpAFTNGZomuZaL51ROzgag4LyjQXPq7R4lGdf7dr5DtjLW vIVw== 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=GzlnIxTAPsRC8ZQiVEL4AyKlnOplP9a3dBSUfkZeutY=; b=Bz9MFVDFhxIBkGsHFhivlGEZg+myB2GbOaexJj5Ar9H+GtUYFszeCqLkrqR5goIsuC 7IW3B92W31apCVVawUyJgrcPprpYaMqlu2eqWl2OYmKn5o9/gvzsmDy/l2f0XiQ+u47k mblzgnZe9aVjKzgkg64YRoRyU1FGSvEU+wchY= 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=GzlnIxTAPsRC8ZQiVEL4AyKlnOplP9a3dBSUfkZeutY=; b=W8oxaz13wvo0uLytE137n8vleghcd7iwCWgg1waiIWJHRRboDxWFjSkmkUJsg1sDA5 7hvizPolIUF5BDER4pFRUiwaqUbsEiurSnl9ZW+XeTZIVwaTWGjs/z4E/VwkGHzWBnT6 0RZ497u7M5OOGEG4Dgi6o2i9PB4pJy0Jmg4dOaMbBL29BnGxHSK+ge87vhlm368VKGDm /d1yMO4iiBWR3KjBwmY2kLib5J7vHjpZZduL7TXBw0rzGV3mXCa3CGffmEW1AxEyoCy7 PL9RUPY9Rj2VTlM2kJcB4aqljIJczRUY9xAfrsP+sL+q7jOAqKJlDAdDjojvX9f+AJyD ZOAQ== X-Gm-Message-State: ALoCoQndvVt4B3Mq7pGHspWfkveNKOV+pyB0ar25e4sMKkG8CTbJ026qRwU4M8sZrgK3jn3VwWS5op9fAIKQVlQnrkQ03Y1fIbUROVn727qNmS9Ql8Bn5cqth8NTprC+PUXZbtEYT2z5BQy02G4WvCpEvTZPzl7uFsU8FmZg0IwQrBx6lEtw8Rqcrji1d6/TRLASM6h6EvxbXvrIztrmfn4yC+Q6ru40rg== X-Received: by 10.66.155.7 with SMTP id vs7mr2777384pab.42.1390409132322; Wed, 22 Jan 2014 08:45:32 -0800 (PST) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.68.130.198 with HTTP; Wed, 22 Jan 2014 08:45:12 -0800 (PST) In-Reply-To: References: From: Andrew Grieve Date: Wed, 22 Jan 2014 11:45:12 -0500 X-Google-Sender-Auth: DeAnk2jzgBUSf7yRa0LDDgzga3M Message-ID: Subject: Re: Globalization broken in Cordova 3.3, iOS To: Jamie Perkins Cc: Andrew Grieve , dev Content-Type: multipart/alternative; boundary=047d7bacb8c26cce1f04f091da4c X-Virus-Checked: Checked by ClamAV on apache.org --047d7bacb8c26cce1f04f091da4c Content-Type: text/plain; charset=UTF-8 https://issues.apache.org/jira/browse/CB-5647 On Wed, Jan 22, 2014 at 11:35 AM, Jamie Perkins wrote: > Thanks. Is there a link to that bug so I can track it? > > > On Tue, Jan 21, 2014 at 6:55 PM, Andrew Grieve wrote: > >> 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 >>>>>> >>>>> >>>>> >>>> >>> >> > --047d7bacb8c26cce1f04f091da4c--