Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E9B68D534 for ; Mon, 27 Aug 2012 17:42:48 +0000 (UTC) Received: (qmail 17986 invoked by uid 500); 27 Aug 2012 17:42:48 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 17968 invoked by uid 500); 27 Aug 2012 17:42:48 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 17922 invoked by uid 99); 27 Aug 2012 17:42:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2012 17:42:47 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FRT_ADOBE2,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mikeywbrooks@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-wg0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2012 17:42:41 +0000 Received: by wgbdr1 with SMTP id dr1so2857136wgb.0 for ; Mon, 27 Aug 2012 10:42:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=m+TC8xfV1gmNx2cMtbb+YTJtb9D/Ntx4BninPOlThqw=; b=lJwT2OLGFc+TkxoM03bgdoO6aYsyUgkwUr5kjNFhoRTYgTTLkGna/KNmQz9U5AQT5N dh3UgjfWA8NKRSW8DsJXvJwGn62ckMgKv9UtiurFgEmh35AE7SH2Akrba+ITK3YNQGIj 59hES59j/43whahAXjEm+FF9t1i6vRlVHhS/lXYQUApreEFBWR2+D67FNmluDFsIQdjM nc7+MNh3Knq7c1bdi/AwEGQeXL3AbGgoReHVTCG8USFqOfNTUts/ueJtBRrDa0UaoVSN bISewmxaAUETsxVvdlbAQkWddbQKUdq0chk1/TqWWDGAtXwID0ldCIRmho0hEIjB07FL LKXA== MIME-Version: 1.0 Received: by 10.216.240.3 with SMTP id d3mr7589817wer.87.1346089341089; Mon, 27 Aug 2012 10:42:21 -0700 (PDT) Sender: mikeywbrooks@gmail.com Received: by 10.194.16.230 with HTTP; Mon, 27 Aug 2012 10:42:21 -0700 (PDT) In-Reply-To: References: Date: Mon, 27 Aug 2012 10:42:21 -0700 X-Google-Sender-Auth: sCtSJAKxok4zxRY2Q6gXqsUxczM Message-ID: Subject: Re: Globalization Plugin From: Michael Brooks To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=e0cb4e38531602f70304c842d9a8 --e0cb4e38531602f70304c842d9a8 Content-Type: text/plain; charset=ISO-8859-1 Hi Giorgio, Thanks a bunch for volunteering to look at porting the QUnit tests to Jasmine! Android: https://github.com/phonegap/phonegap-plugins/blob/master/Android/Globalization/globalization.tests.js BlackBerry: https://github.com/phonegap/phonegap-plugins/blob/master/BlackBerry/Globalization/globalization.tests.js iOS: https://github.com/phonegap/phonegap-plugins/blob/master/iOS/Globalization/globalization.tests.js In the end, we should have one set of JavaScript tests that is run against all three platforms (ala cordova-js and mobile-spec). Michael On Sun, Aug 26, 2012 at 6:05 AM, Giorgio Natili wrote: > Hi All, > > Where are the Qunit tests? I would like to take a look and check if it's > possible accordingly to my schedule raise my hand to be a volunteer for > the porting to jasmine. > > Giorgio > > On 8/26/12 2:30 AM, "Shazron" wrote: > > >That will get us there partially (xml:lang), we still need the > >Globalization functions to determine currency, format and parse > >numbers, dates etc. according to the user's locale. > > > >On Sat, Aug 25, 2012 at 3:52 PM, Filip Maj wrote: > >> Want to point out that config.xml has a basic localization approach via > >> xml:lang attribute. You can then point to specific content (such as > >> starting pages) based on language. > >> > >> http://www.w3.org/TR/widgets/#the-xml:lang-attribute > >> > >> > >> On 8/22/12 11:56 AM, "Brian LeRoux" wrote: > >> > >>>Lunny just pointed out that there is standardization effort in ES6: > >>> > >>> > http://wiki.ecmascript.org/doku.php?id=globalization:specification_draft > >>>s > >>> > >>>Pretty intense. But I suppose thats what we'd gun for. Cordova Core > >>>are polyfills. > >>> > >>>On Wed, Aug 22, 2012 at 11:48 AM, Brion Vibber wrote: > >>>> On Wed, Aug 22, 2012 at 11:40 AM, Michael Brooks > >>>> wrote: > >>>> > >>>>> 1. Follows a W3C standard... when there is a standard. > >>>>> > >>>>> I've done a brief scan, but can't find any W3C standards around > >>>>> globalization / localization. Has anyone else found anything? > >>>>> > >>>> > >>>> I don't think there really is much standardish, other than the current > >>>> language being set in navigator.language and local date formats being > >>>> output by Date. > >>>> > >>>> For our usage in Wikipedia's apps, just getting the current language > >>>>code > >>>> is all we use Globalization for -- navigator.language is hardcoded to > >>>> English on Android, making it unusable. > >>>> > >>>> A more limited plugin that only fetches the locale language (and > >>>>perhaps > >>>> overrides navigator.language?) would do what we need and might not add > >>>>much > >>>> burden on other platforms, especially if they already implement > >>>> navigator.language correctly. The other stuff is gravy if it's > >>>>available > >>>> though! > >>>> > >>>> -- brion vibber (brion @ pobox.com / bvibber @ wikimedia.org) > >> > > > > > --e0cb4e38531602f70304c842d9a8--