From 2ebc4677ce0de3080865567b3650a95487bf5df1 Mon Sep 17 00:00:00 2001 From: Douglas Hays Date: Thu, 2 May 2013 18:18:46 +0000 Subject: [PATCH 001/376] Fixes #17085. Change weekday label regexp from \S+ to .+? so that embedded spaces can be matched (Hebrew). Add automated test. !strict git-svn-id: http://svn.dojotoolkit.org/src/dojo/trunk@31415 560b804f-0ae3-0310-86f3-f6aa0a117693 --- date/locale.js | 2 +- tests/date/locale.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/date/locale.js b/date/locale.js index 67843ed413..f1f31ea16a 100644 --- a/date/locale.js +++ b/date/locale.js @@ -555,7 +555,7 @@ function _buildDateTimeRE(tokens, bundle, options, pattern){ case 'E': case 'e': case 'c': - s = '\\S+'; + s = '.+?'; // match anything including spaces until the first pattern delimiter is found such as a comma or space break; case 'h': //hour (1-12) s = '1[0-2]|'+p2+'[1-9]'; diff --git a/tests/date/locale.js b/tests/date/locale.js index 447d78dc49..aae4023477 100644 --- a/tests/date/locale.js +++ b/tests/date/locale.js @@ -251,6 +251,8 @@ define(["doh", "dojo/_base/array", "dojo/i18n", "dojo/_base/kernel", "dojo/date" t.is(new Date(1970,0,31), locale.parse("031", {datePattern:'DDD',selector:'date'})); t.is(new Date(1970,3,10), locale.parse("100", {datePattern:'DDD',selector:'date'})); + t.isNot(null, locale.parse(locale.format(new Date(), {locale:'he', formatLength:'full', selector:'date'}), {locale:'he', formatLength:'full', selector:'date'}), "Hebrew parse"); + } }, { From 35d1223b26bb2fd0d65a2f661756d2f3c0600a28 Mon Sep 17 00:00:00 2001 From: Eric Durocher Date: Thu, 16 May 2013 08:01:03 +0000 Subject: [PATCH 002/376] fixes #17153: don't call preventDefault for AUDIO or VIDEO elements as this prevents playing the media file on some devices. Thanks Sebastien Pereira (IBM, CCLA). !strict git-svn-id: http://svn.dojotoolkit.org/src/dojo/trunk@31439 560b804f-0ae3-0310-86f3-f6aa0a117693 --- touch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/touch.js b/touch.js index b2822209bc..ac30fe5cfa 100644 --- a/touch.js +++ b/touch.js @@ -115,7 +115,7 @@ function(dojo, aspect, dom, domClass, lang, on, has, mouse, domReady, win){ e.stopPropagation(); e.stopImmediatePropagation && e.stopImmediatePropagation(); if(type == "click" && (e.target.tagName != "INPUT" || e.target.type == "radio" || e.target.type == "checkbox") - && e.target.tagName != "TEXTAREA"){ + && e.target.tagName != "TEXTAREA" && e.target.tagName != "AUDIO" && e.target.tagName != "VIDEO"){ // preventDefault() breaks textual s on android, keyboard doesn't popup, // but it is still needed for checkboxes and radio buttons, otherwise in some cases // the checked state becomes inconsistent with the widget's state From 1f53266a1cacdd59b546f20eb1f1b478df87cea2 Mon Sep 17 00:00:00 2001 From: Bill Keese Date: Mon, 20 May 2013 10:02:40 +0900 Subject: [PATCH 003/376] fix locale and dojo/i18n issues on node, fixes #16663 - avoid exception in dojo/_base/config when navigator isn't defined - make dojo/i18n handle case when dojo.locale is undefined --- _base/config.js | 2 +- i18n.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_base/config.js b/_base/config.js index aa55c66482..d94d9c8077 100644 --- a/_base/config.js +++ b/_base/config.js @@ -183,7 +183,7 @@ return { adviseHas(result.has, "", 1); } - if(!result.locale){ + if(!result.locale && typeof navigator != "undefined"){ // Default locale for browsers. result.locale = (navigator.language || navigator.userLanguage).toLowerCase(); } diff --git a/i18n.js b/i18n.js index 2694c7ad42..2cb04e43a4 100644 --- a/i18n.js +++ b/i18n.js @@ -265,7 +265,7 @@ define(["./_base/kernel", "require", "./has", "./_base/array", "./_base/config", bundleName = match[5] || match[4], bundlePathAndName = bundlePath + bundleName, localeSpecified = (match[5] && match[4]), - targetLocale = localeSpecified || dojo.locale, + targetLocale = localeSpecified || dojo.locale || "", loadTarget = bundlePathAndName + "/" + targetLocale, loadList = localeSpecified ? [targetLocale] : getLocalesToLoad(targetLocale), remaining = loadList.length, From e7b779e5475633f51f2390aa19cc7f0a7cf42c89 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 28 May 2013 06:18:38 +0100 Subject: [PATCH 004/376] Add README.md and CONTRIBUTING.md, refs #17189 --- CONTRIBUTING.md | 227 ++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 31 +++++++ 2 files changed, 258 insertions(+) create mode 100644 CONTRIBUTING.md create mode 100644 README.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000000..aa2f58aa83 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,227 @@ +_Do you have a contribution? We welcome contributions, but please ensure that you read the following information +before issuing a pull request. Also refer back to this document as a checklist before issuing your pull request. +This will save time for everyone._ + +# Before You Start + +## Understanding the Basics + +If you don't understand what a *pull request* is, or how to submit one, please refer to the [help documentation][] +provided by GitHub. + +## Is It Really a Support Issue + +If you aren't sure if your contribution is needed or necessary, please visit the [support forum][] before attempting to +submit a pull request or a ticket. + +## Search Dojo Toolkit's Bug Database + +We require every commit to be tracked via our [bug database][]. It is useful, before you get too far, that you have +checked that your issue isn't already known, otherwise addressed? If you think it is a valid defect or enhancement, +please open a new ticket before submitting your pull request. + +## Discuss Non-Trivial Contributions with the Committers + +If your desired contribution is more than a non-trivial fix, you should discuss it on the +[contributor's mailing list][dojo-contrib]. If you currently are not a member, you can request to be added. + +## Contributor License Agreement + +We require all contributions, to be covered under the Dojo Foundation's [Contributor License Agreement][cla]. This can +be done electronically and essentially ensures that you are making it clear that your contributions are your +contributions, you have the legal right to contribute and you are transferring the copyright of your works to the Dojo +Foundation. + +If you are an unfamiliar contributor to the committer assessing your pull request, it is best to make it clear how +you are covered by a CLA in the notes of the pull request. The committer will [verify][claCheck] your status. + +If your GitHub user id you are submitting your pull request from differs from the Dojo Community ID or e-mail address +which you have signed your CLA under, you should specifically note what you have your CLA filed under (and for CCLA +that you are listed under your companies authorised contributors). + +# Submitting a Pull Request + +The following are the general steps you should follow in creating a pull request. Subsequent pull requests only need +to follow step 3 and beyond: + +1. Fork the repository on GitHub +2. Clone the forked repository to your machine +3. Create a "feature" branch in your local repository +4. Make your changes and commit them to your local repository +5. Rebase and push your commits to your GitHub remote fork/repository +6. Issue a Pull Request to the official repository +7. Your Pull Request is reviewed by a committer and merged into the repository + +*Note* While there are other ways to accomplish the steps using other tools, the examples here will assume the most +actions will be performed via the `git` command line. + +## 1. Fork the Repository + +When logged into your GitHub account, and you are viewing one of the main repositories, you will see the *Fork* button. +Clicking this button will show you which repositories your can fork to. Choose your own account. Once the process +finishes, you will have your own repository that is "forked" from the GitHub one. + +Forking is a GitHub term and not a git term. Git is a wholly distributed source control system and simply worries +about local and remote repositories and allows you to manage your code against them. GitHub then adds this additional +layer of structure of how repositories can relate to each other. + +## 2. Clone the Forked Repository + +Once you have successfully forked your repository, you will need to clone it locally to your machine: + +```bash +$ git clone --recursive git@github.com:username/dojo.git +``` + +This will clone your fork to your current path in a directory named `dojo`. + +It is important that you clone recursively for ``dojox``, ``demos`` or ``util``because some of the code is contained in +submodules. You won't be able to submit your changes to the repositories that way though. If you are working on any of +these sub-projects, you should contact those project leads to see if their workflow differs. + +You should also setup the `upstream` repository. This will allow you to take changes from the "master" repository +and merge them into your local clone and then push them to your GitHub fork: + +```bash +$ cd dojo +$ git remote add upstream git@github.com:dojo/dojo.git +$ git fetch upstream +``` + +Then you can retrieve upstream changes and rebase on them into your code like this: + +```bash +$ git pull --rebase upstream master +``` + +For more information on maintaining a fork, please see the GitHub Help article [Fork a Repo][] and information on +[rebasing][] from git. + +## 3. Create a Branch + +The easiest workflow is to keep your master branch in sync with the upstream branch and do not locate any of your own +commits in that branch. When you want to work on a new feature, you then ensure you are on the master branch and create +a new branch from there. While the name of the branch can be anything, it can often be easy to use the ticket number +you might be working on. For example: + +```bash +$ git checkout -b t12345 master +Switched to a new branch 't12345' +``` + +You will then be on the feature branch. You can verify what branch you are on like this: + +```bash +$ git status +# On branch t12345 +nothing to commit, working directory clean +``` + +## 4. Make Changes and Commit + +Now you just need to make your changes. Once you have finished your changes (and tested them) you need to commit them +to your local repository (assuming you have staged your changes for committing): + +```bash +$ git status +# On branch t12345 +# Changes to be committed: +# (use "git reset HEAD ..." to unstage) +# +# modified: somefile.js +# +$ git commit -m "Corrects some defect, fixes #12345, refs #12346" +[t12345 0000000] Corrects some defect, fixes #12345, refs #12346 + 1 file changed, 2 insertions(+), 2 deletions(-) +``` + +## 5. Rebase and Push Changes + +If you have been working on your contribution for a while, the upstream repository may have changed. You may want to +ensure your work is on top of the latest changes so your pull request can be applied cleanly: + +```bash +$ git pull --rebase upstream master +``` + +When you are ready to push your commit to your GitHub repository for the first time on this branch you would do the +following: + +```bash +$ git push -u origin t12345 +``` + +After the first time, you simply need to do: + +```bash +$ git push +``` + +## 6. Issue a Pull Request + +In order to have your commits merged into the main repository, you need to create a pull request. The instructions for +this can be found in the GitHub Help Article [Creating a Pull Request][]. Essentially you do the following: + +1. Go to the site for your repository. +2. Click the Pull Request button. +3. Select the feature branch from your repository. +4. Enter a title and description of your pull request. +5. Review the commit and files changed tabs. +6. Click `Send Pull Request` + +You will get notified about the status of your pull request based on your GitHub settings. + +## 7. Request is Reviewed and Merged + +Your request will be reviewed. It may be merged directly, or you may receive feedback or questions on your pull +request. + +# What Makes a Successful Pull Request? + +Having your contribution accepted is more than just the mechanics of getting your contribution into a pull request, +there are several other things that are expected when contributing to the Dojo Toolkit which are covered below. + +## Coding Style and Linting + +Dojo has a very specific [coding style][styleguide]. All pull requests should adhere to this. + +## Inline Documentation + +Dojo has an inline API documentation called [DojoDoc][]. Any pull request should ensure it has updated the inline +documentation appropriately or added the appropriate inline documentation. + +## Test Cases + +If the pull request changes the functional behaviour or is fixing a defect, the unit test cases should be modified to +reflect this. The committer reviewing your pull request is likely to request the appropriate changes in the test +cases. Dojo utilises its own test harness called [D.O.H.][] and is available as part of the [dojo/util][] repository. + +It is expected that you will have tested your changes against the existing test cases and appropriate platforms prior to +submitting your pull request. + +## Licensing + +All of your submissions are licensed under a dual "New" BSD/AFL license. + +## Expect Discussion and Rework + +Unless you have been working with contributing to Dojo for a while, expect a a significant amount of feedback on your +pull requests. We are a very passionate community and even the committers often will provide robust feedback to each +other about their code. Don't be offended by such feedback or feel that your contributions aren't welcome, it is just +that we are quite passionate and Dojo has a long history with many things that are the "Dojo-way" which may be +unfamiliar to those who are just starting to contribute. + +[help documentation]: http://help.github.com/send-pull-requests +[bug database]: http://bugs.dojotoolkit.org/ +[support forum]: http://dojotoolkit.org/community/ +[dojo-contrib]: http://mail.dojotoolkit.org/mailman/listinfo/dojo-contributors +[cla]: http://dojofoundation.org/about/cla +[claCheck]: http://dojofoundation.org/about/claCheck +[Creating a Pull Request]: https://help.github.com/articles/creating-a-pull-request +[Fork a Repo]: https://help.github.com/articles/fork-a-repo +[styleguide]: http://dojotoolkit.org/reference-guide/developer/styleguide.html +[DojoDoc]: http://dojotoolkit.org/reference-guide/developer/markup.html +[D.O.H.]: http://dojotoolkit.org/reference-guide/util/doh.html +[dojo/util]: https://github.com/dojo/util +[interactive rebase]: http://git-scm.com/book/en/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages +[rebasing]: http://git-scm.com/book/en/Git-Branching-Rebasing \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000000..5eb5ac30f1 --- /dev/null +++ b/README.md @@ -0,0 +1,31 @@ +# dojo + +**dojo** is the foundation package of the Dojo Toolkit. Sometimes referred to as the “core”, it contains the most +generally applicable sub-packages and modules. The dojo package covers a wide range of functionality like AJAX, DOM +manipulation, class-type programming, events, promises, data stores, drag-and-drop and internationalization libraries. + +## Installing + +Installation instructions are available at [dojotoolkit.org/download][download]. + +## Getting Started + +If you are starting out with Dojo, the following resources are available to you: + +* [Tutorials][] +* [Reference Guide][] +* [API Documentation][] +* [Community Forum][] + +## License and Copyright + +The Dojo Toolkit (including this package) is dual licensed under BSD 3-Clause and AFL. For more information on the +license please see the [License Information][]. The Dojo Toolkit is Copyright (c) 2005-2013, The Dojo Foundation. All +rights reserved. + +[download]: http://dojotoolkit.org/download/ +[Tutorials]: http://dojotoolkit.org/documentation/ +[Reference Guide]: http://dojotoolkit.org/reference-guide/ +[API Documentation]: http://dojotoolkit.org/api/ +[Community Forum]: http://dojotoolkit.org/community/ +[License Information]: http://dojotoolkit.org/license \ No newline at end of file From 4fc0e1d2ad75c6930ff9301b91f8eb35ef46847d Mon Sep 17 00:00:00 2001 From: Bill Keese Date: Thu, 30 May 2013 09:57:15 +0900 Subject: [PATCH 005/376] add missing quotes, fixes #17199 --- hccss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hccss.js b/hccss.js index fea92cad37..badefde5f8 100644 --- a/hccss.js +++ b/hccss.js @@ -25,7 +25,7 @@ define([ // note: if multiple documents, doesn't matter which one we use var div = win.doc.createElement("div"); div.style.cssText = "border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;" + - "background-image: url(" + (config.blankGif || require.toUrl("./resources/blank.gif")) + ");"; + "background-image: url(\"" + (config.blankGif || require.toUrl("./resources/blank.gif")) + "\");"; win.body().appendChild(div); var cs = domStyle.getComputedStyle(div), From ddb069635e9577560db37f42025be93e1ea19f09 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Thu, 30 May 2013 07:33:51 +0100 Subject: [PATCH 006/376] Fixes relative paths when using dojo/node, fixes #16414 --- node.js | 27 ++++++++++++++++++++++----- tests/node.js | 10 +++++----- tests/resources/noderequireamd.js | 2 +- 3 files changed, 28 insertions(+), 11 deletions(-) diff --git a/node.js b/node.js index f33d8ae4df..f804ba9ef6 100644 --- a/node.js +++ b/node.js @@ -3,6 +3,13 @@ define(["./has"], function(has){ throw new Error("node plugin failed to load because environment is not Node.js"); } + var pathUtil; + if(require.nodeRequire){ + pathUtil = require.nodeRequire("path"); + }else{ + throw new Error("node plugin failed to load because it cannot find the original Node.js require"); + } + return { // summary: // This AMD plugin module allows native Node.js modules to be loaded by AMD modules using the Dojo @@ -30,18 +37,28 @@ define(["./has"], function(has){ // temporarily moved into another variable, it will prevent modules from detecting AMD in this fashion. define = undefined; - try { + try{ result = require(id); - } finally { + }finally{ define = oldDefine; } return result; })(id, require.nodeRequire)); }, - normalize: function (/**string*/ id) { - if (id.charAt(0) === '.') { - id = require.baseUrl + id; + normalize: function (/**string*/ id, /*Function*/ normalize){ + // summary: + // Produces a normalized id to be used by node. Relative ids are resolved relative to the requesting + // module's location in the file system and will return an id with path separators appropriate for the + // local file system. + + if(id.charAt(0) === "."){ + // dirname of the reference module - normalized to match the local file system + var referenceModuleDirname = require.toUrl(normalize(".")).replace("/", pathUtil.sep), + segments = id.split("/"); + segments.unshift(referenceModuleDirname); + // this will produce an absolute path normalized to the semantics of the underlying file system. + id = pathUtil.join.apply(pathUtil, segments); } return id; diff --git a/tests/node.js b/tests/node.js index 585e5c1f6f..733a970345 100644 --- a/tests/node.js +++ b/tests/node.js @@ -1,4 +1,4 @@ -define([ "doh/main" ], function(doh){ +define([ "require", "doh/main" ], function(require, doh){ doh.register("tests.node", [ function testRequireBuiltIn(t){ var td = new doh.Deferred(); @@ -19,7 +19,7 @@ define([ "doh/main" ], function(doh){ function testRequireSimpleModule(t){ var td = new doh.Deferred(); - require(["dojo/node!./tests/resources/nodemodule"], td.getTestCallback(function(nodemodule){ + require(["dojo/node!./resources/nodemodule"], td.getTestCallback(function(nodemodule){ t.t("test" in nodemodule, "module loaded"); t.is(nodemodule.test, "value", "object has expected value"); })); @@ -28,7 +28,7 @@ define([ "doh/main" ], function(doh){ function testRequireRequire(t){ var td = new doh.Deferred(); - require(["dojo/node!./tests/resources/noderequire"], td.getTestCallback(function(noderequire){ + require(["dojo/node!./resources/noderequire"], td.getTestCallback(function(noderequire){ t.t("test" in noderequire, "module loaded"); t.is(noderequire.test, "value", "object has expected value"); })); @@ -37,7 +37,7 @@ define([ "doh/main" ], function(doh){ function testRequirePackageJson(t){ var td = new doh.Deferred(); - require(["dojo/node!./tests/resources/nodemod"], td.getTestCallback(function(nodemod){ + require(["dojo/node!./resources/nodemod"], td.getTestCallback(function(nodemod){ t.t("test" in nodemod, "module loaded"); t.is(nodemod.test, "value", "object has expected value"); })); @@ -46,7 +46,7 @@ define([ "doh/main" ], function(doh){ function testRequireCommonJSAMD(t){ var td = new doh.Deferred(); - require(["dojo/node!./tests/resources/noderequireamd"], td.getTestCallback(function(noderequireamd){ + require(["dojo/node!./resources/noderequireamd"], td.getTestCallback(function(noderequireamd){ t.t(noderequireamd.nodeamd.test === "foo", "module loaded"); })); return td; diff --git a/tests/resources/noderequireamd.js b/tests/resources/noderequireamd.js index c276a250a1..d7366f8ea9 100644 --- a/tests/resources/noderequireamd.js +++ b/tests/resources/noderequireamd.js @@ -4,4 +4,4 @@ var noderequireamd = module.exports = exports; -noderequireamd.nodeamd = require("./nodeamd.js"); +noderequireamd.nodeamd = require("./nodeamd"); From f8c0a982ec0ba4debb21713a27732fcfafb527f1 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Thu, 6 Jun 2013 08:21:20 +0100 Subject: [PATCH 007/376] Only require selector/_loader when DOM present. Fixes #17138. --- request/handlers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request/handlers.js b/request/handlers.js index f88d3bc26b..e04c2293f6 100644 --- a/request/handlers.js +++ b/request/handlers.js @@ -3,7 +3,7 @@ define([ '../_base/kernel', '../_base/array', '../has', - '../selector/_loader' // only included for has() qsa tests + '../has!dom?../selector/_loader' // only included for has() qsa tests ], function(JSON, kernel, array, has){ has.add('activex', typeof ActiveXObject !== 'undefined'); has.add('dom-parser', function(global){ From 5e274c556f275c4b74bdfa2b0ba6ce6ed0427890 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Thu, 6 Jun 2013 08:36:19 +0100 Subject: [PATCH 008/376] Fix typo in CONTRIBUTING.md, refs #17189. Thanks @Maastermedia. --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index aa2f58aa83..d0b7932cfe 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -205,7 +205,7 @@ All of your submissions are licensed under a dual "New" BSD/AFL license. ## Expect Discussion and Rework -Unless you have been working with contributing to Dojo for a while, expect a a significant amount of feedback on your +Unless you have been working with contributing to Dojo for a while, expect a significant amount of feedback on your pull requests. We are a very passionate community and even the committers often will provide robust feedback to each other about their code. Don't be offended by such feedback or feel that your contributions aren't welcome, it is just that we are quite passionate and Dojo has a long history with many things that are the "Dojo-way" which may be @@ -224,4 +224,4 @@ unfamiliar to those who are just starting to contribute. [D.O.H.]: http://dojotoolkit.org/reference-guide/util/doh.html [dojo/util]: https://github.com/dojo/util [interactive rebase]: http://git-scm.com/book/en/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages -[rebasing]: http://git-scm.com/book/en/Git-Branching-Rebasing \ No newline at end of file +[rebasing]: http://git-scm.com/book/en/Git-Branching-Rebasing From bb07918c89e4354a8a11921b399c92ffb4afe126 Mon Sep 17 00:00:00 2001 From: Bill Keese Date: Thu, 30 May 2013 10:45:18 +0900 Subject: [PATCH 009/376] .gitattributes file to normalize line endings --- .gitattributes | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..72dd6c8df8 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,40 @@ +# Set the default behavior, in case users don't have core.autocrlf set +* text=auto + +# Files that should always be normalized and converted to native line +# endings on checkout. +*.js text +*.json text +*.htm text +*.html text +*.svg text +*.txt text +*.xml text +*.xsl text +*.dtd text +*.css text +*.rest text +*.rst text +*.md text +*.php text +*.phps text +*.inc text +*.sh text +*.bat text +*.styl text +*.less text +Makefile text +README text +CHANGELOG text +LICENSE text +INSTALL text +BUILD text + +# Files that are truly binary and should not be modified +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.jar binary +*.zip binary +*.psd binary From 755fbbc3be5cb56555d1f237d3c6418569418b45 Mon Sep 17 00:00:00 2001 From: Bill Keese Date: Fri, 21 Jun 2013 08:57:53 +0900 Subject: [PATCH 010/376] fix hint text, refs #12176 --- tests/test_touch.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_touch.html b/tests/test_touch.html index 8e2b16e47c..f703664f6a 100644 --- a/tests/test_touch.html +++ b/tests/test_touch.html @@ -123,8 +123,8 @@ obj.target = e.target; } function assert(obj, type, target){ - doh.assertEqual(type, obj.type); - doh.assertEqual(target, obj.target); + doh.is(type, obj.type, "type"); + doh.is(target, obj.target, "target"); } doh.register("dojo.touch", [ @@ -136,7 +136,7 @@ setObj(obj, e); }); on.emit(dohDiv, mspointer?'MSPointerDown':'mousedown', {}); - doh.assertTrue(executed, 'dojo.touch.press not fired'); + doh.t(executed, 'dojo.touch.press fired'); assert(obj, mspointer?'MSPointerDown':'mousedown', dohDiv); }, function move(){ @@ -147,7 +147,7 @@ setObj(obj, e); }); on.emit(dohDiv, mspointer?'MSPointerMove':'mousemove', {}); - doh.assertTrue(executed, 'dojo.touch.move not fired'); + doh.t(executed, 'dojo.touch.move fired'); assert(obj, mspointer?'MSPointerMove':'mousemove', dohDiv); }, function release(){ @@ -158,7 +158,7 @@ setObj(obj, e); }); on.emit(dohDiv, mspointer?'MSPointerUp':'mouseup', {screenX: 0, screenY: 50}); - doh.assertTrue(executed, 'dojo.touch.release not fired'); + doh.t(executed, 'dojo.touch.release fired'); assert(obj, mspointer?'MSPointerUp':'mouseup', dohDiv); }, function cancel(){ @@ -168,7 +168,7 @@ setObj(obj, e); }); on.emit(dohDiv, 'mouseout', {screenX: 0, screenY: 50}); - doh.assertTrue(executed, 'dojo.touch.cancel not fired'); + doh.t(executed, 'dojo.touch.cancel fired'); assert(obj, 'mouseout', dohDiv); } ]); From b72122cead59bd0a4d11662760b5d829b0521037 Mon Sep 17 00:00:00 2001 From: Bill Keese Date: Thu, 4 Jul 2013 13:53:02 +0900 Subject: [PATCH 011/376] uncomment tests that are working on latest chrome, refs #14879 --- tests/query/query.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/query/query.html b/tests/query/query.html index 234c46a995..592f1ad0ab 100644 --- a/tests/query/query.html +++ b/tests/query/query.html @@ -292,9 +292,8 @@ "doh.is(5, query('#t > *:nth-child(2n+4)').length);", "doh.is(5, query('#t > *:nth-child(2n+4)').length);", "doh.is(5, query('#t> *:nth-child(2n+4)').length);", - // TODO: uncomment these two tests when #14879 fixed - //"doh.is(12, query('#t > *:nth-child(n-5)').length);", - //"doh.is(12, query('#t >*:nth-child(n-5)').length);", + "doh.is(12, query('#t > *:nth-child(n-5)').length);", + "doh.is(12, query('#t >*:nth-child(n-5)').length);", "doh.is(6, query('#t > *:nth-child(2n-5)').length);", "doh.is(6, query('#t>*:nth-child(2n-5)').length);", // TODO: uncomment when #14879 fixed From 13cdcc934d44915bb51304937a6782a81d79c235 Mon Sep 17 00:00:00 2001 From: liucougar Date: Mon, 8 Jul 2013 18:24:42 -0700 Subject: [PATCH 012/376] refs #17301: fix dojo/on.selector to properly handle text node --- on.js | 4 ++++ tests/on/on.js | 19 +++++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/on.js b/on.js index 16c8803141..fa9b270d5d 100644 --- a/on.js +++ b/on.js @@ -186,6 +186,10 @@ define(["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./sniff"], fu // see if we have a valid matchesTarget or default to dojo.query matchesTarget = matchesTarget && matchesTarget.matches ? matchesTarget : dojo.query; // there is a selector, so make sure it matches + if(eventTarget.nodeType != 1){ + // text node will fail in native match selector + eventTarget = eventTarget.parentNode; + } while(!matchesTarget.matches(eventTarget, selector, target)){ if(eventTarget == target || children === false || !(eventTarget = eventTarget.parentNode) || eventTarget.nodeType != 1){ // intentional assignment return; diff --git a/tests/on/on.js b/tests/on/on.js index 6452fc76ed..bf7b557506 100644 --- a/tests/on/on.js +++ b/tests/on/on.js @@ -60,6 +60,7 @@ define([ function dom(t){ var div = document.body.appendChild(document.createElement("div")); var span = div.appendChild(document.createElement("span")); + var order = []; var signal = on(div,"custom", function(event){ order.push(event.a); @@ -155,22 +156,32 @@ define([ // test out event delegation if(query){ // if dojo.query is loaded, test event delegation - on(div, "button:click", function(){ + + // check text node target is properly handled by event delegation + var textnodespan = div.appendChild(document.createElement("span")); + textnodespan.className = "textnode"; + textnodespan.innerHTML = "text"; + on(document.body, ".textnode:click", function(){ order.push(8); }); + on.emit(textnodespan.firstChild, "click", {bubbles: true, cancelable: true}); + + on(div, "button:click", function(){ + order.push(9); + }); on(document, "button:click", function(){ }); // just make sure this doesn't throw an error }else{//just pass then - order.push(8); + order.push(8, 9); } // test out event delegation using a custom selector on(div, on.selector(function(node){ return node.tagName == "BUTTON"; }, "click"), function(){ - order.push(9); + order.push(10); }); button.click(); - t.is(order, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]); + t.is([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], order); on(span, "propertychange", function(){}); // make sure it doesn't throw an error }, /* From 6647dcdb24a997a0d6183e0c94c2525b9ae4a8d4 Mon Sep 17 00:00:00 2001 From: Sebastien Pereira Date: Thu, 11 Jul 2013 23:24:41 +0900 Subject: [PATCH 013/376] Fixes preventDefault() on synthetic event "touch.move" which has no effect on "touchmove" native event. Refs #17220. --- tests/test_touch.html | 222 ++++++++++++++++++++++++++++-------------- touch.js | 6 +- 2 files changed, 155 insertions(+), 73 deletions(-) diff --git a/tests/test_touch.html b/tests/test_touch.html index f703664f6a..bcf3e3bbe6 100644 --- a/tests/test_touch.html +++ b/tests/test_touch.html @@ -2,19 +2,19 @@ - + Dojo Touch Testing + + + + From 682f5d0dfeb4833842d476e6d8da946f6eb97e0f Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sat, 23 Nov 2013 20:43:54 +0000 Subject: [PATCH 032/376] Make SimpleQueryEngine sort Dates correctly Fixes #17068. --- store/util/SimpleQueryEngine.js | 3 +++ tests/store/Memory.js | 14 +++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/store/util/SimpleQueryEngine.js b/store/util/SimpleQueryEngine.js index 57d67b4fa9..6b74a91ffb 100644 --- a/store/util/SimpleQueryEngine.js +++ b/store/util/SimpleQueryEngine.js @@ -88,6 +88,9 @@ return function(query, options){ for(var sort, i=0; sort = sortSet[i]; i++){ var aValue = a[sort.attribute]; var bValue = b[sort.attribute]; + // valueOf enables proper comparison of dates + aValue = aValue != null ? aValue.valueOf() : aValue; + bValue = bValue != null ? bValue.valueOf() : bValue; if (aValue != bValue){ return !!sort.descending == (aValue == null || aValue > bValue) ? -1 : 1; } diff --git a/tests/store/Memory.js b/tests/store/Memory.js index 005a6aba16..1a1ee56263 100644 --- a/tests/store/Memory.js +++ b/tests/store/Memory.js @@ -1,11 +1,11 @@ define(["doh", "dojo/store/Memory"], function(doh, Memory){ var store = new Memory({ data: [ - {id: 1, name: "one", prime: false, mappedTo: "E"}, - {id: 2, name: "two", even: true, prime: true, mappedTo: "D"}, - {id: 3, name: "three", prime: true, mappedTo: "C"}, - {id: 4, name: "four", even: true, prime: false, mappedTo: null}, - {id: 5, name: "five", prime: true, mappedTo: "A"} + {id: 1, name: "one", prime: false, mappedTo: "E", date: new Date(1970, 0, 1) }, + {id: 2, name: "two", even: true, prime: true, mappedTo: "D", date: new Date(1980, 1, 2) }, + {id: 3, name: "three", prime: true, mappedTo: "C", date: new Date(1990, 2, 3) }, + {id: 4, name: "four", even: true, prime: false, mappedTo: null, date: new Date(1972, 3, 6, 12, 1) }, + {id: 5, name: "five", prime: true, mappedTo: "A", date: new Date(1972, 3, 6, 6, 2) } ] }); doh.register("dojo.tests.store.Memory", @@ -40,6 +40,10 @@ define(["doh", "dojo/store/Memory"], function(doh, Memory){ return a.name < b.name ? -1 : 1; }})[1].name, "two"); t.is(store.query(null, {sort:[{attribute:"mappedTo"}]})[4].name, "four"); + + t.is([ 1, 5, 4, 2, 3 ], store.query({}, { sort: [ { attribute: "date", descending: false } ] }).map(function (item) { + return item.id; + })); }, function testQueryWithPaging(t){ t.is(store.query({prime: true}, {start: 1, count: 1}).length, 1); From 5c86aadf89e576075dfb27898a7897112751edad Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Mon, 25 Nov 2013 06:38:53 -0700 Subject: [PATCH 033/376] Only set idProperty if identifier provided, fixes #17557 --- store/Memory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/Memory.js b/store/Memory.js index e135a4ed8f..c5fa3568c7 100644 --- a/store/Memory.js +++ b/store/Memory.js @@ -149,7 +149,7 @@ return declare("dojo.store.Memory", base, { // An array of objects to use as the source of data. if(data.items){ // just for convenience with the data format IFRS expects - this.idProperty = data.identifier; + this.idProperty = data.identifier || this.idProperty; data = this.data = data.items; }else{ this.data = data; From b3913ea311ac2d4ee4caca49c305757adf2fcfc0 Mon Sep 17 00:00:00 2001 From: Christophe Jolif Date: Thu, 28 Nov 2013 16:38:12 +0100 Subject: [PATCH 034/376] make sure the documentation is in accordance with the implementation --- promise/all.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/promise/all.js b/promise/all.js index a3bd7c4c5f..b352621af4 100644 --- a/promise/all.js +++ b/promise/all.js @@ -13,12 +13,12 @@ define([ return function all(objectOrArray){ // summary: // Takes multiple promises and returns a new promise that is fulfilled - // when all promises have been fulfilled. + // when all promises have been resolved or one has been rejected. // description: // Takes multiple promises and returns a new promise that is fulfilled - // when all promises have been fulfilled. If one of the promises is rejected, - // the returned promise is also rejected. Canceling the returned promise will - // *not* cancel any passed promises. + // when all promises have been resolved or one has been rejected. If one of + // the promises is rejected, the returned promise is also rejected. Canceling + // the returned promise will *not* cancel any passed promises. // objectOrArray: Object|Array? // The promise will be fulfilled with a list of results if invoked with an // array, or an object of results when passed an object (using the same From 477d62923e7cd1e32799395301f21c008dc55de6 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Tue, 26 Nov 2013 22:58:30 +0000 Subject: [PATCH 035/376] Revert "Fix IE11 sniffing. Fixes #17311." This reverts commit f58c0e19ce509398985908688a768c8fb41191b8. --- sniff.js | 29 ++++++++++++----------------- window.js | 2 +- 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/sniff.js b/sniff.js index 1a5058f736..99266d5e0d 100644 --- a/sniff.js +++ b/sniff.js @@ -44,15 +44,19 @@ define(["./has"], function(has){ has.add("opera", tv >= 9.8 ? parseFloat(dua.split("Version/")[1]) || tv : tv); } - var isIE = 0; - if(document.all && !has("opera")){ - // IE < 11 - isIE = parseFloat(dav.split("MSIE ")[1]) || undefined; - }else if(dav.indexOf("Trident")){ - // IE >= 9 - isIE = parseFloat(dav.split("rv:")[1]) || undefined; + // Mozilla and firefox + if(dua.indexOf("Gecko") >= 0 && !has("khtml") && !has("webkit")){ + has.add("mozilla", tv); } - if(isIE){ + if(has("mozilla")){ + //We really need to get away from this. Consider a sane isGecko approach for the future. + has.add("ff", parseFloat(dua.split("Firefox/")[1] || dua.split("Minefield/")[1]) || undefined); + } + + // IE + if(document.all && !has("opera")){ + var isIE = parseFloat(dav.split("MSIE ")[1]) || undefined; + //In cases where the page has an HTTP header or META tag with //X-UA-Compatible, then it is in emulation mode. //Make sure isIE reflects the desired version. @@ -66,15 +70,6 @@ define(["./has"], function(has){ has.add("ie", isIE); } - - // Mozilla and firefox - if(!has("ie") && dua.indexOf("Gecko") >= 0 && !has("khtml") && !has("webkit")){ - has.add("mozilla", tv); - } - if(has("mozilla")){ - //We really need to get away from this. Consider a sane isGecko approach for the future. - has.add("ff", parseFloat(dua.split("Firefox/")[1] || dua.split("Minefield/")[1]) || undefined); - } // Wii has.add("wii", typeof opera != "undefined" && opera.wiiremote); diff --git a/window.js b/window.js index c02cc3c10d..c9d24b24f0 100644 --- a/window.js +++ b/window.js @@ -100,7 +100,7 @@ define(["./_base/lang", "./sniff", "./_base/window", "./dom", "./dom-geometry", // reference to the real window object (maybe a copy), so we must fix it as well // We use IE specific execScript to attach the real window reference to // document._parentWindow for later use - if(has("ie") < 9 && window !== document.parentWindow){ + if(has("ie") && window !== document.parentWindow){ /* In IE 6, only the variable "window" can be used to connect events (others may be only copies). From e245ce5c80b85351642fd1ffc18a2d77bbbb0770 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Fri, 29 Nov 2013 21:10:53 +0000 Subject: [PATCH 036/376] Correct detection of focusin support Fixes #17599 --- on.js | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/on.js b/on.js index 0c44ec8818..3f467f5583 100644 --- a/on.js +++ b/on.js @@ -7,9 +7,26 @@ define(["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./sniff"], fu has.add("event-orientationchange", has("touch") && !has("android")); // TODO: how do we detect this? has.add("event-stopimmediatepropagation", window.Event && !!window.Event.prototype && !!window.Event.prototype.stopImmediatePropagation); has.add("event-focusin", function(global, doc, element){ - // All browsers except firefox support focusin, but too hard to feature test webkit since element.onfocusin - // is undefined. Just return true for IE and use fallback path for other browsers. - return !!element.attachEvent; + return 'onfocusin' in element || (element.addEventListener && (function () { + var hasFocusInEvent = false; + function testFocus() { + hasFocusInEvent = true; + } + + try { + var element = doc.createElement('input'), + style = element.style; + style.position = 'absolute'; + style.top = element.style.left = '0'; + element.addEventListener('focusin', testFocus, false); + doc.body.appendChild(element); + element.focus(); + doc.body.removeChild(element); + element.removeEventListener('focusin', testFocus, false); + } catch (e) {} + + return hasFocusInEvent; + })()); }); } var on = function(target, type, listener, dontFix){ From 28c2050cbb7f69daa57bd66e3b740a16bb19fd75 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Fri, 29 Nov 2013 21:13:02 +0000 Subject: [PATCH 037/376] Add Microsoft-recommended UA sniff for IE11 Fixes #17311 --- sniff.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sniff.js b/sniff.js index 99266d5e0d..e2ed0cbf70 100644 --- a/sniff.js +++ b/sniff.js @@ -33,6 +33,7 @@ define(["./has"], function(has){ } has.add("android", parseFloat(dua.split("Android ")[1]) || undefined); has.add("bb", (dua.indexOf("BlackBerry") >= 0 || dua.indexOf("BB10") >= 0) && parseFloat(dua.split("Version/")[1]) || undefined); + has.add("trident", parseFloat(dav.split("Trident/")[1]) || undefined); has.add("svg", typeof SVGAngle !== "undefined"); @@ -45,7 +46,7 @@ define(["./has"], function(has){ } // Mozilla and firefox - if(dua.indexOf("Gecko") >= 0 && !has("khtml") && !has("webkit")){ + if(dua.indexOf("Gecko") >= 0 && !has("khtml") && !has("webkit") && !has("trident")){ has.add("mozilla", tv); } if(has("mozilla")){ From a3dd7a47aa01315e601525b0d8217a8408237149 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Fri, 29 Nov 2013 21:13:56 +0000 Subject: [PATCH 038/376] Remove dumb speed test that compares against an old API we will never restore Fixes #11200 --- tests/_base/html_docScroll.html | 38 --------------------------------- 1 file changed, 38 deletions(-) diff --git a/tests/_base/html_docScroll.html b/tests/_base/html_docScroll.html index effc2fe764..921a232737 100644 --- a/tests/_base/html_docScroll.html +++ b/tests/_base/html_docScroll.html @@ -38,44 +38,6 @@ var s = dojo.withGlobal(win, "_docScroll", dojo); t.is(10, s.x); t.is(20, s.y); - }, - - function testSpeed(t){ - var old_docScroll = function(){ - var - _b = dojo.body(), - _w = dojo.global, - de = dojo.doc.documentElement; - return { - y: (_w.pageYOffset || de.scrollTop || _b.scrollTop || 0), - x: (_w.pageXOffset || dojo._fixIeBiDiScrollLeft(de.scrollLeft) || _b.scrollLeft || 0) - }; - }; - var count = 10000; // initial guess - var new_docScroll = dojo._docScroll; - var t0 = new Date().getTime(); - for (var i=0; i < count; i++){ - var j = new_docScroll(); - } - t0 = new Date().getTime() - t0; - // modify guess to get about 1 second of CPU crunching - if(t0 < 50){ // crazy short time - count *= 25; - }else{ - count = Math.ceil(10000000/t0); - } - t0 = new Date().getTime(); - for (i=0; i < count; i++){ - j = new_docScroll(); - } - t0 = new Date().getTime() - t0; - var t1 = new Date().getTime(); - for (var i=0; i < count; i++){ - j = old_docScroll(); - } - t1 = new Date().getTime() - t1; - console.log(Math.floor(100*(t1-t0)/t1)+"% speed improvement"); - t.is(true, t1 > t0); } ] ); From de651e625d9d2dc9220e7a02647689a4299777d5 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Fri, 29 Nov 2013 21:15:08 +0000 Subject: [PATCH 039/376] Support unprefixed pointer events in dojo/touch Refs #17600 --- tests/test_touch.html | 5 ++++- touch.js | 31 ++++++++++++++++++++----------- 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/tests/test_touch.html b/tests/test_touch.html index 0750d75a3b..92b383d8e1 100644 --- a/tests/test_touch.html +++ b/tests/test_touch.html @@ -301,7 +301,10 @@ } // Setup tests relevant for this platform - if(navigator.msPointerEnabled){ + if(navigator.pointerEnabled){ + register('Pointer events', 'pointerdown', 'pointermove', 'pointerup', + has('touch') ? 'pointercancel' : 'mouseout'); + }else if(navigator.msPointerEnabled){ register('MSPointer events', 'MSPointerDown', 'MSPointerMove', 'MSPointerUp', has('touch') ? 'MSPointerCancel' : 'mouseout'); }else{ diff --git a/touch.js b/touch.js index 3f442e0c6f..d573503fcb 100644 --- a/touch.js +++ b/touch.js @@ -8,7 +8,16 @@ function(dojo, aspect, dom, domClass, lang, on, has, mouse, domReady, win){ var ios4 = has("ios") < 5; - var msPointer = navigator.msPointerEnabled; + var msPointer = navigator.pointerEnabled || navigator.msPointerEnabled, + pointer = (function () { + var pointer = {}; + for (var type in { down: 1, move: 1, up: 1, cancel: 1, over: 1, out: 1 }) { + pointer[type] = !navigator.pointerEnabled ? + "MSPointer" + type.charAt(0).toUpperCase() + type.slice(1) : + "pointer" + type; + } + return pointer; + })(); // Click generation variables var clicksInited, clickTracker, clickTarget, clickX, clickY, clickDx, clickDy, clickTime; @@ -165,8 +174,8 @@ function(dojo, aspect, dom, domClass, lang, on, has, mouse, domReady, win){ if(msPointer){ // MSPointer (IE10+) already has support for over and out, so we just need to init click support domReady(function(){ - win.doc.addEventListener("MSPointerDown", function(evt){ - doClicks(evt, "MSPointerMove", "MSPointerUp"); + win.doc.addEventListener(pointer.down, function(evt){ + doClicks(evt, pointer.move, pointer.up); }, true); }); }else{ @@ -268,14 +277,14 @@ function(dojo, aspect, dom, domClass, lang, on, has, mouse, domReady, win){ //device neutral events - touch.press|move|release|cancel/over/out var touch = { - press: dualEvent("mousedown", "touchstart", "MSPointerDown"), - move: dualEvent("mousemove", "dojotouchmove", "MSPointerMove"), - release: dualEvent("mouseup", "dojotouchend", "MSPointerUp"), - cancel: dualEvent(mouse.leave, "touchcancel", hasTouch?"MSPointerCancel":null), - over: dualEvent("mouseover", "dojotouchover", "MSPointerOver"), - out: dualEvent("mouseout", "dojotouchout", "MSPointerOut"), - enter: mouse._eventHandler(dualEvent("mouseover","dojotouchover", "MSPointerOver")), - leave: mouse._eventHandler(dualEvent("mouseout", "dojotouchout", "MSPointerOut")) + press: dualEvent("mousedown", "touchstart", pointer.down), + move: dualEvent("mousemove", "dojotouchmove", pointer.move), + release: dualEvent("mouseup", "dojotouchend", pointer.up), + cancel: dualEvent(mouse.leave, "touchcancel", hasTouch ? pointer.cancel : null), + over: dualEvent("mouseover", "dojotouchover", pointer.over), + out: dualEvent("mouseout", "dojotouchout", pointer.out), + enter: mouse._eventHandler(dualEvent("mouseover","dojotouchover", pointer.over)), + leave: mouse._eventHandler(dualEvent("mouseout", "dojotouchout", pointer.out)) }; /*===== From bbe72ecd13f5604802b2498f3623e7c5961069f4 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Fri, 29 Nov 2013 21:17:49 +0000 Subject: [PATCH 040/376] Add Trident UA to match every other UA Refs #17311 --- window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window.js b/window.js index c9d24b24f0..3505087a5e 100644 --- a/window.js +++ b/window.js @@ -134,7 +134,7 @@ define(["./_base/lang", "./sniff", "./_base/window", "./dom", "./dom-geometry", isWK = has("webkit"); // if an untested browser, then use the native method if(node == body || node == html){ return; } - if(!(has("mozilla") || isIE || isWK || has("opera")) && ("scrollIntoView" in node)){ + if(!(has("mozilla") || isIE || isWK || has("opera") || has("trident")) && ("scrollIntoView" in node)){ node.scrollIntoView(false); // short-circuit to native if possible return; } From 2536e5cd0935cc7356d584bab6ac2c73d3ad6164 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Fri, 6 Dec 2013 20:51:50 +0000 Subject: [PATCH 041/376] Improve focusin detection support This change prevents unintentional scrolling and unfocusing of whatever element was in focus before the feature detect in browsers that need to do the long feature detect. Adds test case. Refs #17599 --- on.js | 6 ++--- tests/on/event-focusin.html | 46 +++++++++++++++++++++++++++++++++++++ tests/on/on.js | 8 +++++-- 3 files changed, 55 insertions(+), 5 deletions(-) create mode 100644 tests/on/event-focusin.html diff --git a/on.js b/on.js index 3f467f5583..a0d182a6fb 100644 --- a/on.js +++ b/on.js @@ -15,14 +15,14 @@ define(["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./sniff"], fu try { var element = doc.createElement('input'), - style = element.style; - style.position = 'absolute'; - style.top = element.style.left = '0'; + activeElement = doc.activeElement; + element.style.position = 'fixed'; element.addEventListener('focusin', testFocus, false); doc.body.appendChild(element); element.focus(); doc.body.removeChild(element); element.removeEventListener('focusin', testFocus, false); + activeElement.focus(); } catch (e) {} return hasFocusInEvent; diff --git a/tests/on/event-focusin.html b/tests/on/event-focusin.html new file mode 100644 index 0000000000..44cc298eea --- /dev/null +++ b/tests/on/event-focusin.html @@ -0,0 +1,46 @@ + + + + dojo/on focusin feature detection + + + +
+ + + diff --git a/tests/on/on.js b/tests/on/on.js index c24a388861..46d80d49c8 100644 --- a/tests/on/on.js +++ b/tests/on/on.js @@ -1,7 +1,7 @@ define([ - "doh", + "doh", "require", "dojo/_base/declare", "dojo/Evented", "dojo/has", "dojo/on", "dojo/query", "dojo/topic", "dojo/dom-construct" -], function(doh, declare, Evented, has, on, query, topic, domConstruct){ +], function(doh, require, declare, Evented, has, on, query, topic, domConstruct){ doh.register("tests.on", [ function object(t){ @@ -310,4 +310,8 @@ define([ t.is(testValue, 3); } ]); + + if(has("host-browser")){ + doh.registerUrl("tests.on.event-focusin", require.toUrl("./event-focusin.html"), 30000); + } }); From 341e41f1797739449d883e8951cda54bde53417e Mon Sep 17 00:00:00 2001 From: Rawld Gill Date: Thu, 12 Dec 2013 22:13:50 +0100 Subject: [PATCH 042/376] improve i18n preload to take advantage of partially flattened locales, fixes #17155 --- i18n.js | 116 ++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 97 insertions(+), 19 deletions(-) diff --git a/i18n.js b/i18n.js index f34d2223db..4429fe33dc 100644 --- a/i18n.js +++ b/i18n.js @@ -343,26 +343,104 @@ define(["./_base/kernel", "require", "./has", "./_base/array", "./_base/config", func("ROOT"); } - function preload(locale){ - locale = normalizeLocale(locale); - forEachLocale(locale, function(loc){ - if(array.indexOf(localesGenerated, loc)>=0){ - var mid = bundlePrefix.replace(/\./g, "/")+"_"+loc; - preloading++; - doRequire(mid, function(rollup){ - for(var p in rollup){ - cache[require.toAbsMid(p) + "/" + loc] = rollup[p]; - } - --preloading; - while(!preloading && preloadWaitQueue.length){ - load.apply(null, preloadWaitQueue.shift()); - } - }); - return true; + function preloadingAddLock(){ + preloading++; + } + + function preloadingRelLock(){ + --preloading; + while(!preloading && preloadWaitQueue.length){ + load.apply(null, preloadWaitQueue.shift()); } - return false; - }); - } + } + + function cacheId(path, name, loc, require){ + // path is assumed to have a trailing "/" + return require.toAbsMid(path + name + "/" + loc) + } + + function preload(locale){ + locale = normalizeLocale(locale); + forEachLocale(locale, function(loc){ + if(array.indexOf(localesGenerated, loc) >= 0){ + var mid = bundlePrefix.replace(/\./g, "/") + "_" + loc; + preloadingAddLock(); + doRequire(mid, function(rollup){ + for(var p in rollup){ + var bundle = rollup[p], + match = p.match(/(.+)\/([^\/]+)$/), + bundleName = match[2], + bundlePath = match[1] + "/"; + + // backcompat + bundle._localized = bundle._localized || {}; + + var localized; + if(loc === "ROOT"){ + var root = localized = bundle._localized; + delete bundle._localized; + root.root = bundle; + cache[require.toAbsMid(p)] = root; + }else{ + localized = bundle._localized; + cache[cacheId(bundlePath, bundleName, loc, require)] = bundle; + } + + if(loc !== locale){ + // capture some locale variables + function improveBundle(bundlePath, bundleName, bundle, localized){ + // locale was not flattened and we've fallen back to a less-specific locale that was flattened + // for example, we had a flattened 'fr', a 'fr-ca' is available for at least this bundle, and + // locale==='fr-ca'; therefore, we must improve the bundle as retrieved from the rollup by + // manually loading the fr-ca version of the bundle and mixing this into the already-retrieved 'fr' + // version of the bundle. + // + // Remember, different bundles may have different sets of locales available. + // + // we are really falling back on the regular algorithm here, but--hopefully--starting with most + // of the required bundles already on board as given by the rollup and we need to "manually" load + // only one locale from a few bundles...or even better...we won't find anything better to load. + // This algorithm ensures there is nothing better to load even when we can only load a less-specific rollup. + // + // note: this feature is only available in async mode + + // inspect the loaded bundle that came from the rollup to see if something better is available + // for any bundle in a rollup, more-specific available locales are given at localized. + var requiredBundles = [], + cacheIds = []; + forEachLocale(locale, function(loc){ + if(localized[loc]){ + requiredBundles.push(require.toAbsMid(bundlePath + loc + "/" + bundleName)); + cacheIds.push(cacheId(bundlePath, bundleName, loc, require)); + } + }); + + if(requiredBundles.length){ + preloadingAddLock(); + contextRequire(requiredBundles, function(){ + for(var i = 0; i < requiredBundles.length; i++){ + bundle = lang.mixin(lang.clone(bundle), arguments[i]); + cache[cacheIds[i]] = bundle; + } + // this is the best possible (maybe a perfect match, maybe not), accept it + cache[cacheId(bundlePath, bundleName, locale, require)] = lang.clone(bundle); + preloadingRelLock(); + }); + }else{ + // this is the best possible (definitely not a perfect match), accept it + cache[cacheId(bundlePath, bundleName, locale, require)] = bundle; + } + } + improveBundle(bundlePath, bundleName, bundle, localized); + } + } + preloadingRelLock(); + }); + return true; + } + return false; + }); + } preload(); array.forEach(dojo.config.extraLocale, preload); From 65e989efbcda628e72c9616faf11d480aacebf2f Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Fri, 20 Dec 2013 16:39:17 +0000 Subject: [PATCH 043/376] Position test element so it is actually fixed to viewport Fixes #17626 --- on.js | 1 + tests/on/event-focusin.html | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/on.js b/on.js index a0d182a6fb..6966dcb1f1 100644 --- a/on.js +++ b/on.js @@ -17,6 +17,7 @@ define(["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./sniff"], fu var element = doc.createElement('input'), activeElement = doc.activeElement; element.style.position = 'fixed'; + element.style.top = element.style.left = '0'; element.addEventListener('focusin', testFocus, false); doc.body.appendChild(element); element.focus(); diff --git a/tests/on/event-focusin.html b/tests/on/event-focusin.html index 44cc298eea..646e704b24 100644 --- a/tests/on/event-focusin.html +++ b/tests/on/event-focusin.html @@ -4,8 +4,8 @@ dojo/on focusin feature detection - -
+ +
+ + + +
Etiam
+
+ +
+
+ first line + second line + third line + fourth line +
+
+ first line + second line + third line + fourth line +
+

+	
+
diff --git a/tests/dom-prop.js b/tests/dom-prop.js
new file mode 100644
index 0000000000..e2df79c3bf
--- /dev/null
+++ b/tests/dom-prop.js
@@ -0,0 +1,3 @@
+define(["doh/main", "require"], function(doh, require){
+	doh.register("tests.dom-prop", require.toUrl("./dom-prop.html"), 30000);
+});
diff --git a/tests/module.js b/tests/module.js
index 0f81774369..effbca9366 100644
--- a/tests/module.js
+++ b/tests/module.js
@@ -25,6 +25,8 @@ define([
 	"dojo/tests/Stateful",
 	"dojo/tests/errors",
 	"dojo/has!host-node?dojo/tests/node",
+	"dojo/has!host-browser?dojo/tests/dom-prop",
+	"dojo/has!host-browser?dojo/tests/dom-construct",
 	"dojo/has!host-browser?dojo/tests/router",
 	"dojo/has!host-browser?dojo/tests/request",
 	"dojo/has!host-browser?dojo/tests/behavior",

From 87a492b78c9738ae0d0e41fe81230b151803e819 Mon Sep 17 00:00:00 2001
From: Brandon Payton 
Date: Tue, 25 Feb 2014 14:02:10 -0700
Subject: [PATCH 057/376] Update dojo/window.scrollIntoView to avoid iOS body
 scroll reset, fixes #17740

---
 window.js | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/window.js b/window.js
index 3505087a5e..92583fe762 100644
--- a/window.js
+++ b/window.js
@@ -148,6 +148,15 @@ define(["./_base/lang", "./sniff", "./_base/window", "./dom", "./dom-geometry",
 						return (isIE <= 6 || (isIE == 7 && backCompat))
 							? false
 							: (has("position-fixed-support") && (style.get(el, 'position').toLowerCase() == "fixed"));
+					},
+					self = this,
+					scrollElementBy = function(el, x, y){
+						if(el.tagName == "BODY" || el.tagName == "HTML"){
+							self.get(el.ownerDocument).scrollBy(x, y);
+						}else{
+							x && (el.scrollLeft += x);
+							y && (el.scrollTop += y);
+						}
 					};
 				if(isFixed(node)){ return; } // nothing to do
 				while(el){
@@ -203,14 +212,14 @@ define(["./_base/lang", "./sniff", "./_base/window", "./dom", "./dom-geometry",
 						s = Math[l < 0? "max" : "min"](l, r);
 						if(rtl && ((isIE == 8 && !backCompat) || isIE >= 9)){ s = -s; }
 						old = el.scrollLeft;
-						el.scrollLeft += s;
+						scrollElementBy(el, s, 0);
 						s = el.scrollLeft - old;
 						nodePos.x -= s;
 					}
 					if(bot * t > 0 && (!!el.scrollTop || el == scrollRoot || el.scrollHeight > el.offsetHeight)){
 						s = Math.ceil(Math[t < 0? "max" : "min"](t, bot));
 						old = el.scrollTop;
-						el.scrollTop += s;
+						scrollElementBy(el, 0, s);
 						s = el.scrollTop - old;
 						nodePos.y -= s;
 					}

From 2f1094bcf75cdc0ff58e3ce76bbedb8e9228bd41 Mon Sep 17 00:00:00 2001
From: James Morrin 
Date: Fri, 21 Mar 2014 11:29:16 -0400
Subject: [PATCH 058/376] Added DOH tests for dom-construct.place, refs #16482

---
 dom-construct.js               |   4 +-
 tests/TODO                     |   4 -
 tests/dom-construct-place.html | 328 +++++++++++++++++++++++++++++++++
 tests/dom-construct.js         |  11 +-
 4 files changed, 338 insertions(+), 9 deletions(-)
 create mode 100644 tests/dom-construct-place.html

diff --git a/dom-construct.js b/dom-construct.js
index f58b0a6d7f..0b3f8db022 100644
--- a/dom-construct.js
+++ b/dom-construct.js
@@ -135,11 +135,11 @@ define(["exports", "./_base/kernel", "./sniff", "./_base/window", "./dom", "./do
 		return df; // DocumentFragment
 	};
 
-	exports.place = function place(/*DOMNode|String*/ node, /*DOMNode|String*/ refNode, /*String|Number?*/ position){
+	exports.place = function place(node, refNode, position){
 		// summary:
 		//		Attempt to insert node into the DOM, choosing from various positioning options.
 		//		Returns the first argument resolved to a DOM node.
-		// node: DOMNode|String
+		// node: DOMNode|DocumentFragment|String
 		//		id or node reference, or HTML fragment starting with "<" to place relative to refNode
 		// refNode: DOMNode|String
 		//		id or node reference to use as basis for placement
diff --git a/tests/TODO b/tests/TODO
index 4f66fa8611..30ef027ba0 100644
--- a/tests/TODO
+++ b/tests/TODO
@@ -1,10 +1,6 @@
 This file lists tests that need to be implemented or expanded. See ticket #3121
 for changes related to things listed here.
 
-Tests to add:
--------------
-	* add tests for dojo.place()
-
 Tests to improve:
 -----------------
 	* NodeList isn't testing several of its public methods (place, orphan, adopt, etc.)
diff --git a/tests/dom-construct-place.html b/tests/dom-construct-place.html
new file mode 100644
index 0000000000..3496639035
--- /dev/null
+++ b/tests/dom-construct-place.html
@@ -0,0 +1,328 @@
+
+
+	
+		testing dom-contruct.place
+		
+		
+	
+	
+		
+ + diff --git a/tests/dom-construct.js b/tests/dom-construct.js index eed1715ad3..ff308d0009 100644 --- a/tests/dom-construct.js +++ b/tests/dom-construct.js @@ -1,8 +1,12 @@ define([ "dojo/dom-construct", - "doh" -], function(construct, doh){ - + "doh", + "require" +], function(construct, doh, require){ + + if(doh.isBrowser){ + doh.register("tests.dom-construct-place", require.toUrl("./dom-construct-place.html"), 30000); + } doh.register("tests.dom-construct", [ { @@ -15,4 +19,5 @@ define([ } } ]); + }); From 2c3471d7947c3c6e688c41607b70c8381ba4efc7 Mon Sep 17 00:00:00 2001 From: James Morrin Date: Fri, 21 Mar 2014 17:36:12 -0400 Subject: [PATCH 059/376] Cache the ActiveX XML parser type in dojo/request/handler; fixes #15246 Cache the document parser type to improver performance. If the cached parser fails resume search for a compatible parser. --- request/handlers.js | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/request/handlers.js b/request/handlers.js index e04c2293f6..0c5406b331 100644 --- a/request/handlers.js +++ b/request/handlers.js @@ -19,29 +19,42 @@ define([ 'MSXML2.DOMDocument.3.0', 'MSXML.DOMDocument' // 2.0 ]; + var lastParser; handleXML = function(response){ var result = response.data; + var text = response.text; if(result && has('dom-qsa2.1') && !result.querySelectorAll && has('dom-parser')){ // http://bugs.dojotoolkit.org/ticket/15631 - // IE9 supports a CSS3 querySelectorAll implementation, but the DOM implementation - // returned by IE9 xhr.responseXML does not. Manually create the XML DOM to gain + // IE9 supports a CSS3 querySelectorAll implementation, but the DOM implementation + // returned by IE9 xhr.responseXML does not. Manually create the XML DOM to gain // the fuller-featured implementation and avoid bugs caused by the inconsistency - result = new DOMParser().parseFromString(response.text, 'application/xml'); + result = new DOMParser().parseFromString(text, 'application/xml'); } - if(!result || !result.documentElement){ - var text = response.text; - array.some(dp, function(p){ + function createDocument(p) { try{ var dom = new ActiveXObject(p); dom.async = false; dom.loadXML(text); result = dom; + lastParser = p; }catch(e){ return false; } return true; - }); + } + + if(!result || !result.documentElement){ + // The creation of an ActiveX object is expensive, so we cache the + // parser type to avoid trying all parser types each time we handle a + // document. There is some concern that some parser types might fail + // depending on the document being parsed. If parsing using the cached + // parser type fails, we do the more expensive operation of finding one + // that works for the given document. + // https://bugs.dojotoolkit.org/ticket/15246 + if(!lastParser || !createDocument(lastParser)) { + array.some(dp, createDocument); + } } return result; From 97861d95302c4e4e08de697dc563f9a0786e1d8d Mon Sep 17 00:00:00 2001 From: James Morrin Date: Wed, 19 Mar 2014 09:30:02 -0400 Subject: [PATCH 060/376] Fix #16296 console.debug(NaN) produces error in IE9 Properly convert arguments to an Array when shimming a console function. --- _base/kernel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_base/kernel.js b/_base/kernel.js index a9648c6070..46c5c2f342 100644 --- a/_base/kernel.js +++ b/_base/kernel.js @@ -164,7 +164,7 @@ define(["../has", "./config", "require", "module"], function(has, config, requir (function(){ var tcn = tn + ""; console[tcn] = ('log' in console) ? function(){ - var a = Array.apply({}, arguments); + var a = Array.prototype.slice.call(arguments); a.unshift(tcn + ":"); console["log"](a.join(" ")); } : function(){}; From db467f31dc27a3eebdd3b3d43856479c2f3151c4 Mon Sep 17 00:00:00 2001 From: Bill Keese Date: Thu, 27 Feb 2014 08:27:24 +0900 Subject: [PATCH 061/376] Don't include time to run event handlers in 1000ms window. In other words, ignore mousedown events that occur <1000ms after the last touchstart handler has finished running, rather than 1000ms after the touchstart event. Fixes #17634. --- touch.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/touch.js b/touch.js index 7533ed5de9..1d96b90b62 100644 --- a/touch.js +++ b/touch.js @@ -36,7 +36,14 @@ function(dojo, aspect, dom, domClass, lang, on, has, mouse, domReady, win){ } }else if(hasTouch){ return function(node, listener){ - var handle1 = on(node, touchType, listener), + var handle1 = on(node, touchType, function(evt){ + listener.call(this, evt); + + // On slow mobile browsers (see https://bugs.dojotoolkit.org/ticket/17634), + // a handler for a touch event may take >1s to run. That time shouldn't + // be included in the calculation for lastTouch. + lastTouch = (new Date()).getTime(); + }), handle2 = on(node, mouseType, function(evt){ if(!lastTouch || (new Date()).getTime() > lastTouch + 1000){ listener.call(this, evt); From f72ee17484e8862169df3080c58e2ed6d149b0a5 Mon Sep 17 00:00:00 2001 From: Sebastien Pereira Date: Tue, 1 Apr 2014 16:08:15 +0200 Subject: [PATCH 062/376] fixes #17828 dojox/mobile: click events miss most properties (such as pageX, clientX, screenX...) on touch devices/webkit browsers. --- tests/test_touch.html | 28 ++++++++++++++++++++++++++-- touch.js | 35 +++++++++++++++++++++++++++-------- 2 files changed, 53 insertions(+), 10 deletions(-) diff --git a/tests/test_touch.html b/tests/test_touch.html index 92b383d8e1..8da10b01d0 100644 --- a/tests/test_touch.html +++ b/tests/test_touch.html @@ -10,6 +10,8 @@ height: 150px; border: 1px solid #7FB0DB; background-color: #7FB0DB; + touch-action: none; + -ms-touch-action: none; } #innertest { border: 1px solid white; @@ -23,21 +25,27 @@ height: 50px; border: 1px solid yellow; background-color: yellow; + touch-action: none; + -ms-touch-action: none; } #test3 { width: 300px; height: 150px; border: 1px solid red; background-color: red; + touch-action: none; + -ms-touch-action: none; } #innertest3 { border: 1px solid white; width: 250px; height: 75px; background-color: white; + touch-action: none; + -ms-touch-action: none; } #current, #log { - width: 300px; + width: 50%; height: 200px; float: left; } @@ -114,10 +122,25 @@ // stopPropagation() should work too e.stopPropagation(); }); + + + function logClickEvent(e) { + // synthetic click has _dojo_click = true + dom.byId("log").innerHTML = " - _dojo_click [" + e._dojo_click + "]
" + dom.byId("log").innerHTML; + // display mouse event attributes + // http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgroupings-mouseevents + var info = "", + mouseEventAttrNames = ["screenX", "screenY", "clientX", "clientY", "ctrlKey", "altKey", "shiftKey", "metaKey", "button"]; + for (var attrIdx = 0, name; attrIdx < mouseEventAttrNames.length && (name = mouseEventAttrNames[attrIdx]); attrIdx++) { + info += " - " + name + " [" + e[name] + "]
"; + } + dom.byId("log").innerHTML = info + dom.byId("log").innerHTML; + } dom.byId("test3").dojoClick = true; on(dom.byId("test3"), "click", function(e){ - if(has("touch")){ + logClickEvent(e); + if(has("touch") || navigator.maxTouchPoints){ // click should be a synthetic click dom.byId("log").innerHTML = (e._dojo_click ? "Synthetic click received in test3" : "ERROR: native click received in test3") + "
" + dom.byId("log").innerHTML; }else{ @@ -127,6 +150,7 @@ }); dom.byId("innertest3").dojoClick = false; on(dom.byId("innertest3"), "click", function(e){ + logClickEvent(e); // click should be a native click dom.byId("log").innerHTML = (e._dojo_click ? "ERROR: Synthetic click received in innertest3" : "Native click received in innertest3") + "
" + dom.byId("log").innerHTML;; e.stopPropagation(); diff --git a/touch.js b/touch.js index 1d96b90b62..1acd475fcb 100644 --- a/touch.js +++ b/touch.js @@ -91,8 +91,8 @@ function(dojo, aspect, dom, domClass, lang, on, has, mouse, domReady, win){ // default action on "touchpress" e.preventDefault(); } - clickX = e.touches ? e.touches[0].pageX : e.clientX; - clickY = e.touches ? e.touches[0].pageY : e.clientY; + clickX = e.changedTouches ? e.changedTouches[0].pageX : e.clientX; + clickY = e.changedTouches ? e.changedTouches[0].pageY : e.clientY; clickDx = (typeof clickTracker == "object" ? clickTracker.x : (typeof clickTracker == "number" ? clickTracker : 0)) || 4; clickDy = (typeof clickTracker == "object" ? clickTracker.y : (typeof clickTracker == "number" ? clickTracker : 0)) || 4; @@ -106,7 +106,7 @@ function(dojo, aspect, dom, domClass, lang, on, has, mouse, domReady, win){ clickTracker = dom.isDescendant(win.doc.elementFromPoint((e.changedTouches ? e.changedTouches[0].pageX : e.clientX),(e.changedTouches ? e.changedTouches[0].pageY : e.clientY)),clickTarget); }else{ clickTracker = clickTracker && - e.target == clickTarget && + (e.changedTouches ? e.changedTouches[0].target : e.target) == clickTarget && Math.abs((e.changedTouches ? e.changedTouches[0].pageX : e.clientX) - clickX) <= clickDx && Math.abs((e.changedTouches ? e.changedTouches[0].pageY : e.clientY) - clickY) <= clickDy; } @@ -130,12 +130,31 @@ function(dojo, aspect, dom, domClass, lang, on, has, mouse, domReady, win){ // when clicking on a label, forward click to its associated input if any target = dom.byId(target.getAttribute("for")) || target; } + //some attributes can be on the Touch object, not on the Event: + //http://www.w3.org/TR/touch-events/#touch-interface + var src = (e.changedTouches) ? e.changedTouches[0] : e; + //create the synthetic event. + //http://www.w3.org/TR/DOM-Level-3-Events/#widl-MouseEvent-initMouseEvent + var clickEvt = document.createEvent("MouseEvents"); + clickEvt._dojo_click = true; + clickEvt.initMouseEvent("click", + true, //bubbles + true, //cancelable + e.view, + e.detail, + src.screenX, + src.screenY, + src.clientX, + src.clientY, + e.ctrlKey, + e.altKey, + e.shiftKey, + e.metaKey, + 0, //button + null //related target + ); setTimeout(function(){ - on.emit(target, "click", { - bubbles : true, - cancelable : true, - _dojo_click : true - }); + on.emit(target, "click", clickEvt); }, 0); } }, true); From 85313a9a39a337b6678de3bbc24b6bec7a4f2d18 Mon Sep 17 00:00:00 2001 From: Christophe Jolif Date: Thu, 3 Apr 2014 17:22:49 +0200 Subject: [PATCH 063/376] update CLDR to v25, fixes #17770 --- cldr/nls/ar/buddhist.js | 65 ++- cldr/nls/ar/coptic.js | 74 +-- cldr/nls/ar/ethiopic.js | 58 ++- cldr/nls/ar/generic.js | 118 +++-- cldr/nls/ar/gregorian.js | 29 +- cldr/nls/ar/hebrew.js | 55 ++- cldr/nls/ar/islamic.js | 63 ++- cldr/nls/ar/japanese.js | 66 ++- cldr/nls/ar/number.js | 9 +- cldr/nls/ar/persian.js | 65 ++- cldr/nls/ar/roc.js | 64 ++- cldr/nls/buddhist.js | 158 ++++--- cldr/nls/ca/buddhist.js | 225 +++++---- cldr/nls/ca/chinese.js | 86 ++-- cldr/nls/ca/currency.js | 4 +- cldr/nls/ca/generic.js | 130 +++--- cldr/nls/ca/gregorian.js | 222 +++++---- cldr/nls/ca/number.js | 3 +- cldr/nls/ca/roc.js | 66 ++- cldr/nls/chinese.js | 603 +++++++++++++------------ cldr/nls/coptic.js | 548 +++++++++++----------- cldr/nls/cs/buddhist.js | 84 ++-- cldr/nls/cs/chinese.js | 68 ++- cldr/nls/cs/generic.js | 128 ++++-- cldr/nls/cs/gregorian.js | 107 +++-- cldr/nls/cs/hebrew.js | 242 +++++----- cldr/nls/cs/islamic.js | 242 +++++----- cldr/nls/cs/japanese.js | 68 ++- cldr/nls/cs/number.js | 1 + cldr/nls/cs/roc.js | 68 ++- cldr/nls/da/buddhist.js | 49 +- cldr/nls/da/generic.js | 122 +++-- cldr/nls/da/gregorian.js | 71 ++- cldr/nls/da/hebrew.js | 49 +- cldr/nls/da/islamic.js | 49 +- cldr/nls/da/japanese.js | 62 ++- cldr/nls/da/number.js | 3 +- cldr/nls/da/roc.js | 64 ++- cldr/nls/dangi.js | 638 +++++++++++++------------- cldr/nls/de/buddhist.js | 323 +++++++------ cldr/nls/de/chinese.js | 114 +++-- cldr/nls/de/currency.js | 2 +- cldr/nls/de/generic.js | 118 +++-- cldr/nls/de/gregorian.js | 44 +- cldr/nls/de/hebrew.js | 227 +++++----- cldr/nls/de/islamic.js | 227 +++++----- cldr/nls/de/japanese.js | 62 ++- cldr/nls/de/number.js | 1 + cldr/nls/de/roc.js | 64 ++- cldr/nls/el/buddhist.js | 330 +++++++------- cldr/nls/el/currency.js | 9 +- cldr/nls/el/generic.js | 135 +++--- cldr/nls/el/gregorian.js | 85 ++-- cldr/nls/el/hebrew.js | 247 +++++----- cldr/nls/el/japanese.js | 50 +- cldr/nls/el/number.js | 6 +- cldr/nls/el/roc.js | 70 +-- cldr/nls/en-au/chinese.js | 20 +- cldr/nls/en-au/currency.js | 1 + cldr/nls/en-au/generic.js | 26 +- cldr/nls/en-au/gregorian.js | 26 +- cldr/nls/en-au/islamic.js | 76 ++++ cldr/nls/en-au/japanese.js | 18 +- cldr/nls/{en-gb => en-au}/number.js | 0 cldr/nls/en-ca/generic.js | 12 + cldr/nls/en-ca/gregorian.js | 12 + cldr/nls/en-gb/chinese.js | 70 ++- cldr/nls/en-gb/currency.js | 2 +- cldr/nls/en-gb/generic.js | 48 +- cldr/nls/en-gb/gregorian.js | 59 +-- cldr/nls/en-gb/islamic.js | 143 ++++++ cldr/nls/en/buddhist.js | 210 +++++---- cldr/nls/en/chinese.js | 160 ++++--- cldr/nls/en/generic.js | 46 +- cldr/nls/en/gregorian.js | 58 ++- cldr/nls/en/hebrew.js | 138 +++--- cldr/nls/en/islamic.js | 138 +++--- cldr/nls/en/japanese.js | 64 ++- cldr/nls/en/number.js | 1 + cldr/nls/en/roc.js | 64 ++- cldr/nls/es/buddhist.js | 357 +++++++++------ cldr/nls/es/chinese.js | 114 +++-- cldr/nls/es/currency.js | 6 + cldr/nls/es/generic.js | 124 ++--- cldr/nls/es/gregorian.js | 249 +++++----- cldr/nls/es/hebrew.js | 247 ++++++---- cldr/nls/es/islamic.js | 247 ++++++---- cldr/nls/es/japanese.js | 62 ++- cldr/nls/es/number.js | 3 +- cldr/nls/es/roc.js | 64 ++- cldr/nls/ethiopic-amete-alem.js | 594 ++++++++++++------------ cldr/nls/ethiopic.js | 548 +++++++++++----------- cldr/nls/fi/buddhist.js | 22 + cldr/nls/fi/chinese.js | 24 +- cldr/nls/fi/generic.js | 122 +++-- cldr/nls/fi/gregorian.js | 49 +- cldr/nls/fi/hebrew.js | 22 + cldr/nls/fi/islamic.js | 22 + cldr/nls/fi/japanese.js | 62 ++- cldr/nls/fi/number.js | 3 +- cldr/nls/fi/roc.js | 64 ++- cldr/nls/fr/buddhist.js | 326 ++++++++------ cldr/nls/fr/chinese.js | 162 ++++--- cldr/nls/fr/coptic.js | 58 ++- cldr/nls/fr/currency.js | 2 +- cldr/nls/fr/dangi.js | 113 +++++ cldr/nls/fr/ethiopic.js | 58 ++- cldr/nls/fr/generic.js | 120 +++-- cldr/nls/fr/gregorian.js | 43 +- cldr/nls/fr/hebrew.js | 280 ++++++------ cldr/nls/fr/indian.js | 58 ++- cldr/nls/fr/islamic.js | 337 +++++++------- cldr/nls/fr/japanese.js | 89 +++- cldr/nls/fr/number.js | 1 + cldr/nls/fr/persian.js | 260 +++++++++++ cldr/nls/fr/roc.js | 64 ++- cldr/nls/generic.js | 605 +++++++++++++------------ cldr/nls/gregorian.js | 159 ++++--- cldr/nls/he/currency.js | 8 + cldr/nls/he/generic.js | 118 +++-- cldr/nls/he/gregorian.js | 123 +++-- cldr/nls/he/hebrew.js | 113 +++-- cldr/nls/he/islamic.js | 105 +++-- cldr/nls/he/japanese.js | 64 ++- cldr/nls/he/number.js | 5 +- cldr/nls/hebrew.js | 68 ++- cldr/nls/hu/buddhist.js | 70 ++- cldr/nls/hu/chinese.js | 74 +-- cldr/nls/hu/coptic.js | 100 ++-- cldr/nls/hu/currency.js | 16 +- cldr/nls/hu/ethiopic.js | 100 ++-- cldr/nls/hu/generic.js | 122 +++-- cldr/nls/hu/gregorian.js | 86 +++- cldr/nls/hu/hebrew.js | 76 +++- cldr/nls/hu/indian.js | 98 ++-- cldr/nls/hu/islamic.js | 68 ++- cldr/nls/hu/japanese.js | 64 ++- cldr/nls/hu/number.js | 1 + cldr/nls/hu/persian.js | 68 ++- cldr/nls/hu/roc.js | 64 ++- cldr/nls/indian.js | 555 ++++++++++++----------- cldr/nls/islamic-civil.js | 62 ++- cldr/nls/islamic-rgsa.js | 462 +++++++++++++++++++ cldr/nls/islamic-tbla.js | 462 +++++++++++++++++++ cldr/nls/islamic-umalqura.js | 462 +++++++++++++++++++ cldr/nls/islamic.js | 64 ++- cldr/nls/it/buddhist.js | 72 ++- cldr/nls/it/chinese.js | 64 ++- cldr/nls/it/currency.js | 5 + cldr/nls/it/generic.js | 122 +++-- cldr/nls/it/gregorian.js | 75 ++- cldr/nls/it/hebrew.js | 228 ++++++---- cldr/nls/it/islamic.js | 228 ++++++---- cldr/nls/it/japanese.js | 64 ++- cldr/nls/it/number.js | 3 +- cldr/nls/it/roc.js | 64 ++- cldr/nls/ja/buddhist.js | 111 ++++- cldr/nls/ja/chinese.js | 198 +++++--- cldr/nls/ja/coptic.js | 102 +++-- cldr/nls/ja/dangi.js | 141 ++++++ cldr/nls/ja/ethiopic.js | 102 +++-- cldr/nls/ja/generic.js | 128 +++--- cldr/nls/ja/gregorian.js | 70 ++- cldr/nls/ja/hebrew.js | 69 ++- cldr/nls/ja/indian.js | 106 +++-- cldr/nls/ja/islamic.js | 67 ++- cldr/nls/ja/japanese.js | 164 ++++--- cldr/nls/ja/number.js | 3 +- cldr/nls/ja/persian.js | 65 ++- cldr/nls/ja/roc.js | 76 +++- cldr/nls/japanese.js | 676 ++++++++++++++-------------- cldr/nls/ko/buddhist.js | 76 ++++ cldr/nls/ko/chinese.js | 122 +++-- cldr/nls/ko/coptic.js | 98 ++++ cldr/nls/ko/currency.js | 9 +- cldr/nls/ko/dangi.js | 141 ++++++ cldr/nls/ko/ethiopic.js | 98 ++++ cldr/nls/ko/generic.js | 130 +++--- cldr/nls/ko/gregorian.js | 29 +- cldr/nls/ko/hebrew.js | 248 ++++++---- cldr/nls/ko/islamic.js | 200 ++++---- cldr/nls/ko/japanese.js | 64 ++- cldr/nls/ko/number.js | 1 + cldr/nls/ko/roc.js | 64 ++- cldr/nls/nb/buddhist.js | 73 ++- cldr/nls/nb/currency.js | 6 + cldr/nls/nb/generic.js | 130 +++--- cldr/nls/nb/gregorian.js | 101 +++-- cldr/nls/nb/hebrew.js | 259 ++++++----- cldr/nls/nb/islamic.js | 259 ++++++----- cldr/nls/nb/japanese.js | 62 ++- cldr/nls/nb/number.js | 3 +- cldr/nls/nb/roc.js | 64 ++- cldr/nls/nl/buddhist.js | 325 +++++++------ cldr/nls/nl/chinese.js | 148 ++++-- cldr/nls/nl/coptic.js | 143 ++++++ cldr/nls/nl/currency.js | 3 +- cldr/nls/nl/dangi.js | 85 ++++ cldr/nls/nl/ethiopic.js | 143 ++++++ cldr/nls/nl/generic.js | 124 ++--- cldr/nls/nl/gregorian.js | 81 +++- cldr/nls/nl/hebrew.js | 284 ++++++------ cldr/nls/nl/indian.js | 140 ++++++ cldr/nls/nl/islamic.js | 341 ++++++++------ cldr/nls/nl/japanese.js | 336 +++++++++++++- cldr/nls/nl/number.js | 3 +- cldr/nls/nl/persian.js | 263 +++++++++++ cldr/nls/nl/roc.js | 96 +++- cldr/nls/number.js | 3 +- cldr/nls/persian.js | 64 ++- cldr/nls/pl/buddhist.js | 79 ++-- cldr/nls/pl/chinese.js | 84 ++-- cldr/nls/pl/coptic.js | 106 +++-- cldr/nls/pl/currency.js | 10 +- cldr/nls/pl/ethiopic.js | 106 +++-- cldr/nls/pl/generic.js | 134 +++--- cldr/nls/pl/gregorian.js | 95 ++-- cldr/nls/pl/hebrew.js | 79 ++-- cldr/nls/pl/indian.js | 104 +++-- cldr/nls/pl/islamic.js | 347 +++++++------- cldr/nls/pl/japanese.js | 74 +-- cldr/nls/pl/number.js | 1 + cldr/nls/pl/persian.js | 79 ++-- cldr/nls/pl/roc.js | 72 ++- cldr/nls/pt-pt/buddhist.js | 304 +++++++------ cldr/nls/pt-pt/chinese.js | 140 ++++++ cldr/nls/pt-pt/currency.js | 17 +- cldr/nls/pt-pt/generic.js | 87 +++- cldr/nls/pt-pt/gregorian.js | 385 +++++++++++----- cldr/nls/pt-pt/hebrew.js | 232 ++++++---- cldr/nls/pt-pt/islamic.js | 232 ++++++---- cldr/nls/pt-pt/japanese.js | 47 +- cldr/nls/pt-pt/number.js | 17 +- cldr/nls/pt-pt/roc.js | 47 +- cldr/nls/pt/buddhist.js | 315 +++++++------ cldr/nls/pt/chinese.js | 110 +++-- cldr/nls/pt/coptic.js | 104 +++-- cldr/nls/pt/ethiopic.js | 104 +++-- cldr/nls/pt/generic.js | 120 +++-- cldr/nls/pt/gregorian.js | 55 ++- cldr/nls/pt/hebrew.js | 279 ++++++------ cldr/nls/pt/indian.js | 102 +++-- cldr/nls/pt/islamic.js | 229 +++++----- cldr/nls/pt/japanese.js | 68 ++- cldr/nls/pt/number.js | 1 + cldr/nls/pt/persian.js | 323 ++++++------- cldr/nls/pt/roc.js | 68 ++- cldr/nls/ro/buddhist.js | 359 ++++++++------- cldr/nls/ro/chinese.js | 74 +-- cldr/nls/ro/coptic.js | 60 ++- cldr/nls/ro/currency.js | 10 +- cldr/nls/ro/ethiopic.js | 60 ++- cldr/nls/ro/generic.js | 119 +++-- cldr/nls/ro/gregorian.js | 112 +++-- cldr/nls/ro/hebrew.js | 297 ++++++------ cldr/nls/ro/islamic.js | 253 ++++++----- cldr/nls/ro/number.js | 5 +- cldr/nls/roc.js | 614 +++++++++++++------------ cldr/nls/ru/buddhist.js | 58 ++- cldr/nls/ru/chinese.js | 134 +++--- cldr/nls/ru/coptic.js | 108 +++-- cldr/nls/ru/currency.js | 6 + cldr/nls/ru/ethiopic.js | 108 +++-- cldr/nls/ru/generic.js | 124 ++--- cldr/nls/ru/gregorian.js | 90 ++-- cldr/nls/ru/hebrew.js | 58 ++- cldr/nls/ru/indian.js | 106 +++-- cldr/nls/ru/islamic.js | 58 ++- cldr/nls/ru/japanese.js | 68 ++- cldr/nls/ru/number.js | 1 + cldr/nls/ru/persian.js | 58 ++- cldr/nls/ru/roc.js | 68 ++- cldr/nls/sk/currency.js | 5 +- cldr/nls/sk/generic.js | 123 +++-- cldr/nls/sk/gregorian.js | 39 +- cldr/nls/sk/number.js | 3 +- cldr/nls/sl/currency.js | 1 + cldr/nls/sl/generic.js | 123 +++-- cldr/nls/sl/gregorian.js | 68 ++- cldr/nls/sl/number.js | 3 +- cldr/nls/sv/buddhist.js | 40 +- cldr/nls/sv/coptic.js | 74 +-- cldr/nls/sv/dangi.js | 53 +++ cldr/nls/sv/ethiopic.js | 74 +-- cldr/nls/sv/generic.js | 128 +++--- cldr/nls/sv/gregorian.js | 65 ++- cldr/nls/sv/hebrew.js | 40 +- cldr/nls/sv/indian.js | 80 ++-- cldr/nls/sv/islamic.js | 298 ++++++------ cldr/nls/sv/japanese.js | 68 ++- cldr/nls/sv/number.js | 2 +- cldr/nls/sv/persian.js | 40 +- cldr/nls/sv/roc.js | 64 ++- cldr/nls/th/buddhist.js | 76 ++-- cldr/nls/th/chinese.js | 82 ++-- cldr/nls/th/coptic.js | 102 +++-- cldr/nls/th/dangi.js | 141 ++++++ cldr/nls/th/ethiopic.js | 102 +++-- cldr/nls/th/generic.js | 120 +++-- cldr/nls/th/gregorian.js | 87 ++-- cldr/nls/th/hebrew.js | 68 +-- cldr/nls/th/indian.js | 106 +++-- cldr/nls/th/islamic.js | 68 ++- cldr/nls/th/japanese.js | 120 +++-- cldr/nls/th/number.js | 1 + cldr/nls/th/persian.js | 64 ++- cldr/nls/th/roc.js | 114 +++-- cldr/nls/tr/buddhist.js | 333 +++++++------- cldr/nls/tr/coptic.js | 66 ++- cldr/nls/tr/ethiopic.js | 66 ++- cldr/nls/tr/generic.js | 138 +++--- cldr/nls/tr/gregorian.js | 83 +++- cldr/nls/tr/hebrew.js | 299 ++++++------ cldr/nls/tr/islamic.js | 330 +++++++------- cldr/nls/tr/japanese.js | 68 ++- cldr/nls/tr/number.js | 1 + cldr/nls/tr/persian.js | 303 +++++++------ cldr/nls/tr/roc.js | 68 ++- cldr/nls/zh-hant/buddhist.js | 82 ++-- cldr/nls/zh-hant/chinese.js | 178 ++++++-- cldr/nls/zh-hant/coptic.js | 102 +++-- cldr/nls/zh-hant/currency.js | 4 +- cldr/nls/zh-hant/dangi.js | 141 ++++++ cldr/nls/zh-hant/ethiopic.js | 102 +++-- cldr/nls/zh-hant/generic.js | 120 +++-- cldr/nls/zh-hant/gregorian.js | 101 ++++- cldr/nls/zh-hant/hebrew.js | 87 ++-- cldr/nls/zh-hant/indian.js | 106 +++-- cldr/nls/zh-hant/islamic.js | 58 ++- cldr/nls/zh-hant/japanese.js | 120 +++-- cldr/nls/zh-hant/number.js | 3 +- cldr/nls/zh-hant/persian.js | 93 ++-- cldr/nls/zh-hant/roc.js | 88 +++- cldr/nls/zh-hk/currency.js | 2 +- cldr/nls/zh-hk/gregorian.js | 109 +++-- cldr/nls/zh-hk/number.js | 6 +- cldr/nls/zh-tw/currency.js | 2 +- cldr/nls/zh-tw/gregorian.js | 109 +++-- cldr/nls/zh-tw/number.js | 6 +- cldr/nls/zh/buddhist.js | 30 +- cldr/nls/zh/chinese.js | 172 ++++--- cldr/nls/zh/coptic.js | 124 ++--- cldr/nls/zh/ethiopic.js | 124 ++--- cldr/nls/zh/generic.js | 124 ++--- cldr/nls/zh/gregorian.js | 37 +- cldr/nls/zh/hebrew.js | 40 +- cldr/nls/zh/indian.js | 124 ++--- cldr/nls/zh/islamic.js | 39 +- cldr/nls/zh/japanese.js | 122 +++-- cldr/nls/zh/number.js | 5 +- cldr/nls/zh/persian.js | 42 +- cldr/nls/zh/roc.js | 89 +++- 352 files changed, 26195 insertions(+), 14229 deletions(-) create mode 100644 cldr/nls/en-au/islamic.js rename cldr/nls/{en-gb => en-au}/number.js (100%) create mode 100644 cldr/nls/en-ca/generic.js create mode 100644 cldr/nls/en-ca/gregorian.js create mode 100644 cldr/nls/en-gb/islamic.js create mode 100644 cldr/nls/fr/dangi.js create mode 100644 cldr/nls/fr/persian.js create mode 100644 cldr/nls/islamic-rgsa.js create mode 100644 cldr/nls/islamic-tbla.js create mode 100644 cldr/nls/islamic-umalqura.js create mode 100644 cldr/nls/ja/dangi.js create mode 100644 cldr/nls/ko/coptic.js create mode 100644 cldr/nls/ko/dangi.js create mode 100644 cldr/nls/ko/ethiopic.js create mode 100644 cldr/nls/nl/coptic.js create mode 100644 cldr/nls/nl/dangi.js create mode 100644 cldr/nls/nl/ethiopic.js create mode 100644 cldr/nls/nl/indian.js create mode 100644 cldr/nls/nl/persian.js create mode 100644 cldr/nls/pt-pt/chinese.js create mode 100644 cldr/nls/sv/dangi.js create mode 100644 cldr/nls/th/dangi.js create mode 100644 cldr/nls/zh-hant/dangi.js diff --git a/cldr/nls/ar/buddhist.js b/cldr/nls/ar/buddhist.js index 823405cafe..331b59bd56 100644 --- a/cldr/nls/ar/buddhist.js +++ b/cldr/nls/ar/buddhist.js @@ -10,6 +10,21 @@ define( "الجمعة", "السبت" ], + "months-format-narrow": [ + "ي", + "ف", + "م", + "أ", + "و", + "ن", + "ل", + "غ", + "س", + "ك", + "ب", + "د" + ], + "field-second-relative+0": "الآن", "quarters-standAlone-narrow": [ "١", "٢", @@ -17,11 +32,14 @@ define( "٤" ], "field-weekday": "اليوم", + "field-wed-relative+0": "الأربعاء الحالي", + "field-wed-relative+1": "الأربعاء التالي", "dateFormatItem-GyMMMEd": "E، d MMM، y G", "dateFormatItem-MMMEd": "E، d MMM", "eraNarrow": [ "التقويم البوذي" ], + "field-tue-relative+-1": "الثلاثاء الماضي", "days-format-short": [ "الأحد", "الاثنين", @@ -32,6 +50,8 @@ define( "السبت" ], "dateFormat-long": "d MMMM، y G", + "field-fri-relative+-1": "الجمعة الماضية", + "field-wed-relative+-1": "الأربعاء الماضي", "months-format-wide": [ "يناير", "فبراير", @@ -50,6 +70,7 @@ define( "dayPeriods-format-wide-pm": "م", "dateFormat-full": "EEEE، d MMMM، y G", "dateFormatItem-yyyyMEd": "E، d/M/y G", + "field-thu-relative+-1": "الخميس الماضي", "dateFormatItem-Md": "d/M", "field-era": "العصر", "months-standAlone-wide": [ @@ -90,9 +111,13 @@ define( "نوفمبر", "ديسمبر" ], + "field-sat-relative+0": "السبت الحالي", + "field-sat-relative+1": "السبت التالي", "timeFormat-full": "h:mm:ss a zzzz", "field-day-relative+0": "اليوم", + "field-thu-relative+0": "الخميس الحالي", "field-day-relative+1": "غدًا", + "field-thu-relative+1": "الخميس التالي", "dateFormatItem-GyMMMd": "d MMM، y G", "field-day-relative+2": "بعد الغد", "months-standAlone-abbr": [ @@ -109,6 +134,18 @@ define( "نوفمبر", "ديسمبر" ], + "quarters-format-abbr": [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع" + ], + "quarters-standAlone-wide": [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع" + ], "dateFormatItem-Gy": "y G", "dateFormatItem-yyyyMMMEd": "E، d MMM، y G", "days-standAlone-wide": [ @@ -120,9 +157,17 @@ define( "الجمعة", "السبت" ], - "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMM": "MMM، y G", "dateFormatItem-yyyyMMMd": "d MMM، y G", "timeFormat-medium": "h:mm:ss a", + "field-sun-relative+0": "الأحد الحالي", + "field-sun-relative+1": "الأحد التالي", + "quarters-standAlone-abbr": [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع" + ], "eraAbbr": [ "التقويم البوذي" ], @@ -147,6 +192,8 @@ define( "field-day-relative+-2": "أول أمس", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E، d/M", + "field-fri-relative+0": "الجمعة الحالية", + "field-fri-relative+1": "الجمعة التالية", "field-day": "يوم", "days-format-wide": [ "الأحد", @@ -187,6 +234,15 @@ define( "eraNames": [ "التقويم البوذي" ], + "days-format-narrow": [ + "ح", + "ن", + "ث", + "ر", + "خ", + "ج", + "س" + ], "dateFormatItem-yyyyMd": "d/M/y G", "field-month": "الشهر", "days-standAlone-narrow": [ @@ -198,9 +254,15 @@ define( "ج", "س" ], + "field-tue-relative+0": "الثلاثاء الحالي", + "field-tue-relative+1": "الثلاثاء التالي", "dayPeriods-format-wide-am": "ص", + "field-mon-relative+0": "الاثنين الحالي", + "field-mon-relative+1": "الاثنين التالي", "dateFormat-short": "d/M/y GGGGG", "field-second": "الثواني", + "field-sat-relative+-1": "السبت الماضي", + "field-sun-relative+-1": "الأحد الماضي", "field-month-relative+0": "هذا الشهر", "field-month-relative+1": "الشهر التالي", "dateFormatItem-Ed": "E، d", @@ -212,6 +274,7 @@ define( "field-year-relative+1": "السنة التالية", "dateFormatItem-yyyyQQQQ": "QQQQ y G", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "الاثنين الماضي", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "هذا الأسبوع", "field-week-relative+1": "الأسبوع التالي" diff --git a/cldr/nls/ar/coptic.js b/cldr/nls/ar/coptic.js index 6a12b60ef6..ddfe7cfc40 100644 --- a/cldr/nls/ar/coptic.js +++ b/cldr/nls/ar/coptic.js @@ -1,12 +1,16 @@ define( //begin v1.x content { - "field-second": "الثواني", - "field-year-relative+-1": "السنة الماضية", - "field-week": "الأسبوع", - "field-month-relative+-1": "الشهر الماضي", + "field-sat-relative+0": "السبت الحالي", + "field-sat-relative+1": "السبت التالي", + "field-dayperiod": "ص/م", + "field-sun-relative+-1": "الأحد الماضي", + "field-mon-relative+-1": "الاثنين الماضي", + "field-minute": "الدقائق", "field-day-relative+-1": "أمس", - "months-format-narrow": [ + "field-weekday": "اليوم", + "field-day-relative+-2": "أول أمس", + "months-standAlone-narrow": [ "1", "2", "3", @@ -21,8 +25,36 @@ define( "12", "13" ], - "field-day-relative+-2": "أول أمس", - "months-standAlone-narrow": [ + "field-era": "العصر", + "field-hour": "الساعات", + "field-sun-relative+0": "الأحد الحالي", + "field-sun-relative+1": "الأحد التالي", + "field-wed-relative+-1": "الأربعاء الماضي", + "field-day-relative+0": "اليوم", + "field-day-relative+1": "غدًا", + "field-day-relative+2": "بعد الغد", + "field-tue-relative+0": "الثلاثاء الحالي", + "field-zone": "التوقيت", + "field-tue-relative+1": "الثلاثاء التالي", + "field-week-relative+-1": "الأسبوع الماضي", + "field-year-relative+0": "هذه السنة", + "field-year-relative+1": "السنة التالية", + "field-sat-relative+-1": "السبت الماضي", + "field-year-relative+-1": "السنة الماضية", + "field-year": "السنة", + "field-fri-relative+0": "الجمعة الحالية", + "field-fri-relative+1": "الجمعة التالية", + "field-week": "الأسبوع", + "field-week-relative+0": "هذا الأسبوع", + "field-week-relative+1": "الأسبوع التالي", + "field-month-relative+0": "هذا الشهر", + "field-month": "الشهر", + "field-month-relative+1": "الشهر التالي", + "field-fri-relative+-1": "الجمعة الماضية", + "field-second": "الثواني", + "field-tue-relative+-1": "الثلاثاء الماضي", + "field-day": "يوم", + "months-format-narrow": [ "1", "2", "3", @@ -37,20 +69,12 @@ define( "12", "13" ], - "field-year": "السنة", - "field-week-relative+0": "هذا الأسبوع", - "field-week-relative+1": "الأسبوع التالي", - "field-minute": "الدقائق", - "field-week-relative+-1": "الأسبوع الماضي", - "field-day-relative+0": "اليوم", - "field-hour": "الساعات", - "field-day-relative+1": "غدًا", - "field-day-relative+2": "بعد الغد", - "field-day": "يوم", - "field-month-relative+0": "هذا الشهر", - "field-month-relative+1": "الشهر التالي", - "field-dayperiod": "ص/م", - "field-month": "الشهر", + "field-mon-relative+0": "الاثنين الحالي", + "field-mon-relative+1": "الاثنين التالي", + "field-thu-relative+0": "الخميس الحالي", + "field-second-relative+0": "الآن", + "field-thu-relative+1": "الخميس التالي", + "field-wed-relative+0": "الأربعاء الحالي", "months-format-wide": [ "توت", "بابه", @@ -66,11 +90,9 @@ define( "مسرى", "نسيئ" ], - "field-era": "العصر", - "field-year-relative+0": "هذه السنة", - "field-year-relative+1": "السنة التالية", - "field-weekday": "اليوم", - "field-zone": "التوقيت" + "field-wed-relative+1": "الأربعاء التالي", + "field-month-relative+-1": "الشهر الماضي", + "field-thu-relative+-1": "الخميس الماضي" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ar/ethiopic.js b/cldr/nls/ar/ethiopic.js index 889d361d1e..b89a0b2db8 100644 --- a/cldr/nls/ar/ethiopic.js +++ b/cldr/nls/ar/ethiopic.js @@ -1,26 +1,50 @@ define( //begin v1.x content { - "field-second": "الثواني", - "field-year-relative+-1": "السنة الماضية", - "field-week": "الأسبوع", - "field-month-relative+-1": "الشهر الماضي", + "field-sat-relative+0": "السبت الحالي", + "field-sat-relative+1": "السبت التالي", + "field-dayperiod": "ص/م", + "field-sun-relative+-1": "الأحد الماضي", + "field-mon-relative+-1": "الاثنين الماضي", + "field-minute": "الدقائق", "field-day-relative+-1": "أمس", + "field-weekday": "اليوم", "field-day-relative+-2": "أول أمس", - "field-year": "السنة", - "field-week-relative+0": "هذا الأسبوع", - "field-week-relative+1": "الأسبوع التالي", - "field-minute": "الدقائق", - "field-week-relative+-1": "الأسبوع الماضي", - "field-day-relative+0": "اليوم", + "field-era": "العصر", "field-hour": "الساعات", + "field-sun-relative+0": "الأحد الحالي", + "field-sun-relative+1": "الأحد التالي", + "field-wed-relative+-1": "الأربعاء الماضي", + "field-day-relative+0": "اليوم", "field-day-relative+1": "غدًا", "field-day-relative+2": "بعد الغد", - "field-day": "يوم", + "field-tue-relative+0": "الثلاثاء الحالي", + "field-zone": "التوقيت", + "field-tue-relative+1": "الثلاثاء التالي", + "field-week-relative+-1": "الأسبوع الماضي", + "field-year-relative+0": "هذه السنة", + "field-year-relative+1": "السنة التالية", + "field-sat-relative+-1": "السبت الماضي", + "field-year-relative+-1": "السنة الماضية", + "field-year": "السنة", + "field-fri-relative+0": "الجمعة الحالية", + "field-fri-relative+1": "الجمعة التالية", + "field-week": "الأسبوع", + "field-week-relative+0": "هذا الأسبوع", + "field-week-relative+1": "الأسبوع التالي", "field-month-relative+0": "هذا الشهر", - "field-month-relative+1": "الشهر التالي", - "field-dayperiod": "ص/م", "field-month": "الشهر", + "field-month-relative+1": "الشهر التالي", + "field-fri-relative+-1": "الجمعة الماضية", + "field-second": "الثواني", + "field-tue-relative+-1": "الثلاثاء الماضي", + "field-day": "يوم", + "field-mon-relative+0": "الاثنين الحالي", + "field-mon-relative+1": "الاثنين التالي", + "field-thu-relative+0": "الخميس الحالي", + "field-second-relative+0": "الآن", + "field-thu-relative+1": "الخميس التالي", + "field-wed-relative+0": "الأربعاء الحالي", "months-format-wide": [ "مسكريم", "تكمت", @@ -36,11 +60,9 @@ define( "نهاس", "باجمن" ], - "field-era": "العصر", - "field-year-relative+0": "هذه السنة", - "field-year-relative+1": "السنة التالية", - "field-weekday": "اليوم", - "field-zone": "التوقيت" + "field-wed-relative+1": "الأربعاء التالي", + "field-month-relative+-1": "الشهر الماضي", + "field-thu-relative+-1": "الخميس الماضي" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ar/generic.js b/cldr/nls/ar/generic.js index 7051b3f443..012a83f7e5 100644 --- a/cldr/nls/ar/generic.js +++ b/cldr/nls/ar/generic.js @@ -1,69 +1,91 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E، d MMM، y G", - "field-dayperiod": "ص/م", - "field-minute": "الدقائق", - "dateFormatItem-MMMEd": "E، d MMM", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "أمس", - "dateFormatItem-hms": "h:mm:ss a", - "field-day-relative+-2": "أول أمس", + "field-second-relative+0": "الآن", "field-weekday": "اليوم", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "y G", + "field-wed-relative+0": "الأربعاء الحالي", + "field-wed-relative+1": "الأربعاء التالي", + "dateFormatItem-GyMMMEd": "E، d MMM، y G", + "dateFormatItem-MMMEd": "E، d MMM", + "field-tue-relative+-1": "الثلاثاء الماضي", + "dateFormat-long": "d MMMM، y G", + "field-fri-relative+-1": "الجمعة الماضية", + "field-wed-relative+-1": "الأربعاء الماضي", + "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "EEEE، d MMMM، y G", + "dateFormatItem-yyyyMEd": "E، d/‏M/‏y G", + "field-thu-relative+-1": "الخميس الماضي", + "dateFormatItem-Md": "d/‏M", "field-era": "العصر", + "field-year": "السنة", + "dateFormatItem-yyyyMMMM": "MMMM، y G", "field-hour": "الساعات", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E، d", + "field-sat-relative+0": "السبت الحالي", + "field-sat-relative+1": "السبت التالي", "field-day-relative+0": "اليوم", "field-day-relative+1": "غدًا", - "field-day-relative+2": "بعد الغد", + "field-thu-relative+0": "الخميس الحالي", "dateFormatItem-GyMMMd": "d MMM، y G", - "dateFormatItem-yyyyMMMM": "MMMM y G", - "dateFormat-long": "d MMMM، y G", - "field-zone": "التوقيت", + "field-day-relative+2": "بعد الغد", + "field-thu-relative+1": "الخميس التالي", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E، d MMM، y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM، y G", + "dateFormatItem-yyyyMMMd": "d MMM، y G", + "field-sun-relative+0": "الأحد الحالي", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "الأسبوع الماضي", - "dateFormat-medium": "dd‏/MM‏/y G", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "هذه السنة", - "field-year-relative+1": "السنة التالية", - "field-year-relative+-1": "السنة الماضية", + "field-sun-relative+1": "الأحد التالي", + "field-minute": "الدقائق", + "field-dayperiod": "ص/م", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "field-year": "السنة", + "field-day-relative+-1": "أمس", + "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", - "field-week": "الأسبوع", - "dateFormatItem-yyyyMd": "d‏/M‏/y G", - "dateFormatItem-yyyyMMMd": "d MMM، y G", - "dateFormatItem-yyyyMEd": "E، d/‏M/‏y G", + "field-day-relative+-2": "أول أمس", "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "هذا الأسبوع", - "field-week-relative+1": "الأسبوع التالي", - "field-month-relative+0": "هذا الشهر", - "dateFormatItem-H": "HH", - "field-month": "الشهر", - "field-month-relative+1": "الشهر التالي", - "dateFormatItem-M": "L", - "field-second": "الثواني", - "dateFormatItem-GyMMMEd": "E، d MMM، y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "يوم", "dateFormatItem-MEd": "E، d/M", - "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "الجمعة الحالية", + "field-fri-relative+1": "الجمعة التالية", + "field-day": "يوم", + "field-zone": "التوقيت", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "السنة الماضية", + "field-month-relative+-1": "الشهر الماضي", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "d‏/M‏/y G", + "field-month": "الشهر", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "الثلاثاء الحالي", + "field-tue-relative+1": "الثلاثاء التالي", + "field-mon-relative+0": "الاثنين الحالي", + "field-mon-relative+1": "الاثنين التالي", "dateFormat-short": "d‏/M‏/y GGGGG", + "field-second": "الثواني", + "field-sat-relative+-1": "السبت الماضي", + "field-sun-relative+-1": "الأحد الماضي", + "field-month-relative+0": "هذا الشهر", + "field-month-relative+1": "الشهر التالي", + "dateFormatItem-Ed": "E، d", + "field-week": "الأسبوع", + "dateFormat-medium": "dd‏/MM‏/y G", + "field-year-relative+0": "هذه السنة", + "field-week-relative+-1": "الأسبوع الماضي", "dateFormatItem-yyyyM": "M‏/y G", - "dateFormat-full": "EEEE، d MMMM، y G", - "dateFormatItem-Md": "d/‏M", - "dateFormatItem-yyyyMMM": "MMM y G", - "dateFormatItem-d": "d", - "field-month-relative+-1": "الشهر الماضي", - "dateFormatItem-h": "h a" + "field-year-relative+1": "السنة التالية", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "الاثنين الماضي", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "هذا الأسبوع", + "field-week-relative+1": "الأسبوع التالي" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ar/gregorian.js b/cldr/nls/ar/gregorian.js index 356d0e4ada..7c46e229f8 100644 --- a/cldr/nls/ar/gregorian.js +++ b/cldr/nls/ar/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "الأحد", "الاثنين", @@ -24,6 +25,7 @@ define( "ب", "د" ], + "field-second-relative+0": "الآن", "quarters-standAlone-narrow": [ "١", "٢", @@ -33,6 +35,8 @@ define( "field-weekday": "اليوم", "dateFormatItem-yQQQ": "QQQ y", "dateFormatItem-yMEd": "E، d/‏M/‏y", + "field-wed-relative+0": "الأربعاء الحالي", + "field-wed-relative+1": "الأربعاء التالي", "dateFormatItem-GyMMMEd": "E، d MMM، y G", "dateFormatItem-MMMEd": "E، d MMM", "eraNarrow": [ @@ -40,6 +44,7 @@ define( "م" ], "dateFormatItem-yMM": "MM‏/y", + "field-tue-relative+-1": "الثلاثاء الماضي", "days-format-short": [ "الأحد", "الاثنين", @@ -50,6 +55,8 @@ define( "السبت" ], "dateFormat-long": "d MMMM، y", + "field-fri-relative+-1": "الجمعة الماضية", + "field-wed-relative+-1": "الأربعاء الماضي", "months-format-wide": [ "يناير", "فبراير", @@ -67,6 +74,7 @@ define( "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "م", "dateFormat-full": "EEEE، d MMMM، y", + "field-thu-relative+-1": "الخميس الماضي", "dateFormatItem-Md": "d/‏M", "dateFormatItem-yMd": "d‏/M‏/y", "field-era": "العصر", @@ -112,9 +120,13 @@ define( "نوفمبر", "ديسمبر" ], + "field-sat-relative+0": "السبت الحالي", + "field-sat-relative+1": "السبت التالي", "timeFormat-full": "h:mm:ss a zzzz", "field-day-relative+0": "اليوم", + "field-thu-relative+0": "الخميس الحالي", "field-day-relative+1": "غدًا", + "field-thu-relative+1": "الخميس التالي", "dateFormatItem-GyMMMd": "d MMM، y G", "field-day-relative+2": "بعد الغد", "dateFormatItem-H": "HH", @@ -157,7 +169,9 @@ define( ], "dateFormatItem-MMMMd": "d MMMM", "timeFormat-medium": "h:mm:ss a", + "field-sun-relative+0": "الأحد الحالي", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "الأحد التالي", "quarters-standAlone-abbr": [ "الربع الأول", "الربع الثاني", @@ -194,7 +208,9 @@ define( "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E، d/M", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "الجمعة الحالية", "dateFormatItem-yMMMM": "MMMM y", + "field-fri-relative+1": "الجمعة التالية", "field-day": "يوم", "days-format-wide": [ "الأحد", @@ -247,7 +263,6 @@ define( "ج", "س" ], - "field-month": "الشهر", "days-standAlone-narrow": [ "ح", "ن", @@ -258,14 +273,25 @@ define( "س" ], "dateFormatItem-MMM": "LLL", + "field-month": "الشهر", + "field-tue-relative+0": "الثلاثاء الحالي", + "field-tue-relative+1": "الثلاثاء التالي", "dayPeriods-format-wide-am": "ص", "dateFormatItem-MMMMEd": "E، d MMMM", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "الاثنين الحالي", + "field-mon-relative+1": "الاثنين التالي", "dateFormat-short": "d‏/M‏/y", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", "field-second": "الثواني", + "field-sat-relative+-1": "السبت الماضي", "dateFormatItem-yMMMEd": "E، d MMM، y", + "field-sun-relative+-1": "الأحد الماضي", "field-month-relative+0": "هذا الشهر", "field-month-relative+1": "الشهر التالي", "dateFormatItem-Ed": "E، d", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "الأسبوع", "dateFormat-medium": "dd‏/MM‏/y", "field-year-relative+0": "هذه السنة", @@ -275,6 +301,7 @@ define( "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "الاثنين الماضي", "field-week-relative+0": "هذا الأسبوع", "field-week-relative+1": "الأسبوع التالي" } diff --git a/cldr/nls/ar/hebrew.js b/cldr/nls/ar/hebrew.js index 7de43bd9f8..163ce04fe4 100644 --- a/cldr/nls/ar/hebrew.js +++ b/cldr/nls/ar/hebrew.js @@ -10,6 +10,7 @@ define( "الجمعة", "السبت" ], + "field-second-relative+0": "الآن", "quarters-standAlone-narrow": [ "١", "٢", @@ -17,11 +18,14 @@ define( "٤" ], "field-weekday": "اليوم", + "field-wed-relative+0": "الأربعاء الحالي", + "field-wed-relative+1": "الأربعاء التالي", "dateFormatItem-GyMMMEd": "E، d MMM، y G", "dateFormatItem-MMMEd": "E، d MMM", "eraNarrow": [ "ص" ], + "field-tue-relative+-1": "الثلاثاء الماضي", "days-format-short": [ "الأحد", "الاثنين", @@ -32,6 +36,8 @@ define( "السبت" ], "dateFormat-long": "d MMMM، y G", + "field-fri-relative+-1": "الجمعة الماضية", + "field-wed-relative+-1": "الأربعاء الماضي", "months-format-wide": [ "تشري", "مرحشوان", @@ -51,6 +57,7 @@ define( "dayPeriods-format-wide-pm": "م", "dateFormat-full": "EEEE، d MMMM، y G", "dateFormatItem-yyyyMEd": "E، d/M/y G", + "field-thu-relative+-1": "الخميس الماضي", "dateFormatItem-Md": "d/M", "field-era": "العصر", "months-standAlone-wide": [ @@ -93,9 +100,13 @@ define( "آب", "أيلول" ], + "field-sat-relative+0": "السبت الحالي", + "field-sat-relative+1": "السبت التالي", "timeFormat-full": "h:mm:ss a zzzz", "field-day-relative+0": "اليوم", + "field-thu-relative+0": "الخميس الحالي", "field-day-relative+1": "غدًا", + "field-thu-relative+1": "الخميس التالي", "dateFormatItem-GyMMMd": "d MMM، y G", "field-day-relative+2": "بعد الغد", "months-standAlone-abbr": [ @@ -113,6 +124,18 @@ define( "آب", "أيلول" ], + "quarters-format-abbr": [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع" + ], + "quarters-standAlone-wide": [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع" + ], "dateFormatItem-Gy": "y G", "dateFormatItem-yyyyMMMEd": "E، d MMM، y G", "days-standAlone-wide": [ @@ -124,9 +147,17 @@ define( "الجمعة", "السبت" ], - "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMM": "MMM، y G", "dateFormatItem-yyyyMMMd": "d MMM، y G", "timeFormat-medium": "h:mm:ss a", + "field-sun-relative+0": "الأحد الحالي", + "field-sun-relative+1": "الأحد التالي", + "quarters-standAlone-abbr": [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع" + ], "eraAbbr": [ "ص" ], @@ -151,6 +182,8 @@ define( "field-day-relative+-2": "أول أمس", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E، d/M", + "field-fri-relative+0": "الجمعة الحالية", + "field-fri-relative+1": "الجمعة التالية", "field-day": "يوم", "days-format-wide": [ "الأحد", @@ -177,6 +210,15 @@ define( "eraNames": [ "ص" ], + "days-format-narrow": [ + "ح", + "ن", + "ث", + "ر", + "خ", + "ج", + "س" + ], "dateFormatItem-yyyyMd": "d/M/y G", "field-month": "الشهر", "days-standAlone-narrow": [ @@ -188,14 +230,20 @@ define( "ج", "س" ], + "field-tue-relative+0": "الثلاثاء الحالي", + "field-tue-relative+1": "الثلاثاء التالي", "dayPeriods-format-wide-am": "ص", - "dateFormat-short": "d/M/y GGGGG", + "field-mon-relative+0": "الاثنين الحالي", + "field-mon-relative+1": "الاثنين التالي", + "dateFormat-short": "d‏/M‏/y GGGGG", "field-second": "الثواني", + "field-sat-relative+-1": "السبت الماضي", + "field-sun-relative+-1": "الأحد الماضي", "field-month-relative+0": "هذا الشهر", "field-month-relative+1": "الشهر التالي", "dateFormatItem-Ed": "E، d", "field-week": "الأسبوع", - "dateFormat-medium": "dd/MM/y G", + "dateFormat-medium": "dd‏/MM‏/y G", "field-year-relative+0": "هذه السنة", "field-week-relative+-1": "الأسبوع الماضي", "dateFormatItem-yyyyM": "M/y G", @@ -203,6 +251,7 @@ define( "dateFormatItem-yyyyQQQQ": "QQQQ y G", "months-format-wide-leap": "آذار الثاني", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "الاثنين الماضي", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "هذا الأسبوع", "field-week-relative+1": "الأسبوع التالي" diff --git a/cldr/nls/ar/islamic.js b/cldr/nls/ar/islamic.js index 8f2f573429..f74989531c 100644 --- a/cldr/nls/ar/islamic.js +++ b/cldr/nls/ar/islamic.js @@ -24,6 +24,7 @@ define( "١١", "١٢" ], + "field-second-relative+0": "الآن", "quarters-standAlone-narrow": [ "١", "٢", @@ -31,11 +32,14 @@ define( "٤" ], "field-weekday": "اليوم", + "field-wed-relative+0": "الأربعاء الحالي", + "field-wed-relative+1": "الأربعاء التالي", "dateFormatItem-GyMMMEd": "E، d MMM، y G", "dateFormatItem-MMMEd": "E، d MMM", "eraNarrow": [ "هـ" ], + "field-tue-relative+-1": "الثلاثاء الماضي", "days-format-short": [ "الأحد", "الاثنين", @@ -45,7 +49,9 @@ define( "الجمعة", "السبت" ], - "dateFormat-long": "d MMMM y G", + "dateFormat-long": "d MMMM، y G", + "field-fri-relative+-1": "الجمعة الماضية", + "field-wed-relative+-1": "الأربعاء الماضي", "months-format-wide": [ "محرم", "صفر", @@ -62,9 +68,10 @@ define( ], "dateFormatItem-yyyyQQQ": "QQQ y G", "dayPeriods-format-wide-pm": "م", - "dateFormat-full": "EEEE، d MMMM y G", - "dateFormatItem-yyyyMEd": "E، d/M/y G", - "dateFormatItem-Md": "d/M", + "dateFormat-full": "EEEE، d MMMM، y G", + "dateFormatItem-yyyyMEd": "E، d/‏M/‏y G", + "field-thu-relative+-1": "الخميس الماضي", + "dateFormatItem-Md": "d/‏M", "field-era": "العصر", "months-standAlone-wide": [ "محرم", @@ -104,9 +111,13 @@ define( "ذو القعدة", "ذو الحجة" ], + "field-sat-relative+0": "السبت الحالي", + "field-sat-relative+1": "السبت التالي", "timeFormat-full": "h:mm:ss a zzzz", "field-day-relative+0": "اليوم", + "field-thu-relative+0": "الخميس الحالي", "field-day-relative+1": "غدًا", + "field-thu-relative+1": "الخميس التالي", "dateFormatItem-GyMMMd": "d MMM، y G", "field-day-relative+2": "بعد الغد", "months-standAlone-abbr": [ @@ -123,8 +134,21 @@ define( "ذو القعدة", "ذو الحجة" ], + "quarters-format-abbr": [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع" + ], + "quarters-standAlone-wide": [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع" + ], "dateFormatItem-Gy": "y G", "dateFormatItem-yyyyMMMEd": "E، d MMM، y G", + "dateFormatItem-M": "L", "days-standAlone-wide": [ "الأحد", "الاثنين", @@ -137,6 +161,14 @@ define( "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d MMM، y G", "timeFormat-medium": "h:mm:ss a", + "field-sun-relative+0": "الأحد الحالي", + "field-sun-relative+1": "الأحد التالي", + "quarters-standAlone-abbr": [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع" + ], "eraAbbr": [ "هـ" ], @@ -151,6 +183,7 @@ define( "الجمعة", "السبت" ], + "dateFormatItem-d": "d", "quarters-format-narrow": [ "١", "٢", @@ -161,6 +194,8 @@ define( "field-day-relative+-2": "أول أمس", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E، d/M", + "field-fri-relative+0": "الجمعة الحالية", + "field-fri-relative+1": "الجمعة التالية", "field-day": "يوم", "days-format-wide": [ "الأحد", @@ -201,7 +236,16 @@ define( "eraNames": [ "هـ" ], - "dateFormatItem-yyyyMd": "d/M/y G", + "days-format-narrow": [ + "ح", + "ن", + "ث", + "ر", + "خ", + "ج", + "س" + ], + "dateFormatItem-yyyyMd": "d‏/M‏/y G", "field-month": "الشهر", "days-standAlone-narrow": [ "ح", @@ -212,9 +256,15 @@ define( "ج", "س" ], + "field-tue-relative+0": "الثلاثاء الحالي", + "field-tue-relative+1": "الثلاثاء التالي", "dayPeriods-format-wide-am": "ص", + "field-mon-relative+0": "الاثنين الحالي", + "field-mon-relative+1": "الاثنين التالي", "dateFormat-short": "d‏/M‏/y GGGGG", "field-second": "الثواني", + "field-sat-relative+-1": "السبت الماضي", + "field-sun-relative+-1": "الأحد الماضي", "field-month-relative+0": "هذا الشهر", "field-month-relative+1": "الشهر التالي", "dateFormatItem-Ed": "E، d", @@ -222,9 +272,10 @@ define( "dateFormat-medium": "d MMM، y G", "field-year-relative+0": "هذه السنة", "field-week-relative+-1": "الأسبوع الماضي", - "dateFormatItem-yyyyM": "M/y G", + "dateFormatItem-yyyyM": "M‏/y G", "field-year-relative+1": "السنة التالية", "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "field-mon-relative+-1": "الاثنين الماضي", "dateFormatItem-GyMMM": "MMM y G", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "هذا الأسبوع", diff --git a/cldr/nls/ar/japanese.js b/cldr/nls/ar/japanese.js index 90992e9559..62accb02ae 100644 --- a/cldr/nls/ar/japanese.js +++ b/cldr/nls/ar/japanese.js @@ -1,29 +1,22 @@ define( //begin v1.x content { - "field-second": "الثواني", - "field-year-relative+-1": "السنة الماضية", - "field-week": "الأسبوع", - "field-month-relative+-1": "الشهر الماضي", + "field-sat-relative+0": "السبت الحالي", + "field-sat-relative+1": "السبت التالي", + "field-dayperiod": "ص/م", + "field-sun-relative+-1": "الأحد الماضي", + "field-mon-relative+-1": "الاثنين الماضي", + "field-minute": "الدقائق", "field-day-relative+-1": "أمس", + "field-weekday": "اليوم", "field-day-relative+-2": "أول أمس", - "field-year": "السنة", - "field-week-relative+0": "هذا الأسبوع", - "field-week-relative+1": "الأسبوع التالي", - "field-minute": "الدقائق", - "field-week-relative+-1": "الأسبوع الماضي", - "field-day-relative+0": "اليوم", + "field-era": "العصر", "field-hour": "الساعات", + "field-sun-relative+0": "الأحد الحالي", + "field-sun-relative+1": "الأحد التالي", + "field-wed-relative+-1": "الأربعاء الماضي", + "field-day-relative+0": "اليوم", "field-day-relative+1": "غدًا", - "field-day-relative+2": "بعد الغد", - "field-day": "يوم", - "field-month-relative+0": "هذا الشهر", - "field-month-relative+1": "الشهر التالي", - "field-dayperiod": "ص/م", - "field-month": "الشهر", - "field-era": "العصر", - "field-year-relative+0": "هذه السنة", - "field-year-relative+1": "السنة التالية", "eraAbbr": [ "تيكا", "هاكتشي", @@ -67,7 +60,7 @@ define( "كوهو", "آنا", "تينروكو", - "تن-ان", + "تن-نن", "جوجن", "تنجن", "إيكان", @@ -262,8 +255,37 @@ define( "شووا", "هيسي" ], - "field-weekday": "اليوم", - "field-zone": "التوقيت" + "field-day-relative+2": "بعد الغد", + "field-tue-relative+0": "الثلاثاء الحالي", + "field-zone": "التوقيت", + "field-tue-relative+1": "الثلاثاء التالي", + "field-week-relative+-1": "الأسبوع الماضي", + "field-year-relative+0": "هذه السنة", + "field-year-relative+1": "السنة التالية", + "field-sat-relative+-1": "السبت الماضي", + "field-year-relative+-1": "السنة الماضية", + "field-year": "السنة", + "field-fri-relative+0": "الجمعة الحالية", + "field-fri-relative+1": "الجمعة التالية", + "field-week": "الأسبوع", + "field-week-relative+0": "هذا الأسبوع", + "field-week-relative+1": "الأسبوع التالي", + "field-month-relative+0": "هذا الشهر", + "field-month": "الشهر", + "field-month-relative+1": "الشهر التالي", + "field-fri-relative+-1": "الجمعة الماضية", + "field-second": "الثواني", + "field-tue-relative+-1": "الثلاثاء الماضي", + "field-day": "يوم", + "field-mon-relative+0": "الاثنين الحالي", + "field-mon-relative+1": "الاثنين التالي", + "field-thu-relative+0": "الخميس الحالي", + "field-second-relative+0": "الآن", + "field-thu-relative+1": "الخميس التالي", + "field-wed-relative+0": "الأربعاء الحالي", + "field-wed-relative+1": "الأربعاء التالي", + "field-month-relative+-1": "الشهر الماضي", + "field-thu-relative+-1": "الخميس الماضي" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ar/number.js b/cldr/nls/ar/number.js index ec5ef66fbb..9a41c12a18 100644 --- a/cldr/nls/ar/number.js +++ b/cldr/nls/ar/number.js @@ -8,13 +8,14 @@ define( "percentFormat": "#,##0%", "list": ";", "infinity": "∞", - "minusSign": "-", + "minusSign": "‎-", "decimal": ".", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", - "decimalFormat": "#,##0.###;#,##0.###-", - "currencyFormat": "¤ #,##0.00;¤ #,##0.00-", - "plusSign": "+", + "decimalFormat": "#,##0.###", + "currencyFormat": "¤#,##0.00;(¤#,##0.00)", + "plusSign": "‎+", "decimalFormat-long": "000 تريليون", "decimalFormat-short": "000 ترليو" } diff --git a/cldr/nls/ar/persian.js b/cldr/nls/ar/persian.js index 75990a49b6..753d73b14b 100644 --- a/cldr/nls/ar/persian.js +++ b/cldr/nls/ar/persian.js @@ -10,6 +10,21 @@ define( "الجمعة", "السبت" ], + "months-format-narrow": [ + "ي", + "ف", + "م", + "أ", + "و", + "ن", + "ل", + "غ", + "س", + "ك", + "ب", + "د" + ], + "field-second-relative+0": "الآن", "quarters-standAlone-narrow": [ "١", "٢", @@ -17,11 +32,14 @@ define( "٤" ], "field-weekday": "اليوم", + "field-wed-relative+0": "الأربعاء الحالي", + "field-wed-relative+1": "الأربعاء التالي", "dateFormatItem-GyMMMEd": "E، d MMM، y G", "dateFormatItem-MMMEd": "E، d MMM", "eraNarrow": [ "ه.ش" ], + "field-tue-relative+-1": "الثلاثاء الماضي", "days-format-short": [ "الأحد", "الاثنين", @@ -32,6 +50,8 @@ define( "السبت" ], "dateFormat-long": "d MMMM، y G", + "field-fri-relative+-1": "الجمعة الماضية", + "field-wed-relative+-1": "الأربعاء الماضي", "months-format-wide": [ "فرفردن", "أذربيهشت", @@ -50,6 +70,7 @@ define( "dayPeriods-format-wide-pm": "م", "dateFormat-full": "EEEE، d MMMM، y G", "dateFormatItem-yyyyMEd": "E، d/M/y G", + "field-thu-relative+-1": "الخميس الماضي", "dateFormatItem-Md": "d/M", "field-era": "العصر", "months-standAlone-wide": [ @@ -90,9 +111,13 @@ define( "بهمن", "اسفندار" ], + "field-sat-relative+0": "السبت الحالي", + "field-sat-relative+1": "السبت التالي", "timeFormat-full": "h:mm:ss a zzzz", "field-day-relative+0": "اليوم", + "field-thu-relative+0": "الخميس الحالي", "field-day-relative+1": "غدًا", + "field-thu-relative+1": "الخميس التالي", "dateFormatItem-GyMMMd": "d MMM، y G", "field-day-relative+2": "بعد الغد", "months-standAlone-abbr": [ @@ -109,6 +134,18 @@ define( "بهمن", "اسفندار" ], + "quarters-format-abbr": [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع" + ], + "quarters-standAlone-wide": [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع" + ], "dateFormatItem-Gy": "y G", "dateFormatItem-yyyyMMMEd": "E، d MMM، y G", "days-standAlone-wide": [ @@ -120,9 +157,17 @@ define( "الجمعة", "السبت" ], - "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMM": "MMM، y G", "dateFormatItem-yyyyMMMd": "d MMM، y G", "timeFormat-medium": "h:mm:ss a", + "field-sun-relative+0": "الأحد الحالي", + "field-sun-relative+1": "الأحد التالي", + "quarters-standAlone-abbr": [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع" + ], "eraAbbr": [ "ه.ش" ], @@ -147,6 +192,8 @@ define( "field-day-relative+-2": "أول أمس", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E، d/M", + "field-fri-relative+0": "الجمعة الحالية", + "field-fri-relative+1": "الجمعة التالية", "field-day": "يوم", "days-format-wide": [ "الأحد", @@ -187,6 +234,15 @@ define( "eraNames": [ "ه.ش" ], + "days-format-narrow": [ + "ح", + "ن", + "ث", + "ر", + "خ", + "ج", + "س" + ], "dateFormatItem-yyyyMd": "d/M/y G", "field-month": "الشهر", "days-standAlone-narrow": [ @@ -198,9 +254,15 @@ define( "ج", "س" ], + "field-tue-relative+0": "الثلاثاء الحالي", + "field-tue-relative+1": "الثلاثاء التالي", "dayPeriods-format-wide-am": "ص", + "field-mon-relative+0": "الاثنين الحالي", + "field-mon-relative+1": "الاثنين التالي", "dateFormat-short": "d/M/y GGGGG", "field-second": "الثواني", + "field-sat-relative+-1": "السبت الماضي", + "field-sun-relative+-1": "الأحد الماضي", "field-month-relative+0": "هذا الشهر", "field-month-relative+1": "الشهر التالي", "dateFormatItem-Ed": "E، d", @@ -212,6 +274,7 @@ define( "field-year-relative+1": "السنة التالية", "dateFormatItem-yyyyQQQQ": "QQQQ y G", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "الاثنين الماضي", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "هذا الأسبوع", "field-week-relative+1": "الأسبوع التالي" diff --git a/cldr/nls/ar/roc.js b/cldr/nls/ar/roc.js index 0be42231bc..364cd36170 100644 --- a/cldr/nls/ar/roc.js +++ b/cldr/nls/ar/roc.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "field-second": "الثواني", - "field-year-relative+-1": "السنة الماضية", - "field-week": "الأسبوع", - "field-month-relative+-1": "الشهر الماضي", + "field-sat-relative+0": "السبت الحالي", + "field-sat-relative+1": "السبت التالي", + "field-dayperiod": "ص/م", + "field-sun-relative+-1": "الأحد الماضي", + "field-mon-relative+-1": "الاثنين الماضي", + "field-minute": "الدقائق", "field-day-relative+-1": "أمس", + "field-weekday": "اليوم", "field-day-relative+-2": "أول أمس", - "field-year": "السنة", - "field-week-relative+0": "هذا الأسبوع", - "field-week-relative+1": "الأسبوع التالي", - "field-minute": "الدقائق", - "field-week-relative+-1": "الأسبوع الماضي", - "field-day-relative+0": "اليوم", + "field-era": "العصر", "field-hour": "الساعات", + "field-sun-relative+0": "الأحد الحالي", + "field-sun-relative+1": "الأحد التالي", + "field-wed-relative+-1": "الأربعاء الماضي", + "field-day-relative+0": "اليوم", "field-day-relative+1": "غدًا", - "field-day-relative+2": "بعد الغد", - "field-day": "يوم", - "field-month-relative+0": "هذا الشهر", - "field-month-relative+1": "الشهر التالي", - "field-dayperiod": "ص/م", - "field-month": "الشهر", - "field-era": "العصر", - "field-year-relative+0": "هذه السنة", - "field-year-relative+1": "السنة التالية", "eraAbbr": [ "Before R.O.C.", "جمهورية الصي" ], - "field-weekday": "اليوم", - "field-zone": "التوقيت" + "field-day-relative+2": "بعد الغد", + "field-tue-relative+0": "الثلاثاء الحالي", + "field-zone": "التوقيت", + "field-tue-relative+1": "الثلاثاء التالي", + "field-week-relative+-1": "الأسبوع الماضي", + "field-year-relative+0": "هذه السنة", + "field-year-relative+1": "السنة التالية", + "field-sat-relative+-1": "السبت الماضي", + "field-year-relative+-1": "السنة الماضية", + "field-year": "السنة", + "field-fri-relative+0": "الجمعة الحالية", + "field-fri-relative+1": "الجمعة التالية", + "field-week": "الأسبوع", + "field-week-relative+0": "هذا الأسبوع", + "field-week-relative+1": "الأسبوع التالي", + "field-month-relative+0": "هذا الشهر", + "field-month": "الشهر", + "field-month-relative+1": "الشهر التالي", + "field-fri-relative+-1": "الجمعة الماضية", + "field-second": "الثواني", + "field-tue-relative+-1": "الثلاثاء الماضي", + "field-day": "يوم", + "field-mon-relative+0": "الاثنين الحالي", + "field-mon-relative+1": "الاثنين التالي", + "field-thu-relative+0": "الخميس الحالي", + "field-second-relative+0": "الآن", + "field-thu-relative+1": "الخميس التالي", + "field-wed-relative+0": "الأربعاء الحالي", + "field-wed-relative+1": "الأربعاء التالي", + "field-month-relative+-1": "الشهر الماضي", + "field-thu-relative+-1": "الخميس الماضي" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/buddhist.js b/cldr/nls/buddhist.js index 74464ee9de..1ccaf04710 100644 --- a/cldr/nls/buddhist.js +++ b/cldr/nls/buddhist.js @@ -2,6 +2,7 @@ define({ root: //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "Sun", "Mon", @@ -25,6 +26,7 @@ define({ root: "11", "12" ], + "field-second-relative+0": "now", "quarters-standAlone-narrow": [ "1", "2", @@ -32,11 +34,14 @@ define({ root: "4" ], "field-weekday": "Day of the Week", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", "dateFormatItem-GyMMMEd": "G y MMM d, E", "dateFormatItem-MMMEd": "MMM d, E", "eraNarrow": [ "BE" ], + "field-tue-relative+-1": "last Tuesday", "days-format-short": [ "Sun", "Mon", @@ -48,42 +53,46 @@ define({ root: ], "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", "dateFormat-long": "G y MMMM d", + "field-fri-relative+-1": "last Friday", + "field-wed-relative+-1": "last Wednesday", "months-format-wide": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], "dateFormatItem-yyyyQQQ": "G y QQQ", "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "G y MMMM d, EEEE", "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", + "field-thu-relative+-1": "last Thursday", "dateFormatItem-Md": "MM-dd", "dayPeriods-format-abbr-am": "AM", "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "dayPeriods-format-wide-noon": "noon", "field-era": "Era", "months-standAlone-wide": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], "timeFormat-short": "HH:mm", "quarters-format-wide": [ @@ -97,38 +106,42 @@ define({ root: "dateTimeFormats-appendItem-Era": "{1} {0}", "field-hour": "Hour", "months-format-abbr": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], + "field-sat-relative+0": "this Saturday", + "field-sat-relative+1": "next Saturday", "timeFormat-full": "HH:mm:ss zzzz", "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", + "field-day-relative+0": "today", + "field-thu-relative+0": "this Thursday", + "field-day-relative+1": "tomorrow", + "field-thu-relative+1": "next Thursday", "dateFormatItem-GyMMMd": "G y MMM d", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], "quarters-format-abbr": [ "Q1", @@ -156,8 +169,11 @@ define({ root: ], "dateFormatItem-yyyyMMM": "G y MMM", "dateFormatItem-yyyyMMMd": "G y MMM d", + "dayPeriods-format-abbr-noon": "noon", "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "this Sunday", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "next Sunday", "quarters-standAlone-abbr": [ "Q1", "Q2", @@ -186,13 +202,15 @@ define({ root: "3", "4" ], - "field-day-relative+-1": "Yesterday", - "dateFormatItem-h": "h a", + "field-day-relative+-1": "yesterday", "dateTimeFormat-long": "{1} {0}", - "dayPeriods-format-narrow-am": "AM", + "dayPeriods-format-narrow-am": "a", + "dateFormatItem-h": "h a", "dateFormatItem-MMMd": "MMM d", "dateFormatItem-MEd": "MM-dd, E", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", "field-day": "Day", "days-format-wide": [ "Sun", @@ -204,8 +222,6 @@ define({ root: "Sat" ], "field-zone": "Zone", - "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", - "dateFormatItem-y": "G y", "months-standAlone-narrow": [ "1", "2", @@ -220,8 +236,12 @@ define({ root: "11", "12" ], - "dateFormatItem-hm": "h:mm a", + "dateFormatItem-y": "G y", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "field-year-relative+-1": "last year", + "field-month-relative+-1": "last month", "dateTimeFormats-appendItem-Year": "{1} {0}", + "dateFormatItem-hm": "h:mm a", "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", "dayPeriods-format-abbr-pm": "PM", "days-format-abbr": [ @@ -246,6 +266,7 @@ define({ root: "S" ], "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", + "field-month": "Month", "days-standAlone-narrow": [ "S", "M", @@ -256,25 +277,42 @@ define({ root: "S" ], "dateFormatItem-MMM": "LLL", - "field-month": "Month", + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", "dayPeriods-format-wide-am": "AM", "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", "dateFormat-short": "GGGGG y-MM-dd", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", + "dayPeriods-format-narrow-noon": "n", "field-second": "Second", - "dateFormatItem-Ed": "d, E", + "field-sat-relative+-1": "last Saturday", + "field-sun-relative+-1": "last Sunday", + "field-month-relative+0": "this month", + "field-month-relative+1": "next month", "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "dateFormatItem-Ed": "d, E", "field-week": "Week", "dateFormat-medium": "G y MMM d", + "field-week-relative+-1": "last week", + "field-year-relative+0": "this year", "dateFormatItem-yyyyM": "GGGGG y-MM", - "dayPeriods-format-narrow-pm": "PM", + "field-year-relative+1": "next year", + "dayPeriods-format-narrow-pm": "p", "dateFormatItem-yyyyQQQQ": "G y QQQQ", "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "G y MMM", - "dateFormatItem-yyyy": "G y" + "field-mon-relative+-1": "last Monday", + "dateFormatItem-yyyy": "G y", + "field-week-relative+0": "this week", + "field-week-relative+1": "next week" } //end v1.x content , diff --git a/cldr/nls/ca/buddhist.js b/cldr/nls/ca/buddhist.js index 485f2b2342..0742a93083 100644 --- a/cldr/nls/ca/buddhist.js +++ b/cldr/nls/ca/buddhist.js @@ -11,26 +11,29 @@ define( "ds." ], "months-format-narrow": [ - "G", - "F", - "M", - "A", - "M", - "J", - "J", - "A", - "S", - "O", - "N", - "D" + "GN", + "FB", + "MÇ", + "AB", + "MG", + "JN", + "JL", + "AG", + "ST", + "OC", + "NV", + "DS" ], + "field-second-relative+0": "ara", "field-weekday": "dia de la setmana", - "dateFormatItem-yQQQ": "QQQ y GGGGG", - "dateFormatItem-yMEd": "E, dd/MM/y GGGGG", + "field-wed-relative+0": "aquest dimecres", + "field-wed-relative+1": "dimecres que ve", + "dateFormatItem-GyMMMEd": "E, d MMM, y G", "dateFormatItem-MMMEd": "E d MMM", "eraNarrow": [ "eB" ], + "field-tue-relative+-1": "dimarts passat", "days-format-short": [ "dg.", "dl.", @@ -41,25 +44,30 @@ define( "ds." ], "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "divendres passat", + "field-wed-relative+-1": "dimecres passat", "months-format-wide": [ - "de gener", - "de febrer", - "de març", - "d’abril", - "de maig", - "de juny", - "de juliol", - "d’agost", - "de setembre", - "d’octubre", - "de novembre", - "de desembre" - ], - "dayPeriods-format-wide-pm": "p.m.", + "gener", + "febrer", + "març", + "abril", + "maig", + "juny", + "juliol", + "agost", + "setembre", + "octubre", + "novembre", + "desembre" + ], + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-medium": "{1}, {0}", + "dayPeriods-format-wide-pm": "p. m.", "dateFormat-full": "EEEE, dd MMMM y G", + "dateFormatItem-yyyyMEd": "E, d.M.y G", + "field-thu-relative+-1": "dijous passat", "dateFormatItem-Md": "d/M", "field-era": "era", - "dateFormatItem-yM": "MM/y GGGGG", "months-standAlone-wide": [ "gener", "febrer", @@ -74,40 +82,43 @@ define( "novembre", "desembre" ], - "timeFormat-short": "H.mm", + "timeFormat-short": "H:mm", "quarters-format-wide": [ "1r trimestre", "2n trimestre", "3r trimestre", "4t trimestre" ], - "dateFormatItem-yQQQQ": "QQQQ y G", - "timeFormat-long": "H.mm.ss z", + "timeFormat-long": "H:mm:ss z", "field-year": "any", - "dateFormatItem-yMMM": "MMM y G", "field-hour": "hora", "months-format-abbr": [ - "de gen.", - "de febr.", - "de març", - "d’abr.", - "de maig", - "de juny", - "de jul.", - "d’ag.", - "de set.", - "d’oct.", - "de nov.", - "de des." - ], - "timeFormat-full": "H.mm.ss zzzz", + "gen.", + "feb.", + "març", + "abr.", + "maig", + "juny", + "jul.", + "ag.", + "set.", + "oct.", + "nov.", + "des." + ], + "field-sat-relative+0": "aquest dissabte", + "field-sat-relative+1": "dissabte que ve", + "timeFormat-full": "H:mm:ss zzzz", "field-day-relative+0": "avui", + "field-thu-relative+0": "aquest dijous", "field-day-relative+1": "demà", + "field-thu-relative+1": "dijous que ve", + "dateFormatItem-GyMMMd": "d MMM y G", "field-day-relative+2": "demà passat", - "dateFormatItem-H": "HH", + "dateFormatItem-H": "H", "months-standAlone-abbr": [ "gen.", - "febr.", + "feb.", "març", "abr.", "maig", @@ -131,18 +142,24 @@ define( "3r trimestre", "4t trimestre" ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d MMM, y G", "dateFormatItem-M": "L", "days-standAlone-wide": [ - "Diumenge", - "Dilluns", - "Dimarts", - "Dimecres", - "Dijous", - "Divendres", - "Dissabte" - ], - "timeFormat-medium": "H.mm.ss", - "dateFormatItem-Hm": "HH:mm", + "diumenge", + "dilluns", + "dimarts", + "dimecres", + "dijous", + "divendres", + "dissabte" + ], + "dateFormatItem-yyyyMMM": "LLL y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "aquest diumenge", + "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "diumenge que ve", "quarters-standAlone-abbr": [ "1T", "2T", @@ -153,24 +170,26 @@ define( "eB" ], "field-minute": "minut", - "field-dayperiod": "a.m./p.m.", + "field-dayperiod": "a. m./p. m.", "days-standAlone-abbr": [ - "dg", - "dl", - "dt", - "dc", - "dj", - "dv", - "ds" + "dg.", + "dl.", + "dt.", + "dc.", + "dj.", + "dv.", + "ds." ], "dateFormatItem-d": "d", - "dateFormatItem-ms": "mm:ss", "field-day-relative+-1": "ahir", - "dateFormatItem-h": "h a", + "dateTimeFormat-long": "{1}, {0}", "dayPeriods-format-narrow-am": "a.m.", - "field-day-relative+-2": "abans d'ahir", + "field-day-relative+-2": "abans-d'ahir", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E, d/M", + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "aquest divendres", + "field-fri-relative+1": "divendres que ve", "field-day": "dia", "days-format-wide": [ "diumenge", @@ -184,22 +203,21 @@ define( "field-zone": "zona", "dateFormatItem-y": "y G", "months-standAlone-narrow": [ - "g", - "f", - "m", - "a", - "m", - "j", - "j", - "a", - "s", - "o", - "n", - "d" - ], - "field-year-relative+-1": "Últim any", - "field-month-relative+-1": "Últim mes", - "dateFormatItem-hm": "h:mm a", + "GN", + "FB", + "MÇ", + "AB", + "MG", + "JN", + "JL", + "AG", + "ST", + "OC", + "NV", + "DS" + ], + "field-year-relative+-1": "l'any passat", + "field-month-relative+-1": "el mes passat", "days-format-abbr": [ "dg.", "dl.", @@ -221,7 +239,9 @@ define( "dv", "ds" ], + "dateFormatItem-yyyyMd": "d/M/y G", "field-month": "mes", + "dateFormatItem-MMM": "LLL", "days-standAlone-narrow": [ "dg", "dl", @@ -231,24 +251,33 @@ define( "dv", "ds" ], - "dateFormatItem-MMM": "LLL", - "dayPeriods-format-wide-am": "a.m.", + "field-tue-relative+0": "aquest dimarts", + "field-tue-relative+1": "dimarts que ve", + "dayPeriods-format-wide-am": "a. m.", + "field-mon-relative+0": "aquest dilluns", + "field-mon-relative+1": "dilluns que ve", "dateFormat-short": "dd/MM/y GGGGG", "field-second": "segon", - "dateFormatItem-yMMMEd": "E, d MMM y G", - "field-month-relative+0": "Aquest mes", - "field-month-relative+1": "Mes següent", + "field-sat-relative+-1": "dissabte passat", + "field-sun-relative+-1": "diumenge passat", + "field-month-relative+0": "aquest mes", + "field-month-relative+1": "el mes que ve", "dateFormatItem-Ed": "E d", "field-week": "setmana", "dateFormat-medium": "d MMM y G", - "field-year-relative+0": "Aquest any", - "field-week-relative+-1": "Última setmana", - "field-year-relative+1": "Any següent", + "field-year-relative+0": "enguany", + "field-week-relative+-1": "la setmana passada", + "dateFormatItem-yyyyM": "M/y G", + "field-year-relative+1": "l'any que ve", "dayPeriods-format-narrow-pm": "p.m.", - "dateFormatItem-Hms": "HH:mm:ss", - "dateFormatItem-hms": "h:mm:ss a", - "field-week-relative+0": "Aquesta setmana", - "field-week-relative+1": "Setmana següent" + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-Hms": "H:mm:ss", + "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "dilluns passat", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "aquesta setmana", + "field-week-relative+1": "la setmana que ve" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ca/chinese.js b/cldr/nls/ca/chinese.js index 3c65cab826..bfeaec6e2c 100644 --- a/cldr/nls/ca/chinese.js +++ b/cldr/nls/ca/chinese.js @@ -1,13 +1,16 @@ define( //begin v1.x content { - "dateFormat-medium": "d MMM U", - "field-second": "segon", - "field-year-relative+-1": "Últim any", - "field-week": "setmana", - "field-month-relative+-1": "Últim mes", + "field-sat-relative+0": "aquest dissabte", + "field-sat-relative+1": "dissabte que ve", + "field-dayperiod": "a. m./p. m.", + "field-sun-relative+-1": "diumenge passat", + "field-mon-relative+-1": "dilluns passat", + "field-minute": "minut", "field-day-relative+-1": "ahir", - "months-format-narrow": [ + "field-weekday": "dia de la setmana", + "field-day-relative+-2": "abans-d'ahir", + "months-standAlone-narrow": [ "1", "2", "3", @@ -21,8 +24,11 @@ define( "11", "12" ], - "field-day-relative+-2": "abans d'ahir", - "months-standAlone-narrow": [ + "field-era": "era", + "field-hour": "hora", + "field-sun-relative+0": "aquest diumenge", + "field-sun-relative+1": "diumenge que ve", + "months-standAlone-abbr": [ "1", "2", "3", @@ -36,6 +42,23 @@ define( "11", "12" ], + "field-wed-relative+-1": "dimecres passat", + "field-day-relative+0": "avui", + "field-day-relative+1": "demà", + "field-day-relative+2": "demà passat", + "dateFormat-long": "d MMMM U", + "field-tue-relative+0": "aquest dimarts", + "field-zone": "zona", + "field-tue-relative+1": "dimarts que ve", + "field-week-relative+-1": "la setmana passada", + "dateFormat-medium": "d MMM U", + "field-year-relative+0": "enguany", + "field-year-relative+1": "l'any que ve", + "field-sat-relative+-1": "dissabte passat", + "field-year-relative+-1": "l'any passat", + "field-year": "any", + "field-fri-relative+0": "aquest divendres", + "field-fri-relative+1": "divendres que ve", "months-standAlone-wide": [ "1", "2", @@ -50,9 +73,10 @@ define( "11", "12" ], - "field-year": "any", - "field-week-relative+0": "Aquesta setmana", - "months-standAlone-abbr": [ + "field-week": "setmana", + "field-week-relative+0": "aquesta setmana", + "field-week-relative+1": "la setmana que ve", + "months-format-abbr": [ "1", "2", "3", @@ -66,21 +90,14 @@ define( "11", "12" ], - "field-week-relative+1": "Setmana següent", - "field-minute": "minut", - "field-week-relative+-1": "Última setmana", - "field-day-relative+0": "avui", - "field-hour": "hora", - "field-day-relative+1": "demà", - "dateFormat-long": "d MMMM U", - "field-day-relative+2": "demà passat", - "field-day": "dia", - "field-month-relative+0": "Aquest mes", - "field-month-relative+1": "Mes següent", - "field-dayperiod": "a.m./p.m.", + "field-month-relative+0": "aquest mes", "field-month": "mes", - "dateFormat-short": "d/M/y", - "months-format-wide": [ + "field-month-relative+1": "el mes que ve", + "field-fri-relative+-1": "divendres passat", + "field-second": "segon", + "field-tue-relative+-1": "dimarts passat", + "field-day": "dia", + "months-format-narrow": [ "1", "2", "3", @@ -94,10 +111,14 @@ define( "11", "12" ], - "field-era": "era", - "field-year-relative+0": "Aquest any", - "field-year-relative+1": "Any següent", - "months-format-abbr": [ + "field-mon-relative+0": "aquest dilluns", + "field-mon-relative+1": "dilluns que ve", + "field-thu-relative+0": "aquest dijous", + "field-second-relative+0": "ara", + "dateFormat-short": "d/M/y", + "field-thu-relative+1": "dijous que ve", + "dateFormat-full": "EEEE, dd MMMM UU", + "months-format-wide": [ "1", "2", "3", @@ -111,9 +132,10 @@ define( "11", "12" ], - "dateFormat-full": "EEEE, dd MMMM UU", - "field-weekday": "dia de la setmana", - "field-zone": "zona" + "field-wed-relative+0": "aquest dimecres", + "field-wed-relative+1": "dimecres que ve", + "field-month-relative+-1": "el mes passat", + "field-thu-relative+-1": "dijous passat" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ca/currency.js b/cldr/nls/ca/currency.js index 660aa713e8..79db29b5d6 100644 --- a/cldr/nls/ca/currency.js +++ b/cldr/nls/ca/currency.js @@ -6,8 +6,8 @@ define( "JPY_symbol": "JP¥", "CAD_displayName": "dòlar canadenc", "HKD_symbol": "HK$", - "CNY_displayName": "iuan renmimbi xinès", - "USD_symbol": "US$", + "CNY_displayName": "iuan xinès", + "USD_symbol": "$", "AUD_displayName": "dòlar australià", "JPY_displayName": "ien japonès", "CAD_symbol": "CA$", diff --git a/cldr/nls/ca/generic.js b/cldr/nls/ca/generic.js index 080ae62a47..e698ca7c7d 100644 --- a/cldr/nls/ca/generic.js +++ b/cldr/nls/ca/generic.js @@ -1,68 +1,94 @@ define( //begin v1.x content { - "dateFormatItem-yM": "M/y", - "field-dayperiod": "a.m./p.m.", - "field-minute": "minut", - "dateFormatItem-MMMEd": "E d MMM", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "ahir", - "dateFormatItem-hms": "h.mm.ss a", - "dateFormatItem-yQQQ": "QQQ y", - "field-day-relative+-2": "abans d'ahir", + "field-second-relative+0": "ara", "field-weekday": "dia de la setmana", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateTimeFormat-medium": "{1} {0}", + "field-wed-relative+0": "aquest dimecres", + "dateFormatItem-GyMMMEd": "E, d MMM, y G", + "dateFormatItem-MMMEd": "E d MMM", + "field-wed-relative+1": "dimecres que ve", + "field-tue-relative+-1": "dimarts passat", + "dateFormat-long": "d MMMM 'de' y G", + "field-fri-relative+-1": "divendres passat", + "field-wed-relative+-1": "dimecres passat", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-medium": "{1}, {0}", + "dateFormat-full": "EEEE d MMMM 'de' y G", + "dateFormatItem-yyyyMEd": "E, d.M.y G", + "field-thu-relative+-1": "dijous passat", + "dateFormatItem-Md": "d/M", + "dateFormatItem-GyMMMM": "LLLL 'de' y G", "field-era": "era", + "field-year": "any", + "dateFormatItem-yyyyMMMM": "LLLL 'de' y G", "field-hour": "hora", - "dateFormatItem-y": "y", - "dateFormatItem-yMM": "MM/y", - "dateFormatItem-Ed": "E d", - "dateFormatItem-yMMM": "LLL y", + "field-sat-relative+0": "aquest dissabte", + "field-sat-relative+1": "dissabte que ve", "field-day-relative+0": "avui", "field-day-relative+1": "demà", + "field-thu-relative+0": "aquest dijous", + "dateFormatItem-GyMMMd": "d MMM y G", "field-day-relative+2": "demà passat", - "dateFormat-long": "d MMMM 'de' y G", - "field-zone": "zona", - "dateFormatItem-Hm": "H.mm", - "field-week-relative+-1": "Última setmana", - "dateFormat-medium": "dd/MM/y G", - "dateFormatItem-Hms": "H.mm.ss", - "field-year-relative+0": "Aquest any", - "field-year-relative+1": "Any següent", - "dateFormatItem-yMd": "d/M/y", - "field-year-relative+-1": "Últim any", - "dateFormatItem-yMMMM": "LLLL 'de' y", - "dateFormatItem-ms": "mm.ss", - "field-year": "any", - "dateTimeFormat-long": "{1} {0}", - "field-week": "setmana", - "dateFormatItem-MMMMEd": "E d MMMM", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "Aquesta setmana", - "field-week-relative+1": "Setmana següent", - "dateFormatItem-yQQQQ": "QQQQ y", - "field-month-relative+0": "Aquest mes", + "field-thu-relative+1": "dijous que ve", "dateFormatItem-H": "H", - "field-month": "mes", - "field-month-relative+1": "Mes següent", - "dateFormatItem-MMMMd": "d MMMM", - "dateFormatItem-mmss": "mm:ss", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d MMM, y G", "dateFormatItem-M": "L", - "dateFormatItem-yMMMd": "d MMM y", - "field-second": "segon", - "field-day": "dia", + "dateFormatItem-yyyyMMM": "LLL y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "dateFormatItem-MMMMd": "d MMMM", + "field-sun-relative+0": "aquest diumenge", + "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "diumenge que ve", + "field-minute": "minut", + "field-dayperiod": "a. m./p. m.", + "dateFormatItem-d": "d", + "dateFormatItem-ms": "mm:ss", + "field-day-relative+-1": "ahir", + "dateFormatItem-h": "h a", + "dateTimeFormat-long": "{1}, {0}", + "field-day-relative+-2": "abans-d'ahir", + "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E d/M", - "dateFormatItem-hm": "h.mm a", + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "aquest divendres", + "field-fri-relative+1": "divendres que ve", + "field-day": "dia", + "field-zone": "zona", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "l'any passat", + "field-month-relative+-1": "el mes passat", + "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "d/M/y G", + "field-month": "mes", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "aquest dimarts", + "field-tue-relative+1": "dimarts que ve", + "dateFormatItem-MMMMEd": "E d MMMM", + "field-mon-relative+0": "aquest dilluns", + "field-mon-relative+1": "dilluns que ve", "dateFormat-short": "dd/MM/yy GGGGG", - "dateFormatItem-yMMMEd": "E, d MMM, y", - "dateFormat-full": "EEEE d MMMM 'de' y G", - "dateFormatItem-Md": "d/M", - "dateFormatItem-yMEd": "E, d.M.y", - "dateFormatItem-d": "d", - "field-month-relative+-1": "Últim mes", - "dateFormatItem-h": "h a" + "field-second": "segon", + "field-sat-relative+-1": "dissabte passat", + "field-sun-relative+-1": "diumenge passat", + "field-month-relative+0": "aquest mes", + "field-month-relative+1": "el mes que ve", + "dateFormatItem-Ed": "E d", + "field-week": "setmana", + "dateFormat-medium": "dd/MM/y G", + "field-year-relative+0": "enguany", + "field-week-relative+-1": "la setmana passada", + "dateFormatItem-yyyyM": "M/y G", + "field-year-relative+1": "l'any que ve", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-Hms": "H:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "dilluns passat", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "aquesta setmana", + "field-week-relative+1": "la setmana que ve" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ca/gregorian.js b/cldr/nls/ca/gregorian.js index 2fa735e928..15fee40f14 100644 --- a/cldr/nls/ca/gregorian.js +++ b/cldr/nls/ca/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "dg.", "dl.", @@ -11,19 +12,20 @@ define( "ds." ], "months-format-narrow": [ - "G", - "F", - "M", - "A", - "M", - "J", - "J", - "A", - "S", - "O", - "N", - "D" + "GN", + "FB", + "MÇ", + "AB", + "MG", + "JN", + "JL", + "AG", + "ST", + "OC", + "NV", + "DS" ], + "field-second-relative+0": "ara", "quarters-standAlone-narrow": [ "1", "2", @@ -32,13 +34,18 @@ define( ], "field-weekday": "dia de la setmana", "dateFormatItem-yQQQ": "QQQ y", - "dateFormatItem-yMEd": "E, d.M.y", + "dateFormatItem-yMEd": "E, d/M/y", + "field-wed-relative+0": "aquest dimecres", + "field-wed-relative+1": "dimecres que ve", + "dateFormatItem-GyMMMEd": "E, d MMM, y G", "dateFormatItem-MMMEd": "E d MMM", "eraNarrow": [ "aC", - "dC" + "dC", + "dC", + "de la n.e." ], - "dateFormatItem-yMM": "MM/y", + "field-tue-relative+-1": "dimarts passat", "days-format-short": [ "dg.", "dl.", @@ -49,24 +56,28 @@ define( "ds." ], "dateFormat-long": "d MMMM 'de' y", + "field-fri-relative+-1": "divendres passat", + "field-wed-relative+-1": "dimecres passat", "months-format-wide": [ - "de gener", - "de febrer", - "de març", - "d’abril", - "de maig", - "de juny", - "de juliol", - "d’agost", - "de setembre", - "d’octubre", - "de novembre", - "de desembre" + "gener", + "febrer", + "març", + "abril", + "maig", + "juny", + "juliol", + "agost", + "setembre", + "octubre", + "novembre", + "desembre" ], "dateTimeFormat-medium": "{1} {0}", - "dayPeriods-format-wide-pm": "p.m.", - "dateFormat-full": "EEEE d MMMM 'de' y", + "dayPeriods-format-wide-pm": "p. m.", + "dateFormat-full": "EEEE, d MMMM 'de' y", + "field-thu-relative+-1": "dijous passat", "dateFormatItem-Md": "d/M", + "dateFormatItem-GyMMMM": "LLLL 'de' y G", "dateFormatItem-yMd": "d/M/y", "field-era": "era", "dateFormatItem-yM": "M/y", @@ -84,7 +95,7 @@ define( "novembre", "desembre" ], - "timeFormat-short": "H.mm", + "timeFormat-short": "H:mm", "quarters-format-wide": [ "1r trimestre", "2n trimestre", @@ -92,32 +103,37 @@ define( "4t trimestre" ], "dateFormatItem-yQQQQ": "QQQQ y", - "timeFormat-long": "H.mm.ss z", + "timeFormat-long": "H:mm:ss z", "field-year": "any", "dateFormatItem-yMMM": "LLL y", "field-hour": "hora", "months-format-abbr": [ - "de gen.", - "de febr.", - "de març", - "d’abr.", - "de maig", - "de juny", - "de jul.", - "d’ag.", - "de set.", - "d’oct.", - "de nov.", - "de des." + "gen.", + "feb.", + "març", + "abr.", + "maig", + "juny", + "jul.", + "ag.", + "set.", + "oct.", + "nov.", + "des." ], - "timeFormat-full": "H.mm.ss zzzz", + "field-sat-relative+0": "aquest dissabte", + "field-sat-relative+1": "dissabte que ve", + "timeFormat-full": "H:mm:ss zzzz", "field-day-relative+0": "avui", + "field-thu-relative+0": "aquest dijous", "field-day-relative+1": "demà", + "field-thu-relative+1": "dijous que ve", + "dateFormatItem-GyMMMd": "d MMM y G", "field-day-relative+2": "demà passat", "dateFormatItem-H": "H", "months-standAlone-abbr": [ "gen.", - "febr.", + "feb.", "març", "abr.", "maig", @@ -141,19 +157,22 @@ define( "3r trimestre", "4t trimestre" ], + "dateFormatItem-Gy": "y G", "dateFormatItem-M": "L", "days-standAlone-wide": [ - "Diumenge", - "Dilluns", - "Dimarts", - "Dimecres", - "Dijous", - "Divendres", - "Dissabte" + "diumenge", + "dilluns", + "dimarts", + "dimecres", + "dijous", + "divendres", + "dissabte" ], "dateFormatItem-MMMMd": "d MMMM", - "timeFormat-medium": "H.mm.ss", - "dateFormatItem-Hm": "H.mm", + "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "aquest diumenge", + "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "diumenge que ve", "quarters-standAlone-abbr": [ "1T", "2T", @@ -162,21 +181,23 @@ define( ], "eraAbbr": [ "aC", - "dC" + "a. de la n. e.", + "dC", + "de la n.e." ], "field-minute": "minut", - "field-dayperiod": "a.m./p.m.", + "field-dayperiod": "a. m./p. m.", "days-standAlone-abbr": [ - "dg", - "dl", - "dt", - "dc", - "dj", - "dv", - "ds" + "dg.", + "dl.", + "dt.", + "dc.", + "dj.", + "dv.", + "ds." ], "dateFormatItem-d": "d", - "dateFormatItem-ms": "mm.ss", + "dateFormatItem-ms": "mm:ss", "quarters-format-narrow": [ "1", "2", @@ -187,11 +208,13 @@ define( "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", "dayPeriods-format-narrow-am": "a.m.", - "field-day-relative+-2": "abans d'ahir", + "field-day-relative+-2": "abans-d'ahir", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E d/M", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "aquest divendres", "dateFormatItem-yMMMM": "LLLL 'de' y", + "field-fri-relative+1": "divendres que ve", "field-day": "dia", "days-format-wide": [ "diumenge", @@ -205,22 +228,22 @@ define( "field-zone": "zona", "dateFormatItem-y": "y", "months-standAlone-narrow": [ - "g", - "f", - "m", - "a", - "m", - "j", - "j", - "a", - "s", - "o", - "n", - "d" + "GN", + "FB", + "MÇ", + "AB", + "MG", + "JN", + "JL", + "AG", + "ST", + "OC", + "NV", + "DS" ], - "field-year-relative+-1": "Últim any", - "field-month-relative+-1": "Últim mes", - "dateFormatItem-hm": "h.mm a", + "field-year-relative+-1": "l'any passat", + "field-month-relative+-1": "el mes passat", + "dateFormatItem-hm": "h:mm a", "days-format-abbr": [ "dg.", "dl.", @@ -233,7 +256,9 @@ define( "dateFormatItem-yMMMd": "d MMM y", "eraNames": [ "abans de Crist", - "després de Crist" + "a. de la n. e.", + "després de Crist", + "de la n. e." ], "days-format-narrow": [ "dg", @@ -255,26 +280,37 @@ define( ], "dateFormatItem-MMM": "LLL", "field-month": "mes", - "dayPeriods-format-wide-am": "a.m.", + "field-tue-relative+0": "aquest dimarts", + "field-tue-relative+1": "dimarts que ve", + "dayPeriods-format-wide-am": "a. m.", "dateFormatItem-MMMMEd": "E d MMMM", - "dateFormat-short": "dd/MM/yy", + "dateFormatItem-EHm": "E H:mm", + "field-mon-relative+0": "aquest dilluns", + "field-mon-relative+1": "dilluns que ve", + "dateFormat-short": "d/M/yy", + "dateFormatItem-EHms": "E H:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", "field-second": "segon", + "field-sat-relative+-1": "dissabte passat", "dateFormatItem-yMMMEd": "E, d MMM, y", - "field-month-relative+0": "Aquest mes", - "field-month-relative+1": "Mes següent", + "field-sun-relative+-1": "diumenge passat", + "field-month-relative+0": "aquest mes", + "field-month-relative+1": "el mes que ve", "dateFormatItem-Ed": "E d", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "setmana", "dateFormat-medium": "dd/MM/y", - "field-year-relative+0": "Aquest any", - "field-week-relative+-1": "Última setmana", - "field-year-relative+1": "Any següent", - "dateFormatItem-mmss": "mm:ss", + "field-year-relative+0": "enguany", + "field-week-relative+-1": "la setmana passada", + "field-year-relative+1": "l'any que ve", "dayPeriods-format-narrow-pm": "p.m.", "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Hms": "H.mm.ss", - "dateFormatItem-hms": "h.mm.ss a", - "field-week-relative+0": "Aquesta setmana", - "field-week-relative+1": "Setmana següent" + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "dilluns passat", + "field-week-relative+0": "aquesta setmana", + "field-week-relative+1": "la setmana que ve" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ca/number.js b/cldr/nls/ca/number.js index a4063cdef6..26c00fb66a 100644 --- a/cldr/nls/ca/number.js +++ b/cldr/nls/ca/number.js @@ -10,10 +10,11 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", - "currencyFormat": "¤#,##0.00;(¤#,##0.00)", + "currencyFormat": "#,##0.00 ¤;(#,##0.00 ¤)", "plusSign": "+", "decimalFormat-long": "000 bilions", "decimalFormat-short": "000 B" diff --git a/cldr/nls/ca/roc.js b/cldr/nls/ca/roc.js index dfa66d9e7f..b9a6884ee1 100644 --- a/cldr/nls/ca/roc.js +++ b/cldr/nls/ca/roc.js @@ -1,31 +1,57 @@ define( //begin v1.x content { - "field-second": "segon", - "field-year-relative+-1": "Últim any", - "field-week": "setmana", - "field-month-relative+-1": "Últim mes", - "field-day-relative+-1": "ahir", - "field-day-relative+-2": "abans d'ahir", - "field-year": "any", - "field-week-relative+0": "Aquesta setmana", - "field-week-relative+1": "Setmana següent", + "field-sat-relative+0": "aquest dissabte", + "field-sat-relative+1": "dissabte que ve", + "field-dayperiod": "a. m./p. m.", + "field-sun-relative+-1": "diumenge passat", + "field-mon-relative+-1": "dilluns passat", "field-minute": "minut", - "field-week-relative+-1": "Última setmana", - "field-day-relative+0": "avui", + "field-day-relative+-1": "ahir", + "field-weekday": "dia de la setmana", + "field-day-relative+-2": "abans-d'ahir", + "field-era": "era", "field-hour": "hora", + "field-sun-relative+0": "aquest diumenge", + "field-sun-relative+1": "diumenge que ve", + "field-wed-relative+-1": "dimecres passat", + "field-day-relative+0": "avui", "field-day-relative+1": "demà", "field-day-relative+2": "demà passat", - "field-day": "dia", - "field-month-relative+0": "Aquest mes", - "field-month-relative+1": "Mes següent", - "field-dayperiod": "a.m./p.m.", + "dateFormat-long": "d MMMM 'de' y G", + "field-tue-relative+0": "aquest dimarts", + "field-zone": "zona", + "field-tue-relative+1": "dimarts que ve", + "field-week-relative+-1": "la setmana passada", + "dateFormat-medium": "dd/MM/y G", + "field-year-relative+0": "enguany", + "field-year-relative+1": "l'any que ve", + "field-sat-relative+-1": "dissabte passat", + "field-year-relative+-1": "l'any passat", + "field-year": "any", + "field-fri-relative+0": "aquest divendres", + "field-fri-relative+1": "divendres que ve", + "field-week": "setmana", + "field-week-relative+0": "aquesta setmana", + "field-week-relative+1": "la setmana que ve", + "field-month-relative+0": "aquest mes", "field-month": "mes", - "field-era": "era", - "field-year-relative+0": "Aquest any", - "field-year-relative+1": "Any següent", - "field-weekday": "dia de la setmana", - "field-zone": "zona" + "field-month-relative+1": "el mes que ve", + "field-fri-relative+-1": "divendres passat", + "field-second": "segon", + "field-tue-relative+-1": "dimarts passat", + "field-day": "dia", + "field-mon-relative+0": "aquest dilluns", + "field-mon-relative+1": "dilluns que ve", + "field-thu-relative+0": "aquest dijous", + "field-second-relative+0": "ara", + "dateFormat-short": "dd/MM/y GGGGG", + "field-thu-relative+1": "dijous que ve", + "dateFormat-full": "EEEE d MMMM 'de' y G", + "field-wed-relative+0": "aquest dimecres", + "field-wed-relative+1": "dimecres que ve", + "field-month-relative+-1": "el mes passat", + "field-thu-relative+-1": "dijous passat" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/chinese.js b/cldr/nls/chinese.js index 9325af9905..e5d0132e18 100644 --- a/cldr/nls/chinese.js +++ b/cldr/nls/chinese.js @@ -2,16 +2,64 @@ define({ root: //begin v1.x content { - "days-standAlone-short": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" - ], - "months-format-narrow": [ + "dateTimeFormats-appendItem-Year": "{1} {0}", + "field-tue-relative+-1": "last Tuesday", + "field-year": "Year", + "days-format-narrow@localeAlias39": { + "bundle": "gregorian", + "target": "days-standAlone-narrow" + }, + "dateFormatItem-Hm": "HH:mm", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", + "dateFormatItem-ms": "mm:ss", + "timeFormat-short": "HH:mm", + "field-minute": "Minute", + "dateTimeFormat-short": "{1} {0}", + "field-day-relative+0": "today", + "field-day-relative+1": "tomorrow", + "days-standAlone-short@localeAlias44": { + "bundle": "gregorian", + "target": "days-format-short" + }, + "days-standAlone-short@localeAlias45": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "months-standAlone-wide@localeAlias36": { + "bundle": "chinese", + "target": "months-format-wide" + }, + "days-standAlone-short@localeAlias46": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "quarters-standAlone-wide@localeAlias53": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", + "dayPeriods-format-narrow-am": "a", + "dateFormatItem-MMMd": "MMM d", + "dayPeriods-format-abbr-am": "AM", + "field-week-relative+0": "this week", + "field-month-relative+0": "this month", + "field-week-relative+1": "next week", + "field-month-relative+1": "next month", + "timeFormat-medium": "HH:mm:ss", + "field-second-relative+0": "now", + "quarters@localeAlias48": { + "bundle": "gregorian", + "target": "quarters" + }, + "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "quarters-format-abbr@localeAlias49": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "dateFormatItem-yyyyQQQ": "U QQQ", + "months-standAlone-narrow": [ "1", "2", "3", @@ -25,23 +73,98 @@ define({ root: "11", "12" ], - "quarters-standAlone-narrow": [ + "days-format-abbr@localeAlias38": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dateFormatItem-GyMMMEd": "U MMM d, E", + "dateFormatItem-yyyyMd": "y-MM-dd", + "field-day": "Day", + "field-year-relative+-1": "last year", + "dayPeriods-format-wide-am": "AM", + "days-standAlone-wide@localeAlias47": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "days-format-short@localeAlias40": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "days-format-short@localeAlias41": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dateFormatItem-yyyyMEd": "y-MM-dd, E", + "field-wed-relative+-1": "last Wednesday", + "dateTimeFormat-medium": "{1} {0}", + "days-standAlone-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "field-second": "Second", + "dateFormat-long": "U MMMM d", + "dateFormatItem-GyMMMd": "U MMM d", + "dayPeriods-format-abbr@localeAlias55": { + "bundle": "gregorian", + "target": "dayPeriods-format-wide" + }, + "dayPeriods-format-abbr@localeAlias56": { + "bundle": "gregorian", + "target": "dayPeriods-format-wide" + }, + "quarters-standAlone-wide": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "days-format-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "field-mon-relative+-1": "last Monday", + "dateFormatItem-GyMMM": "U MMM", + "field-month": "Month", + "dateFormatItem-MMM": "LLL", + "field-dayperiod": "Dayperiod", + "dayPeriods-format-narrow-pm": "p", + "dateFormat-medium": "U MMM d", + "quarters-standAlone-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "dayPeriods-format-abbr-pm": "PM", + "dateFormatItem-yyyyM": "y-MM", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "months-format-narrow": [ "1", "2", "3", - "4" + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" ], - "field-weekday": "Day of the Week", - "dateFormatItem-GyMMMEd": "U MMM d, E", - "dateFormatItem-MMMEd": "MMM d, E", - "months-standAlone-wide@localeAlias40": { - "bundle": "chinese", - "target": "months-format-wide" - }, - "months-format-abbr@localeAlias36": { - "bundle": "chinese", - "target": "months-format-wide" - }, + "dateFormatItem-yyyyMMMd": "U MMM d", "days-format-short": [ "Sun", "Mon", @@ -51,123 +174,90 @@ define({ root: "Fri", "Sat" ], - "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", - "days-format-narrow@localeAlias43": { - "bundle": "gregorian", - "target": "days-standAlone-narrow" - }, - "dateFormat-long": "U MMMM d", - "months-format-wide": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" + "quarters-format-narrow": [ + "1", + "2", + "3", + "4" ], - "dateFormatItem-yyyyQQQ": "U QQQ", - "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "PM", - "dateFormat-full": "U MMMM d, EEEE", - "dateFormatItem-yyyyMEd": "y-MM-dd, E", + "field-sat-relative+-1": "last Saturday", + "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", + "dateTimeFormat-long": "{1} {0}", "dateFormatItem-Md": "MM-dd", - "dayPeriods-format-abbr-am": "AM", - "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", - "dateFormatItem-yMd": "y-MM-dd", - "field-era": "Era", - "months-standAlone-wide": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" - ], - "timeFormat-short": "HH:mm", - "quarters-format-wide": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], - "timeFormat-long": "HH:mm:ss z", - "field-year": "Year", - "dateTimeFormats-appendItem-Era": "{1} {0}", "field-hour": "Hour", - "months-format-abbr": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" - ], - "timeFormat-full": "HH:mm:ss zzzz", - "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "days-standAlone-wide@localeAlias51": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", - "dateFormatItem-GyMMMd": "U MMM d", - "months-standAlone-abbr": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" + "months-format-wide": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], - "dateFormatItem-H": "HH", - "quarters-format-abbr": [ - "Q1", - "Q2", - "Q3", - "Q4" + "dateFormat-full": "U MMMM d, EEEE", + "field-month-relative+-1": "last month", + "dateFormatItem-Hms": "HH:mm:ss", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "dayPeriods-format-narrow-noon": "n", + "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", + "field-week-relative+-1": "last week", + "months-format-abbr": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], - "quarters-standAlone-wide": [ - "Q1", - "Q2", - "Q3", - "Q4" + "timeFormat-long": "HH:mm:ss z", + "dateFormat-short": "y-MM-dd", + "days-standAlone-wide": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" ], - "dateFormatItem-Gy": "U", - "months-standAlone-abbr@localeAlias38": { - "bundle": "chinese", - "target": "months-format-abbr" - }, "dateFormatItem-yyyyMMMEd": "U MMM d, E", - "months-standAlone-abbr@localeAlias39": { - "bundle": "chinese", - "target": "months-format-wide" + "dateTimeFormats-appendItem-Era": "{1} {0}", + "dateFormatItem-H": "HH", + "timeFormat@localeAlias57": { + "bundle": "gregorian", + "target": "timeFormat" }, + "dateFormatItem-yyyy": "U", "dateFormatItem-M": "L", - "days-standAlone-wide": [ + "months-standAlone-wide": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" + ], + "field-sun-relative+-1": "last Sunday", + "days-standAlone-abbr": [ "Sun", "Mon", "Tue", @@ -176,35 +266,67 @@ define({ root: "Fri", "Sat" ], - "dateFormatItem-yyyyMMM": "U MMM", - "dateFormatItem-yyyyMMMd": "U MMM d", - "dayPeriods-format-abbr@localeAlias59": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" - }, - "months-format-narrow@localeAlias37": { + "dateTimeFormat-full": "{1} {0}", + "dateFormatItem-hm": "h:mm a", + "dateFormatItem-d": "d", + "field-weekday": "Day of the Week", + "months-format-narrow@localeAlias33": { "bundle": "chinese", "target": "months-standAlone-narrow" }, - "timeFormat-medium": "HH:mm:ss", - "days-standAlone-abbr@localeAlias46": { - "bundle": "gregorian", - "target": "days-format-abbr" + "field-sat-relative+0": "this Saturday", + "dateFormatItem-h": "h a", + "field-sat-relative+1": "next Saturday", + "months-standAlone-abbr": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" + ], + "timeFormat-full": "HH:mm:ss zzzz", + "dateFormatItem-MEd": "MM-dd, E", + "dateFormatItem-y": "U", + "months-format-abbr@localeAlias32": { + "bundle": "chinese", + "target": "months-format-wide" }, - "days-standAlone-abbr@localeAlias47": { + "field-thu-relative+0": "this Thursday", + "field-thu-relative+1": "next Thursday", + "dateFormatItem-hms": "h:mm:ss a", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "dayPeriods-format-abbr-noon": "noon", + "quarters-format-narrow@localeAlias50": { "bundle": "gregorian", - "target": "days-format-wide" + "target": "quarters-standAlone-narrow" }, - "quarters-standAlone-abbr": [ + "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", + "field-thu-relative+-1": "last Thursday", + "dateFormatItem-yMd": "y-MM-dd", + "field-week": "Week", + "quarters-standAlone-narrow": [ + "1", + "2", + "3", + "4" + ], + "quarters-format-wide": [ "Q1", "Q2", "Q3", "Q4" ], - "dateFormatItem-Hm": "HH:mm", - "field-minute": "Minute", - "field-dayperiod": "Dayperiod", - "days-standAlone-abbr": [ + "dateFormatItem-Ed": "d, E", + "dateFormatItem-yyyyMMM": "U MMM", + "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", + "days-standAlone-short": [ "Sun", "Mon", "Tue", @@ -213,34 +335,45 @@ define({ root: "Fri", "Sat" ], - "dateFormatItem-d": "d", - "dateFormatItem-ms": "mm:ss", - "quarters-format-narrow": [ - "1", - "2", - "3", - "4" + "dayPeriods@localeAlias54": { + "bundle": "gregorian", + "target": "dayPeriods" + }, + "dateFormatItem-yyyyQQQQ": "U QQQQ", + "quarters-format-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" ], - "field-day-relative+-1": "Yesterday", - "dateTimeFormat-long": "{1} {0}", - "dayPeriods-format-narrow-am": "AM", - "quarters-standAlone-wide@localeAlias57": { + "field-year-relative+0": "this year", + "field-year-relative+1": "next year", + "field-fri-relative+-1": "last Friday", + "months-standAlone-abbr@localeAlias34": { + "bundle": "chinese", + "target": "months-format-abbr" + }, + "quarters-standAlone-abbr@localeAlias51": { + "bundle": "gregorian", + "target": "quarters-format-abbr" + }, + "months-standAlone-abbr@localeAlias35": { + "bundle": "chinese", + "target": "months-format-wide" + }, + "quarters-standAlone-abbr@localeAlias52": { "bundle": "gregorian", "target": "quarters-format-wide" }, - "dateFormatItem-h": "h a", - "dayPeriods-format-abbr@localeAlias62": { + "dayPeriods-format-wide-noon": "noon", + "days-standAlone-abbr@localeAlias42": { "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "target": "days-format-abbr" }, - "dateFormatItem-MMMd": "MMM d", - "dateFormatItem-MEd": "MM-dd, E", - "dateTimeFormat-full": "{1} {0}", - "quarters@localeAlias52": { + "days-standAlone-abbr@localeAlias43": { "bundle": "gregorian", - "target": "quarters" + "target": "days-format-wide" }, - "field-day": "Day", "days-format-wide": [ "Sun", "Mon", @@ -250,59 +383,14 @@ define({ root: "Fri", "Sat" ], - "field-zone": "Zone", - "months-standAlone-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12" - ], - "dateFormatItem-y": "U", - "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", - "days@localeAlias41": { + "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", + "days@localeAlias37": { "bundle": "gregorian", "target": "days" }, - "dayPeriods-format-narrow@localeAlias60": { - "bundle": "gregorian", - "target": "dayPeriods-format-abbr" - }, - "dayPeriods-format-narrow@localeAlias61": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" - }, - "timeFormat@localeAlias65": { - "bundle": "gregorian", - "target": "timeFormat" - }, - "dayPeriods-format-narrow@localeAlias63": { - "bundle": "gregorian", - "target": "dayPeriods-format-abbr" - }, - "dayPeriods-format-narrow@localeAlias64": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" - }, - "days-standAlone-short@localeAlias48": { - "bundle": "gregorian", - "target": "days-format-short" - }, - "days-standAlone-short@localeAlias49": { - "bundle": "gregorian", - "target": "days-format-abbr" - }, - "dateFormatItem-hm": "h:mm a", - "dateTimeFormats-appendItem-Year": "{1} {0}", - "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", - "dayPeriods-format-abbr-pm": "PM", + "field-zone": "Zone", + "dateFormatItem-MMMEd": "MMM d, E", + "field-day-relative+-1": "yesterday", "days-format-abbr": [ "Sun", "Mon", @@ -312,81 +400,11 @@ define({ root: "Fri", "Sat" ], - "days-format-narrow": [ - "S", - "M", - "T", - "W", - "T", - "F", - "S" - ], - "dateFormatItem-yyyyMd": "y-MM-dd", - "days-standAlone-narrow": [ - "S", - "M", - "T", - "W", - "T", - "F", - "S" - ], - "dateFormatItem-MMM": "LLL", - "field-month": "Month", - "days-format-abbr@localeAlias42": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", - "dayPeriods-format-wide-am": "AM", - "days-standAlone-short@localeAlias50": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "quarters-format-abbr@localeAlias53": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "days-format-short@localeAlias44": { - "bundle": "gregorian", - "target": "days-format-abbr" - }, - "days-format-short@localeAlias45": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", + "field-sun-relative+0": "this Sunday", + "field-sun-relative+1": "next Sunday", "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", - "dateFormat-short": "y-MM-dd", - "quarters-standAlone-abbr@localeAlias55": { - "bundle": "gregorian", - "target": "quarters-format-abbr" - }, - "quarters-standAlone-abbr@localeAlias56": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "field-second": "Second", - "dayPeriods@localeAlias58": { - "bundle": "gregorian", - "target": "dayPeriods" - }, - "quarters-format-narrow@localeAlias54": { - "bundle": "gregorian", - "target": "quarters-standAlone-narrow" - }, - "dateFormatItem-Ed": "d, E", - "dateTimeFormats-appendItem-Timezone": "{0} {1}", - "field-week": "Week", - "dateFormat-medium": "U MMM d", - "dateFormatItem-yyyyM": "y-MM", - "dayPeriods-format-narrow-pm": "PM", - "dateFormatItem-yyyyQQQQ": "U QQQQ", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Hms": "HH:mm:ss", - "dateFormatItem-hms": "h:mm:ss a", - "dateFormatItem-GyMMM": "U MMM", - "dateFormatItem-yyyy": "U" + "dateFormatItem-Gy": "U", + "field-era": "Era" } //end v1.x content , @@ -406,6 +424,7 @@ define({ root: "nl": true, "pl": true, "pt": true, + "pt-pt": true, "ro": true, "ru": true, "th": true, diff --git a/cldr/nls/coptic.js b/cldr/nls/coptic.js index c2f2a05f2b..f748a8f9d4 100644 --- a/cldr/nls/coptic.js +++ b/cldr/nls/coptic.js @@ -2,16 +2,64 @@ define({ root: //begin v1.x content { - "days-standAlone-short": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" - ], - "months-format-narrow": [ + "dateTimeFormats-appendItem-Year": "{1} {0}", + "field-tue-relative+-1": "last Tuesday", + "field-year": "Year", + "dateFormatItem-Hm": "HH:mm", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", + "dateFormatItem-ms": "mm:ss", + "timeFormat-short": "HH:mm", + "quarters-standAlone-abbr@localeAlias77": { + "bundle": "gregorian", + "target": "quarters-format-abbr" + }, + "dayPeriods@localeAlias80": { + "bundle": "gregorian", + "target": "dayPeriods" + }, + "quarters-standAlone-abbr@localeAlias78": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "field-minute": "Minute", + "days-standAlone-abbr@localeAlias68": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "dateTimeFormat-short": "{1} {0}", + "days-standAlone-abbr@localeAlias69": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "field-day-relative+0": "today", + "field-day-relative+1": "tomorrow", + "field-tue-relative+0": "this Tuesday", + "months-standAlone-abbr@localeAlias60": { + "bundle": "coptic", + "target": "months-format-abbr" + }, + "field-tue-relative+1": "next Tuesday", + "months-standAlone-abbr@localeAlias61": { + "bundle": "coptic", + "target": "months-format-wide" + }, + "dayPeriods-format-narrow-am": "a", + "dateFormatItem-MMMd": "MMM d", + "dayPeriods-format-abbr-am": "AM", + "field-week-relative+0": "this week", + "field-month-relative+0": "this month", + "field-week-relative+1": "next week", + "field-month-relative+1": "next month", + "timeFormat-medium": "HH:mm:ss", + "field-second-relative+0": "now", + "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "days@localeAlias63": { + "bundle": "gregorian", + "target": "days" + }, + "dateFormatItem-yyyyQQQ": "G y QQQ", + "months-standAlone-narrow": [ "1", "2", "3", @@ -26,50 +74,123 @@ define({ root: "12", "13" ], - "quarters-standAlone-narrow": [ - "1", - "2", - "3", - "4" + "eraNames": [ + "ERA0", + "ERA1" ], - "field-weekday": "Day of the Week", - "quarters@localeAlias82": { + "dateFormatItem-GyMMMEd": "G y MMM d, E", + "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", + "field-day": "Day", + "field-year-relative+-1": "last year", + "dayPeriods-format-wide-am": "AM", + "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", + "field-wed-relative+-1": "last Wednesday", + "dateTimeFormat-medium": "{1} {0}", + "days-standAlone-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "field-second": "Second", + "dateFormatItem-Ehms": "E h:mm:ss a", + "dateFormat-long": "G y MMMM d", + "dateFormatItem-GyMMMd": "G y MMM d", + "quarters-standAlone-wide": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "quarters-standAlone-wide@localeAlias79": { "bundle": "gregorian", - "target": "quarters" + "target": "quarters-format-wide" }, - "days@localeAlias71": { + "days-format-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "days-format-narrow@localeAlias65": { "bundle": "gregorian", - "target": "days" + "target": "days-standAlone-narrow" }, - "dayPeriods-format-narrow@localeAlias90": { + "field-mon-relative+-1": "last Monday", + "dateFormatItem-GyMMM": "G y MMM", + "field-month": "Month", + "dateFormatItem-MMM": "LLL", + "days-standAlone-short@localeAlias70": { "bundle": "gregorian", - "target": "dayPeriods-format-abbr" + "target": "days-format-short" }, - "dateFormatItem-GyMMMEd": "G y MMM d, E", - "dateFormatItem-MMMEd": "MMM d, E", - "dayPeriods-format-narrow@localeAlias91": { + "field-dayperiod": "Dayperiod", + "days-standAlone-short@localeAlias71": { "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "target": "days-format-abbr" }, - "eraNarrow": [ + "months-standAlone-wide@localeAlias62": { + "bundle": "coptic", + "target": "months-format-wide" + }, + "days-standAlone-short@localeAlias72": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dayPeriods-format-narrow-pm": "p", + "dateFormat-medium": "G y MMM d", + "eraAbbr": [ "ERA0", "ERA1" ], - "dayPeriods-format-narrow@localeAlias93": { + "quarters-standAlone-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "dayPeriods-format-abbr-pm": "PM", + "dateFormatItem-yyyyM": "GGGGG y-MM", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "quarters@localeAlias74": { "bundle": "gregorian", - "target": "dayPeriods-format-abbr" + "target": "quarters" }, - "dayPeriods-format-narrow@localeAlias94": { + "days-format-short@localeAlias66": { "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "target": "days-format-abbr" }, - "timeFormat@localeAlias98": { + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "days-format-short@localeAlias67": { "bundle": "gregorian", - "target": "timeFormat" + "target": "days-format-wide" }, - "days-standAlone-short@localeAlias78": { + "dateFormatItem-yyyyMMMd": "G y MMM d", + "quarters-format-abbr@localeAlias75": { "bundle": "gregorian", - "target": "days-format-short" + "target": "quarters-format-wide" }, "days-format-short": [ "Sun", @@ -80,12 +201,26 @@ define({ root: "Fri", "Sat" ], - "days-standAlone-short@localeAlias79": { + "days-format-abbr@localeAlias64": { "bundle": "gregorian", - "target": "days-format-abbr" + "target": "days-format-wide" + }, + "quarters-format-narrow": [ + "1", + "2", + "3", + "4" + ], + "dayPeriods-format-wide-pm": "PM", + "field-sat-relative+-1": "last Saturday", + "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", + "dateTimeFormat-long": "{1} {0}", + "dateFormatItem-Md": "MM-dd", + "field-hour": "Hour", + "days-standAlone-wide@localeAlias73": { + "bundle": "gregorian", + "target": "days-format-wide" }, - "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", - "dateFormat-long": "G y MMMM d", "months-format-wide": [ "Tout", "Baba", @@ -101,20 +236,24 @@ define({ root: "Mesra", "Nasie" ], - "dateFormatItem-yyyyQQQ": "G y QQQ", - "dateTimeFormat-medium": "{1} {0}", - "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "G y MMMM d, EEEE", - "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", - "dateFormatItem-Md": "MM-dd", - "dayPeriods-format-abbr-am": "AM", - "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", - "days-format-abbr@localeAlias72": { + "field-month-relative+-1": "last month", + "dateFormatItem-Hms": "HH:mm:ss", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "dayPeriods-format-narrow-noon": "n", + "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", + "dayPeriods-format-abbr@localeAlias81": { "bundle": "gregorian", - "target": "days-format-wide" + "target": "dayPeriods-format-wide" }, - "field-era": "Era", - "months-standAlone-wide": [ + "field-week-relative+-1": "last week", + "dayPeriods-format-abbr@localeAlias82": { + "bundle": "gregorian", + "target": "dayPeriods-format-wide" + }, + "dateFormatItem-Ehm": "E h:mm a", + "months-format-abbr": [ "Tout", "Baba", "Hator", @@ -129,34 +268,27 @@ define({ root: "Mesra", "Nasie" ], - "timeFormat-short": "HH:mm", - "days-standAlone-short@localeAlias80": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "quarters-format-abbr@localeAlias83": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "days-format-short@localeAlias74": { - "bundle": "gregorian", - "target": "days-format-abbr" - }, - "quarters-format-wide": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], "timeFormat-long": "HH:mm:ss z", - "days-format-short@localeAlias75": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "field-year": "Year", + "dateFormat-short": "GGGGG y-MM-dd", + "days-standAlone-wide": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateFormatItem-yyyyMMMEd": "G y MMM d, E", "dateTimeFormats-appendItem-Era": "{1} {0}", - "field-hour": "Hour", - "months-format-abbr": [ + "dateFormat@localeAlias85": { + "bundle": "generic", + "target": "dateFormat" + }, + "dateFormatItem-H": "HH", + "dateFormatItem-yyyy": "G y", + "dateFormatItem-M": "L", + "months-standAlone-wide": [ "Tout", "Baba", "Hator", @@ -171,11 +303,27 @@ define({ root: "Mesra", "Nasie" ], - "timeFormat-full": "HH:mm:ss zzzz", - "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", - "dateFormatItem-GyMMMd": "G y MMM d", + "field-sun-relative+-1": "last Sunday", + "days-standAlone-abbr": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateTimeFormat-full": "{1} {0}", + "dateFormatItem-hm": "h:mm a", + "eraNarrow@localeAlias84": { + "bundle": "coptic", + "target": "eraAbbr" + }, + "dateFormatItem-d": "d", + "field-weekday": "Day of the Week", + "field-sat-relative+0": "this Saturday", + "dateFormatItem-h": "h a", + "field-sat-relative+1": "next Saturday", "months-standAlone-abbr": [ "Tout", "Baba", @@ -191,43 +339,41 @@ define({ root: "Mesra", "Nasie" ], - "dateFormatItem-H": "HH", - "quarters-format-abbr": [ - "Q1", - "Q2", - "Q3", - "Q4" + "eraNames@localeAlias83": { + "bundle": "coptic", + "target": "eraAbbr" + }, + "timeFormat-full": "HH:mm:ss zzzz", + "dateFormatItem-MEd": "MM-dd, E", + "dateFormatItem-y": "G y", + "field-thu-relative+0": "this Thursday", + "field-thu-relative+1": "next Thursday", + "dateFormatItem-hms": "h:mm:ss a", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "dateTime@localeAlias87": { + "bundle": "generic", + "target": "dateTime" + }, + "dayPeriods-format-abbr-noon": "noon", + "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", + "field-thu-relative+-1": "last Thursday", + "field-week": "Week", + "quarters-standAlone-narrow": [ + "1", + "2", + "3", + "4" ], - "quarters-standAlone-wide": [ + "quarters-format-wide": [ "Q1", "Q2", "Q3", "Q4" ], - "quarters-standAlone-abbr@localeAlias85": { - "bundle": "gregorian", - "target": "quarters-format-abbr" - }, - "dateFormatItem-Gy": "G y", - "quarters-standAlone-abbr@localeAlias86": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "dateFormatItem-yyyyMMMEd": "G y MMM d, E", - "eraNarrow@localeAlias96": { - "bundle": "coptic", - "target": "eraAbbr" - }, - "dateFormatItem-M": "L", - "dateFormat@localeAlias97": { - "bundle": "generic", - "target": "dateFormat" - }, - "dayPeriods@localeAlias88": { - "bundle": "gregorian", - "target": "dayPeriods" - }, - "days-standAlone-wide": [ + "dateFormatItem-Ed": "d, E", + "dateFormatItem-yyyyMMM": "G y MMM", + "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", + "days-standAlone-short": [ "Sun", "Mon", "Tue", @@ -236,55 +382,29 @@ define({ root: "Fri", "Sat" ], - "dateFormatItem-yyyyMMM": "G y MMM", - "dateFormatItem-yyyyMMMd": "G y MMM d", - "quarters-format-narrow@localeAlias84": { + "dateFormatItem-yyyyQQQQ": "G y QQQQ", + "timeFormat@localeAlias86": { "bundle": "gregorian", - "target": "quarters-standAlone-narrow" + "target": "timeFormat" }, - "timeFormat-medium": "HH:mm:ss", - "quarters-standAlone-abbr": [ + "months-format-narrow@localeAlias59": { + "bundle": "coptic", + "target": "months-standAlone-narrow" + }, + "quarters-format-abbr": [ "Q1", "Q2", "Q3", "Q4" ], - "dateFormatItem-Hm": "HH:mm", - "eraAbbr": [ + "field-year-relative+0": "this year", + "field-year-relative+1": "next year", + "field-fri-relative+-1": "last Friday", + "eraNarrow": [ "ERA0", "ERA1" ], - "field-minute": "Minute", - "field-dayperiod": "Dayperiod", - "days-standAlone-abbr": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" - ], - "dateFormatItem-d": "d", - "dateFormatItem-ms": "mm:ss", - "quarters-format-narrow": [ - "1", - "2", - "3", - "4" - ], - "field-day-relative+-1": "Yesterday", - "dayPeriods-format-narrow-am": "AM", - "dateTimeFormat-long": "{1} {0}", - "dateFormatItem-h": "h a", - "dateFormatItem-MMMd": "MMM d", - "dateFormatItem-MEd": "MM-dd, E", - "dateTimeFormat-full": "{1} {0}", - "dateTime@localeAlias99": { - "bundle": "generic", - "target": "dateTime" - }, - "field-day": "Day", + "dayPeriods-format-wide-noon": "noon", "days-format-wide": [ "Sun", "Mon", @@ -294,40 +414,20 @@ define({ root: "Fri", "Sat" ], - "field-zone": "Zone", - "months-standAlone-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], - "dateFormatItem-y": "G y", - "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", - "months-standAlone-wide@localeAlias70": { - "bundle": "coptic", - "target": "months-format-wide" - }, - "months-format-abbr@localeAlias66": { + "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", + "months-format-abbr@localeAlias58": { "bundle": "coptic", "target": "months-format-wide" }, - "days-format-narrow@localeAlias73": { + "dateFormatItem-EHm": "E HH:mm", + "field-zone": "Zone", + "dateFormatItem-MMMEd": "MMM d, E", + "dateFormatItem-EHms": "E HH:mm:ss", + "quarters-format-narrow@localeAlias76": { "bundle": "gregorian", - "target": "days-standAlone-narrow" + "target": "quarters-standAlone-narrow" }, - "dateFormatItem-hm": "h:mm a", - "dateTimeFormats-appendItem-Year": "{1} {0}", - "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", - "dayPeriods-format-abbr-pm": "PM", + "field-day-relative+-1": "yesterday", "days-format-abbr": [ "Sun", "Mon", @@ -337,89 +437,11 @@ define({ root: "Fri", "Sat" ], - "eraNames": [ - "ERA0", - "ERA1" - ], - "days-format-narrow": [ - "S", - "M", - "T", - "W", - "T", - "F", - "S" - ], - "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", - "days-standAlone-narrow": [ - "S", - "M", - "T", - "W", - "T", - "F", - "S" - ], - "dateFormatItem-MMM": "LLL", - "field-month": "Month", - "eraNames@localeAlias95": { - "bundle": "coptic", - "target": "eraAbbr" - }, - "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", - "dayPeriods-format-wide-am": "AM", - "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", + "field-sun-relative+0": "this Sunday", + "field-sun-relative+1": "next Sunday", "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", - "days-standAlone-wide@localeAlias81": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "dateFormat-short": "GGGGG y-MM-dd", - "months-standAlone-abbr@localeAlias68": { - "bundle": "coptic", - "target": "months-format-abbr" - }, - "months-standAlone-abbr@localeAlias69": { - "bundle": "coptic", - "target": "months-format-wide" - }, - "dayPeriods-format-abbr@localeAlias89": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" - }, - "field-second": "Second", - "months-format-narrow@localeAlias67": { - "bundle": "coptic", - "target": "months-standAlone-narrow" - }, - "dateFormatItem-Ed": "d, E", - "dateTimeFormats-appendItem-Timezone": "{0} {1}", - "field-week": "Week", - "dateFormat-medium": "G y MMM d", - "days-standAlone-abbr@localeAlias76": { - "bundle": "gregorian", - "target": "days-format-abbr" - }, - "days-standAlone-abbr@localeAlias77": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "dateFormatItem-yyyyM": "GGGGG y-MM", - "dayPeriods-format-narrow-pm": "PM", - "dateFormatItem-yyyyQQQQ": "G y QQQQ", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Hms": "HH:mm:ss", - "dateFormatItem-hms": "h:mm:ss a", - "dateFormatItem-GyMMM": "G y MMM", - "quarters-standAlone-wide@localeAlias87": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "dayPeriods-format-abbr@localeAlias92": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" - }, - "dateFormatItem-yyyy": "G y" + "dateFormatItem-Gy": "G y", + "field-era": "Era" } //end v1.x content , @@ -427,6 +449,8 @@ define({ root: "fr": true, "hu": true, "ja": true, + "ko": true, + "nl": true, "pl": true, "pt": true, "ro": true, diff --git a/cldr/nls/cs/buddhist.js b/cldr/nls/cs/buddhist.js index 8bdace5997..a8482f6221 100644 --- a/cldr/nls/cs/buddhist.js +++ b/cldr/nls/cs/buddhist.js @@ -2,17 +2,21 @@ define( //begin v1.x content { "days-standAlone-short": [ - "Ne", - "Po", - "Út", - "St", - "Čt", - "Pá", - "So" + "ne", + "po", + "út", + "st", + "čt", + "pá", + "so" ], + "field-second-relative+0": "nyní", "field-weekday": "Den v týdnu", - "dateFormatItem-GyMMMEd": "E, d. M. y G", - "dateFormatItem-MMMEd": "E, d. M.", + "field-wed-relative+0": "tuto středu", + "field-wed-relative+1": "příští středu", + "dateFormatItem-GyMMMEd": "E d. M. y G", + "dateFormatItem-MMMEd": "E d. M.", + "field-tue-relative+-1": "minulé úterý", "days-format-short": [ "ne", "po", @@ -23,6 +27,8 @@ define( "so" ], "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "minulý pátek", + "field-wed-relative+-1": "minulou středu", "months-format-wide": [ "ledna", "února", @@ -38,9 +44,9 @@ define( "prosince" ], "dateFormatItem-yyyyQQQ": "QQQ y G", - "dayPeriods-format-wide-pm": "odp.", - "dateFormat-full": "EEEE, d. MMMM y G", - "dateFormatItem-yyyyMEd": "E, d. M. y GGGGG", + "dateFormat-full": "EEEE d. MMMM y G", + "dateFormatItem-yyyyMEd": "E d. M. y GGGGG", + "field-thu-relative+-1": "minulý čtvrtek", "dateFormatItem-Md": "d. M.", "field-era": "Letopočet", "months-standAlone-wide": [ @@ -81,11 +87,15 @@ define( "lis", "pro" ], + "field-sat-relative+0": "tuto sobotu", + "field-sat-relative+1": "příští sobotu", "timeFormat-full": "H:mm:ss zzzz", - "field-day-relative+0": "Dnes", - "field-day-relative+1": "Zítra", + "field-day-relative+0": "dnes", + "field-thu-relative+0": "tento čtvrtek", + "field-day-relative+1": "zítra", + "field-thu-relative+1": "příští čtvrtek", "dateFormatItem-GyMMMd": "d. M. y G", - "field-day-relative+2": "Pozítří", + "field-day-relative+2": "pozítří", "dateFormatItem-H": "H", "months-standAlone-abbr": [ "led", @@ -108,7 +118,7 @@ define( "4. čtvrtletí" ], "dateFormatItem-Gy": "y G", - "dateFormatItem-yyyyMMMEd": "E, d. M. y G", + "dateFormatItem-yyyyMMMEd": "E d. M. y G", "days-standAlone-wide": [ "neděle", "pondělí", @@ -121,7 +131,9 @@ define( "dateFormatItem-yyyyMMM": "LLLL y G", "dateFormatItem-yyyyMMMd": "d. M. y G", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "tuto neděli", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "příští neděli", "eraAbbr": [ "BE" ], @@ -137,11 +149,13 @@ define( "so" ], "dateFormatItem-d": "d.", - "field-day-relative+-1": "Včera", - "dayPeriods-format-narrow-am": "dop.", - "field-day-relative+-2": "Předevčírem", + "field-day-relative+-1": "včera", + "dayPeriods-format-narrow-am": "AM", + "field-day-relative+-2": "předevčírem", "dateFormatItem-MMMd": "d. M.", - "dateFormatItem-MEd": "E, d. M.", + "dateFormatItem-MEd": "E d. M.", + "field-fri-relative+0": "tento pátek", + "field-fri-relative+1": "příští pátek", "field-day": "Den", "days-format-wide": [ "neděle", @@ -168,8 +182,8 @@ define( "l", "p" ], - "field-year-relative+-1": "Minulý rok", - "field-month-relative+-1": "Minulý měsíc", + "field-year-relative+-1": "minulý rok", + "field-month-relative+-1": "minulý měsíc", "days-format-abbr": [ "ne", "po", @@ -199,25 +213,31 @@ define( "P", "S" ], - "dayPeriods-format-wide-am": "dop.", + "field-tue-relative+0": "toto úterý", + "field-tue-relative+1": "příští úterý", + "field-mon-relative+0": "toto pondělí", + "field-mon-relative+1": "příští pondělí", "dateFormat-short": "dd.MM.yy GGGGG", "field-second": "Sekunda", - "field-month-relative+0": "Tento měsíc", - "field-month-relative+1": "Příští měsíc", - "dateFormatItem-Ed": "E, d.", + "field-sat-relative+-1": "minulou sobotu", + "field-sun-relative+-1": "minulou neděli", + "field-month-relative+0": "tento měsíc", + "field-month-relative+1": "příští měsíc", + "dateFormatItem-Ed": "E d.", "field-week": "Týden", "dateFormat-medium": "d. M. y G", - "field-year-relative+0": "Tento rok", - "field-week-relative+-1": "Minulý týden", + "field-year-relative+0": "tento rok", + "field-week-relative+-1": "minulý týden", "dateFormatItem-yyyyM": "M/y GGGGG", - "field-year-relative+1": "Příští rok", - "dayPeriods-format-narrow-pm": "odp.", + "field-year-relative+1": "příští rok", + "dayPeriods-format-narrow-pm": "PM", "dateFormatItem-yyyyQQQQ": "QQQQ y G", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-GyMMM": "LLLL y G", + "field-mon-relative+-1": "minulé pondělí", "dateFormatItem-yyyy": "y G", - "field-week-relative+0": "Tento týden", - "field-week-relative+1": "Příští týden" + "field-week-relative+0": "tento týden", + "field-week-relative+1": "příští týden" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/cs/chinese.js b/cldr/nls/cs/chinese.js index 9ee1cf5d05..2d22b04bc7 100644 --- a/cldr/nls/cs/chinese.js +++ b/cldr/nls/cs/chinese.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "dateFormat-medium": "d. M. y", - "field-second": "Sekunda", - "field-year-relative+-1": "Minulý rok", - "field-week": "Týden", - "field-month-relative+-1": "Minulý měsíc", - "field-day-relative+-1": "Včera", - "field-day-relative+-2": "Předevčírem", - "field-year": "Rok", - "field-week-relative+0": "Tento týden", - "field-week-relative+1": "Příští týden", + "field-sat-relative+0": "tuto sobotu", + "field-sat-relative+1": "příští sobotu", + "field-dayperiod": "AM/PM", + "field-sun-relative+-1": "minulou neděli", + "field-mon-relative+-1": "minulé pondělí", "field-minute": "Minuta", - "field-week-relative+-1": "Minulý týden", - "field-day-relative+0": "Dnes", + "field-day-relative+-1": "včera", + "field-weekday": "Den v týdnu", + "field-day-relative+-2": "předevčírem", + "field-era": "Letopočet", "field-hour": "Hodina", - "field-day-relative+1": "Zítra", + "field-sun-relative+0": "tuto neděli", + "field-sun-relative+1": "příští neděli", + "field-wed-relative+-1": "minulou středu", + "field-day-relative+0": "dnes", + "field-day-relative+1": "zítra", + "field-day-relative+2": "pozítří", "dateFormat-long": "d. M. y", - "field-day-relative+2": "Pozítří", - "field-day": "Den", - "field-month-relative+0": "Tento měsíc", - "field-month-relative+1": "Příští měsíc", - "field-dayperiod": "AM/PM", + "field-tue-relative+0": "toto úterý", + "field-zone": "Časové pásmo", + "field-tue-relative+1": "příští úterý", + "field-week-relative+-1": "minulý týden", + "dateFormat-medium": "d. M. y", + "field-year-relative+0": "tento rok", + "field-year-relative+1": "příští rok", + "field-sat-relative+-1": "minulou sobotu", + "field-year-relative+-1": "minulý rok", + "field-year": "Rok", + "field-fri-relative+0": "tento pátek", + "field-fri-relative+1": "příští pátek", + "field-week": "Týden", + "field-week-relative+0": "tento týden", + "field-week-relative+1": "příští týden", + "field-month-relative+0": "tento měsíc", "field-month": "Měsíc", + "field-month-relative+1": "příští měsíc", + "field-fri-relative+-1": "minulý pátek", + "field-second": "Sekunda", + "field-tue-relative+-1": "minulé úterý", + "field-day": "Den", + "field-mon-relative+0": "toto pondělí", + "field-mon-relative+1": "příští pondělí", + "field-thu-relative+0": "tento čtvrtek", + "field-second-relative+0": "nyní", "dateFormat-short": "d. M. y", - "field-era": "Letopočet", - "field-year-relative+0": "Tento rok", - "field-year-relative+1": "Příští rok", + "field-thu-relative+1": "příští čtvrtek", "dateFormat-full": "EEEE, d. M. y", - "field-weekday": "Den v týdnu", - "field-zone": "Časové pásmo" + "field-wed-relative+0": "tuto středu", + "field-wed-relative+1": "příští středu", + "field-month-relative+-1": "minulý měsíc", + "field-thu-relative+-1": "minulý čtvrtek" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/cs/generic.js b/cldr/nls/cs/generic.js index e39a4b7889..d71deaba07 100644 --- a/cldr/nls/cs/generic.js +++ b/cldr/nls/cs/generic.js @@ -1,69 +1,97 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E, d. M. y G", - "field-dayperiod": "AM/PM", - "field-minute": "Minuta", - "dateFormatItem-MMMEd": "E, d. M.", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "Včera", - "dateFormatItem-hms": "h:mm:ss a", - "field-day-relative+-2": "Předevčírem", + "dateFormatItem-yyyyMMMMEd": "E d. MMMM y G", + "field-second-relative+0": "nyní", "field-weekday": "Den v týdnu", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "y G", + "field-wed-relative+0": "tuto středu", + "dateFormatItem-GyMMMEd": "E d. M. y G", + "dateFormatItem-MMMEd": "E d. M.", + "field-wed-relative+1": "příští středu", + "field-tue-relative+-1": "minulé úterý", + "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "minulý pátek", + "field-wed-relative+-1": "minulou středu", + "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "EEEE d. MMMM y G", + "dateFormatItem-yyyyMEd": "E d. M. y GGGGG", + "field-thu-relative+-1": "minulý čtvrtek", + "dateFormatItem-Md": "d. M.", "field-era": "Letopočet", + "field-year": "Rok", + "dateFormatItem-yyyyMMMM": "LLLL y G", "field-hour": "Hodina", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E, d.", - "field-day-relative+0": "Dnes", - "field-day-relative+1": "Zítra", - "field-day-relative+2": "Pozítří", + "field-sat-relative+0": "tuto sobotu", + "field-sat-relative+1": "příští sobotu", + "field-day-relative+0": "dnes", + "field-day-relative+1": "zítra", + "field-thu-relative+0": "tento čtvrtek", "dateFormatItem-GyMMMd": "d. M. y G", - "dateFormatItem-yyyyMMMM": "LLLL y G", - "dateFormat-long": "d. MMMM y G", - "field-zone": "Časové pásmo", + "field-day-relative+2": "pozítří", + "field-thu-relative+1": "příští čtvrtek", + "dateFormatItem-H": "H", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d. M. y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "LLLL y G", + "dateFormatItem-yyyyMMMd": "d. M. y G", + "dateFormatItem-MMMMd": "d. MMMM", + "dateFormatItem-GyMMMMd": "d. MMMM y G", + "field-sun-relative+0": "tuto neděli", "dateFormatItem-Hm": "H:mm", - "field-week-relative+-1": "Minulý týden", - "dateFormat-medium": "d. M. y G", - "dateFormatItem-Hms": "H:mm:ss", - "field-year-relative+0": "Tento rok", - "field-year-relative+1": "Příští rok", - "field-year-relative+-1": "Minulý rok", + "field-sun-relative+1": "příští neděli", + "field-minute": "Minuta", + "field-dayperiod": "AM/PM", + "dateFormatItem-d": "d.", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "field-year": "Rok", + "field-day-relative+-1": "včera", + "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", - "field-week": "Týden", - "dateFormatItem-yyyyMd": "d. M. y GGGGG", - "dateFormatItem-yyyyMMMd": "d. M. y G", - "dateFormatItem-yyyyMEd": "E, d. M. y GGGGG", + "field-day-relative+-2": "předevčírem", "dateFormatItem-MMMd": "d. M.", - "field-week-relative+0": "Tento týden", - "field-week-relative+1": "Příští týden", - "field-month-relative+0": "Tento měsíc", - "dateFormatItem-H": "H", - "field-month": "Měsíc", - "field-month-relative+1": "Příští měsíc", - "dateFormatItem-M": "L", - "field-second": "Sekunda", - "dateFormatItem-GyMMMEd": "E, d. M. y G", - "dateFormatItem-GyMMM": "LLLL y G", + "dateFormatItem-MEd": "E d. M.", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "tento pátek", + "field-fri-relative+1": "příští pátek", "field-day": "Den", - "dateFormatItem-MEd": "E, d. M.", - "dateFormatItem-yyyyQQQ": "QQQ y G", + "field-zone": "Časové pásmo", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "minulý rok", + "field-month-relative+-1": "minulý měsíc", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMMMMd": "d. MMMM y G", + "dateFormatItem-yyyyMd": "d. M. y GGGGG", + "field-month": "Měsíc", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "toto úterý", + "field-tue-relative+1": "příští úterý", + "dateFormatItem-MMMMEd": "E d. MMMM", + "field-mon-relative+0": "toto pondělí", + "field-mon-relative+1": "příští pondělí", "dateFormat-short": "dd.MM.yy GGGGG", + "field-second": "Sekunda", + "field-sat-relative+-1": "minulou sobotu", + "field-sun-relative+-1": "minulou neděli", + "field-month-relative+0": "tento měsíc", + "field-month-relative+1": "příští měsíc", + "dateFormatItem-Ed": "E d.", + "field-week": "Týden", + "dateFormat-medium": "d. M. y G", + "field-year-relative+0": "tento rok", + "field-week-relative+-1": "minulý týden", "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormat-full": "EEEE, d. MMMM y G", - "dateFormatItem-Md": "d. M.", - "dateFormatItem-yyyyMMM": "LLLL y G", - "dateFormatItem-d": "d.", - "field-month-relative+-1": "Minulý měsíc", - "dateFormatItem-h": "h a" + "field-year-relative+1": "příští rok", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "H:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "LLLL y G", + "dateFormatItem-GyMMMMEd": "E d. MMMM y G", + "field-mon-relative+-1": "minulé pondělí", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "tento týden", + "field-week-relative+1": "příští týden" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/cs/gregorian.js b/cldr/nls/cs/gregorian.js index 0fa1f56993..4d9cb0f22b 100644 --- a/cldr/nls/cs/gregorian.js +++ b/cldr/nls/cs/gregorian.js @@ -1,14 +1,15 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ - "Ne", - "Po", - "Út", - "St", - "Čt", - "Pá", - "So" + "ne", + "po", + "út", + "st", + "čt", + "pá", + "so" ], "months-format-narrow": [ "1", @@ -24,6 +25,7 @@ define( "11", "12" ], + "field-second-relative+0": "nyní", "quarters-standAlone-narrow": [ "1", "2", @@ -32,13 +34,16 @@ define( ], "field-weekday": "Den v týdnu", "dateFormatItem-yQQQ": "QQQ y", - "dateFormatItem-yMEd": "E, d. M. y", - "dateFormatItem-GyMMMEd": "E, d. M. y G", - "dateFormatItem-MMMEd": "E, d. M.", + "dateFormatItem-yMEd": "E d. M. y", + "field-wed-relative+0": "tuto středu", + "dateFormatItem-GyMMMEd": "E d. M. y G", + "dateFormatItem-MMMEd": "E d. M.", + "field-wed-relative+1": "příští středu", "eraNarrow": [ "př.n.l.", - "n. l." + "n.l." ], + "field-tue-relative+-1": "minulé úterý", "days-format-short": [ "ne", "po", @@ -49,6 +54,8 @@ define( "so" ], "dateFormat-long": "d. MMMM y", + "field-fri-relative+-1": "minulý pátek", + "field-wed-relative+-1": "minulou středu", "months-format-wide": [ "ledna", "února", @@ -64,12 +71,14 @@ define( "prosince" ], "dateTimeFormat-medium": "{1} {0}", - "dayPeriods-format-wide-pm": "odp.", - "dateFormat-full": "EEEE, d. MMMM y", + "dateFormatItem-yMMMMd": "d. MMMM y", + "dayPeriods-format-wide-pm": "PM", + "dateFormat-full": "EEEE d. MMMM y", + "field-thu-relative+-1": "minulý čtvrtek", "dateFormatItem-Md": "d. M.", "dateFormatItem-yMd": "d. M. y", - "field-era": "Letopočet", "dateFormatItem-yM": "M/y", + "field-era": "Letopočet", "months-standAlone-wide": [ "leden", "únor", @@ -91,10 +100,10 @@ define( "3. čtvrtletí", "4. čtvrtletí" ], - "dateFormatItem-yQQQQ": "QQQQ y", "timeFormat-long": "H:mm:ss z", - "field-year": "Rok", "dateFormatItem-yMMM": "LLLL y", + "dateFormatItem-yQQQQ": "QQQQ y", + "field-year": "Rok", "field-hour": "Hodina", "months-format-abbr": [ "led", @@ -110,11 +119,15 @@ define( "lis", "pro" ], + "field-sat-relative+0": "tuto sobotu", + "field-sat-relative+1": "příští sobotu", "timeFormat-full": "H:mm:ss zzzz", - "field-day-relative+0": "Dnes", - "field-day-relative+1": "Zítra", + "field-day-relative+0": "dnes", + "field-day-relative+1": "zítra", + "field-thu-relative+0": "tento čtvrtek", "dateFormatItem-GyMMMd": "d. M. y G", - "field-day-relative+2": "Pozítří", + "field-day-relative+2": "pozítří", + "field-thu-relative+1": "příští čtvrtek", "dateFormatItem-H": "H", "months-standAlone-abbr": [ "led", @@ -153,7 +166,10 @@ define( "pátek", "sobota" ], + "dateFormatItem-MMMMd": "d. MMMM", + "dateFormatItem-GyMMMMd": "d. MMMM y G", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "tuto neděli", "dateFormatItem-Hm": "H:mm", "quarters-standAlone-abbr": [ "Q1", @@ -161,6 +177,7 @@ define( "Q3", "Q4" ], + "field-sun-relative+1": "příští neděli", "eraAbbr": [ "př. n. l.", "n. l." @@ -184,15 +201,17 @@ define( "3", "4" ], - "field-day-relative+-1": "Včera", + "field-day-relative+-1": "včera", "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", - "dayPeriods-format-narrow-am": "dop.", - "field-day-relative+-2": "Předevčírem", + "dayPeriods-format-narrow-am": "AM", + "field-day-relative+-2": "předevčírem", "dateFormatItem-MMMd": "d. M.", - "dateFormatItem-MEd": "E, d. M.", + "dateFormatItem-MEd": "E d. M.", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "tento pátek", "dateFormatItem-yMMMM": "LLLL y", + "field-fri-relative+1": "příští pátek", "field-day": "Den", "days-format-wide": [ "neděle", @@ -219,8 +238,8 @@ define( "l", "p" ], - "field-year-relative+-1": "Minulý rok", - "field-month-relative+-1": "Minulý měsíc", + "field-year-relative+-1": "minulý rok", + "field-month-relative+-1": "minulý měsíc", "dateFormatItem-hm": "h:mm a", "days-format-abbr": [ "ne", @@ -231,11 +250,11 @@ define( "pá", "so" ], - "dateFormatItem-yMMMd": "d. M. y", "eraNames": [ "př. n. l.", "n. l." ], + "dateFormatItem-yMMMd": "d. M. y", "days-format-narrow": [ "N", "P", @@ -256,25 +275,39 @@ define( ], "dateFormatItem-MMM": "LLL", "field-month": "Měsíc", - "dayPeriods-format-wide-am": "dop.", + "field-tue-relative+0": "toto úterý", + "field-tue-relative+1": "příští úterý", + "dayPeriods-format-wide-am": "AM", + "dateFormatItem-MMMMEd": "E d. MMMM", + "dateFormatItem-EHm": "E H:mm", + "field-mon-relative+0": "toto pondělí", + "field-mon-relative+1": "příští pondělí", "dateFormat-short": "dd.MM.yy", + "dateFormatItem-EHms": "E H:mm:ss", + "dateFormatItem-yMMMMEd": "E d. MMMM y", + "dateFormatItem-Ehms": "E h:mm:ss a", "field-second": "Sekunda", - "dateFormatItem-yMMMEd": "E, d. M. y", - "field-month-relative+0": "Tento měsíc", - "field-month-relative+1": "Příští měsíc", - "dateFormatItem-Ed": "E, d.", + "field-sat-relative+-1": "minulou sobotu", + "dateFormatItem-yMMMEd": "E d. M. y", + "field-sun-relative+-1": "minulou neděli", + "field-month-relative+0": "tento měsíc", + "field-month-relative+1": "příští měsíc", + "dateFormatItem-Ed": "E d.", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "Týden", "dateFormat-medium": "d. M. y", - "field-year-relative+0": "Tento rok", - "field-week-relative+-1": "Minulý týden", - "field-year-relative+1": "Příští rok", - "dayPeriods-format-narrow-pm": "odp.", + "field-year-relative+0": "tento rok", + "field-week-relative+-1": "minulý týden", + "field-year-relative+1": "příští rok", + "dayPeriods-format-narrow-pm": "PM", "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "LLLL y G", - "field-week-relative+0": "Tento týden", - "field-week-relative+1": "Příští týden" + "dateFormatItem-GyMMMMEd": "E d. MMMM y G", + "field-mon-relative+-1": "minulé pondělí", + "field-week-relative+0": "tento týden", + "field-week-relative+1": "příští týden" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/cs/hebrew.js b/cldr/nls/cs/hebrew.js index d1b284bac3..b84d3b8c89 100644 --- a/cldr/nls/cs/hebrew.js +++ b/cldr/nls/cs/hebrew.js @@ -1,14 +1,68 @@ define( //begin v1.x content { - "field-dayperiod": "AM/PM", - "dateFormatItem-yyyyMMMEd": "E, d. M. y G", - "dayPeriods-format-wide-pm": "odp.", - "field-minute": "Minuta", - "dateFormatItem-MMMEd": "E, d. M.", - "field-day-relative+-1": "Včera", + "days-standAlone-short": [ + "ne", + "po", + "út", + "st", + "čt", + "pá", + "so" + ], + "field-second-relative+0": "nyní", "field-weekday": "Den v týdnu", - "field-day-relative+-2": "Předevčírem", + "field-wed-relative+0": "tuto středu", + "field-wed-relative+1": "příští středu", + "dateFormatItem-GyMMMEd": "E d. M. y G", + "dateFormatItem-MMMEd": "E d. M.", + "field-tue-relative+-1": "minulé úterý", + "days-format-short": [ + "ne", + "po", + "út", + "st", + "čt", + "pá", + "so" + ], + "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "minulý pátek", + "field-wed-relative+-1": "minulou středu", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateFormat-full": "EEEE d. MMMM y G", + "dateFormatItem-yyyyMEd": "E d. M. y GGGGG", + "field-thu-relative+-1": "minulý čtvrtek", + "dateFormatItem-Md": "d. M.", + "field-era": "Letopočet", + "timeFormat-short": "H:mm", + "quarters-format-wide": [ + "1. čtvrtletí", + "2. čtvrtletí", + "3. čtvrtletí", + "4. čtvrtletí" + ], + "timeFormat-long": "H:mm:ss z", + "field-year": "Rok", + "field-hour": "Hodina", + "field-sat-relative+0": "tuto sobotu", + "field-sat-relative+1": "příští sobotu", + "timeFormat-full": "H:mm:ss zzzz", + "field-day-relative+0": "dnes", + "field-thu-relative+0": "tento čtvrtek", + "field-day-relative+1": "zítra", + "field-thu-relative+1": "příští čtvrtek", + "dateFormatItem-GyMMMd": "d. M. y G", + "field-day-relative+2": "pozítří", + "dateFormatItem-H": "H", + "quarters-standAlone-wide": [ + "1. čtvrtletí", + "2. čtvrtletí", + "3. čtvrtletí", + "4. čtvrtletí" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d. M. y G", "days-standAlone-wide": [ "neděle", "pondělí", @@ -18,63 +72,48 @@ define( "pátek", "sobota" ], - "field-era": "Letopočet", - "dateFormatItem-Gy": "y G", - "field-hour": "Hodina", - "dayPeriods-format-wide-am": "dop.", - "dateFormatItem-y": "y G", - "timeFormat-full": "H:mm:ss zzzz", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E, d.", - "field-day-relative+0": "Dnes", - "field-day-relative+1": "Zítra", - "days-standAlone-narrow": [ - "N", - "P", - "Ú", - "S", - "Č", - "P", - "S" - ], + "dateFormatItem-yyyyMMM": "LLLL y G", + "dateFormatItem-yyyyMMMd": "d. M. y G", + "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "tuto neděli", + "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "příští neděli", "eraAbbr": [ "AM" ], - "field-day-relative+2": "Pozítří", - "dateFormatItem-GyMMMd": "d. M. y G", - "dateFormat-long": "d. MMMM y G", - "timeFormat-medium": "H:mm:ss", - "field-zone": "Časové pásmo", - "dateFormatItem-Hm": "H:mm", - "field-week-relative+-1": "Minulý týden", - "dateFormat-medium": "d. M. y G", - "dateFormatItem-Hms": "H:mm:ss", - "dayPeriods-format-narrow-pm": "odp.", - "field-year-relative+0": "Tento rok", - "field-year-relative+1": "Příští rok", - "quarters-standAlone-wide": [ - "1. čtvrtletí", - "2. čtvrtletí", - "3. čtvrtletí", - "4. čtvrtletí" + "field-minute": "Minuta", + "field-dayperiod": "AM/PM", + "days-standAlone-abbr": [ + "ne", + "po", + "út", + "st", + "čt", + "pá", + "so" ], - "field-year-relative+-1": "Minulý rok", - "field-year": "Rok", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "dayPeriods-format-narrow-am": "dop.", - "field-week": "Týden", - "dateFormatItem-yyyyMd": "d. M. y GGGGG", - "dateFormatItem-yyyyMMMd": "d. M. y G", - "dateFormatItem-yyyyMEd": "E, d. M. y GGGGG", + "dateFormatItem-d": "d.", + "field-day-relative+-1": "včera", + "dayPeriods-format-narrow-am": "AM", + "field-day-relative+-2": "předevčírem", "dateFormatItem-MMMd": "d. M.", - "field-week-relative+0": "Tento týden", - "field-week-relative+1": "Příští týden", - "timeFormat-long": "H:mm:ss z", - "field-month-relative+0": "Tento měsíc", - "field-month": "Měsíc", - "field-month-relative+1": "Příští měsíc", - "dateFormatItem-H": "H", - "timeFormat-short": "H:mm", + "dateFormatItem-MEd": "E d. M.", + "field-fri-relative+0": "tento pátek", + "field-fri-relative+1": "příští pátek", + "field-day": "Den", + "days-format-wide": [ + "neděle", + "pondělí", + "úterý", + "středa", + "čtvrtek", + "pátek", + "sobota" + ], + "field-zone": "Časové pásmo", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "minulý rok", + "field-month-relative+-1": "minulý měsíc", "days-format-abbr": [ "ne", "po", @@ -93,61 +132,42 @@ define( "P", "S" ], - "field-second": "Sekunda", - "dateFormatItem-GyMMMEd": "E, d. M. y G", - "dateFormatItem-GyMMM": "LLLL y G", - "field-day": "Den", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E, d. M.", - "days-standAlone-short": [ - "Ne", - "Po", - "Út", - "St", - "Čt", - "Pá", - "So" - ], - "days-standAlone-abbr": [ - "ne", - "po", - "út", - "st", - "čt", - "pá", - "so" + "dateFormatItem-yyyyMd": "d. M. y GGGGG", + "field-month": "Měsíc", + "days-standAlone-narrow": [ + "N", + "P", + "Ú", + "S", + "Č", + "P", + "S" ], + "field-tue-relative+0": "toto úterý", + "field-tue-relative+1": "příští úterý", + "field-mon-relative+0": "toto pondělí", + "field-mon-relative+1": "příští pondělí", "dateFormat-short": "dd.MM.yy GGGGG", + "field-second": "Sekunda", + "field-sat-relative+-1": "minulou sobotu", + "field-sun-relative+-1": "minulou neděli", + "field-month-relative+0": "tento měsíc", + "field-month-relative+1": "příští měsíc", + "dateFormatItem-Ed": "E d.", + "field-week": "Týden", + "dateFormat-medium": "d. M. y G", + "field-year-relative+0": "tento rok", + "field-week-relative+-1": "minulý týden", "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormatItem-Md": "d. M.", - "dateFormat-full": "EEEE, d. MMMM y G", - "days-format-short": [ - "ne", - "po", - "út", - "st", - "čt", - "pá", - "so" - ], - "dateFormatItem-yyyyMMM": "LLLL y G", - "dateFormatItem-d": "d.", - "field-month-relative+-1": "Minulý měsíc", - "quarters-format-wide": [ - "1. čtvrtletí", - "2. čtvrtletí", - "3. čtvrtletí", - "4. čtvrtletí" - ], - "days-format-wide": [ - "neděle", - "pondělí", - "úterý", - "středa", - "čtvrtek", - "pátek", - "sobota" - ] + "field-year-relative+1": "příští rok", + "dayPeriods-format-narrow-pm": "PM", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-Hms": "H:mm:ss", + "dateFormatItem-GyMMM": "LLLL y G", + "field-mon-relative+-1": "minulé pondělí", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "tento týden", + "field-week-relative+1": "příští týden" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/cs/islamic.js b/cldr/nls/cs/islamic.js index cbdc2ea1bf..d9c36a0012 100644 --- a/cldr/nls/cs/islamic.js +++ b/cldr/nls/cs/islamic.js @@ -1,14 +1,68 @@ define( //begin v1.x content { - "field-dayperiod": "AM/PM", - "dateFormatItem-yyyyMMMEd": "E, d. M. y G", - "dayPeriods-format-wide-pm": "odp.", - "field-minute": "Minuta", - "dateFormatItem-MMMEd": "E, d. M.", - "field-day-relative+-1": "Včera", + "days-standAlone-short": [ + "ne", + "po", + "út", + "st", + "čt", + "pá", + "so" + ], + "field-second-relative+0": "nyní", "field-weekday": "Den v týdnu", - "field-day-relative+-2": "Předevčírem", + "field-wed-relative+0": "tuto středu", + "field-wed-relative+1": "příští středu", + "dateFormatItem-GyMMMEd": "E d. M. y G", + "dateFormatItem-MMMEd": "E d. M.", + "field-tue-relative+-1": "minulé úterý", + "days-format-short": [ + "ne", + "po", + "út", + "st", + "čt", + "pá", + "so" + ], + "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "minulý pátek", + "field-wed-relative+-1": "minulou středu", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateFormat-full": "EEEE d. MMMM y G", + "dateFormatItem-yyyyMEd": "E d. M. y GGGGG", + "field-thu-relative+-1": "minulý čtvrtek", + "dateFormatItem-Md": "d. M.", + "field-era": "Letopočet", + "timeFormat-short": "H:mm", + "quarters-format-wide": [ + "1. čtvrtletí", + "2. čtvrtletí", + "3. čtvrtletí", + "4. čtvrtletí" + ], + "timeFormat-long": "H:mm:ss z", + "field-year": "Rok", + "field-hour": "Hodina", + "field-sat-relative+0": "tuto sobotu", + "field-sat-relative+1": "příští sobotu", + "timeFormat-full": "H:mm:ss zzzz", + "field-day-relative+0": "dnes", + "field-thu-relative+0": "tento čtvrtek", + "field-day-relative+1": "zítra", + "field-thu-relative+1": "příští čtvrtek", + "dateFormatItem-GyMMMd": "d. M. y G", + "field-day-relative+2": "pozítří", + "dateFormatItem-H": "H", + "quarters-standAlone-wide": [ + "1. čtvrtletí", + "2. čtvrtletí", + "3. čtvrtletí", + "4. čtvrtletí" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d. M. y G", "days-standAlone-wide": [ "neděle", "pondělí", @@ -18,63 +72,48 @@ define( "pátek", "sobota" ], - "field-era": "Letopočet", - "dateFormatItem-Gy": "y G", - "field-hour": "Hodina", - "dayPeriods-format-wide-am": "dop.", - "dateFormatItem-y": "y G", - "timeFormat-full": "H:mm:ss zzzz", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E, d.", - "field-day-relative+0": "Dnes", - "field-day-relative+1": "Zítra", - "days-standAlone-narrow": [ - "N", - "P", - "Ú", - "S", - "Č", - "P", - "S" - ], + "dateFormatItem-yyyyMMM": "LLLL y G", + "dateFormatItem-yyyyMMMd": "d. M. y G", + "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "tuto neděli", + "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "příští neděli", "eraAbbr": [ "AH" ], - "field-day-relative+2": "Pozítří", - "dateFormatItem-GyMMMd": "d. M. y G", - "dateFormat-long": "d. MMMM y G", - "timeFormat-medium": "H:mm:ss", - "field-zone": "Časové pásmo", - "dateFormatItem-Hm": "H:mm", - "field-week-relative+-1": "Minulý týden", - "dateFormat-medium": "d. M. y G", - "dateFormatItem-Hms": "H:mm:ss", - "dayPeriods-format-narrow-pm": "odp.", - "field-year-relative+0": "Tento rok", - "field-year-relative+1": "Příští rok", - "quarters-standAlone-wide": [ - "1. čtvrtletí", - "2. čtvrtletí", - "3. čtvrtletí", - "4. čtvrtletí" + "field-minute": "Minuta", + "field-dayperiod": "AM/PM", + "days-standAlone-abbr": [ + "ne", + "po", + "út", + "st", + "čt", + "pá", + "so" ], - "field-year-relative+-1": "Minulý rok", - "field-year": "Rok", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "dayPeriods-format-narrow-am": "dop.", - "field-week": "Týden", - "dateFormatItem-yyyyMMMd": "d. M. y G", - "dateFormatItem-yyyyMd": "d. M. y GGGGG", - "dateFormatItem-yyyyMEd": "E, d. M. y GGGGG", - "field-week-relative+0": "Tento týden", + "dateFormatItem-d": "d.", + "field-day-relative+-1": "včera", + "dayPeriods-format-narrow-am": "AM", + "field-day-relative+-2": "předevčírem", "dateFormatItem-MMMd": "d. M.", - "field-week-relative+1": "Příští týden", - "timeFormat-long": "H:mm:ss z", - "field-month-relative+0": "Tento měsíc", - "field-month": "Měsíc", - "field-month-relative+1": "Příští měsíc", - "dateFormatItem-H": "H", - "timeFormat-short": "H:mm", + "dateFormatItem-MEd": "E d. M.", + "field-fri-relative+0": "tento pátek", + "field-fri-relative+1": "příští pátek", + "field-day": "Den", + "days-format-wide": [ + "neděle", + "pondělí", + "úterý", + "středa", + "čtvrtek", + "pátek", + "sobota" + ], + "field-zone": "Časové pásmo", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "minulý rok", + "field-month-relative+-1": "minulý měsíc", "days-format-abbr": [ "ne", "po", @@ -93,61 +132,42 @@ define( "P", "S" ], - "field-second": "Sekunda", - "dateFormatItem-GyMMMEd": "E, d. M. y G", - "dateFormatItem-GyMMM": "LLLL y G", - "field-day": "Den", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E, d. M.", - "days-standAlone-short": [ - "Ne", - "Po", - "Út", - "St", - "Čt", - "Pá", - "So" - ], - "days-standAlone-abbr": [ - "ne", - "po", - "út", - "st", - "čt", - "pá", - "so" + "dateFormatItem-yyyyMd": "d. M. y GGGGG", + "field-month": "Měsíc", + "days-standAlone-narrow": [ + "N", + "P", + "Ú", + "S", + "Č", + "P", + "S" ], + "field-tue-relative+0": "toto úterý", + "field-tue-relative+1": "příští úterý", + "field-mon-relative+0": "toto pondělí", + "field-mon-relative+1": "příští pondělí", "dateFormat-short": "dd.MM.yy GGGGG", + "field-second": "Sekunda", + "field-sat-relative+-1": "minulou sobotu", + "field-sun-relative+-1": "minulou neděli", + "field-month-relative+0": "tento měsíc", + "field-month-relative+1": "příští měsíc", + "dateFormatItem-Ed": "E d.", + "field-week": "Týden", + "dateFormat-medium": "d. M. y G", + "field-year-relative+0": "tento rok", + "field-week-relative+-1": "minulý týden", "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormat-full": "EEEE, d. MMMM y G", - "dateFormatItem-Md": "d. M.", - "days-format-short": [ - "ne", - "po", - "út", - "st", - "čt", - "pá", - "so" - ], - "dateFormatItem-yyyyMMM": "LLLL y G", - "dateFormatItem-d": "d.", - "field-month-relative+-1": "Minulý měsíc", - "quarters-format-wide": [ - "1. čtvrtletí", - "2. čtvrtletí", - "3. čtvrtletí", - "4. čtvrtletí" - ], - "days-format-wide": [ - "neděle", - "pondělí", - "úterý", - "středa", - "čtvrtek", - "pátek", - "sobota" - ] + "field-year-relative+1": "příští rok", + "dayPeriods-format-narrow-pm": "PM", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-Hms": "H:mm:ss", + "dateFormatItem-GyMMM": "LLLL y G", + "field-mon-relative+-1": "minulé pondělí", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "tento týden", + "field-week-relative+1": "příští týden" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/cs/japanese.js b/cldr/nls/cs/japanese.js index 95a2195dbd..63c2eb3234 100644 --- a/cldr/nls/cs/japanese.js +++ b/cldr/nls/cs/japanese.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "dateFormat-medium": "d. M. y G", - "field-second": "Sekunda", - "field-year-relative+-1": "Minulý rok", - "field-week": "Týden", - "field-month-relative+-1": "Minulý měsíc", - "field-day-relative+-1": "Včera", - "field-day-relative+-2": "Předevčírem", - "field-year": "Rok", - "field-week-relative+0": "Tento týden", - "field-week-relative+1": "Příští týden", + "field-sat-relative+0": "tuto sobotu", + "field-sat-relative+1": "příští sobotu", + "field-dayperiod": "AM/PM", + "field-sun-relative+-1": "minulou neděli", + "field-mon-relative+-1": "minulé pondělí", "field-minute": "Minuta", - "field-week-relative+-1": "Minulý týden", - "field-day-relative+0": "Dnes", + "field-day-relative+-1": "včera", + "field-weekday": "Den v týdnu", + "field-day-relative+-2": "předevčírem", + "field-era": "Letopočet", "field-hour": "Hodina", - "field-day-relative+1": "Zítra", + "field-sun-relative+0": "tuto neděli", + "field-sun-relative+1": "příští neděli", + "field-wed-relative+-1": "minulou středu", + "field-day-relative+0": "dnes", + "field-day-relative+1": "zítra", + "field-day-relative+2": "pozítří", "dateFormat-long": "d. MMMM y G", - "field-day-relative+2": "Pozítří", - "field-day": "Den", - "field-month-relative+0": "Tento měsíc", - "field-month-relative+1": "Příští měsíc", - "field-dayperiod": "AM/PM", + "field-tue-relative+0": "toto úterý", + "field-zone": "Časové pásmo", + "field-tue-relative+1": "příští úterý", + "field-week-relative+-1": "minulý týden", + "dateFormat-medium": "d. M. y G", + "field-year-relative+0": "tento rok", + "field-year-relative+1": "příští rok", + "field-sat-relative+-1": "minulou sobotu", + "field-year-relative+-1": "minulý rok", + "field-year": "Rok", + "field-fri-relative+0": "tento pátek", + "field-fri-relative+1": "příští pátek", + "field-week": "Týden", + "field-week-relative+0": "tento týden", + "field-week-relative+1": "příští týden", + "field-month-relative+0": "tento měsíc", "field-month": "Měsíc", + "field-month-relative+1": "příští měsíc", + "field-fri-relative+-1": "minulý pátek", + "field-second": "Sekunda", + "field-tue-relative+-1": "minulé úterý", + "field-day": "Den", + "field-mon-relative+0": "toto pondělí", + "field-mon-relative+1": "příští pondělí", + "field-thu-relative+0": "tento čtvrtek", + "field-second-relative+0": "nyní", "dateFormat-short": "dd.MM.yy GGGGG", - "field-era": "Letopočet", - "field-year-relative+0": "Tento rok", - "field-year-relative+1": "Příští rok", + "field-thu-relative+1": "příští čtvrtek", "dateFormat-full": "EEEE, d. MMMM y G", - "field-weekday": "Den v týdnu", - "field-zone": "Časové pásmo" + "field-wed-relative+0": "tuto středu", + "field-wed-relative+1": "příští středu", + "field-month-relative+-1": "minulý měsíc", + "field-thu-relative+-1": "minulý čtvrtek" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/cs/number.js b/cldr/nls/cs/number.js index f50a3d8a6a..91da9f2a51 100644 --- a/cldr/nls/cs/number.js +++ b/cldr/nls/cs/number.js @@ -10,6 +10,7 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", diff --git a/cldr/nls/cs/roc.js b/cldr/nls/cs/roc.js index 36db3d261d..b4dc810821 100644 --- a/cldr/nls/cs/roc.js +++ b/cldr/nls/cs/roc.js @@ -1,34 +1,56 @@ define( //begin v1.x content { - "field-second": "Sekunda", - "field-year-relative+-1": "Minulý rok", - "field-week": "Týden", - "field-month-relative+-1": "Minulý měsíc", - "field-day-relative+-1": "Včera", - "field-day-relative+-2": "Předevčírem", - "field-year": "Rok", - "field-week-relative+0": "Tento týden", - "field-week-relative+1": "Příští týden", - "field-minute": "Minuta", - "field-week-relative+-1": "Minulý týden", - "field-day-relative+0": "Dnes", - "field-hour": "Hodina", - "field-day-relative+1": "Zítra", - "field-day-relative+2": "Pozítří", - "field-day": "Den", - "field-month-relative+0": "Tento měsíc", - "field-month-relative+1": "Příští měsíc", + "field-sat-relative+0": "tuto sobotu", + "field-sat-relative+1": "příští sobotu", "field-dayperiod": "AM/PM", - "field-month": "Měsíc", + "field-sun-relative+-1": "minulou neděli", + "field-mon-relative+-1": "minulé pondělí", + "field-minute": "Minuta", + "field-day-relative+-1": "včera", + "field-weekday": "Den v týdnu", + "field-day-relative+-2": "předevčírem", "field-era": "Letopočet", - "field-year-relative+0": "Tento rok", - "field-year-relative+1": "Příští rok", + "field-hour": "Hodina", + "field-sun-relative+0": "tuto neděli", + "field-sun-relative+1": "příští neděli", + "field-wed-relative+-1": "minulou středu", + "field-day-relative+0": "dnes", + "field-day-relative+1": "zítra", "eraAbbr": [ "Před R. O. C." ], - "field-weekday": "Den v týdnu", - "field-zone": "Časové pásmo" + "field-day-relative+2": "pozítří", + "field-tue-relative+0": "toto úterý", + "field-zone": "Časové pásmo", + "field-tue-relative+1": "příští úterý", + "field-week-relative+-1": "minulý týden", + "field-year-relative+0": "tento rok", + "field-year-relative+1": "příští rok", + "field-sat-relative+-1": "minulou sobotu", + "field-year-relative+-1": "minulý rok", + "field-year": "Rok", + "field-fri-relative+0": "tento pátek", + "field-fri-relative+1": "příští pátek", + "field-week": "Týden", + "field-week-relative+0": "tento týden", + "field-week-relative+1": "příští týden", + "field-month-relative+0": "tento měsíc", + "field-month": "Měsíc", + "field-month-relative+1": "příští měsíc", + "field-fri-relative+-1": "minulý pátek", + "field-second": "Sekunda", + "field-tue-relative+-1": "minulé úterý", + "field-day": "Den", + "field-mon-relative+0": "toto pondělí", + "field-mon-relative+1": "příští pondělí", + "field-thu-relative+0": "tento čtvrtek", + "field-second-relative+0": "nyní", + "field-thu-relative+1": "příští čtvrtek", + "field-wed-relative+0": "tuto středu", + "field-wed-relative+1": "příští středu", + "field-month-relative+-1": "minulý měsíc", + "field-thu-relative+-1": "minulý čtvrtek" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/da/buddhist.js b/cldr/nls/da/buddhist.js index b977ddc3f7..765072b721 100644 --- a/cldr/nls/da/buddhist.js +++ b/cldr/nls/da/buddhist.js @@ -24,9 +24,13 @@ define( "N", "D" ], - "field-weekday": "ugedag", + "field-second-relative+0": "nu", + "field-weekday": "Ugedag", + "field-wed-relative+0": "denne onsdag", + "field-wed-relative+1": "næste onsdag", "dateFormatItem-GyMMMEd": "E d. MMM y G", "dateFormatItem-MMMEd": "E d. MMM", + "field-tue-relative+-1": "sidste tirsdag", "days-format-short": [ "sø", "ma", @@ -37,6 +41,8 @@ define( "lø" ], "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "sidste fredag", + "field-wed-relative+-1": "sidste onsdag", "months-format-wide": [ "januar", "februar", @@ -54,8 +60,10 @@ define( "dateFormatItem-yyyyQQQ": "QQQ y G", "dateFormat-full": "EEEE d. MMMM y G", "dateFormatItem-yyyyMEd": "E d/M/y G", + "field-thu-relative+-1": "sidste torsdag", "dateFormatItem-Md": "d/M", - "field-era": "æra", + "dayPeriods-format-wide-noon": "middag", + "field-era": "Æra", "months-standAlone-wide": [ "januar", "februar", @@ -78,8 +86,8 @@ define( "4. kvartal" ], "timeFormat-long": "HH.mm.ss z", - "field-year": "år", - "field-hour": "time", + "field-year": "År", + "field-hour": "Time", "months-format-abbr": [ "jan.", "feb.", @@ -94,9 +102,13 @@ define( "nov.", "dec." ], + "field-sat-relative+0": "denne lørdag", + "field-sat-relative+1": "næste lørdag", "timeFormat-full": "HH.mm.ss zzzz", "field-day-relative+0": "i dag", + "field-thu-relative+0": "denne torsdag", "field-day-relative+1": "i morgen", + "field-thu-relative+1": "næste torsdag", "dateFormatItem-GyMMMd": "d. MMM y G", "field-day-relative+2": "i overmorgen", "months-standAlone-abbr": [ @@ -139,8 +151,11 @@ define( ], "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d. MMM y G", + "dayPeriods-format-abbr-noon": "middag", "timeFormat-medium": "HH.mm.ss", + "field-sun-relative+0": "denne søndag", "dateFormatItem-Hm": "HH.mm", + "field-sun-relative+1": "næste søndag", "quarters-standAlone-abbr": [ "K1", "K2", @@ -150,8 +165,8 @@ define( "eraAbbr": [ "BE" ], - "field-minute": "minut", - "field-dayperiod": "dagtid", + "field-minute": "Minut", + "field-dayperiod": "AM/PM", "days-standAlone-abbr": [ "søn", "man", @@ -167,7 +182,9 @@ define( "field-day-relative+-2": "i forgårs", "dateFormatItem-MMMd": "d. MMM", "dateFormatItem-MEd": "E d/M", - "field-day": "dag", + "field-fri-relative+0": "denne fredag", + "field-fri-relative+1": "næste fredag", + "field-day": "Dag", "days-format-wide": [ "søndag", "mandag", @@ -177,7 +194,7 @@ define( "fredag", "lørdag" ], - "field-zone": "tidszone", + "field-zone": "Tidszone", "dateFormatItem-y": "y G", "months-standAlone-narrow": [ "J", @@ -215,7 +232,8 @@ define( "L" ], "dateFormatItem-yyyyMd": "d/M/y G", - "field-month": "måned", + "field-month": "Måned", + "dateFormatItem-MMM": "MMM", "days-standAlone-narrow": [ "S", "M", @@ -225,13 +243,19 @@ define( "F", "L" ], - "dateFormatItem-MMM": "MMM", + "field-tue-relative+0": "denne tirsdag", + "field-tue-relative+1": "næste tirsdag", + "field-mon-relative+0": "denne mandag", + "field-mon-relative+1": "næste mandag", "dateFormat-short": "d/M/y", - "field-second": "sekund", + "dayPeriods-format-narrow-noon": "middag", + "field-second": "Sekund", + "field-sat-relative+-1": "sidste lørdag", + "field-sun-relative+-1": "sidste søndag", "field-month-relative+0": "denne måned", "field-month-relative+1": "næste måned", "dateFormatItem-Ed": "E 'd'. d.", - "field-week": "uge", + "field-week": "Uge", "dateFormat-medium": "d. MMM y G", "field-year-relative+0": "i år", "field-week-relative+-1": "sidste uge", @@ -241,6 +265,7 @@ define( "dateFormatItem-Hms": "HH.mm.ss", "dateFormatItem-hms": "h.mm.ss a", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "sidste mandag", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "denne uge", "field-week-relative+1": "næste uge" diff --git a/cldr/nls/da/generic.js b/cldr/nls/da/generic.js index 315b5a6520..032eb3443a 100644 --- a/cldr/nls/da/generic.js +++ b/cldr/nls/da/generic.js @@ -1,69 +1,91 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E d. MMM y G", - "field-dayperiod": "dagtid", - "field-minute": "minut", + "field-second-relative+0": "nu", + "field-weekday": "Ugedag", + "field-wed-relative+0": "denne onsdag", + "field-wed-relative+1": "næste onsdag", + "dateFormatItem-GyMMMEd": "E d. MMM y G", "dateFormatItem-MMMEd": "E d. MMM", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "i går", - "dateFormatItem-hms": "h.mm.ss a", - "field-day-relative+-2": "i forgårs", - "field-weekday": "ugedag", - "dateFormatItem-MMM": "MMM", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "y G", + "field-tue-relative+-1": "sidste tirsdag", + "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "sidste fredag", + "field-wed-relative+-1": "sidste onsdag", + "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1} {0}", - "field-era": "æra", - "field-hour": "time", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E 'd'. d.", + "dateFormat-full": "EEEE d. MMMM y G", + "dateFormatItem-yyyyMEd": "E d/M/y G", + "field-thu-relative+-1": "sidste torsdag", + "dateFormatItem-Md": "d/M", + "field-era": "Æra", + "field-year": "År", + "field-hour": "Time", + "field-sat-relative+0": "denne lørdag", + "field-sat-relative+1": "næste lørdag", "field-day-relative+0": "i dag", "field-day-relative+1": "i morgen", - "field-day-relative+2": "i overmorgen", + "field-thu-relative+0": "denne torsdag", "dateFormatItem-GyMMMd": "d. MMM y G", - "dateFormat-long": "d. MMMM y G", - "field-zone": "tidszone", + "field-day-relative+2": "i overmorgen", + "field-thu-relative+1": "næste torsdag", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d. MMM y G", + "dateFormatItem-M": "M", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d. MMM y G", + "field-sun-relative+0": "denne søndag", "dateFormatItem-Hm": "HH.mm", - "field-week-relative+-1": "sidste uge", - "dateFormat-medium": "d. MMM y G", - "dateFormatItem-Hms": "HH.mm.ss", - "field-year-relative+0": "i år", - "field-year-relative+1": "næste år", - "field-year-relative+-1": "sidste år", + "field-sun-relative+1": "næste søndag", + "field-minute": "Minut", + "field-dayperiod": "AM/PM", + "dateFormatItem-d": "d.", "dateFormatItem-ms": "mm.ss", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "field-year": "år", + "field-day-relative+-1": "i går", + "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", - "field-week": "uge", - "dateFormatItem-yyyyMd": "d/M/y G", - "dateFormatItem-yyyyMMMd": "d. MMM y G", - "dateFormatItem-MMMMEd": "E d. MMMM", - "dateFormatItem-yyyyMEd": "E d/M/y G", + "field-day-relative+-2": "i forgårs", "dateFormatItem-MMMd": "d. MMM", - "field-week-relative+0": "denne uge", - "field-week-relative+1": "næste uge", - "field-month-relative+0": "denne måned", - "dateFormatItem-H": "HH", - "field-month": "måned", - "field-month-relative+1": "næste måned", - "dateFormatItem-M": "M", - "field-second": "sekund", - "dateFormatItem-GyMMMEd": "E d. MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "dag", "dateFormatItem-MEd": "E d/M", - "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "denne fredag", + "field-fri-relative+1": "næste fredag", + "field-day": "Dag", + "field-zone": "Tidszone", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "sidste år", + "field-month-relative+-1": "sidste måned", "dateFormatItem-hm": "h.mm a", + "dateFormatItem-yyyyMd": "d/M/y G", + "field-month": "Måned", + "dateFormatItem-MMM": "MMM", + "field-tue-relative+0": "denne tirsdag", + "field-tue-relative+1": "næste tirsdag", + "dateFormatItem-MMMMEd": "E d. MMMM", + "field-mon-relative+0": "denne mandag", + "field-mon-relative+1": "næste mandag", "dateFormat-short": "d/M/y", + "field-second": "Sekund", + "field-sat-relative+-1": "sidste lørdag", + "field-sun-relative+-1": "sidste søndag", + "field-month-relative+0": "denne måned", + "field-month-relative+1": "næste måned", + "dateFormatItem-Ed": "E 'd'. d.", + "field-week": "Uge", + "dateFormat-medium": "d. MMM y G", + "field-year-relative+0": "i år", + "field-week-relative+-1": "sidste uge", "dateFormatItem-yyyyM": "M/y G", - "dateFormat-full": "EEEE d. MMMM y G", - "dateFormatItem-Md": "d/M", - "dateFormatItem-yyyyMMM": "MMM y G", - "dateFormatItem-d": "d.", - "field-month-relative+-1": "sidste måned", - "dateFormatItem-h": "h a" + "field-year-relative+1": "næste år", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "HH.mm.ss", + "dateFormatItem-hms": "h.mm.ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "sidste mandag", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "denne uge", + "field-week-relative+1": "næste uge" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/da/gregorian.js b/cldr/nls/da/gregorian.js index 9cc8e6c562..ba7017a21b 100644 --- a/cldr/nls/da/gregorian.js +++ b/cldr/nls/da/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h.mm a", "days-standAlone-short": [ "sø", "ma", @@ -24,22 +25,28 @@ define( "N", "D" ], + "field-second-relative+0": "nu", "quarters-standAlone-narrow": [ "1", "2", "3", "4" ], - "field-weekday": "ugedag", + "field-weekday": "Ugedag", "dateFormatItem-yQQQ": "QQQ y", "dateFormatItem-yMEd": "E d/M/y", + "field-wed-relative+0": "denne onsdag", "dateFormatItem-GyMMMEd": "E d. MMM y G", "dateFormatItem-MMMEd": "E d. MMM", + "field-wed-relative+1": "næste onsdag", "eraNarrow": [ - "f.Kr.", - "e.Kr." + "fKr", + "fvt", + "eKr", + "vt" ], "dateFormatItem-yMM": "MM/y", + "field-tue-relative+-1": "sidste tirsdag", "days-format-short": [ "sø", "ma", @@ -50,6 +57,8 @@ define( "lø" ], "dateFormat-long": "d. MMM y", + "field-fri-relative+-1": "sidste fredag", + "field-wed-relative+-1": "sidste onsdag", "months-format-wide": [ "januar", "februar", @@ -67,11 +76,12 @@ define( "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "EEEE 'den' d. MMMM y", + "field-thu-relative+-1": "sidste torsdag", "dateFormatItem-Md": "d/M", "dayPeriods-format-wide-noon": "middag", "dateFormatItem-yMd": "d/M/y", - "field-era": "æra", "dateFormatItem-yM": "M/y", + "field-era": "Æra", "months-standAlone-wide": [ "januar", "februar", @@ -93,12 +103,12 @@ define( "3. kvartal", "4. kvartal" ], - "dateFormatItem-yQQQQ": "QQQQ y", "timeFormat-long": "HH.mm.ss z", - "field-year": "år", "dateFormatItem-yMMM": "MMM y", - "field-hour": "time", + "dateFormatItem-yQQQQ": "QQQQ y", + "field-year": "År", "dateFormatItem-MMdd": "dd/MM", + "field-hour": "Time", "months-format-abbr": [ "jan.", "feb.", @@ -113,11 +123,15 @@ define( "nov.", "dec." ], + "field-sat-relative+0": "denne lørdag", + "field-sat-relative+1": "næste lørdag", "timeFormat-full": "HH.mm.ss zzzz", "field-day-relative+0": "i dag", "field-day-relative+1": "i morgen", + "field-thu-relative+0": "denne torsdag", "dateFormatItem-GyMMMd": "d. MMM y G", "field-day-relative+2": "i overmorgen", + "field-thu-relative+1": "næste torsdag", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ "jan", @@ -158,6 +172,7 @@ define( ], "dayPeriods-format-abbr-noon": "middag", "timeFormat-medium": "HH.mm.ss", + "field-sun-relative+0": "denne søndag", "dateFormatItem-Hm": "HH.mm", "quarters-standAlone-abbr": [ "K1", @@ -165,12 +180,15 @@ define( "K3", "K4" ], + "field-sun-relative+1": "næste søndag", "eraAbbr": [ "f.Kr.", - "e.Kr." + "f.v.t.", + "e.Kr.", + "v.t." ], - "field-minute": "minut", - "field-dayperiod": "dagtid", + "field-minute": "Minut", + "field-dayperiod": "AM/PM", "days-standAlone-abbr": [ "søn", "man", @@ -190,12 +208,14 @@ define( ], "field-day-relative+-1": "i går", "dateFormatItem-h": "h a", - "dateTimeFormat-long": "{1} {0}", + "dateTimeFormat-long": "{1} 'kl.' {0}", "field-day-relative+-2": "i forgårs", "dateFormatItem-MMMd": "d. MMM", "dateFormatItem-MEd": "E d/M", - "dateTimeFormat-full": "{1} {0}", - "field-day": "dag", + "dateTimeFormat-full": "{1} 'kl.' {0}", + "field-fri-relative+0": "denne fredag", + "field-fri-relative+1": "næste fredag", + "field-day": "Dag", "days-format-wide": [ "søndag", "mandag", @@ -205,7 +225,7 @@ define( "fredag", "lørdag" ], - "field-zone": "tidszone", + "field-zone": "Tidszone", "dateFormatItem-y": "y", "months-standAlone-narrow": [ "J", @@ -233,11 +253,13 @@ define( "fre.", "lør." ], - "dateFormatItem-yMMMd": "d. MMM y", "eraNames": [ "f.Kr.", - "e.Kr." + "før vesterlandsk tidsregning", + "e.Kr.", + "vesterlandsk tidsregning" ], + "dateFormatItem-yMMMd": "d. MMM y", "days-format-narrow": [ "S", "M", @@ -257,17 +279,27 @@ define( "L" ], "dateFormatItem-MMM": "MMM", - "field-month": "måned", + "field-month": "Måned", + "field-tue-relative+0": "denne tirsdag", + "field-tue-relative+1": "næste tirsdag", "dayPeriods-format-wide-am": "AM", "dateFormatItem-MMMMEd": "E d. MMMM", + "dateFormatItem-EHm": "E HH.mm", + "field-mon-relative+0": "denne mandag", + "field-mon-relative+1": "næste mandag", "dateFormat-short": "dd/MM/yy", + "dateFormatItem-EHms": "E HH.mm.ss", + "dateFormatItem-Ehms": "E h.mm.ss a", "dayPeriods-format-narrow-noon": "middag", - "field-second": "sekund", + "field-second": "Sekund", + "field-sat-relative+-1": "sidste lørdag", "dateFormatItem-yMMMEd": "E d. MMM y", + "field-sun-relative+-1": "sidste søndag", "field-month-relative+0": "denne måned", "field-month-relative+1": "næste måned", "dateFormatItem-Ed": "E 'd'. d.", - "field-week": "uge", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "field-week": "Uge", "dateFormat-medium": "dd/MM/y", "field-year-relative+0": "i år", "field-week-relative+-1": "sidste uge", @@ -276,6 +308,7 @@ define( "dateFormatItem-Hms": "HH.mm.ss", "dateFormatItem-hms": "h.mm.ss a", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "sidste mandag", "field-week-relative+0": "denne uge", "field-week-relative+1": "næste uge" } diff --git a/cldr/nls/da/hebrew.js b/cldr/nls/da/hebrew.js index 62b3eda093..c8a2a2944c 100644 --- a/cldr/nls/da/hebrew.js +++ b/cldr/nls/da/hebrew.js @@ -10,9 +10,13 @@ define( "fr", "lø" ], - "field-weekday": "ugedag", + "field-second-relative+0": "nu", + "field-weekday": "Ugedag", + "field-wed-relative+0": "denne onsdag", + "field-wed-relative+1": "næste onsdag", "dateFormatItem-GyMMMEd": "E d. MMM y G", "dateFormatItem-MMMEd": "E d. MMM", + "field-tue-relative+-1": "sidste tirsdag", "days-format-short": [ "sø", "ma", @@ -23,11 +27,15 @@ define( "lø" ], "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "sidste fredag", + "field-wed-relative+-1": "sidste onsdag", "dateFormatItem-yyyyQQQ": "QQQ y G", "dateFormat-full": "EEEE d. MMMM y G", "dateFormatItem-yyyyMEd": "E d/M/y G", + "field-thu-relative+-1": "sidste torsdag", "dateFormatItem-Md": "d/M", - "field-era": "æra", + "dayPeriods-format-wide-noon": "middag", + "field-era": "Æra", "timeFormat-short": "HH.mm", "quarters-format-wide": [ "1. kvartal", @@ -36,11 +44,15 @@ define( "4. kvartal" ], "timeFormat-long": "HH.mm.ss z", - "field-year": "år", - "field-hour": "time", + "field-year": "År", + "field-hour": "Time", + "field-sat-relative+0": "denne lørdag", + "field-sat-relative+1": "næste lørdag", "timeFormat-full": "HH.mm.ss zzzz", "field-day-relative+0": "i dag", + "field-thu-relative+0": "denne torsdag", "field-day-relative+1": "i morgen", + "field-thu-relative+1": "næste torsdag", "dateFormatItem-GyMMMd": "d. MMM y G", "field-day-relative+2": "i overmorgen", "quarters-format-abbr": [ @@ -69,8 +81,11 @@ define( ], "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d. MMM y G", + "dayPeriods-format-abbr-noon": "middag", "timeFormat-medium": "HH.mm.ss", + "field-sun-relative+0": "denne søndag", "dateFormatItem-Hm": "HH.mm", + "field-sun-relative+1": "næste søndag", "quarters-standAlone-abbr": [ "K1", "K2", @@ -80,8 +95,8 @@ define( "eraAbbr": [ "AM" ], - "field-minute": "minut", - "field-dayperiod": "dagtid", + "field-minute": "Minut", + "field-dayperiod": "AM/PM", "days-standAlone-abbr": [ "søn", "man", @@ -97,7 +112,9 @@ define( "field-day-relative+-2": "i forgårs", "dateFormatItem-MMMd": "d. MMM", "dateFormatItem-MEd": "E d/M", - "field-day": "dag", + "field-fri-relative+0": "denne fredag", + "field-fri-relative+1": "næste fredag", + "field-day": "Dag", "days-format-wide": [ "søndag", "mandag", @@ -107,7 +124,7 @@ define( "fredag", "lørdag" ], - "field-zone": "tidszone", + "field-zone": "Tidszone", "dateFormatItem-y": "y G", "field-year-relative+-1": "sidste år", "field-month-relative+-1": "sidste måned", @@ -131,7 +148,8 @@ define( "L" ], "dateFormatItem-yyyyMd": "d/M/y G", - "field-month": "måned", + "field-month": "Måned", + "dateFormatItem-MMM": "MMM", "days-standAlone-narrow": [ "S", "M", @@ -141,13 +159,19 @@ define( "F", "L" ], - "dateFormatItem-MMM": "MMM", + "field-tue-relative+0": "denne tirsdag", + "field-tue-relative+1": "næste tirsdag", + "field-mon-relative+0": "denne mandag", + "field-mon-relative+1": "næste mandag", "dateFormat-short": "d/M/y", - "field-second": "sekund", + "dayPeriods-format-narrow-noon": "middag", + "field-second": "Sekund", + "field-sat-relative+-1": "sidste lørdag", + "field-sun-relative+-1": "sidste søndag", "field-month-relative+0": "denne måned", "field-month-relative+1": "næste måned", "dateFormatItem-Ed": "E 'd'. d.", - "field-week": "uge", + "field-week": "Uge", "dateFormat-medium": "d. MMM y G", "field-year-relative+0": "i år", "field-week-relative+-1": "sidste uge", @@ -157,6 +181,7 @@ define( "dateFormatItem-Hms": "HH.mm.ss", "dateFormatItem-hms": "h.mm.ss a", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "sidste mandag", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "denne uge", "field-week-relative+1": "næste uge" diff --git a/cldr/nls/da/islamic.js b/cldr/nls/da/islamic.js index 808b8902ed..caf041beb8 100644 --- a/cldr/nls/da/islamic.js +++ b/cldr/nls/da/islamic.js @@ -10,9 +10,13 @@ define( "fr", "lø" ], - "field-weekday": "ugedag", + "field-second-relative+0": "nu", + "field-weekday": "Ugedag", + "field-wed-relative+0": "denne onsdag", + "field-wed-relative+1": "næste onsdag", "dateFormatItem-GyMMMEd": "E d. MMM y G", "dateFormatItem-MMMEd": "E d. MMM", + "field-tue-relative+-1": "sidste tirsdag", "days-format-short": [ "sø", "ma", @@ -23,11 +27,15 @@ define( "lø" ], "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "sidste fredag", + "field-wed-relative+-1": "sidste onsdag", "dateFormatItem-yyyyQQQ": "QQQ y G", "dateFormat-full": "EEEE d. MMMM y G", "dateFormatItem-yyyyMEd": "E d/M/y G", + "field-thu-relative+-1": "sidste torsdag", "dateFormatItem-Md": "d/M", - "field-era": "æra", + "dayPeriods-format-wide-noon": "middag", + "field-era": "Æra", "timeFormat-short": "HH.mm", "quarters-format-wide": [ "1. kvartal", @@ -36,11 +44,15 @@ define( "4. kvartal" ], "timeFormat-long": "HH.mm.ss z", - "field-year": "år", - "field-hour": "time", + "field-year": "År", + "field-hour": "Time", + "field-sat-relative+0": "denne lørdag", + "field-sat-relative+1": "næste lørdag", "timeFormat-full": "HH.mm.ss zzzz", "field-day-relative+0": "i dag", + "field-thu-relative+0": "denne torsdag", "field-day-relative+1": "i morgen", + "field-thu-relative+1": "næste torsdag", "dateFormatItem-GyMMMd": "d. MMM y G", "field-day-relative+2": "i overmorgen", "quarters-format-abbr": [ @@ -69,8 +81,11 @@ define( ], "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d. MMM y G", + "dayPeriods-format-abbr-noon": "middag", "timeFormat-medium": "HH.mm.ss", + "field-sun-relative+0": "denne søndag", "dateFormatItem-Hm": "HH.mm", + "field-sun-relative+1": "næste søndag", "quarters-standAlone-abbr": [ "K1", "K2", @@ -80,8 +95,8 @@ define( "eraAbbr": [ "AH" ], - "field-minute": "minut", - "field-dayperiod": "dagtid", + "field-minute": "Minut", + "field-dayperiod": "AM/PM", "days-standAlone-abbr": [ "søn", "man", @@ -97,7 +112,9 @@ define( "field-day-relative+-2": "i forgårs", "dateFormatItem-MMMd": "d. MMM", "dateFormatItem-MEd": "E d/M", - "field-day": "dag", + "field-fri-relative+0": "denne fredag", + "field-fri-relative+1": "næste fredag", + "field-day": "Dag", "days-format-wide": [ "søndag", "mandag", @@ -107,7 +124,7 @@ define( "fredag", "lørdag" ], - "field-zone": "tidszone", + "field-zone": "Tidszone", "dateFormatItem-y": "y G", "field-year-relative+-1": "sidste år", "field-month-relative+-1": "sidste måned", @@ -131,7 +148,8 @@ define( "L" ], "dateFormatItem-yyyyMd": "d/M/y G", - "field-month": "måned", + "field-month": "Måned", + "dateFormatItem-MMM": "MMM", "days-standAlone-narrow": [ "S", "M", @@ -141,13 +159,19 @@ define( "F", "L" ], - "dateFormatItem-MMM": "MMM", + "field-tue-relative+0": "denne tirsdag", + "field-tue-relative+1": "næste tirsdag", + "field-mon-relative+0": "denne mandag", + "field-mon-relative+1": "næste mandag", "dateFormat-short": "d/M/y", - "field-second": "sekund", + "dayPeriods-format-narrow-noon": "middag", + "field-second": "Sekund", + "field-sat-relative+-1": "sidste lørdag", + "field-sun-relative+-1": "sidste søndag", "field-month-relative+0": "denne måned", "field-month-relative+1": "næste måned", "dateFormatItem-Ed": "E 'd'. d.", - "field-week": "uge", + "field-week": "Uge", "dateFormat-medium": "d. MMM y G", "field-year-relative+0": "i år", "field-week-relative+-1": "sidste uge", @@ -157,6 +181,7 @@ define( "dateFormatItem-Hms": "HH.mm.ss", "dateFormatItem-hms": "h.mm.ss a", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "sidste mandag", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "denne uge", "field-week-relative+1": "næste uge" diff --git a/cldr/nls/da/japanese.js b/cldr/nls/da/japanese.js index 52dd9a0ef0..cb77b148d3 100644 --- a/cldr/nls/da/japanese.js +++ b/cldr/nls/da/japanese.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "dateFormat-medium": "d. MMM y G", - "field-second": "sekund", - "field-year-relative+-1": "sidste år", - "field-week": "uge", - "field-month-relative+-1": "sidste måned", + "field-sat-relative+0": "denne lørdag", + "field-sat-relative+1": "næste lørdag", + "field-dayperiod": "AM/PM", + "field-sun-relative+-1": "sidste søndag", + "field-mon-relative+-1": "sidste mandag", + "field-minute": "Minut", "field-day-relative+-1": "i går", + "field-weekday": "Ugedag", "field-day-relative+-2": "i forgårs", - "field-year": "år", - "field-week-relative+0": "denne uge", - "field-week-relative+1": "næste uge", - "field-minute": "minut", - "field-week-relative+-1": "sidste uge", + "field-era": "Æra", + "field-hour": "Time", + "field-sun-relative+0": "denne søndag", + "field-sun-relative+1": "næste søndag", + "field-wed-relative+-1": "sidste onsdag", "field-day-relative+0": "i dag", - "field-hour": "time", "field-day-relative+1": "i morgen", - "dateFormat-long": "d. MMMM y G", "field-day-relative+2": "i overmorgen", - "field-day": "dag", + "dateFormat-long": "d. MMMM y G", + "field-tue-relative+0": "denne tirsdag", + "field-zone": "Tidszone", + "field-tue-relative+1": "næste tirsdag", + "field-week-relative+-1": "sidste uge", + "dateFormat-medium": "d. MMM y G", + "field-year-relative+0": "i år", + "field-year-relative+1": "næste år", + "field-sat-relative+-1": "sidste lørdag", + "field-year-relative+-1": "sidste år", + "field-year": "År", + "field-fri-relative+0": "denne fredag", + "field-fri-relative+1": "næste fredag", + "field-week": "Uge", + "field-week-relative+0": "denne uge", + "field-week-relative+1": "næste uge", "field-month-relative+0": "denne måned", + "field-month": "Måned", "field-month-relative+1": "næste måned", - "field-dayperiod": "dagtid", - "field-month": "måned", + "field-fri-relative+-1": "sidste fredag", + "field-second": "Sekund", + "field-tue-relative+-1": "sidste tirsdag", + "field-day": "Dag", + "field-mon-relative+0": "denne mandag", + "field-mon-relative+1": "næste mandag", + "field-thu-relative+0": "denne torsdag", + "field-second-relative+0": "nu", "dateFormat-short": "d/M/y", - "field-era": "æra", - "field-year-relative+0": "i år", - "field-year-relative+1": "næste år", + "field-thu-relative+1": "næste torsdag", "dateFormat-full": "EEEE d. MMMM y G", - "field-weekday": "ugedag", - "field-zone": "tidszone" + "field-wed-relative+0": "denne onsdag", + "field-wed-relative+1": "næste onsdag", + "field-month-relative+-1": "sidste måned", + "field-thu-relative+-1": "sidste torsdag" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/da/number.js b/cldr/nls/da/number.js index a82eb10ba7..f77a01e3b9 100644 --- a/cldr/nls/da/number.js +++ b/cldr/nls/da/number.js @@ -6,10 +6,11 @@ define( "exponential": "E", "scientificFormat": "#E0", "percentFormat": "#,##0 %", - "list": ",", + "list": ";", "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", diff --git a/cldr/nls/da/roc.js b/cldr/nls/da/roc.js index 324b4c0149..8ba36bd2c5 100644 --- a/cldr/nls/da/roc.js +++ b/cldr/nls/da/roc.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "field-second": "sekund", - "field-year-relative+-1": "sidste år", - "field-week": "uge", - "field-month-relative+-1": "sidste måned", + "field-sat-relative+0": "denne lørdag", + "field-sat-relative+1": "næste lørdag", + "field-dayperiod": "AM/PM", + "field-sun-relative+-1": "sidste søndag", + "field-mon-relative+-1": "sidste mandag", + "field-minute": "Minut", "field-day-relative+-1": "i går", + "field-weekday": "Ugedag", "field-day-relative+-2": "i forgårs", - "field-year": "år", - "field-week-relative+0": "denne uge", - "field-week-relative+1": "næste uge", - "field-minute": "minut", - "field-week-relative+-1": "sidste uge", + "field-era": "Æra", + "field-hour": "Time", + "field-sun-relative+0": "denne søndag", + "field-sun-relative+1": "næste søndag", + "field-wed-relative+-1": "sidste onsdag", "field-day-relative+0": "i dag", - "field-hour": "time", "field-day-relative+1": "i morgen", - "field-day-relative+2": "i overmorgen", - "field-day": "dag", - "field-month-relative+0": "denne måned", - "field-month-relative+1": "næste måned", - "field-dayperiod": "dagtid", - "field-month": "måned", - "field-era": "æra", - "field-year-relative+0": "i år", - "field-year-relative+1": "næste år", "eraAbbr": [ "Before R.O.C.", "Minguo" ], - "field-weekday": "ugedag", - "field-zone": "tidszone" + "field-day-relative+2": "i overmorgen", + "field-tue-relative+0": "denne tirsdag", + "field-zone": "Tidszone", + "field-tue-relative+1": "næste tirsdag", + "field-week-relative+-1": "sidste uge", + "field-year-relative+0": "i år", + "field-year-relative+1": "næste år", + "field-sat-relative+-1": "sidste lørdag", + "field-year-relative+-1": "sidste år", + "field-year": "År", + "field-fri-relative+0": "denne fredag", + "field-fri-relative+1": "næste fredag", + "field-week": "Uge", + "field-week-relative+0": "denne uge", + "field-week-relative+1": "næste uge", + "field-month-relative+0": "denne måned", + "field-month": "Måned", + "field-month-relative+1": "næste måned", + "field-fri-relative+-1": "sidste fredag", + "field-second": "Sekund", + "field-tue-relative+-1": "sidste tirsdag", + "field-day": "Dag", + "field-mon-relative+0": "denne mandag", + "field-mon-relative+1": "næste mandag", + "field-thu-relative+0": "denne torsdag", + "field-second-relative+0": "nu", + "field-thu-relative+1": "næste torsdag", + "field-wed-relative+0": "denne onsdag", + "field-wed-relative+1": "næste onsdag", + "field-month-relative+-1": "sidste måned", + "field-thu-relative+-1": "sidste torsdag" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/dangi.js b/cldr/nls/dangi.js index 91cd7b23bc..ebe8878c1f 100644 --- a/cldr/nls/dangi.js +++ b/cldr/nls/dangi.js @@ -2,16 +2,60 @@ define({ root: //begin v1.x content { - "days-standAlone-short": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" - ], - "months-format-narrow": [ + "dateTimeFormats-appendItem-Year": "{1} {0}", + "field-tue-relative+-1": "last Tuesday", + "field-year": "Year", + "dateFormatItem-Hm": "HH:mm", + "field-wed-relative+0": "this Wednesday", + "quarters-format-narrow@localeAlias109": { + "bundle": "gregorian", + "target": "quarters-standAlone-narrow" + }, + "field-wed-relative+1": "next Wednesday", + "quarters@localeAlias106": { + "bundle": "chinese", + "target": "quarters" + }, + "dateFormatItem-ms": "mm:ss", + "quarters@localeAlias107": { + "bundle": "gregorian", + "target": "quarters" + }, + "timeFormat-short": "HH:mm", + "days-standAlone-abbr@localeAlias100": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "field-minute": "Minute", + "days-standAlone-abbr@localeAlias101": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dateTimeFormat-short": "{1} {0}", + "field-day-relative+0": "today", + "field-day-relative+1": "tomorrow", + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", + "dayPeriods-format-narrow-am": "a", + "dateFormatItem-MMMd": "MMM d", + "dayPeriods-format-abbr-am": "AM", + "field-week-relative+0": "this week", + "field-month-relative+0": "this month", + "field-week-relative+1": "next week", + "field-month-relative+1": "next month", + "timeFormat-medium": "HH:mm:ss", + "field-second-relative+0": "now", + "months-format-narrow@localeAlias90": { + "bundle": "chinese", + "target": "months-standAlone-narrow" + }, + "months-format-abbr@localeAlias89": { + "bundle": "chinese", + "target": "months-format-wide" + }, + "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "dateFormatItem-yyyyQQQ": "U QQQ", + "months-standAlone-narrow": [ "1", "2", "3", @@ -25,186 +69,91 @@ define({ root: "11", "12" ], - "quarters-standAlone-narrow": [ - "1", - "2", - "3", - "4" - ], - "field-weekday": "Day of the Week", - "dayPeriods-format-abbr@localeAlias130": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" - }, - "quarters@localeAlias118": { - "bundle": "chinese", - "target": "quarters" - }, - "quarters@localeAlias119": { - "bundle": "gregorian", - "target": "quarters" - }, "dateFormatItem-GyMMMEd": "U MMM d, E", - "dateFormatItem-MMMEd": "MMM d, E", - "days-format-short": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" + "dateFormatItem-yyyyMd": "y-MM-dd", + "field-day": "Day", + "field-year-relative+-1": "last year", + "dayPeriods-format-wide-am": "AM", + "dateFormatItem-yyyyMEd": "y-MM-dd, E", + "field-wed-relative+-1": "last Wednesday", + "dateTimeFormat-medium": "{1} {0}", + "days-standAlone-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" ], - "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", + "field-second": "Second", "dateFormat-long": "U MMMM d", - "months-format-wide": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" - ], - "dateFormatItem-yyyyQQQ": "U QQQ", - "dateTimeFormat-medium": "{1} {0}", - "months-format-narrow@localeAlias102": { + "dateFormatItem-GyMMMd": "U MMM d", + "dateFormat@localeAlias117": { "bundle": "chinese", - "target": "months-standAlone-narrow" + "target": "dateFormat" }, - "dayPeriods-format-wide-pm": "PM", - "dateFormat-full": "U MMMM d, EEEE", - "dateFormatItem-yyyyMEd": "y-MM-dd, E", - "dateFormatItem-Md": "MM-dd", - "dayPeriods-format-abbr-am": "AM", - "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", - "dateFormatItem-yMd": "y-MM-dd", - "field-era": "Era", - "months-standAlone-wide": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" - ], - "timeFormat-short": "HH:mm", - "quarters-format-wide": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], - "timeFormat-long": "HH:mm:ss z", - "field-year": "Year", - "dateTimeFormats-appendItem-Era": "{1} {0}", - "field-hour": "Hour", - "months-format-abbr": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" - ], - "timeFormat-full": "HH:mm:ss zzzz", - "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", - "dateFormatItem-GyMMMd": "U MMM d", - "months-standAlone-abbr": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" - ], - "dateFormatItem-H": "HH", - "quarters-format-abbr": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], "quarters-standAlone-wide": [ "Q1", "Q2", "Q3", "Q4" ], - "dateFormatItem-Gy": "U", - "days-standAlone-wide@localeAlias117": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "dateFormatItem-yyyyMMMEd": "U MMM d, E", - "dateFormatItem-M": "L", - "days-standAlone-wide": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" + "days-format-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" ], - "dateFormatItem-yyyyMMM": "U MMM", - "dateFormatItem-yyyyMMMd": "U MMM d", - "days-format-short@localeAlias110": { - "bundle": "gregorian", - "target": "days-format-abbr" - }, - "days-format-short@localeAlias111": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "dateFormat@localeAlias133": { - "bundle": "chinese", - "target": "dateFormat" - }, - "timeFormat-medium": "HH:mm:ss", - "dayPeriods-format-narrow@localeAlias128": { - "bundle": "gregorian", - "target": "dayPeriods-format-abbr" - }, - "dayPeriods-format-narrow@localeAlias129": { + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "field-mon-relative+-1": "last Monday", + "dateFormatItem-GyMMM": "U MMM", + "field-month": "Month", + "dateFormatItem-MMM": "LLL", + "field-dayperiod": "Dayperiod", + "quarters-standAlone-wide@localeAlias112": { "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "target": "quarters-format-wide" }, + "dayPeriods-format-narrow-pm": "p", + "dateFormat-medium": "U MMM d", "quarters-standAlone-abbr": [ "Q1", "Q2", "Q3", "Q4" ], - "dateFormatItem-Hm": "HH:mm", - "field-minute": "Minute", - "field-dayperiod": "Dayperiod", - "days-standAlone-abbr": [ + "dayPeriods-format-abbr-pm": "PM", + "months-standAlone-abbr@localeAlias91": { + "bundle": "chinese", + "target": "months-format-abbr" + }, + "dateFormatItem-yyyyM": "y-MM", + "months-standAlone-abbr@localeAlias92": { + "bundle": "chinese", + "target": "months-format-wide" + }, + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "dateFormatItem-yyyyMMMd": "U MMM d", + "days-format-short": [ "Sun", "Mon", "Tue", @@ -213,63 +162,105 @@ define({ root: "Fri", "Sat" ], - "dateFormatItem-d": "d", - "dateFormatItem-ms": "mm:ss", - "timeFormat@localeAlias134": { - "bundle": "chinese", - "target": "timeFormat" - }, "quarters-format-narrow": [ "1", "2", "3", "4" ], - "timeFormat@localeAlias135": { - "bundle": "gregorian", - "target": "timeFormat" + "days@localeAlias94": { + "bundle": "chinese", + "target": "days" }, - "field-day-relative+-1": "Yesterday", - "days-standAlone-abbr@localeAlias112": { + "dayPeriods-format-wide-pm": "PM", + "days@localeAlias95": { "bundle": "gregorian", - "target": "days-format-abbr" + "target": "days" }, - "dayPeriods-format-narrow-am": "AM", + "field-sat-relative+-1": "last Saturday", + "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", "dateTimeFormat-long": "{1} {0}", - "dateFormatItem-h": "h a", - "days-standAlone-abbr@localeAlias113": { + "dateFormatItem-Md": "MM-dd", + "field-hour": "Hour", + "months-format-wide": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" + ], + "dateFormat-full": "U MMMM d, EEEE", + "field-month-relative+-1": "last month", + "months@localeAlias88": { + "bundle": "chinese", + "target": "months" + }, + "dateFormatItem-Hms": "HH:mm:ss", + "quarters-standAlone-abbr@localeAlias110": { "bundle": "gregorian", - "target": "days-format-wide" + "target": "quarters-format-abbr" }, - "days-standAlone-short@localeAlias114": { + "quarters-standAlone-abbr@localeAlias111": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "quarters-format-abbr@localeAlias108": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "dayPeriods-format-narrow-noon": "n", + "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", + "field-week-relative+-1": "last week", + "months-format-abbr": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" + ], + "days-standAlone-short@localeAlias102": { "bundle": "gregorian", "target": "days-format-short" }, - "days-standAlone-short@localeAlias115": { + "timeFormat-long": "HH:mm:ss z", + "days-standAlone-short@localeAlias103": { "bundle": "gregorian", "target": "days-format-abbr" }, - "days-standAlone-short@localeAlias116": { + "days-standAlone-short@localeAlias104": { "bundle": "gregorian", "target": "days-format-wide" }, - "days-format-abbr@localeAlias108": { + "days-format-narrow@localeAlias97": { "bundle": "gregorian", - "target": "days-format-wide" + "target": "days-standAlone-narrow" }, - "dateFormatItem-MMMd": "MMM d", - "dayPeriods-format-narrow@localeAlias131": { + "dayPeriods-format-abbr@localeAlias115": { "bundle": "gregorian", - "target": "dayPeriods-format-abbr" + "target": "dayPeriods-format-wide" }, - "dateFormatItem-MEd": "MM-dd, E", - "dayPeriods-format-narrow@localeAlias132": { + "dayPeriods-format-abbr@localeAlias116": { "bundle": "gregorian", "target": "dayPeriods-format-wide" }, - "dateTimeFormat-full": "{1} {0}", - "field-day": "Day", - "days-format-wide": [ + "dateFormat-short": "y-MM-dd", + "days-standAlone-wide": [ "Sun", "Mon", "Tue", @@ -278,52 +269,47 @@ define({ root: "Fri", "Sat" ], - "days-format-narrow@localeAlias109": { - "bundle": "gregorian", - "target": "days-standAlone-narrow" + "dateFormatItem-yyyyMMMEd": "U MMM d, E", + "months-standAlone-wide@localeAlias93": { + "bundle": "chinese", + "target": "months-format-wide" }, - "dayPeriods@localeAlias125": { + "dateTimeFormats-appendItem-Era": "{1} {0}", + "timeFormat@localeAlias118": { "bundle": "chinese", - "target": "dayPeriods" + "target": "timeFormat" }, - "field-zone": "Zone", - "dayPeriods@localeAlias126": { + "timeFormat@localeAlias119": { "bundle": "gregorian", - "target": "dayPeriods" - }, - "days@localeAlias106": { - "bundle": "chinese", - "target": "days" + "target": "timeFormat" }, - "months-standAlone-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12" + "dateFormatItem-H": "HH", + "dateFormatItem-yyyy": "U", + "dateFormatItem-M": "L", + "months-standAlone-wide": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], - "dateFormatItem-y": "U", - "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", - "days@localeAlias107": { + "field-sun-relative+-1": "last Sunday", + "days-format-short@localeAlias98": { "bundle": "gregorian", - "target": "days" + "target": "days-format-abbr" }, - "quarters-standAlone-wide@localeAlias124": { + "days-format-short@localeAlias99": { "bundle": "gregorian", - "target": "quarters-format-wide" + "target": "days-format-wide" }, - "dateFormatItem-hm": "h:mm a", - "dateTimeFormats-appendItem-Year": "{1} {0}", - "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", - "dayPeriods-format-abbr-pm": "PM", - "days-format-abbr": [ + "days-standAlone-abbr": [ "Sun", "Mon", "Tue", @@ -332,89 +318,129 @@ define({ root: "Fri", "Sat" ], - "months@localeAlias100": { - "bundle": "chinese", - "target": "months" + "dateTimeFormat-full": "{1} {0}", + "dateFormatItem-hm": "h:mm a", + "days-format-abbr@localeAlias96": { + "bundle": "gregorian", + "target": "days-format-wide" }, - "days-format-narrow": [ - "S", - "M", - "T", - "W", - "T", - "F", - "S" - ], - "dateFormatItem-yyyyMd": "y-MM-dd", - "days-standAlone-narrow": [ - "S", - "M", - "T", - "W", - "T", - "F", - "S" + "dateFormatItem-d": "d", + "field-weekday": "Day of the Week", + "field-sat-relative+0": "this Saturday", + "dateFormatItem-h": "h a", + "field-sat-relative+1": "next Saturday", + "months-standAlone-abbr": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], - "dateFormatItem-MMM": "LLL", - "field-month": "Month", - "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", - "dayPeriods-format-wide-am": "AM", - "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", - "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", - "dateFormat-short": "y-MM-dd", - "months-standAlone-wide@localeAlias105": { + "dayPeriods@localeAlias113": { "bundle": "chinese", - "target": "months-format-wide" - }, - "field-second": "Second", - "quarters-standAlone-abbr@localeAlias122": { - "bundle": "gregorian", - "target": "quarters-format-abbr" + "target": "dayPeriods" }, - "quarters-standAlone-abbr@localeAlias123": { + "timeFormat-full": "HH:mm:ss zzzz", + "dateFormatItem-MEd": "MM-dd, E", + "dayPeriods@localeAlias114": { "bundle": "gregorian", - "target": "quarters-format-wide" + "target": "dayPeriods" }, + "dateFormatItem-y": "U", + "field-thu-relative+0": "this Thursday", + "field-thu-relative+1": "next Thursday", + "dateFormatItem-hms": "h:mm:ss a", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "dayPeriods-format-abbr-noon": "noon", + "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", + "field-thu-relative+-1": "last Thursday", + "dateFormatItem-yMd": "y-MM-dd", + "field-week": "Week", + "quarters-standAlone-narrow": [ + "1", + "2", + "3", + "4" + ], + "quarters-format-wide": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], "dateFormatItem-Ed": "d, E", - "dateTimeFormats-appendItem-Timezone": "{0} {1}", - "dateTime@localeAlias136": { + "dateFormatItem-yyyyMMM": "U MMM", + "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", + "days-standAlone-short": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateTime@localeAlias120": { "bundle": "chinese", "target": "dateTime" }, - "field-week": "Week", - "dateFormat-medium": "U MMM d", - "quarters-format-narrow@localeAlias121": { - "bundle": "gregorian", - "target": "quarters-standAlone-narrow" - }, - "quarters-format-abbr@localeAlias120": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "dateFormatItem-yyyyM": "y-MM", - "dayPeriods-format-narrow-pm": "PM", - "dayPeriods-format-abbr@localeAlias127": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" - }, "dateFormatItem-yyyyQQQQ": "U QQQQ", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Hms": "HH:mm:ss", - "dateFormatItem-hms": "h:mm:ss a", - "dateFormatItem-GyMMM": "U MMM", - "months-standAlone-abbr@localeAlias103": { - "bundle": "chinese", - "target": "months-format-abbr" - }, - "dateFormatItem-yyyy": "U", - "months-standAlone-abbr@localeAlias104": { - "bundle": "chinese", - "target": "months-format-wide" - }, - "months-format-abbr@localeAlias101": { - "bundle": "chinese", - "target": "months-format-wide" + "quarters-format-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "field-year-relative+0": "this year", + "field-year-relative+1": "next year", + "field-fri-relative+-1": "last Friday", + "dayPeriods-format-wide-noon": "noon", + "days-format-wide": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", + "field-zone": "Zone", + "dateFormatItem-MMMEd": "MMM d, E", + "field-day-relative+-1": "yesterday", + "days-format-abbr": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "field-sun-relative+0": "this Sunday", + "field-sun-relative+1": "next Sunday", + "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", + "dateFormatItem-Gy": "U", + "field-era": "Era", + "days-standAlone-wide@localeAlias105": { + "bundle": "gregorian", + "target": "days-format-wide" } } //end v1.x content +, + "fr": true, + "ja": true, + "ko": true, + "nl": true, + "sv": true, + "th": true, + "zh-hant": true }); \ No newline at end of file diff --git a/cldr/nls/de/buddhist.js b/cldr/nls/de/buddhist.js index 10b8f7db40..75cbc89867 100644 --- a/cldr/nls/de/buddhist.js +++ b/cldr/nls/de/buddhist.js @@ -1,24 +1,16 @@ define( //begin v1.x content { - "field-dayperiod": "Tageshälfte", - "dateFormatItem-yyyyMMMEd": "E, d. MMM y G", - "dayPeriods-format-wide-pm": "nachm.", - "field-minute": "Minute", - "dateFormatItem-MMMEd": "E, d. MMM", - "field-day-relative+-1": "Gestern", - "field-weekday": "Wochentag", - "field-day-relative+-2": "Vorgestern", - "days-standAlone-wide": [ - "Sonntag", - "Montag", - "Dienstag", - "Mittwoch", - "Donnerstag", - "Freitag", - "Samstag" + "days-standAlone-short": [ + "So.", + "Mo.", + "Di.", + "Mi.", + "Do.", + "Fr.", + "Sa." ], - "months-standAlone-narrow": [ + "months-format-narrow": [ "J", "F", "M", @@ -32,59 +24,47 @@ define( "N", "D" ], - "field-era": "Epoche", - "dateFormatItem-Gy": "y G", - "field-hour": "Stunde", - "dayPeriods-format-wide-am": "vorm.", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ - "Jan", - "Feb", - "Mär", - "Apr", - "Mai", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Dez" - ], - "dateFormatItem-Ed": "E, d.", - "field-day-relative+0": "Heute", - "field-day-relative+1": "Morgen", - "days-standAlone-narrow": [ - "S", - "M", - "D", - "M", - "D", - "F", - "S" - ], - "eraAbbr": [ - "BE" + "field-second-relative+0": "jetzt", + "field-weekday": "Wochentag", + "field-wed-relative+0": "Diesen Mittwoch", + "field-wed-relative+1": "Nächsten Mittwoch", + "dateFormatItem-GyMMMEd": "E, d. MMM y G", + "dateFormatItem-MMMEd": "E, d. MMM", + "field-tue-relative+-1": "Letzten Dienstag", + "days-format-short": [ + "So.", + "Mo.", + "Di.", + "Mi.", + "Do.", + "Fr.", + "Sa." ], - "field-day-relative+2": "Übermorgen", - "dateFormatItem-GyMMMd": "d. MMM y G", "dateFormat-long": "d. MMMM y G", - "field-zone": "Zone", - "field-week-relative+-1": "Letzte Woche", - "dateFormat-medium": "dd.MM.y G", - "field-year-relative+0": "Dieses Jahr", - "field-year-relative+1": "Nächstes Jahr", - "quarters-standAlone-wide": [ - "1. Quartal", - "2. Quartal", - "3. Quartal", - "4. Quartal" + "field-fri-relative+-1": "Letzten Freitag", + "field-wed-relative+-1": "Letzten Mittwoch", + "months-format-wide": [ + "Januar", + "Februar", + "März", + "April", + "Mai", + "Juni", + "Juli", + "August", + "September", + "Oktober", + "November", + "Dezember" ], - "field-year-relative+-1": "Letztes Jahr", - "field-year": "Jahr", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "field-week": "Woche", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dayPeriods-format-wide-pm": "nachm.", + "dateFormat-full": "EEEE, d. MMMM y G", + "dateFormatItem-yyyyMEd": "E, d.M.y GGGGG", + "field-thu-relative+-1": "Letzten Donnerstag", + "dateFormatItem-Md": "d.M.", + "dayPeriods-format-wide-noon": "Mittag", + "field-era": "Epoche", "months-standAlone-wide": [ "Januar", "Februar", @@ -99,16 +79,18 @@ define( "November", "Dezember" ], - "dateFormatItem-yyyyMMMd": "d. MMM y G", - "dateFormatItem-yyyyMd": "d.M.y GGGGG", - "dateFormatItem-yyyyMEd": "E, d.M.y GGGGG", - "field-week-relative+0": "Diese Woche", - "dateFormatItem-MMMd": "d. MMM", - "field-week-relative+1": "Nächste Woche", + "quarters-format-wide": [ + "1. Quartal", + "2. Quartal", + "3. Quartal", + "4. Quartal" + ], + "field-year": "Jahr", + "field-hour": "Stunde", "months-format-abbr": [ "Jan.", "Feb.", - "Mär.", + "März", "Apr.", "Mai", "Juni", @@ -119,35 +101,83 @@ define( "Nov.", "Dez." ], - "field-month-relative+0": "Dieser Monat", - "field-month": "Monat", - "field-month-relative+1": "Nächster Monat", + "field-sat-relative+0": "Diesen Samstag", + "field-sat-relative+1": "Nächsten Samstag", + "field-day-relative+0": "Heute", + "field-thu-relative+0": "Diesen Donnerstag", + "field-day-relative+1": "Morgen", + "field-thu-relative+1": "Nächsten Donnerstag", + "dateFormatItem-GyMMMd": "d. MMM y G", + "field-day-relative+2": "Übermorgen", "dateFormatItem-H": "HH 'Uhr'", - "days-format-abbr": [ - "So.", - "Mo.", - "Di.", - "Mi.", - "Do.", - "Fr.", - "Sa." + "months-standAlone-abbr": [ + "Jan", + "Feb", + "Mär", + "Apr", + "Mai", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dez" ], - "days-format-narrow": [ - "S", - "M", - "D", - "M", - "D", - "F", - "S" + "quarters-standAlone-wide": [ + "1. Quartal", + "2. Quartal", + "3. Quartal", + "4. Quartal" ], - "field-second": "Sekunde", - "dateFormatItem-GyMMMEd": "E, d. MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "Tag", - "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d. MMM y G", + "days-standAlone-wide": [ + "Sonntag", + "Montag", + "Dienstag", + "Mittwoch", + "Donnerstag", + "Freitag", + "Samstag" + ], + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d. MMM y G", + "field-sun-relative+0": "Diesen Sonntag", + "field-sun-relative+1": "Nächsten Sonntag", + "eraAbbr": [ + "BE" + ], + "field-minute": "Minute", + "field-dayperiod": "Tageshälfte", + "days-standAlone-abbr": [ + "So", + "Mo", + "Di", + "Mi", + "Do", + "Fr", + "Sa" + ], + "field-day-relative+-1": "Gestern", + "field-day-relative+-2": "Vorgestern", + "dateFormatItem-MMMd": "d. MMM", "dateFormatItem-MEd": "E, d.M.", - "months-format-narrow": [ + "field-fri-relative+0": "Diesen Freitag", + "field-fri-relative+1": "Nächsten Freitag", + "field-day": "Tag", + "days-format-wide": [ + "Sonntag", + "Montag", + "Dienstag", + "Mittwoch", + "Donnerstag", + "Freitag", + "Samstag" + ], + "field-zone": "Zeitzone", + "dateFormatItem-y": "y G", + "months-standAlone-narrow": [ "J", "F", "M", @@ -161,7 +191,9 @@ define( "N", "D" ], - "days-standAlone-short": [ + "field-year-relative+-1": "Letztes Jahr", + "field-month-relative+-1": "Letzter Monat", + "days-format-abbr": [ "So.", "Mo.", "Di.", @@ -170,59 +202,50 @@ define( "Fr.", "Sa." ], - "days-standAlone-abbr": [ - "So", - "Mo", - "Di", - "Mi", - "Do", - "Fr", - "Sa" + "days-format-narrow": [ + "S", + "M", + "D", + "M", + "D", + "F", + "S" ], + "dateFormatItem-yyyyMd": "d.M.y GGGGG", + "field-month": "Monat", + "days-standAlone-narrow": [ + "S", + "M", + "D", + "M", + "D", + "F", + "S" + ], + "field-tue-relative+0": "Diesen Dienstag", + "field-tue-relative+1": "Nächsten Dienstag", + "dayPeriods-format-wide-am": "vorm.", + "field-mon-relative+0": "Diesen Montag", + "field-mon-relative+1": "Nächsten Montag", "dateFormat-short": "dd.MM.yy GGGGG", + "field-second": "Sekunde", + "field-sat-relative+-1": "Letzten Samstag", + "field-sun-relative+-1": "Letzten Sonntag", + "field-month-relative+0": "Dieser Monat", + "field-month-relative+1": "Nächster Monat", + "dateFormatItem-Ed": "E, d.", + "field-week": "Woche", + "dateFormat-medium": "dd.MM.y G", + "field-year-relative+0": "Dieses Jahr", + "field-week-relative+-1": "Letzte Woche", "dateFormatItem-yyyyM": "M.y GGGGG", - "dateFormat-full": "EEEE, d. MMMM y G", - "dateFormatItem-Md": "d.M.", - "months-format-wide": [ - "Januar", - "Februar", - "März", - "April", - "Mai", - "Juni", - "Juli", - "August", - "September", - "Oktober", - "November", - "Dezember" - ], - "days-format-short": [ - "So.", - "Mo.", - "Di.", - "Mi.", - "Do.", - "Fr.", - "Sa." - ], - "dateFormatItem-yyyyMMM": "MMM y G", - "field-month-relative+-1": "Letzter Monat", - "quarters-format-wide": [ - "1. Quartal", - "2. Quartal", - "3. Quartal", - "4. Quartal" - ], - "days-format-wide": [ - "Sonntag", - "Montag", - "Dienstag", - "Mittwoch", - "Donnerstag", - "Freitag", - "Samstag" - ] + "field-year-relative+1": "Nächstes Jahr", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "Letzten Montag", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "Diese Woche", + "field-week-relative+1": "Nächste Woche" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/de/chinese.js b/cldr/nls/de/chinese.js index 9e55c6421e..c9d881fbea 100644 --- a/cldr/nls/de/chinese.js +++ b/cldr/nls/de/chinese.js @@ -1,65 +1,87 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E, d. MMM U", - "field-dayperiod": "Tageshälfte", - "field-minute": "Minute", - "dateFormatItem-MMMEd": "E, d. MMM", - "field-day-relative+-1": "Gestern", - "dateFormatItem-hms": "h:mm:ss a", - "field-day-relative+-2": "Vorgestern", + "field-second-relative+0": "jetzt", "field-weekday": "Wochentag", - "dateFormatItem-MMM": "LLL", + "field-wed-relative+0": "Diesen Mittwoch", + "field-wed-relative+1": "Nächsten Mittwoch", + "dateFormatItem-GyMMMEd": "E, d. MMM U", + "dateFormatItem-MMMEd": "E, d. MMM", + "field-tue-relative+-1": "Letzten Dienstag", + "dateFormat-long": "d. MMMM U", + "field-fri-relative+-1": "Letzten Freitag", + "field-wed-relative+-1": "Letzten Mittwoch", + "dateFormatItem-yyyyQQQ": "QQQ U", + "dateFormat-full": "EEEE, d. MMMM U", + "dateFormatItem-yyyyMEd": "E, d.M.y", + "field-thu-relative+-1": "Letzten Donnerstag", + "dateFormatItem-Md": "d.M.", "field-era": "Epoche", - "dateFormatItem-Gy": "U", + "field-year": "Jahr", + "dateFormatItem-yyyyMMMM": "MMMM U", "field-hour": "Stunde", - "dateFormatItem-y": "U", - "dateFormatItem-yyyy": "U", - "dateFormatItem-Ed": "E, d.", + "field-sat-relative+0": "Diesen Samstag", + "field-sat-relative+1": "Nächsten Samstag", "field-day-relative+0": "Heute", + "field-thu-relative+0": "Diesen Donnerstag", "field-day-relative+1": "Morgen", - "field-day-relative+2": "Übermorgen", - "dateFormatItem-yyyyMMMM": "MMMM U", + "field-thu-relative+1": "Nächsten Donnerstag", "dateFormatItem-GyMMMd": "d. MMM U", - "dateFormat-long": "d. MMMM U", - "field-zone": "Zone", + "field-day-relative+2": "Übermorgen", + "dateFormatItem-H": "HH 'Uhr'", + "dateFormatItem-Gy": "U", + "dateFormatItem-yyyyMMMEd": "E, d. MMM U", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM U", + "dateFormatItem-yyyyMMMd": "d. MMM U", + "field-sun-relative+0": "Diesen Sonntag", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "Letzte Woche", - "dateFormat-medium": "dd.MM U", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "Dieses Jahr", - "field-year-relative+1": "Nächstes Jahr", - "field-year-relative+-1": "Letztes Jahr", + "field-sun-relative+1": "Nächsten Sonntag", + "field-minute": "Minute", + "field-dayperiod": "Tageshälfte", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ U", - "field-year": "Jahr", - "field-week": "Woche", - "dateFormatItem-yyyyMd": "d.M.y", - "dateFormatItem-yyyyMMMd": "d. MMM U", - "dateFormatItem-yyyyMEd": "E, d.M.y", + "field-day-relative+-1": "Gestern", + "dateFormatItem-h": "h a", + "field-day-relative+-2": "Vorgestern", "dateFormatItem-MMMd": "d. MMM", - "field-week-relative+0": "Diese Woche", - "field-week-relative+1": "Nächste Woche", - "field-month-relative+0": "Dieser Monat", - "dateFormatItem-H": "HH 'Uhr'", - "field-month": "Monat", - "field-month-relative+1": "Nächster Monat", - "dateFormatItem-M": "L", - "field-second": "Sekunde", - "dateFormatItem-GyMMMEd": "E, d. MMM U", - "dateFormatItem-GyMMM": "MMM U", - "field-day": "Tag", - "dateFormatItem-yyyyQQQ": "QQQ U", "dateFormatItem-MEd": "E, d.M.", + "field-fri-relative+0": "Diesen Freitag", + "field-fri-relative+1": "Nächsten Freitag", + "field-day": "Tag", + "field-zone": "Zeitzone", + "dateFormatItem-y": "U", + "field-year-relative+-1": "Letztes Jahr", + "field-month-relative+-1": "Letzter Monat", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "d.M.y", + "field-month": "Monat", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "Diesen Dienstag", + "field-tue-relative+1": "Nächsten Dienstag", + "field-mon-relative+0": "Diesen Montag", + "field-mon-relative+1": "Nächsten Montag", "dateFormat-short": "dd.MM.yy", + "field-second": "Sekunde", + "field-sat-relative+-1": "Letzten Samstag", + "field-sun-relative+-1": "Letzten Sonntag", + "field-month-relative+0": "Dieser Monat", + "field-month-relative+1": "Nächster Monat", + "dateFormatItem-Ed": "E, d.", + "field-week": "Woche", + "dateFormat-medium": "dd.MM U", + "field-year-relative+0": "Dieses Jahr", + "field-week-relative+-1": "Letzte Woche", "dateFormatItem-yyyyM": "M.y", - "dateFormat-full": "EEEE, d. MMMM U", - "dateFormatItem-Md": "d.M.", - "dateFormatItem-yyyyMMM": "MMM U", - "dateFormatItem-d": "d", - "field-month-relative+-1": "Letzter Monat", - "dateFormatItem-h": "h a" + "field-year-relative+1": "Nächstes Jahr", + "dateFormatItem-yyyyQQQQ": "QQQQ U", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM U", + "field-mon-relative+-1": "Letzten Montag", + "dateFormatItem-yyyy": "U", + "field-week-relative+0": "Diese Woche", + "field-week-relative+1": "Nächste Woche" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/de/currency.js b/cldr/nls/de/currency.js index d28f390f62..2b1821016f 100644 --- a/cldr/nls/de/currency.js +++ b/cldr/nls/de/currency.js @@ -9,7 +9,7 @@ define( "CNY_displayName": "Renminbi Yuan", "USD_symbol": "$", "AUD_displayName": "Australischer Dollar", - "JPY_displayName": "Japanische Yen", + "JPY_displayName": "Japanischer Yen", "CAD_symbol": "CA$", "USD_displayName": "US-Dollar", "EUR_symbol": "€", diff --git a/cldr/nls/de/generic.js b/cldr/nls/de/generic.js index 4a8578fc58..6f21d09472 100644 --- a/cldr/nls/de/generic.js +++ b/cldr/nls/de/generic.js @@ -1,69 +1,91 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E, d. MMM y G", - "field-dayperiod": "Tageshälfte", - "field-minute": "Minute", - "dateFormatItem-MMMEd": "E, d. MMM", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "Gestern", - "dateFormatItem-hms": "h:mm:ss a", - "field-day-relative+-2": "Vorgestern", + "field-second-relative+0": "jetzt", "field-weekday": "Wochentag", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "y G", + "field-wed-relative+0": "Diesen Mittwoch", + "field-wed-relative+1": "Nächsten Mittwoch", + "dateFormatItem-GyMMMEd": "E, d. MMM y G", + "dateFormatItem-MMMEd": "E, d. MMM", + "field-tue-relative+-1": "Letzten Dienstag", + "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "Letzten Freitag", + "field-wed-relative+-1": "Letzten Mittwoch", + "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "EEEE, d. MMMM y G", + "dateFormatItem-yyyyMEd": "E, d.M.y GGGGG", + "field-thu-relative+-1": "Letzten Donnerstag", + "dateFormatItem-Md": "d.M.", "field-era": "Epoche", + "field-year": "Jahr", + "dateFormatItem-yyyyMMMM": "MMMM y G", "field-hour": "Stunde", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E, d.", + "field-sat-relative+0": "Diesen Samstag", + "field-sat-relative+1": "Nächsten Samstag", "field-day-relative+0": "Heute", "field-day-relative+1": "Morgen", - "field-day-relative+2": "Übermorgen", + "field-thu-relative+0": "Diesen Donnerstag", "dateFormatItem-GyMMMd": "d. MMM y G", - "dateFormatItem-yyyyMMMM": "MMMM y G", - "dateFormat-long": "d. MMMM y G", - "field-zone": "Zone", + "field-day-relative+2": "Übermorgen", + "field-thu-relative+1": "Nächsten Donnerstag", + "dateFormatItem-H": "HH 'Uhr'", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d. MMM y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d. MMM y G", + "field-sun-relative+0": "Diesen Sonntag", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "Letzte Woche", - "dateFormat-medium": "dd.MM.y G", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "Dieses Jahr", - "field-year-relative+1": "Nächstes Jahr", - "field-year-relative+-1": "Letztes Jahr", + "field-sun-relative+1": "Nächsten Sonntag", + "field-minute": "Minute", + "field-dayperiod": "Tageshälfte", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "field-year": "Jahr", + "field-day-relative+-1": "Gestern", + "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", - "field-week": "Woche", - "dateFormatItem-yyyyMd": "d.M.y GGGGG", - "dateFormatItem-yyyyMMMd": "d. MMM y G", - "dateFormatItem-yyyyMEd": "E, d.M.y GGGGG", + "field-day-relative+-2": "Vorgestern", "dateFormatItem-MMMd": "d. MMM", - "field-week-relative+0": "Diese Woche", - "field-week-relative+1": "Nächste Woche", - "field-month-relative+0": "Dieser Monat", - "dateFormatItem-H": "HH 'Uhr'", - "field-month": "Monat", - "field-month-relative+1": "Nächster Monat", - "dateFormatItem-M": "L", - "field-second": "Sekunde", - "dateFormatItem-GyMMMEd": "E, d. MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "Tag", "dateFormatItem-MEd": "E, d.M.", - "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "Diesen Freitag", + "field-fri-relative+1": "Nächsten Freitag", + "field-day": "Tag", + "field-zone": "Zeitzone", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "Letztes Jahr", + "field-month-relative+-1": "Letzter Monat", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "d.M.y GGGGG", + "field-month": "Monat", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "Diesen Dienstag", + "field-tue-relative+1": "Nächsten Dienstag", + "field-mon-relative+0": "Diesen Montag", + "field-mon-relative+1": "Nächsten Montag", "dateFormat-short": "dd.MM.yy GGGGG", + "field-second": "Sekunde", + "field-sat-relative+-1": "Letzten Samstag", + "field-sun-relative+-1": "Letzten Sonntag", + "field-month-relative+0": "Dieser Monat", + "field-month-relative+1": "Nächster Monat", + "dateFormatItem-Ed": "E, d.", + "field-week": "Woche", + "dateFormat-medium": "dd.MM.y G", + "field-year-relative+0": "Dieses Jahr", + "field-week-relative+-1": "Letzte Woche", "dateFormatItem-yyyyM": "M.y GGGGG", - "dateFormat-full": "EEEE, d. MMMM y G", - "dateFormatItem-Md": "d.M.", - "dateFormatItem-yyyyMMM": "MMM y G", - "dateFormatItem-d": "d", - "field-month-relative+-1": "Letzter Monat", - "dateFormatItem-h": "h a" + "field-year-relative+1": "Nächstes Jahr", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "Letzten Montag", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "Diese Woche", + "field-week-relative+1": "Nächste Woche" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/de/gregorian.js b/cldr/nls/de/gregorian.js index 099a91c504..7567035a50 100644 --- a/cldr/nls/de/gregorian.js +++ b/cldr/nls/de/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "So.", "Mo.", @@ -24,6 +25,7 @@ define( "N", "D" ], + "field-second-relative+0": "jetzt", "quarters-standAlone-narrow": [ "1", "2", @@ -33,13 +35,18 @@ define( "field-weekday": "Wochentag", "dateFormatItem-yQQQ": "QQQ y", "dateFormatItem-yMEd": "E, d.M.y", + "field-wed-relative+0": "Diesen Mittwoch", + "field-wed-relative+1": "Nächsten Mittwoch", "dateFormatItem-GyMMMEd": "E, d. MMM y G", "dateFormatItem-MMMEd": "E, d. MMM", "eraNarrow": [ "v. Chr.", - "n. Chr." + "n. Chr.", + "n. Chr.", + "u. Z." ], "dateFormatItem-yMM": "MM.y", + "field-tue-relative+-1": "Letzten Dienstag", "dayPeriods-format-wide-earlyMorning": "morgens", "dayPeriods-format-wide-morning": "vormittags", "days-format-short": [ @@ -52,6 +59,8 @@ define( "Sa." ], "dateFormat-long": "d. MMMM y", + "field-fri-relative+-1": "Letzten Freitag", + "field-wed-relative+-1": "Letzten Mittwoch", "months-format-wide": [ "Januar", "Februar", @@ -70,6 +79,7 @@ define( "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "nachm.", "dateFormat-full": "EEEE, d. MMMM y", + "field-thu-relative+-1": "Letzten Donnerstag", "dateFormatItem-Md": "d.M.", "dayPeriods-format-wide-noon": "Mittag", "dateFormatItem-yMd": "d.M.y", @@ -105,7 +115,7 @@ define( "months-format-abbr": [ "Jan.", "Feb.", - "Mär.", + "März", "Apr.", "Mai", "Juni", @@ -116,9 +126,13 @@ define( "Nov.", "Dez." ], + "field-sat-relative+0": "Diesen Samstag", + "field-sat-relative+1": "Nächsten Samstag", "timeFormat-full": "HH:mm:ss zzzz", "field-day-relative+0": "Heute", + "field-thu-relative+0": "Diesen Donnerstag", "field-day-relative+1": "Morgen", + "field-thu-relative+1": "Nächsten Donnerstag", "dateFormatItem-GyMMMd": "d. MMM y G", "field-day-relative+2": "Übermorgen", "dateFormatItem-H": "HH 'Uhr'", @@ -161,7 +175,9 @@ define( ], "timeFormat-medium": "HH:mm:ss", "dateFormatItem-yMMdd": "dd.MM.y", + "field-sun-relative+0": "Diesen Sonntag", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "Nächsten Sonntag", "quarters-standAlone-abbr": [ "Q1", "Q2", @@ -170,7 +186,9 @@ define( ], "eraAbbr": [ "v. Chr.", - "n. Chr." + "v. u. Z.", + "n. Chr.", + "u. Z." ], "field-minute": "Minute", "field-dayperiod": "Tageshälfte", @@ -199,7 +217,9 @@ define( "dateFormatItem-MMMd": "d. MMM", "dateFormatItem-MEd": "E, d.M.", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "Diesen Freitag", "dateFormatItem-yMMMM": "MMMM y", + "field-fri-relative+1": "Nächsten Freitag", "field-day": "Tag", "days-format-wide": [ "Sonntag", @@ -210,7 +230,7 @@ define( "Freitag", "Samstag" ], - "field-zone": "Zone", + "field-zone": "Zeitzone", "dateFormatItem-y": "y", "months-standAlone-narrow": [ "J", @@ -240,7 +260,9 @@ define( ], "eraNames": [ "v. Chr.", - "n. Chr." + "n. Chr.", + "n. Chr.", + "u. Z." ], "dateFormatItem-yMMMd": "d. MMM y", "days-format-narrow": [ @@ -263,17 +285,26 @@ define( ], "dateFormatItem-MMM": "LLL", "field-month": "Monat", + "field-tue-relative+0": "Diesen Dienstag", + "field-tue-relative+1": "Nächsten Dienstag", "dayPeriods-format-wide-am": "vorm.", "dateFormatItem-MMMMEd": "E, d. MMMM", - "dateFormatItem-MMMMdd": "dd. MMMM", + "dateFormatItem-EHm": "E, HH:mm", + "field-mon-relative+0": "Diesen Montag", + "field-mon-relative+1": "Nächsten Montag", "dateFormat-short": "dd.MM.yy", "dateFormatItem-MMd": "d.MM.", "dayPeriods-format-wide-afternoon": "nachmittags", + "dateFormatItem-EHms": "E, HH:mm:ss", + "dateFormatItem-Ehms": "E, h:mm:ss a", "field-second": "Sekunde", + "field-sat-relative+-1": "Letzten Samstag", "dateFormatItem-yMMMEd": "E, d. MMM y", + "field-sun-relative+-1": "Letzten Sonntag", "field-month-relative+0": "Dieser Monat", "field-month-relative+1": "Nächster Monat", "dateFormatItem-Ed": "E, d.", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "Woche", "dateFormat-medium": "dd.MM.y", "field-year-relative+0": "Dieses Jahr", @@ -283,6 +314,7 @@ define( "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "Letzten Montag", "field-week-relative+0": "Diese Woche", "field-week-relative+1": "Nächste Woche" } diff --git a/cldr/nls/de/hebrew.js b/cldr/nls/de/hebrew.js index 277687d8ce..d0638246a2 100644 --- a/cldr/nls/de/hebrew.js +++ b/cldr/nls/de/hebrew.js @@ -1,72 +1,114 @@ define( //begin v1.x content { - "field-dayperiod": "Tageshälfte", - "dateFormatItem-yyyyMMMEd": "E, d. MMM y G", - "dayPeriods-format-wide-pm": "nachm.", - "field-minute": "Minute", - "dateFormatItem-MMMEd": "E, d. MMM", - "field-day-relative+-1": "Gestern", + "days-standAlone-short": [ + "So.", + "Mo.", + "Di.", + "Mi.", + "Do.", + "Fr.", + "Sa." + ], + "field-second-relative+0": "jetzt", "field-weekday": "Wochentag", - "field-day-relative+-2": "Vorgestern", - "days-standAlone-wide": [ - "Sonntag", - "Montag", - "Dienstag", - "Mittwoch", - "Donnerstag", - "Freitag", - "Samstag" + "field-wed-relative+0": "Diesen Mittwoch", + "field-wed-relative+1": "Nächsten Mittwoch", + "dateFormatItem-GyMMMEd": "E, d. MMM y G", + "dateFormatItem-MMMEd": "E, d. MMM", + "field-tue-relative+-1": "Letzten Dienstag", + "days-format-short": [ + "So.", + "Mo.", + "Di.", + "Mi.", + "Do.", + "Fr.", + "Sa." ], + "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "Letzten Freitag", + "field-wed-relative+-1": "Letzten Mittwoch", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dayPeriods-format-wide-pm": "nachm.", + "dateFormat-full": "EEEE, d. MMMM y G", + "dateFormatItem-yyyyMEd": "E, d.M.y GGGGG", + "field-thu-relative+-1": "Letzten Donnerstag", + "dateFormatItem-Md": "d.M.", + "dayPeriods-format-wide-noon": "Mittag", "field-era": "Epoche", - "dateFormatItem-Gy": "y G", + "quarters-format-wide": [ + "1. Quartal", + "2. Quartal", + "3. Quartal", + "4. Quartal" + ], + "field-year": "Jahr", "field-hour": "Stunde", - "dayPeriods-format-wide-am": "vorm.", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E, d.", + "field-sat-relative+0": "Diesen Samstag", + "field-sat-relative+1": "Nächsten Samstag", "field-day-relative+0": "Heute", + "field-thu-relative+0": "Diesen Donnerstag", "field-day-relative+1": "Morgen", - "days-standAlone-narrow": [ - "S", - "M", - "D", - "M", - "D", - "F", - "S" - ], - "eraAbbr": [ - "AM" - ], - "field-day-relative+2": "Übermorgen", + "field-thu-relative+1": "Nächsten Donnerstag", "dateFormatItem-GyMMMd": "d. MMM y G", - "dateFormat-long": "d. MMMM y G", - "field-zone": "Zone", - "field-week-relative+-1": "Letzte Woche", - "dateFormat-medium": "dd.MM.y G", - "field-year-relative+0": "Dieses Jahr", - "field-year-relative+1": "Nächstes Jahr", + "field-day-relative+2": "Übermorgen", + "dateFormatItem-H": "HH 'Uhr'", "quarters-standAlone-wide": [ "1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal" ], - "field-year-relative+-1": "Letztes Jahr", - "field-year": "Jahr", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "field-week": "Woche", - "dateFormatItem-yyyyMd": "d.M.y GGGGG", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d. MMM y G", + "days-standAlone-wide": [ + "Sonntag", + "Montag", + "Dienstag", + "Mittwoch", + "Donnerstag", + "Freitag", + "Samstag" + ], + "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d. MMM y G", - "dateFormatItem-yyyyMEd": "E, d.M.y GGGGG", + "field-sun-relative+0": "Diesen Sonntag", + "field-sun-relative+1": "Nächsten Sonntag", + "eraAbbr": [ + "AM" + ], + "field-minute": "Minute", + "field-dayperiod": "Tageshälfte", + "days-standAlone-abbr": [ + "So", + "Mo", + "Di", + "Mi", + "Do", + "Fr", + "Sa" + ], + "field-day-relative+-1": "Gestern", + "field-day-relative+-2": "Vorgestern", "dateFormatItem-MMMd": "d. MMM", - "field-week-relative+0": "Diese Woche", - "field-week-relative+1": "Nächste Woche", - "field-month-relative+0": "Dieser Monat", - "field-month": "Monat", - "field-month-relative+1": "Nächster Monat", - "dateFormatItem-H": "HH 'Uhr'", + "dateFormatItem-MEd": "E, d.M.", + "field-fri-relative+0": "Diesen Freitag", + "field-fri-relative+1": "Nächsten Freitag", + "field-day": "Tag", + "days-format-wide": [ + "Sonntag", + "Montag", + "Dienstag", + "Mittwoch", + "Donnerstag", + "Freitag", + "Samstag" + ], + "field-zone": "Zeitzone", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "Letztes Jahr", + "field-month-relative+-1": "Letzter Monat", "days-format-abbr": [ "So.", "Mo.", @@ -85,60 +127,41 @@ define( "F", "S" ], - "field-second": "Sekunde", - "dateFormatItem-GyMMMEd": "E, d. MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "Tag", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E, d.M.", - "days-standAlone-short": [ - "So.", - "Mo.", - "Di.", - "Mi.", - "Do.", - "Fr.", - "Sa." - ], - "days-standAlone-abbr": [ - "So", - "Mo", - "Di", - "Mi", - "Do", - "Fr", - "Sa" + "dateFormatItem-yyyyMd": "d.M.y GGGGG", + "field-month": "Monat", + "days-standAlone-narrow": [ + "S", + "M", + "D", + "M", + "D", + "F", + "S" ], + "field-tue-relative+0": "Diesen Dienstag", + "field-tue-relative+1": "Nächsten Dienstag", + "dayPeriods-format-wide-am": "vorm.", + "field-mon-relative+0": "Diesen Montag", + "field-mon-relative+1": "Nächsten Montag", "dateFormat-short": "dd.MM.yy GGGGG", + "field-second": "Sekunde", + "field-sat-relative+-1": "Letzten Samstag", + "field-sun-relative+-1": "Letzten Sonntag", + "field-month-relative+0": "Dieser Monat", + "field-month-relative+1": "Nächster Monat", + "dateFormatItem-Ed": "E, d.", + "field-week": "Woche", + "dateFormat-medium": "dd.MM.y G", + "field-year-relative+0": "Dieses Jahr", + "field-week-relative+-1": "Letzte Woche", "dateFormatItem-yyyyM": "M.y GGGGG", - "dateFormatItem-Md": "d.M.", - "dateFormat-full": "EEEE, d. MMMM y G", - "days-format-short": [ - "So.", - "Mo.", - "Di.", - "Mi.", - "Do.", - "Fr.", - "Sa." - ], - "dateFormatItem-yyyyMMM": "MMM y G", - "field-month-relative+-1": "Letzter Monat", - "quarters-format-wide": [ - "1. Quartal", - "2. Quartal", - "3. Quartal", - "4. Quartal" - ], - "days-format-wide": [ - "Sonntag", - "Montag", - "Dienstag", - "Mittwoch", - "Donnerstag", - "Freitag", - "Samstag" - ] + "field-year-relative+1": "Nächstes Jahr", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "Letzten Montag", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "Diese Woche", + "field-week-relative+1": "Nächste Woche" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/de/islamic.js b/cldr/nls/de/islamic.js index bce443a226..1603eb8ab2 100644 --- a/cldr/nls/de/islamic.js +++ b/cldr/nls/de/islamic.js @@ -1,72 +1,114 @@ define( //begin v1.x content { - "field-dayperiod": "Tageshälfte", - "dateFormatItem-yyyyMMMEd": "E, d. MMM y G", - "dayPeriods-format-wide-pm": "nachm.", - "field-minute": "Minute", - "dateFormatItem-MMMEd": "E, d. MMM", - "field-day-relative+-1": "Gestern", + "days-standAlone-short": [ + "So.", + "Mo.", + "Di.", + "Mi.", + "Do.", + "Fr.", + "Sa." + ], + "field-second-relative+0": "jetzt", "field-weekday": "Wochentag", - "field-day-relative+-2": "Vorgestern", - "days-standAlone-wide": [ - "Sonntag", - "Montag", - "Dienstag", - "Mittwoch", - "Donnerstag", - "Freitag", - "Samstag" + "field-wed-relative+0": "Diesen Mittwoch", + "field-wed-relative+1": "Nächsten Mittwoch", + "dateFormatItem-GyMMMEd": "E, d. MMM y G", + "dateFormatItem-MMMEd": "E, d. MMM", + "field-tue-relative+-1": "Letzten Dienstag", + "days-format-short": [ + "So.", + "Mo.", + "Di.", + "Mi.", + "Do.", + "Fr.", + "Sa." ], + "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "Letzten Freitag", + "field-wed-relative+-1": "Letzten Mittwoch", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dayPeriods-format-wide-pm": "nachm.", + "dateFormat-full": "EEEE, d. MMMM y G", + "dateFormatItem-yyyyMEd": "E, d.M.y GGGGG", + "field-thu-relative+-1": "Letzten Donnerstag", + "dateFormatItem-Md": "d.M.", + "dayPeriods-format-wide-noon": "Mittag", "field-era": "Epoche", - "dateFormatItem-Gy": "y G", + "quarters-format-wide": [ + "1. Quartal", + "2. Quartal", + "3. Quartal", + "4. Quartal" + ], + "field-year": "Jahr", "field-hour": "Stunde", - "dayPeriods-format-wide-am": "vorm.", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E, d.", + "field-sat-relative+0": "Diesen Samstag", + "field-sat-relative+1": "Nächsten Samstag", "field-day-relative+0": "Heute", + "field-thu-relative+0": "Diesen Donnerstag", "field-day-relative+1": "Morgen", - "days-standAlone-narrow": [ - "S", - "M", - "D", - "M", - "D", - "F", - "S" - ], - "eraAbbr": [ - "AH" - ], - "field-day-relative+2": "Übermorgen", + "field-thu-relative+1": "Nächsten Donnerstag", "dateFormatItem-GyMMMd": "d. MMM y G", - "dateFormat-long": "d. MMMM y G", - "field-zone": "Zone", - "field-week-relative+-1": "Letzte Woche", - "dateFormat-medium": "dd.MM.y G", - "field-year-relative+0": "Dieses Jahr", - "field-year-relative+1": "Nächstes Jahr", + "field-day-relative+2": "Übermorgen", + "dateFormatItem-H": "HH 'Uhr'", "quarters-standAlone-wide": [ "1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal" ], - "field-year-relative+-1": "Letztes Jahr", - "field-year": "Jahr", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "field-week": "Woche", - "dateFormatItem-yyyyMd": "d.M.y GGGGG", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d. MMM y G", + "days-standAlone-wide": [ + "Sonntag", + "Montag", + "Dienstag", + "Mittwoch", + "Donnerstag", + "Freitag", + "Samstag" + ], + "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d. MMM y G", - "dateFormatItem-yyyyMEd": "E, d.M.y GGGGG", - "field-week-relative+0": "Diese Woche", + "field-sun-relative+0": "Diesen Sonntag", + "field-sun-relative+1": "Nächsten Sonntag", + "eraAbbr": [ + "AH" + ], + "field-minute": "Minute", + "field-dayperiod": "Tageshälfte", + "days-standAlone-abbr": [ + "So", + "Mo", + "Di", + "Mi", + "Do", + "Fr", + "Sa" + ], + "field-day-relative+-1": "Gestern", + "field-day-relative+-2": "Vorgestern", "dateFormatItem-MMMd": "d. MMM", - "field-week-relative+1": "Nächste Woche", - "field-month-relative+0": "Dieser Monat", - "field-month": "Monat", - "field-month-relative+1": "Nächster Monat", - "dateFormatItem-H": "HH 'Uhr'", + "dateFormatItem-MEd": "E, d.M.", + "field-fri-relative+0": "Diesen Freitag", + "field-fri-relative+1": "Nächsten Freitag", + "field-day": "Tag", + "days-format-wide": [ + "Sonntag", + "Montag", + "Dienstag", + "Mittwoch", + "Donnerstag", + "Freitag", + "Samstag" + ], + "field-zone": "Zeitzone", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "Letztes Jahr", + "field-month-relative+-1": "Letzter Monat", "days-format-abbr": [ "So.", "Mo.", @@ -85,60 +127,41 @@ define( "F", "S" ], - "field-second": "Sekunde", - "dateFormatItem-GyMMMEd": "E, d. MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "Tag", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E, d.M.", - "days-standAlone-short": [ - "So.", - "Mo.", - "Di.", - "Mi.", - "Do.", - "Fr.", - "Sa." - ], - "days-standAlone-abbr": [ - "So", - "Mo", - "Di", - "Mi", - "Do", - "Fr", - "Sa" + "dateFormatItem-yyyyMd": "d.M.y GGGGG", + "field-month": "Monat", + "days-standAlone-narrow": [ + "S", + "M", + "D", + "M", + "D", + "F", + "S" ], + "field-tue-relative+0": "Diesen Dienstag", + "field-tue-relative+1": "Nächsten Dienstag", + "dayPeriods-format-wide-am": "vorm.", + "field-mon-relative+0": "Diesen Montag", + "field-mon-relative+1": "Nächsten Montag", "dateFormat-short": "dd.MM.yy GGGGG", + "field-second": "Sekunde", + "field-sat-relative+-1": "Letzten Samstag", + "field-sun-relative+-1": "Letzten Sonntag", + "field-month-relative+0": "Dieser Monat", + "field-month-relative+1": "Nächster Monat", + "dateFormatItem-Ed": "E, d.", + "field-week": "Woche", + "dateFormat-medium": "dd.MM.y G", + "field-year-relative+0": "Dieses Jahr", + "field-week-relative+-1": "Letzte Woche", "dateFormatItem-yyyyM": "M.y GGGGG", - "dateFormat-full": "EEEE, d. MMMM y G", - "dateFormatItem-Md": "d.M.", - "days-format-short": [ - "So.", - "Mo.", - "Di.", - "Mi.", - "Do.", - "Fr.", - "Sa." - ], - "dateFormatItem-yyyyMMM": "MMM y G", - "field-month-relative+-1": "Letzter Monat", - "quarters-format-wide": [ - "1. Quartal", - "2. Quartal", - "3. Quartal", - "4. Quartal" - ], - "days-format-wide": [ - "Sonntag", - "Montag", - "Dienstag", - "Mittwoch", - "Donnerstag", - "Freitag", - "Samstag" - ] + "field-year-relative+1": "Nächstes Jahr", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "Letzten Montag", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "Diese Woche", + "field-week-relative+1": "Nächste Woche" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/de/japanese.js b/cldr/nls/de/japanese.js index b85ad907ed..7221da8b42 100644 --- a/cldr/nls/de/japanese.js +++ b/cldr/nls/de/japanese.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "dateFormat-medium": "dd.MM.y G", - "field-second": "Sekunde", - "field-year-relative+-1": "Letztes Jahr", - "field-week": "Woche", - "field-month-relative+-1": "Letzter Monat", + "field-sat-relative+0": "Diesen Samstag", + "field-sat-relative+1": "Nächsten Samstag", + "field-dayperiod": "Tageshälfte", + "field-sun-relative+-1": "Letzten Sonntag", + "field-mon-relative+-1": "Letzten Montag", + "field-minute": "Minute", "field-day-relative+-1": "Gestern", + "field-weekday": "Wochentag", "field-day-relative+-2": "Vorgestern", - "field-year": "Jahr", - "field-week-relative+0": "Diese Woche", - "field-week-relative+1": "Nächste Woche", - "field-minute": "Minute", - "field-week-relative+-1": "Letzte Woche", - "field-day-relative+0": "Heute", + "field-era": "Epoche", "field-hour": "Stunde", + "field-sun-relative+0": "Diesen Sonntag", + "field-sun-relative+1": "Nächsten Sonntag", + "field-wed-relative+-1": "Letzten Mittwoch", + "field-day-relative+0": "Heute", "field-day-relative+1": "Morgen", - "dateFormat-long": "d. MMMM y G", "field-day-relative+2": "Übermorgen", - "field-day": "Tag", + "dateFormat-long": "d. MMMM y G", + "field-tue-relative+0": "Diesen Dienstag", + "field-zone": "Zeitzone", + "field-tue-relative+1": "Nächsten Dienstag", + "field-week-relative+-1": "Letzte Woche", + "dateFormat-medium": "dd.MM.y G", + "field-year-relative+0": "Dieses Jahr", + "field-year-relative+1": "Nächstes Jahr", + "field-sat-relative+-1": "Letzten Samstag", + "field-year-relative+-1": "Letztes Jahr", + "field-year": "Jahr", + "field-fri-relative+0": "Diesen Freitag", + "field-fri-relative+1": "Nächsten Freitag", + "field-week": "Woche", + "field-week-relative+0": "Diese Woche", + "field-week-relative+1": "Nächste Woche", "field-month-relative+0": "Dieser Monat", - "field-month-relative+1": "Nächster Monat", - "field-dayperiod": "Tageshälfte", "field-month": "Monat", + "field-month-relative+1": "Nächster Monat", + "field-fri-relative+-1": "Letzten Freitag", + "field-second": "Sekunde", + "field-tue-relative+-1": "Letzten Dienstag", + "field-day": "Tag", + "field-mon-relative+0": "Diesen Montag", + "field-mon-relative+1": "Nächsten Montag", + "field-thu-relative+0": "Diesen Donnerstag", + "field-second-relative+0": "jetzt", "dateFormat-short": "dd.MM.yy GGGGG", - "field-era": "Epoche", - "field-year-relative+0": "Dieses Jahr", - "field-year-relative+1": "Nächstes Jahr", + "field-thu-relative+1": "Nächsten Donnerstag", "dateFormat-full": "EEEE, d. MMMM y G", - "field-weekday": "Wochentag", - "field-zone": "Zone" + "field-wed-relative+0": "Diesen Mittwoch", + "field-wed-relative+1": "Nächsten Mittwoch", + "field-month-relative+-1": "Letzter Monat", + "field-thu-relative+-1": "Letzten Donnerstag" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/de/number.js b/cldr/nls/de/number.js index c2d93ae8e8..770568a710 100644 --- a/cldr/nls/de/number.js +++ b/cldr/nls/de/number.js @@ -10,6 +10,7 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "·", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", diff --git a/cldr/nls/de/roc.js b/cldr/nls/de/roc.js index debceb7146..589169da1a 100644 --- a/cldr/nls/de/roc.js +++ b/cldr/nls/de/roc.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "field-second": "Sekunde", - "field-year-relative+-1": "Letztes Jahr", - "field-week": "Woche", - "field-month-relative+-1": "Letzter Monat", + "field-sat-relative+0": "Diesen Samstag", + "field-sat-relative+1": "Nächsten Samstag", + "field-dayperiod": "Tageshälfte", + "field-sun-relative+-1": "Letzten Sonntag", + "field-mon-relative+-1": "Letzten Montag", + "field-minute": "Minute", "field-day-relative+-1": "Gestern", + "field-weekday": "Wochentag", "field-day-relative+-2": "Vorgestern", - "field-year": "Jahr", - "field-week-relative+0": "Diese Woche", - "field-week-relative+1": "Nächste Woche", - "field-minute": "Minute", - "field-week-relative+-1": "Letzte Woche", - "field-day-relative+0": "Heute", + "field-era": "Epoche", "field-hour": "Stunde", + "field-sun-relative+0": "Diesen Sonntag", + "field-sun-relative+1": "Nächsten Sonntag", + "field-wed-relative+-1": "Letzten Mittwoch", + "field-day-relative+0": "Heute", "field-day-relative+1": "Morgen", - "field-day-relative+2": "Übermorgen", - "field-day": "Tag", - "field-month-relative+0": "Dieser Monat", - "field-month-relative+1": "Nächster Monat", - "field-dayperiod": "Tageshälfte", - "field-month": "Monat", - "field-era": "Epoche", - "field-year-relative+0": "Dieses Jahr", - "field-year-relative+1": "Nächstes Jahr", "eraAbbr": [ "Before R.O.C.", "Minguo" ], - "field-weekday": "Wochentag", - "field-zone": "Zone" + "field-day-relative+2": "Übermorgen", + "field-tue-relative+0": "Diesen Dienstag", + "field-zone": "Zeitzone", + "field-tue-relative+1": "Nächsten Dienstag", + "field-week-relative+-1": "Letzte Woche", + "field-year-relative+0": "Dieses Jahr", + "field-year-relative+1": "Nächstes Jahr", + "field-sat-relative+-1": "Letzten Samstag", + "field-year-relative+-1": "Letztes Jahr", + "field-year": "Jahr", + "field-fri-relative+0": "Diesen Freitag", + "field-fri-relative+1": "Nächsten Freitag", + "field-week": "Woche", + "field-week-relative+0": "Diese Woche", + "field-week-relative+1": "Nächste Woche", + "field-month-relative+0": "Dieser Monat", + "field-month": "Monat", + "field-month-relative+1": "Nächster Monat", + "field-fri-relative+-1": "Letzten Freitag", + "field-second": "Sekunde", + "field-tue-relative+-1": "Letzten Dienstag", + "field-day": "Tag", + "field-mon-relative+0": "Diesen Montag", + "field-mon-relative+1": "Nächsten Montag", + "field-thu-relative+0": "Diesen Donnerstag", + "field-second-relative+0": "jetzt", + "field-thu-relative+1": "Nächsten Donnerstag", + "field-wed-relative+0": "Diesen Mittwoch", + "field-wed-relative+1": "Nächsten Mittwoch", + "field-month-relative+-1": "Letzter Monat", + "field-thu-relative+-1": "Letzten Donnerstag" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/el/buddhist.js b/cldr/nls/el/buddhist.js index addf542815..a4fe8fd9ad 100644 --- a/cldr/nls/el/buddhist.js +++ b/cldr/nls/el/buddhist.js @@ -1,26 +1,16 @@ define( //begin v1.x content { - "dateFormatItem-yM": "M/y", - "field-dayperiod": "π.μ./μ.μ.", - "dayPeriods-format-wide-pm": "μ.μ.", - "field-minute": "Λεπτό", - "dateFormatItem-MMMEd": "E, d MMM", - "dateTimeFormat-full": "{1} - {0}", - "field-day-relative+-1": "Χτες", - "field-weekday": "Ημέρα εβδομάδας", - "field-day-relative+-2": "Προχτές", - "days-standAlone-wide": [ - "Κυριακή", - "Δευτέρα", - "Τρίτη", - "Τετάρτη", - "Πέμπτη", - "Παρασκευή", - "Σάββατο" + "days-standAlone-short": [ + "Κυ", + "Δε", + "Τρ", + "Τε", + "Πέ", + "Πα", + "Σά" ], - "dateFormatItem-MMM": "LLL", - "months-standAlone-narrow": [ + "months-format-narrow": [ "Ι", "Φ", "Μ", @@ -34,66 +24,46 @@ define( "Ν", "Δ" ], - "dateTimeFormat-short": "{1} - {0}", - "field-era": "Περίοδος", - "dateFormatItem-Gy": "y G", - "field-hour": "Ώρα", - "dayPeriods-format-wide-am": "π.μ.", - "dateTimeFormat-medium": "{1} - {0}", - "quarters-standAlone-abbr": [ - "Τ1", - "Τ2", - "Τ3", - "Τ4" - ], - "dateFormatItem-y": "y G", - "timeFormat-full": "h:mm:ss a zzzz", - "months-standAlone-abbr": [ - "Ιαν", - "Φεβ", - "Μάρ", - "Απρ", - "Μάι", - "Ιούν", - "Ιούλ", - "Αύγ", - "Σεπ", - "Οκτ", - "Νοέ", - "Δεκ" - ], - "dateFormatItem-Ed": "E d", - "dateFormatItem-yMMM": "LLL, y G", - "field-day-relative+0": "Σήμερα", - "field-day-relative+1": "Αύριο", - "days-standAlone-narrow": [ - "Κ", - "Δ", - "Τ", - "Τ", - "Π", - "Π", - "Σ" + "field-second-relative+0": "τώρα", + "field-weekday": "Ημέρα εβδομάδας", + "field-wed-relative+0": "αυτήν την Τετάρτη", + "field-wed-relative+1": "επόμενη Τετάρτη", + "dateFormatItem-GyMMMEd": "E, d MMM y G", + "dateFormatItem-MMMEd": "E, d MMM", + "field-tue-relative+-1": "προηγούμενη Τρίτη", + "days-format-short": [ + "Κυ", + "Δε", + "Τρ", + "Τε", + "Πέ", + "Πα", + "Σά" ], - "field-day-relative+2": "Μεθαύριο", - "dateFormat-long": "d MMMM, y G", - "timeFormat-medium": "h:mm:ss a", - "field-zone": "Ζώνη", - "field-week-relative+-1": "Προηγούμενη εβδομάδα", - "dateFormat-medium": "d MMM, y G", - "field-year-relative+0": "Φέτος", - "field-year-relative+1": "Επόμενο έτος", - "dateFormatItem-yMd": "d/M/y", - "quarters-standAlone-wide": [ - "1ο τρίμηνο", - "2ο τρίμηνο", - "3ο τρίμηνο", - "4ο τρίμηνο" + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "προηγούμενη Παρασκευή", + "field-wed-relative+-1": "προηγούμενη Τετάρτη", + "months-format-wide": [ + "Ιανουαρίου", + "Φεβρουαρίου", + "Μαρτίου", + "Απριλίου", + "Μαΐου", + "Ιουνίου", + "Ιουλίου", + "Αυγούστου", + "Σεπτεμβρίου", + "Οκτωβρίου", + "Νοεμβρίου", + "Δεκεμβρίου" ], - "field-year-relative+-1": "Προηγούμενο έτος", - "field-year": "Έτος", - "dateTimeFormat-long": "{1} - {0}", - "field-week": "Εβδομάδα", + "dateTimeFormat-medium": "{1} - {0}", + "dayPeriods-format-wide-pm": "μ.μ.", + "dateFormat-full": "EEEE, d MMMM y G", + "dateFormatItem-yyyyMEd": "E, d/M/y G", + "field-thu-relative+-1": "επόμενη Πέμπτη", + "dateFormatItem-Md": "d/M", + "field-era": "Περίοδος", "months-standAlone-wide": [ "Ιανουάριος", "Φεβρουάριος", @@ -108,16 +78,22 @@ define( "Νοέμβριος", "Δεκέμβριος" ], - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "Αυτήν την εβδομάδα", - "field-week-relative+1": "Επόμενη εβδομάδα", + "timeFormat-short": "h:mm a", + "quarters-format-wide": [ + "1ο τρίμηνο", + "2ο τρίμηνο", + "3ο τρίμηνο", + "4ο τρίμηνο" + ], "timeFormat-long": "h:mm:ss a z", + "field-year": "Έτος", + "field-hour": "Ώρα", "months-format-abbr": [ "Ιαν", "Φεβ", "Μαρ", "Απρ", - "Μαϊ", + "Μαΐ", "Ιουν", "Ιουλ", "Αυγ", @@ -126,17 +102,69 @@ define( "Νοε", "Δεκ" ], - "field-month-relative+0": "Τρέχων μήνας", - "field-month": "Μήνας", - "field-month-relative+1": "Επόμενος μήνας", - "timeFormat-short": "h:mm a", + "field-sat-relative+0": "αυτό το Σάββατο", + "field-sat-relative+1": "επόμενο Σάββατο", + "timeFormat-full": "h:mm:ss a zzzz", + "field-day-relative+0": "σήμερα", + "field-thu-relative+0": "αυτήν την Πέμπτη", + "field-day-relative+1": "αύριο", + "field-thu-relative+1": "επόμενη Πέμπτη", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "μεθαύριο", + "months-standAlone-abbr": [ + "Ιαν", + "Φεβ", + "Μάρ", + "Απρ", + "Μάι", + "Ιούν", + "Ιούλ", + "Αύγ", + "Σεπ", + "Οκτ", + "Νοέ", + "Δεκ" + ], "quarters-format-abbr": [ "Τ1", "Τ2", "Τ3", "Τ4" ], - "days-format-abbr": [ + "quarters-standAlone-wide": [ + "1ο τρίμηνο", + "2ο τρίμηνο", + "3ο τρίμηνο", + "4ο τρίμηνο" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d MMM y G", + "days-standAlone-wide": [ + "Κυριακή", + "Δευτέρα", + "Τρίτη", + "Τετάρτη", + "Πέμπτη", + "Παρασκευή", + "Σάββατο" + ], + "dateFormatItem-yyyyMMM": "LLL y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "timeFormat-medium": "h:mm:ss a", + "field-sun-relative+0": "αυτήν την Κυριακή", + "field-sun-relative+1": "επόμενη Κυριακή", + "quarters-standAlone-abbr": [ + "Τ1", + "Τ2", + "Τ3", + "Τ4" + ], + "eraAbbr": [ + "BE" + ], + "field-minute": "Λεπτό", + "field-dayperiod": "π.μ./μ.μ.", + "days-standAlone-abbr": [ "Κυρ", "Δευ", "Τρί", @@ -145,20 +173,27 @@ define( "Παρ", "Σάβ" ], - "days-format-narrow": [ - "Κ", - "Δ", - "Τ", - "Τ", - "Π", - "Π", - "Σ" - ], - "dateFormatItem-yMMMd": "d MMM, y G", - "field-second": "Δευτερόλεπτο", - "field-day": "Ημέρα", + "field-day-relative+-1": "χθες", + "dateTimeFormat-long": "{1} - {0}", + "field-day-relative+-2": "προχθές", + "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E, d/M", - "months-format-narrow": [ + "dateTimeFormat-full": "{1} - {0}", + "field-fri-relative+0": "αυτήν την Παρασκευή", + "field-fri-relative+1": "επόμενη Παρασκευή", + "field-day": "Ημέρα", + "days-format-wide": [ + "Κυριακή", + "Δευτέρα", + "Τρίτη", + "Τετάρτη", + "Πέμπτη", + "Παρασκευή", + "Σάββατο" + ], + "field-zone": "Ζώνη", + "dateFormatItem-y": "y", + "months-standAlone-narrow": [ "Ι", "Φ", "Μ", @@ -172,16 +207,9 @@ define( "Ν", "Δ" ], - "days-standAlone-short": [ - "Κυ", - "Δε", - "Τρ", - "Τε", - "Πε", - "Πα", - "Σα" - ], - "days-standAlone-abbr": [ + "field-year-relative+-1": "προηγούμενο έτος", + "field-month-relative+-1": "προηγούμενος μήνας", + "days-format-abbr": [ "Κυρ", "Δευ", "Τρί", @@ -190,50 +218,50 @@ define( "Παρ", "Σάβ" ], - "dateFormat-short": "d/M/y", - "dateFormatItem-yMMMEd": "E, d MMM, y G", - "dateFormat-full": "EEEE, d MMMM, y G", - "dateFormatItem-Md": "d/M", - "dateFormatItem-yMEd": "E, d/M/y", - "months-format-wide": [ - "Ιανουαρίου", - "Φεβρουαρίου", - "Μαρτίου", - "Απριλίου", - "Μαΐου", - "Ιουνίου", - "Ιουλίου", - "Αυγούστου", - "Σεπτεμβρίου", - "Οκτωβρίου", - "Νοεμβρίου", - "Δεκεμβρίου" - ], - "days-format-short": [ - "Κυ", - "Δε", - "Τρ", - "Τε", - "Πε", - "Πα", - "Σα" + "days-format-narrow": [ + "Κ", + "Δ", + "Τ", + "Τ", + "Π", + "Π", + "Σ" ], - "field-month-relative+-1": "Προηγούμενος μήνας", - "quarters-format-wide": [ - "1ο τρίμηνο", - "2ο τρίμηνο", - "3ο τρίμηνο", - "4ο τρίμηνο" + "dateFormatItem-yyyyMd": "d/M/y G", + "field-month": "Μήνας", + "days-standAlone-narrow": [ + "Κ", + "Δ", + "Τ", + "Τ", + "Π", + "Π", + "Σ" ], - "days-format-wide": [ - "Κυριακή", - "Δευτέρα", - "Τρίτη", - "Τετάρτη", - "Πέμπτη", - "Παρασκευή", - "Σάββατο" - ] + "field-tue-relative+0": "αυτήν την Τρίτη", + "field-tue-relative+1": "επόμενη Τρίτη", + "dayPeriods-format-wide-am": "π.μ.", + "field-mon-relative+0": "αυτήν τη Δευτέρα", + "field-mon-relative+1": "επόμενη Δευτέρα", + "dateFormat-short": "d/M/y GGGGG", + "field-second": "Δευτερόλεπτο", + "field-sat-relative+-1": "προηγούμενο Σάββατο", + "field-sun-relative+-1": "προηγούμενη Κυριακή", + "field-month-relative+0": "τρέχων μήνας", + "field-month-relative+1": "επόμενος μήνας", + "dateFormatItem-Ed": "E d", + "field-week": "Εβδομάδα", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "φέτος", + "field-week-relative+-1": "προηγούμενη εβδομάδα", + "dateFormatItem-yyyyM": "M/y G", + "field-year-relative+1": "επόμενο έτος", + "dateTimeFormat-short": "{1} - {0}", + "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "προηγούμενη Δευτέρα", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "αυτήν την εβδομάδα", + "field-week-relative+1": "επόμενη εβδομάδα" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/el/currency.js b/cldr/nls/el/currency.js index 4d61d01291..f27f01be67 100644 --- a/cldr/nls/el/currency.js +++ b/cldr/nls/el/currency.js @@ -3,13 +3,20 @@ define( { "HKD_displayName": "Δολάριο Χονγκ Κονγκ", "CHF_displayName": "Φράγκο Ελβετίας", + "JPY_symbol": "JP¥", "CAD_displayName": "Δολάριο Καναδά", - "CNY_displayName": "Γιουάν Ρενμίμπι Κίνας", + "HKD_symbol": "HK$", + "CNY_displayName": "Γουάν Κίνας", "USD_symbol": "$", "AUD_displayName": "Δολάριο Αυστραλίας", "JPY_displayName": "Γιεν Ιαπωνίας", + "CAD_symbol": "CA$", "USD_displayName": "Δολάριο ΗΠΑ", + "EUR_symbol": "€", + "CNY_symbol": "CN¥", "GBP_displayName": "Λίρα Στερλίνα Βρετανίας", + "GBP_symbol": "£", + "AUD_symbol": "A$", "EUR_displayName": "Ευρώ" } //end v1.x content diff --git a/cldr/nls/el/generic.js b/cldr/nls/el/generic.js index 65aa368142..3c3323d5b1 100644 --- a/cldr/nls/el/generic.js +++ b/cldr/nls/el/generic.js @@ -1,72 +1,95 @@ define( //begin v1.x content { - "dateFormatItem-yM": "M/y", - "field-dayperiod": "π.μ./μ.μ.", - "field-minute": "Λεπτό", - "dateFormatItem-MMMEd": "E, d MMM", - "dateTimeFormat-full": "{1} - {0}", - "field-day-relative+-1": "Χτες", - "dateFormatItem-hms": "h:mm:ss a", - "dateFormatItem-MMdd": "dd/MM", - "dateFormatItem-yQQQ": "y QQQ", - "field-day-relative+-2": "Προχτές", + "field-second-relative+0": "τώρα", "field-weekday": "Ημέρα εβδομάδας", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} - {0}", + "field-wed-relative+0": "αυτήν την Τετάρτη", + "dateFormatItem-GyMMMEd": "E, d MMM y G", + "dateFormatItem-MMMEd": "E, d MMM", + "field-wed-relative+1": "επόμενη Τετάρτη", + "field-tue-relative+-1": "προηγούμενη Τρίτη", + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "προηγούμενη Παρασκευή", + "field-wed-relative+-1": "προηγούμενη Τετάρτη", + "dateFormatItem-yyyyQQQ": "G y QQQ", "dateTimeFormat-medium": "{1} - {0}", + "dateFormat-full": "EEEE, d MMMM y G", + "dateFormatItem-yyyyMEd": "E, d/M/y G", + "field-thu-relative+-1": "επόμενη Πέμπτη", + "dateFormatItem-Md": "d/M", "field-era": "Περίοδος", + "field-year": "Έτος", + "dateFormatItem-yyyyMMMM": "LLLL y G", "field-hour": "Ώρα", - "dateFormatItem-y": "y", - "dateFormatItem-yMM": "MM/y", - "dateFormatItem-Ed": "E d", - "dateFormatItem-yMMM": "LLL y", - "field-day-relative+0": "Σήμερα", - "field-day-relative+1": "Αύριο", - "field-day-relative+2": "Μεθαύριο", - "dateFormat-long": "d MMMM y G", - "field-zone": "Ζώνη", + "field-sat-relative+0": "αυτό το Σάββατο", + "field-sat-relative+1": "επόμενο Σάββατο", + "field-day-relative+0": "σήμερα", + "field-day-relative+1": "αύριο", + "field-thu-relative+0": "αυτήν την Πέμπτη", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "μεθαύριο", + "field-thu-relative+1": "επόμενη Πέμπτη", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "y G", + "dateFormatItem-HHmmss": "HH:mm:ss", + "dateFormatItem-yyyyMMMEd": "E, d MMM y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "LLL y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "dateFormatItem-MMMMd": "d MMMM", + "field-sun-relative+0": "αυτήν την Κυριακή", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "Προηγούμενη εβδομάδα", - "dateFormat-medium": "d MMM y G", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "Φέτος", - "field-year-relative+1": "Επόμενο έτος", - "dateFormatItem-yMd": "d/M/y", - "field-year-relative+-1": "Προηγούμενο έτος", - "dateFormatItem-yMMMM": "LLLL y", + "field-sun-relative+1": "επόμενη Κυριακή", + "field-minute": "Λεπτό", + "field-dayperiod": "π.μ./μ.μ.", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "field-year": "Έτος", + "field-day-relative+-1": "χθες", + "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} - {0}", - "dateFormatItem-HHmmss": "HH:mm:ss", - "field-week": "Εβδομάδα", - "dateFormatItem-MMMMEd": "E, d MMMM", + "field-day-relative+-2": "προχθές", "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "Αυτήν την εβδομάδα", - "dateFormatItem-HHmm": "HH:mm", - "field-week-relative+1": "Επόμενη εβδομάδα", - "dateFormatItem-yQQQQ": "y QQQQ", - "field-month-relative+0": "Τρέχων μήνας", - "dateFormatItem-H": "HH", - "field-month": "Μήνας", - "field-month-relative+1": "Επόμενος μήνας", - "dateFormatItem-MMMMd": "d MMMM", - "dateFormatItem-MMMMdd": "dd MMMM", - "dateFormatItem-mmss": "mm:ss", - "dateFormatItem-M": "L", - "dateFormatItem-yMMMd": "d MMM y", - "field-second": "Δευτερόλεπτο", - "field-day": "Ημέρα", "dateFormatItem-MEd": "E, d/M", + "dateTimeFormat-full": "{1} - {0}", + "field-fri-relative+0": "αυτήν την Παρασκευή", + "field-fri-relative+1": "επόμενη Παρασκευή", + "field-day": "Ημέρα", + "field-zone": "Ζώνη", + "dateFormatItem-y": "y", + "field-year-relative+-1": "προηγούμενο έτος", + "field-month-relative+-1": "προηγούμενος μήνας", "dateFormatItem-hm": "h:mm a", - "dateFormat-short": "d/M/yy GGGGG", - "dateFormatItem-yMMMEd": "E, d MMM y", - "dateFormat-full": "EEEE, d MMMM y G", - "dateFormatItem-Md": "d/M", - "dateFormatItem-yMEd": "E, d/M/y", - "dateFormatItem-d": "d", - "field-month-relative+-1": "Προηγούμενος μήνας", - "dateFormatItem-h": "h a" + "dateFormatItem-yyyyMd": "d/M/y G", + "field-month": "Μήνας", + "dateFormatItem-MMM": "LLL", + "dateFormatItem-HHmm": "HH:mm", + "field-tue-relative+0": "αυτήν την Τρίτη", + "field-tue-relative+1": "επόμενη Τρίτη", + "dateFormatItem-MMMMEd": "E, d MMMM", + "field-mon-relative+0": "αυτήν τη Δευτέρα", + "field-mon-relative+1": "επόμενη Δευτέρα", + "dateFormat-short": "d/M/y GGGGG", + "field-second": "Δευτερόλεπτο", + "field-sat-relative+-1": "προηγούμενο Σάββατο", + "field-sun-relative+-1": "προηγούμενη Κυριακή", + "field-month-relative+0": "τρέχων μήνας", + "field-month-relative+1": "επόμενος μήνας", + "dateFormatItem-Ed": "E d", + "field-week": "Εβδομάδα", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "φέτος", + "field-week-relative+-1": "προηγούμενη εβδομάδα", + "dateFormatItem-yyyyM": "M/y G", + "field-year-relative+1": "επόμενο έτος", + "dateFormatItem-yyyyQQQQ": "G y QQQQ", + "dateTimeFormat-short": "{1} - {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "προηγούμενη Δευτέρα", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "αυτήν την εβδομάδα", + "field-week-relative+1": "επόμενη εβδομάδα" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/el/gregorian.js b/cldr/nls/el/gregorian.js index 2cf2ccf5fd..e3131353d5 100644 --- a/cldr/nls/el/gregorian.js +++ b/cldr/nls/el/gregorian.js @@ -1,14 +1,15 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "Κυ", "Δε", "Τρ", "Τε", - "Πε", + "Πέ", "Πα", - "Σα" + "Σά" ], "months-format-narrow": [ "Ι", @@ -24,6 +25,7 @@ define( "Ν", "Δ" ], + "field-second-relative+0": "τώρα", "quarters-standAlone-narrow": [ "1", "2", @@ -33,22 +35,29 @@ define( "field-weekday": "Ημέρα εβδομάδας", "dateFormatItem-yQQQ": "y QQQ", "dateFormatItem-yMEd": "E, d/M/y", + "field-wed-relative+0": "αυτήν την Τετάρτη", + "field-wed-relative+1": "επόμενη Τετάρτη", + "dateFormatItem-GyMMMEd": "E, d MMM y G", "dateFormatItem-MMMEd": "E, d MMM", "eraNarrow": [ "π.Χ.", - "μ.Χ." + "π.Κ.Χ.", + "μ.Χ.", + "ΚΧ" ], - "dateFormatItem-yMM": "MM/y", + "field-tue-relative+-1": "προηγούμενη Τρίτη", "days-format-short": [ "Κυ", "Δε", "Τρ", "Τε", - "Πε", + "Πέ", "Πα", - "Σα" + "Σά" ], "dateFormat-long": "d MMMM y", + "field-fri-relative+-1": "προηγούμενη Παρασκευή", + "field-wed-relative+-1": "προηγούμενη Τετάρτη", "months-format-wide": [ "Ιανουαρίου", "Φεβρουαρίου", @@ -66,6 +75,7 @@ define( "dateTimeFormat-medium": "{1} - {0}", "dayPeriods-format-wide-pm": "μ.μ.", "dateFormat-full": "EEEE, d MMMM y", + "field-thu-relative+-1": "επόμενη Πέμπτη", "dateFormatItem-Md": "d/M", "dateFormatItem-yMd": "d/M/y", "field-era": "Περίοδος", @@ -96,13 +106,12 @@ define( "field-year": "Έτος", "dateFormatItem-yMMM": "LLL y", "field-hour": "Ώρα", - "dateFormatItem-MMdd": "dd/MM", "months-format-abbr": [ "Ιαν", "Φεβ", "Μαρ", "Απρ", - "Μαϊ", + "Μαΐ", "Ιουν", "Ιουλ", "Αυγ", @@ -111,10 +120,15 @@ define( "Νοε", "Δεκ" ], + "field-sat-relative+0": "αυτό το Σάββατο", + "field-sat-relative+1": "επόμενο Σάββατο", "timeFormat-full": "h:mm:ss a zzzz", - "field-day-relative+0": "Σήμερα", - "field-day-relative+1": "Αύριο", - "field-day-relative+2": "Μεθαύριο", + "field-day-relative+0": "σήμερα", + "field-thu-relative+0": "αυτήν την Πέμπτη", + "field-day-relative+1": "αύριο", + "field-thu-relative+1": "επόμενη Πέμπτη", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "μεθαύριο", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ "Ιαν", @@ -142,6 +156,7 @@ define( "3ο τρίμηνο", "4ο τρίμηνο" ], + "dateFormatItem-Gy": "y G", "dateFormatItem-HHmmss": "HH:mm:ss", "dateFormatItem-M": "L", "days-standAlone-wide": [ @@ -155,7 +170,9 @@ define( ], "dateFormatItem-MMMMd": "d MMMM", "timeFormat-medium": "h:mm:ss a", + "field-sun-relative+0": "αυτήν την Κυριακή", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "επόμενη Κυριακή", "quarters-standAlone-abbr": [ "Τ1", "Τ2", @@ -164,7 +181,9 @@ define( ], "eraAbbr": [ "π.Χ.", - "μ.Χ." + "π.Κ.Χ.", + "μ.Χ.", + "ΚΧ" ], "field-minute": "Λεπτό", "field-dayperiod": "π.μ./μ.μ.", @@ -185,14 +204,16 @@ define( "3", "4" ], - "field-day-relative+-1": "Χτες", + "field-day-relative+-1": "χθες", "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} - {0}", - "field-day-relative+-2": "Προχτές", + "field-day-relative+-2": "προχθές", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E, d/M", "dateTimeFormat-full": "{1} - {0}", + "field-fri-relative+0": "αυτήν την Παρασκευή", "dateFormatItem-yMMMM": "LLLL y", + "field-fri-relative+1": "επόμενη Παρασκευή", "field-day": "Ημέρα", "days-format-wide": [ "Κυριακή", @@ -219,8 +240,8 @@ define( "Ν", "Δ" ], - "field-year-relative+-1": "Προηγούμενο έτος", - "field-month-relative+-1": "Προηγούμενος μήνας", + "field-year-relative+-1": "προηγούμενο έτος", + "field-month-relative+-1": "προηγούμενος μήνας", "dateFormatItem-hm": "h:mm a", "days-format-abbr": [ "Κυρ", @@ -234,7 +255,9 @@ define( "dateFormatItem-yMMMd": "d MMM y", "eraNames": [ "π.Χ.", - "μ.Χ." + "π.Κ.Χ.", + "μ.Χ.", + "ΚΧ" ], "days-format-narrow": [ "Κ", @@ -257,26 +280,36 @@ define( "dateFormatItem-MMM": "LLL", "field-month": "Μήνας", "dateFormatItem-HHmm": "HH:mm", + "field-tue-relative+0": "αυτήν την Τρίτη", + "field-tue-relative+1": "επόμενη Τρίτη", "dayPeriods-format-wide-am": "π.μ.", "dateFormatItem-MMMMEd": "E, d MMMM", - "dateFormatItem-MMMMdd": "dd MMMM", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "αυτήν τη Δευτέρα", + "field-mon-relative+1": "επόμενη Δευτέρα", "dateFormat-short": "d/M/yy", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", "field-second": "Δευτερόλεπτο", + "field-sat-relative+-1": "προηγούμενο Σάββατο", "dateFormatItem-yMMMEd": "E, d MMM y", - "field-month-relative+0": "Τρέχων μήνας", - "field-month-relative+1": "Επόμενος μήνας", + "field-sun-relative+-1": "προηγούμενη Κυριακή", + "field-month-relative+0": "τρέχων μήνας", + "field-month-relative+1": "επόμενος μήνας", "dateFormatItem-Ed": "E d", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "Εβδομάδα", "dateFormat-medium": "d MMM y", - "field-year-relative+0": "Φέτος", - "field-week-relative+-1": "Προηγούμενη εβδομάδα", - "field-year-relative+1": "Επόμενο έτος", - "dateFormatItem-mmss": "mm:ss", + "field-year-relative+0": "φέτος", + "field-week-relative+-1": "προηγούμενη εβδομάδα", + "field-year-relative+1": "επόμενο έτος", "dateTimeFormat-short": "{1} - {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", - "field-week-relative+0": "Αυτήν την εβδομάδα", - "field-week-relative+1": "Επόμενη εβδομάδα" + "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "προηγούμενη Δευτέρα", + "field-week-relative+0": "αυτήν την εβδομάδα", + "field-week-relative+1": "επόμενη εβδομάδα" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/el/hebrew.js b/cldr/nls/el/hebrew.js index 9310de5b7a..625f2aa81a 100644 --- a/cldr/nls/el/hebrew.js +++ b/cldr/nls/el/hebrew.js @@ -1,17 +1,77 @@ define( //begin v1.x content { - "field-dayperiod": "π.μ./μ.μ.", - "dayPeriods-format-wide-pm": "μ.μ.", - "field-minute": "Λεπτό", - "eraNames": [ - "π.μ." + "days-standAlone-short": [ + "Κυ", + "Δε", + "Τρ", + "Τε", + "Πέ", + "Πα", + "Σά" ], - "dateFormatItem-MMMEd": "E, d MMM", - "dateTimeFormat-full": "{1} - {0}", - "field-day-relative+-1": "Χτες", + "field-second-relative+0": "τώρα", "field-weekday": "Ημέρα εβδομάδας", - "field-day-relative+-2": "Προχτές", + "field-wed-relative+0": "αυτήν την Τετάρτη", + "field-wed-relative+1": "επόμενη Τετάρτη", + "dateFormatItem-GyMMMEd": "E, d MMM y G", + "dateFormatItem-MMMEd": "E, d MMM", + "eraNarrow": [ + "π.μ." + ], + "field-tue-relative+-1": "προηγούμενη Τρίτη", + "days-format-short": [ + "Κυ", + "Δε", + "Τρ", + "Τε", + "Πέ", + "Πα", + "Σά" + ], + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "προηγούμενη Παρασκευή", + "field-wed-relative+-1": "προηγούμενη Τετάρτη", + "dateTimeFormat-medium": "{1} - {0}", + "dayPeriods-format-wide-pm": "μ.μ.", + "dateFormat-full": "EEEE, d MMMM y G", + "dateFormatItem-yyyyMEd": "E, d/M/y G", + "field-thu-relative+-1": "επόμενη Πέμπτη", + "dateFormatItem-Md": "d/M", + "field-era": "Περίοδος", + "timeFormat-short": "h:mm a", + "quarters-format-wide": [ + "1ο τρίμηνο", + "2ο τρίμηνο", + "3ο τρίμηνο", + "4ο τρίμηνο" + ], + "timeFormat-long": "h:mm:ss a z", + "field-year": "Έτος", + "field-hour": "Ώρα", + "field-sat-relative+0": "αυτό το Σάββατο", + "field-sat-relative+1": "επόμενο Σάββατο", + "timeFormat-full": "h:mm:ss a zzzz", + "field-day-relative+0": "σήμερα", + "field-thu-relative+0": "αυτήν την Πέμπτη", + "field-day-relative+1": "αύριο", + "field-thu-relative+1": "επόμενη Πέμπτη", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "μεθαύριο", + "quarters-format-abbr": [ + "Τ1", + "Τ2", + "Τ3", + "Τ4" + ], + "quarters-standAlone-wide": [ + "1ο τρίμηνο", + "2ο τρίμηνο", + "3ο τρίμηνο", + "4ο τρίμηνο" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d MMM y G", "days-standAlone-wide": [ "Κυριακή", "Δευτέρα", @@ -21,66 +81,53 @@ define( "Παρασκευή", "Σάββατο" ], - "dateTimeFormat-short": "{1} - {0}", - "field-era": "Περίοδος", - "field-hour": "Ώρα", - "dayPeriods-format-wide-am": "π.μ.", - "dateTimeFormat-medium": "{1} - {0}", + "dateFormatItem-yyyyMMM": "LLL y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "timeFormat-medium": "h:mm:ss a", + "field-sun-relative+0": "αυτήν την Κυριακή", + "field-sun-relative+1": "επόμενη Κυριακή", "quarters-standAlone-abbr": [ "Τ1", "Τ2", "Τ3", "Τ4" ], - "dateFormatItem-y": "y", - "timeFormat-full": "h:mm:ss a zzzz", - "dateFormatItem-Ed": "E d", - "field-day-relative+0": "Σήμερα", - "field-day-relative+1": "Αύριο", - "days-standAlone-narrow": [ - "Κ", - "Δ", - "Τ", - "Τ", - "Π", - "Π", - "Σ" - ], "eraAbbr": [ "π.μ." ], - "field-day-relative+2": "Μεθαύριο", - "dateFormat-long": "d MMMM y G", - "timeFormat-medium": "h:mm:ss a", - "field-zone": "Ζώνη", - "field-week-relative+-1": "Προηγούμενη εβδομάδα", - "dateFormat-medium": "d MMM y G", - "field-year-relative+0": "Φέτος", - "field-year-relative+1": "Επόμενο έτος", - "quarters-standAlone-wide": [ - "1ο τρίμηνο", - "2ο τρίμηνο", - "3ο τρίμηνο", - "4ο τρίμηνο" + "field-minute": "Λεπτό", + "field-dayperiod": "π.μ./μ.μ.", + "days-standAlone-abbr": [ + "Κυρ", + "Δευ", + "Τρί", + "Τετ", + "Πέμ", + "Παρ", + "Σάβ" ], - "field-year-relative+-1": "Προηγούμενο έτος", - "field-year": "Έτος", + "field-day-relative+-1": "χθες", "dateTimeFormat-long": "{1} - {0}", - "field-week": "Εβδομάδα", + "field-day-relative+-2": "προχθές", "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "Αυτήν την εβδομάδα", - "field-week-relative+1": "Επόμενη εβδομάδα", - "timeFormat-long": "h:mm:ss a z", - "field-month-relative+0": "Τρέχων μήνας", - "field-month": "Μήνας", - "field-month-relative+1": "Επόμενος μήνας", - "timeFormat-short": "h:mm a", - "quarters-format-abbr": [ - "Τ1", - "Τ2", - "Τ3", - "Τ4" + "dateFormatItem-MEd": "E, d/M", + "dateTimeFormat-full": "{1} - {0}", + "field-fri-relative+0": "αυτήν την Παρασκευή", + "field-fri-relative+1": "επόμενη Παρασκευή", + "field-day": "Ημέρα", + "days-format-wide": [ + "Κυριακή", + "Δευτέρα", + "Τρίτη", + "Τετάρτη", + "Πέμπτη", + "Παρασκευή", + "Σάββατο" ], + "field-zone": "Ζώνη", + "dateFormatItem-y": "y", + "field-year-relative+-1": "προηγούμενο έτος", + "field-month-relative+-1": "προηγούμενος μήνας", "days-format-abbr": [ "Κυρ", "Δευ", @@ -90,6 +137,9 @@ define( "Παρ", "Σάβ" ], + "eraNames": [ + "π.μ." + ], "days-format-narrow": [ "Κ", "Δ", @@ -99,58 +149,41 @@ define( "Π", "Σ" ], - "field-second": "Δευτερόλεπτο", - "field-day": "Ημέρα", - "dateFormatItem-MEd": "E, d/M", - "days-standAlone-short": [ - "Κυ", - "Δε", - "Τρ", - "Τε", - "Πε", - "Πα", - "Σα" - ], - "days-standAlone-abbr": [ - "Κυρ", - "Δευ", - "Τρί", - "Τετ", - "Πέμ", - "Παρ", - "Σάβ" - ], - "dateFormat-short": "d/M/yy GGGGG", - "dateFormat-full": "EEEE, d MMMM y G", - "dateFormatItem-Md": "d/M", - "days-format-short": [ - "Κυ", - "Δε", - "Τρ", - "Τε", - "Πε", - "Πα", - "Σα" - ], - "field-month-relative+-1": "Προηγούμενος μήνας", - "quarters-format-wide": [ - "1ο τρίμηνο", - "2ο τρίμηνο", - "3ο τρίμηνο", - "4ο τρίμηνο" - ], - "eraNarrow": [ - "π.μ." + "dateFormatItem-yyyyMd": "d/M/y G", + "field-month": "Μήνας", + "days-standAlone-narrow": [ + "Κ", + "Δ", + "Τ", + "Τ", + "Π", + "Π", + "Σ" ], - "days-format-wide": [ - "Κυριακή", - "Δευτέρα", - "Τρίτη", - "Τετάρτη", - "Πέμπτη", - "Παρασκευή", - "Σάββατο" - ] + "field-tue-relative+0": "αυτήν την Τρίτη", + "field-tue-relative+1": "επόμενη Τρίτη", + "dayPeriods-format-wide-am": "π.μ.", + "field-mon-relative+0": "αυτήν τη Δευτέρα", + "field-mon-relative+1": "επόμενη Δευτέρα", + "dateFormat-short": "d/M/y GGGGG", + "field-second": "Δευτερόλεπτο", + "field-sat-relative+-1": "προηγούμενο Σάββατο", + "field-sun-relative+-1": "προηγούμενη Κυριακή", + "field-month-relative+0": "τρέχων μήνας", + "field-month-relative+1": "επόμενος μήνας", + "dateFormatItem-Ed": "E d", + "field-week": "Εβδομάδα", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "φέτος", + "field-week-relative+-1": "προηγούμενη εβδομάδα", + "dateFormatItem-yyyyM": "M/y G", + "field-year-relative+1": "επόμενο έτος", + "dateTimeFormat-short": "{1} - {0}", + "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "προηγούμενη Δευτέρα", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "αυτήν την εβδομάδα", + "field-week-relative+1": "επόμενη εβδομάδα" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/el/japanese.js b/cldr/nls/el/japanese.js index ef277a59b7..d146ea3210 100644 --- a/cldr/nls/el/japanese.js +++ b/cldr/nls/el/japanese.js @@ -2,49 +2,71 @@ define( //begin v1.x content { "dateFormatItem-yM": "MM/y GGGGG", + "field-sat-relative+0": "αυτό το Σάββατο", + "field-sat-relative+1": "επόμενο Σάββατο", "field-dayperiod": "π.μ./μ.μ.", + "field-sun-relative+-1": "προηγούμενη Κυριακή", + "field-mon-relative+-1": "προηγούμενη Δευτέρα", "field-minute": "Λεπτό", "dateFormatItem-MMMEd": "E, d MMM", - "field-day-relative+-1": "Χτες", + "field-day-relative+-1": "χθες", "dateFormatItem-yQQQ": "y GGGGG QQQ", - "field-day-relative+-2": "Προχτές", + "field-day-relative+-2": "προχθές", "field-weekday": "Ημέρα εβδομάδας", "dateFormatItem-MMM": "LLL", "field-era": "Περίοδος", "dateFormatItem-Gy": "y G", "field-hour": "Ώρα", "dateFormatItem-y": "y G", + "field-sun-relative+0": "αυτήν την Κυριακή", + "field-sun-relative+1": "επόμενη Κυριακή", + "field-wed-relative+-1": "προηγούμενη Τετάρτη", "dateFormatItem-Ed": "E d", "dateFormatItem-yMMM": "LLL y GGGGG", - "field-day-relative+0": "Σήμερα", - "field-day-relative+1": "Αύριο", - "field-day-relative+2": "Μεθαύριο", + "field-day-relative+0": "σήμερα", + "field-day-relative+1": "αύριο", + "field-day-relative+2": "μεθαύριο", "dateFormat-long": "d MMMM, y G", + "field-tue-relative+0": "αυτήν την Τρίτη", "field-zone": "Ζώνη", - "field-week-relative+-1": "Προηγούμενη εβδομάδα", + "field-tue-relative+1": "επόμενη Τρίτη", + "field-week-relative+-1": "προηγούμενη εβδομάδα", "dateFormat-medium": "d MMM, y G", - "field-year-relative+0": "Φέτος", - "field-year-relative+1": "Επόμενο έτος", + "field-year-relative+0": "φέτος", + "field-year-relative+1": "επόμενο έτος", + "field-sat-relative+-1": "προηγούμενο Σάββατο", "dateFormatItem-yMd": "dd/MM/y GGGGG", - "field-year-relative+-1": "Προηγούμενο έτος", + "field-year-relative+-1": "προηγούμενο έτος", "field-year": "Έτος", + "field-fri-relative+0": "αυτήν την Παρασκευή", + "field-fri-relative+1": "επόμενη Παρασκευή", "field-week": "Εβδομάδα", "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "Αυτήν την εβδομάδα", - "field-week-relative+1": "Επόμενη εβδομάδα", - "field-month-relative+0": "Τρέχων μήνας", + "field-week-relative+0": "αυτήν την εβδομάδα", + "field-week-relative+1": "επόμενη εβδομάδα", + "field-month-relative+0": "τρέχων μήνας", "field-month": "Μήνας", - "field-month-relative+1": "Επόμενος μήνας", + "field-month-relative+1": "επόμενος μήνας", + "field-fri-relative+-1": "προηγούμενη Παρασκευή", "dateFormatItem-yMMMd": "d MMM, y G", "field-second": "Δευτερόλεπτο", + "field-tue-relative+-1": "προηγούμενη Τρίτη", "field-day": "Ημέρα", "dateFormatItem-MEd": "E, d/M", + "field-mon-relative+0": "αυτήν τη Δευτέρα", + "field-mon-relative+1": "επόμενη Δευτέρα", + "field-thu-relative+0": "αυτήν την Πέμπτη", + "field-second-relative+0": "τώρα", "dateFormat-short": "d/M/yy", + "field-thu-relative+1": "επόμενη Πέμπτη", "dateFormatItem-yMMMEd": "E, d MMM, y G", "dateFormat-full": "EEEE, d MMMM, y G", "dateFormatItem-Md": "d/M", "dateFormatItem-yMEd": "E, dd/MM/y GGGGG", - "field-month-relative+-1": "Προηγούμενος μήνας" + "field-wed-relative+0": "αυτήν την Τετάρτη", + "field-wed-relative+1": "επόμενη Τετάρτη", + "field-month-relative+-1": "προηγούμενος μήνας", + "field-thu-relative+-1": "επόμενη Πέμπτη" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/el/number.js b/cldr/nls/el/number.js index 084e9e3453..4aad32979f 100644 --- a/cldr/nls/el/number.js +++ b/cldr/nls/el/number.js @@ -4,18 +4,20 @@ define( "group": ".", "percentSign": "%", "exponential": "e", + "scientificFormat": "#E0", "percentFormat": "#,##0%", - "list": ",", + "list": ";", "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", "currencyFormat": "#,##0.00 ¤", "plusSign": "+", "decimalFormat-long": "000 τρισεκατομμύρια", - "decimalFormat-short": "000 τρις" + "decimalFormat-short": "000 τρισ'.'" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/el/roc.js b/cldr/nls/el/roc.js index 1ee45fee3a..640491ac7c 100644 --- a/cldr/nls/el/roc.js +++ b/cldr/nls/el/roc.js @@ -1,55 +1,57 @@ define( //begin v1.x content { - "dateFormatItem-yM": "M/y G", + "field-sat-relative+0": "αυτό το Σάββατο", + "field-sat-relative+1": "επόμενο Σάββατο", "field-dayperiod": "π.μ./μ.μ.", + "field-sun-relative+-1": "προηγούμενη Κυριακή", + "field-mon-relative+-1": "προηγούμενη Δευτέρα", "field-minute": "Λεπτό", - "dateFormatItem-MMMEd": "E, d MMM", - "field-day-relative+-1": "Χτες", - "dateFormatItem-yQQQ": "y G QQQ", - "field-day-relative+-2": "Προχτές", + "field-day-relative+-1": "χθες", "field-weekday": "Ημέρα εβδομάδας", - "dateFormatItem-MMM": "LLL", + "field-day-relative+-2": "προχθές", "field-era": "Περίοδος", - "dateFormatItem-Gy": "y G", "field-hour": "Ώρα", - "dateFormatItem-y": "y G", - "dateFormatItem-Ed": "E d", - "dateFormatItem-yMMM": "LLL, y G", - "field-day-relative+0": "Σήμερα", - "field-day-relative+1": "Αύριο", + "field-sun-relative+0": "αυτήν την Κυριακή", + "field-sun-relative+1": "επόμενη Κυριακή", + "field-wed-relative+-1": "προηγούμενη Τετάρτη", + "field-day-relative+0": "σήμερα", + "field-day-relative+1": "αύριο", "eraAbbr": [ "Πριν R.O.C.", "R.O.C." ], - "field-day-relative+2": "Μεθαύριο", - "dateFormat-long": "d MMMM, y G", + "field-day-relative+2": "μεθαύριο", + "field-tue-relative+0": "αυτήν την Τρίτη", "field-zone": "Ζώνη", - "field-week-relative+-1": "Προηγούμενη εβδομάδα", - "dateFormat-medium": "d MMM, y G", - "field-year-relative+0": "Φέτος", - "field-year-relative+1": "Επόμενο έτος", - "dateFormatItem-yMd": "d/M/y G", - "field-year-relative+-1": "Προηγούμενο έτος", + "field-tue-relative+1": "επόμενη Τρίτη", + "field-week-relative+-1": "προηγούμενη εβδομάδα", + "field-year-relative+0": "φέτος", + "field-year-relative+1": "επόμενο έτος", + "field-sat-relative+-1": "προηγούμενο Σάββατο", + "field-year-relative+-1": "προηγούμενο έτος", "field-year": "Έτος", + "field-fri-relative+0": "αυτήν την Παρασκευή", + "field-fri-relative+1": "επόμενη Παρασκευή", "field-week": "Εβδομάδα", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "Αυτήν την εβδομάδα", - "field-week-relative+1": "Επόμενη εβδομάδα", - "dateFormatItem-yQQQQ": "QQQQ y G", - "field-month-relative+0": "Τρέχων μήνας", + "field-week-relative+0": "αυτήν την εβδομάδα", + "field-week-relative+1": "επόμενη εβδομάδα", + "field-month-relative+0": "τρέχων μήνας", "field-month": "Μήνας", - "field-month-relative+1": "Επόμενος μήνας", - "dateFormatItem-yMMMd": "d MMM, y G", + "field-month-relative+1": "επόμενος μήνας", + "field-fri-relative+-1": "προηγούμενη Παρασκευή", "field-second": "Δευτερόλεπτο", + "field-tue-relative+-1": "προηγούμενη Τρίτη", "field-day": "Ημέρα", - "dateFormatItem-MEd": "E, d/M", - "dateFormat-short": "d/M/y G", - "dateFormatItem-yMMMEd": "E, d MMM, y G", - "dateFormat-full": "EEEE, d MMMM, y G", - "dateFormatItem-Md": "d/M", - "dateFormatItem-yMEd": "E, d/M/y G", - "field-month-relative+-1": "Προηγούμενος μήνας" + "field-mon-relative+0": "αυτήν τη Δευτέρα", + "field-mon-relative+1": "επόμενη Δευτέρα", + "field-thu-relative+0": "αυτήν την Πέμπτη", + "field-second-relative+0": "τώρα", + "field-thu-relative+1": "επόμενη Πέμπτη", + "field-wed-relative+0": "αυτήν την Τετάρτη", + "field-wed-relative+1": "επόμενη Τετάρτη", + "field-month-relative+-1": "προηγούμενος μήνας", + "field-thu-relative+-1": "επόμενη Πέμπτη" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/en-au/chinese.js b/cldr/nls/en-au/chinese.js index f8ca576a62..c52a4869bc 100644 --- a/cldr/nls/en-au/chinese.js +++ b/cldr/nls/en-au/chinese.js @@ -1,10 +1,26 @@ define( //begin v1.x content { - "timeFormat-long": "h:mm:ss a z", + "dateFormat-medium": "d MMM U", + "field-year-relative+-1": "Last year", + "field-month-relative+-1": "Last month", + "field-day-relative+-1": "Yesterday", + "timeFormat-full": "h:mm:ss a zzzz", + "field-week-relative+0": "This week", + "field-week-relative+1": "Next week", "timeFormat-medium": "h:mm:ss a", + "field-week-relative+-1": "Last week", + "field-day-relative+0": "Today", + "field-day-relative+1": "Tomorrow", + "dateFormat-long": "d MMMM U", + "field-month-relative+0": "This month", + "field-month-relative+1": "Next month", + "dateFormat-short": "d/MM/yy", + "field-year-relative+0": "This year", + "field-year-relative+1": "Next year", "timeFormat-short": "h:mm a", - "timeFormat-full": "h:mm:ss a zzzz" + "timeFormat-long": "h:mm:ss a z", + "dateFormat-full": "EEEE, d MMMM U" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/en-au/currency.js b/cldr/nls/en-au/currency.js index 3c353829da..03a6f642d2 100644 --- a/cldr/nls/en-au/currency.js +++ b/cldr/nls/en-au/currency.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "EUR_displayName": "Euro", "AUD_symbol": "$", "USD_symbol": "US$" } diff --git a/cldr/nls/en-au/generic.js b/cldr/nls/en-au/generic.js index 99e542e637..62f5da8e12 100644 --- a/cldr/nls/en-au/generic.js +++ b/cldr/nls/en-au/generic.js @@ -1,18 +1,28 @@ define( //begin v1.x content { + "dateFormatItem-yMd": "d/M/y", + "dateFormat-medium": "d MMM y G", + "field-year-relative+-1": "Last year", "dateFormatItem-yMEd": "E, d/M/y", + "field-month-relative+-1": "Last month", + "field-day-relative+-1": "Yesterday", "timeFormat-full": "h:mm:ss a zzzz", + "field-week-relative+0": "This week", + "field-week-relative+1": "Next week", "timeFormat-medium": "h:mm:ss a", - "dateFormatItem-MEd": "E, d/M", - "dateFormat-medium": "dd/MM/y G", - "dateFormatItem-yMd": "d/M/y", - "dateFormat-full": "EEEE, d MMMM y G", - "timeFormat-long": "h:mm:ss a z", - "timeFormat-short": "h:mm a", - "dateFormat-short": "d/MM/yy GGGGG", + "field-week-relative+-1": "Last week", + "field-day-relative+0": "Today", + "field-day-relative+1": "Tomorrow", "dateFormat-long": "d MMMM y G", - "dateFormatItem-MMMEd": "E, d MMM" + "field-month-relative+0": "This month", + "field-month-relative+1": "Next month", + "dateFormat-short": "d/MM/y GGGGG", + "field-year-relative+0": "This year", + "field-year-relative+1": "Next year", + "timeFormat-short": "h:mm a", + "timeFormat-long": "h:mm:ss a z", + "dateFormat-full": "EEEE, d MMMM y G" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/en-au/gregorian.js b/cldr/nls/en-au/gregorian.js index 979bd7c9f6..f100a1fa47 100644 --- a/cldr/nls/en-au/gregorian.js +++ b/cldr/nls/en-au/gregorian.js @@ -1,18 +1,28 @@ define( //begin v1.x content { + "dateFormatItem-yMd": "d/M/y", + "dateFormat-medium": "d MMM y", + "field-year-relative+-1": "Last year", "dateFormatItem-yMEd": "E, d/M/y", + "field-month-relative+-1": "Last month", + "field-day-relative+-1": "Yesterday", "timeFormat-full": "h:mm:ss a zzzz", + "field-week-relative+0": "This week", + "field-week-relative+1": "Next week", "timeFormat-medium": "h:mm:ss a", - "dateFormatItem-MEd": "E, d/M", - "dateFormat-medium": "dd/MM/y", - "dateFormatItem-yMd": "d/M/y", - "dateFormat-full": "EEEE, d MMMM y", - "timeFormat-long": "h:mm:ss a z", - "timeFormat-short": "h:mm a", - "dateFormat-short": "d/MM/yy", + "field-week-relative+-1": "Last week", + "field-day-relative+0": "Today", + "field-day-relative+1": "Tomorrow", "dateFormat-long": "d MMMM y", - "dateFormatItem-MMMEd": "E, d MMM" + "field-month-relative+0": "This month", + "field-month-relative+1": "Next month", + "dateFormat-short": "d/MM/y", + "field-year-relative+0": "This year", + "field-year-relative+1": "Next year", + "timeFormat-short": "h:mm a", + "timeFormat-long": "h:mm:ss a z", + "dateFormat-full": "EEEE, d MMMM y" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/en-au/islamic.js b/cldr/nls/en-au/islamic.js new file mode 100644 index 0000000000..cc49e0c4f4 --- /dev/null +++ b/cldr/nls/en-au/islamic.js @@ -0,0 +1,76 @@ +define( +//begin v1.x content +{ + "dateFormatItem-yyyyMMMEd": "E, MMM d, y G", + "dateFormatItem-MMMEd": "E, MMM d", + "dateTimeFormat-full": "{1} 'at' {0}", + "field-day-relative+-1": "Yesterday", + "dateTimeFormats-appendItem-Year": "{0} {1}", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-Gy": "y G", + "dateTimeFormat-medium": "{1}, {0}", + "dateFormatItem-y": "y G", + "timeFormat-full": "h:mm:ss a zzzz", + "dateFormatItem-yyyy": "y G", + "dateFormatItem-Ed": "d E", + "field-day-relative+0": "Today", + "field-day-relative+1": "Tomorrow", + "dateFormatItem-GyMMMd": "MMM d, y G", + "dateFormat-long": "d MMMM y G", + "timeFormat-medium": "h:mm:ss a", + "field-week-relative+-1": "Last week", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "This year", + "field-year-relative+1": "Next year", + "dateFormatItem-yMd": "d/M/y", + "field-year-relative+-1": "Last year", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-long": "{1} 'at' {0}", + "dateFormatItem-yyyyMd": "M/d/y GGGGG", + "dateFormatItem-yyyyMMMd": "MMM d, y G", + "dateFormatItem-yyyyMEd": "E, M/d/y GGGGG", + "field-week-relative+0": "This week", + "field-week-relative+1": "Next week", + "timeFormat-long": "h:mm:ss a z", + "field-month-relative+0": "This month", + "timeFormat-short": "h:mm a", + "field-month-relative+1": "Next month", + "dateFormatItem-GyMMMEd": "E, MMM d, y G", + "dateFormatItem-GyMMM": "MMM y G", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateFormatItem-MEd": "E, M/d", + "dateFormat-short": "d/MM/y GGGGG", + "dateFormatItem-yyyyM": "M/y GGGGG", + "dateFormat-full": "EEEE, d MMMM y G", + "dateFormatItem-Md": "M/d", + "dateFormatItem-yMEd": "E, d/M/y", + "days-format-short": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "dateFormatItem-yyyyMMM": "MMM y G", + "dateTimeFormats-appendItem-Era": "{0} {1}", + "field-month-relative+-1": "Last month", + "quarters-format-wide": [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter" + ], + "days-format-wide": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ] +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/en-au/japanese.js b/cldr/nls/en-au/japanese.js index 474957bdb8..b7f228922a 100644 --- a/cldr/nls/en-au/japanese.js +++ b/cldr/nls/en-au/japanese.js @@ -1,10 +1,22 @@ define( //begin v1.x content { - "dateFormat-short": "d/MM/yy GGGGG", + "field-month-relative+0": "This month", + "field-year-relative+0": "This year", + "field-month-relative+1": "Next month", + "field-week-relative+-1": "Last week", + "field-year-relative+1": "Next year", + "field-week-relative+0": "This week", + "field-week-relative+1": "Next week", "dateFormat-medium": "dd/MM/y G", - "dateFormat-long": "d MMMM y G", - "dateFormat-full": "EEEE, d MMMM y G" + "field-day-relative+-1": "Yesterday", + "field-month-relative+-1": "Last month", + "dateFormat-full": "EEEE, d MMMM y G", + "field-day-relative+0": "Today", + "field-day-relative+1": "Tomorrow", + "dateFormat-short": "d/MM/yy GGGGG", + "field-year-relative+-1": "Last year", + "dateFormat-long": "d MMMM y G" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/en-gb/number.js b/cldr/nls/en-au/number.js similarity index 100% rename from cldr/nls/en-gb/number.js rename to cldr/nls/en-au/number.js diff --git a/cldr/nls/en-ca/generic.js b/cldr/nls/en-ca/generic.js new file mode 100644 index 0000000000..b8c92af8f9 --- /dev/null +++ b/cldr/nls/en-ca/generic.js @@ -0,0 +1,12 @@ +define( +//begin v1.x content +{ + "dateFormatItem-yyyyMEd": "E, GGGGG y-MM-dd", + "dateFormat-short": "GGGGG y-MM-dd", + "dateFormatItem-yyyyM": "GGGGG y-MM", + "dateFormatItem-MEd": "E, MM-dd", + "dateFormatItem-Md": "MM-dd", + "dateFormatItem-yyyyMd": "GGGGG y-MM-dd" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/en-ca/gregorian.js b/cldr/nls/en-ca/gregorian.js new file mode 100644 index 0000000000..8ad637d1c6 --- /dev/null +++ b/cldr/nls/en-ca/gregorian.js @@ -0,0 +1,12 @@ +define( +//begin v1.x content +{ + "dateFormatItem-yMEd": "E, y-MM-dd", + "dateFormatItem-yMd": "y-MM-dd", + "dateFormat-short": "y-MM-dd", + "dateFormatItem-MEd": "E, MM-dd", + "dateFormatItem-yM": "y-MM", + "dateFormatItem-Md": "MM-dd" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/en-gb/chinese.js b/cldr/nls/en-gb/chinese.js index 1fffdef0dc..4c810fee75 100644 --- a/cldr/nls/en-gb/chinese.js +++ b/cldr/nls/en-gb/chinese.js @@ -1,13 +1,11 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E, d MMM U", - "field-dayperiod": "am/pm", + "dateFormat-medium": "d MMM U", + "dateFormatItem-yMd": "dd/MM/y", "dateFormatItem-MMMEd": "E d MMM", - "dateTimeFormat-full": "{1} {0}", - "dateFormatItem-hms": "h:mm:ss a", - "dateFormatItem-MMM": "LLL", - "months-standAlone-narrow": [ + "dateFormatItem-MEd": "E dd/MM", + "months-format-narrow": [ "1", "2", "3", @@ -21,12 +19,10 @@ define( "11", "12" ], - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "U", "dateTimeFormat-medium": "{1} {0}", - "dateFormatItem-y": "U", - "dateFormatItem-yyyy": "U", - "months-standAlone-abbr": [ + "dateFormatItem-GyMMMd": "d MMM U", + "dateFormatItem-Md": "dd/MM", + "months-standAlone-narrow": [ "1", "2", "3", @@ -40,17 +36,6 @@ define( "11", "12" ], - "dateFormatItem-Ed": "E d", - "dateFormatItem-GyMMMd": "d MMM U", - "dateFormatItem-yyyyMMMM": "MMMM U", - "dateFormat-long": "d MMMM U", - "dateFormatItem-Hm": "HH:mm", - "dateFormat-medium": "d MMM U", - "dateFormatItem-Hms": "HH:mm:ss", - "dateFormatItem-yMd": "dd/MM/y", - "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ U", - "dateTimeFormat-long": "{1} {0}", "months-standAlone-wide": [ "1", "2", @@ -65,11 +50,14 @@ define( "11", "12" ], - "dateFormatItem-yyyyMd": "dd/MM/y", - "dateFormatItem-yyyyMMMd": "d MMM U", + "dateFormatItem-GyMMMEd": "E, d MMM U", + "dateFormatItem-M": "LL", + "dateFormatItem-yyyyMMMEd": "E, d MMM U", "dateFormatItem-yyyyMEd": "E, dd/MM/y", - "dateFormatItem-MMMd": "d MMM", - "months-format-abbr": [ + "dateFormatItem-yyyyMMMM": "MMMM U", + "dateFormatItem-MMMMd": "d MMMM", + "dateTimeFormat-long": "{1} {0}", + "months-standAlone-abbr": [ "1", "2", "3", @@ -83,14 +71,11 @@ define( "11", "12" ], - "dateFormatItem-H": "HH", - "dateFormatItem-MMMMd": "d MMMM", - "dateFormatItem-M": "LL", - "dateFormatItem-GyMMMEd": "E, d MMM U", - "dateFormatItem-GyMMM": "MMM U", - "dateFormatItem-MEd": "E dd/MM", - "dateFormatItem-yyyyQQQ": "QQQ U", - "months-format-narrow": [ + "dateFormat-long": "d MMMM U", + "field-dayperiod": "am/pm", + "dateFormat-short": "dd/MM/yy", + "dateTimeFormat-short": "{1} {0}", + "months-format-wide": [ "1", "2", "3", @@ -104,12 +89,8 @@ define( "11", "12" ], - "dateFormatItem-hm": "h:mm a", - "dateFormat-short": "dd/MM/yy", - "dateFormatItem-yyyyM": "MM/y", - "dateFormat-full": "EEEE, d MMMM U", - "dateFormatItem-Md": "dd/MM", - "months-format-wide": [ + "dateTimeFormat-full": "{1} {0}", + "months-format-abbr": [ "1", "2", "3", @@ -123,9 +104,12 @@ define( "11", "12" ], - "dateFormatItem-yyyyMMM": "MMM U", - "dateFormatItem-d": "d", - "dateFormatItem-h": "h a" + "dateFormatItem-yyyyMMMd": "d MMM U", + "dateFormatItem-yyyyM": "MM/y", + "dateFormat-full": "EEEE, d MMMM U", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-yyyyMd": "dd/MM/y", + "dateFormatItem-Ed": "E d" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/en-gb/currency.js b/cldr/nls/en-gb/currency.js index fe35dbc055..6b4af14642 100644 --- a/cldr/nls/en-gb/currency.js +++ b/cldr/nls/en-gb/currency.js @@ -1,8 +1,8 @@ define( //begin v1.x content { + "USD_symbol": "$", "CAD_symbol": "CA$", - "EUR_displayName": "Euro", "GBP_displayName": "British Pound", "GBP_symbol": "£", "HKD_symbol": "HK$", diff --git a/cldr/nls/en-gb/generic.js b/cldr/nls/en-gb/generic.js index c8dffc8a04..72875dcb23 100644 --- a/cldr/nls/en-gb/generic.js +++ b/cldr/nls/en-gb/generic.js @@ -1,46 +1,30 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E, d MMM y G", - "field-dayperiod": "am/pm", + "dateFormat-medium": "d MMM y G", "dateFormatItem-MMMEd": "E d MMM", - "dateTimeFormat-full": "{1} {0}", - "dateFormatItem-hms": "h:mm:ss a", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "y G", + "dateFormatItem-MEd": "E dd/MM", "dateTimeFormat-medium": "{1} {0}", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E d", "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormatItem-yyyyMMMM": "MMMM y G", - "dateFormat-long": "d MMMM y G", - "dateFormatItem-Hm": "HH:mm", - "dateFormat-medium": "d MMM y G", - "dateFormatItem-Hms": "HH:mm:ss", - "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "dateTimeFormat-long": "{1} {0}", - "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", - "dateFormatItem-yyyyMMMd": "d MMM y G", + "dateFormatItem-Md": "dd/MM", + "dateFormatItem-GyMMMEd": "E, d MMM y G", + "dateFormatItem-M": "LL", + "dateFormatItem-yyyyMMMEd": "E, d MMM y G", "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", - "dateFormatItem-MMMd": "d MMM", - "dateFormatItem-H": "HH", + "dateFormatItem-yyyyMMMM": "MMMM y G", "dateFormatItem-MMMMd": "d MMMM", - "dateFormatItem-M": "LL", - "dateFormatItem-GyMMMEd": "E, d MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "dateFormatItem-MEd": "E dd/MM", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-hm": "h:mm a", + "dateTimeFormat-long": "{1} {0}", + "dateFormat-long": "d MMMM y G", + "field-dayperiod": "am/pm", "dateFormat-short": "dd/MM/y GGGGG", + "dateTimeFormat-short": "{1} {0}", + "dateTimeFormat-full": "{1} {0}", + "dateFormatItem-yyyyMMMd": "d MMM y G", "dateFormatItem-yyyyM": "MM/y GGGGG", "dateFormat-full": "EEEE, d MMMM y G", - "dateFormatItem-Md": "dd/MM", - "dateFormatItem-yyyyMMM": "MMM y G", - "dateFormatItem-d": "d", - "dateFormatItem-h": "h a" + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", + "dateFormatItem-Ed": "E d" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/en-gb/gregorian.js b/cldr/nls/en-gb/gregorian.js index cfdc6542fc..9ad38b0cc5 100644 --- a/cldr/nls/en-gb/gregorian.js +++ b/cldr/nls/en-gb/gregorian.js @@ -1,52 +1,37 @@ define( //begin v1.x content { - "dateFormatItem-yM": "MM/y", - "field-dayperiod": "am/pm", - "dayPeriods-format-wide-pm": "pm", + "dateFormat-medium": "d MMM y", + "dateFormatItem-yMd": "dd/MM/y", "dateFormatItem-MMMEd": "E d MMM", - "dateTimeFormat-full": "{1} {0}", - "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-MEd": "E dd/MM", "dateFormatItem-MMdd": "dd/MM", - "dateFormatItem-yQQQ": "QQQ y", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "y G", - "dayPeriods-format-wide-am": "am", + "dateFormatItem-yMEd": "E, dd/MM/y", "dateTimeFormat-medium": "{1} {0}", - "dateFormatItem-y": "y", - "timeFormat-full": "HH:mm:ss zzzz", - "dateFormatItem-Ed": "E d", - "dateFormatItem-yMMM": "MMM y", "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormat-long": "d MMMM y", - "timeFormat-medium": "HH:mm:ss", - "dateFormatItem-Hm": "HH:mm", - "dateFormat-medium": "d MMM y", - "dateFormatItem-Hms": "HH:mm:ss", - "dateFormatItem-yMd": "dd/MM/y", - "dateFormatItem-yMMMM": "MMMM y", - "dateFormatItem-ms": "mm:ss", - "dateTimeFormat-long": "{1} {0}", - "dateFormatItem-MMMd": "d MMM", - "timeFormat-long": "HH:mm:ss z", - "dateFormatItem-yQQQQ": "QQQQ y", - "timeFormat-short": "HH:mm", - "dateFormatItem-H": "HH", - "dateFormatItem-MMMMd": "d MMMM", - "dateFormatItem-M": "LL", + "timeFormat-full": "HH:mm:ss zzzz", "dateFormatItem-yMMMd": "d MMM y", + "dateFormatItem-Md": "dd/MM", "dateFormatItem-GyMMMEd": "E, d MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "dateFormatItem-MEd": "E dd/MM", - "dateFormatItem-hm": "h:mm a", + "dateFormatItem-M": "LL", + "dayPeriods-format-wide-pm": "pm", + "dateFormatItem-MMMMd": "d MMMM", + "dateTimeFormat-long": "{1} {0}", + "dayPeriods-format-wide-am": "am", + "timeFormat-medium": "HH:mm:ss", + "dateFormat-long": "d MMMM y", + "field-dayperiod": "am/pm", "dateFormat-short": "dd/MM/y", "dateFormatItem-yMMMEd": "E, d MMM y", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-yMMMM": "MMMM y", + "dateTimeFormat-full": "{1} {0}", + "dateFormatItem-yM": "MM/y", + "timeFormat-short": "HH:mm", + "timeFormat-long": "HH:mm:ss z", "dateFormat-full": "EEEE, d MMMM y", - "dateFormatItem-Md": "dd/MM", - "dateFormatItem-yMEd": "E, dd/MM/y", - "dateFormatItem-d": "d", - "dateFormatItem-h": "h a" + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-Ed": "E d" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/en-gb/islamic.js b/cldr/nls/en-gb/islamic.js new file mode 100644 index 0000000000..df68a100c1 --- /dev/null +++ b/cldr/nls/en-gb/islamic.js @@ -0,0 +1,143 @@ +define( +//begin v1.x content +{ + "field-dayperiod": "am/pm", + "dateFormatItem-yyyyMMMEd": "E, d MMM y G", + "dayPeriods-format-wide-pm": "pm", + "dateFormatItem-MMMEd": "E d MMM", + "months-standAlone-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "dateTimeFormats-appendItem-Year": "{0} {1}", + "dateFormatItem-Gy": "y G", + "dayPeriods-format-wide-am": "am", + "dateFormatItem-y": "y G", + "dateFormatItem-yyyy": "y G", + "months-standAlone-abbr": [ + "Muh.", + "Saf.", + "Rab. I", + "Rab. II", + "Jum. I", + "Jum. II", + "Raj.", + "Sha.", + "Ram.", + "Shaw.", + "Dhuʻl-Q.", + "Dhuʻl-H." + ], + "dateFormatItem-Ed": "E d", + "dateFormatItem-GyMMMd": "d MMM y G", + "dateFormat-long": "d MMMM y G", + "dateFormat-medium": "d MMM y G", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "months-standAlone-wide": [ + "Muharram", + "Safar", + "Rabiʻ I", + "Rabiʻ II", + "Jumada I", + "Jumada II", + "Rajab", + "Shaʻban", + "Ramadan", + "Shawwal", + "Dhuʻl-Qiʻdah", + "Dhuʻl-Hijjah" + ], + "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", + "dateFormatItem-MMMd": "d MMM", + "months-format-abbr": [ + "Muh.", + "Saf.", + "Rab. I", + "Rab. II", + "Jum. I", + "Jum. II", + "Raj.", + "Sha.", + "Ram.", + "Shaw.", + "Dhuʻl-Q.", + "Dhuʻl-H." + ], + "dateFormatItem-M": "LL", + "dateFormatItem-GyMMMEd": "E, d MMM y G", + "dateFormatItem-GyMMM": "MMM y G", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateFormatItem-MEd": "E dd/MM", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "dateFormat-short": "dd/MM/y GGGGG", + "dateFormatItem-yyyyM": "MM/y GGGGG", + "dateFormat-full": "EEEE, d MMMM y G", + "dateFormatItem-Md": "dd/MM", + "months-format-wide": [ + "Muharram", + "Safar", + "Rabiʻ I", + "Rabiʻ II", + "Jumada I", + "Jumada II", + "Rajab", + "Shaʻban", + "Ramadan", + "Shawwal", + "Dhuʻl-Qiʻdah", + "Dhuʻl-Hijjah" + ], + "days-format-short": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" + ], + "dateFormatItem-yyyyMMM": "MMM y G", + "dateTimeFormats-appendItem-Era": "{0} {1}", + "quarters-format-wide": [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter" + ], + "days-format-wide": [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ] +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/en/buddhist.js b/cldr/nls/en/buddhist.js index 47be09ef43..cc817e09b5 100644 --- a/cldr/nls/en/buddhist.js +++ b/cldr/nls/en/buddhist.js @@ -1,91 +1,25 @@ define( //begin v1.x content { - "field-dayperiod": "AM/PM", - "dateFormatItem-yyyyMMMEd": "E, MMM d, y G", - "field-minute": "Minute", - "dateFormatItem-MMMEd": "E, MMM d", - "dateTimeFormat-full": "{1} 'at' {0}", - "field-day-relative+-1": "Yesterday", + "field-second-relative+0": "now", "field-weekday": "Day of the Week", - "months-standAlone-narrow": [ - "J", - "F", - "M", - "A", - "M", - "J", - "J", - "A", - "S", - "O", - "N", - "D" - ], - "dateTimeFormats-appendItem-Year": "{0} {1}", - "dateTimeFormat-short": "{1}, {0}", - "field-era": "Era", - "dateFormatItem-Gy": "y G", - "field-hour": "Hour", - "dateTimeFormat-medium": "{1}, {0}", - "dateFormatItem-y": "y G", - "timeFormat-full": "h:mm:ss a zzzz", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "d E", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", - "eraAbbr": [ - "BE" + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", + "dateFormatItem-GyMMMEd": "E, MMM d, y G", + "dateFormatItem-MMMEd": "E, MMM d", + "field-tue-relative+-1": "last Tuesday", + "days-format-short": [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa" ], - "dateFormatItem-GyMMMd": "MMM d, y G", "dateFormat-long": "MMMM d, y G", - "timeFormat-medium": "h:mm:ss a", - "field-zone": "Time Zone", - "field-week-relative+-1": "Last week", - "dateFormat-medium": "MMM d, y G", - "dayPeriods-format-narrow-pm": "p", - "field-year-relative+0": "This year", - "field-year-relative+1": "Next year", - "field-year-relative+-1": "Last year", - "field-year": "Year", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "dayPeriods-format-narrow-am": "a", - "dateTimeFormat-long": "{1} 'at' {0}", - "field-week": "Week", - "dateFormatItem-yyyyMMMd": "MMM d, y G", - "dateFormatItem-yyyyMd": "M/d/y GGGGG", - "dateFormatItem-yyyyMEd": "E, M/d/y GGGGG", - "field-week-relative+0": "This week", - "field-week-relative+1": "Next week", - "timeFormat-long": "h:mm:ss a z", - "months-format-abbr": [ - "Jan", - "Feb", - "Mar", - "Apr", - "May", - "Jun", - "Jul", - "Aug", - "Sep", - "Oct", - "Nov", - "Dec" - ], - "field-month-relative+0": "This month", - "field-month": "Month", - "field-month-relative+1": "Next month", - "timeFormat-short": "h:mm a", - "field-second": "Second", - "dateFormatItem-GyMMMEd": "E, MMM d, y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "Day", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E, M/d", - "dateFormat-short": "M/d/y GGGGG", - "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormat-full": "EEEE, MMMM d, y G", - "dateFormatItem-Md": "M/d", + "field-fri-relative+-1": "last Friday", + "field-wed-relative+-1": "last Wednesday", "months-format-wide": [ "January", "February", @@ -100,24 +34,65 @@ define( "November", "December" ], - "days-format-short": [ - "Su", - "Mo", - "Tu", - "We", - "Th", - "Fr", - "Sa" - ], - "dateFormatItem-yyyyMMM": "MMM y G", - "dateTimeFormats-appendItem-Era": "{0} {1}", - "field-month-relative+-1": "Last month", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-medium": "{1}, {0}", + "dateFormat-full": "EEEE, MMMM d, y G", + "dateFormatItem-yyyyMEd": "E, M/d/y GGGGG", + "field-thu-relative+-1": "last Thursday", + "dateFormatItem-Md": "M/d", + "field-era": "Era", + "timeFormat-short": "h:mm a", "quarters-format-wide": [ "1st quarter", "2nd quarter", "3rd quarter", "4th quarter" ], + "timeFormat-long": "h:mm:ss a z", + "field-year": "Year", + "dateTimeFormats-appendItem-Era": "{0} {1}", + "field-hour": "Hour", + "months-format-abbr": [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + "field-sat-relative+0": "this Saturday", + "field-sat-relative+1": "next Saturday", + "timeFormat-full": "h:mm:ss a zzzz", + "field-day-relative+0": "today", + "field-thu-relative+0": "this Thursday", + "field-day-relative+1": "tomorrow", + "field-thu-relative+1": "next Thursday", + "dateFormatItem-GyMMMd": "MMM d, y G", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, MMM d, y G", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "MMM d, y G", + "timeFormat-medium": "h:mm:ss a", + "field-sun-relative+0": "this Sunday", + "field-sun-relative+1": "next Sunday", + "eraAbbr": [ + "BE" + ], + "field-minute": "Minute", + "field-dayperiod": "AM/PM", + "field-day-relative+-1": "yesterday", + "dateTimeFormat-long": "{1} 'at' {0}", + "dateFormatItem-MEd": "E, M/d", + "dateTimeFormat-full": "{1} 'at' {0}", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "field-day": "Day", "days-format-wide": [ "Sunday", "Monday", @@ -126,7 +101,52 @@ define( "Thursday", "Friday", "Saturday" - ] + ], + "field-zone": "Time Zone", + "dateFormatItem-y": "y G", + "months-standAlone-narrow": [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D" + ], + "field-year-relative+-1": "last year", + "field-month-relative+-1": "last month", + "dateTimeFormats-appendItem-Year": "{0} {1}", + "dateFormatItem-yyyyMd": "M/d/y GGGGG", + "field-month": "Month", + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "dateFormat-short": "M/d/y GGGGG", + "field-second": "Second", + "field-sat-relative+-1": "last Saturday", + "field-sun-relative+-1": "last Sunday", + "field-month-relative+0": "this month", + "field-month-relative+1": "next month", + "dateFormatItem-Ed": "d E", + "field-week": "Week", + "dateFormat-medium": "MMM d, y G", + "field-year-relative+0": "this year", + "field-week-relative+-1": "last week", + "dateFormatItem-yyyyM": "M/y GGGGG", + "field-year-relative+1": "next year", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "last Monday", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "this week", + "field-week-relative+1": "next week" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/en/chinese.js b/cldr/nls/en/chinese.js index d7b262d491..ecb9ae97ce 100644 --- a/cldr/nls/en/chinese.js +++ b/cldr/nls/en/chinese.js @@ -1,49 +1,41 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E, MMM d, U", - "field-dayperiod": "AM/PM", - "field-minute": "Minute", - "dateFormatItem-MMMEd": "E, MMM d", - "dateTimeFormat-full": "{1} 'at' {0}", - "field-day-relative+-1": "Yesterday", - "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-Ehm": "E h:mm a", + "field-second-relative+0": "now", "field-weekday": "Day of the Week", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1}, {0}", - "dateFormatItem-Gy": "U", - "dateTimeFormat-medium": "{1}, {0}", - "field-era": "Era", - "field-hour": "Hour", - "dateFormatItem-y": "U", - "dateFormatItem-yyyy": "U", - "dateFormatItem-Ed": "d E", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", - "dateFormatItem-GyMMMd": "MMM d, U", + "field-wed-relative+0": "this Wednesday", + "dateFormatItem-GyMMMEd": "E, MMM d, U", + "dateFormatItem-MMMEd": "E, MMM d", + "field-wed-relative+1": "next Wednesday", + "field-tue-relative+-1": "last Tuesday", "dateFormat-long": "MMMM d, U", - "dateFormatItem-Ehm": "E h:mm a", - "field-zone": "Time Zone", - "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "Last week", - "dateFormat-medium": "MMM d, U", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "This year", - "field-year-relative+1": "Next year", + "field-fri-relative+-1": "last Friday", + "field-wed-relative+-1": "last Wednesday", + "months-format-wide": [ + "Month1", + "Month2", + "Month3", + "Month4", + "Month5", + "Month6", + "Month7", + "Month8", + "Month9", + "Month10", + "Month11", + "Month12" + ], + "dateFormatItem-yyyyQQQ": "QQQ U", + "dateTimeFormat-medium": "{1}, {0}", + "dateFormat-full": "EEEE, MMMM d, U", + "dateFormatItem-yyyyMEd": "E, M/d/y", + "field-thu-relative+-1": "last Thursday", + "dateFormatItem-Md": "M/d", "dateFormatItem-yMd": "M/d/y", - "field-year-relative+-1": "Last year", - "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ U", + "field-era": "Era", "field-year": "Year", - "dateTimeFormat-long": "{1} 'at' {0}", - "field-week": "Week", - "dateFormatItem-yyyyMd": "M/d/y", - "dateFormatItem-yyyyMMMd": "MMM d, U", - "dateFormatItem-yyyyMEd": "E, M/d/y", - "dateFormatItem-MMMd": "MMM d", - "field-week-relative+0": "This week", - "dateFormatItem-Ehms": "E h:mm:ss a", - "field-week-relative+1": "Next week", + "field-hour": "Hour", "months-format-abbr": [ "Mo1", "Mo2", @@ -58,42 +50,72 @@ define( "Mo11", "Mo12" ], - "field-month-relative+0": "This month", + "field-sat-relative+0": "this Saturday", + "field-sat-relative+1": "next Saturday", + "field-day-relative+0": "today", + "field-day-relative+1": "tomorrow", + "field-thu-relative+0": "this Thursday", + "dateFormatItem-GyMMMd": "MMM d, U", + "field-thu-relative+1": "next Thursday", "dateFormatItem-H": "HH", - "field-month": "Month", - "field-month-relative+1": "Next month", + "dateFormatItem-Gy": "U", + "dateFormatItem-yyyyMMMEd": "E, MMM d, U", "dateFormatItem-M": "L", - "field-second": "Second", - "dateFormatItem-GyMMMEd": "E, MMM d, U", - "dateFormatItem-GyMMM": "MMM U", - "field-day": "Day", + "dateFormatItem-yyyyMMM": "MMM U", + "dateFormatItem-yyyyMMMd": "MMM d, U", + "field-sun-relative+0": "this Sunday", + "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "next Sunday", + "field-minute": "Minute", + "field-dayperiod": "AM/PM", + "dateFormatItem-d": "d", + "dateFormatItem-ms": "mm:ss", + "field-day-relative+-1": "yesterday", + "dateFormatItem-h": "h a", + "dateTimeFormat-long": "{1} 'at' {0}", + "dateFormatItem-MMMd": "MMM d", "dateFormatItem-MEd": "E, M/d", - "dateFormatItem-yyyyQQQ": "QQQ U", + "dateTimeFormat-full": "{1} 'at' {0}", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "field-day": "Day", + "field-zone": "Time Zone", + "dateFormatItem-y": "U", + "field-year-relative+-1": "last year", + "field-month-relative+-1": "last month", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "M/d/y", + "field-month": "Month", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", "dateFormat-short": "M/d/yy", - "dateFormatItem-yyyyM": "M/y", - "dateFormat-full": "EEEE, MMMM d, U", "dateFormatItem-EHms": "E HH:mm:ss", - "dateFormatItem-Md": "M/d", - "dateFormatItem-EHm": "E HH:mm", - "months-format-wide": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" - ], - "dateFormatItem-yyyyMMM": "MMM U", - "dateFormatItem-d": "d", - "field-month-relative+-1": "Last month", - "dateFormatItem-h": "h a" + "dateFormatItem-Ehms": "E h:mm:ss a", + "field-second": "Second", + "field-sat-relative+-1": "last Saturday", + "field-sun-relative+-1": "last Sunday", + "field-month-relative+0": "this month", + "field-month-relative+1": "next month", + "dateFormatItem-Ed": "d E", + "field-week": "Week", + "dateFormat-medium": "MMM d, U", + "field-year-relative+0": "this year", + "field-week-relative+-1": "last week", + "dateFormatItem-yyyyM": "M/y", + "field-year-relative+1": "next year", + "dateFormatItem-yyyyQQQQ": "QQQQ U", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM U", + "field-mon-relative+-1": "last Monday", + "dateFormatItem-yyyy": "U", + "field-week-relative+0": "this week", + "field-week-relative+1": "next week" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/en/generic.js b/cldr/nls/en/generic.js index 7f242a6dd7..783b97d948 100644 --- a/cldr/nls/en/generic.js +++ b/cldr/nls/en/generic.js @@ -2,80 +2,102 @@ define( //begin v1.x content { "dateFormatItem-Ehm": "E h:mm a", + "field-second-relative+0": "now", "field-weekday": "Day of the Week", + "field-wed-relative+0": "this Wednesday", "dateFormatItem-GyMMMEd": "E, MMM d, y G", "dateFormatItem-MMMEd": "E, MMM d", + "field-wed-relative+1": "next Wednesday", + "field-tue-relative+-1": "last Tuesday", "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", "dateFormat-long": "MMMM d, y G", + "field-fri-relative+-1": "last Friday", + "field-wed-relative+-1": "last Wednesday", "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1}, {0}", "dateFormat-full": "EEEE, MMMM d, y G", "dateFormatItem-yyyyMEd": "E, M/d/y GGGGG", + "field-thu-relative+-1": "last Thursday", "dateFormatItem-Md": "M/d", "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", "field-era": "Era", "field-year": "Year", "dateTimeFormats-appendItem-Era": "{0} {1}", "field-hour": "Hour", + "field-sat-relative+0": "this Saturday", + "field-sat-relative+1": "next Saturday", "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", + "field-day-relative+0": "today", + "field-day-relative+1": "tomorrow", + "field-thu-relative+0": "this Thursday", "dateFormatItem-GyMMMd": "MMM d, y G", + "field-thu-relative+1": "next Thursday", "dateFormatItem-H": "HH", "dateFormatItem-Gy": "y G", "dateFormatItem-yyyyMMMEd": "E, MMM d, y G", "dateFormatItem-M": "L", "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "MMM d, y G", + "field-sun-relative+0": "this Sunday", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "next Sunday", "field-minute": "Minute", "field-dayperiod": "AM/PM", "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "field-day-relative+-1": "Yesterday", + "field-day-relative+-1": "yesterday", "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} 'at' {0}", "dateFormatItem-MMMd": "MMM d", "dateFormatItem-MEd": "E, M/d", "dateTimeFormat-full": "{1} 'at' {0}", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", "field-day": "Day", "field-zone": "Time Zone", "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", "dateFormatItem-y": "y G", - "field-year-relative+-1": "Last year", - "field-month-relative+-1": "Last month", + "field-year-relative+-1": "last year", + "field-month-relative+-1": "last month", "dateFormatItem-hm": "h:mm a", "dateTimeFormats-appendItem-Year": "{0} {1}", "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", "dateFormatItem-yyyyMd": "M/d/y GGGGG", "field-month": "Month", "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "this Tuesday", "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", + "field-tue-relative+1": "next Tuesday", "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", "dateFormat-short": "M/d/y GGGGG", "dateFormatItem-EHms": "E HH:mm:ss", "dateFormatItem-Ehms": "E h:mm:ss a", "field-second": "Second", - "field-month-relative+0": "This month", - "field-month-relative+1": "Next month", + "field-sat-relative+-1": "last Saturday", + "field-sun-relative+-1": "last Sunday", + "field-month-relative+0": "this month", + "field-month-relative+1": "next month", "dateFormatItem-Ed": "d E", "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "Week", "dateFormat-medium": "MMM d, y G", - "field-year-relative+0": "This year", - "field-week-relative+-1": "Last week", + "field-year-relative+0": "this year", + "field-week-relative+-1": "last week", "dateFormatItem-yyyyM": "M/y GGGGG", - "field-year-relative+1": "Next year", + "field-year-relative+1": "next year", "dateFormatItem-yyyyQQQQ": "QQQQ y G", "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "last Monday", "dateFormatItem-yyyy": "y G", - "field-week-relative+0": "This week", - "field-week-relative+1": "Next week" + "field-week-relative+0": "this week", + "field-week-relative+1": "next week" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/en/gregorian.js b/cldr/nls/en/gregorian.js index c1629cdbfb..9b921e79f9 100644 --- a/cldr/nls/en/gregorian.js +++ b/cldr/nls/en/gregorian.js @@ -25,6 +25,7 @@ define( "N", "D" ], + "field-second-relative+0": "now", "quarters-standAlone-narrow": [ "1", "2", @@ -34,12 +35,17 @@ define( "field-weekday": "Day of the Week", "dateFormatItem-yQQQ": "QQQ y", "dateFormatItem-yMEd": "E, M/d/y", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", "dateFormatItem-GyMMMEd": "E, MMM d, y G", "dateFormatItem-MMMEd": "E, MMM d", "eraNarrow": [ "B", - "A" + "A", + "AD", + "CE" ], + "field-tue-relative+-1": "last Tuesday", "days-format-short": [ "Su", "Mo", @@ -51,6 +57,8 @@ define( ], "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", "dateFormat-long": "MMMM d, y", + "field-fri-relative+-1": "last Friday", + "field-wed-relative+-1": "last Wednesday", "months-format-wide": [ "January", "February", @@ -68,6 +76,7 @@ define( "dateTimeFormat-medium": "{1}, {0}", "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "EEEE, MMMM d, y", + "field-thu-relative+-1": "last Thursday", "dateFormatItem-Md": "M/d", "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", "dayPeriods-format-wide-noon": "noon", @@ -115,10 +124,14 @@ define( "Nov", "Dec" ], + "field-sat-relative+0": "this Saturday", + "field-sat-relative+1": "next Saturday", "timeFormat-full": "h:mm:ss a zzzz", "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", + "field-day-relative+0": "today", + "field-thu-relative+0": "this Thursday", + "field-day-relative+1": "tomorrow", + "field-thu-relative+1": "next Thursday", "dateFormatItem-GyMMMd": "MMM d, y G", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ @@ -159,22 +172,28 @@ define( "Saturday" ], "timeFormat-medium": "h:mm:ss a", + "field-sun-relative+0": "this Sunday", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "next Sunday", "eraAbbr": [ "BC", - "AD" + "BCE", + "AD", + "CE" ], "field-minute": "Minute", "field-dayperiod": "AM/PM", "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "field-day-relative+-1": "Yesterday", + "field-day-relative+-1": "yesterday", "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} 'at' {0}", "dayPeriods-format-narrow-am": "a", "dateFormatItem-MMMd": "MMM d", "dateFormatItem-MEd": "E, M/d", "dateTimeFormat-full": "{1} 'at' {0}", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", "field-day": "Day", "days-format-wide": [ "Sunday", @@ -202,8 +221,8 @@ define( "N", "D" ], - "field-year-relative+-1": "Last year", - "field-month-relative+-1": "Last month", + "field-year-relative+-1": "last year", + "field-month-relative+-1": "last month", "dateFormatItem-hm": "h:mm a", "dateTimeFormats-appendItem-Year": "{0} {1}", "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", @@ -219,7 +238,9 @@ define( "dateFormatItem-yMMMd": "MMM d, y", "eraNames": [ "Before Christ", - "Anno Domini" + "Before Common Era", + "Anno Domini", + "Common Era" ], "days-standAlone-narrow": [ "S", @@ -232,33 +253,40 @@ define( ], "dateFormatItem-MMM": "LLL", "field-month": "Month", + "field-tue-relative+0": "this Tuesday", "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", + "field-tue-relative+1": "next Tuesday", "dayPeriods-format-wide-am": "AM", "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", "dateFormat-short": "M/d/yy", "dateFormatItem-EHms": "E HH:mm:ss", "dateFormatItem-Ehms": "E h:mm:ss a", "dayPeriods-format-narrow-noon": "n", "field-second": "Second", + "field-sat-relative+-1": "last Saturday", "dateFormatItem-yMMMEd": "E, MMM d, y", - "field-month-relative+0": "This month", - "field-month-relative+1": "Next month", + "field-sun-relative+-1": "last Sunday", + "field-month-relative+0": "this month", + "field-month-relative+1": "next month", "dateFormatItem-Ed": "d E", "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "Week", "dateFormat-medium": "MMM d, y", - "field-year-relative+0": "This year", - "field-week-relative+-1": "Last week", - "field-year-relative+1": "Next year", + "field-year-relative+0": "this year", + "field-week-relative+-1": "last week", + "field-year-relative+1": "next year", "dayPeriods-format-narrow-pm": "p", "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "MMM y G", - "field-week-relative+0": "This week", - "field-week-relative+1": "Next week" + "field-mon-relative+-1": "last Monday", + "field-week-relative+0": "this week", + "field-week-relative+1": "next week" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/en/hebrew.js b/cldr/nls/en/hebrew.js index 9f4c2a56c5..17b5c74a50 100644 --- a/cldr/nls/en/hebrew.js +++ b/cldr/nls/en/hebrew.js @@ -1,63 +1,13 @@ define( //begin v1.x content { - "field-dayperiod": "AM/PM", - "dateFormatItem-yyyyMMMEd": "E, MMM d, y G", - "field-minute": "Minute", - "dateFormatItem-MMMEd": "E, MMM d", - "dateTimeFormat-full": "{1} 'at' {0}", - "field-day-relative+-1": "Yesterday", + "field-second-relative+0": "now", "field-weekday": "Day of the Week", - "dateTimeFormats-appendItem-Year": "{0} {1}", - "dateTimeFormat-short": "{1}, {0}", - "field-era": "Era", - "dateFormatItem-Gy": "y G", - "field-hour": "Hour", - "dateTimeFormat-medium": "{1}, {0}", - "dateFormatItem-y": "y G", - "timeFormat-full": "h:mm:ss a zzzz", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "d E", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", - "eraAbbr": [ - "AM" - ], - "dateFormatItem-GyMMMd": "MMM d, y G", - "dateFormat-long": "MMMM d, y G", - "timeFormat-medium": "h:mm:ss a", - "field-zone": "Time Zone", - "field-week-relative+-1": "Last week", - "dateFormat-medium": "MMM d, y G", - "dayPeriods-format-narrow-pm": "p", - "field-year-relative+0": "This year", - "field-year-relative+1": "Next year", - "field-year-relative+-1": "Last year", - "field-year": "Year", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "dayPeriods-format-narrow-am": "a", - "dateTimeFormat-long": "{1} 'at' {0}", - "field-week": "Week", - "dateFormatItem-yyyyMMMd": "MMM d, y G", - "dateFormatItem-yyyyMd": "M/d/y GGGGG", - "dateFormatItem-yyyyMEd": "E, M/d/y GGGGG", - "field-week-relative+0": "This week", - "field-week-relative+1": "Next week", - "timeFormat-long": "h:mm:ss a z", - "field-month-relative+0": "This month", - "field-month": "Month", - "field-month-relative+1": "Next month", - "timeFormat-short": "h:mm a", - "field-second": "Second", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", "dateFormatItem-GyMMMEd": "E, MMM d, y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "Day", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E, M/d", - "dateFormat-short": "M/d/y GGGGG", - "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormat-full": "EEEE, MMMM d, y G", - "dateFormatItem-Md": "M/d", + "dateFormatItem-MMMEd": "E, MMM d", + "field-tue-relative+-1": "last Tuesday", "days-format-short": [ "Su", "Mo", @@ -67,15 +17,54 @@ define( "Fr", "Sa" ], - "dateFormatItem-yyyyMMM": "MMM y G", - "dateTimeFormats-appendItem-Era": "{0} {1}", - "field-month-relative+-1": "Last month", + "dateFormat-long": "MMMM d, y G", + "field-fri-relative+-1": "last Friday", + "field-wed-relative+-1": "last Wednesday", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-medium": "{1}, {0}", + "dateFormat-full": "EEEE, MMMM d, y G", + "dateFormatItem-yyyyMEd": "E, M/d/y GGGGG", + "field-thu-relative+-1": "last Thursday", + "dateFormatItem-Md": "M/d", + "field-era": "Era", + "timeFormat-short": "h:mm a", "quarters-format-wide": [ "1st quarter", "2nd quarter", "3rd quarter", "4th quarter" ], + "timeFormat-long": "h:mm:ss a z", + "field-year": "Year", + "dateTimeFormats-appendItem-Era": "{0} {1}", + "field-hour": "Hour", + "field-sat-relative+0": "this Saturday", + "field-sat-relative+1": "next Saturday", + "timeFormat-full": "h:mm:ss a zzzz", + "field-day-relative+0": "today", + "field-thu-relative+0": "this Thursday", + "field-day-relative+1": "tomorrow", + "field-thu-relative+1": "next Thursday", + "dateFormatItem-GyMMMd": "MMM d, y G", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, MMM d, y G", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "MMM d, y G", + "timeFormat-medium": "h:mm:ss a", + "field-sun-relative+0": "this Sunday", + "field-sun-relative+1": "next Sunday", + "eraAbbr": [ + "AM" + ], + "field-minute": "Minute", + "field-dayperiod": "AM/PM", + "field-day-relative+-1": "yesterday", + "dateTimeFormat-long": "{1} 'at' {0}", + "dateFormatItem-MEd": "E, M/d", + "dateTimeFormat-full": "{1} 'at' {0}", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "field-day": "Day", "days-format-wide": [ "Sunday", "Monday", @@ -84,7 +73,38 @@ define( "Thursday", "Friday", "Saturday" - ] + ], + "field-zone": "Time Zone", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "last year", + "field-month-relative+-1": "last month", + "dateTimeFormats-appendItem-Year": "{0} {1}", + "dateFormatItem-yyyyMd": "M/d/y GGGGG", + "field-month": "Month", + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "dateFormat-short": "M/d/y GGGGG", + "field-second": "Second", + "field-sat-relative+-1": "last Saturday", + "field-sun-relative+-1": "last Sunday", + "field-month-relative+0": "this month", + "field-month-relative+1": "next month", + "dateFormatItem-Ed": "d E", + "field-week": "Week", + "dateFormat-medium": "MMM d, y G", + "field-year-relative+0": "this year", + "field-week-relative+-1": "last week", + "dateFormatItem-yyyyM": "M/y GGGGG", + "field-year-relative+1": "next year", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "last Monday", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "this week", + "field-week-relative+1": "next week" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/en/islamic.js b/cldr/nls/en/islamic.js index 4de7b86e54..2fbaa0f792 100644 --- a/cldr/nls/en/islamic.js +++ b/cldr/nls/en/islamic.js @@ -1,63 +1,13 @@ define( //begin v1.x content { - "field-dayperiod": "AM/PM", - "dateFormatItem-yyyyMMMEd": "E, MMM d, y G", - "field-minute": "Minute", - "dateFormatItem-MMMEd": "E, MMM d", - "dateTimeFormat-full": "{1} 'at' {0}", - "field-day-relative+-1": "Yesterday", + "field-second-relative+0": "now", "field-weekday": "Day of the Week", - "dateTimeFormats-appendItem-Year": "{0} {1}", - "dateTimeFormat-short": "{1}, {0}", - "field-era": "Era", - "dateFormatItem-Gy": "y G", - "field-hour": "Hour", - "dateTimeFormat-medium": "{1}, {0}", - "dateFormatItem-y": "y G", - "timeFormat-full": "h:mm:ss a zzzz", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "d E", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", - "eraAbbr": [ - "AH" - ], - "dateFormatItem-GyMMMd": "MMM d, y G", - "dateFormat-long": "MMMM d, y G", - "timeFormat-medium": "h:mm:ss a", - "field-zone": "Time Zone", - "field-week-relative+-1": "Last week", - "dateFormat-medium": "MMM d, y G", - "dayPeriods-format-narrow-pm": "p", - "field-year-relative+0": "This year", - "field-year-relative+1": "Next year", - "field-year-relative+-1": "Last year", - "field-year": "Year", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "dayPeriods-format-narrow-am": "a", - "dateTimeFormat-long": "{1} 'at' {0}", - "field-week": "Week", - "dateFormatItem-yyyyMMMd": "MMM d, y G", - "dateFormatItem-yyyyMd": "M/d/y GGGGG", - "dateFormatItem-yyyyMEd": "E, M/d/y GGGGG", - "field-week-relative+0": "This week", - "field-week-relative+1": "Next week", - "timeFormat-long": "h:mm:ss a z", - "field-month-relative+0": "This month", - "field-month": "Month", - "field-month-relative+1": "Next month", - "timeFormat-short": "h:mm a", - "field-second": "Second", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", "dateFormatItem-GyMMMEd": "E, MMM d, y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "Day", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E, M/d", - "dateFormat-short": "M/d/y GGGGG", - "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormat-full": "EEEE, MMMM d, y G", - "dateFormatItem-Md": "M/d", + "dateFormatItem-MMMEd": "E, MMM d", + "field-tue-relative+-1": "last Tuesday", "days-format-short": [ "Su", "Mo", @@ -67,15 +17,54 @@ define( "Fr", "Sa" ], - "dateFormatItem-yyyyMMM": "MMM y G", - "dateTimeFormats-appendItem-Era": "{0} {1}", - "field-month-relative+-1": "Last month", + "dateFormat-long": "MMMM d, y G", + "field-fri-relative+-1": "last Friday", + "field-wed-relative+-1": "last Wednesday", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-medium": "{1}, {0}", + "dateFormat-full": "EEEE, MMMM d, y G", + "dateFormatItem-yyyyMEd": "E, M/d/y GGGGG", + "field-thu-relative+-1": "last Thursday", + "dateFormatItem-Md": "M/d", + "field-era": "Era", + "timeFormat-short": "h:mm a", "quarters-format-wide": [ "1st quarter", "2nd quarter", "3rd quarter", "4th quarter" ], + "timeFormat-long": "h:mm:ss a z", + "field-year": "Year", + "dateTimeFormats-appendItem-Era": "{0} {1}", + "field-hour": "Hour", + "field-sat-relative+0": "this Saturday", + "field-sat-relative+1": "next Saturday", + "timeFormat-full": "h:mm:ss a zzzz", + "field-day-relative+0": "today", + "field-thu-relative+0": "this Thursday", + "field-day-relative+1": "tomorrow", + "field-thu-relative+1": "next Thursday", + "dateFormatItem-GyMMMd": "MMM d, y G", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, MMM d, y G", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "MMM d, y G", + "timeFormat-medium": "h:mm:ss a", + "field-sun-relative+0": "this Sunday", + "field-sun-relative+1": "next Sunday", + "eraAbbr": [ + "AH" + ], + "field-minute": "Minute", + "field-dayperiod": "AM/PM", + "field-day-relative+-1": "yesterday", + "dateTimeFormat-long": "{1} 'at' {0}", + "dateFormatItem-MEd": "E, M/d", + "dateTimeFormat-full": "{1} 'at' {0}", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "field-day": "Day", "days-format-wide": [ "Sunday", "Monday", @@ -84,7 +73,38 @@ define( "Thursday", "Friday", "Saturday" - ] + ], + "field-zone": "Time Zone", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "last year", + "field-month-relative+-1": "last month", + "dateTimeFormats-appendItem-Year": "{0} {1}", + "dateFormatItem-yyyyMd": "M/d/y GGGGG", + "field-month": "Month", + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "dateFormat-short": "M/d/y GGGGG", + "field-second": "Second", + "field-sat-relative+-1": "last Saturday", + "field-sun-relative+-1": "last Sunday", + "field-month-relative+0": "this month", + "field-month-relative+1": "next month", + "dateFormatItem-Ed": "d E", + "field-week": "Week", + "dateFormat-medium": "MMM d, y G", + "field-year-relative+0": "this year", + "field-week-relative+-1": "last week", + "dateFormatItem-yyyyM": "M/y GGGGG", + "field-year-relative+1": "next year", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "last Monday", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "this week", + "field-week-relative+1": "next week" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/en/japanese.js b/cldr/nls/en/japanese.js index d7c688ccf6..f0d69b3191 100644 --- a/cldr/nls/en/japanese.js +++ b/cldr/nls/en/japanese.js @@ -1,33 +1,55 @@ define( //begin v1.x content { - "dateFormat-medium": "MMM d, y G", - "field-second": "Second", - "field-year-relative+-1": "Last year", - "field-week": "Week", - "field-month-relative+-1": "Last month", - "field-day-relative+-1": "Yesterday", - "field-year": "Year", - "field-week-relative+0": "This week", - "field-week-relative+1": "Next week", + "field-sat-relative+0": "this Saturday", + "field-sat-relative+1": "next Saturday", + "field-dayperiod": "AM/PM", + "field-sun-relative+-1": "last Sunday", + "field-mon-relative+-1": "last Monday", "field-minute": "Minute", - "field-week-relative+-1": "Last week", - "field-day-relative+0": "Today", + "field-day-relative+-1": "yesterday", + "field-weekday": "Day of the Week", + "field-era": "Era", "field-hour": "Hour", - "field-day-relative+1": "Tomorrow", + "field-sun-relative+0": "this Sunday", + "field-sun-relative+1": "next Sunday", + "field-wed-relative+-1": "last Wednesday", + "field-day-relative+0": "today", + "field-day-relative+1": "tomorrow", "dateFormat-long": "MMMM d, y G", - "field-day": "Day", - "field-month-relative+0": "This month", - "field-month-relative+1": "Next month", - "field-dayperiod": "AM/PM", + "field-tue-relative+0": "this Tuesday", + "field-zone": "Time Zone", + "field-tue-relative+1": "next Tuesday", + "field-week-relative+-1": "last week", + "dateFormat-medium": "MMM d, y G", + "field-year-relative+0": "this year", + "field-year-relative+1": "next year", + "field-sat-relative+-1": "last Saturday", + "field-year-relative+-1": "last year", + "field-year": "Year", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "field-week": "Week", + "field-week-relative+0": "this week", + "field-week-relative+1": "next week", + "field-month-relative+0": "this month", "field-month": "Month", + "field-month-relative+1": "next month", + "field-fri-relative+-1": "last Friday", + "field-second": "Second", + "field-tue-relative+-1": "last Tuesday", + "field-day": "Day", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "field-thu-relative+0": "this Thursday", + "field-second-relative+0": "now", "dateFormat-short": "M/d/y GGGGG", - "field-era": "Era", - "field-year-relative+0": "This year", - "field-year-relative+1": "Next year", + "field-thu-relative+1": "next Thursday", "dateFormat-full": "EEEE, MMMM d, y G", - "field-weekday": "Day of the Week", - "field-zone": "Time Zone" + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", + "field-month-relative+-1": "last month", + "field-thu-relative+-1": "last Thursday" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/en/number.js b/cldr/nls/en/number.js index f5895899fc..298ecf5a1a 100644 --- a/cldr/nls/en/number.js +++ b/cldr/nls/en/number.js @@ -10,6 +10,7 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ".", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", diff --git a/cldr/nls/en/roc.js b/cldr/nls/en/roc.js index fad283cd3b..30f0589c90 100644 --- a/cldr/nls/en/roc.js +++ b/cldr/nls/en/roc.js @@ -1,33 +1,55 @@ define( //begin v1.x content { - "field-second": "Second", - "field-year-relative+-1": "Last year", - "field-week": "Week", - "field-month-relative+-1": "Last month", - "field-day-relative+-1": "Yesterday", - "field-year": "Year", - "field-week-relative+0": "This week", - "field-week-relative+1": "Next week", - "field-minute": "Minute", - "field-week-relative+-1": "Last week", - "field-day-relative+0": "Today", - "field-hour": "Hour", - "field-day-relative+1": "Tomorrow", - "field-day": "Day", - "field-month-relative+0": "This month", - "field-month-relative+1": "Next month", + "field-sat-relative+0": "this Saturday", + "field-sat-relative+1": "next Saturday", "field-dayperiod": "AM/PM", - "field-month": "Month", + "field-sun-relative+-1": "last Sunday", + "field-mon-relative+-1": "last Monday", + "field-minute": "Minute", + "field-day-relative+-1": "yesterday", + "field-weekday": "Day of the Week", "field-era": "Era", - "field-year-relative+0": "This year", - "field-year-relative+1": "Next year", + "field-hour": "Hour", + "field-sun-relative+0": "this Sunday", + "field-sun-relative+1": "next Sunday", + "field-wed-relative+-1": "last Wednesday", + "field-day-relative+0": "today", + "field-day-relative+1": "tomorrow", "eraAbbr": [ "Before R.O.C.", "Minguo" ], - "field-weekday": "Day of the Week", - "field-zone": "Time Zone" + "field-tue-relative+0": "this Tuesday", + "field-zone": "Time Zone", + "field-tue-relative+1": "next Tuesday", + "field-week-relative+-1": "last week", + "field-year-relative+0": "this year", + "field-year-relative+1": "next year", + "field-sat-relative+-1": "last Saturday", + "field-year-relative+-1": "last year", + "field-year": "Year", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "field-week": "Week", + "field-week-relative+0": "this week", + "field-week-relative+1": "next week", + "field-month-relative+0": "this month", + "field-month": "Month", + "field-month-relative+1": "next month", + "field-fri-relative+-1": "last Friday", + "field-second": "Second", + "field-tue-relative+-1": "last Tuesday", + "field-day": "Day", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "field-thu-relative+0": "this Thursday", + "field-second-relative+0": "now", + "field-thu-relative+1": "next Thursday", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", + "field-month-relative+-1": "last month", + "field-thu-relative+-1": "last Thursday" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/es/buddhist.js b/cldr/nls/es/buddhist.js index b3d5145a0b..98f25d9368 100644 --- a/cldr/nls/es/buddhist.js +++ b/cldr/nls/es/buddhist.js @@ -1,16 +1,16 @@ define( //begin v1.x content { - "field-dayperiod": "periodo del día", - "dateFormatItem-yyyyMMMEd": "E, d 'de' MMMM 'de' y G", - "dayPeriods-format-wide-pm": "p.m.", - "field-minute": "minuto", - "dateFormatItem-MMMEd": "E d MMM", - "field-day-relative+-1": "ayer", - "field-weekday": "día de la semana", - "dateFormatItem-hms": "hh:mm:ss a", - "field-day-relative+-2": "antes de ayer", - "months-standAlone-narrow": [ + "days-standAlone-short": [ + "DO", + "LU", + "MA", + "MI", + "JU", + "VI", + "SA" + ], + "months-format-narrow": [ "E", "F", "M", @@ -24,116 +24,216 @@ define( "N", "D" ], + "field-second-relative+0": "ahora", + "quarters-standAlone-narrow": [ + "1T", + "2T", + "3T", + "4T" + ], + "field-weekday": "día de la semana", + "field-wed-relative+0": "este miércoles", + "field-wed-relative+1": "el próximo miércoles", + "dateFormatItem-GyMMMEd": "E, d 'de' MMMM 'de' y G", + "dateFormatItem-MMMEd": "E, d MMM", + "field-tue-relative+-1": "el martes pasado", + "days-format-short": [ + "DO", + "LU", + "MA", + "MI", + "JU", + "VI", + "SA" + ], + "dateFormat-long": "d 'de' MMMM 'de' y G", + "field-fri-relative+-1": "el viernes pasado", + "field-wed-relative+-1": "el miércoles pasado", + "months-format-wide": [ + "enero", + "febrero", + "marzo", + "abril", + "mayo", + "junio", + "julio", + "agosto", + "septiembre", + "octubre", + "noviembre", + "diciembre" + ], + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dayPeriods-format-wide-pm": "p. m.", + "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", + "dateFormatItem-yyyyMEd": "E, d/M/y GGGGG", + "field-thu-relative+-1": "el jueves pasado", + "dateFormatItem-Md": "d/M", "field-era": "era", - "dateFormatItem-Gy": "y G", + "months-standAlone-wide": [ + "Enero", + "Febrero", + "Marzo", + "Abril", + "Mayo", + "Junio", + "Julio", + "Agosto", + "Septiembre", + "Octubre", + "Noviembre", + "Diciembre" + ], + "timeFormat-short": "H:mm", + "quarters-format-wide": [ + "1.er trimestre", + "2.º trimestre", + "3.er trimestre", + "4.º trimestre" + ], + "timeFormat-long": "H:mm:ss z", + "field-year": "año", "field-hour": "hora", - "dayPeriods-format-wide-am": "a.m.", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ - "ene", - "feb", - "mar", - "abr", - "mayo", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" + "months-format-abbr": [ + "ene.", + "feb.", + "mar.", + "abr.", + "may.", + "jun.", + "jul.", + "ago.", + "sept.", + "oct.", + "nov.", + "dic." ], - "dateFormatItem-Ed": "E d", + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "el próximo sábado", + "timeFormat-full": "H:mm:ss (zzzz)", "field-day-relative+0": "hoy", + "field-thu-relative+0": "este jueves", "field-day-relative+1": "mañana", - "days-standAlone-narrow": [ - "D", - "L", - "M", - "X", - "J", - "V", - "S" + "field-thu-relative+1": "el próximo jueves", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "pasado mañana", + "months-standAlone-abbr": [ + "Ene.", + "Feb.", + "Mar.", + "Abr.", + "May.", + "Jun.", + "Jul.", + "Ago.", + "Sept.", + "Oct.", + "Nov.", + "Dic." ], - "eraAbbr": [ - "BE" + "quarters-format-abbr": [ + "T1", + "T2", + "T3", + "T4" ], - "field-day-relative+2": "pasado mañana", - "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormat-long": "d 'de' MMMM 'de' y G", - "field-zone": "zona", - "field-week-relative+-1": "la semana pasada", - "dateFormat-medium": "dd/MM/y G", - "field-year-relative+0": "este año", - "field-year-relative+1": "el próximo año", "quarters-standAlone-wide": [ "1.er trimestre", "2.º trimestre", "3.er trimestre", "4.º trimestre" ], - "field-year-relative+-1": "el año pasado", - "field-year": "año", - "dateFormatItem-yyyyQQQQ": "QQQQ 'de' y G", - "quarters-standAlone-narrow": [ - "1T", - "2T", - "3T", - "4T" + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d 'de' MMMM 'de' y G", + "days-standAlone-wide": [ + "Domingo", + "Lunes", + "Martes", + "Miércoles", + "Jueves", + "Viernes", + "Sábado" ], - "field-week": "semana", + "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMd": "d/M/y GGGGG", - "dateFormatItem-yyyyMEd": "E, d/M/y GGGGG", - "field-week-relative+0": "esta semana", - "dateFormatItem-MMMd": "d MMM", + "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "el próximo domingo", + "quarters-standAlone-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], + "eraAbbr": [ + "BE" + ], + "field-minute": "minuto", + "field-dayperiod": "periodo del día", + "days-standAlone-abbr": [ + "Dom.", + "Lun.", + "Mar.", + "Mié.", + "Jue.", + "Vie.", + "Sáb." + ], "quarters-format-narrow": [ "1T", "2T", "3T", "4T" ], - "field-week-relative+1": "la próxima semana", - "months-format-abbr": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" + "field-day-relative+-1": "ayer", + "dateFormatItem-h": "hh a", + "dateTimeFormat-long": "{1}, {0}", + "dayPeriods-format-narrow-am": "a.m.", + "field-day-relative+-2": "antes de ayer", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E, d/M", + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "este viernes", + "field-fri-relative+1": "el próximo viernes", + "field-day": "día", + "days-format-wide": [ + "domingo", + "lunes", + "martes", + "miércoles", + "jueves", + "viernes", + "sábado" ], - "field-month-relative+0": "este mes", - "field-month": "mes", - "field-month-relative+1": "el próximo mes", - "quarters-format-abbr": [ - "T1", - "T2", - "T3", - "T4" + "field-zone": "zona horaria", + "dateFormatItem-y": "y G", + "months-standAlone-narrow": [ + "E", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D" ], + "field-year-relative+-1": "el año pasado", + "field-month-relative+-1": "el mes pasado", + "dateFormatItem-hm": "hh:mm a", "days-format-abbr": [ - "dom", - "lun", - "mar", - "mié", - "jue", - "vie", - "sáb" + "dom.", + "lun.", + "mar.", + "mié.", + "jue.", + "vie.", + "sáb." ], - "field-second": "segundo", - "dateFormatItem-GyMMMEd": "E, d 'de' MMMM 'de' y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "día", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E, d/M", - "days-standAlone-short": [ + "days-format-narrow": [ "D", "L", "M", @@ -142,26 +242,9 @@ define( "V", "S" ], - "dateFormatItem-hm": "hh:mm a", - "dateFormat-short": "dd/MM/yy GGGGG", - "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", - "dateFormatItem-Md": "d/M", - "months-format-wide": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "days-format-short": [ + "dateFormatItem-yyyyMd": "d/M/y GGGGG", + "field-month": "mes", + "days-standAlone-narrow": [ "D", "L", "M", @@ -170,24 +253,32 @@ define( "V", "S" ], - "dateFormatItem-yyyyMMM": "MMM y G", - "field-month-relative+-1": "el mes pasado", - "quarters-format-wide": [ - "1er trimestre", - "2º trimestre", - "3er trimestre", - "4º trimestre" - ], - "days-format-wide": [ - "domingo", - "lunes", - "martes", - "miércoles", - "jueves", - "viernes", - "sábado" - ], - "dateFormatItem-h": "hh a" + "field-tue-relative+0": "este martes", + "field-tue-relative+1": "el próximo martes", + "dayPeriods-format-wide-am": "a. m.", + "field-mon-relative+0": "este lunes", + "field-mon-relative+1": "el próximo lunes", + "dateFormat-short": "dd/MM/yy GGGGG", + "field-second": "segundo", + "field-sat-relative+-1": "el sábado pasado", + "field-sun-relative+-1": "el domingo pasado", + "field-month-relative+0": "este mes", + "field-month-relative+1": "el próximo mes", + "dateFormatItem-Ed": "E d", + "field-week": "semana", + "dateFormat-medium": "dd/MM/y G", + "field-year-relative+0": "este año", + "field-week-relative+-1": "la semana pasada", + "dateFormatItem-yyyyM": "M/y GGGGG", + "field-year-relative+1": "el próximo año", + "dayPeriods-format-narrow-pm": "p.m.", + "dateFormatItem-yyyyQQQQ": "QQQQ 'de' y G", + "dateFormatItem-hms": "hh:mm:ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "el lunes pasado", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "la próxima semana" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/es/chinese.js b/cldr/nls/es/chinese.js index 1a913ce8cf..8381e6f5db 100644 --- a/cldr/nls/es/chinese.js +++ b/cldr/nls/es/chinese.js @@ -1,65 +1,87 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E, d-M-y", - "field-dayperiod": "periodo del día", - "field-minute": "minuto", - "dateFormatItem-MMMEd": "E d-M", - "field-day-relative+-1": "ayer", - "dateFormatItem-hms": "hh:mm:ss a", - "field-day-relative+-2": "antes de ayer", + "field-second-relative+0": "ahora", "field-weekday": "día de la semana", - "dateFormatItem-MMM": "L", + "field-wed-relative+0": "este miércoles", + "field-wed-relative+1": "el próximo miércoles", + "dateFormatItem-GyMMMEd": "E, d-M-y", + "dateFormatItem-MMMEd": "E d-M", + "field-tue-relative+-1": "el martes pasado", + "dateFormat-long": "d-M-y", + "field-fri-relative+-1": "el viernes pasado", + "field-wed-relative+-1": "el miércoles pasado", + "dateFormatItem-yyyyQQQ": "QQQ y", + "dateFormat-full": "EEEE, d-M-y", + "dateFormatItem-yyyyMEd": "E, d-M-y", + "field-thu-relative+-1": "el jueves pasado", + "dateFormatItem-Md": "d-M", "field-era": "era", - "dateFormatItem-Gy": "y", + "field-year": "año", + "dateFormatItem-yyyyMMMM": "M-y", "field-hour": "hora", - "dateFormatItem-y": "y", - "dateFormatItem-yyyy": "y", - "dateFormatItem-Ed": "E d", + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "el próximo sábado", "field-day-relative+0": "hoy", + "field-thu-relative+0": "este jueves", "field-day-relative+1": "mañana", - "field-day-relative+2": "pasado mañana", - "dateFormatItem-yyyyMMMM": "M-y", + "field-thu-relative+1": "el próximo jueves", "dateFormatItem-GyMMMd": "d-M-y", - "dateFormat-long": "d-M-y", - "field-zone": "zona", + "field-day-relative+2": "pasado mañana", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "y", + "dateFormatItem-yyyyMMMEd": "E, d-M-y", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "M-y", + "dateFormatItem-yyyyMMMd": "d-M-y", + "field-sun-relative+0": "este domingo", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "la semana pasada", - "dateFormat-medium": "d-M-y", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "este año", - "field-year-relative+1": "el próximo año", - "field-year-relative+-1": "el año pasado", + "field-sun-relative+1": "el próximo domingo", + "field-minute": "minuto", + "field-dayperiod": "periodo del día", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ y", - "field-year": "año", - "field-week": "semana", - "dateFormatItem-yyyyMd": "d-M-y", - "dateFormatItem-yyyyMMMd": "d-M-y", - "dateFormatItem-yyyyMEd": "E, d-M-y", + "field-day-relative+-1": "ayer", + "dateFormatItem-h": "hh a", + "field-day-relative+-2": "antes de ayer", "dateFormatItem-MMMd": "d-M", - "field-week-relative+0": "esta semana", - "field-week-relative+1": "la próxima semana", - "field-month-relative+0": "este mes", - "dateFormatItem-H": "HH", - "field-month": "mes", - "field-month-relative+1": "el próximo mes", - "dateFormatItem-M": "L", - "field-second": "segundo", - "dateFormatItem-GyMMMEd": "E, d-M-y", - "dateFormatItem-GyMMM": "M-y", - "field-day": "día", - "dateFormatItem-yyyyQQQ": "QQQ y", "dateFormatItem-MEd": "E, d-M", + "field-fri-relative+0": "este viernes", + "field-fri-relative+1": "el próximo viernes", + "field-day": "día", + "field-zone": "zona horaria", + "dateFormatItem-y": "y", + "field-year-relative+-1": "el año pasado", + "field-month-relative+-1": "el mes pasado", "dateFormatItem-hm": "hh:mm a", + "dateFormatItem-yyyyMd": "d-M-y", + "field-month": "mes", + "dateFormatItem-MMM": "L", + "field-tue-relative+0": "este martes", + "field-tue-relative+1": "el próximo martes", + "field-mon-relative+0": "este lunes", + "field-mon-relative+1": "el próximo lunes", "dateFormat-short": "d-M-y", + "field-second": "segundo", + "field-sat-relative+-1": "el sábado pasado", + "field-sun-relative+-1": "el domingo pasado", + "field-month-relative+0": "este mes", + "field-month-relative+1": "el próximo mes", + "dateFormatItem-Ed": "E d", + "field-week": "semana", + "dateFormat-medium": "d-M-y", + "field-year-relative+0": "este año", + "field-week-relative+-1": "la semana pasada", "dateFormatItem-yyyyM": "M-y", - "dateFormat-full": "EEEE, d-M-y", - "dateFormatItem-Md": "d-M", - "dateFormatItem-yyyyMMM": "M-y", - "dateFormatItem-d": "d", - "field-month-relative+-1": "el mes pasado", - "dateFormatItem-h": "hh a" + "field-year-relative+1": "el próximo año", + "dateFormatItem-yyyyQQQQ": "QQQQ y", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "hh:mm:ss a", + "dateFormatItem-GyMMM": "M-y", + "field-mon-relative+-1": "el lunes pasado", + "dateFormatItem-yyyy": "y", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "la próxima semana" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/es/currency.js b/cldr/nls/es/currency.js index 99e2c45813..252c0e5ccc 100644 --- a/cldr/nls/es/currency.js +++ b/cldr/nls/es/currency.js @@ -3,12 +3,18 @@ define( { "HKD_displayName": "dólar de Hong Kong", "CHF_displayName": "franco suizo", + "JPY_symbol": "JPY", "CAD_displayName": "dólar canadiense", + "HKD_symbol": "HKD", "CNY_displayName": "yuan chino", + "USD_symbol": "$", "AUD_displayName": "dólar australiano", "JPY_displayName": "yen japonés", + "CAD_symbol": "CA$", "USD_displayName": "dólar estadounidense", + "CNY_symbol": "CNY", "GBP_displayName": "libra esterlina británica", + "GBP_symbol": "GBP", "AUD_symbol": "AU$", "EUR_displayName": "euro" } diff --git a/cldr/nls/es/generic.js b/cldr/nls/es/generic.js index 42fa68214c..de4d56e8a3 100644 --- a/cldr/nls/es/generic.js +++ b/cldr/nls/es/generic.js @@ -1,71 +1,93 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E, d 'de' MMMM 'de' y G", - "field-dayperiod": "periodo del día", - "field-minute": "minuto", - "dateFormatItem-MMMEd": "E d MMM", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "ayer", - "dateFormatItem-hms": "hh:mm:ss a", - "field-day-relative+-2": "antes de ayer", + "field-second-relative+0": "ahora", "field-weekday": "día de la semana", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "y G", + "field-wed-relative+0": "este miércoles", + "dateFormatItem-GyMMMEd": "E, d 'de' MMMM 'de' y G", + "dateFormatItem-MMMEd": "E, d MMM", + "field-wed-relative+1": "el próximo miércoles", + "field-tue-relative+-1": "el martes pasado", + "dateFormatItem-MMMdd": "dd-MMM", + "dateFormat-long": "d 'de' MMMM 'de' y G", + "field-fri-relative+-1": "el viernes pasado", + "field-wed-relative+-1": "el miércoles pasado", + "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", + "dateFormatItem-yyyyMEd": "E, d/M/y GGGGG", + "field-thu-relative+-1": "el jueves pasado", + "dateFormatItem-Md": "d/M", "field-era": "era", + "field-year": "año", + "dateFormatItem-yyyyMMMM": "MMMM 'de' y G", "field-hour": "hora", - "dateFormatItem-y": "y G", - "dateFormatItem-MMMdd": "dd-MMM", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E d", + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "el próximo sábado", "field-day-relative+0": "hoy", "field-day-relative+1": "mañana", - "field-day-relative+2": "pasado mañana", + "field-thu-relative+0": "este jueves", "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormatItem-yyyyMMMM": "MMMM 'de' y G", - "dateFormat-long": "d 'de' MMMM 'de' y G", - "field-zone": "zona", + "field-day-relative+2": "pasado mañana", + "field-thu-relative+1": "el próximo jueves", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d 'de' MMMM 'de' y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "dateFormatItem-MMMMd": "d 'de' MMMM", + "field-sun-relative+0": "este domingo", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "la semana pasada", - "dateFormat-medium": "dd/MM/y G", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "este año", - "field-year-relative+1": "el próximo año", - "field-year-relative+-1": "el año pasado", + "field-sun-relative+1": "el próximo domingo", + "field-minute": "minuto", + "field-dayperiod": "periodo del día", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ 'de' y G", - "field-year": "año", - "dateTimeFormat-long": "{1} {0}", - "field-week": "semana", - "dateFormatItem-yyyyMd": "d/M/y GGGGG", - "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMEd": "E, d/M/y GGGGG", + "field-day-relative+-1": "ayer", + "dateFormatItem-h": "hh a", + "dateTimeFormat-long": "{1}, {0}", + "field-day-relative+-2": "antes de ayer", "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "esta semana", - "field-week-relative+1": "la próxima semana", - "field-month-relative+0": "este mes", - "dateFormatItem-H": "HH", - "field-month": "mes", - "field-month-relative+1": "el próximo mes", - "dateFormatItem-MMMMd": "d 'de' MMMM", - "dateFormatItem-M": "L", - "field-second": "segundo", - "dateFormatItem-GyMMMEd": "E, d 'de' MMMM 'de' y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "día", "dateFormatItem-MEd": "E, d/M", - "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "este viernes", + "field-fri-relative+1": "el próximo viernes", + "field-day": "día", + "field-zone": "zona horaria", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "el año pasado", + "field-month-relative+-1": "el mes pasado", "dateFormatItem-hm": "hh:mm a", + "dateFormatItem-yyyyMd": "d/M/y GGGGG", + "field-month": "mes", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "este martes", + "field-tue-relative+1": "el próximo martes", + "field-mon-relative+0": "este lunes", + "field-mon-relative+1": "el próximo lunes", "dateFormat-short": "dd/MM/yy GGGGG", + "field-second": "segundo", + "field-sat-relative+-1": "el sábado pasado", + "field-sun-relative+-1": "el domingo pasado", + "field-month-relative+0": "este mes", + "field-month-relative+1": "el próximo mes", + "dateFormatItem-Ed": "E d", + "field-week": "semana", + "dateFormat-medium": "dd/MM/y G", + "field-year-relative+0": "este año", + "field-week-relative+-1": "la semana pasada", "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", - "dateFormatItem-Md": "d/M", - "dateFormatItem-yyyyMMM": "MMM y G", - "dateFormatItem-d": "d", - "field-month-relative+-1": "el mes pasado", - "dateFormatItem-h": "hh a" + "field-year-relative+1": "el próximo año", + "dateFormatItem-yyyyQQQQ": "QQQQ 'de' y G", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "hh:mm:ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "el lunes pasado", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "la próxima semana" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/es/gregorian.js b/cldr/nls/es/gregorian.js index 5882ae499e..dfee93382c 100644 --- a/cldr/nls/es/gregorian.js +++ b/cldr/nls/es/gregorian.js @@ -1,14 +1,15 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E, h:mm a", "days-standAlone-short": [ - "D", - "L", - "M", - "X", - "J", - "V", - "S" + "DO", + "LU", + "MA", + "MI", + "JU", + "VI", + "SA" ], "months-format-narrow": [ "E", @@ -24,6 +25,7 @@ define( "N", "D" ], + "field-second-relative+0": "ahora", "quarters-standAlone-narrow": [ "1T", "2T", @@ -33,24 +35,31 @@ define( "field-weekday": "día de la semana", "dateFormatItem-yQQQ": "QQQ y", "dateFormatItem-yMEd": "EEE, d/M/y", + "field-wed-relative+0": "este miércoles", + "field-wed-relative+1": "el próximo miércoles", "dateFormatItem-GyMMMEd": "E, d 'de' MMMM 'de' y G", - "dateFormatItem-MMMEd": "E d MMM", + "dateFormatItem-MMMEd": "E d 'de' MMM", "eraNarrow": [ - "a.C.", - "d.C." + "a. C.", + "a. e. c.", + "d. C.", + "e. c." ], - "dateFormatItem-yMM": "MM/y", + "dateFormatItem-yMM": "M/y", + "field-tue-relative+-1": "el martes pasado", "dateFormatItem-MMMdd": "dd-MMM", "days-format-short": [ - "D", - "L", - "M", - "X", - "J", - "V", - "S" + "DO", + "LU", + "MA", + "MI", + "JU", + "VI", + "SA" ], "dateFormat-long": "d 'de' MMMM 'de' y", + "field-fri-relative+-1": "el viernes pasado", + "field-wed-relative+-1": "el miércoles pasado", "months-format-wide": [ "enero", "febrero", @@ -66,72 +75,77 @@ define( "diciembre" ], "dateTimeFormat-medium": "{1} {0}", - "dayPeriods-format-wide-pm": "p.m.", + "dayPeriods-format-wide-pm": "p. m.", "dateFormat-full": "EEEE, d 'de' MMMM 'de' y", + "field-thu-relative+-1": "el jueves pasado", "dateFormatItem-Md": "d/M", "dateFormatItem-yMd": "d/M/y", "field-era": "era", "dateFormatItem-yM": "M/y", "months-standAlone-wide": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" + "Enero", + "Febrero", + "Marzo", + "Abril", + "Mayo", + "Junio", + "Julio", + "Agosto", + "Septiembre", + "Octubre", + "Noviembre", + "Diciembre" ], - "timeFormat-short": "HH:mm", + "timeFormat-short": "H:mm", "quarters-format-wide": [ - "1er trimestre", - "2º trimestre", - "3er trimestre", - "4º trimestre" + "1.er trimestre", + "2.º trimestre", + "3.er trimestre", + "4.º trimestre" ], "dateFormatItem-yQQQQ": "QQQQ 'de' y", - "timeFormat-long": "HH:mm:ss z", + "timeFormat-long": "H:mm:ss z", "field-year": "año", - "dateFormatItem-yMMM": "MMM y", + "dateFormatItem-yMMM": "MMM 'de' y", "field-hour": "hora", - "dateFormatItem-MMdd": "dd/MM", + "dateFormatItem-MMdd": "d/M", "months-format-abbr": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" + "ene.", + "feb.", + "mar.", + "abr.", + "may.", + "jun.", + "jul.", + "ago.", + "sept.", + "oct.", + "nov.", + "dic." ], - "timeFormat-full": "HH:mm:ss zzzz", + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "el próximo sábado", + "timeFormat-full": "H:mm:ss (zzzz)", "field-day-relative+0": "hoy", + "field-thu-relative+0": "este jueves", "field-day-relative+1": "mañana", - "dateFormatItem-GyMMMd": "d MMM y G", + "field-thu-relative+1": "el próximo jueves", + "dateFormatItem-GyMMMd": "d MMM 'de' y G", "field-day-relative+2": "pasado mañana", - "dateFormatItem-H": "HH", + "dateFormatItem-H": "H", "months-standAlone-abbr": [ - "ene", - "feb", - "mar", - "abr", - "mayo", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" + "Ene.", + "Feb.", + "Mar.", + "Abr.", + "May.", + "Jun.", + "Jul.", + "Ago.", + "Sept.", + "Oct.", + "Nov.", + "Dic." ], "quarters-format-abbr": [ "T1", @@ -148,17 +162,19 @@ define( "dateFormatItem-Gy": "y G", "dateFormatItem-M": "L", "days-standAlone-wide": [ - "domingo", - "lunes", - "martes", - "miércoles", - "jueves", - "viernes", - "sábado" + "Domingo", + "Lunes", + "Martes", + "Miércoles", + "Jueves", + "Viernes", + "Sábado" ], "dateFormatItem-MMMMd": "d 'de' MMMM", - "timeFormat-medium": "HH:mm:ss", - "dateFormatItem-Hm": "HH:mm", + "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "este domingo", + "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "el próximo domingo", "quarters-standAlone-abbr": [ "T1", "T2", @@ -166,19 +182,21 @@ define( "T4" ], "eraAbbr": [ - "a.C.", - "d.C." + "a. C.", + "a. e. c.", + "d. C.", + "e. c." ], "field-minute": "minuto", "field-dayperiod": "periodo del día", "days-standAlone-abbr": [ - "dom", - "lun", - "mar", - "mié", - "jue", - "vie", - "sáb" + "Dom.", + "Lun.", + "Mar.", + "Mié.", + "Jue.", + "Vie.", + "Sáb." ], "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", @@ -189,13 +207,16 @@ define( "4T" ], "field-day-relative+-1": "ayer", - "dateFormatItem-h": "hh a", - "dateTimeFormat-long": "{1} {0}", + "dateFormatItem-h": "h a", + "dateTimeFormat-long": "{1}, {0}", + "dayPeriods-format-narrow-am": "a.m.", "field-day-relative+-2": "antes de ayer", - "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MMMd": "d 'de' MMM", "dateFormatItem-MEd": "E, d/M", - "dateTimeFormat-full": "{1} {0}", + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "este viernes", "dateFormatItem-yMMMM": "MMMM 'de' y", + "field-fri-relative+1": "el próximo viernes", "field-day": "día", "days-format-wide": [ "domingo", @@ -206,7 +227,7 @@ define( "viernes", "sábado" ], - "field-zone": "zona", + "field-zone": "zona horaria", "dateFormatItem-y": "y", "months-standAlone-narrow": [ "E", @@ -224,21 +245,23 @@ define( ], "field-year-relative+-1": "el año pasado", "field-month-relative+-1": "el mes pasado", - "dateFormatItem-hm": "hh:mm a", + "dateFormatItem-hm": "h:mm a", "days-format-abbr": [ - "dom", - "lun", - "mar", - "mié", - "jue", - "vie", - "sáb" + "dom.", + "lun.", + "mar.", + "mié.", + "jue.", + "vie.", + "sáb." ], - "dateFormatItem-yMMMd": "d MMM y", "eraNames": [ "antes de Cristo", - "anno Dómini" + "anno Dómini", + "d. C.", + "e. c." ], + "dateFormatItem-yMMMd": "d 'de' MMM 'de' y", "days-format-narrow": [ "D", "L", @@ -248,7 +271,6 @@ define( "V", "S" ], - "field-month": "mes", "days-standAlone-narrow": [ "D", "L", @@ -259,23 +281,36 @@ define( "S" ], "dateFormatItem-MMM": "LLL", - "dayPeriods-format-wide-am": "a.m.", - "dateFormat-short": "dd/MM/yy", - "dateFormatItem-MMd": "d/MM", + "field-month": "mes", + "field-tue-relative+0": "este martes", + "field-tue-relative+1": "el próximo martes", + "dayPeriods-format-wide-am": "a. m.", + "dateFormatItem-EHm": "E, H:mm", + "field-mon-relative+0": "este lunes", + "field-mon-relative+1": "el próximo lunes", + "dateFormat-short": "d/M/yy", + "dateFormatItem-MMd": "d/M", + "dateFormatItem-EHms": "E, H:mm:ss", + "dateFormatItem-Ehms": "E, h:mm:ss a", "field-second": "segundo", + "field-sat-relative+-1": "el sábado pasado", "dateFormatItem-yMMMEd": "EEE, d 'de' MMMM 'de' y", + "field-sun-relative+-1": "el domingo pasado", "field-month-relative+0": "este mes", "field-month-relative+1": "el próximo mes", "dateFormatItem-Ed": "E d", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "semana", - "dateFormat-medium": "dd/MM/y", + "dateFormat-medium": "d/M/y", "field-year-relative+0": "este año", "field-week-relative+-1": "la semana pasada", "field-year-relative+1": "el próximo año", + "dayPeriods-format-narrow-pm": "p.m.", "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Hms": "HH:mm:ss", - "dateFormatItem-hms": "hh:mm:ss a", - "dateFormatItem-GyMMM": "MMM y G", + "dateFormatItem-Hms": "H:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM 'de' y G", + "field-mon-relative+-1": "el lunes pasado", "field-week-relative+0": "esta semana", "field-week-relative+1": "la próxima semana" } diff --git a/cldr/nls/es/hebrew.js b/cldr/nls/es/hebrew.js index 9ef1af067c..4238a8294e 100644 --- a/cldr/nls/es/hebrew.js +++ b/cldr/nls/es/hebrew.js @@ -1,97 +1,155 @@ define( //begin v1.x content { - "field-dayperiod": "periodo del día", - "dateFormatItem-yyyyMMMEd": "E, d 'de' MMMM 'de' y G", - "dayPeriods-format-wide-pm": "p.m.", - "field-minute": "minuto", - "dateFormatItem-MMMEd": "E d MMM", - "field-day-relative+-1": "ayer", + "days-standAlone-short": [ + "DO", + "LU", + "MA", + "MI", + "JU", + "VI", + "SA" + ], + "field-second-relative+0": "ahora", + "quarters-standAlone-narrow": [ + "1T", + "2T", + "3T", + "4T" + ], "field-weekday": "día de la semana", - "dateFormatItem-hms": "hh:mm:ss a", - "field-day-relative+-2": "antes de ayer", + "field-wed-relative+0": "este miércoles", + "field-wed-relative+1": "el próximo miércoles", + "dateFormatItem-GyMMMEd": "E, d 'de' MMMM 'de' y G", + "dateFormatItem-MMMEd": "E, d MMM", + "field-tue-relative+-1": "el martes pasado", + "days-format-short": [ + "DO", + "LU", + "MA", + "MI", + "JU", + "VI", + "SA" + ], + "dateFormat-long": "d 'de' MMMM 'de' y G", + "field-fri-relative+-1": "el viernes pasado", + "field-wed-relative+-1": "el miércoles pasado", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dayPeriods-format-wide-pm": "p. m.", + "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", + "dateFormatItem-yyyyMEd": "E, d/M/y GGGGG", + "field-thu-relative+-1": "el jueves pasado", + "dateFormatItem-Md": "d/M", "field-era": "era", - "dateFormatItem-Gy": "y G", + "timeFormat-short": "H:mm", + "quarters-format-wide": [ + "1.er trimestre", + "2.º trimestre", + "3.er trimestre", + "4.º trimestre" + ], + "timeFormat-long": "H:mm:ss z", + "field-year": "año", "field-hour": "hora", - "dayPeriods-format-wide-am": "a.m.", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E d", + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "el próximo sábado", + "timeFormat-full": "H:mm:ss (zzzz)", "field-day-relative+0": "hoy", + "field-thu-relative+0": "este jueves", "field-day-relative+1": "mañana", - "days-standAlone-narrow": [ - "D", - "L", - "M", - "X", - "J", - "V", - "S" - ], - "eraAbbr": [ - "AM" - ], - "field-day-relative+2": "pasado mañana", + "field-thu-relative+1": "el próximo jueves", "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormat-long": "d 'de' MMMM 'de' y G", - "field-zone": "zona", - "field-week-relative+-1": "la semana pasada", - "dateFormat-medium": "dd/MM/y G", - "field-year-relative+0": "este año", - "field-year-relative+1": "el próximo año", + "field-day-relative+2": "pasado mañana", + "quarters-format-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], "quarters-standAlone-wide": [ "1.er trimestre", "2.º trimestre", "3.er trimestre", "4.º trimestre" ], - "field-year-relative+-1": "el año pasado", - "field-year": "año", - "dateFormatItem-yyyyQQQQ": "QQQQ 'de' y G", - "quarters-standAlone-narrow": [ - "1T", - "2T", - "3T", - "4T" + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d 'de' MMMM 'de' y G", + "days-standAlone-wide": [ + "Domingo", + "Lunes", + "Martes", + "Miércoles", + "Jueves", + "Viernes", + "Sábado" ], - "field-week": "semana", - "dateFormatItem-yyyyMd": "d/M/y GGGGG", + "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMEd": "E, d/M/y GGGGG", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "esta semana", + "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "el próximo domingo", + "quarters-standAlone-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], + "eraAbbr": [ + "AM" + ], + "field-minute": "minuto", + "field-dayperiod": "periodo del día", + "days-standAlone-abbr": [ + "Dom.", + "Lun.", + "Mar.", + "Mié.", + "Jue.", + "Vie.", + "Sáb." + ], "quarters-format-narrow": [ "1T", "2T", "3T", "4T" ], - "field-week-relative+1": "la próxima semana", - "field-month-relative+0": "este mes", - "field-month": "mes", - "field-month-relative+1": "el próximo mes", - "quarters-format-abbr": [ - "T1", - "T2", - "T3", - "T4" + "field-day-relative+-1": "ayer", + "dateFormatItem-h": "hh a", + "dateTimeFormat-long": "{1}, {0}", + "dayPeriods-format-narrow-am": "a.m.", + "field-day-relative+-2": "antes de ayer", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E, d/M", + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "este viernes", + "field-fri-relative+1": "el próximo viernes", + "field-day": "día", + "days-format-wide": [ + "domingo", + "lunes", + "martes", + "miércoles", + "jueves", + "viernes", + "sábado" ], + "field-zone": "zona horaria", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "el año pasado", + "field-month-relative+-1": "el mes pasado", + "dateFormatItem-hm": "hh:mm a", "days-format-abbr": [ - "dom", - "lun", - "mar", - "mié", - "jue", - "vie", - "sáb" + "dom.", + "lun.", + "mar.", + "mié.", + "jue.", + "vie.", + "sáb." ], - "field-second": "segundo", - "dateFormatItem-GyMMMEd": "E, d 'de' MMMM 'de' y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "día", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E, d/M", - "days-standAlone-short": [ + "days-format-narrow": [ "D", "L", "M", @@ -100,12 +158,9 @@ define( "V", "S" ], - "dateFormatItem-hm": "hh:mm a", - "dateFormat-short": "dd/MM/yy GGGGG", - "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormatItem-Md": "d/M", - "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", - "days-format-short": [ + "dateFormatItem-yyyyMd": "d/M/y GGGGG", + "field-month": "mes", + "days-standAlone-narrow": [ "D", "L", "M", @@ -114,24 +169,32 @@ define( "V", "S" ], - "dateFormatItem-yyyyMMM": "MMM y G", - "field-month-relative+-1": "el mes pasado", - "quarters-format-wide": [ - "1er trimestre", - "2º trimestre", - "3er trimestre", - "4º trimestre" - ], - "days-format-wide": [ - "domingo", - "lunes", - "martes", - "miércoles", - "jueves", - "viernes", - "sábado" - ], - "dateFormatItem-h": "hh a" + "field-tue-relative+0": "este martes", + "field-tue-relative+1": "el próximo martes", + "dayPeriods-format-wide-am": "a. m.", + "field-mon-relative+0": "este lunes", + "field-mon-relative+1": "el próximo lunes", + "dateFormat-short": "dd/MM/yy GGGGG", + "field-second": "segundo", + "field-sat-relative+-1": "el sábado pasado", + "field-sun-relative+-1": "el domingo pasado", + "field-month-relative+0": "este mes", + "field-month-relative+1": "el próximo mes", + "dateFormatItem-Ed": "E d", + "field-week": "semana", + "dateFormat-medium": "dd/MM/y G", + "field-year-relative+0": "este año", + "field-week-relative+-1": "la semana pasada", + "dateFormatItem-yyyyM": "M/y GGGGG", + "field-year-relative+1": "el próximo año", + "dayPeriods-format-narrow-pm": "p.m.", + "dateFormatItem-yyyyQQQQ": "QQQQ 'de' y G", + "dateFormatItem-hms": "hh:mm:ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "el lunes pasado", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "la próxima semana" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/es/islamic.js b/cldr/nls/es/islamic.js index 5712c8ae21..3345cd74a2 100644 --- a/cldr/nls/es/islamic.js +++ b/cldr/nls/es/islamic.js @@ -1,97 +1,155 @@ define( //begin v1.x content { - "field-dayperiod": "periodo del día", - "dateFormatItem-yyyyMMMEd": "E, d 'de' MMMM 'de' y G", - "dayPeriods-format-wide-pm": "p.m.", - "field-minute": "minuto", - "dateFormatItem-MMMEd": "E d MMM", - "field-day-relative+-1": "ayer", + "days-standAlone-short": [ + "DO", + "LU", + "MA", + "MI", + "JU", + "VI", + "SA" + ], + "field-second-relative+0": "ahora", + "quarters-standAlone-narrow": [ + "1T", + "2T", + "3T", + "4T" + ], "field-weekday": "día de la semana", - "dateFormatItem-hms": "hh:mm:ss a", - "field-day-relative+-2": "antes de ayer", + "field-wed-relative+0": "este miércoles", + "field-wed-relative+1": "el próximo miércoles", + "dateFormatItem-GyMMMEd": "E, d 'de' MMMM 'de' y G", + "dateFormatItem-MMMEd": "E, d MMM", + "field-tue-relative+-1": "el martes pasado", + "days-format-short": [ + "DO", + "LU", + "MA", + "MI", + "JU", + "VI", + "SA" + ], + "dateFormat-long": "d 'de' MMMM 'de' y G", + "field-fri-relative+-1": "el viernes pasado", + "field-wed-relative+-1": "el miércoles pasado", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dayPeriods-format-wide-pm": "p. m.", + "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", + "dateFormatItem-yyyyMEd": "E, d/M/y GGGGG", + "field-thu-relative+-1": "el jueves pasado", + "dateFormatItem-Md": "d/M", "field-era": "era", - "dateFormatItem-Gy": "y G", + "timeFormat-short": "H:mm", + "quarters-format-wide": [ + "1.er trimestre", + "2.º trimestre", + "3.er trimestre", + "4.º trimestre" + ], + "timeFormat-long": "H:mm:ss z", + "field-year": "año", "field-hour": "hora", - "dayPeriods-format-wide-am": "a.m.", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E d", + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "el próximo sábado", + "timeFormat-full": "H:mm:ss (zzzz)", "field-day-relative+0": "hoy", + "field-thu-relative+0": "este jueves", "field-day-relative+1": "mañana", - "days-standAlone-narrow": [ - "D", - "L", - "M", - "X", - "J", - "V", - "S" - ], - "eraAbbr": [ - "AH" - ], - "field-day-relative+2": "pasado mañana", + "field-thu-relative+1": "el próximo jueves", "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormat-long": "d 'de' MMMM 'de' y G", - "field-zone": "zona", - "field-week-relative+-1": "la semana pasada", - "dateFormat-medium": "dd/MM/y G", - "field-year-relative+0": "este año", - "field-year-relative+1": "el próximo año", + "field-day-relative+2": "pasado mañana", + "quarters-format-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], "quarters-standAlone-wide": [ "1.er trimestre", "2.º trimestre", "3.er trimestre", "4.º trimestre" ], - "field-year-relative+-1": "el año pasado", - "field-year": "año", - "dateFormatItem-yyyyQQQQ": "QQQQ 'de' y G", - "quarters-standAlone-narrow": [ - "1T", - "2T", - "3T", - "4T" + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d 'de' MMMM 'de' y G", + "days-standAlone-wide": [ + "Domingo", + "Lunes", + "Martes", + "Miércoles", + "Jueves", + "Viernes", + "Sábado" ], - "field-week": "semana", + "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMd": "d/M/y GGGGG", - "dateFormatItem-yyyyMEd": "E, d/M/y GGGGG", - "field-week-relative+0": "esta semana", - "dateFormatItem-MMMd": "d MMM", + "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "el próximo domingo", + "quarters-standAlone-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], + "eraAbbr": [ + "AH" + ], + "field-minute": "minuto", + "field-dayperiod": "periodo del día", + "days-standAlone-abbr": [ + "Dom.", + "Lun.", + "Mar.", + "Mié.", + "Jue.", + "Vie.", + "Sáb." + ], "quarters-format-narrow": [ "1T", "2T", "3T", "4T" ], - "field-week-relative+1": "la próxima semana", - "field-month-relative+0": "este mes", - "field-month": "mes", - "field-month-relative+1": "el próximo mes", - "quarters-format-abbr": [ - "T1", - "T2", - "T3", - "T4" + "field-day-relative+-1": "ayer", + "dateFormatItem-h": "hh a", + "dateTimeFormat-long": "{1}, {0}", + "dayPeriods-format-narrow-am": "a.m.", + "field-day-relative+-2": "antes de ayer", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E, d/M", + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "este viernes", + "field-fri-relative+1": "el próximo viernes", + "field-day": "día", + "days-format-wide": [ + "domingo", + "lunes", + "martes", + "miércoles", + "jueves", + "viernes", + "sábado" ], + "field-zone": "zona horaria", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "el año pasado", + "field-month-relative+-1": "el mes pasado", + "dateFormatItem-hm": "hh:mm a", "days-format-abbr": [ - "dom", - "lun", - "mar", - "mié", - "jue", - "vie", - "sáb" + "dom.", + "lun.", + "mar.", + "mié.", + "jue.", + "vie.", + "sáb." ], - "field-second": "segundo", - "dateFormatItem-GyMMMEd": "E, d 'de' MMMM 'de' y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "día", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E, d/M", - "days-standAlone-short": [ + "days-format-narrow": [ "D", "L", "M", @@ -100,12 +158,9 @@ define( "V", "S" ], - "dateFormatItem-hm": "hh:mm a", - "dateFormat-short": "dd/MM/yy GGGGG", - "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", - "dateFormatItem-Md": "d/M", - "days-format-short": [ + "dateFormatItem-yyyyMd": "d/M/y GGGGG", + "field-month": "mes", + "days-standAlone-narrow": [ "D", "L", "M", @@ -114,24 +169,32 @@ define( "V", "S" ], - "dateFormatItem-yyyyMMM": "MMM y G", - "field-month-relative+-1": "el mes pasado", - "quarters-format-wide": [ - "1er trimestre", - "2º trimestre", - "3er trimestre", - "4º trimestre" - ], - "days-format-wide": [ - "domingo", - "lunes", - "martes", - "miércoles", - "jueves", - "viernes", - "sábado" - ], - "dateFormatItem-h": "hh a" + "field-tue-relative+0": "este martes", + "field-tue-relative+1": "el próximo martes", + "dayPeriods-format-wide-am": "a. m.", + "field-mon-relative+0": "este lunes", + "field-mon-relative+1": "el próximo lunes", + "dateFormat-short": "dd/MM/yy GGGGG", + "field-second": "segundo", + "field-sat-relative+-1": "el sábado pasado", + "field-sun-relative+-1": "el domingo pasado", + "field-month-relative+0": "este mes", + "field-month-relative+1": "el próximo mes", + "dateFormatItem-Ed": "E d", + "field-week": "semana", + "dateFormat-medium": "dd/MM/y G", + "field-year-relative+0": "este año", + "field-week-relative+-1": "la semana pasada", + "dateFormatItem-yyyyM": "M/y GGGGG", + "field-year-relative+1": "el próximo año", + "dayPeriods-format-narrow-pm": "p.m.", + "dateFormatItem-yyyyQQQQ": "QQQQ 'de' y G", + "dateFormatItem-hms": "hh:mm:ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "el lunes pasado", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "la próxima semana" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/es/japanese.js b/cldr/nls/es/japanese.js index d5e662b884..e83f3feefe 100644 --- a/cldr/nls/es/japanese.js +++ b/cldr/nls/es/japanese.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "dateFormat-medium": "dd/MM/y G", - "field-second": "segundo", - "field-year-relative+-1": "el año pasado", - "field-week": "semana", - "field-month-relative+-1": "el mes pasado", + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "el próximo sábado", + "field-dayperiod": "periodo del día", + "field-sun-relative+-1": "el domingo pasado", + "field-mon-relative+-1": "el lunes pasado", + "field-minute": "minuto", "field-day-relative+-1": "ayer", + "field-weekday": "día de la semana", "field-day-relative+-2": "antes de ayer", - "field-year": "año", - "field-week-relative+0": "esta semana", - "field-week-relative+1": "la próxima semana", - "field-minute": "minuto", - "field-week-relative+-1": "la semana pasada", - "field-day-relative+0": "hoy", + "field-era": "era", "field-hour": "hora", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "el próximo domingo", + "field-wed-relative+-1": "el miércoles pasado", + "field-day-relative+0": "hoy", "field-day-relative+1": "mañana", - "dateFormat-long": "d 'de' MMMM 'de' y G", "field-day-relative+2": "pasado mañana", - "field-day": "día", + "dateFormat-long": "d 'de' MMMM 'de' y G", + "field-tue-relative+0": "este martes", + "field-zone": "zona horaria", + "field-tue-relative+1": "el próximo martes", + "field-week-relative+-1": "la semana pasada", + "dateFormat-medium": "dd/MM/y G", + "field-year-relative+0": "este año", + "field-year-relative+1": "el próximo año", + "field-sat-relative+-1": "el sábado pasado", + "field-year-relative+-1": "el año pasado", + "field-year": "año", + "field-fri-relative+0": "este viernes", + "field-fri-relative+1": "el próximo viernes", + "field-week": "semana", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "la próxima semana", "field-month-relative+0": "este mes", - "field-month-relative+1": "el próximo mes", - "field-dayperiod": "periodo del día", "field-month": "mes", + "field-month-relative+1": "el próximo mes", + "field-fri-relative+-1": "el viernes pasado", + "field-second": "segundo", + "field-tue-relative+-1": "el martes pasado", + "field-day": "día", + "field-mon-relative+0": "este lunes", + "field-mon-relative+1": "el próximo lunes", + "field-thu-relative+0": "este jueves", + "field-second-relative+0": "ahora", "dateFormat-short": "dd/MM/yy GGGGG", - "field-era": "era", - "field-year-relative+0": "este año", - "field-year-relative+1": "el próximo año", + "field-thu-relative+1": "el próximo jueves", "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", - "field-weekday": "día de la semana", - "field-zone": "zona" + "field-wed-relative+0": "este miércoles", + "field-wed-relative+1": "el próximo miércoles", + "field-month-relative+-1": "el mes pasado", + "field-thu-relative+-1": "el jueves pasado" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/es/number.js b/cldr/nls/es/number.js index f24bc01f92..86e4d56b95 100644 --- a/cldr/nls/es/number.js +++ b/cldr/nls/es/number.js @@ -10,13 +10,14 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", "currencyFormat": "#,##0.00 ¤", "plusSign": "+", "decimalFormat-long": "000 billones", - "decimalFormat-short": "000 B" + "decimalFormat-short": "000B" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/es/roc.js b/cldr/nls/es/roc.js index 8aceb84a4c..7a5c412a50 100644 --- a/cldr/nls/es/roc.js +++ b/cldr/nls/es/roc.js @@ -1,34 +1,56 @@ define( //begin v1.x content { - "field-second": "segundo", - "field-year-relative+-1": "el año pasado", - "field-week": "semana", - "field-month-relative+-1": "el mes pasado", + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "el próximo sábado", + "field-dayperiod": "periodo del día", + "field-sun-relative+-1": "el domingo pasado", + "field-mon-relative+-1": "el lunes pasado", + "field-minute": "minuto", "field-day-relative+-1": "ayer", + "field-weekday": "día de la semana", "field-day-relative+-2": "antes de ayer", - "field-year": "año", - "field-week-relative+0": "esta semana", - "field-week-relative+1": "la próxima semana", - "field-minute": "minuto", - "field-week-relative+-1": "la semana pasada", - "field-day-relative+0": "hoy", + "field-era": "era", "field-hour": "hora", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "el próximo domingo", + "field-wed-relative+-1": "el miércoles pasado", + "field-day-relative+0": "hoy", "field-day-relative+1": "mañana", - "field-day-relative+2": "pasado mañana", - "field-day": "día", - "field-month-relative+0": "este mes", - "field-month-relative+1": "el próximo mes", - "field-dayperiod": "periodo del día", - "field-month": "mes", - "field-era": "era", - "field-year-relative+0": "este año", - "field-year-relative+1": "el próximo año", "eraAbbr": [ "antes de R.O.C." ], - "field-weekday": "día de la semana", - "field-zone": "zona" + "field-day-relative+2": "pasado mañana", + "field-tue-relative+0": "este martes", + "field-zone": "zona horaria", + "field-tue-relative+1": "el próximo martes", + "field-week-relative+-1": "la semana pasada", + "field-year-relative+0": "este año", + "field-year-relative+1": "el próximo año", + "field-sat-relative+-1": "el sábado pasado", + "field-year-relative+-1": "el año pasado", + "field-year": "año", + "field-fri-relative+0": "este viernes", + "field-fri-relative+1": "el próximo viernes", + "field-week": "semana", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "la próxima semana", + "field-month-relative+0": "este mes", + "field-month": "mes", + "field-month-relative+1": "el próximo mes", + "field-fri-relative+-1": "el viernes pasado", + "field-second": "segundo", + "field-tue-relative+-1": "el martes pasado", + "field-day": "día", + "field-mon-relative+0": "este lunes", + "field-mon-relative+1": "el próximo lunes", + "field-thu-relative+0": "este jueves", + "field-second-relative+0": "ahora", + "field-thu-relative+1": "el próximo jueves", + "field-wed-relative+0": "este miércoles", + "field-wed-relative+1": "el próximo miércoles", + "field-month-relative+-1": "el mes pasado", + "field-thu-relative+-1": "el jueves pasado" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ethiopic-amete-alem.js b/cldr/nls/ethiopic-amete-alem.js index 89efbfb2f3..05335974b0 100644 --- a/cldr/nls/ethiopic-amete-alem.js +++ b/cldr/nls/ethiopic-amete-alem.js @@ -2,16 +2,60 @@ define({ root: //begin v1.x content { - "days-standAlone-short": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" - ], - "months-format-narrow": [ + "dateTimeFormats-appendItem-Year": "{1} {0}", + "field-tue-relative+-1": "last Tuesday", + "field-year": "Year", + "dateFormatItem-Hm": "HH:mm", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", + "months-standAlone-abbr@localeAlias154": { + "bundle": "ethiopic", + "target": "months-format-abbr" + }, + "months-standAlone-abbr@localeAlias155": { + "bundle": "ethiopic", + "target": "months-format-wide" + }, + "dateFormatItem-ms": "mm:ss", + "timeFormat-short": "HH:mm", + "days-format-short@localeAlias161": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "field-minute": "Minute", + "days-format-short@localeAlias162": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dateTimeFormat-short": "{1} {0}", + "field-day-relative+0": "today", + "field-day-relative+1": "tomorrow", + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", + "dayPeriods-format-narrow-am": "a", + "dateFormatItem-MMMd": "MMM d", + "eraNarrow@localeAlias181": { + "bundle": "ethiopic-amete-alem", + "target": "eraAbbr" + }, + "dayPeriods-format-abbr-am": "AM", + "field-week-relative+0": "this week", + "field-month-relative+0": "this month", + "field-week-relative+1": "next week", + "field-month-relative+1": "next month", + "timeFormat-medium": "HH:mm:ss", + "timeFormat@localeAlias184": { + "bundle": "ethiopic", + "target": "timeFormat" + }, + "timeFormat@localeAlias185": { + "bundle": "gregorian", + "target": "timeFormat" + }, + "field-second-relative+0": "now", + "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "dateFormatItem-yyyyQQQ": "G y QQQ", + "months-standAlone-narrow": [ "1", "2", "3", @@ -26,58 +70,110 @@ define({ root: "12", "13" ], - "quarters-standAlone-narrow": [ - "1", - "2", - "3", - "4" + "eraNames": [ + "ERA0" ], - "field-weekday": "Day of the Week", - "quarters-standAlone-abbr@localeAlias193": { - "bundle": "gregorian", - "target": "quarters-format-abbr" - }, - "timeFormat@localeAlias208": { + "dateFormatItem-GyMMMEd": "G y MMM d, E", + "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", + "field-day": "Day", + "field-year-relative+-1": "last year", + "dayPeriods-format-wide-am": "AM", + "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", + "field-wed-relative+-1": "last Wednesday", + "dayPeriods@localeAlias176": { "bundle": "ethiopic", - "target": "timeFormat" - }, - "quarters-standAlone-abbr@localeAlias194": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "timeFormat@localeAlias209": { - "bundle": "gregorian", - "target": "timeFormat" + "target": "dayPeriods" }, - "quarters-format-abbr@localeAlias191": { + "dayPeriods@localeAlias177": { "bundle": "gregorian", - "target": "quarters-format-wide" + "target": "dayPeriods" }, - "quarters-format-narrow@localeAlias192": { + "dateTimeFormat-medium": "{1} {0}", + "days-standAlone-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "field-second": "Second", + "dateFormatItem-Ehms": "E h:mm:ss a", + "dateFormat-long": "G y MMMM d", + "dateFormatItem-GyMMMd": "G y MMM d", + "quarters-standAlone-wide": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "days-format-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "field-mon-relative+-1": "last Monday", + "dateFormatItem-GyMMM": "G y MMM", + "field-month": "Month", + "dateFormatItem-MMM": "LLL", + "field-dayperiod": "Dayperiod", + "dayPeriods-format-narrow-pm": "p", + "dateFormat-medium": "G y MMM d", + "days-format-narrow@localeAlias160": { "bundle": "gregorian", - "target": "quarters-standAlone-narrow" + "target": "days-standAlone-narrow" }, - "dayPeriods-format-abbr@localeAlias198": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "dateTime@localeAlias186": { + "bundle": "ethiopic", + "target": "dateTime" }, - "dayPeriods-format-narrow@localeAlias200": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "dateTime@localeAlias187": { + "bundle": "generic", + "target": "dateTime" }, - "dateFormatItem-GyMMMEd": "G y MMM d, E", - "dateFormatItem-MMMEd": "MMM d, E", - "dayPeriods-format-narrow@localeAlias202": { - "bundle": "gregorian", - "target": "dayPeriods-format-abbr" + "eraAbbr": [ + "ERA0" + ], + "quarters-standAlone-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "dayPeriods-format-abbr-pm": "PM", + "days@localeAlias157": { + "bundle": "ethiopic", + "target": "days" }, - "dayPeriods-format-narrow@localeAlias203": { + "days@localeAlias158": { "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "target": "days" }, - "eraNarrow": [ - "ERA0" + "dateFormatItem-yyyyM": "GGGGG y-MM", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" ], + "dateFormatItem-yyyyMMMd": "G y MMM d", "days-format-short": [ "Sun", "Mon", @@ -87,20 +183,18 @@ define({ root: "Fri", "Sat" ], - "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", - "months-standAlone-abbr@localeAlias174": { - "bundle": "ethiopic", - "target": "months-format-abbr" - }, - "dateFormat-long": "G y MMMM d", - "months-standAlone-abbr@localeAlias175": { - "bundle": "ethiopic", - "target": "months-format-wide" - }, - "months-format-abbr@localeAlias172": { - "bundle": "ethiopic", - "target": "months-format-wide" - }, + "quarters-format-narrow": [ + "1", + "2", + "3", + "4" + ], + "dayPeriods-format-wide-pm": "PM", + "field-sat-relative+-1": "last Saturday", + "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", + "dateTimeFormat-long": "{1} {0}", + "dateFormatItem-Md": "MM-dd", + "field-hour": "Hour", "months-format-wide": [ "Meskerem", "Tekemt", @@ -116,20 +210,20 @@ define({ root: "Nehasse", "Pagumen" ], - "dateFormatItem-yyyyQQQ": "G y QQQ", - "dateTimeFormat-medium": "{1} {0}", - "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "G y MMMM d, EEEE", - "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", - "dateFormatItem-Md": "MM-dd", - "dayPeriods-format-abbr-am": "AM", - "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", - "quarters@localeAlias189": { - "bundle": "ethiopic", - "target": "quarters" + "field-month-relative+-1": "last month", + "dateFormatItem-Hms": "HH:mm:ss", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "eraNames@localeAlias180": { + "bundle": "ethiopic-amete-alem", + "target": "eraAbbr" }, - "field-era": "Era", - "months-standAlone-wide": [ + "dayPeriods-format-narrow-noon": "n", + "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", + "field-week-relative+-1": "last week", + "dateFormatItem-Ehm": "E h:mm a", + "months-format-abbr": [ "Meskerem", "Tekemt", "Hedar", @@ -144,18 +238,47 @@ define({ root: "Nehasse", "Pagumen" ], - "timeFormat-short": "HH:mm", - "quarters-format-wide": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], "timeFormat-long": "HH:mm:ss z", - "field-year": "Year", + "days-standAlone-wide@localeAlias168": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dateFormat-short": "GGGGG y-MM-dd", + "quarters@localeAlias169": { + "bundle": "ethiopic", + "target": "quarters" + }, + "days-standAlone-wide": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateFormatItem-yyyyMMMEd": "G y MMM d, E", + "days-standAlone-abbr@localeAlias163": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "days-standAlone-abbr@localeAlias164": { + "bundle": "gregorian", + "target": "days-format-wide" + }, "dateTimeFormats-appendItem-Era": "{1} {0}", - "field-hour": "Hour", - "months-format-abbr": [ + "quarters-format-narrow@localeAlias172": { + "bundle": "gregorian", + "target": "quarters-standAlone-narrow" + }, + "dateFormatItem-H": "HH", + "quarters@localeAlias170": { + "bundle": "gregorian", + "target": "quarters" + }, + "dateFormatItem-yyyy": "G y", + "dateFormatItem-M": "L", + "months-standAlone-wide": [ "Meskerem", "Tekemt", "Hedar", @@ -170,15 +293,35 @@ define({ root: "Nehasse", "Pagumen" ], - "timeFormat-full": "HH:mm:ss zzzz", - "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "field-day-relative+0": "Today", - "months-format-narrow@localeAlias173": { + "days-format-abbr@localeAlias159": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "field-sun-relative+-1": "last Sunday", + "days-standAlone-abbr": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateTimeFormat-full": "{1} {0}", + "dateFormatItem-hm": "h:mm a", + "months@localeAlias151": { "bundle": "ethiopic", - "target": "months-standAlone-narrow" + "target": "months" }, - "field-day-relative+1": "Tomorrow", - "dateFormatItem-GyMMMd": "G y MMM d", + "dateFormatItem-d": "d", + "field-weekday": "Day of the Week", + "months-format-abbr@localeAlias152": { + "bundle": "ethiopic", + "target": "months-format-wide" + }, + "field-sat-relative+0": "this Saturday", + "dateFormatItem-h": "h a", + "field-sat-relative+1": "next Saturday", "months-standAlone-abbr": [ "Meskerem", "Tekemt", @@ -194,27 +337,45 @@ define({ root: "Nehasse", "Pagumen" ], - "dateFormatItem-H": "HH", - "quarters@localeAlias190": { - "bundle": "gregorian", - "target": "quarters" + "timeFormat-full": "HH:mm:ss zzzz", + "dateFormatItem-MEd": "MM-dd, E", + "dateFormatItem-y": "G y", + "months-format-narrow@localeAlias153": { + "bundle": "ethiopic", + "target": "months-standAlone-narrow" }, - "quarters-format-abbr": [ - "Q1", - "Q2", - "Q3", - "Q4" + "field-thu-relative+0": "this Thursday", + "field-thu-relative+1": "next Thursday", + "dateFormatItem-hms": "h:mm:ss a", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "dayPeriods-format-abbr-noon": "noon", + "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", + "field-thu-relative+-1": "last Thursday", + "field-week": "Week", + "quarters-standAlone-narrow": [ + "1", + "2", + "3", + "4" ], - "quarters-standAlone-wide": [ + "quarters-format-wide": [ "Q1", "Q2", "Q3", "Q4" ], - "dateFormatItem-Gy": "G y", - "dateFormatItem-yyyyMMMEd": "G y MMM d, E", - "dateFormatItem-M": "L", - "days-standAlone-wide": [ + "dateFormatItem-Ed": "d, E", + "dateFormatItem-yyyyMMM": "G y MMM", + "dateFormat@localeAlias182": { + "bundle": "ethiopic", + "target": "dateFormat" + }, + "dateFormat@localeAlias183": { + "bundle": "generic", + "target": "dateFormat" + }, + "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", + "days-standAlone-short": [ "Sun", "Mon", "Tue", @@ -223,22 +384,25 @@ define({ root: "Fri", "Sat" ], - "dateFormatItem-yyyyMMM": "G y MMM", - "dateFormatItem-yyyyMMMd": "G y MMM d", - "timeFormat-medium": "HH:mm:ss", - "quarters-standAlone-abbr": [ + "quarters-standAlone-wide@localeAlias175": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "dateFormatItem-yyyyQQQQ": "G y QQQQ", + "quarters-format-abbr": [ "Q1", "Q2", "Q3", "Q4" ], - "dateFormatItem-Hm": "HH:mm", - "eraAbbr": [ + "field-year-relative+0": "this year", + "field-year-relative+1": "next year", + "field-fri-relative+-1": "last Friday", + "eraNarrow": [ "ERA0" ], - "field-minute": "Minute", - "field-dayperiod": "Dayperiod", - "days-standAlone-abbr": [ + "dayPeriods-format-wide-noon": "noon", + "days-format-wide": [ "Sun", "Mon", "Tue", @@ -247,43 +411,21 @@ define({ root: "Fri", "Sat" ], - "dateFormatItem-d": "d", - "dateFormatItem-ms": "mm:ss", - "quarters-format-narrow": [ - "1", - "2", - "3", - "4" - ], - "eraNarrow@localeAlias205": { - "bundle": "ethiopic-amete-alem", - "target": "eraAbbr" - }, - "days-standAlone-wide@localeAlias188": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "field-day-relative+-1": "Yesterday", - "dayPeriods-format-narrow-am": "AM", - "dateTimeFormat-long": "{1} {0}", - "dateFormatItem-h": "h a", - "days-format-short@localeAlias181": { + "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", + "dateFormatItem-EHm": "E HH:mm", + "field-zone": "Zone", + "dateFormatItem-MMMEd": "MMM d, E", + "dateFormatItem-EHms": "E HH:mm:ss", + "quarters-standAlone-abbr@localeAlias173": { "bundle": "gregorian", - "target": "days-format-abbr" + "target": "quarters-format-abbr" }, - "dateFormatItem-MMMd": "MMM d", - "days-format-short@localeAlias182": { + "quarters-standAlone-abbr@localeAlias174": { "bundle": "gregorian", - "target": "days-format-wide" - }, - "dateFormatItem-MEd": "MM-dd, E", - "dateTimeFormat-full": "{1} {0}", - "dayPeriods-format-narrow@localeAlias199": { - "bundle": "gregorian", - "target": "dayPeriods-format-abbr" + "target": "quarters-format-wide" }, - "field-day": "Day", - "days-format-wide": [ + "field-day-relative+-1": "yesterday", + "days-format-abbr": [ "Sun", "Mon", "Tue", @@ -292,159 +434,39 @@ define({ root: "Fri", "Sat" ], - "field-zone": "Zone", - "months-standAlone-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], - "dateTime@localeAlias210": { + "field-sun-relative+0": "this Sunday", + "field-sun-relative+1": "next Sunday", + "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", + "dateFormatItem-Gy": "G y", + "field-era": "Era", + "months-standAlone-wide@localeAlias156": { "bundle": "ethiopic", - "target": "dateTime" - }, - "dateFormatItem-y": "G y", - "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", - "dateTime@localeAlias211": { - "bundle": "generic", - "target": "dateTime" - }, - "dayPeriods-format-abbr@localeAlias201": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" - }, - "dateFormatItem-hm": "h:mm a", - "dateTimeFormats-appendItem-Year": "{1} {0}", - "days-standAlone-abbr@localeAlias183": { - "bundle": "gregorian", - "target": "days-format-abbr" + "target": "months-format-wide" }, - "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", - "days-standAlone-abbr@localeAlias184": { + "days-standAlone-short@localeAlias165": { "bundle": "gregorian", - "target": "days-format-wide" + "target": "days-format-short" }, - "days-standAlone-short@localeAlias185": { + "quarters-format-abbr@localeAlias171": { "bundle": "gregorian", - "target": "days-format-short" + "target": "quarters-format-wide" }, - "dayPeriods-format-abbr-pm": "PM", - "days-standAlone-short@localeAlias186": { + "days-standAlone-short@localeAlias166": { "bundle": "gregorian", "target": "days-format-abbr" }, - "days-format-abbr@localeAlias179": { + "days-standAlone-short@localeAlias167": { "bundle": "gregorian", "target": "days-format-wide" }, - "days-standAlone-short@localeAlias187": { + "dayPeriods-format-abbr@localeAlias178": { "bundle": "gregorian", - "target": "days-format-wide" - }, - "days-format-abbr": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" - ], - "eraNames": [ - "ERA0" - ], - "days-format-narrow": [ - "S", - "M", - "T", - "W", - "T", - "F", - "S" - ], - "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", - "dayPeriods@localeAlias196": { - "bundle": "ethiopic", - "target": "dayPeriods" - }, - "days-standAlone-narrow": [ - "S", - "M", - "T", - "W", - "T", - "F", - "S" - ], - "dateFormatItem-MMM": "LLL", - "field-month": "Month", - "dayPeriods@localeAlias197": { - "bundle": "gregorian", - "target": "dayPeriods" - }, - "days@localeAlias177": { - "bundle": "ethiopic", - "target": "days" - }, - "days@localeAlias178": { - "bundle": "gregorian", - "target": "days" - }, - "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", - "dayPeriods-format-wide-am": "AM", - "quarters-standAlone-wide@localeAlias195": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", - "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", - "months@localeAlias171": { - "bundle": "ethiopic", - "target": "months" + "target": "dayPeriods-format-wide" }, - "days-format-narrow@localeAlias180": { + "dayPeriods-format-abbr@localeAlias179": { "bundle": "gregorian", - "target": "days-standAlone-narrow" - }, - "dateFormat-short": "GGGGG y-MM-dd", - "field-second": "Second", - "dateFormatItem-Ed": "d, E", - "dateTimeFormats-appendItem-Timezone": "{0} {1}", - "field-week": "Week", - "dateFormat-medium": "G y MMM d", - "dateFormatItem-yyyyM": "GGGGG y-MM", - "dayPeriods-format-narrow-pm": "PM", - "dateFormatItem-yyyyQQQQ": "G y QQQQ", - "dateTimeFormat-short": "{1} {0}", - "eraNames@localeAlias204": { - "bundle": "ethiopic-amete-alem", - "target": "eraAbbr" - }, - "dateFormatItem-Hms": "HH:mm:ss", - "dateFormat@localeAlias206": { - "bundle": "ethiopic", - "target": "dateFormat" - }, - "dateFormatItem-hms": "h:mm:ss a", - "dateFormat@localeAlias207": { - "bundle": "generic", - "target": "dateFormat" - }, - "months-standAlone-wide@localeAlias176": { - "bundle": "ethiopic", - "target": "months-format-wide" - }, - "dateFormatItem-GyMMM": "G y MMM", - "dateFormatItem-yyyy": "G y" + "target": "dayPeriods-format-wide" + } } //end v1.x content }); \ No newline at end of file diff --git a/cldr/nls/ethiopic.js b/cldr/nls/ethiopic.js index 339cc8de12..d23f2819cc 100644 --- a/cldr/nls/ethiopic.js +++ b/cldr/nls/ethiopic.js @@ -2,24 +2,44 @@ define({ root: //begin v1.x content { - "days-standAlone-abbr@localeAlias148": { - "bundle": "gregorian", - "target": "days-format-wide" + "dateTimeFormats-appendItem-Year": "{1} {0}", + "field-tue-relative+-1": "last Tuesday", + "field-year": "Year", + "dateFormatItem-Hm": "HH:mm", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", + "dateFormatItem-ms": "mm:ss", + "timeFormat-short": "HH:mm", + "field-minute": "Minute", + "dateTime@localeAlias150": { + "bundle": "generic", + "target": "dateTime" }, - "days-standAlone-short@localeAlias149": { + "dateTimeFormat-short": "{1} {0}", + "field-day-relative+0": "today", + "field-day-relative+1": "tomorrow", + "days@localeAlias126": { "bundle": "gregorian", - "target": "days-format-short" + "target": "days" }, - "days-standAlone-short": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" - ], - "months-format-narrow": [ + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", + "dayPeriods-format-narrow-am": "a", + "dateFormatItem-MMMd": "MMM d", + "dayPeriods-format-abbr-am": "AM", + "field-week-relative+0": "this week", + "field-month-relative+0": "this month", + "field-week-relative+1": "next week", + "field-month-relative+1": "next month", + "timeFormat-medium": "HH:mm:ss", + "field-second-relative+0": "now", + "eraNames@localeAlias146": { + "bundle": "ethiopic", + "target": "eraAbbr" + }, + "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "dateFormatItem-yyyyQQQ": "G y QQQ", + "months-standAlone-narrow": [ "1", "2", "3", @@ -34,39 +54,108 @@ define({ root: "12", "13" ], - "dayPeriods-format-narrow@localeAlias161": { + "eraNames": [ + "ERA0", + "ERA1" + ], + "dateFormatItem-GyMMMEd": "G y MMM d, E", + "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", + "field-day": "Day", + "field-year-relative+-1": "last year", + "dayPeriods-format-wide-am": "AM", + "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", + "field-wed-relative+-1": "last Wednesday", + "dateTimeFormat-medium": "{1} {0}", + "days-standAlone-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "field-second": "Second", + "dateFormatItem-Ehms": "E h:mm:ss a", + "dateFormat-long": "G y MMMM d", + "dateFormatItem-GyMMMd": "G y MMM d", + "quarters-standAlone-wide": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "days-format-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "days-standAlone-wide@localeAlias136": { "bundle": "gregorian", - "target": "dayPeriods-format-abbr" + "target": "days-format-wide" }, - "dayPeriods-format-narrow@localeAlias162": { + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "quarters-format-narrow@localeAlias139": { "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "target": "quarters-standAlone-narrow" }, - "quarters-standAlone-narrow": [ - "1", - "2", - "3", - "4" - ], - "field-weekday": "Day of the Week", - "dayPeriods-format-narrow@localeAlias164": { + "field-mon-relative+-1": "last Monday", + "dateFormatItem-GyMMM": "G y MMM", + "field-month": "Month", + "quarters@localeAlias137": { "bundle": "gregorian", - "target": "dayPeriods-format-abbr" + "target": "quarters" }, - "dayPeriods-format-narrow@localeAlias165": { + "days-standAlone-abbr@localeAlias131": { "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "target": "days-format-abbr" }, - "dayPeriods@localeAlias159": { + "days-standAlone-abbr@localeAlias132": { "bundle": "gregorian", - "target": "dayPeriods" + "target": "days-format-wide" }, - "dateFormatItem-GyMMMEd": "G y MMM d, E", - "dateFormatItem-MMMEd": "MMM d, E", - "eraNarrow": [ + "dateFormatItem-MMM": "LLL", + "field-dayperiod": "Dayperiod", + "dayPeriods-format-narrow-pm": "p", + "dateFormat-medium": "G y MMM d", + "eraAbbr": [ "ERA0", "ERA1" ], + "quarters-standAlone-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "dayPeriods-format-abbr-pm": "PM", + "dateFormatItem-yyyyM": "GGGGG y-MM", + "days-format-abbr@localeAlias127": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "dateFormatItem-yyyyMMMd": "G y MMM d", "days-format-short": [ "Sun", "Mon", @@ -76,24 +165,22 @@ define({ root: "Fri", "Sat" ], - "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", - "days-standAlone-short@localeAlias150": { - "bundle": "gregorian", - "target": "days-format-abbr" - }, - "quarters-standAlone-wide@localeAlias158": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "days-standAlone-short@localeAlias151": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "days-format-abbr@localeAlias143": { - "bundle": "gregorian", - "target": "days-format-wide" + "quarters-format-narrow": [ + "1", + "2", + "3", + "4" + ], + "dayPeriods-format-wide-pm": "PM", + "field-sat-relative+-1": "last Saturday", + "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", + "dateTimeFormat-long": "{1} {0}", + "dateFormatItem-Md": "MM-dd", + "months-format-abbr@localeAlias121": { + "bundle": "ethiopic", + "target": "months-format-wide" }, - "dateFormat-long": "G y MMMM d", + "field-hour": "Hour", "months-format-wide": [ "Meskerem", "Tekemt", @@ -109,24 +196,24 @@ define({ root: "Nehasse", "Pagumen" ], - "dateFormatItem-yyyyQQQ": "G y QQQ", - "dateTimeFormat-medium": "{1} {0}", - "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "G y MMMM d, EEEE", - "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", - "days-format-narrow@localeAlias144": { - "bundle": "gregorian", - "target": "days-standAlone-narrow" + "field-month-relative+-1": "last month", + "dateFormatItem-Hms": "HH:mm:ss", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "dayPeriods-format-narrow-noon": "n", + "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", + "months-format-narrow@localeAlias122": { + "bundle": "ethiopic", + "target": "months-standAlone-narrow" }, - "dateFormatItem-Md": "MM-dd", - "dayPeriods-format-abbr-am": "AM", - "days@localeAlias142": { - "bundle": "gregorian", - "target": "days" + "dateFormat@localeAlias148": { + "bundle": "generic", + "target": "dateFormat" }, - "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", - "field-era": "Era", - "months-standAlone-wide": [ + "field-week-relative+-1": "last week", + "dateFormatItem-Ehm": "E h:mm a", + "months-format-abbr": [ "Meskerem", "Tekemt", "Hedar", @@ -141,18 +228,27 @@ define({ root: "Nehasse", "Pagumen" ], - "timeFormat-short": "HH:mm", - "quarters-format-wide": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], "timeFormat-long": "HH:mm:ss z", - "field-year": "Year", + "dateFormat-short": "GGGGG y-MM-dd", + "days-standAlone-wide": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateFormatItem-yyyyMMMEd": "G y MMM d, E", + "quarters-standAlone-wide@localeAlias142": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, "dateTimeFormats-appendItem-Era": "{1} {0}", - "field-hour": "Hour", - "months-format-abbr": [ + "dateFormatItem-H": "HH", + "dateFormatItem-yyyy": "G y", + "dateFormatItem-M": "L", + "months-standAlone-wide": [ "Meskerem", "Tekemt", "Hedar", @@ -167,11 +263,23 @@ define({ root: "Nehasse", "Pagumen" ], - "timeFormat-full": "HH:mm:ss zzzz", - "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", - "dateFormatItem-GyMMMd": "G y MMM d", + "field-sun-relative+-1": "last Sunday", + "days-standAlone-abbr": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateTimeFormat-full": "{1} {0}", + "dateFormatItem-hm": "h:mm a", + "dateFormatItem-d": "d", + "field-weekday": "Day of the Week", + "field-sat-relative+0": "this Saturday", + "dateFormatItem-h": "h a", + "field-sat-relative+1": "next Saturday", "months-standAlone-abbr": [ "Meskerem", "Tekemt", @@ -187,68 +295,81 @@ define({ root: "Nehasse", "Pagumen" ], - "dateFormatItem-H": "HH", - "quarters-format-abbr": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], - "quarters-standAlone-wide": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], - "dateFormatItem-Gy": "G y", - "dateFormatItem-yyyyMMMEd": "G y MMM d, E", - "dateFormatItem-M": "L", - "days-standAlone-wide": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" - ], - "dateFormatItem-yyyyMMM": "G y MMM", - "dateFormatItem-yyyyMMMd": "G y MMM d", - "quarters-standAlone-abbr@localeAlias156": { + "quarters-standAlone-abbr@localeAlias140": { "bundle": "gregorian", "target": "quarters-format-abbr" }, - "timeFormat-medium": "HH:mm:ss", - "quarters-standAlone-abbr@localeAlias157": { + "quarters-standAlone-abbr@localeAlias141": { "bundle": "gregorian", "target": "quarters-format-wide" }, - "quarters-format-narrow@localeAlias155": { + "quarters-format-abbr@localeAlias138": { "bundle": "gregorian", - "target": "quarters-standAlone-narrow" + "target": "quarters-format-wide" + }, + "timeFormat-full": "HH:mm:ss zzzz", + "dateFormatItem-MEd": "MM-dd, E", + "dateFormatItem-y": "G y", + "field-thu-relative+0": "this Thursday", + "field-thu-relative+1": "next Thursday", + "dateFormatItem-hms": "h:mm:ss a", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "dayPeriods-format-abbr-noon": "noon", + "days-standAlone-short@localeAlias133": { + "bundle": "gregorian", + "target": "days-format-short" }, - "quarters-format-abbr@localeAlias154": { + "days-format-short@localeAlias129": { "bundle": "gregorian", - "target": "quarters-format-wide" + "target": "days-format-abbr" }, - "quarters-standAlone-abbr": [ + "days-standAlone-short@localeAlias134": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "months-standAlone-wide@localeAlias125": { + "bundle": "ethiopic", + "target": "months-format-wide" + }, + "days-standAlone-short@localeAlias135": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", + "dayPeriods-format-abbr@localeAlias144": { + "bundle": "gregorian", + "target": "dayPeriods-format-wide" + }, + "field-thu-relative+-1": "last Thursday", + "dayPeriods-format-abbr@localeAlias145": { + "bundle": "gregorian", + "target": "dayPeriods-format-wide" + }, + "field-week": "Week", + "quarters-standAlone-narrow": [ + "1", + "2", + "3", + "4" + ], + "quarters-format-wide": [ "Q1", "Q2", "Q3", "Q4" ], - "dateFormatItem-Hm": "HH:mm", - "eraNarrow@localeAlias167": { + "dateFormatItem-Ed": "d, E", + "dateFormatItem-yyyyMMM": "G y MMM", + "months-standAlone-abbr@localeAlias123": { "bundle": "ethiopic", - "target": "eraAbbr" + "target": "months-format-abbr" }, - "eraAbbr": [ - "ERA0", - "ERA1" - ], - "field-minute": "Minute", - "field-dayperiod": "Dayperiod", - "days-standAlone-abbr": [ + "months-standAlone-abbr@localeAlias124": { + "bundle": "ethiopic", + "target": "months-format-wide" + }, + "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", + "days-standAlone-short": [ "Sun", "Mon", "Tue", @@ -257,46 +378,33 @@ define({ root: "Fri", "Sat" ], - "months-standAlone-wide@localeAlias141": { - "bundle": "ethiopic", - "target": "months-format-wide" - }, - "dateFormatItem-d": "d", - "dateFormatItem-ms": "mm:ss", - "quarters-format-narrow": [ - "1", - "2", - "3", - "4" - ], - "field-day-relative+-1": "Yesterday", - "dayPeriods-format-narrow-am": "AM", - "dateTimeFormat-long": "{1} {0}", - "dateFormatItem-h": "h a", - "months-standAlone-abbr@localeAlias139": { - "bundle": "ethiopic", - "target": "months-format-abbr" - }, - "dateFormatItem-MMMd": "MMM d", - "dateTime@localeAlias170": { - "bundle": "generic", - "target": "dateTime" + "days-format-short@localeAlias130": { + "bundle": "gregorian", + "target": "days-format-wide" }, - "months-format-abbr@localeAlias137": { + "eraNarrow@localeAlias147": { "bundle": "ethiopic", - "target": "months-format-wide" - }, - "dateFormatItem-MEd": "MM-dd, E", - "dayPeriods-format-abbr@localeAlias160": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "target": "eraAbbr" }, - "dateTimeFormat-full": "{1} {0}", - "dayPeriods-format-abbr@localeAlias163": { + "timeFormat@localeAlias149": { "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "target": "timeFormat" }, - "field-day": "Day", + "dateFormatItem-yyyyQQQQ": "G y QQQQ", + "quarters-format-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "field-year-relative+0": "this year", + "field-year-relative+1": "next year", + "field-fri-relative+-1": "last Friday", + "eraNarrow": [ + "ERA0", + "ERA1" + ], + "dayPeriods-format-wide-noon": "noon", "days-format-wide": [ "Sun", "Mon", @@ -306,32 +414,16 @@ define({ root: "Fri", "Sat" ], + "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", + "dateFormatItem-EHm": "E HH:mm", "field-zone": "Zone", - "months-standAlone-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], - "dateFormatItem-y": "G y", - "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", - "months-standAlone-abbr@localeAlias140": { - "bundle": "ethiopic", - "target": "months-format-wide" + "dateFormatItem-MMMEd": "MMM d, E", + "dateFormatItem-EHms": "E HH:mm:ss", + "field-day-relative+-1": "yesterday", + "dayPeriods@localeAlias143": { + "bundle": "gregorian", + "target": "dayPeriods" }, - "dateFormatItem-hm": "h:mm a", - "dateTimeFormats-appendItem-Year": "{1} {0}", - "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", - "dayPeriods-format-abbr-pm": "PM", "days-format-abbr": [ "Sun", "Mon", @@ -341,84 +433,14 @@ define({ root: "Fri", "Sat" ], - "eraNames": [ - "ERA0", - "ERA1" - ], - "days-format-narrow": [ - "S", - "M", - "T", - "W", - "T", - "F", - "S" - ], - "months-format-narrow@localeAlias138": { - "bundle": "ethiopic", - "target": "months-standAlone-narrow" - }, - "quarters@localeAlias153": { - "bundle": "gregorian", - "target": "quarters" - }, - "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", - "days-standAlone-narrow": [ - "S", - "M", - "T", - "W", - "T", - "F", - "S" - ], - "dateFormatItem-MMM": "LLL", - "field-month": "Month", - "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", - "dayPeriods-format-wide-am": "AM", - "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", + "field-sun-relative+0": "this Sunday", + "field-sun-relative+1": "next Sunday", "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", - "dateFormat-short": "GGGGG y-MM-dd", - "field-second": "Second", - "days-format-short@localeAlias145": { - "bundle": "gregorian", - "target": "days-format-abbr" - }, - "days-format-short@localeAlias146": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "eraNames@localeAlias166": { - "bundle": "ethiopic", - "target": "eraAbbr" - }, - "dateFormatItem-Ed": "d, E", - "dateTimeFormats-appendItem-Timezone": "{0} {1}", - "dateFormat@localeAlias168": { - "bundle": "generic", - "target": "dateFormat" - }, - "field-week": "Week", - "dateFormat-medium": "G y MMM d", - "dateFormatItem-yyyyM": "GGGGG y-MM", - "dayPeriods-format-narrow-pm": "PM", - "dateFormatItem-yyyyQQQQ": "G y QQQQ", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Hms": "HH:mm:ss", - "dateFormatItem-hms": "h:mm:ss a", - "days-standAlone-wide@localeAlias152": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "dateFormatItem-GyMMM": "G y MMM", - "timeFormat@localeAlias169": { - "bundle": "gregorian", - "target": "timeFormat" - }, - "dateFormatItem-yyyy": "G y", - "days-standAlone-abbr@localeAlias147": { + "dateFormatItem-Gy": "G y", + "field-era": "Era", + "days-format-narrow@localeAlias128": { "bundle": "gregorian", - "target": "days-format-abbr" + "target": "days-standAlone-narrow" } } //end v1.x content @@ -427,6 +449,8 @@ define({ root: "fr": true, "hu": true, "ja": true, + "ko": true, + "nl": true, "pl": true, "pt": true, "ro": true, diff --git a/cldr/nls/fi/buddhist.js b/cldr/nls/fi/buddhist.js index ffecf7cf09..d4bff336dd 100644 --- a/cldr/nls/fi/buddhist.js +++ b/cldr/nls/fi/buddhist.js @@ -24,9 +24,13 @@ define( "M", "J" ], + "field-second-relative+0": "nyt", "field-weekday": "viikonpäivä", + "field-wed-relative+0": "tänä keskiviikkona", + "field-wed-relative+1": "ensi keskiviikkona", "dateFormatItem-GyMMMEd": "E d. MMM y G", "dateFormatItem-MMMEd": "ccc d. MMM", + "field-tue-relative+-1": "viime tiistaina", "days-format-short": [ "su", "ma", @@ -37,6 +41,8 @@ define( "la" ], "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "viime perjantaina", + "field-wed-relative+-1": "viime keskiviikkona", "months-format-wide": [ "tammikuuta", "helmikuuta", @@ -55,6 +61,7 @@ define( "dayPeriods-format-wide-pm": "ip.", "dateFormat-full": "cccc d. MMMM y G", "dateFormatItem-yyyyMEd": "E d.M.y G", + "field-thu-relative+-1": "viime torstaina", "dateFormatItem-Md": "d.M.", "dayPeriods-format-abbr-am": "ap.", "field-era": "aikakausi", @@ -96,9 +103,13 @@ define( "marraskuuta", "joulukuuta" ], + "field-sat-relative+0": "tänä lauantaina", + "field-sat-relative+1": "ensi lauantaina", "timeFormat-full": "H.mm.ss zzzz", "field-day-relative+0": "tänään", + "field-thu-relative+0": "tänä torstaina", "field-day-relative+1": "huomenna", + "field-thu-relative+1": "ensi torstaina", "dateFormatItem-GyMMMd": "d. MMM y G", "field-day-relative+2": "ylihuomenna", "dateFormatItem-H": "H", @@ -142,7 +153,9 @@ define( "dateFormatItem-yyyyMMM": "LLL y G", "dateFormatItem-yyyyMMMd": "d. MMM y G", "timeFormat-medium": "H.mm.ss", + "field-sun-relative+0": "tänä sunnuntaina", "dateFormatItem-Hm": "H.mm", + "field-sun-relative+1": "ensi sunnuntaina", "quarters-standAlone-abbr": [ "1. nelj.", "2. nelj.", @@ -169,6 +182,8 @@ define( "field-day-relative+-2": "toissapäivänä", "dateFormatItem-MMMd": "d. MMM", "dateFormatItem-MEd": "E d.M.", + "field-fri-relative+0": "tänä perjantaina", + "field-fri-relative+1": "ensi perjantaina", "field-day": "päivä", "days-format-wide": [ "sunnuntaina", @@ -228,9 +243,15 @@ define( "P", "L" ], + "field-tue-relative+0": "tänä tiistaina", + "field-tue-relative+1": "ensi tiistaina", "dayPeriods-format-wide-am": "ap.", + "field-mon-relative+0": "tänä maanantaina", + "field-mon-relative+1": "ensi maanantaina", "dateFormat-short": "d.M.y GGGGG", "field-second": "sekunti", + "field-sat-relative+-1": "viime lauantaina", + "field-sun-relative+-1": "viime sunnuntaina", "field-month-relative+0": "tässä kuussa", "field-month-relative+1": "ensi kuussa", "dateFormatItem-Ed": "E d.", @@ -245,6 +266,7 @@ define( "dateFormatItem-Hms": "H.mm.ss", "dateFormatItem-hms": "h.mm.ss a", "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "viime maanantaina", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "tällä viikolla", "field-week-relative+1": "ensi viikolla" diff --git a/cldr/nls/fi/chinese.js b/cldr/nls/fi/chinese.js index 6455aec2a2..0acf1fb5ce 100644 --- a/cldr/nls/fi/chinese.js +++ b/cldr/nls/fi/chinese.js @@ -1,8 +1,12 @@ define( //begin v1.x content { + "field-sat-relative+0": "tänä lauantaina", "dateFormatItem-yyyyMMMEd": "E d.M.y", + "field-sat-relative+1": "ensi lauantaina", "field-dayperiod": "vuorokaudenaika", + "field-sun-relative+-1": "viime sunnuntaina", + "field-mon-relative+-1": "viime maanantaina", "field-minute": "minuutti", "dateFormatItem-MMMEd": "E d.M.", "field-day-relative+-1": "eilen", @@ -13,20 +17,28 @@ define( "field-hour": "tunti", "dateFormatItem-y": "y", "dateFormatItem-yyyy": "y", + "field-sun-relative+0": "tänä sunnuntaina", + "field-sun-relative+1": "ensi sunnuntaina", + "field-wed-relative+-1": "viime keskiviikkona", "field-day-relative+0": "tänään", "field-day-relative+1": "huomenna", "field-day-relative+2": "ylihuomenna", "dateFormat-long": "d.M.y", + "field-tue-relative+0": "tänä tiistaina", "field-zone": "aikavyöhyke", "dateFormatItem-Hm": "H.mm", + "field-tue-relative+1": "ensi tiistaina", "field-week-relative+-1": "viime viikolla", "dateFormat-medium": "d.M.y", "dateFormatItem-Hms": "H.mm.ss", "field-year-relative+0": "tänä vuonna", "field-year-relative+1": "ensi vuonna", + "field-sat-relative+-1": "viime lauantaina", "field-year-relative+-1": "viime vuonna", "dateFormatItem-ms": "mm.ss", "field-year": "vuosi", + "field-fri-relative+0": "tänä perjantaina", + "field-fri-relative+1": "ensi perjantaina", "field-week": "viikko", "dateFormatItem-yyyyMd": "d.M.y", "dateFormatItem-yyyyMMMd": "d.M.y", @@ -38,14 +50,24 @@ define( "field-month": "kuukausi", "field-month-relative+1": "ensi kuussa", "dateFormatItem-H": "H", + "field-fri-relative+-1": "viime perjantaina", "field-second": "sekunti", + "field-tue-relative+-1": "viime tiistaina", "field-day": "päivä", "dateFormatItem-MEd": "E d.M.", "dateFormatItem-hm": "h.mm a", + "field-mon-relative+0": "tänä maanantaina", + "field-mon-relative+1": "ensi maanantaina", + "field-thu-relative+0": "tänä torstaina", + "field-second-relative+0": "nyt", "dateFormat-short": "d.M.y", + "field-thu-relative+1": "ensi torstaina", "dateFormat-full": "cccc d.M.y", "dateFormatItem-Md": "d.M.", - "field-month-relative+-1": "viime kuussa" + "field-wed-relative+0": "tänä keskiviikkona", + "field-wed-relative+1": "ensi keskiviikkona", + "field-month-relative+-1": "viime kuussa", + "field-thu-relative+-1": "viime torstaina" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/fi/generic.js b/cldr/nls/fi/generic.js index d4552468f5..2c3a171b10 100644 --- a/cldr/nls/fi/generic.js +++ b/cldr/nls/fi/generic.js @@ -1,71 +1,93 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E d. MMM y G", - "field-dayperiod": "vuorokaudenaika", - "field-minute": "minuutti", - "dateFormatItem-MMMEd": "ccc d. MMM", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "eilen", - "dateFormatItem-hms": "h.mm.ss a", - "field-day-relative+-2": "toissapäivänä", + "field-second-relative+0": "nyt", "field-weekday": "viikonpäivä", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "y G", + "field-wed-relative+0": "tänä keskiviikkona", + "dateFormatItem-GyMMMEd": "E d. MMM y G", + "dateFormatItem-MMMEd": "ccc d. MMM", + "field-wed-relative+1": "ensi keskiviikkona", + "field-tue-relative+-1": "viime tiistaina", + "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "viime perjantaina", + "field-wed-relative+-1": "viime keskiviikkona", + "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "cccc d. MMMM y G", + "dateFormatItem-yyyyMEd": "E d.M.y G", + "field-thu-relative+-1": "viime torstaina", + "dateFormatItem-Md": "d.M.", "field-era": "aikakausi", + "field-year": "vuosi", + "dateFormatItem-yyyyMMMM": "LLLL y G", "field-hour": "tunti", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E d.", + "field-sat-relative+0": "tänä lauantaina", + "field-sat-relative+1": "ensi lauantaina", "field-day-relative+0": "tänään", "field-day-relative+1": "huomenna", - "field-day-relative+2": "ylihuomenna", - "dateFormatItem-yyyyMM": "M.y G", + "field-thu-relative+0": "tänä torstaina", "dateFormatItem-GyMMMd": "d. MMM y G", - "dateFormatItem-yyyyMMMM": "LLLL y G", - "dateFormatItem-yyyyMMMMccccd": "cccc d. MMMM y G", - "dateFormat-long": "d. MMMM y G", - "field-zone": "aikavyöhyke", + "field-day-relative+2": "ylihuomenna", + "field-thu-relative+1": "ensi torstaina", + "dateFormatItem-H": "H", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d. MMM y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "LLL y G", + "dateFormatItem-yyyyMMMd": "d. MMM y G", + "field-sun-relative+0": "tänä sunnuntaina", "dateFormatItem-Hm": "H.mm", - "field-week-relative+-1": "viime viikolla", - "dateFormat-medium": "d.M.y G", - "dateFormatItem-Hms": "H.mm.ss", - "field-year-relative+0": "tänä vuonna", - "field-year-relative+1": "ensi vuonna", - "field-year-relative+-1": "viime vuonna", + "field-sun-relative+1": "ensi sunnuntaina", + "field-minute": "minuutti", + "field-dayperiod": "vuorokaudenaika", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm.ss", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "field-year": "vuosi", + "field-day-relative+-1": "eilen", + "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", - "field-week": "viikko", - "dateFormatItem-yyyyMd": "d.M.y G", - "dateFormatItem-yyyyMMMd": "d. MMM y G", - "dateFormatItem-yyyyMEd": "E d.M.y G", + "field-day-relative+-2": "toissapäivänä", "dateFormatItem-MMMd": "d. MMM", - "field-week-relative+0": "tällä viikolla", - "field-week-relative+1": "ensi viikolla", - "field-month-relative+0": "tässä kuussa", - "dateFormatItem-H": "H", - "field-month": "kuukausi", - "field-month-relative+1": "ensi kuussa", - "dateFormatItem-M": "L", - "field-second": "sekunti", - "dateFormatItem-GyMMMEd": "E d. MMM y G", - "dateFormatItem-GyMMM": "LLL y G", - "field-day": "päivä", "dateFormatItem-MEd": "E d.M.", - "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-full": "{1} {0}", + "dateFormatItem-yyyyMMMMccccd": "cccc d. MMMM y G", + "field-fri-relative+0": "tänä perjantaina", + "field-fri-relative+1": "ensi perjantaina", + "field-day": "päivä", + "field-zone": "aikavyöhyke", + "dateFormatItem-yyyyMM": "M.y G", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "viime vuonna", + "field-month-relative+-1": "viime kuussa", "dateFormatItem-hm": "h.mm a", + "dateFormatItem-yyyyMd": "d.M.y G", + "field-month": "kuukausi", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "tänä tiistaina", + "field-tue-relative+1": "ensi tiistaina", + "field-mon-relative+0": "tänä maanantaina", + "field-mon-relative+1": "ensi maanantaina", "dateFormat-short": "d.M.y GGGGG", + "field-second": "sekunti", + "field-sat-relative+-1": "viime lauantaina", + "field-sun-relative+-1": "viime sunnuntaina", + "field-month-relative+0": "tässä kuussa", + "field-month-relative+1": "ensi kuussa", + "dateFormatItem-Ed": "E d.", + "field-week": "viikko", + "dateFormat-medium": "d.M.y G", + "field-year-relative+0": "tänä vuonna", + "field-week-relative+-1": "viime viikolla", "dateFormatItem-yyyyM": "L.y G", - "dateFormat-full": "cccc d. MMMM y G", - "dateFormatItem-Md": "d.M.", - "dateFormatItem-yyyyMMM": "LLL y G", - "dateFormatItem-d": "d", - "field-month-relative+-1": "viime kuussa", - "dateFormatItem-h": "h a" + "field-year-relative+1": "ensi vuonna", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "H.mm.ss", + "dateFormatItem-hms": "h.mm.ss a", + "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "viime maanantaina", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "tällä viikolla", + "field-week-relative+1": "ensi viikolla" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/fi/gregorian.js b/cldr/nls/fi/gregorian.js index 07d7b9adc4..e548b17987 100644 --- a/cldr/nls/fi/gregorian.js +++ b/cldr/nls/fi/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h.mm a", "days-standAlone-short": [ "su", "ma", @@ -24,6 +25,7 @@ define( "M", "J" ], + "field-second-relative+0": "nyt", "quarters-standAlone-narrow": [ "1", "2", @@ -33,13 +35,18 @@ define( "field-weekday": "viikonpäivä", "dateFormatItem-yQQQ": "QQQ y", "dateFormatItem-yMEd": "E d.M.y", + "field-wed-relative+0": "tänä keskiviikkona", + "field-wed-relative+1": "ensi keskiviikkona", "dateFormatItem-GyMMMEd": "E d. MMM y G", "dateFormatItem-MMMEd": "ccc d. MMM", "eraNarrow": [ "eK", - "jK" + "jK", + "jKr.", + "jaa." ], "dateFormatItem-yMM": "M.y", + "field-tue-relative+-1": "viime tiistaina", "days-format-short": [ "su", "ma", @@ -50,6 +57,8 @@ define( "la" ], "dateFormat-long": "d. MMMM y", + "field-fri-relative+-1": "viime perjantaina", + "field-wed-relative+-1": "viime keskiviikkona", "months-format-wide": [ "tammikuuta", "helmikuuta", @@ -67,12 +76,13 @@ define( "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "ip.", "dateFormat-full": "cccc d. MMMM y", + "field-thu-relative+-1": "viime torstaina", "dateFormatItem-Md": "d.M.", "dayPeriods-standAlone-wide-pm": "ip.", "dayPeriods-format-abbr-am": "ap.", "dateFormatItem-yMd": "d.M.y", - "dateFormatItem-yM": "L.y", "field-era": "aikakausi", + "dateFormatItem-yM": "L.y", "months-standAlone-wide": [ "tammikuu", "helmikuu", @@ -94,10 +104,10 @@ define( "3. neljännes", "4. neljännes" ], - "timeFormat-long": "H.mm.ss z", - "dateFormatItem-yMMM": "LLL y", "dateFormatItem-yQQQQ": "QQQQ y", + "timeFormat-long": "H.mm.ss z", "field-year": "vuosi", + "dateFormatItem-yMMM": "LLL y", "field-hour": "tunti", "months-format-abbr": [ "tammikuuta", @@ -113,9 +123,13 @@ define( "marraskuuta", "joulukuuta" ], + "field-sat-relative+0": "tänä lauantaina", + "field-sat-relative+1": "ensi lauantaina", "timeFormat-full": "H.mm.ss zzzz", "field-day-relative+0": "tänään", + "field-thu-relative+0": "tänä torstaina", "field-day-relative+1": "huomenna", + "field-thu-relative+1": "ensi torstaina", "dateFormatItem-GyMMMd": "d. MMM y G", "field-day-relative+2": "ylihuomenna", "dateFormatItem-H": "H", @@ -157,7 +171,9 @@ define( "lauantai" ], "timeFormat-medium": "H.mm.ss", + "field-sun-relative+0": "tänä sunnuntaina", "dateFormatItem-Hm": "H.mm", + "field-sun-relative+1": "ensi sunnuntaina", "quarters-standAlone-abbr": [ "1. nelj.", "2. nelj.", @@ -166,7 +182,9 @@ define( ], "eraAbbr": [ "eKr.", - "jKr." + "eaa.", + "jKr.", + "jaa." ], "field-minute": "minuutti", "field-dayperiod": "vuorokaudenaika", @@ -180,7 +198,7 @@ define( "la" ], "dateFormatItem-d": "d", - "dateFormatItem-ms": "mm.ss", + "dateFormatItem-ms": "m.ss", "quarters-format-narrow": [ "1", "2", @@ -195,7 +213,9 @@ define( "dateFormatItem-MMMd": "d. MMM", "dateFormatItem-MEd": "E d.M.", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "tänä perjantaina", "dateFormatItem-yMMMM": "LLLL y", + "field-fri-relative+1": "ensi perjantaina", "dateFormatItem-yMMMMccccd": "cccc d. MMMM y", "field-day": "päivä", "days-format-wide": [ @@ -236,11 +256,13 @@ define( "pe", "la" ], - "dateFormatItem-yMMMd": "d. MMM y", "eraNames": [ "ennen Kristuksen syntymää", - "jälkeen Kristuksen syntymän" + "ennen ajanlaskun alkua", + "jälkeen Kristuksen syntymän", + "jälkeen ajanlaskun alun" ], + "dateFormatItem-yMMMd": "d. MMM y", "days-format-narrow": [ "S", "M", @@ -261,14 +283,24 @@ define( ], "dateFormatItem-MMM": "LLL", "field-month": "kuukausi", + "field-tue-relative+0": "tänä tiistaina", + "field-tue-relative+1": "ensi tiistaina", "dayPeriods-format-wide-am": "ap.", "dayPeriods-standAlone-wide-am": "ap.", + "dateFormatItem-EHm": "E H.mm", + "field-mon-relative+0": "tänä maanantaina", + "field-mon-relative+1": "ensi maanantaina", "dateFormat-short": "d.M.y", + "dateFormatItem-EHms": "E H.mm.ss", + "dateFormatItem-Ehms": "E h.mm.ss a", "field-second": "sekunti", + "field-sat-relative+-1": "viime lauantaina", "dateFormatItem-yMMMEd": "E d. MMM y", + "field-sun-relative+-1": "viime sunnuntaina", "field-month-relative+0": "tässä kuussa", "field-month-relative+1": "ensi kuussa", "dateFormatItem-Ed": "E d.", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "viikko", "dateFormat-medium": "d.M.y", "field-year-relative+0": "tänä vuonna", @@ -279,6 +311,7 @@ define( "dateFormatItem-Hms": "H.mm.ss", "dateFormatItem-hms": "h.mm.ss a", "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "viime maanantaina", "field-week-relative+0": "tällä viikolla", "field-week-relative+1": "ensi viikolla" } diff --git a/cldr/nls/fi/hebrew.js b/cldr/nls/fi/hebrew.js index b99c282c6b..e8d3263e11 100644 --- a/cldr/nls/fi/hebrew.js +++ b/cldr/nls/fi/hebrew.js @@ -25,10 +25,14 @@ define( "A", "E" ], + "field-second-relative+0": "nyt", "field-weekday": "viikonpäivä", "months-standAlone-narrow-leap": "A", + "field-wed-relative+0": "tänä keskiviikkona", + "field-wed-relative+1": "ensi keskiviikkona", "dateFormatItem-GyMMMEd": "E d. MMM y G", "dateFormatItem-MMMEd": "ccc d. MMM", + "field-tue-relative+-1": "viime tiistaina", "days-format-short": [ "su", "ma", @@ -39,6 +43,8 @@ define( "la" ], "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "viime perjantaina", + "field-wed-relative+-1": "viime keskiviikkona", "months-format-wide": [ "tišríkuuta", "hešvánkuuta", @@ -58,6 +64,7 @@ define( "dayPeriods-format-wide-pm": "ip.", "dateFormat-full": "cccc d. MMMM y G", "dateFormatItem-yyyyMEd": "E d.M.y G", + "field-thu-relative+-1": "viime torstaina", "dateFormatItem-Md": "d.M.", "dayPeriods-format-abbr-am": "ap.", "field-era": "aikakausi", @@ -101,9 +108,13 @@ define( "abkuuta", "elúlkuuta" ], + "field-sat-relative+0": "tänä lauantaina", + "field-sat-relative+1": "ensi lauantaina", "timeFormat-full": "H.mm.ss zzzz", "field-day-relative+0": "tänään", + "field-thu-relative+0": "tänä torstaina", "field-day-relative+1": "huomenna", + "field-thu-relative+1": "ensi torstaina", "dateFormatItem-GyMMMd": "d. MMM y G", "field-day-relative+2": "ylihuomenna", "dateFormatItem-H": "H", @@ -149,7 +160,9 @@ define( "dateFormatItem-yyyyMMMd": "d. MMM y G", "months-standAlone-wide-leap": "adárkuu II", "timeFormat-medium": "H.mm.ss", + "field-sun-relative+0": "tänä sunnuntaina", "dateFormatItem-Hm": "H.mm", + "field-sun-relative+1": "ensi sunnuntaina", "quarters-standAlone-abbr": [ "1. nelj.", "2. nelj.", @@ -173,6 +186,8 @@ define( "field-day-relative+-2": "toissapäivänä", "dateFormatItem-MMMd": "d. MMM", "dateFormatItem-MEd": "E d.M.", + "field-fri-relative+0": "tänä perjantaina", + "field-fri-relative+1": "ensi perjantaina", "field-day": "päivä", "days-format-wide": [ "sunnuntaina", @@ -234,9 +249,15 @@ define( "P", "L" ], + "field-tue-relative+0": "tänä tiistaina", + "field-tue-relative+1": "ensi tiistaina", "dayPeriods-format-wide-am": "ap.", + "field-mon-relative+0": "tänä maanantaina", + "field-mon-relative+1": "ensi maanantaina", "dateFormat-short": "d.M.y GGGGG", "field-second": "sekunti", + "field-sat-relative+-1": "viime lauantaina", + "field-sun-relative+-1": "viime sunnuntaina", "field-month-relative+0": "tässä kuussa", "field-month-relative+1": "ensi kuussa", "dateFormatItem-Ed": "E d.", @@ -252,6 +273,7 @@ define( "dateFormatItem-hms": "h.mm.ss a", "months-format-wide-leap": "adárkuuta II", "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "viime maanantaina", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "tällä viikolla", "field-week-relative+1": "ensi viikolla" diff --git a/cldr/nls/fi/islamic.js b/cldr/nls/fi/islamic.js index bb8042e519..cb944b6728 100644 --- a/cldr/nls/fi/islamic.js +++ b/cldr/nls/fi/islamic.js @@ -10,9 +10,13 @@ define( "pe", "la" ], + "field-second-relative+0": "nyt", "field-weekday": "viikonpäivä", + "field-wed-relative+0": "tänä keskiviikkona", + "field-wed-relative+1": "ensi keskiviikkona", "dateFormatItem-GyMMMEd": "E d. MMM y G", "dateFormatItem-MMMEd": "ccc d. MMM", + "field-tue-relative+-1": "viime tiistaina", "days-format-short": [ "su", "ma", @@ -23,6 +27,8 @@ define( "la" ], "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "viime perjantaina", + "field-wed-relative+-1": "viime keskiviikkona", "months-format-wide": [ "muharram", "safar", @@ -41,6 +47,7 @@ define( "dayPeriods-format-wide-pm": "ip.", "dateFormat-full": "cccc d. MMMM y G", "dateFormatItem-yyyyMEd": "E d.M.y G", + "field-thu-relative+-1": "viime torstaina", "dateFormatItem-Md": "d.M.", "dayPeriods-format-abbr-am": "ap.", "field-era": "aikakausi", @@ -82,9 +89,13 @@ define( "dhu-l-qa’da", "dhu-l-hiddža" ], + "field-sat-relative+0": "tänä lauantaina", + "field-sat-relative+1": "ensi lauantaina", "timeFormat-full": "H.mm.ss zzzz", "field-day-relative+0": "tänään", + "field-thu-relative+0": "tänä torstaina", "field-day-relative+1": "huomenna", + "field-thu-relative+1": "ensi torstaina", "dateFormatItem-GyMMMd": "d. MMM y G", "field-day-relative+2": "ylihuomenna", "dateFormatItem-H": "H", @@ -128,7 +139,9 @@ define( "dateFormatItem-yyyyMMM": "LLL y G", "dateFormatItem-yyyyMMMd": "d. MMM y G", "timeFormat-medium": "H.mm.ss", + "field-sun-relative+0": "tänä sunnuntaina", "dateFormatItem-Hm": "H.mm", + "field-sun-relative+1": "ensi sunnuntaina", "quarters-standAlone-abbr": [ "1. nelj.", "2. nelj.", @@ -152,6 +165,8 @@ define( "field-day-relative+-2": "toissapäivänä", "dateFormatItem-MMMd": "d. MMM", "dateFormatItem-MEd": "E d.M.", + "field-fri-relative+0": "tänä perjantaina", + "field-fri-relative+1": "ensi perjantaina", "field-day": "päivä", "days-format-wide": [ "sunnuntaina", @@ -197,9 +212,15 @@ define( "P", "L" ], + "field-tue-relative+0": "tänä tiistaina", + "field-tue-relative+1": "ensi tiistaina", "dayPeriods-format-wide-am": "ap.", + "field-mon-relative+0": "tänä maanantaina", + "field-mon-relative+1": "ensi maanantaina", "dateFormat-short": "d.M.y GGGGG", "field-second": "sekunti", + "field-sat-relative+-1": "viime lauantaina", + "field-sun-relative+-1": "viime sunnuntaina", "field-month-relative+0": "tässä kuussa", "field-month-relative+1": "ensi kuussa", "dateFormatItem-Ed": "E d.", @@ -214,6 +235,7 @@ define( "dateFormatItem-Hms": "H.mm.ss", "dateFormatItem-hms": "h.mm.ss a", "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "viime maanantaina", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "tällä viikolla", "field-week-relative+1": "ensi viikolla" diff --git a/cldr/nls/fi/japanese.js b/cldr/nls/fi/japanese.js index 6d4bf0232d..c0ff0e66b7 100644 --- a/cldr/nls/fi/japanese.js +++ b/cldr/nls/fi/japanese.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "dateFormat-medium": "d.M.y G", - "field-second": "sekunti", - "field-year-relative+-1": "viime vuonna", - "field-week": "viikko", - "field-month-relative+-1": "viime kuussa", + "field-sat-relative+0": "tänä lauantaina", + "field-sat-relative+1": "ensi lauantaina", + "field-dayperiod": "vuorokaudenaika", + "field-sun-relative+-1": "viime sunnuntaina", + "field-mon-relative+-1": "viime maanantaina", + "field-minute": "minuutti", "field-day-relative+-1": "eilen", + "field-weekday": "viikonpäivä", "field-day-relative+-2": "toissapäivänä", - "field-year": "vuosi", - "field-week-relative+0": "tällä viikolla", - "field-week-relative+1": "ensi viikolla", - "field-minute": "minuutti", - "field-week-relative+-1": "viime viikolla", - "field-day-relative+0": "tänään", + "field-era": "aikakausi", "field-hour": "tunti", + "field-sun-relative+0": "tänä sunnuntaina", + "field-sun-relative+1": "ensi sunnuntaina", + "field-wed-relative+-1": "viime keskiviikkona", + "field-day-relative+0": "tänään", "field-day-relative+1": "huomenna", - "dateFormat-long": "d. MMMM y G", "field-day-relative+2": "ylihuomenna", - "field-day": "päivä", + "dateFormat-long": "d. MMMM y G", + "field-tue-relative+0": "tänä tiistaina", + "field-zone": "aikavyöhyke", + "field-tue-relative+1": "ensi tiistaina", + "field-week-relative+-1": "viime viikolla", + "dateFormat-medium": "d.M.y G", + "field-year-relative+0": "tänä vuonna", + "field-year-relative+1": "ensi vuonna", + "field-sat-relative+-1": "viime lauantaina", + "field-year-relative+-1": "viime vuonna", + "field-year": "vuosi", + "field-fri-relative+0": "tänä perjantaina", + "field-fri-relative+1": "ensi perjantaina", + "field-week": "viikko", + "field-week-relative+0": "tällä viikolla", + "field-week-relative+1": "ensi viikolla", "field-month-relative+0": "tässä kuussa", - "field-month-relative+1": "ensi kuussa", - "field-dayperiod": "vuorokaudenaika", "field-month": "kuukausi", + "field-month-relative+1": "ensi kuussa", + "field-fri-relative+-1": "viime perjantaina", + "field-second": "sekunti", + "field-tue-relative+-1": "viime tiistaina", + "field-day": "päivä", + "field-mon-relative+0": "tänä maanantaina", + "field-mon-relative+1": "ensi maanantaina", + "field-thu-relative+0": "tänä torstaina", + "field-second-relative+0": "nyt", "dateFormat-short": "d.M.y GGGGG", - "field-era": "aikakausi", - "field-year-relative+0": "tänä vuonna", - "field-year-relative+1": "ensi vuonna", + "field-thu-relative+1": "ensi torstaina", "dateFormat-full": "cccc d. MMMM y G", - "field-weekday": "viikonpäivä", - "field-zone": "aikavyöhyke" + "field-wed-relative+0": "tänä keskiviikkona", + "field-wed-relative+1": "ensi keskiviikkona", + "field-month-relative+-1": "viime kuussa", + "field-thu-relative+-1": "viime torstaina" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/fi/number.js b/cldr/nls/fi/number.js index d077262e3b..9d0ede15ff 100644 --- a/cldr/nls/fi/number.js +++ b/cldr/nls/fi/number.js @@ -8,8 +8,9 @@ define( "percentFormat": "#,##0 %", "list": ";", "infinity": "∞", - "minusSign": "-", + "minusSign": "−", "decimal": ",", + "superscriptingExponent": "×", "nan": "epäluku", "perMille": "‰", "decimalFormat": "#,##0.###", diff --git a/cldr/nls/fi/roc.js b/cldr/nls/fi/roc.js index 7228a1650d..9bd24d8a0f 100644 --- a/cldr/nls/fi/roc.js +++ b/cldr/nls/fi/roc.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "field-second": "sekunti", - "field-year-relative+-1": "viime vuonna", - "field-week": "viikko", - "field-month-relative+-1": "viime kuussa", + "field-sat-relative+0": "tänä lauantaina", + "field-sat-relative+1": "ensi lauantaina", + "field-dayperiod": "vuorokaudenaika", + "field-sun-relative+-1": "viime sunnuntaina", + "field-mon-relative+-1": "viime maanantaina", + "field-minute": "minuutti", "field-day-relative+-1": "eilen", + "field-weekday": "viikonpäivä", "field-day-relative+-2": "toissapäivänä", - "field-year": "vuosi", - "field-week-relative+0": "tällä viikolla", - "field-week-relative+1": "ensi viikolla", - "field-minute": "minuutti", - "field-week-relative+-1": "viime viikolla", - "field-day-relative+0": "tänään", + "field-era": "aikakausi", "field-hour": "tunti", + "field-sun-relative+0": "tänä sunnuntaina", + "field-sun-relative+1": "ensi sunnuntaina", + "field-wed-relative+-1": "viime keskiviikkona", + "field-day-relative+0": "tänään", "field-day-relative+1": "huomenna", - "field-day-relative+2": "ylihuomenna", - "field-day": "päivä", - "field-month-relative+0": "tässä kuussa", - "field-month-relative+1": "ensi kuussa", - "field-dayperiod": "vuorokaudenaika", - "field-month": "kuukausi", - "field-era": "aikakausi", - "field-year-relative+0": "tänä vuonna", - "field-year-relative+1": "ensi vuonna", "eraAbbr": [ "Before R.O.C.", "Minguo" ], - "field-weekday": "viikonpäivä", - "field-zone": "aikavyöhyke" + "field-day-relative+2": "ylihuomenna", + "field-tue-relative+0": "tänä tiistaina", + "field-zone": "aikavyöhyke", + "field-tue-relative+1": "ensi tiistaina", + "field-week-relative+-1": "viime viikolla", + "field-year-relative+0": "tänä vuonna", + "field-year-relative+1": "ensi vuonna", + "field-sat-relative+-1": "viime lauantaina", + "field-year-relative+-1": "viime vuonna", + "field-year": "vuosi", + "field-fri-relative+0": "tänä perjantaina", + "field-fri-relative+1": "ensi perjantaina", + "field-week": "viikko", + "field-week-relative+0": "tällä viikolla", + "field-week-relative+1": "ensi viikolla", + "field-month-relative+0": "tässä kuussa", + "field-month": "kuukausi", + "field-month-relative+1": "ensi kuussa", + "field-fri-relative+-1": "viime perjantaina", + "field-second": "sekunti", + "field-tue-relative+-1": "viime tiistaina", + "field-day": "päivä", + "field-mon-relative+0": "tänä maanantaina", + "field-mon-relative+1": "ensi maanantaina", + "field-thu-relative+0": "tänä torstaina", + "field-second-relative+0": "nyt", + "field-thu-relative+1": "ensi torstaina", + "field-wed-relative+0": "tänä keskiviikkona", + "field-wed-relative+1": "ensi keskiviikkona", + "field-month-relative+-1": "viime kuussa", + "field-thu-relative+-1": "viime torstaina" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/fr/buddhist.js b/cldr/nls/fr/buddhist.js index fd63ecbe41..cb47f737c4 100644 --- a/cldr/nls/fr/buddhist.js +++ b/cldr/nls/fr/buddhist.js @@ -1,26 +1,16 @@ define( //begin v1.x content { - "field-dayperiod": "cadran", - "dateFormatItem-yyyyMMMEd": "E d MMM y G", - "field-minute": "minute", - "eraNames": [ - "ère bouddhiste" - ], - "dateFormatItem-MMMEd": "E d MMM", - "field-day-relative+-1": "hier", - "field-weekday": "jour de la semaine", - "field-day-relative+-2": "avant-hier", - "days-standAlone-wide": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" + "days-standAlone-short": [ + "dim.", + "lun.", + "mar.", + "mer.", + "jeu.", + "ven.", + "sam." ], - "months-standAlone-narrow": [ + "months-format-narrow": [ "J", "F", "M", @@ -34,65 +24,47 @@ define( "N", "D" ], - "field-era": "ère", - "dateFormatItem-Gy": "y G", - "field-hour": "heure", - "quarters-standAlone-abbr": [ - "T1", - "T2", - "T3", - "T4" + "field-second-relative+0": "maintenant", + "field-weekday": "jour de la semaine", + "field-wed-relative+0": "ce mercredi", + "field-wed-relative+1": "mercredi prochain", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "eraNarrow": "E.B.", + "field-tue-relative+-1": "mardi dernier", + "days-format-short": [ + "di", + "lu", + "ma", + "me", + "je", + "ve", + "sa" ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ - "janv.", - "févr.", + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "vendredi dernier", + "field-wed-relative+-1": "mercredi dernier", + "months-format-wide": [ + "janvier", + "février", "mars", - "avr.", + "avril", "mai", "juin", - "juil.", + "juillet", "août", - "sept.", - "oct.", - "nov.", - "déc." - ], - "dateFormatItem-Ed": "E d", - "field-day-relative+0": "aujourd’hui", - "field-day-relative+1": "demain", - "days-standAlone-narrow": [ - "D", - "L", - "M", - "M", - "J", - "V", - "S" - ], - "eraAbbr": [ - "ère b." - ], - "field-day-relative+2": "après-demain", - "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormat-long": "d MMMM y G", - "field-zone": "fuseau horaire", - "field-week-relative+-1": "la semaine dernière", - "dateFormat-medium": "d MMM y G", - "dayPeriods-format-narrow-pm": "p", - "field-year-relative+0": "cette année", - "field-year-relative+1": "l’année prochaine", - "quarters-standAlone-wide": [ - "1er trimestre", - "2e trimestre", - "3e trimestre", - "4e trimestre" + "septembre", + "octobre", + "novembre", + "décembre" ], - "field-year-relative+-1": "l’année dernière", - "field-year": "année", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "field-week": "semaine", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", + "field-thu-relative+-1": "jeudi dernier", + "dateFormatItem-Md": "d/M", + "dayPeriods-format-wide-noon": "midi", + "field-era": "ère", "months-standAlone-wide": [ "janvier", "février", @@ -107,12 +79,14 @@ define( "novembre", "décembre" ], - "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMd": "d/M/y GGGGG", - "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", - "field-week-relative+0": "cette semaine", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+1": "la semaine prochaine", + "quarters-format-wide": [ + "1er trimestre", + "2e trimestre", + "3e trimestre", + "4e trimestre" + ], + "field-year": "année", + "field-hour": "heure", "months-format-abbr": [ "janv.", "févr.", @@ -127,16 +101,68 @@ define( "nov.", "déc." ], - "field-month-relative+0": "ce mois-ci", - "field-month": "mois", - "field-month-relative+1": "le mois prochain", + "field-sat-relative+0": "ce samedi", + "field-sat-relative+1": "samedi prochain", + "field-day-relative+0": "aujourd’hui", + "field-thu-relative+0": "ce jeudi", + "field-day-relative+1": "demain", + "field-thu-relative+1": "jeudi prochain", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "après-demain", + "months-standAlone-abbr": [ + "janv.", + "févr.", + "mars", + "avr.", + "mai", + "juin", + "juil.", + "août", + "sept.", + "oct.", + "nov.", + "déc." + ], "quarters-format-abbr": [ "T1", "T2", "T3", "T4" ], - "days-format-abbr": [ + "quarters-standAlone-wide": [ + "1er trimestre", + "2e trimestre", + "3e trimestre", + "4e trimestre" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "dateFormatItem-M": "L", + "days-standAlone-wide": [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi" + ], + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "field-sun-relative+0": "ce dimanche", + "field-sun-relative+1": "dimanche prochain", + "quarters-standAlone-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], + "eraAbbr": [ + "ère b." + ], + "field-minute": "minute", + "field-dayperiod": "cadran", + "days-standAlone-abbr": [ "dim.", "lun.", "mar.", @@ -145,22 +171,28 @@ define( "ven.", "sam." ], - "days-format-narrow": [ - "D", - "L", - "M", - "M", - "J", - "V", - "S" - ], - "field-second": "seconde", - "dateFormatItem-GyMMMEd": "E d MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "jour", - "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateFormatItem-d": "d", + "field-day-relative+-1": "hier", + "dateTimeFormat-long": "{1} 'à' {0}", + "field-day-relative+-2": "avant-hier", + "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E d/M", - "months-format-narrow": [ + "dateTimeFormat-full": "{1} 'à' {0}", + "field-fri-relative+0": "ce vendredi", + "field-fri-relative+1": "vendredi prochain", + "field-day": "jour", + "days-format-wide": [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi" + ], + "field-zone": "fuseau horaire", + "dateFormatItem-y": "y G", + "months-standAlone-narrow": [ "J", "F", "M", @@ -174,16 +206,9 @@ define( "N", "D" ], - "days-standAlone-short": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "days-standAlone-abbr": [ + "field-year-relative+-1": "l’année dernière", + "field-month-relative+-1": "le mois dernier", + "days-format-abbr": [ "dim.", "lun.", "mar.", @@ -192,51 +217,54 @@ define( "ven.", "sam." ], - "dateFormat-short": "dd/MM/y GGGGG", - "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormat-full": "EEEE d MMMM y G", - "dateFormatItem-Md": "d/M", - "months-format-wide": [ - "janvier", - "février", - "mars", - "avril", - "mai", - "juin", - "juillet", - "août", - "septembre", - "octobre", - "novembre", - "décembre" + "eraNames": [ + "ère bouddhiste" ], - "days-format-short": [ - "di", - "lu", - "ma", - "me", - "je", - "ve", - "sa" + "days-format-narrow": [ + "D", + "L", + "M", + "M", + "J", + "V", + "S" ], - "dateFormatItem-yyyyMMM": "MMM y G", - "field-month-relative+-1": "le mois dernier", - "quarters-format-wide": [ - "1er trimestre", - "2e trimestre", - "3e trimestre", - "4e trimestre" + "dateFormatItem-yyyyMd": "d/M/y GGGGG", + "field-month": "mois", + "dateFormatItem-MMM": "LLL", + "days-standAlone-narrow": [ + "D", + "L", + "M", + "M", + "J", + "V", + "S" ], - "eraNarrow": "E.B.", - "days-format-wide": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ] + "field-tue-relative+0": "ce mardi", + "field-tue-relative+1": "mardi prochain", + "field-mon-relative+0": "ce lundi", + "field-mon-relative+1": "lundi prochain", + "dateFormat-short": "dd/MM/y GGGGG", + "dayPeriods-format-narrow-noon": "midi", + "field-second": "seconde", + "field-sat-relative+-1": "samedi dernier", + "field-sun-relative+-1": "dimanche dernier", + "field-month-relative+0": "ce mois-ci", + "field-month-relative+1": "le mois prochain", + "dateFormatItem-Ed": "E d", + "field-week": "semaine", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "cette année", + "field-week-relative+-1": "la semaine dernière", + "dateFormatItem-yyyyM": "M/y GGGGG", + "field-year-relative+1": "l’année prochaine", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "lundi dernier", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "cette semaine", + "field-week-relative+1": "la semaine prochaine" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/fr/chinese.js b/cldr/nls/fr/chinese.js index 2186162a08..361e1c0596 100644 --- a/cldr/nls/fr/chinese.js +++ b/cldr/nls/fr/chinese.js @@ -1,42 +1,76 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E d MMM U", - "field-dayperiod": "cadran", - "field-minute": "minute", - "dateFormatItem-MMMEd": "E d MMM", - "field-day-relative+-1": "hier", - "field-day-relative+-2": "avant-hier", + "field-second-relative+0": "maintenant", "field-weekday": "jour de la semaine", - "dateFormatItem-MMM": "LLL", + "field-wed-relative+0": "ce mercredi", + "field-wed-relative+1": "mercredi prochain", + "dateFormatItem-GyMMMEd": "E d MMM U", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "mardi dernier", + "dateFormat-long": "d MMMM U", + "field-fri-relative+-1": "vendredi dernier", + "field-wed-relative+-1": "mercredi dernier", + "months-format-wide": [ + "zhēngyuè", + "èryuè", + "sānyuè", + "sìyuè", + "wǔyuè", + "liùyuè", + "qīyuè", + "bāyuè", + "jiǔyuè", + "shíyuè", + "shíyīyuè", + "shí’èryuè" + ], + "dateFormatItem-yyyyQQQ": "QQQ U", + "dateFormat-full": "EEEE d MMMM U", + "dateFormatItem-yyyyMEd": "E d/M/y", + "field-thu-relative+-1": "jeudi dernier", + "dateFormatItem-Md": "d/M", + "dateFormatItem-yMd": "d/M/y", "field-era": "ère", - "dateFormatItem-Gy": "U", + "months-standAlone-wide": [ + "zhēngyuè", + "èryuè", + "sānyuè", + "sìyuè", + "wǔyuè", + "liùyuè", + "qīyuè", + "bāyuè", + "jiǔyuè", + "shíyuè", + "shíyīyuè", + "shí’èryuè" + ], + "field-year": "année", "field-hour": "heure", - "dateFormatItem-y": "U", - "dateFormatItem-yyyy": "U", + "months-format-abbr": [ + "1yuè", + "2yuè", + "3yuè", + "4yuè", + "5yuè", + "6yuè", + "7yuè", + "8yuè", + "9yuè", + "10yuè", + "11yuè", + "12yuè" + ], + "field-sat-relative+0": "ce samedi", + "field-sat-relative+1": "samedi prochain", "field-day-relative+0": "aujourd’hui", + "field-thu-relative+0": "ce jeudi", "field-day-relative+1": "demain", - "field-day-relative+2": "après-demain", + "field-thu-relative+1": "jeudi prochain", "dateFormatItem-GyMMMd": "d MMM U", - "dateFormat-long": "d MMMM U", - "field-zone": "fuseau horaire", - "field-week-relative+-1": "la semaine dernière", - "dateFormat-medium": "d MMM U", - "field-year-relative+0": "cette année", - "field-year-relative+1": "l’année prochaine", - "dateFormatItem-yMd": "d/M/y", - "field-year-relative+-1": "l’année dernière", - "dateFormatItem-ms": "mm:ss", - "field-year": "année", - "dateFormatItem-yyyyQQQQ": "QQQQ U", - "field-week": "semaine", - "dateFormatItem-yyyyMd": "d/M/y", - "dateFormatItem-yyyyMMMd": "d MMM U", - "dateFormatItem-yyyyMEd": "E d/M/y", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "cette semaine", - "field-week-relative+1": "la semaine prochaine", - "months-format-abbr": [ + "field-day-relative+2": "après-demain", + "months-standAlone-abbr": [ "1yuè", "2yuè", "3yuè", @@ -50,36 +84,52 @@ define( "11yuè", "12yuè" ], - "field-month-relative+0": "ce mois-ci", - "field-month": "mois", - "field-month-relative+1": "le mois prochain", + "dateFormatItem-Gy": "U", + "dateFormatItem-yyyyMMMEd": "E d MMM U", "dateFormatItem-M": "L", - "field-second": "seconde", - "dateFormatItem-GyMMMEd": "E d MMM U", - "dateFormatItem-GyMMM": "MMM U", - "field-day": "jour", - "dateFormatItem-yyyyQQQ": "QQQ U", + "dateFormatItem-yyyyMMM": "MMM U", + "dateFormatItem-yyyyMMMd": "d MMM U", + "field-sun-relative+0": "ce dimanche", + "field-sun-relative+1": "dimanche prochain", + "field-minute": "minute", + "field-dayperiod": "cadran", + "dateFormatItem-ms": "mm:ss", + "field-day-relative+-1": "hier", + "field-day-relative+-2": "avant-hier", + "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E d/M", + "field-fri-relative+0": "ce vendredi", + "field-fri-relative+1": "vendredi prochain", + "field-day": "jour", + "field-zone": "fuseau horaire", + "dateFormatItem-y": "U", + "field-year-relative+-1": "l’année dernière", + "field-month-relative+-1": "le mois dernier", + "dateFormatItem-yyyyMd": "d/M/y", + "field-month": "mois", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "ce mardi", + "field-tue-relative+1": "mardi prochain", + "field-mon-relative+0": "ce lundi", + "field-mon-relative+1": "lundi prochain", "dateFormat-short": "d/M/y", + "field-second": "seconde", + "field-sat-relative+-1": "samedi dernier", + "field-sun-relative+-1": "dimanche dernier", + "field-month-relative+0": "ce mois-ci", + "field-month-relative+1": "le mois prochain", + "field-week": "semaine", + "dateFormat-medium": "d MMM U", + "field-year-relative+0": "cette année", + "field-week-relative+-1": "la semaine dernière", "dateFormatItem-yyyyM": "M/y", - "dateFormat-full": "EEEE d MMMM U", - "dateFormatItem-Md": "d/M", - "months-format-wide": [ - "zhēngyuè", - "èryuè", - "sānyuè", - "sìyuè", - "wǔyuè", - "liùyuè", - "qīyuè", - "bāyuè", - "jiǔyuè", - "shíyuè", - "shíyīyuè", - "shí’èryuè" - ], - "dateFormatItem-yyyyMMM": "MMM U", - "field-month-relative+-1": "le mois dernier" + "field-year-relative+1": "l’année prochaine", + "dateFormatItem-yyyyQQQQ": "QQQQ U", + "dateFormatItem-GyMMM": "MMM U", + "field-mon-relative+-1": "lundi dernier", + "dateFormatItem-yyyy": "U", + "field-week-relative+0": "cette semaine", + "field-week-relative+1": "la semaine prochaine" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/fr/coptic.js b/cldr/nls/fr/coptic.js index e38da0f3a8..fe050acaad 100644 --- a/cldr/nls/fr/coptic.js +++ b/cldr/nls/fr/coptic.js @@ -1,31 +1,53 @@ define( //begin v1.x content { - "field-second": "seconde", - "field-year-relative+-1": "l’année dernière", - "field-week": "semaine", - "field-month-relative+-1": "le mois dernier", + "field-sat-relative+0": "ce samedi", + "field-sat-relative+1": "samedi prochain", + "field-dayperiod": "cadran", + "field-sun-relative+-1": "dimanche dernier", + "field-mon-relative+-1": "lundi dernier", + "field-minute": "minute", "field-day-relative+-1": "hier", + "field-weekday": "jour de la semaine", "field-day-relative+-2": "avant-hier", - "field-year": "année", - "field-week-relative+0": "cette semaine", - "field-week-relative+1": "la semaine prochaine", - "field-minute": "minute", - "field-week-relative+-1": "la semaine dernière", - "field-day-relative+0": "aujourd’hui", + "field-era": "ère", "field-hour": "heure", + "field-sun-relative+0": "ce dimanche", + "field-sun-relative+1": "dimanche prochain", + "field-wed-relative+-1": "mercredi dernier", + "field-day-relative+0": "aujourd’hui", "field-day-relative+1": "demain", "field-day-relative+2": "après-demain", - "field-day": "jour", - "field-month-relative+0": "ce mois-ci", - "field-month-relative+1": "le mois prochain", - "field-dayperiod": "cadran", - "field-month": "mois", - "field-era": "ère", + "field-tue-relative+0": "ce mardi", + "field-zone": "fuseau horaire", + "field-tue-relative+1": "mardi prochain", + "field-week-relative+-1": "la semaine dernière", "field-year-relative+0": "cette année", "field-year-relative+1": "l’année prochaine", - "field-weekday": "jour de la semaine", - "field-zone": "fuseau horaire" + "field-sat-relative+-1": "samedi dernier", + "field-year-relative+-1": "l’année dernière", + "field-year": "année", + "field-fri-relative+0": "ce vendredi", + "field-fri-relative+1": "vendredi prochain", + "field-week": "semaine", + "field-week-relative+0": "cette semaine", + "field-week-relative+1": "la semaine prochaine", + "field-month-relative+0": "ce mois-ci", + "field-month": "mois", + "field-month-relative+1": "le mois prochain", + "field-fri-relative+-1": "vendredi dernier", + "field-second": "seconde", + "field-tue-relative+-1": "mardi dernier", + "field-day": "jour", + "field-mon-relative+0": "ce lundi", + "field-mon-relative+1": "lundi prochain", + "field-thu-relative+0": "ce jeudi", + "field-second-relative+0": "maintenant", + "field-thu-relative+1": "jeudi prochain", + "field-wed-relative+0": "ce mercredi", + "field-wed-relative+1": "mercredi prochain", + "field-month-relative+-1": "le mois dernier", + "field-thu-relative+-1": "jeudi dernier" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/fr/currency.js b/cldr/nls/fr/currency.js index bfdd768a6d..6561fbfdd0 100644 --- a/cldr/nls/fr/currency.js +++ b/cldr/nls/fr/currency.js @@ -15,7 +15,7 @@ define( "EUR_symbol": "€", "CNY_symbol": "¥CN", "GBP_displayName": "livre sterling", - "GBP_symbol": "£UK", + "GBP_symbol": "£GB", "AUD_symbol": "$AU", "EUR_displayName": "euro" } diff --git a/cldr/nls/fr/dangi.js b/cldr/nls/fr/dangi.js new file mode 100644 index 0000000000..1585f11fb2 --- /dev/null +++ b/cldr/nls/fr/dangi.js @@ -0,0 +1,113 @@ +define( +//begin v1.x content +{ + "field-sat-relative+0": "ce samedi", + "field-sat-relative+1": "samedi prochain", + "field-dayperiod": "cadran", + "field-sun-relative+-1": "dimanche dernier", + "field-mon-relative+-1": "lundi dernier", + "field-minute": "minute", + "field-day-relative+-1": "hier", + "field-weekday": "jour de la semaine", + "field-day-relative+-2": "avant-hier", + "field-era": "ère", + "field-hour": "heure", + "field-sun-relative+0": "ce dimanche", + "field-sun-relative+1": "dimanche prochain", + "months-standAlone-abbr": [ + "1yuè", + "2yuè", + "3yuè", + "4yuè", + "5yuè", + "6yuè", + "7yuè", + "8yuè", + "9yuè", + "10yuè", + "11yuè", + "12yuè" + ], + "field-wed-relative+-1": "mercredi dernier", + "field-day-relative+0": "aujourd’hui", + "field-day-relative+1": "demain", + "field-day-relative+2": "après-demain", + "dateFormat-long": "d MMMM U", + "field-tue-relative+0": "ce mardi", + "field-zone": "fuseau horaire", + "field-tue-relative+1": "mardi prochain", + "field-week-relative+-1": "la semaine dernière", + "dateFormat-medium": "d MMM U", + "field-year-relative+0": "cette année", + "field-year-relative+1": "l’année prochaine", + "field-sat-relative+-1": "samedi dernier", + "field-year-relative+-1": "l’année dernière", + "field-year": "année", + "field-fri-relative+0": "ce vendredi", + "field-fri-relative+1": "vendredi prochain", + "months-standAlone-wide": [ + "zhēngyuè", + "èryuè", + "sānyuè", + "sìyuè", + "wǔyuè", + "liùyuè", + "qīyuè", + "bāyuè", + "jiǔyuè", + "shíyuè", + "shíyīyuè", + "shí’èryuè" + ], + "field-week": "semaine", + "field-week-relative+0": "cette semaine", + "field-week-relative+1": "la semaine prochaine", + "months-format-abbr": [ + "1yuè", + "2yuè", + "3yuè", + "4yuè", + "5yuè", + "6yuè", + "7yuè", + "8yuè", + "9yuè", + "10yuè", + "11yuè", + "12yuè" + ], + "field-month-relative+0": "ce mois-ci", + "field-month": "mois", + "field-month-relative+1": "le mois prochain", + "field-fri-relative+-1": "vendredi dernier", + "field-second": "seconde", + "field-tue-relative+-1": "mardi dernier", + "field-day": "jour", + "field-mon-relative+0": "ce lundi", + "field-mon-relative+1": "lundi prochain", + "field-thu-relative+0": "ce jeudi", + "field-second-relative+0": "maintenant", + "dateFormat-short": "d/M/y", + "field-thu-relative+1": "jeudi prochain", + "dateFormat-full": "EEEE d MMMM U", + "months-format-wide": [ + "zhēngyuè", + "èryuè", + "sānyuè", + "sìyuè", + "wǔyuè", + "liùyuè", + "qīyuè", + "bāyuè", + "jiǔyuè", + "shíyuè", + "shíyīyuè", + "shí’èryuè" + ], + "field-wed-relative+0": "ce mercredi", + "field-wed-relative+1": "mercredi prochain", + "field-month-relative+-1": "le mois dernier", + "field-thu-relative+-1": "jeudi dernier" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/fr/ethiopic.js b/cldr/nls/fr/ethiopic.js index e38da0f3a8..fe050acaad 100644 --- a/cldr/nls/fr/ethiopic.js +++ b/cldr/nls/fr/ethiopic.js @@ -1,31 +1,53 @@ define( //begin v1.x content { - "field-second": "seconde", - "field-year-relative+-1": "l’année dernière", - "field-week": "semaine", - "field-month-relative+-1": "le mois dernier", + "field-sat-relative+0": "ce samedi", + "field-sat-relative+1": "samedi prochain", + "field-dayperiod": "cadran", + "field-sun-relative+-1": "dimanche dernier", + "field-mon-relative+-1": "lundi dernier", + "field-minute": "minute", "field-day-relative+-1": "hier", + "field-weekday": "jour de la semaine", "field-day-relative+-2": "avant-hier", - "field-year": "année", - "field-week-relative+0": "cette semaine", - "field-week-relative+1": "la semaine prochaine", - "field-minute": "minute", - "field-week-relative+-1": "la semaine dernière", - "field-day-relative+0": "aujourd’hui", + "field-era": "ère", "field-hour": "heure", + "field-sun-relative+0": "ce dimanche", + "field-sun-relative+1": "dimanche prochain", + "field-wed-relative+-1": "mercredi dernier", + "field-day-relative+0": "aujourd’hui", "field-day-relative+1": "demain", "field-day-relative+2": "après-demain", - "field-day": "jour", - "field-month-relative+0": "ce mois-ci", - "field-month-relative+1": "le mois prochain", - "field-dayperiod": "cadran", - "field-month": "mois", - "field-era": "ère", + "field-tue-relative+0": "ce mardi", + "field-zone": "fuseau horaire", + "field-tue-relative+1": "mardi prochain", + "field-week-relative+-1": "la semaine dernière", "field-year-relative+0": "cette année", "field-year-relative+1": "l’année prochaine", - "field-weekday": "jour de la semaine", - "field-zone": "fuseau horaire" + "field-sat-relative+-1": "samedi dernier", + "field-year-relative+-1": "l’année dernière", + "field-year": "année", + "field-fri-relative+0": "ce vendredi", + "field-fri-relative+1": "vendredi prochain", + "field-week": "semaine", + "field-week-relative+0": "cette semaine", + "field-week-relative+1": "la semaine prochaine", + "field-month-relative+0": "ce mois-ci", + "field-month": "mois", + "field-month-relative+1": "le mois prochain", + "field-fri-relative+-1": "vendredi dernier", + "field-second": "seconde", + "field-tue-relative+-1": "mardi dernier", + "field-day": "jour", + "field-mon-relative+0": "ce lundi", + "field-mon-relative+1": "lundi prochain", + "field-thu-relative+0": "ce jeudi", + "field-second-relative+0": "maintenant", + "field-thu-relative+1": "jeudi prochain", + "field-wed-relative+0": "ce mercredi", + "field-wed-relative+1": "mercredi prochain", + "field-month-relative+-1": "le mois dernier", + "field-thu-relative+-1": "jeudi dernier" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/fr/generic.js b/cldr/nls/fr/generic.js index 5709c1a7a2..5446cafe28 100644 --- a/cldr/nls/fr/generic.js +++ b/cldr/nls/fr/generic.js @@ -1,69 +1,91 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E d MMM y G", - "field-dayperiod": "cadran", - "field-minute": "minute", - "dateFormatItem-MMMEd": "E d MMM", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "hier", - "dateFormatItem-hms": "h:mm:ss a", - "field-day-relative+-2": "avant-hier", + "field-second-relative+0": "maintenant", "field-weekday": "jour de la semaine", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "y G", + "field-wed-relative+0": "ce mercredi", + "field-wed-relative+1": "mercredi prochain", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "mardi dernier", + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "vendredi dernier", + "field-wed-relative+-1": "mercredi dernier", + "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", + "field-thu-relative+-1": "jeudi dernier", + "dateFormatItem-Md": "d/M", "field-era": "ère", + "field-year": "année", + "dateFormatItem-yyyyMMMM": "MMMM y G", "field-hour": "heure", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E d", + "field-sat-relative+0": "ce samedi", + "field-sat-relative+1": "samedi prochain", "field-day-relative+0": "aujourd’hui", "field-day-relative+1": "demain", - "field-day-relative+2": "après-demain", + "field-thu-relative+0": "ce jeudi", "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormatItem-yyyyMMMM": "MMMM y G", - "dateFormat-long": "d MMMM y G", - "field-zone": "fuseau horaire", + "field-day-relative+2": "après-demain", + "field-thu-relative+1": "jeudi prochain", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "field-sun-relative+0": "ce dimanche", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "la semaine dernière", - "dateFormat-medium": "d MMM y G", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "cette année", - "field-year-relative+1": "l’année prochaine", - "field-year-relative+-1": "l’année dernière", + "field-sun-relative+1": "dimanche prochain", + "field-minute": "minute", + "field-dayperiod": "cadran", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "field-year": "année", - "dateTimeFormat-long": "{1} {0}", - "field-week": "semaine", - "dateFormatItem-yyyyMd": "d/M/y GGGGG", - "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", + "field-day-relative+-1": "hier", + "dateFormatItem-h": "h a", + "dateTimeFormat-long": "{1} 'à' {0}", + "field-day-relative+-2": "avant-hier", "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "cette semaine", - "field-week-relative+1": "la semaine prochaine", - "field-month-relative+0": "ce mois-ci", - "dateFormatItem-H": "HH", - "field-month": "mois", - "field-month-relative+1": "le mois prochain", - "dateFormatItem-M": "L", - "field-second": "seconde", - "dateFormatItem-GyMMMEd": "E d MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "jour", "dateFormatItem-MEd": "E d/M", - "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-full": "{1} 'à' {0}", + "field-fri-relative+0": "ce vendredi", + "field-fri-relative+1": "vendredi prochain", + "field-day": "jour", + "field-zone": "fuseau horaire", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "l’année dernière", + "field-month-relative+-1": "le mois dernier", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "d/M/y GGGGG", + "field-month": "mois", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "ce mardi", + "field-tue-relative+1": "mardi prochain", + "field-mon-relative+0": "ce lundi", + "field-mon-relative+1": "lundi prochain", "dateFormat-short": "dd/MM/y GGGGG", + "field-second": "seconde", + "field-sat-relative+-1": "samedi dernier", + "field-sun-relative+-1": "dimanche dernier", + "field-month-relative+0": "ce mois-ci", + "field-month-relative+1": "le mois prochain", + "dateFormatItem-Ed": "E d", + "field-week": "semaine", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "cette année", + "field-week-relative+-1": "la semaine dernière", "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormat-full": "EEEE d MMMM y G", - "dateFormatItem-Md": "d/M", - "dateFormatItem-yyyyMMM": "MMM y G", - "dateFormatItem-d": "d", - "field-month-relative+-1": "le mois dernier", - "dateFormatItem-h": "h a" + "field-year-relative+1": "l’année prochaine", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "lundi dernier", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "cette semaine", + "field-week-relative+1": "la semaine prochaine" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/fr/gregorian.js b/cldr/nls/fr/gregorian.js index 6ab4cc8f07..acba23eecb 100644 --- a/cldr/nls/fr/gregorian.js +++ b/cldr/nls/fr/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "dim.", "lun.", @@ -24,6 +25,7 @@ define( "N", "D" ], + "field-second-relative+0": "maintenant", "quarters-standAlone-narrow": [ "1", "2", @@ -33,12 +35,17 @@ define( "field-weekday": "jour de la semaine", "dateFormatItem-yQQQ": "QQQ y", "dateFormatItem-yMEd": "E d/M/y", + "field-wed-relative+0": "ce mercredi", + "field-wed-relative+1": "mercredi prochain", "dateFormatItem-GyMMMEd": "E d MMM y G", "dateFormatItem-MMMEd": "E d MMM", "eraNarrow": [ "av. J.-C.", - "ap. J.-C." + "ap. J.-C.", + "ap. J.-C.", + "EC" ], + "field-tue-relative+-1": "mardi dernier", "dayPeriods-format-wide-morning": "matin", "days-format-short": [ "di", @@ -50,6 +57,8 @@ define( "sa" ], "dateFormat-long": "d MMMM y", + "field-fri-relative+-1": "vendredi dernier", + "field-wed-relative+-1": "mercredi dernier", "months-format-wide": [ "janvier", "février", @@ -67,6 +76,7 @@ define( "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "EEEE d MMMM y", + "field-thu-relative+-1": "jeudi dernier", "dateFormatItem-Md": "d/M", "dayPeriods-format-abbr-am": "AM", "dayPeriods-format-wide-noon": "midi", @@ -113,13 +123,17 @@ define( "nov.", "déc." ], + "field-sat-relative+0": "ce samedi", + "field-sat-relative+1": "samedi prochain", "timeFormat-full": "HH:mm:ss zzzz", "dayPeriods-format-narrow-morning": "matin", "field-day-relative+0": "aujourd’hui", + "field-thu-relative+0": "ce jeudi", "field-day-relative+1": "demain", + "field-thu-relative+1": "jeudi prochain", "dateFormatItem-GyMMMd": "d MMM y G", "field-day-relative+2": "après-demain", - "dateFormatItem-H": "HH", + "dateFormatItem-H": "HH 'h'", "months-standAlone-abbr": [ "janv.", "févr.", @@ -158,7 +172,9 @@ define( "samedi" ], "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "ce dimanche", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "dimanche prochain", "quarters-standAlone-abbr": [ "T1", "T2", @@ -167,7 +183,9 @@ define( ], "eraAbbr": [ "av. J.-C.", - "ap. J.-C." + "AEC", + "ap. J.-C.", + "EC" ], "field-minute": "minute", "field-dayperiod": "cadran", @@ -196,7 +214,9 @@ define( "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E d/M", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "ce vendredi", "dateFormatItem-yMMMM": "MMMM y", + "field-fri-relative+1": "vendredi prochain", "field-day": "jour", "days-format-wide": [ "dimanche", @@ -237,11 +257,13 @@ define( "ven.", "sam." ], - "dateFormatItem-yMMMd": "d MMM y", "eraNames": [ "avant Jésus-Christ", - "après Jésus-Christ" + "après Jésus-Christ", + "ap. J.-C.", + "EC" ], + "dateFormatItem-yMMMd": "d MMM y", "days-format-narrow": [ "D", "L", @@ -262,15 +284,25 @@ define( ], "dateFormatItem-MMM": "LLL", "field-month": "mois", + "field-tue-relative+0": "ce mardi", + "field-tue-relative+1": "mardi prochain", "dayPeriods-format-wide-am": "AM", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "ce lundi", + "field-mon-relative+1": "lundi prochain", "dateFormat-short": "dd/MM/y", "dayPeriods-format-wide-afternoon": "après-midi", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", "dayPeriods-format-narrow-noon": "midi", "field-second": "seconde", + "field-sat-relative+-1": "samedi dernier", "dateFormatItem-yMMMEd": "E d MMM y", + "field-sun-relative+-1": "dimanche dernier", "field-month-relative+0": "ce mois-ci", "field-month-relative+1": "le mois prochain", "dateFormatItem-Ed": "E d", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "semaine", "dateFormat-medium": "d MMM y", "field-year-relative+0": "cette année", @@ -281,6 +313,7 @@ define( "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "lundi dernier", "field-week-relative+0": "cette semaine", "field-week-relative+1": "la semaine prochaine" } diff --git a/cldr/nls/fr/hebrew.js b/cldr/nls/fr/hebrew.js index 68e02ead71..75fbdb9e31 100644 --- a/cldr/nls/fr/hebrew.js +++ b/cldr/nls/fr/hebrew.js @@ -1,34 +1,35 @@ define( //begin v1.x content { - "field-dayperiod": "cadran", - "dateFormatItem-yyyyMMMEd": "E d MMM y G", - "field-minute": "minute", - "dateFormatItem-MMMEd": "E d MMM", - "field-day-relative+-1": "hier", - "field-weekday": "jour de la semaine", - "field-day-relative+-2": "avant-hier", - "days-standAlone-wide": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" + "days-standAlone-short": [ + "dim.", + "lun.", + "mar.", + "mer.", + "jeu.", + "ven.", + "sam." ], - "field-era": "ère", - "dateFormatItem-Gy": "y G", - "field-hour": "heure", - "quarters-standAlone-abbr": [ - "T1", - "T2", - "T3", - "T4" + "field-second-relative+0": "maintenant", + "field-weekday": "jour de la semaine", + "field-wed-relative+0": "ce mercredi", + "field-wed-relative+1": "mercredi prochain", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "mardi dernier", + "days-format-short": [ + "di", + "lu", + "ma", + "me", + "je", + "ve", + "sa" ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "vendredi dernier", + "field-wed-relative+-1": "mercredi dernier", + "months-format-wide": [ "Tisseri", "Hesvan", "Kislev", @@ -43,37 +44,37 @@ define( "Ab", "Elloul" ], - "dateFormatItem-Ed": "E d", - "field-day-relative+0": "aujourd’hui", - "field-day-relative+1": "demain", - "days-standAlone-narrow": [ - "D", - "L", - "M", - "M", - "J", - "V", - "S" + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", + "field-thu-relative+-1": "jeudi dernier", + "dateFormatItem-Md": "d/M", + "dayPeriods-format-wide-noon": "midi", + "field-era": "ère", + "months-standAlone-wide": [ + "Tisseri", + "Hesvan", + "Kislev", + "Tébeth", + "Schébat", + "Adar I", + "Adar", + "Nissan", + "Iyar", + "Sivan", + "Tamouz", + "Ab", + "Elloul" ], - "field-day-relative+2": "après-demain", - "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormat-long": "d MMMM y G", - "field-zone": "fuseau horaire", - "field-week-relative+-1": "la semaine dernière", - "dateFormat-medium": "d MMM y G", - "dayPeriods-format-narrow-pm": "p", - "field-year-relative+0": "cette année", - "field-year-relative+1": "l’année prochaine", - "quarters-standAlone-wide": [ + "quarters-format-wide": [ "1er trimestre", "2e trimestre", "3e trimestre", "4e trimestre" ], - "field-year-relative+-1": "l’année dernière", "field-year": "année", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "months-standAlone-wide": [ + "field-hour": "heure", + "months-format-abbr": [ "Tisseri", "Hesvan", "Kislev", @@ -88,14 +89,15 @@ define( "Ab", "Elloul" ], - "field-week": "semaine", - "dateFormatItem-yyyyMd": "d/M/y GGGGG", - "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "cette semaine", - "field-week-relative+1": "la semaine prochaine", - "months-format-abbr": [ + "field-sat-relative+0": "ce samedi", + "field-sat-relative+1": "samedi prochain", + "field-day-relative+0": "aujourd’hui", + "field-thu-relative+0": "ce jeudi", + "field-day-relative+1": "demain", + "field-thu-relative+1": "jeudi prochain", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "après-demain", + "months-standAlone-abbr": [ "Tisseri", "Hesvan", "Kislev", @@ -110,15 +112,73 @@ define( "Ab", "Elloul" ], - "field-month-relative+0": "ce mois-ci", - "field-month": "mois", - "field-month-relative+1": "le mois prochain", "quarters-format-abbr": [ "T1", "T2", "T3", "T4" ], + "quarters-standAlone-wide": [ + "1er trimestre", + "2e trimestre", + "3e trimestre", + "4e trimestre" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "days-standAlone-wide": [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi" + ], + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "months-standAlone-wide-leap": "Adar II", + "field-sun-relative+0": "ce dimanche", + "field-sun-relative+1": "dimanche prochain", + "quarters-standAlone-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], + "field-minute": "minute", + "field-dayperiod": "cadran", + "days-standAlone-abbr": [ + "dim.", + "lun.", + "mar.", + "mer.", + "jeu.", + "ven.", + "sam." + ], + "field-day-relative+-1": "hier", + "dateTimeFormat-long": "{1} 'à' {0}", + "field-day-relative+-2": "avant-hier", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E d/M", + "dateTimeFormat-full": "{1} 'à' {0}", + "field-fri-relative+0": "ce vendredi", + "field-fri-relative+1": "vendredi prochain", + "field-day": "jour", + "days-format-wide": [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi" + ], + "field-zone": "fuseau horaire", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "l’année dernière", + "field-month-relative+-1": "le mois dernier", "days-format-abbr": [ "dim.", "lun.", @@ -137,76 +197,42 @@ define( "V", "S" ], - "field-second": "seconde", - "dateFormatItem-GyMMMEd": "E d MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "jour", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E d/M", - "days-standAlone-short": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "days-standAlone-abbr": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." + "dateFormatItem-yyyyMd": "d/M/y GGGGG", + "field-month": "mois", + "days-standAlone-narrow": [ + "D", + "L", + "M", + "M", + "J", + "V", + "S" ], + "field-tue-relative+0": "ce mardi", + "field-tue-relative+1": "mardi prochain", + "field-mon-relative+0": "ce lundi", + "field-mon-relative+1": "lundi prochain", "dateFormat-short": "dd/MM/y GGGGG", + "dayPeriods-format-narrow-noon": "midi", + "field-second": "seconde", + "field-sat-relative+-1": "samedi dernier", + "field-sun-relative+-1": "dimanche dernier", + "field-month-relative+0": "ce mois-ci", + "field-month-relative+1": "le mois prochain", + "dateFormatItem-Ed": "E d", + "field-week": "semaine", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "cette année", + "field-week-relative+-1": "la semaine dernière", "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormatItem-Md": "d/M", - "dateFormat-full": "EEEE d MMMM y G", - "months-format-wide": [ - "Tisseri", - "Hesvan", - "Kislev", - "Tébeth", - "Schébat", - "Adar I", - "Adar", - "Nissan", - "Iyar", - "Sivan", - "Tamouz", - "Ab", - "Elloul" - ], - "days-format-short": [ - "di", - "lu", - "ma", - "me", - "je", - "ve", - "sa" - ], - "dateFormatItem-yyyyMMM": "MMM y G", + "field-year-relative+1": "l’année prochaine", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", "months-format-wide-leap": "Adar II", - "field-month-relative+-1": "le mois dernier", - "quarters-format-wide": [ - "1er trimestre", - "2e trimestre", - "3e trimestre", - "4e trimestre" - ], - "days-format-wide": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ] + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "lundi dernier", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "cette semaine", + "field-week-relative+1": "la semaine prochaine" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/fr/indian.js b/cldr/nls/fr/indian.js index e38da0f3a8..fe050acaad 100644 --- a/cldr/nls/fr/indian.js +++ b/cldr/nls/fr/indian.js @@ -1,31 +1,53 @@ define( //begin v1.x content { - "field-second": "seconde", - "field-year-relative+-1": "l’année dernière", - "field-week": "semaine", - "field-month-relative+-1": "le mois dernier", + "field-sat-relative+0": "ce samedi", + "field-sat-relative+1": "samedi prochain", + "field-dayperiod": "cadran", + "field-sun-relative+-1": "dimanche dernier", + "field-mon-relative+-1": "lundi dernier", + "field-minute": "minute", "field-day-relative+-1": "hier", + "field-weekday": "jour de la semaine", "field-day-relative+-2": "avant-hier", - "field-year": "année", - "field-week-relative+0": "cette semaine", - "field-week-relative+1": "la semaine prochaine", - "field-minute": "minute", - "field-week-relative+-1": "la semaine dernière", - "field-day-relative+0": "aujourd’hui", + "field-era": "ère", "field-hour": "heure", + "field-sun-relative+0": "ce dimanche", + "field-sun-relative+1": "dimanche prochain", + "field-wed-relative+-1": "mercredi dernier", + "field-day-relative+0": "aujourd’hui", "field-day-relative+1": "demain", "field-day-relative+2": "après-demain", - "field-day": "jour", - "field-month-relative+0": "ce mois-ci", - "field-month-relative+1": "le mois prochain", - "field-dayperiod": "cadran", - "field-month": "mois", - "field-era": "ère", + "field-tue-relative+0": "ce mardi", + "field-zone": "fuseau horaire", + "field-tue-relative+1": "mardi prochain", + "field-week-relative+-1": "la semaine dernière", "field-year-relative+0": "cette année", "field-year-relative+1": "l’année prochaine", - "field-weekday": "jour de la semaine", - "field-zone": "fuseau horaire" + "field-sat-relative+-1": "samedi dernier", + "field-year-relative+-1": "l’année dernière", + "field-year": "année", + "field-fri-relative+0": "ce vendredi", + "field-fri-relative+1": "vendredi prochain", + "field-week": "semaine", + "field-week-relative+0": "cette semaine", + "field-week-relative+1": "la semaine prochaine", + "field-month-relative+0": "ce mois-ci", + "field-month": "mois", + "field-month-relative+1": "le mois prochain", + "field-fri-relative+-1": "vendredi dernier", + "field-second": "seconde", + "field-tue-relative+-1": "mardi dernier", + "field-day": "jour", + "field-mon-relative+0": "ce lundi", + "field-mon-relative+1": "lundi prochain", + "field-thu-relative+0": "ce jeudi", + "field-second-relative+0": "maintenant", + "field-thu-relative+1": "jeudi prochain", + "field-wed-relative+0": "ce mercredi", + "field-wed-relative+1": "mercredi prochain", + "field-month-relative+-1": "le mois dernier", + "field-thu-relative+-1": "jeudi dernier" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/fr/islamic.js b/cldr/nls/fr/islamic.js index 2cfe26d0d3..2da737b42c 100644 --- a/cldr/nls/fr/islamic.js +++ b/cldr/nls/fr/islamic.js @@ -1,23 +1,16 @@ define( //begin v1.x content { - "field-dayperiod": "cadran", - "dateFormatItem-yyyyMMMEd": "E d MMM y G", - "field-minute": "minute", - "dateFormatItem-MMMEd": "E d MMM", - "field-day-relative+-1": "hier", - "field-weekday": "jour de la semaine", - "field-day-relative+-2": "avant-hier", - "days-standAlone-wide": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" + "days-standAlone-short": [ + "dim.", + "lun.", + "mar.", + "mer.", + "jeu.", + "ven.", + "sam." ], - "months-standAlone-narrow": [ + "months-format-narrow": [ "1", "2", "3", @@ -31,64 +24,46 @@ define( "11", "12" ], - "field-era": "ère", - "dateFormatItem-Gy": "y G", - "field-hour": "heure", - "quarters-standAlone-abbr": [ - "T1", - "T2", - "T3", - "T4" - ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ - "mouh.", - "saf.", - "rab.aw.", - "rab.th.", - "joum.ou.", - "joum.th.", - "raj.", - "chaa.", - "ram.", - "chaw.", - "dhou.qi.", - "dhou.hi." - ], - "dateFormatItem-Ed": "E d", - "field-day-relative+0": "aujourd’hui", - "field-day-relative+1": "demain", - "days-standAlone-narrow": [ - "D", - "L", - "M", - "M", - "J", - "V", - "S" - ], - "eraAbbr": [ - "AH" + "field-second-relative+0": "maintenant", + "field-weekday": "jour de la semaine", + "field-wed-relative+0": "ce mercredi", + "field-wed-relative+1": "mercredi prochain", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "mardi dernier", + "days-format-short": [ + "di", + "lu", + "ma", + "me", + "je", + "ve", + "sa" ], - "field-day-relative+2": "après-demain", - "dateFormatItem-GyMMMd": "d MMM y G", "dateFormat-long": "d MMMM y G", - "field-zone": "fuseau horaire", - "field-week-relative+-1": "la semaine dernière", - "dateFormat-medium": "d MMM y G", - "dayPeriods-format-narrow-pm": "p", - "field-year-relative+0": "cette année", - "field-year-relative+1": "l’année prochaine", - "quarters-standAlone-wide": [ - "1er trimestre", - "2e trimestre", - "3e trimestre", - "4e trimestre" + "field-fri-relative+-1": "vendredi dernier", + "field-wed-relative+-1": "mercredi dernier", + "months-format-wide": [ + "mouharram", + "safar", + "rabia al awal", + "rabia ath-thani", + "joumada al oula", + "joumada ath-thania", + "rajab", + "chaabane", + "ramadan", + "chawwal", + "dhou al qi`da", + "dhou al-hijja" ], - "field-year-relative+-1": "l’année dernière", - "field-year": "année", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", + "field-thu-relative+-1": "jeudi dernier", + "dateFormatItem-Md": "dd/MM", + "dayPeriods-format-wide-noon": "midi", + "field-era": "ère", "months-standAlone-wide": [ "mouharram", "safar", @@ -103,37 +78,91 @@ define( "dhou al qi`da", "dhou al-hijja" ], - "field-week": "semaine", - "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMd": "d/M/y GGGGG", - "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", - "field-week-relative+0": "cette semaine", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+1": "la semaine prochaine", + "quarters-format-wide": [ + "1er trimestre", + "2e trimestre", + "3e trimestre", + "4e trimestre" + ], + "field-year": "année", + "dateFormatItem-yyyyMMMM": "MMMM y G", + "field-hour": "heure", "months-format-abbr": [ "mouh.", "saf.", - "rab.aw.", - "rab.th.", - "joum.oul.", - "joum.tha.", + "rab. aw.", + "rab. th.", + "joum. oul.", + "joum. tha.", "raj.", "chaa.", "ram.", "chaw.", - "dhou.q.", - "dhou.h." + "dhou. q.", + "dhou. h." + ], + "field-sat-relative+0": "ce samedi", + "field-sat-relative+1": "samedi prochain", + "field-day-relative+0": "aujourd’hui", + "field-thu-relative+0": "ce jeudi", + "field-day-relative+1": "demain", + "field-thu-relative+1": "jeudi prochain", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "après-demain", + "months-standAlone-abbr": [ + "mouh.", + "saf.", + "rab. aw.", + "rab. th.", + "joum. ou.", + "joum. th.", + "raj.", + "chaa.", + "ram.", + "chaw.", + "dhou. qi.", + "dhou. hi." ], - "field-month-relative+0": "ce mois-ci", - "field-month": "mois", - "field-month-relative+1": "le mois prochain", "quarters-format-abbr": [ "T1", "T2", "T3", "T4" ], - "days-format-abbr": [ + "quarters-standAlone-wide": [ + "1er trimestre", + "2e trimestre", + "3e trimestre", + "4e trimestre" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "dateFormatItem-M": "L", + "days-standAlone-wide": [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi" + ], + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "field-sun-relative+0": "ce dimanche", + "field-sun-relative+1": "dimanche prochain", + "quarters-standAlone-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], + "eraAbbr": [ + "AH" + ], + "field-minute": "minute", + "field-dayperiod": "cadran", + "days-standAlone-abbr": [ "dim.", "lun.", "mar.", @@ -142,22 +171,28 @@ define( "ven.", "sam." ], - "days-format-narrow": [ - "D", - "L", - "M", - "M", - "J", - "V", - "S" - ], - "field-second": "seconde", - "dateFormatItem-GyMMMEd": "E d MMM y G", - "dateFormatItem-GyMMM": "MMM y G", + "dateFormatItem-d": "d", + "field-day-relative+-1": "hier", + "dateTimeFormat-long": "{1} 'à' {0}", + "field-day-relative+-2": "avant-hier", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E dd/MM", + "dateTimeFormat-full": "{1} 'à' {0}", + "field-fri-relative+0": "ce vendredi", + "field-fri-relative+1": "vendredi prochain", "field-day": "jour", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E d/M", - "months-format-narrow": [ + "days-format-wide": [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi" + ], + "field-zone": "fuseau horaire", + "dateFormatItem-y": "y G", + "months-standAlone-narrow": [ "1", "2", "3", @@ -171,7 +206,9 @@ define( "11", "12" ], - "days-standAlone-short": [ + "field-year-relative+-1": "l’année dernière", + "field-month-relative+-1": "le mois dernier", + "days-format-abbr": [ "dim.", "lun.", "mar.", @@ -180,59 +217,51 @@ define( "ven.", "sam." ], - "days-standAlone-abbr": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." + "days-format-narrow": [ + "D", + "L", + "M", + "M", + "J", + "V", + "S" ], + "dateFormatItem-yyyyMd": "d/M/y GGGGG", + "field-month": "mois", + "dateFormatItem-MMM": "LLL", + "days-standAlone-narrow": [ + "D", + "L", + "M", + "M", + "J", + "V", + "S" + ], + "field-tue-relative+0": "ce mardi", + "field-tue-relative+1": "mardi prochain", + "field-mon-relative+0": "ce lundi", + "field-mon-relative+1": "lundi prochain", "dateFormat-short": "dd/MM/y GGGGG", + "dayPeriods-format-narrow-noon": "midi", + "field-second": "seconde", + "field-sat-relative+-1": "samedi dernier", + "field-sun-relative+-1": "dimanche dernier", + "field-month-relative+0": "ce mois-ci", + "field-month-relative+1": "le mois prochain", + "dateFormatItem-Ed": "E d", + "field-week": "semaine", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "cette année", + "field-week-relative+-1": "la semaine dernière", "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormat-full": "EEEE d MMMM y G", - "dateFormatItem-Md": "d/M", - "months-format-wide": [ - "mouharram", - "safar", - "rabia al awal", - "rabia ath-thani", - "joumada al oula", - "joumada ath-thania", - "rajab", - "chaabane", - "ramadan", - "chawwal", - "dhou al qi`da", - "dhou al-hijja" - ], - "days-format-short": [ - "di", - "lu", - "ma", - "me", - "je", - "ve", - "sa" - ], - "dateFormatItem-yyyyMMM": "MMM y G", - "field-month-relative+-1": "le mois dernier", - "quarters-format-wide": [ - "1er trimestre", - "2e trimestre", - "3e trimestre", - "4e trimestre" - ], - "days-format-wide": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ] + "field-year-relative+1": "l’année prochaine", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "lundi dernier", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "cette semaine", + "field-week-relative+1": "la semaine prochaine" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/fr/japanese.js b/cldr/nls/fr/japanese.js index e2873912c5..09598abc25 100644 --- a/cldr/nls/fr/japanese.js +++ b/cldr/nls/fr/japanese.js @@ -1,35 +1,84 @@ define( //begin v1.x content { - "dateFormat-medium": "d MMM y G", - "field-second": "seconde", - "field-year-relative+-1": "l’année dernière", - "field-week": "semaine", - "field-month-relative+-1": "le mois dernier", - "field-day-relative+-1": "hier", - "field-day-relative+-2": "avant-hier", + "field-second-relative+0": "maintenant", + "field-weekday": "jour de la semaine", + "field-wed-relative+0": "ce mercredi", + "field-wed-relative+1": "mercredi prochain", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "mardi dernier", + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "vendredi dernier", + "field-wed-relative+-1": "mercredi dernier", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", + "field-thu-relative+-1": "jeudi dernier", + "dateFormatItem-Md": "d/M", + "field-era": "ère", "field-year": "année", - "field-week-relative+0": "cette semaine", - "field-week-relative+1": "la semaine prochaine", - "field-minute": "minute", - "field-week-relative+-1": "la semaine dernière", - "field-day-relative+0": "aujourd’hui", + "dateFormatItem-yyyyMMMM": "MMMM y G", "field-hour": "heure", + "field-sat-relative+0": "ce samedi", + "field-sat-relative+1": "samedi prochain", + "field-day-relative+0": "aujourd’hui", + "field-thu-relative+0": "ce jeudi", "field-day-relative+1": "demain", - "dateFormat-long": "d MMMM y G", + "field-thu-relative+1": "jeudi prochain", + "dateFormatItem-GyMMMd": "d MMM y G", "field-day-relative+2": "après-demain", - "field-day": "jour", - "field-month-relative+0": "ce mois-ci", - "field-month-relative+1": "le mois prochain", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "field-sun-relative+0": "ce dimanche", + "field-sun-relative+1": "dimanche prochain", + "field-minute": "minute", "field-dayperiod": "cadran", + "dateFormatItem-d": "d", + "field-day-relative+-1": "hier", + "dateTimeFormat-long": "{1} {0}", + "field-day-relative+-2": "avant-hier", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E d/M", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "ce vendredi", + "field-fri-relative+1": "vendredi prochain", + "field-day": "jour", + "field-zone": "fuseau horaire", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "l’année dernière", + "field-month-relative+-1": "le mois dernier", + "dateFormatItem-yyyyMd": "d/M/y GGGGG", "field-month": "mois", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "ce mardi", + "field-tue-relative+1": "mardi prochain", + "field-mon-relative+0": "ce lundi", + "field-mon-relative+1": "lundi prochain", "dateFormat-short": "dd/MM/y GGGGG", - "field-era": "ère", + "field-second": "seconde", + "field-sat-relative+-1": "samedi dernier", + "field-sun-relative+-1": "dimanche dernier", + "field-month-relative+0": "ce mois-ci", + "field-month-relative+1": "le mois prochain", + "dateFormatItem-Ed": "E d", + "field-week": "semaine", + "dateFormat-medium": "d MMM y G", "field-year-relative+0": "cette année", + "field-week-relative+-1": "la semaine dernière", + "dateFormatItem-yyyyM": "M/y GGGGG", "field-year-relative+1": "l’année prochaine", - "dateFormat-full": "EEEE d MMMM y G", - "field-weekday": "jour de la semaine", - "field-zone": "fuseau horaire" + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "lundi dernier", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "cette semaine", + "field-week-relative+1": "la semaine prochaine" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/fr/number.js b/cldr/nls/fr/number.js index 7b703b5817..d42e8d3b15 100644 --- a/cldr/nls/fr/number.js +++ b/cldr/nls/fr/number.js @@ -10,6 +10,7 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", diff --git a/cldr/nls/fr/persian.js b/cldr/nls/fr/persian.js new file mode 100644 index 0000000000..1f9287af51 --- /dev/null +++ b/cldr/nls/fr/persian.js @@ -0,0 +1,260 @@ +define( +//begin v1.x content +{ + "days-standAlone-short": [ + "dim.", + "lun.", + "mar.", + "mer.", + "jeu.", + "ven.", + "sam." + ], + "months-format-narrow": [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D" + ], + "field-second-relative+0": "maintenant", + "field-weekday": "jour de la semaine", + "field-wed-relative+0": "ce mercredi", + "field-wed-relative+1": "mercredi prochain", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "mardi dernier", + "days-format-short": [ + "di", + "lu", + "ma", + "me", + "je", + "ve", + "sa" + ], + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "vendredi dernier", + "field-wed-relative+-1": "mercredi dernier", + "months-format-wide": [ + "janvier", + "février", + "mars", + "avril", + "mai", + "juin", + "juillet", + "août", + "septembre", + "octobre", + "novembre", + "décembre" + ], + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", + "field-thu-relative+-1": "jeudi dernier", + "dateFormatItem-Md": "d/M", + "dayPeriods-format-wide-noon": "midi", + "field-era": "ère", + "months-standAlone-wide": [ + "janvier", + "février", + "mars", + "avril", + "mai", + "juin", + "juillet", + "août", + "septembre", + "octobre", + "novembre", + "décembre" + ], + "quarters-format-wide": [ + "1er trimestre", + "2e trimestre", + "3e trimestre", + "4e trimestre" + ], + "field-year": "année", + "field-hour": "heure", + "months-format-abbr": [ + "janv.", + "févr.", + "mars", + "avr.", + "mai", + "juin", + "juil.", + "août", + "sept.", + "oct.", + "nov.", + "déc." + ], + "field-sat-relative+0": "ce samedi", + "field-sat-relative+1": "samedi prochain", + "field-day-relative+0": "aujourd’hui", + "field-thu-relative+0": "ce jeudi", + "field-day-relative+1": "demain", + "field-thu-relative+1": "jeudi prochain", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "après-demain", + "months-standAlone-abbr": [ + "janv.", + "févr.", + "mars", + "avr.", + "mai", + "juin", + "juil.", + "août", + "sept.", + "oct.", + "nov.", + "déc." + ], + "quarters-format-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], + "quarters-standAlone-wide": [ + "1er trimestre", + "2e trimestre", + "3e trimestre", + "4e trimestre" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "days-standAlone-wide": [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi" + ], + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "field-sun-relative+0": "ce dimanche", + "field-sun-relative+1": "dimanche prochain", + "quarters-standAlone-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], + "field-minute": "minute", + "field-dayperiod": "cadran", + "days-standAlone-abbr": [ + "dim.", + "lun.", + "mar.", + "mer.", + "jeu.", + "ven.", + "sam." + ], + "field-day-relative+-1": "hier", + "dateTimeFormat-long": "{1} 'à' {0}", + "field-day-relative+-2": "avant-hier", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E d/M", + "dateTimeFormat-full": "{1} 'à' {0}", + "field-fri-relative+0": "ce vendredi", + "field-fri-relative+1": "vendredi prochain", + "field-day": "jour", + "days-format-wide": [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi" + ], + "field-zone": "fuseau horaire", + "dateFormatItem-y": "y G", + "months-standAlone-narrow": [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D" + ], + "field-year-relative+-1": "l’année dernière", + "field-month-relative+-1": "le mois dernier", + "days-format-abbr": [ + "dim.", + "lun.", + "mar.", + "mer.", + "jeu.", + "ven.", + "sam." + ], + "days-format-narrow": [ + "D", + "L", + "M", + "M", + "J", + "V", + "S" + ], + "dateFormatItem-yyyyMd": "d/M/y GGGGG", + "field-month": "mois", + "days-standAlone-narrow": [ + "D", + "L", + "M", + "M", + "J", + "V", + "S" + ], + "field-tue-relative+0": "ce mardi", + "field-tue-relative+1": "mardi prochain", + "field-mon-relative+0": "ce lundi", + "field-mon-relative+1": "lundi prochain", + "dateFormat-short": "dd/MM/y GGGGG", + "dayPeriods-format-narrow-noon": "midi", + "field-second": "seconde", + "field-sat-relative+-1": "samedi dernier", + "field-sun-relative+-1": "dimanche dernier", + "field-month-relative+0": "ce mois-ci", + "field-month-relative+1": "le mois prochain", + "dateFormatItem-Ed": "E d", + "field-week": "semaine", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "cette année", + "field-week-relative+-1": "la semaine dernière", + "dateFormatItem-yyyyM": "M/y GGGGG", + "field-year-relative+1": "l’année prochaine", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "lundi dernier", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "cette semaine", + "field-week-relative+1": "la semaine prochaine" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/fr/roc.js b/cldr/nls/fr/roc.js index 73644cfc1e..4de2569b42 100644 --- a/cldr/nls/fr/roc.js +++ b/cldr/nls/fr/roc.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "field-second": "seconde", - "field-year-relative+-1": "l’année dernière", - "field-week": "semaine", - "field-month-relative+-1": "le mois dernier", + "field-sat-relative+0": "ce samedi", + "field-sat-relative+1": "samedi prochain", + "field-dayperiod": "cadran", + "field-sun-relative+-1": "dimanche dernier", + "field-mon-relative+-1": "lundi dernier", + "field-minute": "minute", "field-day-relative+-1": "hier", + "field-weekday": "jour de la semaine", "field-day-relative+-2": "avant-hier", - "field-year": "année", - "field-week-relative+0": "cette semaine", - "field-week-relative+1": "la semaine prochaine", - "field-minute": "minute", - "field-week-relative+-1": "la semaine dernière", - "field-day-relative+0": "aujourd’hui", + "field-era": "ère", "field-hour": "heure", + "field-sun-relative+0": "ce dimanche", + "field-sun-relative+1": "dimanche prochain", + "field-wed-relative+-1": "mercredi dernier", + "field-day-relative+0": "aujourd’hui", "field-day-relative+1": "demain", - "field-day-relative+2": "après-demain", - "field-day": "jour", - "field-month-relative+0": "ce mois-ci", - "field-month-relative+1": "le mois prochain", - "field-dayperiod": "cadran", - "field-month": "mois", - "field-era": "ère", - "field-year-relative+0": "cette année", - "field-year-relative+1": "l’année prochaine", "eraAbbr": [ "avant RdC", "RdC" ], - "field-weekday": "jour de la semaine", - "field-zone": "fuseau horaire" + "field-day-relative+2": "après-demain", + "field-tue-relative+0": "ce mardi", + "field-zone": "fuseau horaire", + "field-tue-relative+1": "mardi prochain", + "field-week-relative+-1": "la semaine dernière", + "field-year-relative+0": "cette année", + "field-year-relative+1": "l’année prochaine", + "field-sat-relative+-1": "samedi dernier", + "field-year-relative+-1": "l’année dernière", + "field-year": "année", + "field-fri-relative+0": "ce vendredi", + "field-fri-relative+1": "vendredi prochain", + "field-week": "semaine", + "field-week-relative+0": "cette semaine", + "field-week-relative+1": "la semaine prochaine", + "field-month-relative+0": "ce mois-ci", + "field-month": "mois", + "field-month-relative+1": "le mois prochain", + "field-fri-relative+-1": "vendredi dernier", + "field-second": "seconde", + "field-tue-relative+-1": "mardi dernier", + "field-day": "jour", + "field-mon-relative+0": "ce lundi", + "field-mon-relative+1": "lundi prochain", + "field-thu-relative+0": "ce jeudi", + "field-second-relative+0": "maintenant", + "field-thu-relative+1": "jeudi prochain", + "field-wed-relative+0": "ce mercredi", + "field-wed-relative+1": "mercredi prochain", + "field-month-relative+-1": "le mois dernier", + "field-thu-relative+-1": "jeudi dernier" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/generic.js b/cldr/nls/generic.js index 3ffed74776..be5e8f8a69 100644 --- a/cldr/nls/generic.js +++ b/cldr/nls/generic.js @@ -2,16 +2,44 @@ define({ root: //begin v1.x content { - "days-standAlone-short": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" - ], - "months-format-narrow": [ + "dayPeriods-format-abbr@localeAlias212": { + "bundle": "gregorian", + "target": "dayPeriods-format-wide" + }, + "dateTimeFormats-appendItem-Year": "{1} {0}", + "field-tue-relative+-1": "last Tuesday", + "field-year": "Year", + "dateFormatItem-Hm": "HH:mm", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", + "dateFormatItem-ms": "mm:ss", + "timeFormat-short": "HH:mm", + "field-minute": "Minute", + "dateTimeFormat-short": "{1} {0}", + "eraNarrow@localeAlias214": { + "bundle": "generic", + "target": "eraAbbr" + }, + "field-day-relative+0": "today", + "field-day-relative+1": "tomorrow", + "timeFormat@localeAlias215": { + "bundle": "gregorian", + "target": "timeFormat" + }, + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", + "dayPeriods-format-narrow-am": "a", + "dateFormatItem-MMMd": "MMM d", + "dayPeriods-format-abbr-am": "AM", + "field-week-relative+0": "this week", + "field-month-relative+0": "this month", + "field-week-relative+1": "next week", + "field-month-relative+1": "next month", + "timeFormat-medium": "HH:mm:ss", + "field-second-relative+0": "now", + "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "dateFormatItem-yyyyQQQ": "G y QQQ", + "months-standAlone-narrow": [ "1", "2", "3", @@ -25,39 +53,107 @@ define({ root: "11", "12" ], - "quarters-standAlone-narrow": [ - "1", - "2", - "3", - "4" + "eraNames": [ + "ERA0", + "ERA1" ], - "months-standAlone-wide@localeAlias216": { - "bundle": "generic", - "target": "months-format-wide" - }, - "field-weekday": "Day of the Week", "dateFormatItem-GyMMMEd": "G y MMM d, E", - "dateFormatItem-MMMEd": "MMM d, E", - "quarters-standAlone-abbr@localeAlias231": { + "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", + "field-day": "Day", + "field-year-relative+-1": "last year", + "dayPeriods-format-wide-am": "AM", + "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", + "field-wed-relative+-1": "last Wednesday", + "dayPeriods@localeAlias210": { "bundle": "gregorian", - "target": "quarters-format-abbr" + "target": "dayPeriods" + }, + "dateTimeFormat-medium": "{1} {0}", + "days-standAlone-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "field-second": "Second", + "dateFormatItem-Ehms": "E h:mm:ss a", + "dateFormat-long": "G y MMMM d", + "dateFormatItem-GyMMMd": "G y MMM d", + "quarters-standAlone-wide": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "days-format-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "field-mon-relative+-1": "last Monday", + "dateFormatItem-GyMMM": "G y MMM", + "field-month": "Month", + "dateFormatItem-MMM": "LLL", + "field-dayperiod": "Dayperiod", + "days-format-short@localeAlias196": { + "bundle": "gregorian", + "target": "days-format-abbr" }, - "quarters-standAlone-abbr@localeAlias232": { + "days-format-short@localeAlias197": { "bundle": "gregorian", - "target": "quarters-format-wide" + "target": "days-format-wide" }, - "eraNarrow": [ + "months-standAlone-wide@localeAlias192": { + "bundle": "generic", + "target": "months-format-wide" + }, + "dayPeriods-format-narrow-pm": "p", + "dateFormat-medium": "G y MMM d", + "eraAbbr": [ "ERA0", "ERA1" ], - "dayPeriods-format-abbr@localeAlias235": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "quarters-standAlone-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "dayPeriods-format-abbr-pm": "PM", + "dateFormatItem-yyyyM": "GGGGG y-MM", + "months-standAlone-abbr@localeAlias190": { + "bundle": "generic", + "target": "months-format-abbr" }, - "quarters-format-narrow@localeAlias230": { - "bundle": "gregorian", - "target": "quarters-standAlone-narrow" + "months-standAlone-abbr@localeAlias191": { + "bundle": "generic", + "target": "months-format-wide" }, + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "dateFormatItem-yyyyMMMd": "G y MMM d", "days-format-short": [ "Sun", "Mon", @@ -67,129 +163,69 @@ define({ root: "Fri", "Sat" ], - "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", - "eraNarrow@localeAlias242": { - "bundle": "generic", - "target": "eraAbbr" - }, - "dayPeriods-format-abbr@localeAlias238": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" - }, - "dateFormat-long": "G y MMMM d", - "months-format-wide": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" + "quarters-format-narrow": [ + "1", + "2", + "3", + "4" ], - "dateFormatItem-yyyyQQQ": "G y QQQ", - "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "PM", - "dateFormat-full": "G y MMMM d, EEEE", - "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", - "months-standAlone-abbr@localeAlias214": { + "field-sat-relative+-1": "last Saturday", + "eraNames@localeAlias213": { "bundle": "generic", - "target": "months-format-abbr" - }, - "months-standAlone-abbr@localeAlias215": { - "bundle": "generic", - "target": "months-format-wide" + "target": "eraAbbr" }, + "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", + "dateTimeFormat-long": "{1} {0}", "dateFormatItem-Md": "MM-dd", - "months-format-abbr@localeAlias212": { - "bundle": "generic", - "target": "months-format-wide" - }, - "dayPeriods-format-abbr-am": "AM", - "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", - "field-era": "Era", - "months-standAlone-wide": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" - ], - "timeFormat-short": "HH:mm", - "quarters-format-wide": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], - "timeFormat-long": "HH:mm:ss z", - "field-year": "Year", - "dateTimeFormats-appendItem-Era": "{1} {0}", "field-hour": "Hour", + "months-format-wide": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" + ], + "dateFormat-full": "G y MMMM d, EEEE", + "field-month-relative+-1": "last month", + "dateFormatItem-Hms": "HH:mm:ss", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "dayPeriods-format-narrow-noon": "n", + "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", + "field-week-relative+-1": "last week", + "dateFormatItem-Ehm": "E h:mm a", "months-format-abbr": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], - "quarters@localeAlias228": { + "timeFormat-long": "HH:mm:ss z", + "days-standAlone-wide@localeAlias203": { "bundle": "gregorian", - "target": "quarters" + "target": "days-format-wide" + }, + "dateFormat-short": "GGGGG y-MM-dd", + "quarters-format-narrow@localeAlias206": { + "bundle": "gregorian", + "target": "quarters-standAlone-narrow" }, - "timeFormat-full": "HH:mm:ss zzzz", - "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", - "dateFormatItem-GyMMMd": "G y MMM d", - "months-standAlone-abbr": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" - ], - "dateFormatItem-H": "HH", - "quarters-format-abbr": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], - "quarters-standAlone-wide": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], - "dateFormatItem-Gy": "G y", - "dateFormatItem-yyyyMMMEd": "G y MMM d, E", - "dateFormatItem-M": "L", "days-standAlone-wide": [ "Sun", "Mon", @@ -199,26 +235,34 @@ define({ root: "Fri", "Sat" ], - "dateFormatItem-yyyyMMM": "G y MMM", - "dateFormatItem-yyyyMMMd": "G y MMM d", - "months-format-narrow@localeAlias213": { - "bundle": "generic", - "target": "months-standAlone-narrow" + "dateFormatItem-yyyyMMMEd": "G y MMM d, E", + "quarters@localeAlias204": { + "bundle": "gregorian", + "target": "quarters" }, - "timeFormat-medium": "HH:mm:ss", - "quarters-standAlone-abbr": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], - "dateFormatItem-Hm": "HH:mm", - "eraAbbr": [ - "ERA0", - "ERA1" + "dateTimeFormats-appendItem-Era": "{1} {0}", + "days-format-narrow@localeAlias195": { + "bundle": "gregorian", + "target": "days-standAlone-narrow" + }, + "dateFormatItem-H": "HH", + "dateFormatItem-yyyy": "G y", + "dateFormatItem-M": "L", + "months-standAlone-wide": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], - "field-minute": "Minute", - "field-dayperiod": "Dayperiod", + "field-sun-relative+-1": "last Sunday", "days-standAlone-abbr": [ "Sun", "Mon", @@ -228,27 +272,62 @@ define({ root: "Fri", "Sat" ], + "dateTimeFormat-full": "{1} {0}", + "dateFormatItem-hm": "h:mm a", + "days@localeAlias193": { + "bundle": "gregorian", + "target": "days" + }, "dateFormatItem-d": "d", - "dateFormatItem-ms": "mm:ss", - "quarters-format-narrow": [ + "field-weekday": "Day of the Week", + "field-sat-relative+0": "this Saturday", + "dateFormatItem-h": "h a", + "field-sat-relative+1": "next Saturday", + "months-standAlone-abbr": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" + ], + "timeFormat-full": "HH:mm:ss zzzz", + "dateFormatItem-MEd": "MM-dd, E", + "dateFormatItem-y": "G y", + "field-thu-relative+0": "this Thursday", + "field-thu-relative+1": "next Thursday", + "dateFormatItem-hms": "h:mm:ss a", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "dayPeriods-format-abbr-noon": "noon", + "quarters-standAlone-wide@localeAlias209": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", + "field-thu-relative+-1": "last Thursday", + "field-week": "Week", + "quarters-standAlone-narrow": [ "1", "2", "3", "4" ], - "field-day-relative+-1": "Yesterday", - "dateTimeFormat-long": "{1} {0}", - "dayPeriods-format-narrow-am": "AM", - "dateFormatItem-h": "h a", - "dateFormatItem-MMMd": "MMM d", - "dateFormatItem-MEd": "MM-dd, E", - "days-standAlone-wide@localeAlias227": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "dateTimeFormat-full": "{1} {0}", - "field-day": "Day", - "days-format-wide": [ + "quarters-format-wide": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "dateFormatItem-Ed": "d, E", + "dateFormatItem-yyyyMMM": "G y MMM", + "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", + "days-standAlone-short": [ "Sun", "Mon", "Tue", @@ -257,52 +336,38 @@ define({ root: "Fri", "Sat" ], - "days-format-short@localeAlias220": { + "days-standAlone-abbr@localeAlias198": { "bundle": "gregorian", "target": "days-format-abbr" }, - "days-format-short@localeAlias221": { + "days-standAlone-abbr@localeAlias199": { "bundle": "gregorian", "target": "days-format-wide" }, - "field-zone": "Zone", - "eraNames@localeAlias241": { - "bundle": "generic", - "target": "eraAbbr" - }, - "months-standAlone-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12" + "dateFormatItem-yyyyQQQQ": "G y QQQQ", + "quarters-format-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" ], - "dateFormatItem-y": "G y", - "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", - "dayPeriods-format-narrow@localeAlias236": { - "bundle": "gregorian", - "target": "dayPeriods-format-abbr" - }, - "dayPeriods-format-narrow@localeAlias237": { + "field-year-relative+0": "this year", + "field-year-relative+1": "next year", + "field-fri-relative+-1": "last Friday", + "eraNarrow": [ + "ERA0", + "ERA1" + ], + "dayPeriods-format-wide-noon": "noon", + "quarters-standAlone-abbr@localeAlias207": { "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "target": "quarters-format-abbr" }, - "dayPeriods-format-narrow@localeAlias239": { + "quarters-standAlone-abbr@localeAlias208": { "bundle": "gregorian", - "target": "dayPeriods-format-abbr" + "target": "quarters-format-wide" }, - "dateFormatItem-hm": "h:mm a", - "dateTimeFormats-appendItem-Year": "{1} {0}", - "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", - "dayPeriods-format-abbr-pm": "PM", - "days-format-abbr": [ + "days-format-wide": [ "Sun", "Mon", "Tue", @@ -311,100 +376,57 @@ define({ root: "Fri", "Sat" ], - "timeFormat@localeAlias243": { + "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", + "dateFormatItem-EHm": "E HH:mm", + "field-zone": "Zone", + "days-format-abbr@localeAlias194": { "bundle": "gregorian", - "target": "timeFormat" + "target": "days-format-wide" }, - "eraNames": [ - "ERA0", - "ERA1" - ], - "days-format-narrow": [ - "S", - "M", - "T", - "W", - "T", - "F", - "S" - ], - "days-standAlone-abbr@localeAlias222": { - "bundle": "gregorian", - "target": "days-format-abbr" + "months-format-abbr@localeAlias188": { + "bundle": "generic", + "target": "months-format-wide" }, - "days-standAlone-abbr@localeAlias223": { + "dateFormatItem-MMMEd": "MMM d, E", + "dateFormatItem-EHms": "E HH:mm:ss", + "field-day-relative+-1": "yesterday", + "quarters-format-abbr@localeAlias205": { "bundle": "gregorian", - "target": "days-format-wide" + "target": "quarters-format-wide" }, - "days-standAlone-short@localeAlias224": { + "days-format-abbr": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "field-sun-relative+0": "this Sunday", + "months-format-narrow@localeAlias189": { + "bundle": "generic", + "target": "months-standAlone-narrow" + }, + "field-sun-relative+1": "next Sunday", + "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", + "dateFormatItem-Gy": "G y", + "field-era": "Era", + "days-standAlone-short@localeAlias200": { "bundle": "gregorian", "target": "days-format-short" }, - "days-standAlone-short@localeAlias225": { + "days-standAlone-short@localeAlias201": { "bundle": "gregorian", "target": "days-format-abbr" }, - "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", - "days-standAlone-short@localeAlias226": { + "days-standAlone-short@localeAlias202": { "bundle": "gregorian", "target": "days-format-wide" }, - "days-format-abbr@localeAlias218": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "days-standAlone-narrow": [ - "S", - "M", - "T", - "W", - "T", - "F", - "S" - ], - "dateFormatItem-MMM": "LLL", - "field-month": "Month", - "dayPeriods-format-narrow@localeAlias240": { + "dayPeriods-format-abbr@localeAlias211": { "bundle": "gregorian", "target": "dayPeriods-format-wide" - }, - "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", - "dayPeriods-format-wide-am": "AM", - "dayPeriods@localeAlias234": { - "bundle": "gregorian", - "target": "dayPeriods" - }, - "days-format-narrow@localeAlias219": { - "bundle": "gregorian", - "target": "days-standAlone-narrow" - }, - "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", - "days@localeAlias217": { - "bundle": "gregorian", - "target": "days" - }, - "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", - "quarters-standAlone-wide@localeAlias233": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "dateFormat-short": "GGGGG y-MM-dd", - "field-second": "Second", - "dateFormatItem-Ed": "d, E", - "dateTimeFormats-appendItem-Timezone": "{0} {1}", - "field-week": "Week", - "dateFormat-medium": "G y MMM d", - "dateFormatItem-yyyyM": "GGGGG y-MM", - "dayPeriods-format-narrow-pm": "PM", - "dateFormatItem-yyyyQQQQ": "G y QQQQ", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Hms": "HH:mm:ss", - "dateFormatItem-hms": "h:mm:ss a", - "dateFormatItem-GyMMM": "G y MMM", - "dateFormatItem-yyyy": "G y", - "quarters-format-abbr@localeAlias229": { - "bundle": "gregorian", - "target": "quarters-format-wide" } } //end v1.x content @@ -417,6 +439,7 @@ define({ root: "el": true, "en": true, "en-au": true, + "en-ca": true, "en-gb": true, "es": true, "fi": true, diff --git a/cldr/nls/gregorian.js b/cldr/nls/gregorian.js index 3ac527b17e..f3c48f8a13 100644 --- a/cldr/nls/gregorian.js +++ b/cldr/nls/gregorian.js @@ -2,6 +2,7 @@ define({ root: //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "Sun", "Mon", @@ -25,6 +26,7 @@ define({ root: "11", "12" ], + "field-second-relative+0": "now", "quarters-standAlone-narrow": [ "1", "2", @@ -34,12 +36,15 @@ define({ root: "field-weekday": "Day of the Week", "dateFormatItem-yQQQ": "y QQQ", "dateFormatItem-yMEd": "y-MM-dd, E", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", "dateFormatItem-GyMMMEd": "G y MMM d, E", "dateFormatItem-MMMEd": "MMM d, E", "eraNarrow": [ "BCE", "CE" ], + "field-tue-relative+-1": "last Tuesday", "days-format-short": [ "Sun", "Mon", @@ -51,42 +56,46 @@ define({ root: ], "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", "dateFormat-long": "y MMMM d", + "field-fri-relative+-1": "last Friday", + "field-wed-relative+-1": "last Wednesday", "months-format-wide": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "y MMMM d, EEEE", + "field-thu-relative+-1": "last Thursday", "dateFormatItem-Md": "MM-dd", "dayPeriods-format-abbr-am": "AM", "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "dayPeriods-format-wide-noon": "noon", "dateFormatItem-yMd": "y-MM-dd", "field-era": "Era", "dateFormatItem-yM": "y-MM", "months-standAlone-wide": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], "timeFormat-short": "HH:mm", "quarters-format-wide": [ @@ -102,38 +111,42 @@ define({ root: "dateTimeFormats-appendItem-Era": "{1} {0}", "field-hour": "Hour", "months-format-abbr": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], + "field-sat-relative+0": "this Saturday", + "field-sat-relative+1": "next Saturday", "timeFormat-full": "HH:mm:ss zzzz", "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", + "field-day-relative+0": "today", + "field-thu-relative+0": "this Thursday", + "field-day-relative+1": "tomorrow", + "field-thu-relative+1": "next Thursday", "dateFormatItem-GyMMMd": "G y MMM d", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], "quarters-format-abbr": [ "Q1", @@ -158,8 +171,11 @@ define({ root: "Fri", "Sat" ], + "dayPeriods-format-abbr-noon": "noon", "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "this Sunday", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "next Sunday", "quarters-standAlone-abbr": [ "Q1", "Q2", @@ -189,13 +205,15 @@ define({ root: "3", "4" ], - "field-day-relative+-1": "Yesterday", - "dateFormatItem-h": "h a", + "field-day-relative+-1": "yesterday", "dateTimeFormat-long": "{1} {0}", - "dayPeriods-format-narrow-am": "AM", + "dayPeriods-format-narrow-am": "a", + "dateFormatItem-h": "h a", "dateFormatItem-MMMd": "MMM d", "dateFormatItem-MEd": "MM-dd, E", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", "field-day": "Day", "days-format-wide": [ "Sun", @@ -207,8 +225,6 @@ define({ root: "Sat" ], "field-zone": "Zone", - "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", - "dateFormatItem-y": "y", "months-standAlone-narrow": [ "1", "2", @@ -223,8 +239,12 @@ define({ root: "11", "12" ], - "dateFormatItem-hm": "h:mm a", + "dateFormatItem-y": "y", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "field-year-relative+-1": "last year", + "field-month-relative+-1": "last month", "dateTimeFormats-appendItem-Year": "{1} {0}", + "dateFormatItem-hm": "h:mm a", "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", "dayPeriods-format-abbr-pm": "PM", "days-format-abbr": [ @@ -250,6 +270,7 @@ define({ root: "F", "S" ], + "field-month": "Month", "days-standAlone-narrow": [ "S", "M", @@ -260,23 +281,40 @@ define({ root: "S" ], "dateFormatItem-MMM": "LLL", - "field-month": "Month", + "field-tue-relative+0": "this Tuesday", "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", + "field-tue-relative+1": "next Tuesday", "dayPeriods-format-wide-am": "AM", "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", "dateFormat-short": "y-MM-dd", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", + "dayPeriods-format-narrow-noon": "n", "field-second": "Second", + "field-sat-relative+-1": "last Saturday", "dateFormatItem-yMMMEd": "y MMM d, E", - "dateFormatItem-Ed": "d, E", + "field-sun-relative+-1": "last Sunday", + "field-month-relative+0": "this month", + "field-month-relative+1": "next month", "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "dateFormatItem-Ed": "d, E", "field-week": "Week", "dateFormat-medium": "y MMM d", - "dayPeriods-format-narrow-pm": "PM", + "field-week-relative+-1": "last week", + "field-year-relative+0": "this year", + "field-year-relative+1": "next year", + "dayPeriods-format-narrow-pm": "p", "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", - "dateFormatItem-GyMMM": "G y MMM" + "dateFormatItem-GyMMM": "G y MMM", + "field-mon-relative+-1": "last Monday", + "field-week-relative+0": "this week", + "field-week-relative+1": "next week" } //end v1.x content , @@ -288,6 +326,7 @@ define({ root: "el": true, "en": true, "en-au": true, + "en-ca": true, "en-gb": true, "es": true, "fi": true, diff --git a/cldr/nls/he/currency.js b/cldr/nls/he/currency.js index 75ca390565..04cea97677 100644 --- a/cldr/nls/he/currency.js +++ b/cldr/nls/he/currency.js @@ -3,12 +3,20 @@ define( { "HKD_displayName": "דולר הונג קונגי", "CHF_displayName": "פרנק שוויצרי", + "JPY_symbol": "JP¥", "CAD_displayName": "דולר קנדי", + "HKD_symbol": "HK$", "CNY_displayName": "יואן רנמינבי סיני", + "USD_symbol": "US$", "AUD_displayName": "דולר אוסטרלי", "JPY_displayName": "ין יפני", + "CAD_symbol": "CA$", "USD_displayName": "דולר אמריקאי", + "EUR_symbol": "€", + "CNY_symbol": "CN¥", "GBP_displayName": "לירה שטרלינג", + "GBP_symbol": "£", + "AUD_symbol": "A$", "EUR_displayName": "אירו" } //end v1.x content diff --git a/cldr/nls/he/generic.js b/cldr/nls/he/generic.js index bdfa521db6..5c273c57aa 100644 --- a/cldr/nls/he/generic.js +++ b/cldr/nls/he/generic.js @@ -1,67 +1,91 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E, d בMMM y G", - "field-dayperiod": "לפה״צ/אחה״צ", - "field-minute": "דקה", - "dateFormatItem-MMMEd": "E, d בMMM", - "field-day-relative+-1": "אתמול", - "dateFormatItem-hms": "h:mm:ss a", - "field-day-relative+-2": "שלשום", + "field-second-relative+0": "עכשיו", "field-weekday": "יום בשבוע", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1}, {0}", - "dateFormatItem-Gy": "y G", + "field-wed-relative+0": "יום רביעי", + "field-wed-relative+1": "יום רביעי הבא", + "dateFormatItem-GyMMMEd": "E, d בMMM y G", + "dateFormatItem-MMMEd": "E, d בMMM", + "field-tue-relative+-1": "יום שלישי שעבר", + "dateFormat-long": "d בMMMM y G", + "field-fri-relative+-1": "יום שישי שעבר", + "field-wed-relative+-1": "יום רביעי שעבר", + "dateFormatItem-yyyyQQQ": "G y QQQ", "dateTimeFormat-medium": "{1}, {0}", + "dateFormat-full": "EEEE, d בMMMM y G", + "dateFormatItem-yyyyMEd": "E, d/M/y G", + "field-thu-relative+-1": "יום חמישי שעבר", + "dateFormatItem-Md": "d/M", "field-era": "תקופה", + "field-year": "שנה", "field-hour": "שעה", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E ה-d", + "field-sat-relative+0": "השבת הזאת", + "field-sat-relative+1": "השבת הבאה", "field-day-relative+0": "היום", "field-day-relative+1": "מחר", - "field-day-relative+2": "מחרתיים", - "dateFormatItem-yyyyMM": "MM/y G", + "field-thu-relative+0": "יום חמישי", "dateFormatItem-GyMMMd": "d בMMM y G", - "dateFormat-long": "d בMMMM y G", - "field-zone": "אזור", + "field-day-relative+2": "מחרתיים", + "field-thu-relative+1": "יום חמישי הבא", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d בMMM y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d בMMM y G", + "field-sun-relative+0": "יום ראשון", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "שבוע שעבר", - "dateFormat-medium": "d בMMM y G", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "השנה", - "field-year-relative+1": "שנה הבאה", - "field-year-relative+-1": "שנה שעברה", + "field-sun-relative+1": "יום ראשון הבא", + "field-minute": "דקה", + "field-dayperiod": "לפנה״צ/אחה״צ", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "G y QQQQ", - "field-year": "שנה", - "field-week": "שבוע", - "dateFormatItem-yyyyMd": "d.M.y G", - "dateFormatItem-yyyyMMMd": "d בMMM y G", - "dateFormatItem-yyyyMEd": "E, d/M/y G", + "field-day-relative+-1": "אתמול", + "dateFormatItem-h": "‏h a", + "dateTimeFormat-long": "{1} {0}", + "field-day-relative+-2": "שלשום", "dateFormatItem-MMMd": "d בMMM", - "field-week-relative+0": "השבוע", - "field-week-relative+1": "שבוע הבא", - "field-month-relative+0": "החודש", - "dateFormatItem-H": "HH", - "field-month": "חודש", - "field-month-relative+1": "חודש הבא", - "dateFormatItem-M": "L", - "field-second": "שנייה", - "dateFormatItem-GyMMMEd": "E, d בMMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "יום", - "dateFormatItem-yyyyQQQ": "G y QQQ", "dateFormatItem-MEd": "E, d/M", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "יום שישי", + "field-fri-relative+1": "יום שישי הבא", + "field-day": "יום", + "field-zone": "אזור", + "dateFormatItem-yyyyMM": "MM/y G", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "השנה שעברה", + "field-month-relative+-1": "החודש שעבר", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "d.M.y G", + "field-month": "חודש", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "יום שלישי", + "field-tue-relative+1": "יום שלישי הבא", + "field-mon-relative+0": "יום שני הזה", + "field-mon-relative+1": "יום שני הבא", "dateFormat-short": "dd/MM/yy GGGGG", + "field-second": "שנייה", + "field-sat-relative+-1": "השבת שעברה", + "field-sun-relative+-1": "יום ראשון שעבר", + "field-month-relative+0": "החודש", + "field-month-relative+1": "החודש הבא", + "dateFormatItem-Ed": "E ה-d", + "field-week": "שבוע", + "dateFormat-medium": "d בMMM y G", + "field-year-relative+0": "השנה", + "field-week-relative+-1": "השבוע שעבר", "dateFormatItem-yyyyM": "M.y G", - "dateFormat-full": "EEEE, d בMMMM y G", - "dateFormatItem-Md": "d/M", - "dateFormatItem-yyyyMMM": "MMM y G", - "dateFormatItem-d": "d", - "field-month-relative+-1": "חודש שעבר", - "dateFormatItem-h": "‏h a" + "field-year-relative+1": "השנה הבאה", + "dateFormatItem-yyyyQQQQ": "G y QQQQ", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "יום שני שעבר", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "השבוע", + "field-week-relative+1": "השבוע הבא" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/he/gregorian.js b/cldr/nls/he/gregorian.js index 8e346a5da8..b5004701a9 100644 --- a/cldr/nls/he/gregorian.js +++ b/cldr/nls/he/gregorian.js @@ -1,14 +1,15 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ - "א'", - "ב'", - "ג'", - "ד'", - "ה'", - "ו'", - "ש'" + "א׳", + "ב׳", + "ג׳", + "ד׳", + "ה׳", + "ו׳", + "ש׳" ], "months-format-narrow": [ "1", @@ -24,6 +25,7 @@ define( "11", "12" ], + "field-second-relative+0": "עכשיו", "quarters-standAlone-narrow": [ "ר1", "ר2", @@ -33,23 +35,30 @@ define( "field-weekday": "יום בשבוע", "dateFormatItem-yQQQ": "y QQQ", "dateFormatItem-yMEd": "E, d/M/y", + "field-wed-relative+0": "יום רביעי", + "field-wed-relative+1": "יום רביעי הבא", "dateFormatItem-GyMMMEd": "E, d בMMM y G", "dateFormatItem-MMMEd": "E, d בMMM", "eraNarrow": [ "לפנה״ס", - "לסה״נ" + "BCE", + "לסה״נ", + "CE" ], "dateFormatItem-yMM": "MM/y", + "field-tue-relative+-1": "יום שלישי שעבר", "days-format-short": [ - "א'", - "ב'", - "ג'", - "ד'", - "ה'", - "ו'", - "ש'" + "א׳", + "ב׳", + "ג׳", + "ד׳", + "ה׳", + "ו׳", + "ש׳" ], "dateFormat-long": "d בMMMM y", + "field-fri-relative+-1": "יום שישי שעבר", + "field-wed-relative+-1": "יום רביעי שעבר", "months-format-wide": [ "ינואר", "פברואר", @@ -67,6 +76,7 @@ define( "dateTimeFormat-medium": "{1}, {0}", "dayPeriods-format-wide-pm": "אחה״צ", "dateFormat-full": "EEEE, d בMMMM y", + "field-thu-relative+-1": "יום חמישי שעבר", "dateFormatItem-Md": "d/M", "dateFormatItem-yMd": "d.M.y", "field-era": "תקופה", @@ -98,22 +108,26 @@ define( "dateFormatItem-yMMM": "MMM y", "field-hour": "שעה", "months-format-abbr": [ - "ינו", - "פבר", + "ינו׳", + "פבר׳", "מרץ", - "אפר", + "אפר׳", "מאי", - "יונ", - "יול", - "אוג", - "ספט", - "אוק", - "נוב", - "דצמ" + "יוני", + "יולי", + "אוג׳", + "ספט׳", + "אוק׳", + "נוב׳", + "דצמ׳" ], + "field-sat-relative+0": "השבת הזאת", + "field-sat-relative+1": "השבת הבאה", "timeFormat-full": "HH:mm:ss zzzz", "field-day-relative+0": "היום", + "field-thu-relative+0": "יום חמישי", "field-day-relative+1": "מחר", + "field-thu-relative+1": "יום חמישי הבא", "dateFormatItem-GyMMMd": "d בMMM y G", "field-day-relative+2": "מחרתיים", "dateFormatItem-H": "HH", @@ -123,8 +137,8 @@ define( "מרץ", "אפר׳", "מאי", - "יונ׳", - "יול׳", + "יוני", + "יולי", "אוג׳", "ספט׳", "אוק׳", @@ -155,7 +169,9 @@ define( "יום שבת" ], "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "יום ראשון", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "יום ראשון הבא", "quarters-standAlone-abbr": [ "רבעון 1", "רבעון 2", @@ -164,10 +180,12 @@ define( ], "eraAbbr": [ "לפנה״ס", - "לסה״נ" + "BCE", + "לסה״נ", + "CE" ], "field-minute": "דקה", - "field-dayperiod": "לפה״צ/אחה״צ", + "field-dayperiod": "לפנה״צ/אחה״צ", "days-standAlone-abbr": [ "יום א׳", "יום ב׳", @@ -187,10 +205,14 @@ define( ], "field-day-relative+-1": "אתמול", "dateFormatItem-h": "‏h a", + "dateTimeFormat-long": "{1} בשעה {0}", "field-day-relative+-2": "שלשום", "dateFormatItem-MMMd": "d בMMM", "dateFormatItem-MEd": "E, d/M", + "dateTimeFormat-full": "{1} בשעה {0}", + "field-fri-relative+0": "יום שישי", "dateFormatItem-yMMMM": "MMMM y", + "field-fri-relative+1": "יום שישי הבא", "field-day": "יום", "days-format-wide": [ "יום ראשון", @@ -217,8 +239,8 @@ define( "11", "12" ], - "field-year-relative+-1": "שנה שעברה", - "field-month-relative+-1": "חודש שעבר", + "field-year-relative+-1": "השנה שעברה", + "field-month-relative+-1": "החודש שעבר", "dateFormatItem-hm": "h:mm a", "days-format-abbr": [ "יום א׳", @@ -232,46 +254,59 @@ define( "dateFormatItem-yMMMd": "d בMMM y", "eraNames": [ "לפני הספירה", - "לספירה" + "לספירה", + "לסה״נ", + "CE" ], "days-format-narrow": [ - "א'", - "ב'", - "ג'", - "ד'", - "ה'", + "א׳", + "ב׳", + "ג׳", + "ד׳", + "ה׳", "ו׳", "ש׳" ], - "field-month": "חודש", "days-standAlone-narrow": [ "א׳", "ב׳", "ג׳", "ד׳", "ה׳", - "ו", - "ש" + "ו׳", + "ש׳" ], "dateFormatItem-MMM": "LLL", + "field-month": "חודש", + "field-tue-relative+0": "יום שלישי", + "field-tue-relative+1": "יום שלישי הבא", "dayPeriods-format-wide-am": "לפנה״צ", + "dateFormatItem-EHm": "E H:mm", + "field-mon-relative+0": "יום שני הזה", + "field-mon-relative+1": "יום שני הבא", "dateFormat-short": "dd/MM/yy", + "dateFormatItem-EHms": "E H:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", "field-second": "שנייה", + "field-sat-relative+-1": "השבת שעברה", "dateFormatItem-yMMMEd": "E, d בMMM y", + "field-sun-relative+-1": "יום ראשון שעבר", "field-month-relative+0": "החודש", - "field-month-relative+1": "חודש הבא", + "field-month-relative+1": "החודש הבא", "dateFormatItem-Ed": "E ה-d", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "שבוע", "dateFormat-medium": "d בMMM y", "field-year-relative+0": "השנה", - "field-week-relative+-1": "שבוע שעבר", - "field-year-relative+1": "שנה הבאה", + "field-week-relative+-1": "השבוע שעבר", + "field-year-relative+1": "השנה הבאה", "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "יום שני שעבר", "field-week-relative+0": "השבוע", - "field-week-relative+1": "שבוע הבא" + "field-week-relative+1": "השבוע הבא" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/he/hebrew.js b/cldr/nls/he/hebrew.js index 8312829049..555364b547 100644 --- a/cldr/nls/he/hebrew.js +++ b/cldr/nls/he/hebrew.js @@ -2,13 +2,13 @@ define( //begin v1.x content { "days-standAlone-short": [ - "א'", - "ב'", - "ג'", - "ד'", - "ה'", - "ו'", - "ש'" + "א׳", + "ב׳", + "ג׳", + "ד׳", + "ה׳", + "ו׳", + "ש׳" ], "months-format-narrow": [ "תש", @@ -25,6 +25,7 @@ define( "אב", "אל" ], + "field-second-relative+0": "עכשיו", "quarters-standAlone-narrow": [ "ר1", "ר2", @@ -33,24 +34,29 @@ define( ], "field-weekday": "יום בשבוע", "months-standAlone-narrow-leap": "א2", + "field-wed-relative+0": "יום רביעי", + "field-wed-relative+1": "יום רביעי הבא", "dateFormatItem-GyMMMEd": "E, d MMMM y G", "dateFormatItem-MMMEd": "E, d בMMMM", "eraNarrow": [ "לבה״ע" ], + "field-tue-relative+-1": "יום שלישי שעבר", "days-format-short": [ - "א'", - "ב'", - "ג'", - "ד'", - "ה'", - "ו'", - "ש'" + "א׳", + "ב׳", + "ג׳", + "ד׳", + "ה׳", + "ו׳", + "ש׳" ], "dateFormat-long": "d בMMMM y", + "field-fri-relative+-1": "יום שישי שעבר", + "field-wed-relative+-1": "יום רביעי שעבר", "months-format-wide": [ "תשרי", - "חשוון", + "חשון", "כסלו", "טבת", "שבט", @@ -67,6 +73,7 @@ define( "dayPeriods-format-wide-pm": "אחה״צ", "dateFormat-full": "EEEE, d בMMMM y", "dateFormatItem-yyyyMEd": "E, d בMMMM y", + "field-thu-relative+-1": "יום חמישי שעבר", "dateFormatItem-Md": "d בMMMM", "field-era": "תקופה", "months-standAlone-wide": [ @@ -96,7 +103,7 @@ define( "months-format-abbr-leap": "אדר ב׳", "months-format-abbr": [ "תשרי", - "חשוון", + "חשון", "כסלו", "טבת", "שבט", @@ -109,8 +116,12 @@ define( "אב", "אלול" ], + "field-sat-relative+0": "השבת הזאת", + "field-sat-relative+1": "השבת הבאה", "field-day-relative+0": "היום", + "field-thu-relative+0": "יום חמישי", "field-day-relative+1": "מחר", + "field-thu-relative+1": "יום חמישי הבא", "dateFormatItem-GyMMMd": "d MMMM y G", "field-day-relative+2": "מחרתיים", "months-standAlone-abbr": [ @@ -123,28 +134,59 @@ define( "אדר", "ניסן", "אייר", - "סיוון", + "סיון", "תמוז", "אב", "אלול" ], + "quarters-format-abbr": [ + "רבעון 1", + "רבעון 2", + "רבעון 3", + "רבעון 4" + ], + "quarters-standAlone-wide": [ + "רבעון 1", + "רבעון 2", + "רבעון 3", + "רבעון 4" + ], "dateFormatItem-Gy": "y G", "dateFormatItem-yyyyMMMEd": "E, d בMMMM y", "dateFormatItem-M": "MMMM", + "days-standAlone-wide": [ + "יום ראשון", + "יום שני", + "יום שלישי", + "יום רביעי", + "יום חמישי", + "יום שישי", + "יום שבת" + ], "dateFormatItem-yyyyMMM": "MMMM y", "dateFormatItem-yyyyMMMd": "d בMMMM y", "dateFormatItem-MMMMd": "d בMMMM", "months-standAlone-wide-leap": "אדר ב׳", + "field-sun-relative+0": "יום ראשון", + "field-sun-relative+1": "יום ראשון הבא", + "quarters-standAlone-abbr": [ + "רבעון 1", + "רבעון 2", + "רבעון 3", + "רבעון 4" + ], "months-format-narrow-leap": "א2", "eraAbbr": [ "לבה״ע" ], "field-minute": "דקה", - "field-dayperiod": "לפה״צ/אחה״צ", + "field-dayperiod": "לפנה״צ/אחה״צ", "field-day-relative+-1": "אתמול", "field-day-relative+-2": "שלשום", "dateFormatItem-MMMd": "d בMMMM", "dateFormatItem-MEd": "E, d בMMMM", + "field-fri-relative+0": "יום שישי", + "field-fri-relative+1": "יום שישי הבא", "field-day": "יום", "days-format-wide": [ "יום ראשון", @@ -173,8 +215,8 @@ define( "אב", "אל" ], - "field-year-relative+-1": "שנה שעברה", - "field-month-relative+-1": "חודש שעבר", + "field-year-relative+-1": "השנה שעברה", + "field-month-relative+-1": "החודש שעבר", "days-format-abbr": [ "יום א׳", "יום ב׳", @@ -188,45 +230,52 @@ define( "לבה״ע" ], "days-format-narrow": [ - "א'", - "ב'", - "ג'", - "ד'", - "ה'", + "א׳", + "ב׳", + "ג׳", + "ד׳", + "ה׳", "ו׳", "ש׳" ], "dateFormatItem-yyyyMd": "d בMMMM y", "field-month": "חודש", + "dateFormatItem-MMM": "MMMM", "days-standAlone-narrow": [ "א׳", "ב׳", "ג׳", "ד׳", "ה׳", - "ו", - "ש" + "ו׳", + "ש׳" ], - "dateFormatItem-MMM": "MMMM", + "field-tue-relative+0": "יום שלישי", + "field-tue-relative+1": "יום שלישי הבא", "dayPeriods-format-wide-am": "לפנה״צ", "dateFormatItem-MMMMEd": "E, d בMMMM", + "field-mon-relative+0": "יום שני הזה", + "field-mon-relative+1": "יום שני הבא", "dateFormat-short": "d בMMMM y", "field-second": "שנייה", + "field-sat-relative+-1": "השבת שעברה", + "field-sun-relative+-1": "יום ראשון שעבר", "field-month-relative+0": "החודש", - "field-month-relative+1": "חודש הבא", + "field-month-relative+1": "החודש הבא", "dateFormatItem-Ed": "E ה-d", "field-week": "שבוע", "dateFormat-medium": "d בMMMM y", "field-year-relative+0": "השנה", - "field-week-relative+-1": "שבוע שעבר", + "field-week-relative+-1": "השבוע שעבר", "dateFormatItem-yyyyM": "MMMM y", - "field-year-relative+1": "שנה הבאה", + "field-year-relative+1": "השנה הבאה", "dateTimeFormat-short": "{1}, {0}", "months-format-wide-leap": "אדר ב׳", "dateFormatItem-GyMMM": "MMMM y G", + "field-mon-relative+-1": "יום שני שעבר", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "השבוע", - "field-week-relative+1": "שבוע הבא" + "field-week-relative+1": "השבוע הבא" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/he/islamic.js b/cldr/nls/he/islamic.js index d617830b7a..230f4c676f 100644 --- a/cldr/nls/he/islamic.js +++ b/cldr/nls/he/islamic.js @@ -2,14 +2,15 @@ define( //begin v1.x content { "days-standAlone-short": [ - "א'", - "ב'", - "ג'", - "ד'", - "ה'", - "ו'", - "ש'" + "א׳", + "ב׳", + "ג׳", + "ד׳", + "ה׳", + "ו׳", + "ש׳" ], + "field-second-relative+0": "עכשיו", "quarters-standAlone-narrow": [ "ר1", "ר2", @@ -17,21 +18,26 @@ define( "ר4" ], "field-weekday": "יום בשבוע", + "field-wed-relative+0": "יום רביעי", + "field-wed-relative+1": "יום רביעי הבא", "dateFormatItem-GyMMMEd": "E, d בMMM y G", "dateFormatItem-MMMEd": "E, d בMMM", "eraNarrow": [ "שנת היג׳רה" ], + "field-tue-relative+-1": "יום שלישי שעבר", "days-format-short": [ - "א'", - "ב'", - "ג'", - "ד'", - "ה'", - "ו'", - "ש'" + "א׳", + "ב׳", + "ג׳", + "ד׳", + "ה׳", + "ו׳", + "ש׳" ], "dateFormat-long": "d בMMMM y G", + "field-fri-relative+-1": "יום שישי שעבר", + "field-wed-relative+-1": "יום רביעי שעבר", "months-format-wide": [ "מוחרם", "צפר", @@ -51,6 +57,7 @@ define( "dayPeriods-format-wide-pm": "אחה״צ", "dateFormat-full": "EEEE, d בMMMM y G", "dateFormatItem-yyyyMEd": "E, d.M.y", + "field-thu-relative+-1": "יום חמישי שעבר", "dateFormatItem-Md": "d/M", "field-era": "תקופה", "months-standAlone-wide": [ @@ -89,8 +96,12 @@ define( "ד׳ו אל-קעדה", "ד׳ו אל-חיג׳ה" ], + "field-sat-relative+0": "השבת הזאת", + "field-sat-relative+1": "השבת הבאה", "field-day-relative+0": "היום", + "field-thu-relative+0": "יום חמישי", "field-day-relative+1": "מחר", + "field-thu-relative+1": "יום חמישי הבא", "dateFormatItem-GyMMMd": "d בMMM y G", "field-day-relative+2": "מחרתיים", "months-standAlone-abbr": [ @@ -107,22 +118,53 @@ define( "ד׳ו אל-קעדה", "ד׳ו אל-חיג׳ה" ], + "quarters-format-abbr": [ + "רבעון 1", + "רבעון 2", + "רבעון 3", + "רבעון 4" + ], + "quarters-standAlone-wide": [ + "רבעון 1", + "רבעון 2", + "רבעון 3", + "רבעון 4" + ], "dateFormatItem-Gy": "y G", "dateFormatItem-yyyyMMMEd": "E, d בMMM y", + "days-standAlone-wide": [ + "יום ראשון", + "יום שני", + "יום שלישי", + "יום רביעי", + "יום חמישי", + "יום שישי", + "יום שבת" + ], "dateFormatItem-yyyyMMM": "MMM y", "dateFormatItem-yyyyMMMd": "d בMMM y", + "field-sun-relative+0": "יום ראשון", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "יום ראשון הבא", + "quarters-standAlone-abbr": [ + "רבעון 1", + "רבעון 2", + "רבעון 3", + "רבעון 4" + ], "eraAbbr": [ "שנת היג׳רה" ], "field-minute": "דקה", - "field-dayperiod": "לפה״צ/אחה״צ", + "field-dayperiod": "לפנה״צ/אחה״צ", "dateFormatItem-d": "d", "field-day-relative+-1": "אתמול", "dateFormatItem-h": "h a", "field-day-relative+-2": "שלשום", "dateFormatItem-MMMd": "d בMMM", "dateFormatItem-MEd": "E, d/M", + "field-fri-relative+0": "יום שישי", + "field-fri-relative+1": "יום שישי הבא", "field-day": "יום", "days-format-wide": [ "יום ראשון", @@ -149,8 +191,8 @@ define( "11", "12" ], - "field-year-relative+-1": "שנה שעברה", - "field-month-relative+-1": "חודש שעבר", + "field-year-relative+-1": "השנה שעברה", + "field-month-relative+-1": "החודש שעבר", "dateFormatItem-hm": "h:mm a", "days-format-abbr": [ "יום א׳", @@ -165,11 +207,11 @@ define( "שנת היג׳רה" ], "days-format-narrow": [ - "א'", - "ב'", - "ג'", - "ד'", - "ה'", + "א׳", + "ב׳", + "ג׳", + "ד׳", + "ה׳", "ו׳", "ש׳" ], @@ -181,29 +223,36 @@ define( "ג׳", "ד׳", "ה׳", - "ו", - "ש" + "ו׳", + "ש׳" ], + "field-tue-relative+0": "יום שלישי", + "field-tue-relative+1": "יום שלישי הבא", "dayPeriods-format-wide-am": "לפנה״צ", + "field-mon-relative+0": "יום שני הזה", + "field-mon-relative+1": "יום שני הבא", "dateFormat-short": "dd/MM/yy GGGGG", "field-second": "שנייה", + "field-sat-relative+-1": "השבת שעברה", + "field-sun-relative+-1": "יום ראשון שעבר", "field-month-relative+0": "החודש", - "field-month-relative+1": "חודש הבא", + "field-month-relative+1": "החודש הבא", "dateFormatItem-Ed": "E ה-d", "field-week": "שבוע", "dateFormat-medium": "d בMMM y G", "field-year-relative+0": "השנה", - "field-week-relative+-1": "שבוע שעבר", + "field-week-relative+-1": "השבוע שעבר", "dateFormatItem-yyyyM": "M/y", - "field-year-relative+1": "שנה הבאה", + "field-year-relative+1": "השנה הבאה", "dateFormatItem-yyyyQQQQ": "QQQQ y", "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "יום שני שעבר", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "השבוע", - "field-week-relative+1": "שבוע הבא" + "field-week-relative+1": "השבוע הבא" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/he/japanese.js b/cldr/nls/he/japanese.js index 8ae3006485..3aa2b8240d 100644 --- a/cldr/nls/he/japanese.js +++ b/cldr/nls/he/japanese.js @@ -1,29 +1,22 @@ define( //begin v1.x content { - "field-second": "שנייה", - "field-year-relative+-1": "שנה שעברה", - "field-week": "שבוע", - "field-month-relative+-1": "חודש שעבר", + "field-sat-relative+0": "השבת הזאת", + "field-sat-relative+1": "השבת הבאה", + "field-dayperiod": "לפנה״צ/אחה״צ", + "field-sun-relative+-1": "יום ראשון שעבר", + "field-mon-relative+-1": "יום שני שעבר", + "field-minute": "דקה", "field-day-relative+-1": "אתמול", + "field-weekday": "יום בשבוע", "field-day-relative+-2": "שלשום", - "field-year": "שנה", - "field-week-relative+0": "השבוע", - "field-week-relative+1": "שבוע הבא", - "field-minute": "דקה", - "field-week-relative+-1": "שבוע שעבר", - "field-day-relative+0": "היום", + "field-era": "תקופה", "field-hour": "שעה", + "field-sun-relative+0": "יום ראשון", + "field-sun-relative+1": "יום ראשון הבא", + "field-wed-relative+-1": "יום רביעי שעבר", + "field-day-relative+0": "היום", "field-day-relative+1": "מחר", - "field-day-relative+2": "מחרתיים", - "field-day": "יום", - "field-month-relative+0": "החודש", - "field-month-relative+1": "חודש הבא", - "field-dayperiod": "לפה״צ/אחה״צ", - "field-month": "חודש", - "field-era": "תקופה", - "field-year-relative+0": "השנה", - "field-year-relative+1": "שנה הבאה", "eraAbbr": [ "טאיקה", null, @@ -100,8 +93,37 @@ define( null, "שוטוקו" ], - "field-weekday": "יום בשבוע", - "field-zone": "אזור" + "field-day-relative+2": "מחרתיים", + "field-tue-relative+0": "יום שלישי", + "field-zone": "אזור", + "field-tue-relative+1": "יום שלישי הבא", + "field-week-relative+-1": "השבוע שעבר", + "field-year-relative+0": "השנה", + "field-year-relative+1": "השנה הבאה", + "field-sat-relative+-1": "השבת שעברה", + "field-year-relative+-1": "השנה שעברה", + "field-year": "שנה", + "field-fri-relative+0": "יום שישי", + "field-fri-relative+1": "יום שישי הבא", + "field-week": "שבוע", + "field-week-relative+0": "השבוע", + "field-week-relative+1": "השבוע הבא", + "field-month-relative+0": "החודש", + "field-month": "חודש", + "field-month-relative+1": "החודש הבא", + "field-fri-relative+-1": "יום שישי שעבר", + "field-second": "שנייה", + "field-tue-relative+-1": "יום שלישי שעבר", + "field-day": "יום", + "field-mon-relative+0": "יום שני הזה", + "field-mon-relative+1": "יום שני הבא", + "field-thu-relative+0": "יום חמישי", + "field-second-relative+0": "עכשיו", + "field-thu-relative+1": "יום חמישי הבא", + "field-wed-relative+0": "יום רביעי", + "field-wed-relative+1": "יום רביעי הבא", + "field-month-relative+-1": "החודש שעבר", + "field-thu-relative+-1": "יום חמישי שעבר" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/he/number.js b/cldr/nls/he/number.js index eb8dc996b3..2dfd108f33 100644 --- a/cldr/nls/he/number.js +++ b/cldr/nls/he/number.js @@ -8,13 +8,14 @@ define( "percentFormat": "#,##0%", "list": ";", "infinity": "∞", - "minusSign": "-", + "minusSign": "‎-", "decimal": ".", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", "currencyFormat": "#,##0.00 ¤", - "plusSign": "+", + "plusSign": "‎+", "decimalFormat-long": "‏000 טריליון", "decimalFormat-short": "000T" } diff --git a/cldr/nls/hebrew.js b/cldr/nls/hebrew.js index e24666473e..7f6bea3b6d 100644 --- a/cldr/nls/hebrew.js +++ b/cldr/nls/hebrew.js @@ -2,6 +2,7 @@ define({ root: //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "Sun", "Mon", @@ -26,6 +27,7 @@ define({ root: "12", "13" ], + "field-second-relative+0": "now", "quarters-standAlone-narrow": [ "1", "2", @@ -33,11 +35,15 @@ define({ root: "4" ], "field-weekday": "Day of the Week", + "months-standAlone-narrow-leap": "7", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", "dateFormatItem-GyMMMEd": "G y MMM d, E", "dateFormatItem-MMMEd": "MMM d, E", "eraNarrow": [ "AM" ], + "field-tue-relative+-1": "last Tuesday", "days-format-short": [ "Sun", "Mon", @@ -49,6 +55,8 @@ define({ root: ], "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", "dateFormat-long": "G y MMMM d", + "field-fri-relative+-1": "last Friday", + "field-wed-relative+-1": "last Wednesday", "months-format-wide": [ "Tishri", "Heshvan", @@ -69,9 +77,11 @@ define({ root: "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "G y MMMM d, EEEE", "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", + "field-thu-relative+-1": "last Thursday", "dateFormatItem-Md": "MM-dd", "dayPeriods-format-abbr-am": "AM", "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "dayPeriods-format-wide-noon": "noon", "field-era": "Era", "months-standAlone-wide": [ "Tishri", @@ -115,10 +125,14 @@ define({ root: "Av", "Elul" ], + "field-sat-relative+0": "this Saturday", + "field-sat-relative+1": "next Saturday", "timeFormat-full": "HH:mm:ss zzzz", "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", + "field-day-relative+0": "today", + "field-thu-relative+0": "this Thursday", + "field-day-relative+1": "tomorrow", + "field-thu-relative+1": "next Thursday", "dateFormatItem-GyMMMd": "G y MMM d", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ @@ -162,15 +176,19 @@ define({ root: ], "dateFormatItem-yyyyMMM": "G y MMM", "dateFormatItem-yyyyMMMd": "G y MMM d", + "dayPeriods-format-abbr-noon": "noon", "months-standAlone-wide-leap": "Adar II", "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "this Sunday", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "next Sunday", "quarters-standAlone-abbr": [ "Q1", "Q2", "Q3", "Q4" ], + "months-format-narrow-leap": "7", "eraAbbr": [ "AM" ], @@ -185,21 +203,23 @@ define({ root: "Fri", "Sat" ], - "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", + "dateFormatItem-d": "d", "quarters-format-narrow": [ "1", "2", "3", "4" ], - "field-day-relative+-1": "Yesterday", - "dateFormatItem-h": "h a", + "field-day-relative+-1": "yesterday", "dateTimeFormat-long": "{1} {0}", - "dayPeriods-format-narrow-am": "AM", + "dayPeriods-format-narrow-am": "a", + "dateFormatItem-h": "h a", "dateFormatItem-MMMd": "MMM d", "dateFormatItem-MEd": "MM-dd, E", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", "field-day": "Day", "days-format-wide": [ "Sun", @@ -210,10 +230,8 @@ define({ root: "Fri", "Sat" ], - "field-zone": "Zone", "months-standAlone-abbr-leap": "Adar II", - "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", - "dateFormatItem-y": "G y", + "field-zone": "Zone", "months-standAlone-narrow": [ "1", "2", @@ -229,8 +247,12 @@ define({ root: "12", "13" ], - "dateFormatItem-hm": "h:mm a", + "dateFormatItem-y": "G y", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "field-year-relative+-1": "last year", + "field-month-relative+-1": "last month", "dateTimeFormats-appendItem-Year": "{1} {0}", + "dateFormatItem-hm": "h:mm a", "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", "dayPeriods-format-abbr-pm": "PM", "days-format-abbr": [ @@ -255,6 +277,7 @@ define({ root: "S" ], "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", + "field-month": "Month", "days-standAlone-narrow": [ "S", "M", @@ -265,26 +288,43 @@ define({ root: "S" ], "dateFormatItem-MMM": "LLL", - "field-month": "Month", + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", "dayPeriods-format-wide-am": "AM", "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", "dateFormat-short": "GGGGG y-MM-dd", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", + "dayPeriods-format-narrow-noon": "n", "field-second": "Second", - "dateFormatItem-Ed": "d, E", + "field-sat-relative+-1": "last Saturday", + "field-sun-relative+-1": "last Sunday", + "field-month-relative+0": "this month", + "field-month-relative+1": "next month", "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "dateFormatItem-Ed": "d, E", "field-week": "Week", "dateFormat-medium": "G y MMM d", + "field-week-relative+-1": "last week", + "field-year-relative+0": "this year", "dateFormatItem-yyyyM": "GGGGG y-MM", - "dayPeriods-format-narrow-pm": "PM", + "field-year-relative+1": "next year", + "dayPeriods-format-narrow-pm": "p", "dateFormatItem-yyyyQQQQ": "G y QQQQ", "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "months-format-wide-leap": "Adar II", "dateFormatItem-GyMMM": "G y MMM", - "dateFormatItem-yyyy": "G y" + "field-mon-relative+-1": "last Monday", + "dateFormatItem-yyyy": "G y", + "field-week-relative+0": "this week", + "field-week-relative+1": "next week" } //end v1.x content , diff --git a/cldr/nls/hu/buddhist.js b/cldr/nls/hu/buddhist.js index 15a72cdb89..cc0354c582 100644 --- a/cldr/nls/hu/buddhist.js +++ b/cldr/nls/hu/buddhist.js @@ -18,12 +18,13 @@ define( "M", "J", "J", - "Á", + "A", "Sz", "O", "N", "D" ], + "field-second-relative+0": "most", "quarters-standAlone-narrow": [ "1.", "2.", @@ -31,12 +32,26 @@ define( "4." ], "field-weekday": "hét napja", + "field-wed-relative+0": "ez a szerda", + "field-wed-relative+1": "következő szerda", "dateFormatItem-GyMMMEd": "G y. MMM d., E", "dateFormatItem-MMMEd": "MMM d., E", "eraNarrow": [ "BK" ], + "field-tue-relative+-1": "előző kedd", + "days-format-short": [ + "V", + "H", + "K", + "Sze", + "Cs", + "P", + "Szo" + ], "dateFormat-long": "G y. MMMM d.", + "field-fri-relative+-1": "előző péntek", + "field-wed-relative+-1": "előző szerda", "months-format-wide": [ "január", "február", @@ -54,7 +69,8 @@ define( "dateFormatItem-yyyyQQQ": "G y. QQQ", "dayPeriods-format-wide-pm": "du.", "dateFormat-full": "G y. MMMM d., EEEE", - "dateFormatItem-yyyyMEd": "G y.MM.dd., E", + "dateFormatItem-yyyyMEd": "G y. MM. dd., E", + "field-thu-relative+-1": "előző csütörtök", "dateFormatItem-Md": "M. d.", "field-era": "éra", "months-standAlone-wide": [ @@ -95,9 +111,13 @@ define( "nov.", "dec." ], + "field-sat-relative+0": "ez a szombat", + "field-sat-relative+1": "következő szombat", "timeFormat-full": "H:mm:ss zzzz", "field-day-relative+0": "ma", + "field-thu-relative+0": "ez a csütörtök", "field-day-relative+1": "holnap", + "field-thu-relative+1": "következő csütörtök", "dateFormatItem-GyMMMd": "G y. MMM d.", "field-day-relative+2": "holnapután", "dateFormatItem-H": "H", @@ -127,6 +147,7 @@ define( "3. negyedév", "4. negyedév" ], + "dateFormatItem-Gy": "G y.", "dateFormatItem-yyyyMMMEd": "G y. MMM d., E", "days-standAlone-wide": [ "vasárnap", @@ -140,7 +161,9 @@ define( "dateFormatItem-yyyyMMM": "G y. MMM", "dateFormatItem-yyyyMMMd": "G y. MMM d.", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "ez a vasárnap", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "következő vasárnap", "quarters-standAlone-abbr": [ "N1", "N2", @@ -161,12 +184,20 @@ define( "P", "Szo" ], + "quarters-format-narrow": [ + "1.", + "2.", + "3.", + "4." + ], "field-day-relative+-1": "tegnap", "dateFormatItem-h": "a h", "dayPeriods-format-narrow-am": "de.", "field-day-relative+-2": "tegnapelőtt", "dateFormatItem-MMMd": "MMM d.", "dateFormatItem-MEd": "M. d., E", + "field-fri-relative+0": "ez a péntek", + "field-fri-relative+1": "következő péntek", "field-day": "nap", "days-format-wide": [ "vasárnap", @@ -178,6 +209,7 @@ define( "szombat" ], "field-zone": "időzóna", + "dateFormatItem-y": "G y.", "months-standAlone-narrow": [ "J", "F", @@ -192,8 +224,8 @@ define( "N", "D" ], - "field-year-relative+-1": "Előző év", - "field-month-relative+-1": "Előző hónap", + "field-year-relative+-1": "előző év", + "field-month-relative+-1": "előző hónap", "dateFormatItem-hm": "a h:mm", "days-format-abbr": [ "V", @@ -216,7 +248,7 @@ define( "P", "Sz" ], - "dateFormatItem-yyyyMd": "G y.MM.dd.", + "dateFormatItem-yyyyMd": "G y. MM. dd.", "field-month": "hónap", "days-standAlone-narrow": [ "V", @@ -227,25 +259,33 @@ define( "P", "Sz" ], + "field-tue-relative+0": "ez a kedd", + "field-tue-relative+1": "következő kedd", "dayPeriods-format-wide-am": "de.", - "dateFormat-short": "GGGGG y.MM.dd.", + "field-mon-relative+0": "ez a hétfő", + "field-mon-relative+1": "következő hétfő", + "dateFormat-short": "GGGGG y. M. d.", "field-second": "másodperc", - "field-month-relative+0": "Ez a hónap", - "field-month-relative+1": "Következő hónap", + "field-sat-relative+-1": "előző szombat", + "field-sun-relative+-1": "előző vasárnap", + "field-month-relative+0": "ez a hónap", + "field-month-relative+1": "következő hónap", "dateFormatItem-Ed": "d., E", "field-week": "hét", - "dateFormat-medium": "G y.MM.dd.", - "field-year-relative+0": "Ez az év", - "field-week-relative+-1": "Előző hét", - "dateFormatItem-yyyyM": "G y.M.", - "field-year-relative+1": "Következő év", + "dateFormat-medium": "G y. MMM d.", + "field-year-relative+0": "ez az év", + "field-week-relative+-1": "előző hét", + "dateFormatItem-yyyyM": "G y. MM.", + "field-year-relative+1": "következő év", "dayPeriods-format-narrow-pm": "du.", "dateFormatItem-yyyyQQQQ": "G y. QQQQ", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "a h:mm:ss", "dateFormatItem-GyMMM": "G y. MMM", - "field-week-relative+0": "Ez a hét", - "field-week-relative+1": "Következő hét" + "field-mon-relative+-1": "előző hétfő", + "dateFormatItem-yyyy": "G y.", + "field-week-relative+0": "ez a hét", + "field-week-relative+1": "következő hét" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/hu/chinese.js b/cldr/nls/hu/chinese.js index 231c520f25..23cd4d1a09 100644 --- a/cldr/nls/hu/chinese.js +++ b/cldr/nls/hu/chinese.js @@ -1,12 +1,20 @@ define( //begin v1.x content { - "field-second": "másodperc", - "field-year-relative+-1": "Előző év", - "field-week": "hét", - "field-month-relative+-1": "Előző hónap", + "field-sat-relative+0": "ez a szombat", + "field-sat-relative+1": "következő szombat", + "field-dayperiod": "napszak", + "field-sun-relative+-1": "előző vasárnap", + "field-mon-relative+-1": "előző hétfő", + "field-minute": "perc", "field-day-relative+-1": "tegnap", - "months-format-narrow": [ + "field-weekday": "hét napja", + "field-day-relative+-2": "tegnapelőtt", + "field-era": "éra", + "field-hour": "óra", + "field-sun-relative+0": "ez a vasárnap", + "field-sun-relative+1": "következő vasárnap", + "months-standAlone-abbr": [ "1", "2", "3", @@ -20,7 +28,21 @@ define( "11", "12" ], - "field-day-relative+-2": "tegnapelőtt", + "field-wed-relative+-1": "előző szerda", + "field-day-relative+0": "ma", + "field-day-relative+1": "holnap", + "field-day-relative+2": "holnapután", + "field-tue-relative+0": "ez a kedd", + "field-zone": "időzóna", + "field-tue-relative+1": "következő kedd", + "field-week-relative+-1": "előző hét", + "field-year-relative+0": "ez az év", + "field-year-relative+1": "következő év", + "field-sat-relative+-1": "előző szombat", + "field-year-relative+-1": "előző év", + "field-year": "év", + "field-fri-relative+0": "ez a péntek", + "field-fri-relative+1": "következő péntek", "months-standAlone-wide": [ "1", "2", @@ -35,9 +57,10 @@ define( "11", "12" ], - "field-year": "év", - "field-week-relative+0": "Ez a hét", - "months-standAlone-abbr": [ + "field-week": "hét", + "field-week-relative+0": "ez a hét", + "field-week-relative+1": "következő hét", + "months-format-abbr": [ "1", "2", "3", @@ -51,22 +74,14 @@ define( "11", "12" ], - "field-week-relative+1": "Következő hét", - "field-minute": "perc", - "field-week-relative+-1": "Előző hét", - "field-day-relative+0": "ma", - "field-hour": "óra", - "field-day-relative+1": "holnap", - "field-day-relative+2": "holnapután", - "field-day": "nap", - "field-month-relative+0": "Ez a hónap", - "field-month-relative+1": "Következő hónap", - "field-dayperiod": "napszak", + "field-month-relative+0": "ez a hónap", "field-month": "hónap", - "field-era": "éra", - "field-year-relative+0": "Ez az év", - "field-year-relative+1": "Következő év", - "months-format-abbr": [ + "field-month-relative+1": "következő hónap", + "field-fri-relative+-1": "előző péntek", + "field-second": "másodperc", + "field-tue-relative+-1": "előző kedd", + "field-day": "nap", + "months-format-narrow": [ "1", "2", "3", @@ -80,8 +95,15 @@ define( "11", "12" ], - "field-weekday": "hét napja", - "field-zone": "időzóna" + "field-mon-relative+0": "ez a hétfő", + "field-mon-relative+1": "következő hétfő", + "field-thu-relative+0": "ez a csütörtök", + "field-second-relative+0": "most", + "field-thu-relative+1": "következő csütörtök", + "field-wed-relative+0": "ez a szerda", + "field-wed-relative+1": "következő szerda", + "field-month-relative+-1": "előző hónap", + "field-thu-relative+-1": "előző csütörtök" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/hu/coptic.js b/cldr/nls/hu/coptic.js index a7cf23cef4..869694a023 100644 --- a/cldr/nls/hu/coptic.js +++ b/cldr/nls/hu/coptic.js @@ -1,28 +1,20 @@ define( //begin v1.x content { - "field-second": "másodperc", - "field-year-relative+-1": "Előző év", - "field-week": "hét", - "field-month-relative+-1": "Előző hónap", + "field-sat-relative+0": "ez a szombat", + "field-sat-relative+1": "következő szombat", + "field-dayperiod": "napszak", + "field-sun-relative+-1": "előző vasárnap", + "field-mon-relative+-1": "előző hétfő", + "field-minute": "perc", "field-day-relative+-1": "tegnap", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], + "field-weekday": "hét napja", "field-day-relative+-2": "tegnapelőtt", - "months-standAlone-wide": [ + "field-era": "éra", + "field-hour": "óra", + "field-sun-relative+0": "ez a vasárnap", + "field-sun-relative+1": "következő vasárnap", + "months-standAlone-abbr": [ "Tout", "Baba", "Hator", @@ -37,9 +29,22 @@ define( "Mesra", "Nasie" ], + "field-wed-relative+-1": "előző szerda", + "field-day-relative+0": "ma", + "field-day-relative+1": "holnap", + "field-day-relative+2": "holnapután", + "field-tue-relative+0": "ez a kedd", + "field-zone": "időzóna", + "field-tue-relative+1": "következő kedd", + "field-week-relative+-1": "előző hét", + "field-year-relative+0": "ez az év", + "field-year-relative+1": "következő év", + "field-sat-relative+-1": "előző szombat", + "field-year-relative+-1": "előző év", "field-year": "év", - "field-week-relative+0": "Ez a hét", - "months-standAlone-abbr": [ + "field-fri-relative+0": "ez a péntek", + "field-fri-relative+1": "következő péntek", + "months-standAlone-wide": [ "Tout", "Baba", "Hator", @@ -54,21 +59,9 @@ define( "Mesra", "Nasie" ], - "field-week-relative+1": "Következő hét", - "field-minute": "perc", - "field-week-relative+-1": "Előző hét", - "field-day-relative+0": "ma", - "field-hour": "óra", - "field-day-relative+1": "holnap", - "field-day-relative+2": "holnapután", - "field-day": "nap", - "field-month-relative+0": "Ez a hónap", - "field-month-relative+1": "Következő hónap", - "field-dayperiod": "napszak", - "field-month": "hónap", - "field-era": "éra", - "field-year-relative+0": "Ez az év", - "field-year-relative+1": "Következő év", + "field-week": "hét", + "field-week-relative+0": "ez a hét", + "field-week-relative+1": "következő hét", "months-format-abbr": [ "Tout", "Baba", @@ -84,8 +77,37 @@ define( "Mesra", "Nasie" ], - "field-weekday": "hét napja", - "field-zone": "időzóna" + "field-month-relative+0": "ez a hónap", + "field-month": "hónap", + "field-month-relative+1": "következő hónap", + "field-fri-relative+-1": "előző péntek", + "field-second": "másodperc", + "field-tue-relative+-1": "előző kedd", + "field-day": "nap", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "ez a hétfő", + "field-mon-relative+1": "következő hétfő", + "field-thu-relative+0": "ez a csütörtök", + "field-second-relative+0": "most", + "field-thu-relative+1": "következő csütörtök", + "field-wed-relative+0": "ez a szerda", + "field-wed-relative+1": "következő szerda", + "field-month-relative+-1": "előző hónap", + "field-thu-relative+-1": "előző csütörtök" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/hu/currency.js b/cldr/nls/hu/currency.js index a580182cd5..9b801f6335 100644 --- a/cldr/nls/hu/currency.js +++ b/cldr/nls/hu/currency.js @@ -1,23 +1,23 @@ define( //begin v1.x content { - "HKD_displayName": "Hongkongi dollár", - "CHF_displayName": "Svájci frank", + "HKD_displayName": "hongkongi dollár", + "CHF_displayName": "svájci frank", "JPY_symbol": "¥", - "CAD_displayName": "Kanadai dollár", + "CAD_displayName": "kanadai dollár", "HKD_symbol": "HKD", "CNY_displayName": "Kínai jüan renminbi", "USD_symbol": "$", - "AUD_displayName": "Ausztrál dollár", - "JPY_displayName": "Japán jen", + "AUD_displayName": "ausztrál dollár", + "JPY_displayName": "japán jen", "CAD_symbol": "CAD", - "USD_displayName": "USA dollár", + "USD_displayName": "USA-dollár", "EUR_symbol": "EUR", "CNY_symbol": "CNY", - "GBP_displayName": "Brit font sterling", + "GBP_displayName": "brit font sterling", "GBP_symbol": "GBP", "AUD_symbol": "AUD", - "EUR_displayName": "Euro" + "EUR_displayName": "euró" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/hu/ethiopic.js b/cldr/nls/hu/ethiopic.js index a41d0314d0..446f574277 100644 --- a/cldr/nls/hu/ethiopic.js +++ b/cldr/nls/hu/ethiopic.js @@ -1,28 +1,20 @@ define( //begin v1.x content { - "field-second": "másodperc", - "field-year-relative+-1": "Előző év", - "field-week": "hét", - "field-month-relative+-1": "Előző hónap", + "field-sat-relative+0": "ez a szombat", + "field-sat-relative+1": "következő szombat", + "field-dayperiod": "napszak", + "field-sun-relative+-1": "előző vasárnap", + "field-mon-relative+-1": "előző hétfő", + "field-minute": "perc", "field-day-relative+-1": "tegnap", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], + "field-weekday": "hét napja", "field-day-relative+-2": "tegnapelőtt", - "months-standAlone-wide": [ + "field-era": "éra", + "field-hour": "óra", + "field-sun-relative+0": "ez a vasárnap", + "field-sun-relative+1": "következő vasárnap", + "months-standAlone-abbr": [ "Meskerem", "Tekemt", "Hedar", @@ -37,9 +29,22 @@ define( "Nehasse", "Pagumen" ], + "field-wed-relative+-1": "előző szerda", + "field-day-relative+0": "ma", + "field-day-relative+1": "holnap", + "field-day-relative+2": "holnapután", + "field-tue-relative+0": "ez a kedd", + "field-zone": "időzóna", + "field-tue-relative+1": "következő kedd", + "field-week-relative+-1": "előző hét", + "field-year-relative+0": "ez az év", + "field-year-relative+1": "következő év", + "field-sat-relative+-1": "előző szombat", + "field-year-relative+-1": "előző év", "field-year": "év", - "field-week-relative+0": "Ez a hét", - "months-standAlone-abbr": [ + "field-fri-relative+0": "ez a péntek", + "field-fri-relative+1": "következő péntek", + "months-standAlone-wide": [ "Meskerem", "Tekemt", "Hedar", @@ -54,21 +59,9 @@ define( "Nehasse", "Pagumen" ], - "field-week-relative+1": "Következő hét", - "field-minute": "perc", - "field-week-relative+-1": "Előző hét", - "field-day-relative+0": "ma", - "field-hour": "óra", - "field-day-relative+1": "holnap", - "field-day-relative+2": "holnapután", - "field-day": "nap", - "field-month-relative+0": "Ez a hónap", - "field-month-relative+1": "Következő hónap", - "field-dayperiod": "napszak", - "field-month": "hónap", - "field-era": "éra", - "field-year-relative+0": "Ez az év", - "field-year-relative+1": "Következő év", + "field-week": "hét", + "field-week-relative+0": "ez a hét", + "field-week-relative+1": "következő hét", "months-format-abbr": [ "Meskerem", "Tekemt", @@ -84,8 +77,37 @@ define( "Nehasse", "Pagumen" ], - "field-weekday": "hét napja", - "field-zone": "időzóna" + "field-month-relative+0": "ez a hónap", + "field-month": "hónap", + "field-month-relative+1": "következő hónap", + "field-fri-relative+-1": "előző péntek", + "field-second": "másodperc", + "field-tue-relative+-1": "előző kedd", + "field-day": "nap", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "ez a hétfő", + "field-mon-relative+1": "következő hétfő", + "field-thu-relative+0": "ez a csütörtök", + "field-second-relative+0": "most", + "field-thu-relative+1": "következő csütörtök", + "field-wed-relative+0": "ez a szerda", + "field-wed-relative+1": "következő szerda", + "field-month-relative+-1": "előző hónap", + "field-thu-relative+-1": "előző csütörtök" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/hu/generic.js b/cldr/nls/hu/generic.js index 0124d8932f..ff05f14d85 100644 --- a/cldr/nls/hu/generic.js +++ b/cldr/nls/hu/generic.js @@ -1,66 +1,92 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "G y. MMM d., E", - "field-dayperiod": "napszak", - "field-minute": "perc", - "dateFormatItem-MMMEd": "MMM d., E", - "field-day-relative+-1": "tegnap", - "dateFormatItem-hms": "a h:mm:ss", - "field-day-relative+-2": "tegnapelőtt", + "field-second-relative+0": "most", "field-weekday": "hét napja", - "dateFormatItem-MMM": "LLL", - "dateFormatItem-Gy": "G y", + "field-wed-relative+0": "ez a szerda", + "field-wed-relative+1": "következő szerda", + "dateFormatItem-GyMMMEd": "G y. MMM d., E", + "dateFormatItem-MMMEd": "MMM d., E", + "field-tue-relative+-1": "előző kedd", + "dateFormat-long": "G y. MMMM d.", + "field-fri-relative+-1": "előző péntek", + "field-wed-relative+-1": "előző szerda", + "dateFormatItem-yyyyQQQ": "G y. QQQ", + "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "G y. MMMM d., EEEE", + "dateFormatItem-yyyyMEd": "G y. MM. dd., E", + "field-thu-relative+-1": "előző csütörtök", + "dateFormatItem-Md": "M. d.", "field-era": "éra", + "field-year": "év", + "dateFormatItem-yyyyMMMM": "G y. MMMM", "field-hour": "óra", - "dateFormatItem-y": "G y", - "dateFormatItem-yyyy": "G y", - "dateFormatItem-Ed": "d., E", + "field-sat-relative+0": "ez a szombat", + "field-sat-relative+1": "következő szombat", "field-day-relative+0": "ma", "field-day-relative+1": "holnap", - "field-day-relative+2": "holnapután", - "dateFormatItem-yyyyMMMM": "G y. MMMM", + "field-thu-relative+0": "ez a csütörtök", "dateFormatItem-GyMMMd": "G y. MMM d.", - "dateFormat-long": "G y. MMMM d.", - "field-zone": "időzóna", + "field-day-relative+2": "holnapután", + "field-thu-relative+1": "következő csütörtök", + "dateFormatItem-H": "H", + "dateFormatItem-Gy": "G y.", + "dateFormatItem-yyyyMMMEd": "G y. MMM d., E", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "G y. MMM", + "dateFormatItem-yyyyMMMd": "G y. MMM d.", + "dateFormatItem-MMMMd": "MMMM d.", + "field-sun-relative+0": "ez a vasárnap", "dateFormatItem-Hm": "H:mm", - "field-week-relative+-1": "Előző hét", - "dateFormat-medium": "G y.MM.dd.", - "dateFormatItem-Hms": "H:mm:ss", - "field-year-relative+0": "Ez az év", - "field-year-relative+1": "Következő év", - "field-year-relative+-1": "Előző év", + "field-sun-relative+1": "következő vasárnap", + "field-minute": "perc", + "field-dayperiod": "napszak", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "G y. QQQQ", - "field-year": "év", - "field-week": "hét", - "dateFormatItem-yyyyMd": "G y.MM.dd.", - "dateFormatItem-yyyyMMMd": "G y. MMM d.", - "dateFormatItem-yyyyMEd": "G y.MM.dd., E", + "field-day-relative+-1": "tegnap", + "dateFormatItem-h": "a h", + "dateTimeFormat-long": "{1} {0}", + "field-day-relative+-2": "tegnapelőtt", "dateFormatItem-MMMd": "MMM d.", - "field-week-relative+0": "Ez a hét", - "field-week-relative+1": "Következő hét", - "field-month-relative+0": "Ez a hónap", - "dateFormatItem-H": "H", + "dateFormatItem-MEd": "M. d., E", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "ez a péntek", + "field-fri-relative+1": "következő péntek", + "field-day": "nap", + "field-zone": "időzóna", + "dateFormatItem-y": "G y.", + "field-year-relative+-1": "előző év", + "field-month-relative+-1": "előző hónap", + "dateFormatItem-hm": "a h:mm", + "dateFormatItem-yyyyMd": "G y. MM. dd.", "field-month": "hónap", - "field-month-relative+1": "Következő hónap", - "dateFormatItem-MMMMd": "MMMM d.", - "dateFormatItem-M": "L", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "ez a kedd", + "field-tue-relative+1": "következő kedd", + "field-mon-relative+0": "ez a hétfő", + "field-mon-relative+1": "következő hétfő", + "dateFormat-short": "GGGGG y. M. d.", "field-second": "másodperc", - "dateFormatItem-GyMMMEd": "G y. MMM d., E", + "field-sat-relative+-1": "előző szombat", + "field-sun-relative+-1": "előző vasárnap", + "field-month-relative+0": "ez a hónap", + "field-month-relative+1": "következő hónap", + "dateFormatItem-Ed": "d., E", + "field-week": "hét", + "dateFormat-medium": "G y. MMM d.", + "field-year-relative+0": "ez az év", + "field-week-relative+-1": "előző hét", + "dateFormatItem-yyyyM": "G y. MM.", + "field-year-relative+1": "következő év", + "dateFormatItem-yyyyQQQQ": "G y. QQQQ", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "H:mm:ss", + "dateFormatItem-hms": "a h:mm:ss", "dateFormatItem-GyMMM": "G y. MMM", - "field-day": "nap", - "dateFormatItem-yyyyQQQ": "G y. QQQ", - "dateFormatItem-MEd": "M. d., E", - "dateFormatItem-hm": "a h:mm", - "dateFormat-short": "GGGGG y.MM.dd.", - "dateFormatItem-yyyyM": "G y.M.", - "dateFormat-full": "G y. MMMM d., EEEE", - "dateFormatItem-Md": "M. d.", - "dateFormatItem-yyyyMMM": "G y. MMM", - "dateFormatItem-d": "d", - "field-month-relative+-1": "Előző hónap", - "dateFormatItem-h": "a h" + "field-mon-relative+-1": "előző hétfő", + "dateFormatItem-yyyy": "G y.", + "field-week-relative+0": "ez a hét", + "field-week-relative+1": "következő hét" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/hu/gregorian.js b/cldr/nls/hu/gregorian.js index 0dbbeeda2d..567e07c72d 100644 --- a/cldr/nls/hu/gregorian.js +++ b/cldr/nls/hu/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "V", "H", @@ -18,12 +19,13 @@ define( "M", "J", "J", - "Á", + "A", "Sz", "O", "N", "D" ], + "field-second-relative+0": "most", "quarters-standAlone-narrow": [ "1.", "2.", @@ -32,13 +34,18 @@ define( ], "field-weekday": "hét napja", "dateFormatItem-yQQQ": "y. QQQ", - "dateFormatItem-yMEd": "y.MM.dd., E", + "dateFormatItem-yMEd": "y. MM. dd., E", + "field-wed-relative+0": "ez a szerda", + "field-wed-relative+1": "következő szerda", "dateFormatItem-GyMMMEd": "G y. MMM d., E", "dateFormatItem-MMMEd": "MMM d., E", "eraNarrow": [ "ie.", - "isz." + "isz.", + "i. sz.", + "Kr. u." ], + "field-tue-relative+-1": "előző kedd", "days-format-short": [ "V", "H", @@ -49,6 +56,8 @@ define( "Szo" ], "dateFormat-long": "y. MMMM d.", + "field-fri-relative+-1": "előző péntek", + "field-wed-relative+-1": "előző szerda", "months-format-wide": [ "január", "február", @@ -63,12 +72,14 @@ define( "november", "december" ], + "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "du.", "dateFormat-full": "y. MMMM d., EEEE", + "field-thu-relative+-1": "előző csütörtök", "dateFormatItem-Md": "M. d.", - "dateFormatItem-yMd": "y.MM.dd.", + "dateFormatItem-yMd": "y. MM. dd.", "field-era": "éra", - "dateFormatItem-yM": "y.M.", + "dateFormatItem-yM": "y. M.", "months-standAlone-wide": [ "január", "február", @@ -109,9 +120,13 @@ define( "nov.", "dec." ], + "field-sat-relative+0": "ez a szombat", + "field-sat-relative+1": "következő szombat", "timeFormat-full": "H:mm:ss zzzz", "field-day-relative+0": "ma", + "field-thu-relative+0": "ez a csütörtök", "field-day-relative+1": "holnap", + "field-thu-relative+1": "következő csütörtök", "dateFormatItem-GyMMMd": "G y. MMM d.", "field-day-relative+2": "holnapután", "dateFormatItem-H": "H", @@ -141,7 +156,7 @@ define( "3. negyedév", "4. negyedév" ], - "dateFormatItem-Gy": "G y", + "dateFormatItem-Gy": "G y.", "dateFormatItem-M": "L", "days-standAlone-wide": [ "vasárnap", @@ -154,7 +169,9 @@ define( ], "dateFormatItem-MMMMd": "MMMM d.", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "ez a vasárnap", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "következő vasárnap", "quarters-standAlone-abbr": [ "N1", "N2", @@ -163,7 +180,9 @@ define( ], "eraAbbr": [ "i. e.", - "i. sz." + "Kr. e.", + "i. sz.", + "Kr. u." ], "field-minute": "perc", "field-dayperiod": "napszak", @@ -179,18 +198,22 @@ define( "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", "quarters-format-narrow": [ - "1", - "2", - "3", - "4" + "1.", + "2.", + "3.", + "4." ], "field-day-relative+-1": "tegnap", "dateFormatItem-h": "a h", + "dateTimeFormat-long": "{1} {0}", "dayPeriods-format-narrow-am": "de.", "field-day-relative+-2": "tegnapelőtt", "dateFormatItem-MMMd": "MMM d.", "dateFormatItem-MEd": "M. d., E", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "ez a péntek", "dateFormatItem-yMMMM": "y. MMMM", + "field-fri-relative+1": "következő péntek", "field-day": "nap", "days-format-wide": [ "vasárnap", @@ -202,6 +225,7 @@ define( "szombat" ], "field-zone": "időzóna", + "dateFormatItem-y": "y.", "months-standAlone-narrow": [ "J", "F", @@ -216,8 +240,8 @@ define( "N", "D" ], - "field-year-relative+-1": "Előző év", - "field-month-relative+-1": "Előző hónap", + "field-year-relative+-1": "előző év", + "field-month-relative+-1": "előző hónap", "dateFormatItem-hm": "a h:mm", "days-format-abbr": [ "V", @@ -231,7 +255,9 @@ define( "dateFormatItem-yMMMd": "y. MMM d.", "eraNames": [ "időszámításunk előtt", - "időszámításunk szerint" + "időszámításunk szerint", + "i. sz.", + "Kr. u." ], "days-format-narrow": [ "V", @@ -242,7 +268,6 @@ define( "P", "Sz" ], - "field-month": "hónap", "days-standAlone-narrow": [ "V", "H", @@ -253,25 +278,38 @@ define( "Sz" ], "dateFormatItem-MMM": "LLL", + "field-month": "hónap", + "field-tue-relative+0": "ez a kedd", + "field-tue-relative+1": "következő kedd", "dayPeriods-format-wide-am": "de.", - "dateFormat-short": "y.MM.dd.", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "ez a hétfő", + "field-mon-relative+1": "következő hétfő", + "dateFormat-short": "y. MM. dd.", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", "field-second": "másodperc", + "field-sat-relative+-1": "előző szombat", "dateFormatItem-yMMMEd": "y. MMM d., E", - "field-month-relative+0": "Ez a hónap", - "field-month-relative+1": "Következő hónap", + "field-sun-relative+-1": "előző vasárnap", + "field-month-relative+0": "ez a hónap", + "field-month-relative+1": "következő hónap", "dateFormatItem-Ed": "d., E", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "hét", - "dateFormat-medium": "y.MM.dd.", - "field-year-relative+0": "Ez az év", - "field-week-relative+-1": "Előző hét", - "field-year-relative+1": "Következő év", + "dateFormat-medium": "y. MMM d.", + "field-year-relative+0": "ez az év", + "field-week-relative+-1": "előző hét", + "field-year-relative+1": "következő év", "dateFormatItem-mmss": "mm:ss", "dayPeriods-format-narrow-pm": "du.", + "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "a h:mm:ss", "dateFormatItem-GyMMM": "G y. MMM", - "field-week-relative+0": "Ez a hét", - "field-week-relative+1": "Következő hét" + "field-mon-relative+-1": "előző hétfő", + "field-week-relative+0": "ez a hét", + "field-week-relative+1": "következő hét" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/hu/hebrew.js b/cldr/nls/hu/hebrew.js index fed31e473e..834367d1cf 100644 --- a/cldr/nls/hu/hebrew.js +++ b/cldr/nls/hu/hebrew.js @@ -10,6 +10,7 @@ define( "P", "Szo" ], + "field-second-relative+0": "most", "quarters-standAlone-narrow": [ "1.", "2.", @@ -17,19 +18,33 @@ define( "4." ], "field-weekday": "hét napja", + "field-wed-relative+0": "ez a szerda", + "field-wed-relative+1": "következő szerda", "dateFormatItem-GyMMMEd": "G y. MMM d., E", "dateFormatItem-MMMEd": "MMM d., E", "eraNarrow": [ "TÉ" ], + "field-tue-relative+-1": "előző kedd", + "days-format-short": [ + "V", + "H", + "K", + "Sze", + "Cs", + "P", + "Szo" + ], "dateFormat-long": "G y. MMMM d.", + "field-fri-relative+-1": "előző péntek", + "field-wed-relative+-1": "előző szerda", "months-format-wide": [ "Tisri", "Hesván", "Kiszlév", "Tévész", "Svát", - "Ádár risón", + "Ádár I", "Ádár", "Niszán", "Ijár", @@ -41,7 +56,8 @@ define( "dateFormatItem-yyyyQQQ": "G y. QQQ", "dayPeriods-format-wide-pm": "du.", "dateFormat-full": "G y. MMMM d., EEEE", - "dateFormatItem-yyyyMEd": "G y.MM.dd., E", + "dateFormatItem-yyyyMEd": "G y. MM. dd., E", + "field-thu-relative+-1": "előző csütörtök", "dateFormatItem-Md": "M. d.", "field-era": "éra", "months-standAlone-wide": [ @@ -50,7 +66,7 @@ define( "Kiszlév", "Tévész", "Svát", - "Ádár risón", + "Ádár I", "Ádár", "Niszán", "Ijár", @@ -85,9 +101,13 @@ define( "Áv", "Elul" ], + "field-sat-relative+0": "ez a szombat", + "field-sat-relative+1": "következő szombat", "timeFormat-full": "H:mm:ss zzzz", "field-day-relative+0": "ma", + "field-thu-relative+0": "ez a csütörtök", "field-day-relative+1": "holnap", + "field-thu-relative+1": "következő csütörtök", "dateFormatItem-GyMMMd": "G y. MMM d.", "field-day-relative+2": "holnapután", "dateFormatItem-H": "H", @@ -97,7 +117,7 @@ define( "Kiszlév", "Tévész", "Svát", - "Ádár risón", + "Ádár I", "Ádár", "Niszán", "Ijár", @@ -118,6 +138,7 @@ define( "3. negyedév", "4. negyedév" ], + "dateFormatItem-Gy": "G y.", "dateFormatItem-yyyyMMMEd": "G y. MMM d., E", "days-standAlone-wide": [ "vasárnap", @@ -132,7 +153,9 @@ define( "dateFormatItem-yyyyMMMd": "G y. MMM d.", "months-standAlone-wide-leap": "Ádár II", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "ez a vasárnap", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "következő vasárnap", "quarters-standAlone-abbr": [ "N1", "N2", @@ -153,12 +176,20 @@ define( "P", "Szo" ], + "quarters-format-narrow": [ + "1.", + "2.", + "3.", + "4." + ], "field-day-relative+-1": "tegnap", "dateFormatItem-h": "a h", "dayPeriods-format-narrow-am": "de.", "field-day-relative+-2": "tegnapelőtt", "dateFormatItem-MMMd": "MMM d.", "dateFormatItem-MEd": "M. d., E", + "field-fri-relative+0": "ez a péntek", + "field-fri-relative+1": "következő péntek", "field-day": "nap", "days-format-wide": [ "vasárnap", @@ -171,8 +202,9 @@ define( ], "field-zone": "időzóna", "months-standAlone-abbr-leap": "Ádár II", - "field-year-relative+-1": "Előző év", - "field-month-relative+-1": "Előző hónap", + "dateFormatItem-y": "G y.", + "field-year-relative+-1": "előző év", + "field-month-relative+-1": "előző hónap", "dateFormatItem-hm": "a h:mm", "days-format-abbr": [ "V", @@ -195,7 +227,7 @@ define( "P", "Sz" ], - "dateFormatItem-yyyyMd": "G y.MM.dd.", + "dateFormatItem-yyyyMd": "G y. MM. dd.", "field-month": "hónap", "days-standAlone-narrow": [ "V", @@ -206,26 +238,34 @@ define( "P", "Sz" ], + "field-tue-relative+0": "ez a kedd", + "field-tue-relative+1": "következő kedd", "dayPeriods-format-wide-am": "de.", - "dateFormat-short": "GGGGG y.MM.dd.", + "field-mon-relative+0": "ez a hétfő", + "field-mon-relative+1": "következő hétfő", + "dateFormat-short": "GGGGG y. M. d.", "field-second": "másodperc", - "field-month-relative+0": "Ez a hónap", - "field-month-relative+1": "Következő hónap", + "field-sat-relative+-1": "előző szombat", + "field-sun-relative+-1": "előző vasárnap", + "field-month-relative+0": "ez a hónap", + "field-month-relative+1": "következő hónap", "dateFormatItem-Ed": "d., E", "field-week": "hét", - "dateFormat-medium": "G y.MM.dd.", - "field-year-relative+0": "Ez az év", - "field-week-relative+-1": "Előző hét", - "dateFormatItem-yyyyM": "G y.M.", - "field-year-relative+1": "Következő év", + "dateFormat-medium": "G y. MMM d.", + "field-year-relative+0": "ez az év", + "field-week-relative+-1": "előző hét", + "dateFormatItem-yyyyM": "G y. MM.", + "field-year-relative+1": "következő év", "dayPeriods-format-narrow-pm": "du.", "dateFormatItem-yyyyQQQQ": "G y. QQQQ", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "a h:mm:ss", - "months-format-wide-leap": "Ádár séni", + "months-format-wide-leap": "Ádár II", "dateFormatItem-GyMMM": "G y. MMM", - "field-week-relative+0": "Ez a hét", - "field-week-relative+1": "Következő hét" + "field-mon-relative+-1": "előző hétfő", + "dateFormatItem-yyyy": "G y.", + "field-week-relative+0": "ez a hét", + "field-week-relative+1": "következő hét" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/hu/indian.js b/cldr/nls/hu/indian.js index f0ef740661..1b1c84e690 100644 --- a/cldr/nls/hu/indian.js +++ b/cldr/nls/hu/indian.js @@ -1,27 +1,20 @@ define( //begin v1.x content { - "field-second": "másodperc", - "field-year-relative+-1": "Előző év", - "field-week": "hét", - "field-month-relative+-1": "Előző hónap", + "field-sat-relative+0": "ez a szombat", + "field-sat-relative+1": "következő szombat", + "field-dayperiod": "napszak", + "field-sun-relative+-1": "előző vasárnap", + "field-mon-relative+-1": "előző hétfő", + "field-minute": "perc", "field-day-relative+-1": "tegnap", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12" - ], + "field-weekday": "hét napja", "field-day-relative+-2": "tegnapelőtt", - "months-standAlone-wide": [ + "field-era": "éra", + "field-hour": "óra", + "field-sun-relative+0": "ez a vasárnap", + "field-sun-relative+1": "következő vasárnap", + "months-standAlone-abbr": [ "Chaitra", "Vaisakha", "Jyaistha", @@ -35,9 +28,22 @@ define( "Magha", "Phalguna" ], + "field-wed-relative+-1": "előző szerda", + "field-day-relative+0": "ma", + "field-day-relative+1": "holnap", + "field-day-relative+2": "holnapután", + "field-tue-relative+0": "ez a kedd", + "field-zone": "időzóna", + "field-tue-relative+1": "következő kedd", + "field-week-relative+-1": "előző hét", + "field-year-relative+0": "ez az év", + "field-year-relative+1": "következő év", + "field-sat-relative+-1": "előző szombat", + "field-year-relative+-1": "előző év", "field-year": "év", - "field-week-relative+0": "Ez a hét", - "months-standAlone-abbr": [ + "field-fri-relative+0": "ez a péntek", + "field-fri-relative+1": "következő péntek", + "months-standAlone-wide": [ "Chaitra", "Vaisakha", "Jyaistha", @@ -51,21 +57,9 @@ define( "Magha", "Phalguna" ], - "field-week-relative+1": "Következő hét", - "field-minute": "perc", - "field-week-relative+-1": "Előző hét", - "field-day-relative+0": "ma", - "field-hour": "óra", - "field-day-relative+1": "holnap", - "field-day-relative+2": "holnapután", - "field-day": "nap", - "field-month-relative+0": "Ez a hónap", - "field-month-relative+1": "Következő hónap", - "field-dayperiod": "napszak", - "field-month": "hónap", - "field-era": "éra", - "field-year-relative+0": "Ez az év", - "field-year-relative+1": "Következő év", + "field-week": "hét", + "field-week-relative+0": "ez a hét", + "field-week-relative+1": "következő hét", "months-format-abbr": [ "Chaitra", "Vaisakha", @@ -80,8 +74,36 @@ define( "Magha", "Phalguna" ], - "field-weekday": "hét napja", - "field-zone": "időzóna" + "field-month-relative+0": "ez a hónap", + "field-month": "hónap", + "field-month-relative+1": "következő hónap", + "field-fri-relative+-1": "előző péntek", + "field-second": "másodperc", + "field-tue-relative+-1": "előző kedd", + "field-day": "nap", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-mon-relative+0": "ez a hétfő", + "field-mon-relative+1": "következő hétfő", + "field-thu-relative+0": "ez a csütörtök", + "field-second-relative+0": "most", + "field-thu-relative+1": "következő csütörtök", + "field-wed-relative+0": "ez a szerda", + "field-wed-relative+1": "következő szerda", + "field-month-relative+-1": "előző hónap", + "field-thu-relative+-1": "előző csütörtök" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/hu/islamic.js b/cldr/nls/hu/islamic.js index f2126ea0ab..2298be7c0d 100644 --- a/cldr/nls/hu/islamic.js +++ b/cldr/nls/hu/islamic.js @@ -10,6 +10,7 @@ define( "P", "Szo" ], + "field-second-relative+0": "most", "quarters-standAlone-narrow": [ "1.", "2.", @@ -17,12 +18,26 @@ define( "4." ], "field-weekday": "hét napja", + "field-wed-relative+0": "ez a szerda", + "field-wed-relative+1": "következő szerda", "dateFormatItem-GyMMMEd": "G y. MMM d., E", "dateFormatItem-MMMEd": "MMM d., E", "eraNarrow": [ "MF" ], + "field-tue-relative+-1": "előző kedd", + "days-format-short": [ + "V", + "H", + "K", + "Sze", + "Cs", + "P", + "Szo" + ], "dateFormat-long": "G y. MMMM d.", + "field-fri-relative+-1": "előző péntek", + "field-wed-relative+-1": "előző szerda", "months-format-wide": [ "Moharrem", "Safar", @@ -40,7 +55,8 @@ define( "dateFormatItem-yyyyQQQ": "G y. QQQ", "dayPeriods-format-wide-pm": "du.", "dateFormat-full": "G y. MMMM d., EEEE", - "dateFormatItem-yyyyMEd": "G y.MM.dd., E", + "dateFormatItem-yyyyMEd": "G y. MM. dd., E", + "field-thu-relative+-1": "előző csütörtök", "dateFormatItem-Md": "M. d.", "field-era": "éra", "months-standAlone-wide": [ @@ -81,9 +97,13 @@ define( "Dsül k.", "Dsül h." ], + "field-sat-relative+0": "ez a szombat", + "field-sat-relative+1": "következő szombat", "timeFormat-full": "H:mm:ss zzzz", "field-day-relative+0": "ma", + "field-thu-relative+0": "ez a csütörtök", "field-day-relative+1": "holnap", + "field-thu-relative+1": "következő csütörtök", "dateFormatItem-GyMMMd": "G y. MMM d.", "field-day-relative+2": "holnapután", "dateFormatItem-H": "H", @@ -113,6 +133,7 @@ define( "3. negyedév", "4. negyedév" ], + "dateFormatItem-Gy": "G y.", "dateFormatItem-yyyyMMMEd": "G y. MMM d., E", "days-standAlone-wide": [ "vasárnap", @@ -126,7 +147,9 @@ define( "dateFormatItem-yyyyMMM": "G y. MMM", "dateFormatItem-yyyyMMMd": "G y. MMM d.", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "ez a vasárnap", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "következő vasárnap", "quarters-standAlone-abbr": [ "N1", "N2", @@ -147,12 +170,20 @@ define( "P", "Szo" ], + "quarters-format-narrow": [ + "1.", + "2.", + "3.", + "4." + ], "field-day-relative+-1": "tegnap", "dateFormatItem-h": "a h", "dayPeriods-format-narrow-am": "de.", "field-day-relative+-2": "tegnapelőtt", "dateFormatItem-MMMd": "MMM d.", "dateFormatItem-MEd": "M. d., E", + "field-fri-relative+0": "ez a péntek", + "field-fri-relative+1": "következő péntek", "field-day": "nap", "days-format-wide": [ "vasárnap", @@ -164,6 +195,7 @@ define( "szombat" ], "field-zone": "időzóna", + "dateFormatItem-y": "G y.", "months-standAlone-narrow": [ "1", "2", @@ -178,8 +210,8 @@ define( "11", "12" ], - "field-year-relative+-1": "Előző év", - "field-month-relative+-1": "Előző hónap", + "field-year-relative+-1": "előző év", + "field-month-relative+-1": "előző hónap", "dateFormatItem-hm": "a h:mm", "days-format-abbr": [ "V", @@ -202,7 +234,7 @@ define( "P", "Sz" ], - "dateFormatItem-yyyyMd": "G y.MM.dd.", + "dateFormatItem-yyyyMd": "G y. MM. dd.", "field-month": "hónap", "days-standAlone-narrow": [ "V", @@ -213,25 +245,33 @@ define( "P", "Sz" ], + "field-tue-relative+0": "ez a kedd", + "field-tue-relative+1": "következő kedd", "dayPeriods-format-wide-am": "de.", - "dateFormat-short": "GGGGG y.MM.dd.", + "field-mon-relative+0": "ez a hétfő", + "field-mon-relative+1": "következő hétfő", + "dateFormat-short": "GGGGG y. M. d.", "field-second": "másodperc", - "field-month-relative+0": "Ez a hónap", - "field-month-relative+1": "Következő hónap", + "field-sat-relative+-1": "előző szombat", + "field-sun-relative+-1": "előző vasárnap", + "field-month-relative+0": "ez a hónap", + "field-month-relative+1": "következő hónap", "dateFormatItem-Ed": "d., E", "field-week": "hét", - "dateFormat-medium": "G y.MM.dd.", - "field-year-relative+0": "Ez az év", - "field-week-relative+-1": "Előző hét", - "dateFormatItem-yyyyM": "G y.M.", - "field-year-relative+1": "Következő év", + "dateFormat-medium": "G y. MMM d.", + "field-year-relative+0": "ez az év", + "field-week-relative+-1": "előző hét", + "dateFormatItem-yyyyM": "G y. MM.", + "field-year-relative+1": "következő év", "dayPeriods-format-narrow-pm": "du.", "dateFormatItem-yyyyQQQQ": "G y. QQQQ", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "a h:mm:ss", "dateFormatItem-GyMMM": "G y. MMM", - "field-week-relative+0": "Ez a hét", - "field-week-relative+1": "Következő hét" + "field-mon-relative+-1": "előző hétfő", + "dateFormatItem-yyyy": "G y.", + "field-week-relative+0": "ez a hét", + "field-week-relative+1": "következő hét" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/hu/japanese.js b/cldr/nls/hu/japanese.js index 8bfcb0a615..7e8d347cf2 100644 --- a/cldr/nls/hu/japanese.js +++ b/cldr/nls/hu/japanese.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "dateFormat-medium": "G y.MM.dd.", - "field-second": "másodperc", - "field-year-relative+-1": "Előző év", - "field-week": "hét", - "field-month-relative+-1": "Előző hónap", + "field-sat-relative+0": "ez a szombat", + "field-sat-relative+1": "következő szombat", + "field-dayperiod": "napszak", + "field-sun-relative+-1": "előző vasárnap", + "field-mon-relative+-1": "előző hétfő", + "field-minute": "perc", "field-day-relative+-1": "tegnap", + "field-weekday": "hét napja", "field-day-relative+-2": "tegnapelőtt", - "field-year": "év", - "field-week-relative+0": "Ez a hét", - "field-week-relative+1": "Következő hét", - "field-minute": "perc", - "field-week-relative+-1": "Előző hét", - "field-day-relative+0": "ma", + "field-era": "éra", "field-hour": "óra", + "field-sun-relative+0": "ez a vasárnap", + "field-sun-relative+1": "következő vasárnap", + "field-wed-relative+-1": "előző szerda", + "field-day-relative+0": "ma", "field-day-relative+1": "holnap", - "dateFormat-long": "G y. MMMM d.", "field-day-relative+2": "holnapután", - "field-day": "nap", - "field-month-relative+0": "Ez a hónap", - "field-month-relative+1": "Következő hónap", - "field-dayperiod": "napszak", + "dateFormat-long": "G y. MMMM d.", + "field-tue-relative+0": "ez a kedd", + "field-zone": "időzóna", + "field-tue-relative+1": "következő kedd", + "field-week-relative+-1": "előző hét", + "dateFormat-medium": "G y.MM.dd.", + "field-year-relative+0": "ez az év", + "field-year-relative+1": "következő év", + "field-sat-relative+-1": "előző szombat", + "field-year-relative+-1": "előző év", + "field-year": "év", + "field-fri-relative+0": "ez a péntek", + "field-fri-relative+1": "következő péntek", + "field-week": "hét", + "field-week-relative+0": "ez a hét", + "field-week-relative+1": "következő hét", + "field-month-relative+0": "ez a hónap", "field-month": "hónap", + "field-month-relative+1": "következő hónap", + "field-fri-relative+-1": "előző péntek", + "field-second": "másodperc", + "field-tue-relative+-1": "előző kedd", + "field-day": "nap", + "field-mon-relative+0": "ez a hétfő", + "field-mon-relative+1": "következő hétfő", + "field-thu-relative+0": "ez a csütörtök", + "field-second-relative+0": "most", "dateFormat-short": "GGGGG y.MM.dd.", - "field-era": "éra", - "field-year-relative+0": "Ez az év", - "field-year-relative+1": "Következő év", + "field-thu-relative+1": "következő csütörtök", "dateFormat-full": "G y. MMMM d., EEEE", - "field-weekday": "hét napja", - "field-zone": "időzóna" + "field-wed-relative+0": "ez a szerda", + "field-wed-relative+1": "következő szerda", + "field-month-relative+-1": "előző hónap", + "field-thu-relative+-1": "előző csütörtök" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/hu/number.js b/cldr/nls/hu/number.js index de850a3ea4..12718e6460 100644 --- a/cldr/nls/hu/number.js +++ b/cldr/nls/hu/number.js @@ -10,6 +10,7 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", diff --git a/cldr/nls/hu/persian.js b/cldr/nls/hu/persian.js index a90ac974fa..9d241c7d10 100644 --- a/cldr/nls/hu/persian.js +++ b/cldr/nls/hu/persian.js @@ -24,6 +24,7 @@ define( "11", "12" ], + "field-second-relative+0": "most", "quarters-standAlone-narrow": [ "1.", "2.", @@ -31,9 +32,23 @@ define( "4." ], "field-weekday": "hét napja", + "field-wed-relative+0": "ez a szerda", + "field-wed-relative+1": "következő szerda", "dateFormatItem-GyMMMEd": "G y. MMM d., E", "dateFormatItem-MMMEd": "MMM d., E", + "field-tue-relative+-1": "előző kedd", + "days-format-short": [ + "V", + "H", + "K", + "Sze", + "Cs", + "P", + "Szo" + ], "dateFormat-long": "G y. MMMM d.", + "field-fri-relative+-1": "előző péntek", + "field-wed-relative+-1": "előző szerda", "months-format-wide": [ "január", "február", @@ -51,7 +66,8 @@ define( "dateFormatItem-yyyyQQQ": "G y. QQQ", "dayPeriods-format-wide-pm": "du.", "dateFormat-full": "G y. MMMM d., EEEE", - "dateFormatItem-yyyyMEd": "G y.MM.dd., E", + "dateFormatItem-yyyyMEd": "G y. MM. dd., E", + "field-thu-relative+-1": "előző csütörtök", "dateFormatItem-Md": "M. d.", "field-era": "éra", "months-standAlone-wide": [ @@ -92,9 +108,13 @@ define( "Bahman", "Esfand" ], + "field-sat-relative+0": "ez a szombat", + "field-sat-relative+1": "következő szombat", "timeFormat-full": "H:mm:ss zzzz", "field-day-relative+0": "ma", + "field-thu-relative+0": "ez a csütörtök", "field-day-relative+1": "holnap", + "field-thu-relative+1": "következő csütörtök", "dateFormatItem-GyMMMd": "G y. MMM d.", "field-day-relative+2": "holnapután", "dateFormatItem-H": "H", @@ -124,6 +144,7 @@ define( "3. negyedév", "4. negyedév" ], + "dateFormatItem-Gy": "G y.", "dateFormatItem-yyyyMMMEd": "G y. MMM d., E", "days-standAlone-wide": [ "vasárnap", @@ -137,7 +158,9 @@ define( "dateFormatItem-yyyyMMM": "G y. MMM", "dateFormatItem-yyyyMMMd": "G y. MMM d.", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "ez a vasárnap", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "következő vasárnap", "quarters-standAlone-abbr": [ "N1", "N2", @@ -155,12 +178,20 @@ define( "P", "Szo" ], + "quarters-format-narrow": [ + "1.", + "2.", + "3.", + "4." + ], "field-day-relative+-1": "tegnap", "dateFormatItem-h": "a h", "dayPeriods-format-narrow-am": "de.", "field-day-relative+-2": "tegnapelőtt", "dateFormatItem-MMMd": "MMM d.", "dateFormatItem-MEd": "M. d., E", + "field-fri-relative+0": "ez a péntek", + "field-fri-relative+1": "következő péntek", "field-day": "nap", "days-format-wide": [ "vasárnap", @@ -172,6 +203,7 @@ define( "szombat" ], "field-zone": "időzóna", + "dateFormatItem-y": "G y.", "months-standAlone-narrow": [ "J", "F", @@ -186,8 +218,8 @@ define( "N", "D" ], - "field-year-relative+-1": "Előző év", - "field-month-relative+-1": "Előző hónap", + "field-year-relative+-1": "előző év", + "field-month-relative+-1": "előző hónap", "dateFormatItem-hm": "a h:mm", "days-format-abbr": [ "V", @@ -207,7 +239,7 @@ define( "P", "Sz" ], - "dateFormatItem-yyyyMd": "G y.MM.dd.", + "dateFormatItem-yyyyMd": "G y. MM. dd.", "field-month": "hónap", "days-standAlone-narrow": [ "V", @@ -218,25 +250,33 @@ define( "P", "Sz" ], + "field-tue-relative+0": "ez a kedd", + "field-tue-relative+1": "következő kedd", "dayPeriods-format-wide-am": "de.", - "dateFormat-short": "GGGGG y.MM.dd.", + "field-mon-relative+0": "ez a hétfő", + "field-mon-relative+1": "következő hétfő", + "dateFormat-short": "GGGGG y. M. d.", "field-second": "másodperc", - "field-month-relative+0": "Ez a hónap", - "field-month-relative+1": "Következő hónap", + "field-sat-relative+-1": "előző szombat", + "field-sun-relative+-1": "előző vasárnap", + "field-month-relative+0": "ez a hónap", + "field-month-relative+1": "következő hónap", "dateFormatItem-Ed": "d., E", "field-week": "hét", - "dateFormat-medium": "G y.MM.dd.", - "field-year-relative+0": "Ez az év", - "field-week-relative+-1": "Előző hét", - "dateFormatItem-yyyyM": "G y.M.", - "field-year-relative+1": "Következő év", + "dateFormat-medium": "G y. MMM d.", + "field-year-relative+0": "ez az év", + "field-week-relative+-1": "előző hét", + "dateFormatItem-yyyyM": "G y. MM.", + "field-year-relative+1": "következő év", "dayPeriods-format-narrow-pm": "du.", "dateFormatItem-yyyyQQQQ": "G y. QQQQ", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "a h:mm:ss", "dateFormatItem-GyMMM": "G y. MMM", - "field-week-relative+0": "Ez a hét", - "field-week-relative+1": "Következő hét" + "field-mon-relative+-1": "előző hétfő", + "dateFormatItem-yyyy": "G y.", + "field-week-relative+0": "ez a hét", + "field-week-relative+1": "következő hét" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/hu/roc.js b/cldr/nls/hu/roc.js index fa9bdfb986..9d6031d940 100644 --- a/cldr/nls/hu/roc.js +++ b/cldr/nls/hu/roc.js @@ -1,34 +1,56 @@ define( //begin v1.x content { - "field-second": "másodperc", - "field-year-relative+-1": "Előző év", - "field-week": "hét", - "field-month-relative+-1": "Előző hónap", + "field-sat-relative+0": "ez a szombat", + "field-sat-relative+1": "következő szombat", + "field-dayperiod": "napszak", + "field-sun-relative+-1": "előző vasárnap", + "field-mon-relative+-1": "előző hétfő", + "field-minute": "perc", "field-day-relative+-1": "tegnap", + "field-weekday": "hét napja", "field-day-relative+-2": "tegnapelőtt", - "field-year": "év", - "field-week-relative+0": "Ez a hét", - "field-week-relative+1": "Következő hét", - "field-minute": "perc", - "field-week-relative+-1": "Előző hét", - "field-day-relative+0": "ma", + "field-era": "éra", "field-hour": "óra", + "field-sun-relative+0": "ez a vasárnap", + "field-sun-relative+1": "következő vasárnap", + "field-wed-relative+-1": "előző szerda", + "field-day-relative+0": "ma", "field-day-relative+1": "holnap", - "field-day-relative+2": "holnapután", - "field-day": "nap", - "field-month-relative+0": "Ez a hónap", - "field-month-relative+1": "Következő hónap", - "field-dayperiod": "napszak", - "field-month": "hónap", - "field-era": "éra", - "field-year-relative+0": "Ez az év", - "field-year-relative+1": "Következő év", "eraAbbr": [ "R.O.C. előtt" ], - "field-weekday": "hét napja", - "field-zone": "időzóna" + "field-day-relative+2": "holnapután", + "field-tue-relative+0": "ez a kedd", + "field-zone": "időzóna", + "field-tue-relative+1": "következő kedd", + "field-week-relative+-1": "előző hét", + "field-year-relative+0": "ez az év", + "field-year-relative+1": "következő év", + "field-sat-relative+-1": "előző szombat", + "field-year-relative+-1": "előző év", + "field-year": "év", + "field-fri-relative+0": "ez a péntek", + "field-fri-relative+1": "következő péntek", + "field-week": "hét", + "field-week-relative+0": "ez a hét", + "field-week-relative+1": "következő hét", + "field-month-relative+0": "ez a hónap", + "field-month": "hónap", + "field-month-relative+1": "következő hónap", + "field-fri-relative+-1": "előző péntek", + "field-second": "másodperc", + "field-tue-relative+-1": "előző kedd", + "field-day": "nap", + "field-mon-relative+0": "ez a hétfő", + "field-mon-relative+1": "következő hétfő", + "field-thu-relative+0": "ez a csütörtök", + "field-second-relative+0": "most", + "field-thu-relative+1": "következő csütörtök", + "field-wed-relative+0": "ez a szerda", + "field-wed-relative+1": "következő szerda", + "field-month-relative+-1": "előző hónap", + "field-thu-relative+-1": "előző csütörtök" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/indian.js b/cldr/nls/indian.js index 19be5ceeb1..a3e9b27dc9 100644 --- a/cldr/nls/indian.js +++ b/cldr/nls/indian.js @@ -2,20 +2,36 @@ define({ root: //begin v1.x content { - "eraNarrow@localeAlias336": { + "dateTimeFormats-appendItem-Year": "{1} {0}", + "field-tue-relative+-1": "last Tuesday", + "field-year": "Year", + "dateFormatItem-Hm": "HH:mm", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", + "dateFormatItem-ms": "mm:ss", + "timeFormat-short": "HH:mm", + "field-minute": "Minute", + "eraNames@localeAlias295": { "bundle": "indian", "target": "eraAbbr" }, - "days-standAlone-short": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" - ], - "months-format-narrow": [ + "dateTimeFormat-short": "{1} {0}", + "field-day-relative+0": "today", + "field-day-relative+1": "tomorrow", + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", + "dayPeriods-format-narrow-am": "a", + "dateFormatItem-MMMd": "MMM d", + "dayPeriods-format-abbr-am": "AM", + "field-week-relative+0": "this week", + "field-month-relative+0": "this month", + "field-week-relative+1": "next week", + "field-month-relative+1": "next month", + "timeFormat-medium": "HH:mm:ss", + "field-second-relative+0": "now", + "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "dateFormatItem-yyyyQQQ": "G y QQQ", + "months-standAlone-narrow": [ "1", "2", "3", @@ -29,33 +45,112 @@ define({ root: "11", "12" ], - "quarters-standAlone-narrow": [ - "1", - "2", - "3", - "4" + "eraNames": [ + "Saka" ], - "months-standAlone-wide@localeAlias310": { - "bundle": "indian", - "target": "months-format-wide" - }, - "field-weekday": "Day of the Week", "dateFormatItem-GyMMMEd": "G y MMM d, E", - "dateFormatItem-MMMEd": "MMM d, E", - "months-standAlone-abbr@localeAlias308": { - "bundle": "indian", - "target": "months-format-abbr" + "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", + "field-day": "Day", + "days-standAlone-wide@localeAlias285": { + "bundle": "gregorian", + "target": "days-format-wide" }, - "months-standAlone-abbr@localeAlias309": { + "field-year-relative+-1": "last year", + "dayPeriods-format-wide-am": "AM", + "quarters-format-narrow@localeAlias288": { + "bundle": "gregorian", + "target": "quarters-standAlone-narrow" + }, + "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", + "field-wed-relative+-1": "last Wednesday", + "quarters@localeAlias286": { + "bundle": "gregorian", + "target": "quarters" + }, + "days-standAlone-abbr@localeAlias280": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "days-standAlone-abbr@localeAlias281": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dateTimeFormat-medium": "{1} {0}", + "days-standAlone-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "field-second": "Second", + "dateFormatItem-Ehms": "E h:mm:ss a", + "dateFormat-long": "G y MMMM d", + "dateFormatItem-GyMMMd": "G y MMM d", + "quarters-standAlone-wide": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "days-format-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "days-format-abbr@localeAlias276": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "field-mon-relative+-1": "last Monday", + "dateFormatItem-GyMMM": "G y MMM", + "field-month": "Month", + "dateFormatItem-MMM": "LLL", + "field-dayperiod": "Dayperiod", + "dayPeriods-format-narrow-pm": "p", + "dateFormat-medium": "G y MMM d", + "eraAbbr": [ + "Saka" + ], + "quarters-standAlone-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "months-format-abbr@localeAlias270": { "bundle": "indian", "target": "months-format-wide" }, - "eraNarrow": [ - "SAKA" + "dayPeriods-format-abbr-pm": "PM", + "dateFormatItem-yyyyM": "GGGGG y-MM", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" ], - "months-format-abbr@localeAlias306": { + "dateFormatItem-yyyyMMMd": "G y MMM d", + "months-format-narrow@localeAlias271": { "bundle": "indian", - "target": "months-format-wide" + "target": "months-standAlone-narrow" }, "days-format-short": [ "Sun", @@ -66,12 +161,22 @@ define({ root: "Fri", "Sat" ], - "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", - "dayPeriods-format-abbr@localeAlias332": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "quarters-format-narrow": [ + "1", + "2", + "3", + "4" + ], + "dateFormat@localeAlias297": { + "bundle": "generic", + "target": "dateFormat" }, - "dateFormat-long": "G y MMMM d", + "dayPeriods-format-wide-pm": "PM", + "field-sat-relative+-1": "last Saturday", + "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", + "dateTimeFormat-long": "{1} {0}", + "dateFormatItem-Md": "MM-dd", + "field-hour": "Hour", "months-format-wide": [ "Chaitra", "Vaisakha", @@ -86,16 +191,20 @@ define({ root: "Magha", "Phalguna" ], - "dateFormatItem-yyyyQQQ": "G y QQQ", - "dateTimeFormat-medium": "{1} {0}", - "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "G y MMMM d, EEEE", - "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", - "dateFormatItem-Md": "MM-dd", - "dayPeriods-format-abbr-am": "AM", - "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", - "field-era": "Era", - "months-standAlone-wide": [ + "field-month-relative+-1": "last month", + "dateFormatItem-Hms": "HH:mm:ss", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "dayPeriods-format-narrow-noon": "n", + "quarters-standAlone-wide@localeAlias291": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", + "field-week-relative+-1": "last week", + "dateFormatItem-Ehm": "E h:mm a", + "months-format-abbr": [ "Chaitra", "Vaisakha", "Jyaistha", @@ -109,18 +218,31 @@ define({ root: "Magha", "Phalguna" ], - "timeFormat-short": "HH:mm", - "quarters-format-wide": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], "timeFormat-long": "HH:mm:ss z", - "field-year": "Year", + "dateFormat-short": "GGGGG y-MM-dd", + "quarters-standAlone-abbr@localeAlias289": { + "bundle": "gregorian", + "target": "quarters-format-abbr" + }, + "days-standAlone-wide": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateFormatItem-yyyyMMMEd": "G y MMM d, E", "dateTimeFormats-appendItem-Era": "{1} {0}", - "field-hour": "Hour", - "months-format-abbr": [ + "dateFormatItem-H": "HH", + "dateFormatItem-yyyy": "G y", + "quarters-standAlone-abbr@localeAlias290": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "dateFormatItem-M": "L", + "months-standAlone-wide": [ "Chaitra", "Vaisakha", "Jyaistha", @@ -134,19 +256,59 @@ define({ root: "Magha", "Phalguna" ], - "months-format-narrow@localeAlias307": { + "quarters-format-abbr@localeAlias287": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "field-sun-relative+-1": "last Sunday", + "days-standAlone-abbr": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateTimeFormat-full": "{1} {0}", + "dateFormatItem-hm": "h:mm a", + "days-standAlone-short@localeAlias282": { + "bundle": "gregorian", + "target": "days-format-short" + }, + "days-format-short@localeAlias278": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "months-standAlone-wide@localeAlias274": { "bundle": "indian", - "target": "months-standAlone-narrow" + "target": "months-format-wide" }, - "quarters@localeAlias322": { + "days-standAlone-short@localeAlias283": { "bundle": "gregorian", - "target": "quarters" + "target": "days-format-abbr" }, - "timeFormat-full": "HH:mm:ss zzzz", - "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", - "dateFormatItem-GyMMMd": "G y MMM d", + "dateFormatItem-d": "d", + "days-format-short@localeAlias279": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "field-weekday": "Day of the Week", + "days-standAlone-short@localeAlias284": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dayPeriods-format-abbr@localeAlias293": { + "bundle": "gregorian", + "target": "dayPeriods-format-wide" + }, + "field-sat-relative+0": "this Saturday", + "dateFormatItem-h": "h a", + "dayPeriods-format-abbr@localeAlias294": { + "bundle": "gregorian", + "target": "dayPeriods-format-wide" + }, + "field-sat-relative+1": "next Saturday", "months-standAlone-abbr": [ "Chaitra", "Vaisakha", @@ -161,23 +323,49 @@ define({ root: "Magha", "Phalguna" ], - "dateFormatItem-H": "HH", - "quarters-format-abbr": [ - "Q1", - "Q2", - "Q3", - "Q4" + "months-standAlone-abbr@localeAlias272": { + "bundle": "indian", + "target": "months-format-abbr" + }, + "timeFormat-full": "HH:mm:ss zzzz", + "months-standAlone-abbr@localeAlias273": { + "bundle": "indian", + "target": "months-format-wide" + }, + "dateFormatItem-MEd": "MM-dd, E", + "dateFormatItem-y": "G y", + "eraNarrow@localeAlias296": { + "bundle": "indian", + "target": "eraAbbr" + }, + "field-thu-relative+0": "this Thursday", + "timeFormat@localeAlias298": { + "bundle": "gregorian", + "target": "timeFormat" + }, + "field-thu-relative+1": "next Thursday", + "dateFormatItem-hms": "h:mm:ss a", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "dayPeriods-format-abbr-noon": "noon", + "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", + "field-thu-relative+-1": "last Thursday", + "field-week": "Week", + "quarters-standAlone-narrow": [ + "1", + "2", + "3", + "4" ], - "quarters-standAlone-wide": [ + "quarters-format-wide": [ "Q1", "Q2", "Q3", "Q4" ], - "dateFormatItem-Gy": "G y", - "dateFormatItem-yyyyMMMEd": "G y MMM d, E", - "dateFormatItem-M": "L", - "days-standAlone-wide": [ + "dateFormatItem-Ed": "d, E", + "dateFormatItem-yyyyMMM": "G y MMM", + "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", + "days-standAlone-short": [ "Sun", "Mon", "Tue", @@ -186,66 +374,24 @@ define({ root: "Fri", "Sat" ], - "dateFormatItem-yyyyMMM": "G y MMM", - "dateFormatItem-yyyyMMMd": "G y MMM d", - "timeFormat-medium": "HH:mm:ss", - "quarters-standAlone-abbr": [ + "dateFormatItem-yyyyQQQQ": "G y QQQQ", + "quarters-format-abbr": [ "Q1", "Q2", "Q3", "Q4" ], - "dateFormatItem-Hm": "HH:mm", - "eraAbbr": [ - "SAKA" - ], - "field-minute": "Minute", - "field-dayperiod": "Dayperiod", - "days-standAlone-abbr": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" - ], - "days-format-short@localeAlias314": { - "bundle": "gregorian", - "target": "days-format-abbr" - }, - "days-format-short@localeAlias315": { + "field-year-relative+0": "this year", + "field-year-relative+1": "next year", + "dayPeriods@localeAlias292": { "bundle": "gregorian", - "target": "days-format-wide" - }, - "eraNames@localeAlias335": { - "bundle": "indian", - "target": "eraAbbr" - }, - "dateFormatItem-d": "d", - "dateFormatItem-ms": "mm:ss", - "dateFormat@localeAlias337": { - "bundle": "generic", - "target": "dateFormat" + "target": "dayPeriods" }, - "quarters-format-narrow": [ - "1", - "2", - "3", - "4" + "field-fri-relative+-1": "last Friday", + "eraNarrow": [ + "Saka" ], - "field-day-relative+-1": "Yesterday", - "dayPeriods-format-narrow-am": "AM", - "dateTimeFormat-long": "{1} {0}", - "dateFormatItem-h": "h a", - "dateFormatItem-MMMd": "MMM d", - "dateFormatItem-MEd": "MM-dd, E", - "days-standAlone-wide@localeAlias321": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "dateTimeFormat-full": "{1} {0}", - "field-day": "Day", + "dayPeriods-format-wide-noon": "noon", "days-format-wide": [ "Sun", "Mon", @@ -255,67 +401,20 @@ define({ root: "Fri", "Sat" ], - "timeFormat@localeAlias338": { - "bundle": "gregorian", - "target": "timeFormat" + "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", + "dateFormatItem-EHm": "E HH:mm", + "dateTime@localeAlias299": { + "bundle": "generic", + "target": "dateTime" }, "field-zone": "Zone", - "days-standAlone-abbr@localeAlias316": { + "days-format-narrow@localeAlias277": { "bundle": "gregorian", - "target": "days-format-abbr" - }, - "days-standAlone-short@localeAlias318": { - "bundle": "gregorian", - "target": "days-format-short" - }, - "months-standAlone-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12" - ], - "days-standAlone-abbr@localeAlias317": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "dateFormatItem-y": "G y", - "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", - "days-standAlone-short@localeAlias319": { - "bundle": "gregorian", - "target": "days-format-abbr" - }, - "dayPeriods-format-narrow@localeAlias330": { - "bundle": "gregorian", - "target": "dayPeriods-format-abbr" - }, - "dayPeriods-format-narrow@localeAlias331": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" - }, - "dayPeriods-format-narrow@localeAlias333": { - "bundle": "gregorian", - "target": "dayPeriods-format-abbr" - }, - "dayPeriods-format-narrow@localeAlias334": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" - }, - "dateFormatItem-hm": "h:mm a", - "dateTimeFormats-appendItem-Year": "{1} {0}", - "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", - "dayPeriods-format-abbr-pm": "PM", - "dayPeriods@localeAlias328": { - "bundle": "gregorian", - "target": "dayPeriods" + "target": "days-standAlone-narrow" }, + "dateFormatItem-MMMEd": "MMM d, E", + "dateFormatItem-EHms": "E HH:mm:ss", + "field-day-relative+-1": "yesterday", "days-format-abbr": [ "Sun", "Mon", @@ -325,91 +424,14 @@ define({ root: "Fri", "Sat" ], - "eraNames": [ - "SAKA" - ], - "days-format-narrow": [ - "S", - "M", - "T", - "W", - "T", - "F", - "S" - ], - "quarters-standAlone-wide@localeAlias327": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", - "days-standAlone-short@localeAlias320": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "days-format-abbr@localeAlias312": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "days-standAlone-narrow": [ - "S", - "M", - "T", - "W", - "T", - "F", - "S" - ], - "dateFormatItem-MMM": "LLL", - "field-month": "Month", - "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", - "dayPeriods-format-wide-am": "AM", - "days-format-narrow@localeAlias313": { - "bundle": "gregorian", - "target": "days-standAlone-narrow" - }, - "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", - "days@localeAlias311": { - "bundle": "gregorian", - "target": "days" - }, + "field-sun-relative+0": "this Sunday", + "field-sun-relative+1": "next Sunday", "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", - "dateFormat-short": "GGGGG y-MM-dd", - "field-second": "Second", - "dateFormatItem-Ed": "d, E", - "dateTimeFormats-appendItem-Timezone": "{0} {1}", - "field-week": "Week", - "dateFormat-medium": "G y MMM d", - "dateFormatItem-yyyyM": "GGGGG y-MM", - "dayPeriods-format-narrow-pm": "PM", - "dateFormatItem-yyyyQQQQ": "G y QQQQ", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Hms": "HH:mm:ss", - "dateFormatItem-hms": "h:mm:ss a", - "quarters-standAlone-abbr@localeAlias325": { - "bundle": "gregorian", - "target": "quarters-format-abbr" - }, - "dateFormatItem-GyMMM": "G y MMM", - "quarters-standAlone-abbr@localeAlias326": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "dateTime@localeAlias339": { - "bundle": "generic", - "target": "dateTime" - }, - "dateFormatItem-yyyy": "G y", - "dayPeriods-format-abbr@localeAlias329": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" - }, - "quarters-format-abbr@localeAlias323": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "quarters-format-narrow@localeAlias324": { + "dateFormatItem-Gy": "G y", + "field-era": "Era", + "days@localeAlias275": { "bundle": "gregorian", - "target": "quarters-standAlone-narrow" + "target": "days" } } //end v1.x content @@ -418,6 +440,7 @@ define({ root: "fr": true, "hu": true, "ja": true, + "nl": true, "pl": true, "pt": true, "ru": true, diff --git a/cldr/nls/islamic-civil.js b/cldr/nls/islamic-civil.js index 4b71c99389..b2b1cfbefd 100644 --- a/cldr/nls/islamic-civil.js +++ b/cldr/nls/islamic-civil.js @@ -2,6 +2,7 @@ define({ root: //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "Sun", "Mon", @@ -25,6 +26,7 @@ define({ root: "11", "12" ], + "field-second-relative+0": "now", "quarters-standAlone-narrow": [ "1", "2", @@ -32,11 +34,14 @@ define({ root: "4" ], "field-weekday": "Day of the Week", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", "dateFormatItem-GyMMMEd": "G y MMM d, E", "dateFormatItem-MMMEd": "MMM d, E", "eraNarrow": [ "AH" ], + "field-tue-relative+-1": "last Tuesday", "days-format-short": [ "Sun", "Mon", @@ -48,6 +53,8 @@ define({ root: ], "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", "dateFormat-long": "G y MMMM d", + "field-fri-relative+-1": "last Friday", + "field-wed-relative+-1": "last Wednesday", "months-format-wide": [ "Muharram", "Safar", @@ -67,9 +74,11 @@ define({ root: "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "G y MMMM d, EEEE", "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", + "field-thu-relative+-1": "last Thursday", "dateFormatItem-Md": "MM-dd", "dayPeriods-format-abbr-am": "AM", "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "dayPeriods-format-wide-noon": "noon", "field-era": "Era", "months-standAlone-wide": [ "Muharram", @@ -110,10 +119,14 @@ define({ root: "Dhuʻl-Q.", "Dhuʻl-H." ], + "field-sat-relative+0": "this Saturday", + "field-sat-relative+1": "next Saturday", "timeFormat-full": "HH:mm:ss zzzz", "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", + "field-day-relative+0": "today", + "field-thu-relative+0": "this Thursday", + "field-day-relative+1": "tomorrow", + "field-thu-relative+1": "next Thursday", "dateFormatItem-GyMMMd": "G y MMM d", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ @@ -156,8 +169,11 @@ define({ root: ], "dateFormatItem-yyyyMMM": "G y MMM", "dateFormatItem-yyyyMMMd": "G y MMM d", + "dayPeriods-format-abbr-noon": "noon", "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "this Sunday", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "next Sunday", "quarters-standAlone-abbr": [ "Q1", "Q2", @@ -186,13 +202,15 @@ define({ root: "3", "4" ], - "field-day-relative+-1": "Yesterday", - "dateFormatItem-h": "h a", + "field-day-relative+-1": "yesterday", "dateTimeFormat-long": "{1} {0}", - "dayPeriods-format-narrow-am": "AM", + "dayPeriods-format-narrow-am": "a", + "dateFormatItem-h": "h a", "dateFormatItem-MMMd": "MMM d", "dateFormatItem-MEd": "MM-dd, E", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", "field-day": "Day", "days-format-wide": [ "Sun", @@ -204,8 +222,6 @@ define({ root: "Sat" ], "field-zone": "Zone", - "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", - "dateFormatItem-y": "G y", "months-standAlone-narrow": [ "1", "2", @@ -220,8 +236,12 @@ define({ root: "11", "12" ], - "dateFormatItem-hm": "h:mm a", + "dateFormatItem-y": "G y", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "field-year-relative+-1": "last year", + "field-month-relative+-1": "last month", "dateTimeFormats-appendItem-Year": "{1} {0}", + "dateFormatItem-hm": "h:mm a", "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", "dayPeriods-format-abbr-pm": "PM", "days-format-abbr": [ @@ -246,6 +266,7 @@ define({ root: "S" ], "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", + "field-month": "Month", "days-standAlone-narrow": [ "S", "M", @@ -256,25 +277,42 @@ define({ root: "S" ], "dateFormatItem-MMM": "LLL", - "field-month": "Month", + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", "dayPeriods-format-wide-am": "AM", "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", "dateFormat-short": "GGGGG y-MM-dd", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", + "dayPeriods-format-narrow-noon": "n", "field-second": "Second", - "dateFormatItem-Ed": "d, E", + "field-sat-relative+-1": "last Saturday", + "field-sun-relative+-1": "last Sunday", + "field-month-relative+0": "this month", + "field-month-relative+1": "next month", "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "dateFormatItem-Ed": "d, E", "field-week": "Week", "dateFormat-medium": "G y MMM d", + "field-week-relative+-1": "last week", + "field-year-relative+0": "this year", "dateFormatItem-yyyyM": "GGGGG y-MM", - "dayPeriods-format-narrow-pm": "PM", + "field-year-relative+1": "next year", + "dayPeriods-format-narrow-pm": "p", "dateFormatItem-yyyyQQQQ": "G y QQQQ", "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "G y MMM", - "dateFormatItem-yyyy": "G y" + "field-mon-relative+-1": "last Monday", + "dateFormatItem-yyyy": "G y", + "field-week-relative+0": "this week", + "field-week-relative+1": "next week" } //end v1.x content }); \ No newline at end of file diff --git a/cldr/nls/islamic-rgsa.js b/cldr/nls/islamic-rgsa.js new file mode 100644 index 0000000000..1e4f52872b --- /dev/null +++ b/cldr/nls/islamic-rgsa.js @@ -0,0 +1,462 @@ +define({ root: + +//begin v1.x content +{ + "dateTimeFormats-appendItem-Year": "{1} {0}", + "field-tue-relative+-1": "last Tuesday", + "field-year": "Year", + "dateFormatItem-Hm": "HH:mm", + "field-wed-relative+0": "this Wednesday", + "quarters-standAlone-abbr@localeAlias384": { + "bundle": "gregorian", + "target": "quarters-format-abbr" + }, + "field-wed-relative+1": "next Wednesday", + "quarters-standAlone-abbr@localeAlias385": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "dateFormatItem-ms": "mm:ss", + "timeFormat-short": "HH:mm", + "field-minute": "Minute", + "dateTimeFormat-short": "{1} {0}", + "field-day-relative+0": "today", + "field-day-relative+1": "tomorrow", + "months-standAlone-wide@localeAlias367": { + "bundle": "islamic", + "target": "months-format-wide" + }, + "days-standAlone-short@localeAlias376": { + "bundle": "gregorian", + "target": "days-format-short" + }, + "field-tue-relative+0": "this Tuesday", + "quarters-format-abbr@localeAlias382": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "days-standAlone-short@localeAlias377": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "field-tue-relative+1": "next Tuesday", + "days-standAlone-short@localeAlias378": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dayPeriods-format-narrow-am": "a", + "dayPeriods-format-abbr@localeAlias389": { + "bundle": "gregorian", + "target": "dayPeriods-format-wide" + }, + "dateFormatItem-MMMd": "MMM d", + "dayPeriods-format-abbr-am": "AM", + "field-week-relative+0": "this week", + "field-month-relative+0": "this month", + "field-week-relative+1": "next week", + "field-month-relative+1": "next month", + "timeFormat-medium": "HH:mm:ss", + "field-second-relative+0": "now", + "months-standAlone-abbr@localeAlias366": { + "bundle": "islamic", + "target": "months-format-abbr" + }, + "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "days-format-short@localeAlias372": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "dateFormatItem-yyyyQQQ": "G y QQQ", + "months-standAlone-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "days-format-short@localeAlias373": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "eraNames": [ + "AH" + ], + "dateFormatItem-GyMMMEd": "G y MMM d, E", + "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", + "field-day": "Day", + "dayPeriods-format-abbr@localeAlias390": { + "bundle": "gregorian", + "target": "dayPeriods-format-wide" + }, + "field-year-relative+-1": "last year", + "dayPeriods-format-wide-am": "AM", + "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", + "field-wed-relative+-1": "last Wednesday", + "dateTimeFormat-medium": "{1} {0}", + "days-standAlone-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "field-second": "Second", + "eraNarrow@localeAlias393": { + "bundle": "islamic", + "target": "eraAbbr" + }, + "dateFormatItem-Ehms": "E h:mm:ss a", + "dateFormat-long": "G y MMMM d", + "dateFormatItem-GyMMMd": "G y MMM d", + "timeFormat@localeAlias396": { + "bundle": "islamic", + "target": "timeFormat" + }, + "timeFormat@localeAlias397": { + "bundle": "gregorian", + "target": "timeFormat" + }, + "quarters-standAlone-wide": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "days-format-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "era@localeAlias391": { + "bundle": "islamic", + "target": "era" + }, + "field-mon-relative+-1": "last Monday", + "dateFormatItem-GyMMM": "G y MMM", + "field-month": "Month", + "dateFormatItem-MMM": "LLL", + "dayPeriods@localeAlias387": { + "bundle": "islamic", + "target": "dayPeriods" + }, + "field-dayperiod": "Dayperiod", + "dayPeriods@localeAlias388": { + "bundle": "gregorian", + "target": "dayPeriods" + }, + "dayPeriods-format-narrow-pm": "p", + "dateFormat-medium": "G y MMM d", + "eraAbbr": [ + "AH" + ], + "quarters-standAlone-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "dayPeriods-format-abbr-pm": "PM", + "dateFormatItem-yyyyM": "GGGGG y-MM", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "dateFormatItem-yyyyMMMd": "G y MMM d", + "days-format-short": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "quarters-format-narrow": [ + "1", + "2", + "3", + "4" + ], + "dayPeriods-format-wide-pm": "PM", + "field-sat-relative+-1": "last Saturday", + "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", + "dateTimeFormat-long": "{1} {0}", + "dateFormatItem-Md": "MM-dd", + "days-format-narrow@localeAlias371": { + "bundle": "gregorian", + "target": "days-standAlone-narrow" + }, + "field-hour": "Hour", + "dateTime@localeAlias398": { + "bundle": "islamic", + "target": "dateTime" + }, + "months-format-wide": [ + "Muharram", + "Safar", + "Rabiʻ I", + "Rabiʻ II", + "Jumada I", + "Jumada II", + "Rajab", + "Shaʻban", + "Ramadan", + "Shawwal", + "Dhuʻl-Qiʻdah", + "Dhuʻl-Hijjah" + ], + "dateTime@localeAlias399": { + "bundle": "generic", + "target": "dateTime" + }, + "dateFormat-full": "G y MMMM d, EEEE", + "field-month-relative+-1": "last month", + "dateFormatItem-Hms": "HH:mm:ss", + "days@localeAlias368": { + "bundle": "islamic", + "target": "days" + }, + "days@localeAlias369": { + "bundle": "gregorian", + "target": "days" + }, + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "dayPeriods-format-narrow-noon": "n", + "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", + "field-week-relative+-1": "last week", + "dateFormatItem-Ehm": "E h:mm a", + "months-format-abbr": [ + "Muh.", + "Saf.", + "Rab. I", + "Rab. II", + "Jum. I", + "Jum. II", + "Raj.", + "Sha.", + "Ram.", + "Shaw.", + "Dhuʻl-Q.", + "Dhuʻl-H." + ], + "timeFormat-long": "HH:mm:ss z", + "dateFormat-short": "GGGGG y-MM-dd", + "days-standAlone-wide": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateFormatItem-yyyyMMMEd": "G y MMM d, E", + "dateTimeFormats-appendItem-Era": "{1} {0}", + "eraNames@localeAlias392": { + "bundle": "islamic", + "target": "eraAbbr" + }, + "dateFormatItem-H": "HH", + "dateFormatItem-yyyy": "G y", + "dateFormatItem-M": "L", + "months-standAlone-wide": [ + "Muharram", + "Safar", + "Rabiʻ I", + "Rabiʻ II", + "Jumada I", + "Jumada II", + "Rajab", + "Shaʻban", + "Ramadan", + "Shawwal", + "Dhuʻl-Qiʻdah", + "Dhuʻl-Hijjah" + ], + "days-standAlone-wide@localeAlias379": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "field-sun-relative+-1": "last Sunday", + "days-standAlone-abbr": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateTimeFormat-full": "{1} {0}", + "dateFormatItem-hm": "h:mm a", + "days-standAlone-abbr@localeAlias374": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "days-standAlone-abbr@localeAlias375": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dateFormatItem-d": "d", + "field-weekday": "Day of the Week", + "field-sat-relative+0": "this Saturday", + "dateFormatItem-h": "h a", + "field-sat-relative+1": "next Saturday", + "months-standAlone-abbr": [ + "Muh.", + "Saf.", + "Rab. I", + "Rab. II", + "Jum. I", + "Jum. II", + "Raj.", + "Sha.", + "Ram.", + "Shaw.", + "Dhuʻl-Q.", + "Dhuʻl-H." + ], + "quarters-format-narrow@localeAlias383": { + "bundle": "gregorian", + "target": "quarters-standAlone-narrow" + }, + "quarters@localeAlias380": { + "bundle": "islamic", + "target": "quarters" + }, + "quarters@localeAlias381": { + "bundle": "gregorian", + "target": "quarters" + }, + "timeFormat-full": "HH:mm:ss zzzz", + "dateFormatItem-MEd": "MM-dd, E", + "dateFormatItem-y": "G y", + "field-thu-relative+0": "this Thursday", + "field-thu-relative+1": "next Thursday", + "dateFormatItem-hms": "h:mm:ss a", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "dayPeriods-format-abbr-noon": "noon", + "months@localeAlias364": { + "bundle": "islamic", + "target": "months" + }, + "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", + "field-thu-relative+-1": "last Thursday", + "field-week": "Week", + "quarters-standAlone-narrow": [ + "1", + "2", + "3", + "4" + ], + "days-format-abbr@localeAlias370": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "quarters-format-wide": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "dateFormatItem-Ed": "d, E", + "dateFormatItem-yyyyMMM": "G y MMM", + "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", + "days-standAlone-short": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateFormatItem-yyyyQQQQ": "G y QQQQ", + "months-format-narrow@localeAlias365": { + "bundle": "islamic", + "target": "months-standAlone-narrow" + }, + "quarters-format-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "field-year-relative+0": "this year", + "field-year-relative+1": "next year", + "field-fri-relative+-1": "last Friday", + "eraNarrow": [ + "AH" + ], + "dayPeriods-format-wide-noon": "noon", + "days-format-wide": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateFormat@localeAlias394": { + "bundle": "islamic", + "target": "dateFormat" + }, + "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", + "dateFormat@localeAlias395": { + "bundle": "generic", + "target": "dateFormat" + }, + "dateFormatItem-EHm": "E HH:mm", + "quarters-standAlone-wide@localeAlias386": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "field-zone": "Zone", + "dateFormatItem-MMMEd": "MMM d, E", + "dateFormatItem-EHms": "E HH:mm:ss", + "field-day-relative+-1": "yesterday", + "days-format-abbr": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "field-sun-relative+0": "this Sunday", + "field-sun-relative+1": "next Sunday", + "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", + "dateFormatItem-Gy": "G y", + "field-era": "Era" +} +//end v1.x content +}); \ No newline at end of file diff --git a/cldr/nls/islamic-tbla.js b/cldr/nls/islamic-tbla.js new file mode 100644 index 0000000000..6534fdb9b6 --- /dev/null +++ b/cldr/nls/islamic-tbla.js @@ -0,0 +1,462 @@ +define({ root: + +//begin v1.x content +{ + "dateTimeFormats-appendItem-Year": "{1} {0}", + "field-tue-relative+-1": "last Tuesday", + "field-year": "Year", + "dateFormatItem-Hm": "HH:mm", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", + "dateFormatItem-ms": "mm:ss", + "timeFormat-short": "HH:mm", + "quarters-standAlone-abbr@localeAlias420": { + "bundle": "gregorian", + "target": "quarters-format-abbr" + }, + "field-minute": "Minute", + "quarters-standAlone-abbr@localeAlias421": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "quarters-format-abbr@localeAlias418": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "dateTimeFormat-short": "{1} {0}", + "field-day-relative+0": "today", + "field-day-relative+1": "tomorrow", + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", + "dayPeriods-format-narrow-am": "a", + "months-standAlone-wide@localeAlias403": { + "bundle": "islamic", + "target": "months-format-wide" + }, + "days-standAlone-short@localeAlias412": { + "bundle": "gregorian", + "target": "days-format-short" + }, + "days-format-short@localeAlias408": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "days-standAlone-short@localeAlias413": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "dateFormatItem-MMMd": "MMM d", + "days-format-short@localeAlias409": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "days-standAlone-short@localeAlias414": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dayPeriods-format-abbr-am": "AM", + "field-week-relative+0": "this week", + "field-month-relative+0": "this month", + "field-week-relative+1": "next week", + "field-month-relative+1": "next month", + "timeFormat-medium": "HH:mm:ss", + "dayPeriods-format-abbr@localeAlias425": { + "bundle": "gregorian", + "target": "dayPeriods-format-wide" + }, + "dayPeriods-format-abbr@localeAlias426": { + "bundle": "gregorian", + "target": "dayPeriods-format-wide" + }, + "field-second-relative+0": "now", + "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "dateFormatItem-yyyyQQQ": "G y QQQ", + "months-standAlone-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "eraNames": [ + "AH" + ], + "months-standAlone-abbr@localeAlias402": { + "bundle": "islamic", + "target": "months-format-abbr" + }, + "dateFormatItem-GyMMMEd": "G y MMM d, E", + "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", + "field-day": "Day", + "eraNarrow@localeAlias429": { + "bundle": "islamic", + "target": "eraAbbr" + }, + "field-year-relative+-1": "last year", + "dayPeriods-format-wide-am": "AM", + "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", + "field-wed-relative+-1": "last Wednesday", + "dateTimeFormat-medium": "{1} {0}", + "days-standAlone-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "field-second": "Second", + "dateFormatItem-Ehms": "E h:mm:ss a", + "dateFormat-long": "G y MMMM d", + "dateFormatItem-GyMMMd": "G y MMM d", + "era@localeAlias427": { + "bundle": "islamic", + "target": "era" + }, + "timeFormat@localeAlias432": { + "bundle": "islamic", + "target": "timeFormat" + }, + "timeFormat@localeAlias433": { + "bundle": "gregorian", + "target": "timeFormat" + }, + "quarters-standAlone-wide": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "days-format-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "field-mon-relative+-1": "last Monday", + "dateFormatItem-GyMMM": "G y MMM", + "field-month": "Month", + "dateFormatItem-MMM": "LLL", + "field-dayperiod": "Dayperiod", + "dayPeriods-format-narrow-pm": "p", + "dateFormat-medium": "G y MMM d", + "dayPeriods@localeAlias423": { + "bundle": "islamic", + "target": "dayPeriods" + }, + "dayPeriods@localeAlias424": { + "bundle": "gregorian", + "target": "dayPeriods" + }, + "eraAbbr": [ + "AH" + ], + "quarters-standAlone-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "dayPeriods-format-abbr-pm": "PM", + "dateFormatItem-yyyyM": "GGGGG y-MM", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "days-format-narrow@localeAlias407": { + "bundle": "gregorian", + "target": "days-standAlone-narrow" + }, + "dateFormatItem-yyyyMMMd": "G y MMM d", + "days-format-short": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "quarters-format-narrow": [ + "1", + "2", + "3", + "4" + ], + "dayPeriods-format-wide-pm": "PM", + "field-sat-relative+-1": "last Saturday", + "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", + "dateTimeFormat-long": "{1} {0}", + "dateFormatItem-Md": "MM-dd", + "field-hour": "Hour", + "months-format-wide": [ + "Muharram", + "Safar", + "Rabiʻ I", + "Rabiʻ II", + "Jumada I", + "Jumada II", + "Rajab", + "Shaʻban", + "Ramadan", + "Shawwal", + "Dhuʻl-Qiʻdah", + "Dhuʻl-Hijjah" + ], + "dateFormat-full": "G y MMMM d, EEEE", + "field-month-relative+-1": "last month", + "dateTime@localeAlias434": { + "bundle": "islamic", + "target": "dateTime" + }, + "dateTime@localeAlias435": { + "bundle": "generic", + "target": "dateTime" + }, + "dateFormatItem-Hms": "HH:mm:ss", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "days@localeAlias404": { + "bundle": "islamic", + "target": "days" + }, + "days@localeAlias405": { + "bundle": "gregorian", + "target": "days" + }, + "dayPeriods-format-narrow-noon": "n", + "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", + "field-week-relative+-1": "last week", + "dateFormatItem-Ehm": "E h:mm a", + "months-format-abbr": [ + "Muh.", + "Saf.", + "Rab. I", + "Rab. II", + "Jum. I", + "Jum. II", + "Raj.", + "Sha.", + "Ram.", + "Shaw.", + "Dhuʻl-Q.", + "Dhuʻl-H." + ], + "timeFormat-long": "HH:mm:ss z", + "eraNames@localeAlias428": { + "bundle": "islamic", + "target": "eraAbbr" + }, + "dateFormat-short": "GGGGG y-MM-dd", + "days-standAlone-wide": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateFormatItem-yyyyMMMEd": "G y MMM d, E", + "dateTimeFormats-appendItem-Era": "{1} {0}", + "dateFormatItem-H": "HH", + "dateFormatItem-yyyy": "G y", + "dateFormatItem-M": "L", + "months-standAlone-wide": [ + "Muharram", + "Safar", + "Rabiʻ I", + "Rabiʻ II", + "Jumada I", + "Jumada II", + "Rajab", + "Shaʻban", + "Ramadan", + "Shawwal", + "Dhuʻl-Qiʻdah", + "Dhuʻl-Hijjah" + ], + "field-sun-relative+-1": "last Sunday", + "days-standAlone-abbr": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateTimeFormat-full": "{1} {0}", + "days-standAlone-wide@localeAlias415": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dateFormatItem-hm": "h:mm a", + "quarters-format-narrow@localeAlias419": { + "bundle": "gregorian", + "target": "quarters-standAlone-narrow" + }, + "quarters@localeAlias416": { + "bundle": "islamic", + "target": "quarters" + }, + "quarters@localeAlias417": { + "bundle": "gregorian", + "target": "quarters" + }, + "days-standAlone-abbr@localeAlias410": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "days-standAlone-abbr@localeAlias411": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dateFormatItem-d": "d", + "field-weekday": "Day of the Week", + "field-sat-relative+0": "this Saturday", + "dateFormatItem-h": "h a", + "field-sat-relative+1": "next Saturday", + "months-standAlone-abbr": [ + "Muh.", + "Saf.", + "Rab. I", + "Rab. II", + "Jum. I", + "Jum. II", + "Raj.", + "Sha.", + "Ram.", + "Shaw.", + "Dhuʻl-Q.", + "Dhuʻl-H." + ], + "timeFormat-full": "HH:mm:ss zzzz", + "dateFormatItem-MEd": "MM-dd, E", + "dateFormatItem-y": "G y", + "days-format-abbr@localeAlias406": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "field-thu-relative+0": "this Thursday", + "field-thu-relative+1": "next Thursday", + "dateFormatItem-hms": "h:mm:ss a", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "dayPeriods-format-abbr-noon": "noon", + "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", + "field-thu-relative+-1": "last Thursday", + "months@localeAlias400": { + "bundle": "islamic", + "target": "months" + }, + "field-week": "Week", + "quarters-standAlone-narrow": [ + "1", + "2", + "3", + "4" + ], + "quarters-format-wide": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "dateFormatItem-Ed": "d, E", + "dateFormatItem-yyyyMMM": "G y MMM", + "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", + "days-standAlone-short": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateFormatItem-yyyyQQQQ": "G y QQQQ", + "months-format-narrow@localeAlias401": { + "bundle": "islamic", + "target": "months-standAlone-narrow" + }, + "quarters-format-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "field-year-relative+0": "this year", + "field-year-relative+1": "next year", + "field-fri-relative+-1": "last Friday", + "eraNarrow": [ + "AH" + ], + "dayPeriods-format-wide-noon": "noon", + "days-format-wide": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", + "dateFormatItem-EHm": "E HH:mm", + "dateFormat@localeAlias430": { + "bundle": "islamic", + "target": "dateFormat" + }, + "dateFormat@localeAlias431": { + "bundle": "generic", + "target": "dateFormat" + }, + "field-zone": "Zone", + "quarters-standAlone-wide@localeAlias422": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "dateFormatItem-MMMEd": "MMM d, E", + "dateFormatItem-EHms": "E HH:mm:ss", + "field-day-relative+-1": "yesterday", + "days-format-abbr": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "field-sun-relative+0": "this Sunday", + "field-sun-relative+1": "next Sunday", + "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", + "dateFormatItem-Gy": "G y", + "field-era": "Era" +} +//end v1.x content +}); \ No newline at end of file diff --git a/cldr/nls/islamic-umalqura.js b/cldr/nls/islamic-umalqura.js new file mode 100644 index 0000000000..b5e20d3803 --- /dev/null +++ b/cldr/nls/islamic-umalqura.js @@ -0,0 +1,462 @@ +define({ root: + +//begin v1.x content +{ + "dateTimeFormats-appendItem-Year": "{1} {0}", + "months@localeAlias436": { + "bundle": "islamic", + "target": "months" + }, + "field-tue-relative+-1": "last Tuesday", + "field-year": "Year", + "dateFormatItem-Hm": "HH:mm", + "field-wed-relative+0": "this Wednesday", + "days-format-abbr@localeAlias442": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "field-wed-relative+1": "next Wednesday", + "dateFormatItem-ms": "mm:ss", + "timeFormat-short": "HH:mm", + "field-minute": "Minute", + "dateTimeFormat-short": "{1} {0}", + "field-day-relative+0": "today", + "field-day-relative+1": "tomorrow", + "months-format-narrow@localeAlias437": { + "bundle": "islamic", + "target": "months-standAlone-narrow" + }, + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", + "dayPeriods-format-narrow-am": "a", + "dateFormatItem-MMMd": "MMM d", + "dayPeriods-format-abbr-am": "AM", + "field-week-relative+0": "this week", + "field-month-relative+0": "this month", + "field-week-relative+1": "next week", + "field-month-relative+1": "next month", + "timeFormat-medium": "HH:mm:ss", + "field-second-relative+0": "now", + "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "dateFormatItem-yyyyQQQ": "G y QQQ", + "months-standAlone-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "eraNames": [ + "AH" + ], + "dateFormatItem-GyMMMEd": "G y MMM d, E", + "dateFormat@localeAlias466": { + "bundle": "islamic", + "target": "dateFormat" + }, + "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", + "field-day": "Day", + "dateFormat@localeAlias467": { + "bundle": "generic", + "target": "dateFormat" + }, + "field-year-relative+-1": "last year", + "quarters-standAlone-wide@localeAlias458": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "dayPeriods-format-wide-am": "AM", + "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", + "field-wed-relative+-1": "last Wednesday", + "dateTimeFormat-medium": "{1} {0}", + "days-standAlone-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "field-second": "Second", + "dateFormatItem-Ehms": "E h:mm:ss a", + "dateFormat-long": "G y MMMM d", + "dateFormatItem-GyMMMd": "G y MMM d", + "quarters-standAlone-wide": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "days-format-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "field-mon-relative+-1": "last Monday", + "dateFormatItem-GyMMM": "G y MMM", + "field-month": "Month", + "dateFormatItem-MMM": "LLL", + "field-dayperiod": "Dayperiod", + "quarters-standAlone-abbr@localeAlias456": { + "bundle": "gregorian", + "target": "quarters-format-abbr" + }, + "quarters-standAlone-abbr@localeAlias457": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "dayPeriods-format-narrow-pm": "p", + "dateFormat-medium": "G y MMM d", + "eraAbbr": [ + "AH" + ], + "quarters-standAlone-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "dayPeriods-format-abbr-pm": "PM", + "dateFormatItem-yyyyM": "GGGGG y-MM", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "months-standAlone-wide@localeAlias439": { + "bundle": "islamic", + "target": "months-format-wide" + }, + "days-standAlone-short@localeAlias448": { + "bundle": "gregorian", + "target": "days-format-short" + }, + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "quarters-format-abbr@localeAlias454": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "days-standAlone-short@localeAlias449": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "dateFormatItem-yyyyMMMd": "G y MMM d", + "days-format-short": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "quarters-format-narrow": [ + "1", + "2", + "3", + "4" + ], + "dayPeriods-format-wide-pm": "PM", + "field-sat-relative+-1": "last Saturday", + "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", + "months-standAlone-abbr@localeAlias438": { + "bundle": "islamic", + "target": "months-format-abbr" + }, + "dateTimeFormat-long": "{1} {0}", + "dateFormatItem-Md": "MM-dd", + "field-hour": "Hour", + "days-format-short@localeAlias444": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "months-format-wide": [ + "Muharram", + "Safar", + "Rabiʻ I", + "Rabiʻ II", + "Jumada I", + "Jumada II", + "Rajab", + "Shaʻban", + "Ramadan", + "Shawwal", + "Dhuʻl-Qiʻdah", + "Dhuʻl-Hijjah" + ], + "days-format-short@localeAlias445": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "days-standAlone-short@localeAlias450": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dateFormat-full": "G y MMMM d, EEEE", + "field-month-relative+-1": "last month", + "dayPeriods-format-abbr@localeAlias461": { + "bundle": "gregorian", + "target": "dayPeriods-format-wide" + }, + "dateFormatItem-Hms": "HH:mm:ss", + "dayPeriods-format-abbr@localeAlias462": { + "bundle": "gregorian", + "target": "dayPeriods-format-wide" + }, + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "dayPeriods-format-narrow-noon": "n", + "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", + "field-week-relative+-1": "last week", + "eraNarrow@localeAlias465": { + "bundle": "islamic", + "target": "eraAbbr" + }, + "dateFormatItem-Ehm": "E h:mm a", + "months-format-abbr": [ + "Muh.", + "Saf.", + "Rab. I", + "Rab. II", + "Jum. I", + "Jum. II", + "Raj.", + "Sha.", + "Ram.", + "Shaw.", + "Dhuʻl-Q.", + "Dhuʻl-H." + ], + "timeFormat-long": "HH:mm:ss z", + "timeFormat@localeAlias468": { + "bundle": "islamic", + "target": "timeFormat" + }, + "timeFormat@localeAlias469": { + "bundle": "gregorian", + "target": "timeFormat" + }, + "dateFormat-short": "GGGGG y-MM-dd", + "days-standAlone-wide": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateFormatItem-yyyyMMMEd": "G y MMM d, E", + "era@localeAlias463": { + "bundle": "islamic", + "target": "era" + }, + "dateTimeFormats-appendItem-Era": "{1} {0}", + "dayPeriods@localeAlias459": { + "bundle": "islamic", + "target": "dayPeriods" + }, + "dateFormatItem-H": "HH", + "dateFormatItem-yyyy": "G y", + "dateFormatItem-M": "L", + "months-standAlone-wide": [ + "Muharram", + "Safar", + "Rabiʻ I", + "Rabiʻ II", + "Jumada I", + "Jumada II", + "Rajab", + "Shaʻban", + "Ramadan", + "Shawwal", + "Dhuʻl-Qiʻdah", + "Dhuʻl-Hijjah" + ], + "field-sun-relative+-1": "last Sunday", + "days-standAlone-abbr": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateTimeFormat-full": "{1} {0}", + "dateFormatItem-hm": "h:mm a", + "dayPeriods@localeAlias460": { + "bundle": "gregorian", + "target": "dayPeriods" + }, + "dateFormatItem-d": "d", + "field-weekday": "Day of the Week", + "field-sat-relative+0": "this Saturday", + "dateFormatItem-h": "h a", + "field-sat-relative+1": "next Saturday", + "months-standAlone-abbr": [ + "Muh.", + "Saf.", + "Rab. I", + "Rab. II", + "Jum. I", + "Jum. II", + "Raj.", + "Sha.", + "Ram.", + "Shaw.", + "Dhuʻl-Q.", + "Dhuʻl-H." + ], + "days-format-narrow@localeAlias443": { + "bundle": "gregorian", + "target": "days-standAlone-narrow" + }, + "timeFormat-full": "HH:mm:ss zzzz", + "dateFormatItem-MEd": "MM-dd, E", + "dateFormatItem-y": "G y", + "field-thu-relative+0": "this Thursday", + "field-thu-relative+1": "next Thursday", + "dateFormatItem-hms": "h:mm:ss a", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "dayPeriods-format-abbr-noon": "noon", + "dateTime@localeAlias470": { + "bundle": "islamic", + "target": "dateTime" + }, + "dateTime@localeAlias471": { + "bundle": "generic", + "target": "dateTime" + }, + "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", + "field-thu-relative+-1": "last Thursday", + "field-week": "Week", + "quarters-standAlone-narrow": [ + "1", + "2", + "3", + "4" + ], + "quarters-format-wide": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "dateFormatItem-Ed": "d, E", + "days@localeAlias440": { + "bundle": "islamic", + "target": "days" + }, + "days@localeAlias441": { + "bundle": "gregorian", + "target": "days" + }, + "dateFormatItem-yyyyMMM": "G y MMM", + "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", + "days-standAlone-short": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateFormatItem-yyyyQQQQ": "G y QQQQ", + "eraNames@localeAlias464": { + "bundle": "islamic", + "target": "eraAbbr" + }, + "quarters-format-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "field-year-relative+0": "this year", + "field-year-relative+1": "next year", + "field-fri-relative+-1": "last Friday", + "eraNarrow": [ + "AH" + ], + "dayPeriods-format-wide-noon": "noon", + "days-format-wide": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", + "dateFormatItem-EHm": "E HH:mm", + "days-standAlone-abbr@localeAlias446": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "field-zone": "Zone", + "days-standAlone-abbr@localeAlias447": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dateFormatItem-MMMEd": "MMM d, E", + "dateFormatItem-EHms": "E HH:mm:ss", + "days-standAlone-wide@localeAlias451": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "field-day-relative+-1": "yesterday", + "quarters-format-narrow@localeAlias455": { + "bundle": "gregorian", + "target": "quarters-standAlone-narrow" + }, + "quarters@localeAlias452": { + "bundle": "islamic", + "target": "quarters" + }, + "days-format-abbr": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "quarters@localeAlias453": { + "bundle": "gregorian", + "target": "quarters" + }, + "field-sun-relative+0": "this Sunday", + "field-sun-relative+1": "next Sunday", + "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", + "dateFormatItem-Gy": "G y", + "field-era": "Era" +} +//end v1.x content +}); \ No newline at end of file diff --git a/cldr/nls/islamic.js b/cldr/nls/islamic.js index 22459e6acd..02f26bf9fc 100644 --- a/cldr/nls/islamic.js +++ b/cldr/nls/islamic.js @@ -2,6 +2,7 @@ define({ root: //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "Sun", "Mon", @@ -25,6 +26,7 @@ define({ root: "11", "12" ], + "field-second-relative+0": "now", "quarters-standAlone-narrow": [ "1", "2", @@ -32,11 +34,14 @@ define({ root: "4" ], "field-weekday": "Day of the Week", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", "dateFormatItem-GyMMMEd": "G y MMM d, E", "dateFormatItem-MMMEd": "MMM d, E", "eraNarrow": [ "AH" ], + "field-tue-relative+-1": "last Tuesday", "days-format-short": [ "Sun", "Mon", @@ -48,6 +53,8 @@ define({ root: ], "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", "dateFormat-long": "G y MMMM d", + "field-fri-relative+-1": "last Friday", + "field-wed-relative+-1": "last Wednesday", "months-format-wide": [ "Muharram", "Safar", @@ -67,9 +74,11 @@ define({ root: "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "G y MMMM d, EEEE", "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", + "field-thu-relative+-1": "last Thursday", "dateFormatItem-Md": "MM-dd", "dayPeriods-format-abbr-am": "AM", "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "dayPeriods-format-wide-noon": "noon", "field-era": "Era", "months-standAlone-wide": [ "Muharram", @@ -110,10 +119,14 @@ define({ root: "Dhuʻl-Q.", "Dhuʻl-H." ], + "field-sat-relative+0": "this Saturday", + "field-sat-relative+1": "next Saturday", "timeFormat-full": "HH:mm:ss zzzz", "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", + "field-day-relative+0": "today", + "field-thu-relative+0": "this Thursday", + "field-day-relative+1": "tomorrow", + "field-thu-relative+1": "next Thursday", "dateFormatItem-GyMMMd": "G y MMM d", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ @@ -156,8 +169,11 @@ define({ root: ], "dateFormatItem-yyyyMMM": "G y MMM", "dateFormatItem-yyyyMMMd": "G y MMM d", + "dayPeriods-format-abbr-noon": "noon", "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "this Sunday", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "next Sunday", "quarters-standAlone-abbr": [ "Q1", "Q2", @@ -186,13 +202,15 @@ define({ root: "3", "4" ], - "field-day-relative+-1": "Yesterday", - "dateFormatItem-h": "h a", + "field-day-relative+-1": "yesterday", "dateTimeFormat-long": "{1} {0}", - "dayPeriods-format-narrow-am": "AM", + "dayPeriods-format-narrow-am": "a", + "dateFormatItem-h": "h a", "dateFormatItem-MMMd": "MMM d", "dateFormatItem-MEd": "MM-dd, E", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", "field-day": "Day", "days-format-wide": [ "Sun", @@ -204,8 +222,6 @@ define({ root: "Sat" ], "field-zone": "Zone", - "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", - "dateFormatItem-y": "G y", "months-standAlone-narrow": [ "1", "2", @@ -220,8 +236,12 @@ define({ root: "11", "12" ], - "dateFormatItem-hm": "h:mm a", + "dateFormatItem-y": "G y", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "field-year-relative+-1": "last year", + "field-month-relative+-1": "last month", "dateTimeFormats-appendItem-Year": "{1} {0}", + "dateFormatItem-hm": "h:mm a", "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", "dayPeriods-format-abbr-pm": "PM", "days-format-abbr": [ @@ -246,6 +266,7 @@ define({ root: "S" ], "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", + "field-month": "Month", "days-standAlone-narrow": [ "S", "M", @@ -256,25 +277,42 @@ define({ root: "S" ], "dateFormatItem-MMM": "LLL", - "field-month": "Month", + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", "dayPeriods-format-wide-am": "AM", "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", "dateFormat-short": "GGGGG y-MM-dd", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", + "dayPeriods-format-narrow-noon": "n", "field-second": "Second", - "dateFormatItem-Ed": "d, E", + "field-sat-relative+-1": "last Saturday", + "field-sun-relative+-1": "last Sunday", + "field-month-relative+0": "this month", + "field-month-relative+1": "next month", "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "dateFormatItem-Ed": "d, E", "field-week": "Week", "dateFormat-medium": "G y MMM d", + "field-week-relative+-1": "last week", + "field-year-relative+0": "this year", "dateFormatItem-yyyyM": "GGGGG y-MM", - "dayPeriods-format-narrow-pm": "PM", + "field-year-relative+1": "next year", + "dayPeriods-format-narrow-pm": "p", "dateFormatItem-yyyyQQQQ": "G y QQQQ", "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "G y MMM", - "dateFormatItem-yyyy": "G y" + "field-mon-relative+-1": "last Monday", + "dateFormatItem-yyyy": "G y", + "field-week-relative+0": "this week", + "field-week-relative+1": "next week" } //end v1.x content , @@ -283,6 +321,8 @@ define({ root: "da": true, "de": true, "en": true, + "en-au": true, + "en-gb": true, "es": true, "fi": true, "fr": true, diff --git a/cldr/nls/it/buddhist.js b/cldr/nls/it/buddhist.js index b48d3ee431..d43fecbe36 100644 --- a/cldr/nls/it/buddhist.js +++ b/cldr/nls/it/buddhist.js @@ -24,12 +24,16 @@ define( "N", "D" ], + "field-second-relative+0": "ora", "field-weekday": "giorno della settimana", + "field-wed-relative+0": "questo mercoledì", + "field-wed-relative+1": "mercoledì prossimo", "dateFormatItem-GyMMMEd": "E d MMM y G", "dateFormatItem-MMMEd": "E d MMM", "eraNarrow": [ "EB" ], + "field-tue-relative+-1": "martedì scorso", "days-format-short": [ "dom", "lun", @@ -40,6 +44,8 @@ define( "sab" ], "dateFormat-long": "dd MMMM y G", + "field-fri-relative+-1": "venerdì scorso", + "field-wed-relative+-1": "mercoledì scorso", "months-format-wide": [ "gennaio", "febbraio", @@ -55,8 +61,10 @@ define( "dicembre" ], "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-medium": "{1}, {0}", "dateFormat-full": "EEEE d MMMM y G", "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", + "field-thu-relative+-1": "giovedì scorso", "dateFormatItem-Md": "d/M", "field-era": "era", "months-standAlone-wide": [ @@ -74,10 +82,10 @@ define( "Dicembre" ], "quarters-format-wide": [ - "1o trimestre", - "2o trimestre", - "3o trimestre", - "4o trimestre" + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre" ], "field-year": "anno", "field-hour": "ora", @@ -95,8 +103,12 @@ define( "nov", "dic" ], + "field-sat-relative+0": "questo sabato", + "field-sat-relative+1": "sabato prossimo", "field-day-relative+0": "oggi", + "field-thu-relative+0": "questo giovedì", "field-day-relative+1": "domani", + "field-thu-relative+1": "giovedì prossimo", "dateFormatItem-GyMMMd": "d MMM y G", "field-day-relative+2": "dopodomani", "months-standAlone-abbr": [ @@ -138,6 +150,8 @@ define( ], "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d MMM y G", + "field-sun-relative+0": "questa domenica", + "field-sun-relative+1": "domenica prossima", "quarters-standAlone-abbr": [ "T1", "T2", @@ -149,12 +163,25 @@ define( ], "field-minute": "minuto", "field-dayperiod": "periodo del giorno", + "days-standAlone-abbr": [ + "dom", + "lun", + "mar", + "mer", + "gio", + "ven", + "sab" + ], "field-day-relative+-1": "ieri", "dateFormatItem-h": "hh a", + "dateTimeFormat-long": "{1} 'alle' {0}", "dayPeriods-format-narrow-am": "m.", "field-day-relative+-2": "l'altro ieri", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E d/M", + "dateTimeFormat-full": "{1} 'alle' {0}", + "field-fri-relative+0": "questo venerdì", + "field-fri-relative+1": "venerdì prossimo", "field-day": "giorno", "days-format-wide": [ "domenica", @@ -165,7 +192,7 @@ define( "venerdì", "sabato" ], - "field-zone": "zona", + "field-zone": "fuso orario", "dateFormatItem-y": "y G", "months-standAlone-narrow": [ "G", @@ -181,8 +208,8 @@ define( "N", "D" ], - "field-year-relative+-1": "Anno scorso", - "field-month-relative+-1": "Mese scorso", + "field-year-relative+-1": "anno scorso", + "field-month-relative+-1": "mese scorso", "dateFormatItem-hm": "hh:mm a", "days-format-abbr": [ "dom", @@ -196,6 +223,15 @@ define( "eraNames": [ "EB" ], + "days-format-narrow": [ + "D", + "L", + "M", + "M", + "G", + "V", + "S" + ], "dateFormatItem-yyyyMd": "d/M/y GGGGG", "field-month": "mese", "days-standAlone-narrow": [ @@ -207,24 +243,32 @@ define( "V", "S" ], + "field-tue-relative+0": "questo martedì", + "field-tue-relative+1": "martedì prossimo", + "field-mon-relative+0": "questo lunedì", + "field-mon-relative+1": "lunedì prossimo", "dateFormat-short": "dd/MM/yy GGGGG", "field-second": "secondo", - "field-month-relative+0": "Questo mese", - "field-month-relative+1": "Mese prossimo", + "field-sat-relative+-1": "sabato scorso", + "field-sun-relative+-1": "domenica scorsa", + "field-month-relative+0": "questo mese", + "field-month-relative+1": "mese prossimo", "dateFormatItem-Ed": "E d", "field-week": "settimana", "dateFormat-medium": "dd/MMM/y G", - "field-year-relative+0": "Questo anno", - "field-week-relative+-1": "Settimana scorsa", + "field-year-relative+0": "quest'anno", + "field-week-relative+-1": "settimana scorsa", "dateFormatItem-yyyyM": "M/y GGGGG", - "field-year-relative+1": "Anno prossimo", + "field-year-relative+1": "anno prossimo", "dayPeriods-format-narrow-pm": "p.", "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-hms": "hh:mm:ss a", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "lunedì scorso", "dateFormatItem-yyyy": "y G", - "field-week-relative+0": "Questa settimana", - "field-week-relative+1": "Settimana prossima" + "field-week-relative+0": "questa settimana", + "field-week-relative+1": "settimana prossima" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/it/chinese.js b/cldr/nls/it/chinese.js index 027fe02c03..4b8f4b9142 100644 --- a/cldr/nls/it/chinese.js +++ b/cldr/nls/it/chinese.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "dateFormat-medium": "dd/MMM U", - "field-second": "secondo", - "field-year-relative+-1": "Anno scorso", - "field-week": "settimana", - "field-month-relative+-1": "Mese scorso", + "field-sat-relative+0": "questo sabato", + "field-sat-relative+1": "sabato prossimo", + "field-dayperiod": "periodo del giorno", + "field-sun-relative+-1": "domenica scorsa", + "field-mon-relative+-1": "lunedì scorso", + "field-minute": "minuto", "field-day-relative+-1": "ieri", + "field-weekday": "giorno della settimana", "field-day-relative+-2": "l'altro ieri", - "field-year": "anno", - "field-week-relative+0": "Questa settimana", - "field-week-relative+1": "Settimana prossima", - "field-minute": "minuto", - "field-week-relative+-1": "Settimana scorsa", - "field-day-relative+0": "oggi", + "field-era": "era", "field-hour": "ora", + "field-sun-relative+0": "questa domenica", + "field-sun-relative+1": "domenica prossima", + "field-wed-relative+-1": "mercoledì scorso", + "field-day-relative+0": "oggi", "field-day-relative+1": "domani", - "dateFormat-long": "dd MMMM U", "field-day-relative+2": "dopodomani", - "field-day": "giorno", - "field-month-relative+0": "Questo mese", - "field-month-relative+1": "Mese prossimo", - "field-dayperiod": "periodo del giorno", + "dateFormat-long": "dd MMMM U", + "field-tue-relative+0": "questo martedì", + "field-zone": "fuso orario", + "field-tue-relative+1": "martedì prossimo", + "field-week-relative+-1": "settimana scorsa", + "dateFormat-medium": "dd/MMM U", + "field-year-relative+0": "quest'anno", + "field-year-relative+1": "anno prossimo", + "field-sat-relative+-1": "sabato scorso", + "field-year-relative+-1": "anno scorso", + "field-year": "anno", + "field-fri-relative+0": "questo venerdì", + "field-fri-relative+1": "venerdì prossimo", + "field-week": "settimana", + "field-week-relative+0": "questa settimana", + "field-week-relative+1": "settimana prossima", + "field-month-relative+0": "questo mese", "field-month": "mese", + "field-month-relative+1": "mese prossimo", + "field-fri-relative+-1": "venerdì scorso", + "field-second": "secondo", + "field-tue-relative+-1": "martedì scorso", + "field-day": "giorno", + "field-mon-relative+0": "questo lunedì", + "field-mon-relative+1": "lunedì prossimo", + "field-thu-relative+0": "questo giovedì", + "field-second-relative+0": "ora", "dateFormat-short": "dd/MM/yy", - "field-era": "era", - "field-year-relative+0": "Questo anno", - "field-year-relative+1": "Anno prossimo", + "field-thu-relative+1": "giovedì prossimo", "dateFormat-full": "EEEE d MMMM U", - "field-weekday": "giorno della settimana", - "field-zone": "zona" + "field-wed-relative+0": "questo mercoledì", + "field-wed-relative+1": "mercoledì prossimo", + "field-month-relative+-1": "mese scorso", + "field-thu-relative+-1": "giovedì scorso" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/it/currency.js b/cldr/nls/it/currency.js index a18ba25613..fc33f523db 100644 --- a/cldr/nls/it/currency.js +++ b/cldr/nls/it/currency.js @@ -3,14 +3,19 @@ define( { "HKD_displayName": "Dollaro di Hong Kong", "CHF_displayName": "Franco Svizzero", + "JPY_symbol": "JP¥", "CAD_displayName": "Dollaro Canadese", + "HKD_symbol": "HK$", "CNY_displayName": "Renmimbi Cinese", "USD_symbol": "US$", "AUD_displayName": "Dollaro Australiano", "JPY_displayName": "Yen Giapponese", "CAD_symbol": "CA$", "USD_displayName": "Dollaro Statunitense", + "CNY_symbol": "CN¥", "GBP_displayName": "Sterlina Inglese", + "GBP_symbol": "£", + "AUD_symbol": "A$", "EUR_displayName": "Euro" } //end v1.x content diff --git a/cldr/nls/it/generic.js b/cldr/nls/it/generic.js index 98b66c25be..73f7d2f6ac 100644 --- a/cldr/nls/it/generic.js +++ b/cldr/nls/it/generic.js @@ -1,69 +1,91 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E d MMM y G", - "field-dayperiod": "periodo del giorno", - "field-minute": "minuto", - "dateFormatItem-MMMEd": "E d MMM", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "ieri", - "dateFormatItem-hms": "hh:mm:ss a", - "field-day-relative+-2": "l'altro ieri", + "field-second-relative+0": "ora", "field-weekday": "giorno della settimana", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "y G", - "dateTimeFormat-medium": "{1} {0}", + "field-wed-relative+0": "questo mercoledì", + "field-wed-relative+1": "mercoledì prossimo", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "martedì scorso", + "dateFormat-long": "dd MMMM y G", + "field-fri-relative+-1": "venerdì scorso", + "field-wed-relative+-1": "mercoledì scorso", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-medium": "{1}, {0}", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", + "field-thu-relative+-1": "giovedì scorso", + "dateFormatItem-Md": "d/M", "field-era": "era", + "field-year": "anno", + "dateFormatItem-yyyyMMMM": "MMMM y G", "field-hour": "ora", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E d", + "field-sat-relative+0": "questo sabato", + "field-sat-relative+1": "sabato prossimo", "field-day-relative+0": "oggi", "field-day-relative+1": "domani", - "field-day-relative+2": "dopodomani", + "field-thu-relative+0": "questo giovedì", "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormatItem-yyyyMMMM": "MMMM y G", - "dateFormat-long": "dd MMMM y G", - "field-zone": "zona", + "field-day-relative+2": "dopodomani", + "field-thu-relative+1": "giovedì prossimo", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "field-sun-relative+0": "questa domenica", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "Settimana scorsa", - "dateFormat-medium": "dd/MMM/y G", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "Questo anno", - "field-year-relative+1": "Anno prossimo", - "field-year-relative+-1": "Anno scorso", + "field-sun-relative+1": "domenica prossima", + "field-minute": "minuto", + "field-dayperiod": "periodo del giorno", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "field-year": "anno", - "dateTimeFormat-long": "{1} {0}", - "field-week": "settimana", - "dateFormatItem-yyyyMd": "d/M/y GGGGG", - "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", + "field-day-relative+-1": "ieri", + "dateFormatItem-h": "hh a", + "dateTimeFormat-long": "{1} 'alle' {0}", + "field-day-relative+-2": "l'altro ieri", "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "Questa settimana", - "field-week-relative+1": "Settimana prossima", - "field-month-relative+0": "Questo mese", - "dateFormatItem-H": "HH", - "field-month": "mese", - "field-month-relative+1": "Mese prossimo", - "dateFormatItem-M": "L", - "field-second": "secondo", - "dateFormatItem-GyMMMEd": "E d MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "giorno", "dateFormatItem-MEd": "E d/M", - "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-full": "{1} 'alle' {0}", + "field-fri-relative+0": "questo venerdì", + "field-fri-relative+1": "venerdì prossimo", + "field-day": "giorno", + "field-zone": "fuso orario", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "anno scorso", + "field-month-relative+-1": "mese scorso", "dateFormatItem-hm": "hh:mm a", + "dateFormatItem-yyyyMd": "d/M/y GGGGG", + "field-month": "mese", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "questo martedì", + "field-tue-relative+1": "martedì prossimo", + "field-mon-relative+0": "questo lunedì", + "field-mon-relative+1": "lunedì prossimo", "dateFormat-short": "dd/MM/yy GGGGG", + "field-second": "secondo", + "field-sat-relative+-1": "sabato scorso", + "field-sun-relative+-1": "domenica scorsa", + "field-month-relative+0": "questo mese", + "field-month-relative+1": "mese prossimo", + "dateFormatItem-Ed": "E d", + "field-week": "settimana", + "dateFormat-medium": "dd/MMM/y G", + "field-year-relative+0": "quest'anno", + "field-week-relative+-1": "settimana scorsa", "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormat-full": "EEEE d MMMM y G", - "dateFormatItem-Md": "d/M", - "dateFormatItem-yyyyMMM": "MMM y G", - "dateFormatItem-d": "d", - "field-month-relative+-1": "Mese scorso", - "dateFormatItem-h": "hh a" + "field-year-relative+1": "anno prossimo", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "hh:mm:ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "lunedì scorso", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "questa settimana", + "field-week-relative+1": "settimana prossima" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/it/gregorian.js b/cldr/nls/it/gregorian.js index 72a83daf1b..cb20df6609 100644 --- a/cldr/nls/it/gregorian.js +++ b/cldr/nls/it/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h.mm a", "days-standAlone-short": [ "dom", "lun", @@ -24,6 +25,7 @@ define( "N", "D" ], + "field-second-relative+0": "ora", "quarters-standAlone-narrow": [ "1", "2", @@ -33,12 +35,17 @@ define( "field-weekday": "giorno della settimana", "dateFormatItem-yQQQ": "QQQ y", "dateFormatItem-yMEd": "E d/M/y", + "field-wed-relative+0": "questo mercoledì", "dateFormatItem-GyMMMEd": "E d MMM y G", "dateFormatItem-MMMEd": "E d MMM", + "field-wed-relative+1": "mercoledì prossimo", "eraNarrow": [ "aC", - "dC" + "BCE", + "dC", + "CE" ], + "field-tue-relative+-1": "martedì scorso", "days-format-short": [ "dom", "lun", @@ -49,6 +56,8 @@ define( "sab" ], "dateFormat-long": "dd MMMM y", + "field-fri-relative+-1": "venerdì scorso", + "field-wed-relative+-1": "mercoledì scorso", "months-format-wide": [ "gennaio", "febbraio", @@ -66,10 +75,11 @@ define( "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "EEEE d MMMM y", + "field-thu-relative+-1": "giovedì scorso", "dateFormatItem-Md": "d/M", "dateFormatItem-yMd": "d/M/y", - "field-era": "era", "dateFormatItem-yM": "M/y", + "field-era": "era", "months-standAlone-wide": [ "Gennaio", "Febbraio", @@ -86,15 +96,15 @@ define( ], "timeFormat-short": "HH:mm", "quarters-format-wide": [ - "1o trimestre", - "2o trimestre", - "3o trimestre", - "4o trimestre" + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre" ], - "dateFormatItem-yQQQQ": "QQQQ y", "timeFormat-long": "HH:mm:ss z", - "field-year": "anno", "dateFormatItem-yMMM": "MMM y", + "dateFormatItem-yQQQQ": "QQQQ y", + "field-year": "anno", "field-hour": "ora", "months-format-abbr": [ "gen", @@ -110,11 +120,15 @@ define( "nov", "dic" ], + "field-sat-relative+0": "questo sabato", + "field-sat-relative+1": "sabato prossimo", "timeFormat-full": "HH:mm:ss zzzz", "field-day-relative+0": "oggi", "field-day-relative+1": "domani", + "field-thu-relative+0": "questo giovedì", "dateFormatItem-GyMMMd": "d MMM y G", "field-day-relative+2": "dopodomani", + "field-thu-relative+1": "giovedì prossimo", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ "gen", @@ -154,6 +168,7 @@ define( "Sabato" ], "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "questa domenica", "dateFormatItem-Hm": "HH:mm", "quarters-standAlone-abbr": [ "T1", @@ -161,9 +176,12 @@ define( "T3", "T4" ], + "field-sun-relative+1": "domenica prossima", "eraAbbr": [ "aC", - "dC" + "BCE", + "dC", + "CE" ], "field-minute": "minuto", "field-dayperiod": "periodo del giorno", @@ -192,7 +210,9 @@ define( "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E d/M", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "questo venerdì", "dateFormatItem-yMMMM": "MMMM y", + "field-fri-relative+1": "venerdì prossimo", "field-day": "giorno", "days-format-wide": [ "domenica", @@ -203,7 +223,7 @@ define( "venerdì", "sabato" ], - "field-zone": "zona", + "field-zone": "fuso orario", "dateFormatItem-y": "y", "months-standAlone-narrow": [ "G", @@ -219,8 +239,8 @@ define( "N", "D" ], - "field-year-relative+-1": "Anno scorso", - "field-month-relative+-1": "Mese scorso", + "field-year-relative+-1": "anno scorso", + "field-month-relative+-1": "mese scorso", "dateFormatItem-hm": "hh:mm a", "days-format-abbr": [ "dom", @@ -234,7 +254,9 @@ define( "dateFormatItem-yMMMd": "d MMM y", "eraNames": [ "a.C.", - "d.C" + "BCE", + "d.C.", + "CE" ], "days-format-narrow": [ "D", @@ -245,7 +267,6 @@ define( "V", "S" ], - "field-month": "mese", "days-standAlone-narrow": [ "D", "L", @@ -256,25 +277,37 @@ define( "S" ], "dateFormatItem-MMM": "LLL", + "field-month": "mese", + "field-tue-relative+0": "questo martedì", + "field-tue-relative+1": "martedì prossimo", "dayPeriods-format-wide-am": "AM", + "dateFormatItem-EHm": "E HH.mm", + "field-mon-relative+0": "questo lunedì", + "field-mon-relative+1": "lunedì prossimo", "dateFormat-short": "dd/MM/yy", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", "field-second": "secondo", + "field-sat-relative+-1": "sabato scorso", "dateFormatItem-yMMMEd": "E d MMM y", - "field-month-relative+0": "Questo mese", - "field-month-relative+1": "Mese prossimo", + "field-sun-relative+-1": "domenica scorsa", + "field-month-relative+0": "questo mese", + "field-month-relative+1": "mese prossimo", "dateFormatItem-Ed": "E d", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "settimana", "dateFormat-medium": "dd/MMM/y", - "field-year-relative+0": "Questo anno", - "field-week-relative+-1": "Settimana scorsa", - "field-year-relative+1": "Anno prossimo", + "field-year-relative+0": "quest'anno", + "field-week-relative+-1": "settimana scorsa", + "field-year-relative+1": "anno prossimo", "dayPeriods-format-narrow-pm": "p.", "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "hh:mm:ss a", "dateFormatItem-GyMMM": "MMM y G", - "field-week-relative+0": "Questa settimana", - "field-week-relative+1": "Settimana prossima" + "field-mon-relative+-1": "lunedì scorso", + "field-week-relative+0": "questa settimana", + "field-week-relative+1": "settimana prossima" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/it/hebrew.js b/cldr/nls/it/hebrew.js index 9d5aa62e7f..f56b5b2fdb 100644 --- a/cldr/nls/it/hebrew.js +++ b/cldr/nls/it/hebrew.js @@ -1,85 +1,96 @@ define( //begin v1.x content { - "field-dayperiod": "periodo del giorno", - "dateFormatItem-yyyyMMMEd": "E d MMM y G", - "field-minute": "minuto", - "dateFormatItem-MMMEd": "E d MMM", - "field-day-relative+-1": "ieri", + "days-standAlone-short": [ + "dom", + "lun", + "mar", + "mer", + "gio", + "ven", + "sab" + ], + "field-second-relative+0": "ora", "field-weekday": "giorno della settimana", - "dateFormatItem-hms": "hh:mm:ss a", - "field-day-relative+-2": "l'altro ieri", - "days-standAlone-wide": [ - "Domenica", - "Lunedì", - "Martedì", - "Mercoledì", - "Giovedì", - "Venerdì", - "Sabato" + "field-wed-relative+0": "questo mercoledì", + "field-wed-relative+1": "mercoledì prossimo", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "martedì scorso", + "days-format-short": [ + "dom", + "lun", + "mar", + "mer", + "gio", + "ven", + "sab" ], + "dateFormat-long": "dd MMMM y G", + "field-fri-relative+-1": "venerdì scorso", + "field-wed-relative+-1": "mercoledì scorso", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-medium": "{1}, {0}", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", + "field-thu-relative+-1": "giovedì scorso", + "dateFormatItem-Md": "d/M", "field-era": "era", - "dateFormatItem-Gy": "y G", + "quarters-format-wide": [ + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre" + ], + "field-year": "anno", "field-hour": "ora", - "quarters-standAlone-abbr": [ + "field-sat-relative+0": "questo sabato", + "field-sat-relative+1": "sabato prossimo", + "field-day-relative+0": "oggi", + "field-thu-relative+0": "questo giovedì", + "field-day-relative+1": "domani", + "field-thu-relative+1": "giovedì prossimo", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "dopodomani", + "quarters-format-abbr": [ "T1", "T2", "T3", "T4" ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E d", - "field-day-relative+0": "oggi", - "field-day-relative+1": "domani", - "days-standAlone-narrow": [ - "D", - "L", - "M", - "M", - "G", - "V", - "S" - ], - "eraAbbr": [ - "AM" - ], - "field-day-relative+2": "dopodomani", - "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormat-long": "dd MMMM y G", - "field-zone": "zona", - "field-week-relative+-1": "Settimana scorsa", - "dateFormat-medium": "dd/MMM/y G", - "dayPeriods-format-narrow-pm": "p.", - "field-year-relative+0": "Questo anno", - "field-year-relative+1": "Anno prossimo", "quarters-standAlone-wide": [ "Primo trimestre", "Secondo trimestre", "Terzo trimestre", "Quarto trimestre" ], - "field-year-relative+-1": "Anno scorso", - "field-year": "anno", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "dayPeriods-format-narrow-am": "m.", - "field-week": "settimana", - "dateFormatItem-yyyyMd": "d/M/y GGGGG", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "days-standAlone-wide": [ + "Domenica", + "Lunedì", + "Martedì", + "Mercoledì", + "Giovedì", + "Venerdì", + "Sabato" + ], + "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "Questa settimana", - "field-week-relative+1": "Settimana prossima", - "field-month-relative+0": "Questo mese", - "field-month": "mese", - "field-month-relative+1": "Mese prossimo", - "quarters-format-abbr": [ + "field-sun-relative+0": "questa domenica", + "field-sun-relative+1": "domenica prossima", + "quarters-standAlone-abbr": [ "T1", "T2", "T3", "T4" ], - "days-format-abbr": [ + "eraAbbr": [ + "AM" + ], + "field-minute": "minuto", + "field-dayperiod": "periodo del giorno", + "days-standAlone-abbr": [ "dom", "lun", "mar", @@ -88,27 +99,32 @@ define( "ven", "sab" ], - "field-second": "secondo", - "dateFormatItem-GyMMMEd": "E d MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "giorno", - "dateFormatItem-yyyyQQQ": "QQQ y G", + "field-day-relative+-1": "ieri", + "dateFormatItem-h": "hh a", + "dateTimeFormat-long": "{1} 'alle' {0}", + "dayPeriods-format-narrow-am": "m.", + "field-day-relative+-2": "l'altro ieri", + "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E d/M", - "days-standAlone-short": [ - "dom", - "lun", - "mar", - "mer", - "gio", - "ven", - "sab" + "dateTimeFormat-full": "{1} 'alle' {0}", + "field-fri-relative+0": "questo venerdì", + "field-fri-relative+1": "venerdì prossimo", + "field-day": "giorno", + "days-format-wide": [ + "domenica", + "lunedì", + "martedì", + "mercoledì", + "giovedì", + "venerdì", + "sabato" ], + "field-zone": "fuso orario", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "anno scorso", + "field-month-relative+-1": "mese scorso", "dateFormatItem-hm": "hh:mm a", - "dateFormat-short": "dd/MM/yy GGGGG", - "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormatItem-Md": "d/M", - "dateFormat-full": "EEEE d MMMM y G", - "days-format-short": [ + "days-format-abbr": [ "dom", "lun", "mar", @@ -117,24 +133,52 @@ define( "ven", "sab" ], - "dateFormatItem-yyyyMMM": "MMM y G", - "field-month-relative+-1": "Mese scorso", - "quarters-format-wide": [ - "1o trimestre", - "2o trimestre", - "3o trimestre", - "4o trimestre" + "days-format-narrow": [ + "D", + "L", + "M", + "M", + "G", + "V", + "S" ], - "days-format-wide": [ - "domenica", - "lunedì", - "martedì", - "mercoledì", - "giovedì", - "venerdì", - "sabato" + "dateFormatItem-yyyyMd": "d/M/y GGGGG", + "field-month": "mese", + "days-standAlone-narrow": [ + "D", + "L", + "M", + "M", + "G", + "V", + "S" ], - "dateFormatItem-h": "hh a" + "field-tue-relative+0": "questo martedì", + "field-tue-relative+1": "martedì prossimo", + "field-mon-relative+0": "questo lunedì", + "field-mon-relative+1": "lunedì prossimo", + "dateFormat-short": "dd/MM/yy GGGGG", + "field-second": "secondo", + "field-sat-relative+-1": "sabato scorso", + "field-sun-relative+-1": "domenica scorsa", + "field-month-relative+0": "questo mese", + "field-month-relative+1": "mese prossimo", + "dateFormatItem-Ed": "E d", + "field-week": "settimana", + "dateFormat-medium": "dd/MMM/y G", + "field-year-relative+0": "quest'anno", + "field-week-relative+-1": "settimana scorsa", + "dateFormatItem-yyyyM": "M/y GGGGG", + "field-year-relative+1": "anno prossimo", + "dayPeriods-format-narrow-pm": "p.", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-hms": "hh:mm:ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "lunedì scorso", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "questa settimana", + "field-week-relative+1": "settimana prossima" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/it/islamic.js b/cldr/nls/it/islamic.js index 3caf841b8f..e1bb05ff5d 100644 --- a/cldr/nls/it/islamic.js +++ b/cldr/nls/it/islamic.js @@ -1,85 +1,96 @@ define( //begin v1.x content { - "field-dayperiod": "periodo del giorno", - "dateFormatItem-yyyyMMMEd": "E d MMM y G", - "field-minute": "minuto", - "dateFormatItem-MMMEd": "E d MMM", - "field-day-relative+-1": "ieri", + "days-standAlone-short": [ + "dom", + "lun", + "mar", + "mer", + "gio", + "ven", + "sab" + ], + "field-second-relative+0": "ora", "field-weekday": "giorno della settimana", - "dateFormatItem-hms": "hh:mm:ss a", - "field-day-relative+-2": "l'altro ieri", - "days-standAlone-wide": [ - "Domenica", - "Lunedì", - "Martedì", - "Mercoledì", - "Giovedì", - "Venerdì", - "Sabato" + "field-wed-relative+0": "questo mercoledì", + "field-wed-relative+1": "mercoledì prossimo", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "martedì scorso", + "days-format-short": [ + "dom", + "lun", + "mar", + "mer", + "gio", + "ven", + "sab" ], + "dateFormat-long": "dd MMMM y G", + "field-fri-relative+-1": "venerdì scorso", + "field-wed-relative+-1": "mercoledì scorso", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-medium": "{1}, {0}", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", + "field-thu-relative+-1": "giovedì scorso", + "dateFormatItem-Md": "d/M", "field-era": "era", - "dateFormatItem-Gy": "y G", + "quarters-format-wide": [ + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre" + ], + "field-year": "anno", "field-hour": "ora", - "quarters-standAlone-abbr": [ + "field-sat-relative+0": "questo sabato", + "field-sat-relative+1": "sabato prossimo", + "field-day-relative+0": "oggi", + "field-thu-relative+0": "questo giovedì", + "field-day-relative+1": "domani", + "field-thu-relative+1": "giovedì prossimo", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "dopodomani", + "quarters-format-abbr": [ "T1", "T2", "T3", "T4" ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E d", - "field-day-relative+0": "oggi", - "field-day-relative+1": "domani", - "days-standAlone-narrow": [ - "D", - "L", - "M", - "M", - "G", - "V", - "S" - ], - "eraAbbr": [ - "AH" - ], - "field-day-relative+2": "dopodomani", - "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormat-long": "dd MMMM y G", - "field-zone": "zona", - "field-week-relative+-1": "Settimana scorsa", - "dateFormat-medium": "dd/MMM/y G", - "dayPeriods-format-narrow-pm": "p.", - "field-year-relative+0": "Questo anno", - "field-year-relative+1": "Anno prossimo", "quarters-standAlone-wide": [ "Primo trimestre", "Secondo trimestre", "Terzo trimestre", "Quarto trimestre" ], - "field-year-relative+-1": "Anno scorso", - "field-year": "anno", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "dayPeriods-format-narrow-am": "m.", - "field-week": "settimana", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "days-standAlone-wide": [ + "Domenica", + "Lunedì", + "Martedì", + "Mercoledì", + "Giovedì", + "Venerdì", + "Sabato" + ], + "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMd": "d/M/y GGGGG", - "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", - "field-week-relative+0": "Questa settimana", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+1": "Settimana prossima", - "field-month-relative+0": "Questo mese", - "field-month": "mese", - "field-month-relative+1": "Mese prossimo", - "quarters-format-abbr": [ + "field-sun-relative+0": "questa domenica", + "field-sun-relative+1": "domenica prossima", + "quarters-standAlone-abbr": [ "T1", "T2", "T3", "T4" ], - "days-format-abbr": [ + "eraAbbr": [ + "AH" + ], + "field-minute": "minuto", + "field-dayperiod": "periodo del giorno", + "days-standAlone-abbr": [ "dom", "lun", "mar", @@ -88,27 +99,32 @@ define( "ven", "sab" ], - "field-second": "secondo", - "dateFormatItem-GyMMMEd": "E d MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "giorno", - "dateFormatItem-yyyyQQQ": "QQQ y G", + "field-day-relative+-1": "ieri", + "dateFormatItem-h": "hh a", + "dateTimeFormat-long": "{1} 'alle' {0}", + "dayPeriods-format-narrow-am": "m.", + "field-day-relative+-2": "l'altro ieri", + "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E d/M", - "days-standAlone-short": [ - "dom", - "lun", - "mar", - "mer", - "gio", - "ven", - "sab" + "dateTimeFormat-full": "{1} 'alle' {0}", + "field-fri-relative+0": "questo venerdì", + "field-fri-relative+1": "venerdì prossimo", + "field-day": "giorno", + "days-format-wide": [ + "domenica", + "lunedì", + "martedì", + "mercoledì", + "giovedì", + "venerdì", + "sabato" ], + "field-zone": "fuso orario", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "anno scorso", + "field-month-relative+-1": "mese scorso", "dateFormatItem-hm": "hh:mm a", - "dateFormat-short": "dd/MM/yy GGGGG", - "dateFormatItem-yyyyM": "M/y GGGGG", - "dateFormat-full": "EEEE d MMMM y G", - "dateFormatItem-Md": "d/M", - "days-format-short": [ + "days-format-abbr": [ "dom", "lun", "mar", @@ -117,24 +133,52 @@ define( "ven", "sab" ], - "dateFormatItem-yyyyMMM": "MMM y G", - "field-month-relative+-1": "Mese scorso", - "quarters-format-wide": [ - "1o trimestre", - "2o trimestre", - "3o trimestre", - "4o trimestre" + "days-format-narrow": [ + "D", + "L", + "M", + "M", + "G", + "V", + "S" ], - "days-format-wide": [ - "domenica", - "lunedì", - "martedì", - "mercoledì", - "giovedì", - "venerdì", - "sabato" + "dateFormatItem-yyyyMd": "d/M/y GGGGG", + "field-month": "mese", + "days-standAlone-narrow": [ + "D", + "L", + "M", + "M", + "G", + "V", + "S" ], - "dateFormatItem-h": "hh a" + "field-tue-relative+0": "questo martedì", + "field-tue-relative+1": "martedì prossimo", + "field-mon-relative+0": "questo lunedì", + "field-mon-relative+1": "lunedì prossimo", + "dateFormat-short": "dd/MM/yy GGGGG", + "field-second": "secondo", + "field-sat-relative+-1": "sabato scorso", + "field-sun-relative+-1": "domenica scorsa", + "field-month-relative+0": "questo mese", + "field-month-relative+1": "mese prossimo", + "dateFormatItem-Ed": "E d", + "field-week": "settimana", + "dateFormat-medium": "dd/MMM/y G", + "field-year-relative+0": "quest'anno", + "field-week-relative+-1": "settimana scorsa", + "dateFormatItem-yyyyM": "M/y GGGGG", + "field-year-relative+1": "anno prossimo", + "dayPeriods-format-narrow-pm": "p.", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-hms": "hh:mm:ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "lunedì scorso", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "questa settimana", + "field-week-relative+1": "settimana prossima" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/it/japanese.js b/cldr/nls/it/japanese.js index 3e79d61e34..67a9ca549c 100644 --- a/cldr/nls/it/japanese.js +++ b/cldr/nls/it/japanese.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "dateFormat-medium": "dd/MMM/y G", - "field-second": "secondo", - "field-year-relative+-1": "Anno scorso", - "field-week": "settimana", - "field-month-relative+-1": "Mese scorso", + "field-sat-relative+0": "questo sabato", + "field-sat-relative+1": "sabato prossimo", + "field-dayperiod": "periodo del giorno", + "field-sun-relative+-1": "domenica scorsa", + "field-mon-relative+-1": "lunedì scorso", + "field-minute": "minuto", "field-day-relative+-1": "ieri", + "field-weekday": "giorno della settimana", "field-day-relative+-2": "l'altro ieri", - "field-year": "anno", - "field-week-relative+0": "Questa settimana", - "field-week-relative+1": "Settimana prossima", - "field-minute": "minuto", - "field-week-relative+-1": "Settimana scorsa", - "field-day-relative+0": "oggi", + "field-era": "era", "field-hour": "ora", + "field-sun-relative+0": "questa domenica", + "field-sun-relative+1": "domenica prossima", + "field-wed-relative+-1": "mercoledì scorso", + "field-day-relative+0": "oggi", "field-day-relative+1": "domani", - "dateFormat-long": "dd MMMM y G", "field-day-relative+2": "dopodomani", - "field-day": "giorno", - "field-month-relative+0": "Questo mese", - "field-month-relative+1": "Mese prossimo", - "field-dayperiod": "periodo del giorno", + "dateFormat-long": "dd MMMM y G", + "field-tue-relative+0": "questo martedì", + "field-zone": "fuso orario", + "field-tue-relative+1": "martedì prossimo", + "field-week-relative+-1": "settimana scorsa", + "dateFormat-medium": "dd/MMM/y G", + "field-year-relative+0": "quest'anno", + "field-year-relative+1": "anno prossimo", + "field-sat-relative+-1": "sabato scorso", + "field-year-relative+-1": "anno scorso", + "field-year": "anno", + "field-fri-relative+0": "questo venerdì", + "field-fri-relative+1": "venerdì prossimo", + "field-week": "settimana", + "field-week-relative+0": "questa settimana", + "field-week-relative+1": "settimana prossima", + "field-month-relative+0": "questo mese", "field-month": "mese", + "field-month-relative+1": "mese prossimo", + "field-fri-relative+-1": "venerdì scorso", + "field-second": "secondo", + "field-tue-relative+-1": "martedì scorso", + "field-day": "giorno", + "field-mon-relative+0": "questo lunedì", + "field-mon-relative+1": "lunedì prossimo", + "field-thu-relative+0": "questo giovedì", + "field-second-relative+0": "ora", "dateFormat-short": "dd/MM/yy GGGGG", - "field-era": "era", - "field-year-relative+0": "Questo anno", - "field-year-relative+1": "Anno prossimo", + "field-thu-relative+1": "giovedì prossimo", "dateFormat-full": "EEEE d MMMM y G", - "field-weekday": "giorno della settimana", - "field-zone": "zona" + "field-wed-relative+0": "questo mercoledì", + "field-wed-relative+1": "mercoledì prossimo", + "field-month-relative+-1": "mese scorso", + "field-thu-relative+-1": "giovedì scorso" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/it/number.js b/cldr/nls/it/number.js index 2c4456d5d3..d0d2b74111 100644 --- a/cldr/nls/it/number.js +++ b/cldr/nls/it/number.js @@ -10,10 +10,11 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", - "currencyFormat": "¤ #,##0.00", + "currencyFormat": "#,##0.00 ¤", "plusSign": "+", "decimalFormat-long": "000 bilioni", "decimalFormat-short": "000 Bln" diff --git a/cldr/nls/it/roc.js b/cldr/nls/it/roc.js index 9ca35b91a9..74d5d9b768 100644 --- a/cldr/nls/it/roc.js +++ b/cldr/nls/it/roc.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "field-second": "secondo", - "field-year-relative+-1": "Anno scorso", - "field-week": "settimana", - "field-month-relative+-1": "Mese scorso", + "field-sat-relative+0": "questo sabato", + "field-sat-relative+1": "sabato prossimo", + "field-dayperiod": "periodo del giorno", + "field-sun-relative+-1": "domenica scorsa", + "field-mon-relative+-1": "lunedì scorso", + "field-minute": "minuto", "field-day-relative+-1": "ieri", + "field-weekday": "giorno della settimana", "field-day-relative+-2": "l'altro ieri", - "field-year": "anno", - "field-week-relative+0": "Questa settimana", - "field-week-relative+1": "Settimana prossima", - "field-minute": "minuto", - "field-week-relative+-1": "Settimana scorsa", - "field-day-relative+0": "oggi", + "field-era": "era", "field-hour": "ora", + "field-sun-relative+0": "questa domenica", + "field-sun-relative+1": "domenica prossima", + "field-wed-relative+-1": "mercoledì scorso", + "field-day-relative+0": "oggi", "field-day-relative+1": "domani", - "field-day-relative+2": "dopodomani", - "field-day": "giorno", - "field-month-relative+0": "Questo mese", - "field-month-relative+1": "Mese prossimo", - "field-dayperiod": "periodo del giorno", - "field-month": "mese", - "field-era": "era", - "field-year-relative+0": "Questo anno", - "field-year-relative+1": "Anno prossimo", "eraAbbr": [ "Prima della R.O.C.", "Minguo" ], - "field-weekday": "giorno della settimana", - "field-zone": "zona" + "field-day-relative+2": "dopodomani", + "field-tue-relative+0": "questo martedì", + "field-zone": "fuso orario", + "field-tue-relative+1": "martedì prossimo", + "field-week-relative+-1": "settimana scorsa", + "field-year-relative+0": "quest'anno", + "field-year-relative+1": "anno prossimo", + "field-sat-relative+-1": "sabato scorso", + "field-year-relative+-1": "anno scorso", + "field-year": "anno", + "field-fri-relative+0": "questo venerdì", + "field-fri-relative+1": "venerdì prossimo", + "field-week": "settimana", + "field-week-relative+0": "questa settimana", + "field-week-relative+1": "settimana prossima", + "field-month-relative+0": "questo mese", + "field-month": "mese", + "field-month-relative+1": "mese prossimo", + "field-fri-relative+-1": "venerdì scorso", + "field-second": "secondo", + "field-tue-relative+-1": "martedì scorso", + "field-day": "giorno", + "field-mon-relative+0": "questo lunedì", + "field-mon-relative+1": "lunedì prossimo", + "field-thu-relative+0": "questo giovedì", + "field-second-relative+0": "ora", + "field-thu-relative+1": "giovedì prossimo", + "field-wed-relative+0": "questo mercoledì", + "field-wed-relative+1": "mercoledì prossimo", + "field-month-relative+-1": "mese scorso", + "field-thu-relative+-1": "giovedì scorso" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ja/buddhist.js b/cldr/nls/ja/buddhist.js index 0cb4a0fb8a..b253e634df 100644 --- a/cldr/nls/ja/buddhist.js +++ b/cldr/nls/ja/buddhist.js @@ -10,10 +10,14 @@ define( "金", "土" ], + "field-second-relative+0": "今すぐ", "field-weekday": "曜日", "dateFormatItem-GyMd": "GGGGy年M月d日", + "field-wed-relative+0": "今週の水曜日", + "field-wed-relative+1": "来週の水曜日", "dateFormatItem-GyMMMEd": "GGGGy年M月d日(E)", "dateFormatItem-MMMEd": "M月d日(E)", + "field-tue-relative+-1": "先週の火曜日", "days-format-short": [ "日", "月", @@ -24,6 +28,8 @@ define( "土" ], "dateFormat-long": "GGGGy年M月d日", + "field-fri-relative+-1": "先週の金曜日", + "field-wed-relative+-1": "先週の水曜日", "months-format-wide": [ "1月", "2月", @@ -38,12 +44,28 @@ define( "11月", "12月" ], - "dateFormatItem-yyyyQQQ": "GGGGy QQQ", + "dateFormatItem-yyyyQQQ": "Gy/QQQ", "dayPeriods-format-wide-pm": "午後", "dateFormat-full": "GGGGy年M月d日EEEE", "dateFormatItem-yyyyMEd": "GGGGy年M/d(E)", + "field-thu-relative+-1": "先週の木曜日", "dateFormatItem-Md": "M/d", + "dayPeriods-format-wide-noon": "正午", "field-era": "時代", + "months-standAlone-wide": [ + "1月", + "2月", + "3月", + "4月", + "5月", + "6月", + "7月", + "8月", + "9月", + "10月", + "11月", + "12月" + ], "timeFormat-short": "H:mm", "quarters-format-wide": [ "第1四半期", @@ -55,39 +77,94 @@ define( "timeFormat-long": "H:mm:ss z", "field-year": "年", "field-hour": "時", + "months-format-abbr": [ + "1月", + "2月", + "3月", + "4月", + "5月", + "6月", + "7月", + "8月", + "9月", + "10月", + "11月", + "12月" + ], + "field-sat-relative+0": "今週の土曜日", + "field-sat-relative+1": "来週の土曜日", "timeFormat-full": "H時mm分ss秒 zzzz", "field-day-relative+0": "今日", + "field-thu-relative+0": "今週の木曜日", "field-day-relative+1": "明日", + "field-thu-relative+1": "来週の木曜日", "dateFormatItem-GyMMMd": "GGGGy年M月d日", "field-day-relative+2": "明後日", "dateFormatItem-H": "H時", - "quarters-format-abbr": [ - "1Q", - "2Q", - "3Q", - "4Q" + "months-standAlone-abbr": [ + "1月", + "2月", + "3月", + "4月", + "5月", + "6月", + "7月", + "8月", + "9月", + "10月", + "11月", + "12月" + ], + "quarters-standAlone-wide": [ + "第1四半期", + "第2四半期", + "第3四半期", + "第4四半期" ], "dateFormatItem-Gy": "GGGGy年", "dateFormatItem-yyyyMMMEd": "GGGGy年M月d日(E)", "dateFormatItem-M": "M月", + "days-standAlone-wide": [ + "日曜日", + "月曜日", + "火曜日", + "水曜日", + "木曜日", + "金曜日", + "土曜日" + ], "dateFormatItem-yyyyMMM": "GGGGy年M月", "dateFormatItem-yyyyMMMd": "GGGGy年M月d日", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "今週の日曜日", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "来週の日曜日", "eraAbbr": [ "BE" ], "field-minute": "分", "field-dayperiod": "午前/午後", + "days-standAlone-abbr": [ + "日", + "月", + "火", + "水", + "木", + "金", + "土" + ], "dateFormatItem-d": "d日", "dateFormatItem-yyyyMEEEEd": "GGGGy年M/dEEEE", "dateFormatItem-ms": "mm:ss", "field-day-relative+-1": "昨日", "dateFormatItem-h": "aK時", + "dayPeriods-format-narrow-am": "午前", "field-day-relative+-2": "一昨日", "dateFormatItem-MMMd": "M月d日", "dateFormatItem-EEEEd": "d日EEEE", "dateFormatItem-MEd": "M/d(E)", + "field-fri-relative+0": "今週の金曜日", + "field-fri-relative+1": "来週の金曜日", "field-day": "日", "days-format-wide": [ "日曜日", @@ -118,9 +195,19 @@ define( "仏暦" ], "dateFormatItem-yyyyMMMEEEEd": "GGGGy年M月d日EEEE", + "days-format-narrow": [ + "日", + "月", + "火", + "水", + "木", + "金", + "土" + ], "dateFormatItem-MMMEEEEd": "M月d日EEEE", "dateFormatItem-yyyyMd": "Gy/M/d", "field-month": "月", + "dateFormatItem-MMM": "M月", "days-standAlone-narrow": [ "日", "月", @@ -130,10 +217,16 @@ define( "金", "土" ], - "dateFormatItem-MMM": "M月", + "field-tue-relative+0": "今週の火曜日", + "field-tue-relative+1": "来週の火曜日", "dayPeriods-format-wide-am": "午前", + "field-mon-relative+0": "今週の月曜日", + "field-mon-relative+1": "来週の月曜日", "dateFormat-short": "Gy/MM/dd", + "dayPeriods-format-narrow-noon": "正午", "field-second": "秒", + "field-sat-relative+-1": "先週の土曜日", + "field-sun-relative+-1": "先週の日曜日", "field-month-relative+0": "今月", "field-month-relative+1": "翌月", "dateFormatItem-Ed": "d日(E)", @@ -143,10 +236,12 @@ define( "field-week-relative+-1": "先週", "dateFormatItem-yyyyM": "GGGGy年M月", "field-year-relative+1": "翌年", - "dateFormatItem-yyyyQQQQ": "GGGGy第Q四半期", + "dayPeriods-format-narrow-pm": "午後", + "dateFormatItem-yyyyQQQQ": "GyQQQQ", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "aK:mm:ss", "dateFormatItem-GyMMM": "GGGGy年M月", + "field-mon-relative+-1": "先週の月曜日", "dateFormatItem-yyyy": "GGGGy年", "field-week-relative+0": "今週", "field-week-relative+1": "翌週" diff --git a/cldr/nls/ja/chinese.js b/cldr/nls/ja/chinese.js index 1286c5d445..e31867bd06 100644 --- a/cldr/nls/ja/chinese.js +++ b/cldr/nls/ja/chinese.js @@ -1,15 +1,7 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "U年MMMd日(E)", - "field-dayperiod": "午前/午後", - "field-minute": "分", - "dateFormatItem-MMMEd": "MMMd日(E)", - "field-day-relative+-1": "昨日", - "dateFormatItem-hms": "aK:mm:ss", - "field-day-relative+-2": "一昨日", - "field-weekday": "曜日", - "months-standAlone-narrow": [ + "months-format-narrow": [ "正", "二", "三", @@ -23,53 +15,115 @@ define( "十一", "十二" ], - "dateFormatItem-Gy": "U年", + "field-second-relative+0": "今すぐ", + "field-weekday": "曜日", + "field-wed-relative+0": "今週の水曜日", + "dateFormatItem-GyMMMEd": "U年MMMd日(E)", + "dateFormatItem-MMMEd": "MMMd日(E)", + "field-wed-relative+1": "来週の水曜日", + "field-tue-relative+-1": "先週の火曜日", + "dateFormat-long": "U年MMMd日", + "field-fri-relative+-1": "先週の金曜日", + "field-wed-relative+-1": "先週の水曜日", + "months-format-wide": [ + "正月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月" + ], + "dateFormatItem-yyyyQQQ": "U年QQQ", + "dateFormat-full": "U年MMMd日EEEE", + "dateFormatItem-yyyyMEd": "U年M月d日(E)", + "field-thu-relative+-1": "先週の木曜日", + "dateFormatItem-Md": "M/d", + "dateFormatItem-yMd": "U年M月d日", "field-era": "時代", + "months-standAlone-wide": [ + "正月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月" + ], + "dateFormatItem-MEEEEd": "M/dEEEE", + "field-year": "年", "field-hour": "時", - "dateFormatItem-y": "U年", - "dateFormatItem-yyyy": "U年", - "dateFormatItem-yyyyMMMEEEEd": "U年MMMd日EEEE", - "dateFormatItem-EEEEd": "d日EEEE", - "dateFormatItem-Ed": "d日(E)", + "months-format-abbr": [ + "正月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月" + ], + "field-sat-relative+0": "今週の土曜日", + "field-sat-relative+1": "来週の土曜日", "field-day-relative+0": "今日", "field-day-relative+1": "明日", - "field-day-relative+2": "明後日", + "field-thu-relative+0": "今週の木曜日", "dateFormatItem-GyMMMd": "U年MMMd日", - "dateFormat-long": "U年MMMd日", - "field-zone": "タイムゾーン", - "dateFormatItem-Hm": "H:mm", - "dateFormatItem-MMMEEEEd": "MMMd日EEEE", - "field-week-relative+-1": "先週", - "dateFormat-medium": "U年MMMd日", - "dateFormatItem-Hms": "H:mm:ss", - "field-year-relative+0": "今年", - "field-year-relative+1": "翌年", - "dateFormatItem-yMd": "U年M月d日", - "field-year-relative+-1": "昨年", - "dateFormatItem-yyyyQQQQ": "UQQQQ", - "field-year": "年", - "dateFormatItem-GyMMMEEEEd": "U年MMMd日EEEE", - "field-week": "週", - "dateFormatItem-yyyyMd": "U年M月d日", + "field-day-relative+2": "明後日", + "field-thu-relative+1": "来週の木曜日", + "dateFormatItem-H": "H時", + "months-standAlone-abbr": [ + "正月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月" + ], + "dateFormatItem-Gy": "U年", + "dateFormatItem-yyyyMMMEd": "U年MMMd日(E)", + "dateFormatItem-M": "MMM", + "dateFormatItem-yyyyMMM": "U年MMM", "dateFormatItem-yyyyMMMd": "U年MMMd日", - "dateFormatItem-yyyyMEd": "U年M月d日(E)", + "field-sun-relative+0": "今週の日曜日", + "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "来週の日曜日", + "field-minute": "分", + "field-dayperiod": "午前/午後", + "dateFormatItem-d": "d日", "dateFormatItem-yyyyMEEEEd": "U年M月d日EEEE", + "field-day-relative+-1": "昨日", + "dateFormatItem-h": "aK時", + "field-day-relative+-2": "一昨日", "dateFormatItem-MMMd": "MMMd日", - "field-week-relative+0": "今週", - "field-week-relative+1": "翌週", - "field-month-relative+0": "今月", - "dateFormatItem-H": "H時", - "field-month": "月", - "field-month-relative+1": "翌月", - "dateFormatItem-M": "MMM", - "field-second": "秒", - "dateFormatItem-GyMMMEd": "U年MMMd日(E)", - "dateFormatItem-GyMMM": "U年MMM", - "dateFormatItem-MEEEEd": "M/dEEEE", - "field-day": "日", + "dateFormatItem-EEEEd": "d日EEEE", "dateFormatItem-MEd": "M/d(E)", - "dateFormatItem-yyyyQQQ": "U/QQQ", - "months-format-narrow": [ + "field-fri-relative+0": "今週の金曜日", + "field-fri-relative+1": "来週の金曜日", + "field-day": "日", + "field-zone": "タイムゾーン", + "dateFormatItem-y": "U年", + "months-standAlone-narrow": [ "正", "二", "三", @@ -83,29 +137,39 @@ define( "十一", "十二" ], + "field-year-relative+-1": "昨年", + "field-month-relative+-1": "先月", "dateFormatItem-hm": "aK:mm", + "dateFormatItem-GyMMMEEEEd": "U年MMMd日EEEE", + "dateFormatItem-yyyyMMMEEEEd": "U年MMMd日EEEE", + "dateFormatItem-MMMEEEEd": "MMMd日EEEE", + "dateFormatItem-yyyyMd": "U年M月d日", + "field-month": "月", + "field-tue-relative+0": "今週の火曜日", + "field-tue-relative+1": "来週の火曜日", + "field-mon-relative+0": "今週の月曜日", + "field-mon-relative+1": "来週の月曜日", "dateFormat-short": "U-M-d", + "field-second": "秒", + "field-sat-relative+-1": "先週の土曜日", + "field-sun-relative+-1": "先週の日曜日", + "field-month-relative+0": "今月", + "field-month-relative+1": "翌月", + "dateFormatItem-Ed": "d日(E)", + "field-week": "週", + "dateFormat-medium": "U年MMMd日", + "field-year-relative+0": "今年", + "field-week-relative+-1": "先週", "dateFormatItem-yyyyM": "U年M月", - "dateFormat-full": "U年MMMd日EEEE", - "dateFormatItem-Md": "M/d", - "months-format-wide": [ - "正月", - "二月", - "三月", - "四月", - "五月", - "六月", - "七月", - "八月", - "九月", - "十月", - "十一月", - "十二月" - ], - "dateFormatItem-yyyyMMM": "U年MMM", - "dateFormatItem-d": "d日", - "field-month-relative+-1": "先月", - "dateFormatItem-h": "aK時" + "field-year-relative+1": "翌年", + "dateFormatItem-yyyyQQQQ": "U年QQQQ", + "dateFormatItem-Hms": "H:mm:ss", + "dateFormatItem-hms": "aK:mm:ss", + "dateFormatItem-GyMMM": "U年MMM", + "field-mon-relative+-1": "先週の月曜日", + "dateFormatItem-yyyy": "U年", + "field-week-relative+0": "今週", + "field-week-relative+1": "翌週" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ja/coptic.js b/cldr/nls/ja/coptic.js index bce05b2b5f..58c26fd0cf 100644 --- a/cldr/nls/ja/coptic.js +++ b/cldr/nls/ja/coptic.js @@ -1,26 +1,14 @@ define( //begin v1.x content { - "field-second": "秒", - "field-year-relative+-1": "昨年", - "field-week": "週", - "field-month-relative+-1": "先月", + "field-sat-relative+0": "今週の土曜日", + "field-sat-relative+1": "来週の土曜日", + "field-dayperiod": "午前/午後", + "field-sun-relative+-1": "先週の日曜日", + "field-mon-relative+-1": "先週の月曜日", + "field-minute": "分", "field-day-relative+-1": "昨日", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], + "field-weekday": "曜日", "field-day-relative+-2": "一昨日", "months-standAlone-narrow": [ "1", @@ -37,7 +25,11 @@ define( "12", "13" ], - "months-standAlone-wide": [ + "field-era": "時代", + "field-hour": "時", + "field-sun-relative+0": "今週の日曜日", + "field-sun-relative+1": "来週の日曜日", + "months-standAlone-abbr": [ "トウト", "ババ", "ハトール", @@ -52,9 +44,22 @@ define( "メスラ", "ナシエ" ], + "field-wed-relative+-1": "先週の水曜日", + "field-day-relative+0": "今日", + "field-day-relative+1": "明日", + "field-day-relative+2": "明後日", + "field-tue-relative+0": "今週の火曜日", + "field-zone": "タイムゾーン", + "field-tue-relative+1": "来週の火曜日", + "field-week-relative+-1": "先週", + "field-year-relative+0": "今年", + "field-year-relative+1": "翌年", + "field-sat-relative+-1": "先週の土曜日", + "field-year-relative+-1": "昨年", "field-year": "年", - "field-week-relative+0": "今週", - "months-standAlone-abbr": [ + "field-fri-relative+0": "今週の金曜日", + "field-fri-relative+1": "来週の金曜日", + "months-standAlone-wide": [ "トウト", "ババ", "ハトール", @@ -69,19 +74,10 @@ define( "メスラ", "ナシエ" ], + "field-week": "週", + "field-week-relative+0": "今週", "field-week-relative+1": "翌週", - "field-minute": "分", - "field-week-relative+-1": "先週", - "field-day-relative+0": "今日", - "field-hour": "時", - "field-day-relative+1": "明日", - "field-day-relative+2": "明後日", - "field-day": "日", - "field-month-relative+0": "今月", - "field-month-relative+1": "翌月", - "field-dayperiod": "午前/午後", - "field-month": "月", - "months-format-wide": [ + "months-format-abbr": [ "トウト", "ババ", "ハトール", @@ -96,10 +92,34 @@ define( "メスラ", "ナシエ" ], - "field-era": "時代", - "field-year-relative+0": "今年", - "field-year-relative+1": "翌年", - "months-format-abbr": [ + "field-month-relative+0": "今月", + "field-month": "月", + "field-month-relative+1": "翌月", + "field-fri-relative+-1": "先週の金曜日", + "field-second": "秒", + "field-tue-relative+-1": "先週の火曜日", + "field-day": "日", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "今週の月曜日", + "field-mon-relative+1": "来週の月曜日", + "field-thu-relative+0": "今週の木曜日", + "field-second-relative+0": "今すぐ", + "field-thu-relative+1": "来週の木曜日", + "months-format-wide": [ "トウト", "ババ", "ハトール", @@ -114,8 +134,10 @@ define( "メスラ", "ナシエ" ], - "field-weekday": "曜日", - "field-zone": "タイムゾーン" + "field-wed-relative+0": "今週の水曜日", + "field-wed-relative+1": "来週の水曜日", + "field-month-relative+-1": "先月", + "field-thu-relative+-1": "先週の木曜日" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ja/dangi.js b/cldr/nls/ja/dangi.js new file mode 100644 index 0000000000..44a05b1771 --- /dev/null +++ b/cldr/nls/ja/dangi.js @@ -0,0 +1,141 @@ +define( +//begin v1.x content +{ + "field-sat-relative+0": "今週の土曜日", + "field-sat-relative+1": "来週の土曜日", + "field-dayperiod": "午前/午後", + "field-sun-relative+-1": "先週の日曜日", + "field-mon-relative+-1": "先週の月曜日", + "field-minute": "分", + "field-day-relative+-1": "昨日", + "field-weekday": "曜日", + "field-day-relative+-2": "一昨日", + "months-standAlone-narrow": [ + "正", + "二", + "三", + "四", + "五", + "六", + "七", + "八", + "九", + "十", + "十一", + "十二" + ], + "field-era": "時代", + "field-hour": "時", + "field-sun-relative+0": "今週の日曜日", + "field-sun-relative+1": "来週の日曜日", + "months-standAlone-abbr": [ + "正月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月" + ], + "field-wed-relative+-1": "先週の水曜日", + "field-day-relative+0": "今日", + "field-day-relative+1": "明日", + "field-day-relative+2": "明後日", + "dateFormat-long": "U年MMMd日", + "field-tue-relative+0": "今週の火曜日", + "field-zone": "タイムゾーン", + "field-tue-relative+1": "来週の火曜日", + "field-week-relative+-1": "先週", + "dateFormat-medium": "U年MMMd日", + "field-year-relative+0": "今年", + "field-year-relative+1": "翌年", + "field-sat-relative+-1": "先週の土曜日", + "field-year-relative+-1": "昨年", + "field-year": "年", + "field-fri-relative+0": "今週の金曜日", + "field-fri-relative+1": "来週の金曜日", + "months-standAlone-wide": [ + "正月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月" + ], + "field-week": "週", + "field-week-relative+0": "今週", + "field-week-relative+1": "翌週", + "months-format-abbr": [ + "正月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月" + ], + "field-month-relative+0": "今月", + "field-month": "月", + "field-month-relative+1": "翌月", + "field-fri-relative+-1": "先週の金曜日", + "field-second": "秒", + "field-tue-relative+-1": "先週の火曜日", + "field-day": "日", + "months-format-narrow": [ + "正", + "二", + "三", + "四", + "五", + "六", + "七", + "八", + "九", + "十", + "十一", + "十二" + ], + "field-mon-relative+0": "今週の月曜日", + "field-mon-relative+1": "来週の月曜日", + "field-thu-relative+0": "今週の木曜日", + "field-second-relative+0": "今すぐ", + "dateFormat-short": "U-M-d", + "field-thu-relative+1": "来週の木曜日", + "dateFormat-full": "U年MMMd日EEEE", + "months-format-wide": [ + "正月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月" + ], + "field-wed-relative+0": "今週の水曜日", + "field-wed-relative+1": "来週の水曜日", + "field-month-relative+-1": "先月", + "field-thu-relative+-1": "先週の木曜日" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/ja/ethiopic.js b/cldr/nls/ja/ethiopic.js index be0caa5290..187d20b081 100644 --- a/cldr/nls/ja/ethiopic.js +++ b/cldr/nls/ja/ethiopic.js @@ -1,26 +1,14 @@ define( //begin v1.x content { - "field-second": "秒", - "field-year-relative+-1": "昨年", - "field-week": "週", - "field-month-relative+-1": "先月", + "field-sat-relative+0": "今週の土曜日", + "field-sat-relative+1": "来週の土曜日", + "field-dayperiod": "午前/午後", + "field-sun-relative+-1": "先週の日曜日", + "field-mon-relative+-1": "先週の月曜日", + "field-minute": "分", "field-day-relative+-1": "昨日", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], + "field-weekday": "曜日", "field-day-relative+-2": "一昨日", "months-standAlone-narrow": [ "1", @@ -37,7 +25,11 @@ define( "12", "13" ], - "months-standAlone-wide": [ + "field-era": "時代", + "field-hour": "時", + "field-sun-relative+0": "今週の日曜日", + "field-sun-relative+1": "来週の日曜日", + "months-standAlone-abbr": [ "メスケレム", "テケムト", "ヘダル", @@ -52,9 +44,22 @@ define( "ネハッセ", "パグメン" ], + "field-wed-relative+-1": "先週の水曜日", + "field-day-relative+0": "今日", + "field-day-relative+1": "明日", + "field-day-relative+2": "明後日", + "field-tue-relative+0": "今週の火曜日", + "field-zone": "タイムゾーン", + "field-tue-relative+1": "来週の火曜日", + "field-week-relative+-1": "先週", + "field-year-relative+0": "今年", + "field-year-relative+1": "翌年", + "field-sat-relative+-1": "先週の土曜日", + "field-year-relative+-1": "昨年", "field-year": "年", - "field-week-relative+0": "今週", - "months-standAlone-abbr": [ + "field-fri-relative+0": "今週の金曜日", + "field-fri-relative+1": "来週の金曜日", + "months-standAlone-wide": [ "メスケレム", "テケムト", "ヘダル", @@ -69,19 +74,10 @@ define( "ネハッセ", "パグメン" ], + "field-week": "週", + "field-week-relative+0": "今週", "field-week-relative+1": "翌週", - "field-minute": "分", - "field-week-relative+-1": "先週", - "field-day-relative+0": "今日", - "field-hour": "時", - "field-day-relative+1": "明日", - "field-day-relative+2": "明後日", - "field-day": "日", - "field-month-relative+0": "今月", - "field-month-relative+1": "翌月", - "field-dayperiod": "午前/午後", - "field-month": "月", - "months-format-wide": [ + "months-format-abbr": [ "メスケレム", "テケムト", "ヘダル", @@ -96,10 +92,34 @@ define( "ネハッセ", "パグメン" ], - "field-era": "時代", - "field-year-relative+0": "今年", - "field-year-relative+1": "翌年", - "months-format-abbr": [ + "field-month-relative+0": "今月", + "field-month": "月", + "field-month-relative+1": "翌月", + "field-fri-relative+-1": "先週の金曜日", + "field-second": "秒", + "field-tue-relative+-1": "先週の火曜日", + "field-day": "日", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "今週の月曜日", + "field-mon-relative+1": "来週の月曜日", + "field-thu-relative+0": "今週の木曜日", + "field-second-relative+0": "今すぐ", + "field-thu-relative+1": "来週の木曜日", + "months-format-wide": [ "メスケレム", "テケムト", "ヘダル", @@ -114,8 +134,10 @@ define( "ネハッセ", "パグメン" ], - "field-weekday": "曜日", - "field-zone": "タイムゾーン" + "field-wed-relative+0": "今週の水曜日", + "field-wed-relative+1": "来週の水曜日", + "field-month-relative+-1": "先月", + "field-thu-relative+-1": "先週の木曜日" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ja/generic.js b/cldr/nls/ja/generic.js index e5038cff89..a5a38604c4 100644 --- a/cldr/nls/ja/generic.js +++ b/cldr/nls/ja/generic.js @@ -1,74 +1,96 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "Gy年M月d日(E)", - "field-dayperiod": "午前/午後", - "field-minute": "分", - "dateFormatItem-MMMEd": "M月d日(E)", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "昨日", - "dateFormatItem-hms": "aK:mm:ss", - "field-day-relative+-2": "一昨日", + "field-second-relative+0": "今すぐ", "field-weekday": "曜日", - "dateFormatItem-MMM": "M月", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "Gy年", + "field-wed-relative+0": "今週の水曜日", + "dateFormatItem-GyMMMEd": "Gy年M月d日(E)", + "dateFormatItem-MMMEd": "M月d日(E)", + "field-wed-relative+1": "来週の水曜日", + "field-tue-relative+-1": "先週の火曜日", + "dateFormat-long": "Gy年M月d日", + "field-fri-relative+-1": "先週の金曜日", + "field-wed-relative+-1": "先週の水曜日", + "dateFormatItem-yyyyQQQ": "Gy/QQQ", "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "Gy年M月d日EEEE", + "dateFormatItem-yyyyMEd": "Gy/M/d(E)", + "field-thu-relative+-1": "先週の木曜日", + "dateFormatItem-Md": "M/d", "field-era": "時代", + "dateFormatItem-MEEEEd": "M/dEEEE", + "field-year": "年", "field-hour": "時", - "dateFormatItem-y": "Gy年", - "dateFormatItem-yyyy": "Gy年", - "dateFormatItem-yyyyMMMEEEEd": "Gy年M月d日EEEE", - "dateFormatItem-EEEEd": "d日EEEE", - "dateFormatItem-Ed": "d日(E)", + "field-sat-relative+0": "今週の土曜日", + "field-sat-relative+1": "来週の土曜日", "field-day-relative+0": "今日", "field-day-relative+1": "明日", - "field-day-relative+2": "明後日", + "field-thu-relative+0": "今週の木曜日", "dateFormatItem-GyMMMd": "Gy年M月d日", - "dateFormat-long": "Gy年M月d日", - "field-zone": "タイムゾーン", + "field-day-relative+2": "明後日", + "field-thu-relative+1": "来週の木曜日", + "dateFormatItem-H": "H時", + "dateFormatItem-Gy": "Gy年", + "dateFormatItem-yyyyMMMEd": "Gy年M月d日(E)", + "dateFormatItem-M": "M月", + "dateFormatItem-yyyyMMM": "Gy年M月", + "dateFormatItem-yyyyMMMd": "Gy年M月d日", + "field-sun-relative+0": "今週の日曜日", "dateFormatItem-Hm": "H:mm", - "dateFormatItem-MMMEEEEd": "M月d日EEEE", - "field-week-relative+-1": "先週", - "dateFormat-medium": "Gy/MM/dd", - "dateFormatItem-Hms": "H:mm:ss", - "field-year-relative+0": "今年", - "field-year-relative+1": "翌年", - "field-year-relative+-1": "昨年", + "field-sun-relative+1": "来週の日曜日", + "field-minute": "分", + "field-dayperiod": "午前/午後", + "dateFormatItem-d": "d日", + "dateFormatItem-yyyyMEEEEd": "Gy/M/dEEEE", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "GyQQQQ", - "field-year": "年", - "dateFormatItem-GyMMMEEEEd": "Gy年M月d日EEEE", + "field-day-relative+-1": "昨日", + "dateFormatItem-h": "aK時", "dateTimeFormat-long": "{1} {0}", - "field-week": "週", - "dateFormatItem-yyyyMd": "Gy/M/d", - "dateFormatItem-yyyyMMMd": "Gy年M月d日", - "dateFormatItem-yyyyMEd": "Gy/M/d(E)", - "dateFormatItem-yyyyMEEEEd": "Gy/M/dEEEE", + "field-day-relative+-2": "一昨日", "dateFormatItem-MMMd": "M月d日", - "field-week-relative+0": "今週", - "field-week-relative+1": "翌週", - "field-month-relative+0": "今月", - "dateFormatItem-H": "H時", - "field-month": "月", - "field-month-relative+1": "翌月", - "dateFormatItem-M": "M月", - "field-second": "秒", - "dateFormatItem-GyMMMEd": "Gy年M月d日(E)", - "dateFormatItem-GyMMM": "Gy年M月", - "dateFormatItem-MEEEEd": "M/dEEEE", - "field-day": "日", + "dateFormatItem-EEEEd": "d日EEEE", "dateFormatItem-MEd": "M/d(E)", - "dateFormatItem-yyyyQQQ": "Gy/QQQ", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "今週の金曜日", + "field-fri-relative+1": "来週の金曜日", + "field-day": "日", + "field-zone": "タイムゾーン", + "dateFormatItem-y": "Gy年", + "field-year-relative+-1": "昨年", + "field-month-relative+-1": "先月", "dateFormatItem-hm": "aK:mm", + "dateFormatItem-GyMMMEEEEd": "Gy年M月d日EEEE", + "dateFormatItem-yyyyMMMEEEEd": "Gy年M月d日EEEE", + "dateFormatItem-MMMEEEEd": "M月d日EEEE", + "dateFormatItem-yyyyMd": "Gy/M/d", + "field-month": "月", + "dateFormatItem-MMM": "M月", + "field-tue-relative+0": "今週の火曜日", + "field-tue-relative+1": "来週の火曜日", + "field-mon-relative+0": "今週の月曜日", + "field-mon-relative+1": "来週の月曜日", "dateFormat-short": "Gy/MM/dd", + "field-second": "秒", + "field-sat-relative+-1": "先週の土曜日", + "field-sun-relative+-1": "先週の日曜日", + "field-month-relative+0": "今月", + "field-month-relative+1": "翌月", + "dateFormatItem-Ed": "d日(E)", + "field-week": "週", + "dateFormat-medium": "Gy/MM/dd", + "field-year-relative+0": "今年", + "field-week-relative+-1": "先週", "dateFormatItem-yyyyM": "Gy/M", - "dateFormat-full": "Gy年M月d日EEEE", - "dateFormatItem-Md": "M/d", - "dateFormatItem-yyyyMMM": "Gy年M月", - "dateFormatItem-d": "d日", - "field-month-relative+-1": "先月", - "dateFormatItem-h": "aK時" + "field-year-relative+1": "翌年", + "dateFormatItem-yyyyQQQQ": "GyQQQQ", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "H:mm:ss", + "dateFormatItem-hms": "aK:mm:ss", + "dateFormatItem-GyMMM": "Gy年M月", + "field-mon-relative+-1": "先週の月曜日", + "dateFormatItem-yyyy": "Gy年", + "field-week-relative+0": "今週", + "field-week-relative+1": "翌週" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ja/gregorian.js b/cldr/nls/ja/gregorian.js index f27e6ddaed..165464c5b4 100644 --- a/cldr/nls/ja/gregorian.js +++ b/cldr/nls/ja/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "a K 時 mm 分 (E)", "days-standAlone-short": [ "日", "月", @@ -10,6 +11,21 @@ define( "金", "土" ], + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-second-relative+0": "今すぐ", "quarters-standAlone-narrow": [ "1", "2", @@ -19,13 +35,18 @@ define( "field-weekday": "曜日", "dateFormatItem-yQQQ": "y/QQQ", "dateFormatItem-yMEd": "y/M/d(E)", + "field-wed-relative+0": "今週の水曜日", "dateFormatItem-GyMMMEd": "Gy年M月d日(E)", "dateFormatItem-MMMEd": "M月d日(E)", + "field-wed-relative+1": "来週の水曜日", "eraNarrow": [ "BC", - "AD" + "BCE", + "AD", + "CE" ], "dateFormatItem-yMM": "y/MM", + "field-tue-relative+-1": "先週の火曜日", "days-format-short": [ "日", "月", @@ -36,6 +57,8 @@ define( "土" ], "dateFormat-long": "y年M月d日", + "field-fri-relative+-1": "先週の金曜日", + "field-wed-relative+-1": "先週の水曜日", "months-format-wide": [ "1月", "2月", @@ -53,11 +76,12 @@ define( "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "午後", "dateFormat-full": "y年M月d日EEEE", + "field-thu-relative+-1": "先週の木曜日", "dateFormatItem-Md": "M/d", "dayPeriods-format-wide-noon": "正午", "dateFormatItem-yMd": "y/M/d", - "field-era": "時代", "dateFormatItem-yM": "y/M", + "field-era": "時代", "months-standAlone-wide": [ "1月", "2月", @@ -80,10 +104,10 @@ define( "第4四半期" ], "dateFormatItem-MEEEEd": "M/dEEEE", - "dateFormatItem-yQQQQ": "yQQQQ", "timeFormat-long": "H:mm:ss z", - "field-year": "年", "dateFormatItem-yMMM": "y年M月", + "dateFormatItem-yQQQQ": "yQQQQ", + "field-year": "年", "field-hour": "時", "months-format-abbr": [ "1月", @@ -99,12 +123,16 @@ define( "11月", "12月" ], - "dateFormatItem-yMEEEEd": "y/M/dEEEE", + "field-sat-relative+0": "今週の土曜日", + "field-sat-relative+1": "来週の土曜日", "timeFormat-full": "H時mm分ss秒 zzzz", + "dateFormatItem-yMEEEEd": "y/M/dEEEE", "field-day-relative+0": "今日", "field-day-relative+1": "明日", + "field-thu-relative+0": "今週の木曜日", "dateFormatItem-GyMMMd": "Gy年M月d日", "field-day-relative+2": "明後日", + "field-thu-relative+1": "来週の木曜日", "dateFormatItem-H": "H時", "months-standAlone-abbr": [ "1月", @@ -121,10 +149,10 @@ define( "12月" ], "quarters-format-abbr": [ - "1Q", - "2Q", - "3Q", - "4Q" + "Q1", + "Q2", + "Q3", + "Q4" ], "quarters-standAlone-wide": [ "第1四半期", @@ -145,6 +173,7 @@ define( ], "dateFormatItem-yMMMEEEEd": "y年M月d日EEEE", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "今週の日曜日", "dateFormatItem-Hm": "H:mm", "quarters-standAlone-abbr": [ "Q1", @@ -152,8 +181,10 @@ define( "Q3", "Q4" ], + "field-sun-relative+1": "来週の日曜日", "eraAbbr": [ "紀元前", + "西暦紀元前", "西暦" ], "field-minute": "分", @@ -178,11 +209,14 @@ define( "field-day-relative+-1": "昨日", "dateFormatItem-h": "aK時", "dateTimeFormat-long": "{1} {0}", + "dayPeriods-format-narrow-am": "午前", "field-day-relative+-2": "一昨日", "dateFormatItem-MMMd": "M月d日", "dateFormatItem-EEEEd": "d日EEEE", "dateFormatItem-MEd": "M/d(E)", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "今週の金曜日", + "field-fri-relative+1": "来週の金曜日", "field-day": "日", "days-format-wide": [ "日曜日", @@ -222,11 +256,12 @@ define( "金", "土" ], - "dateFormatItem-yMMMd": "y年M月d日", "eraNames": [ "紀元前", + "西暦紀元前", "西暦" ], + "dateFormatItem-yMMMd": "y年M月d日", "days-format-narrow": [ "日", "月", @@ -237,7 +272,6 @@ define( "土" ], "dateFormatItem-MMMEEEEd": "M月d日EEEE", - "field-month": "月", "days-standAlone-narrow": [ "日", "月", @@ -248,22 +282,36 @@ define( "土" ], "dateFormatItem-MMM": "M月", + "field-month": "月", + "field-tue-relative+0": "今週の火曜日", + "field-tue-relative+1": "来週の火曜日", "dayPeriods-format-wide-am": "午前", + "dateFormatItem-EHm": "HH 時 mm 分 (E)", + "field-mon-relative+0": "今週の月曜日", + "field-mon-relative+1": "来週の月曜日", "dateFormat-short": "y/MM/dd", + "dateFormatItem-EHms": "HH 時 mm 分 ss 秒 (E)", + "dateFormatItem-Ehms": "a K 時 mm 分 ss 秒 (E)", + "dayPeriods-format-narrow-noon": "正午", "field-second": "秒", + "field-sat-relative+-1": "先週の土曜日", "dateFormatItem-yMMMEd": "y年M月d日(E)", + "field-sun-relative+-1": "先週の日曜日", "field-month-relative+0": "今月", "field-month-relative+1": "翌月", "dateFormatItem-Ed": "d日(E)", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "週", "dateFormat-medium": "y/MM/dd", "field-year-relative+0": "今年", "field-week-relative+-1": "先週", "field-year-relative+1": "翌年", + "dayPeriods-format-narrow-pm": "午後", "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "aK:mm:ss", "dateFormatItem-GyMMM": "Gy年M月", + "field-mon-relative+-1": "先週の月曜日", "field-week-relative+0": "今週", "field-week-relative+1": "翌週" } diff --git a/cldr/nls/ja/hebrew.js b/cldr/nls/ja/hebrew.js index 32c65a1bfe..51af5da7a7 100644 --- a/cldr/nls/ja/hebrew.js +++ b/cldr/nls/ja/hebrew.js @@ -25,10 +25,14 @@ define( "12", "13" ], + "field-second-relative+0": "今すぐ", "field-weekday": "曜日", "months-standAlone-narrow-leap": "7", + "field-wed-relative+0": "今週の水曜日", + "field-wed-relative+1": "来週の水曜日", "dateFormatItem-GyMMMEd": "Gy年M月d日(E)", "dateFormatItem-MMMEd": "M月d日(E)", + "field-tue-relative+-1": "先週の火曜日", "days-format-short": [ "日", "月", @@ -39,6 +43,8 @@ define( "土" ], "dateFormat-long": "Gy年M月d日", + "field-fri-relative+-1": "先週の金曜日", + "field-wed-relative+-1": "先週の水曜日", "months-format-wide": [ "ティスレ", "へシボン", @@ -58,7 +64,9 @@ define( "dayPeriods-format-wide-pm": "午後", "dateFormat-full": "Gy年M月d日EEEE", "dateFormatItem-yyyyMEd": "Gy/M/d(E)", + "field-thu-relative+-1": "先週の木曜日", "dateFormatItem-Md": "M/d", + "dayPeriods-format-wide-noon": "正午", "field-era": "時代", "months-standAlone-wide": [ "ティスレ", @@ -101,9 +109,13 @@ define( "アヴ", "エルル" ], + "field-sat-relative+0": "今週の土曜日", + "field-sat-relative+1": "来週の土曜日", "timeFormat-full": "H時mm分ss秒 zzzz", "field-day-relative+0": "今日", + "field-thu-relative+0": "今週の木曜日", "field-day-relative+1": "明日", + "field-thu-relative+1": "来週の木曜日", "dateFormatItem-GyMMMd": "Gy年M月d日", "field-day-relative+2": "明後日", "dateFormatItem-H": "H時", @@ -122,32 +134,55 @@ define( "アヴ", "エルル" ], - "quarters-format-abbr": [ - "1Q", - "2Q", - "3Q", - "4Q" + "quarters-standAlone-wide": [ + "第1四半期", + "第2四半期", + "第3四半期", + "第4四半期" ], "dateFormatItem-Gy": "Gy年", "dateFormatItem-yyyyMMMEd": "Gy年M月d日(E)", "dateFormatItem-M": "M月", + "days-standAlone-wide": [ + "日曜日", + "月曜日", + "火曜日", + "水曜日", + "木曜日", + "金曜日", + "土曜日" + ], "dateFormatItem-yyyyMMM": "Gy年M月", "dateFormatItem-yyyyMMMd": "Gy年M月d日", "months-standAlone-wide-leap": "アダル II", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "今週の日曜日", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "来週の日曜日", "months-format-narrow-leap": "7", "eraAbbr": [ "AM" ], "field-minute": "分", "field-dayperiod": "午前/午後", + "days-standAlone-abbr": [ + "日", + "月", + "火", + "水", + "木", + "金", + "土" + ], "dateFormatItem-d": "d日", "field-day-relative+-1": "昨日", "dateFormatItem-h": "aK時", + "dayPeriods-format-narrow-am": "午前", "field-day-relative+-2": "一昨日", "dateFormatItem-MMMd": "M月d日", "dateFormatItem-MEd": "M/d(E)", + "field-fri-relative+0": "今週の金曜日", + "field-fri-relative+1": "来週の金曜日", "field-day": "日", "days-format-wide": [ "日曜日", @@ -160,7 +195,6 @@ define( ], "field-zone": "タイムゾーン", "months-standAlone-abbr-leap": "アダル II", - "dateFormatItem-y": "Gy年", "months-standAlone-narrow": [ "1", "2", @@ -176,6 +210,7 @@ define( "12", "13" ], + "dateFormatItem-y": "Gy年", "field-year-relative+-1": "昨年", "field-month-relative+-1": "先月", "dateFormatItem-hm": "aK:mm", @@ -188,8 +223,18 @@ define( "金", "土" ], + "days-format-narrow": [ + "日", + "月", + "火", + "水", + "木", + "金", + "土" + ], "dateFormatItem-yyyyMd": "Gy/M/d", "field-month": "月", + "dateFormatItem-MMM": "M月", "days-standAlone-narrow": [ "日", "月", @@ -199,10 +244,16 @@ define( "金", "土" ], - "dateFormatItem-MMM": "M月", + "field-tue-relative+0": "今週の火曜日", + "field-tue-relative+1": "来週の火曜日", "dayPeriods-format-wide-am": "午前", + "field-mon-relative+0": "今週の月曜日", + "field-mon-relative+1": "来週の月曜日", "dateFormat-short": "Gy/MM/dd", + "dayPeriods-format-narrow-noon": "正午", "field-second": "秒", + "field-sat-relative+-1": "先週の土曜日", + "field-sun-relative+-1": "先週の日曜日", "field-month-relative+0": "今月", "field-month-relative+1": "翌月", "dateFormatItem-Ed": "d日(E)", @@ -210,12 +261,14 @@ define( "dateFormat-medium": "Gy/MM/dd", "field-year-relative+0": "今年", "field-week-relative+-1": "先週", - "dateFormatItem-yyyyM": "Gy/M", "field-year-relative+1": "翌年", + "dateFormatItem-yyyyM": "Gy/M", + "dayPeriods-format-narrow-pm": "午後", "dateFormatItem-yyyyQQQQ": "GyQQQQ", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "aK:mm:ss", "months-format-wide-leap": "アダル II", + "field-mon-relative+-1": "先週の月曜日", "dateFormatItem-GyMMM": "Gy年M月", "dateFormatItem-yyyy": "Gy年", "field-week-relative+0": "今週", diff --git a/cldr/nls/ja/indian.js b/cldr/nls/ja/indian.js index adf94be69b..2af2da6e2c 100644 --- a/cldr/nls/ja/indian.js +++ b/cldr/nls/ja/indian.js @@ -1,25 +1,14 @@ define( //begin v1.x content { - "field-second": "秒", - "field-year-relative+-1": "昨年", - "field-week": "週", - "field-month-relative+-1": "先月", + "field-sat-relative+0": "今週の土曜日", + "field-sat-relative+1": "来週の土曜日", + "field-dayperiod": "午前/午後", + "field-sun-relative+-1": "先週の日曜日", + "field-mon-relative+-1": "先週の月曜日", + "field-minute": "分", "field-day-relative+-1": "昨日", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12" - ], + "field-weekday": "曜日", "field-day-relative+-2": "一昨日", "months-standAlone-narrow": [ "1", @@ -35,7 +24,11 @@ define( "11", "12" ], - "months-standAlone-wide": [ + "field-era": "時代", + "field-hour": "時", + "field-sun-relative+0": "今週の日曜日", + "field-sun-relative+1": "来週の日曜日", + "months-standAlone-abbr": [ "カイトラ", "ヴァイサカ", "ジャイスタ", @@ -49,9 +42,25 @@ define( "マーガ", "パルグナ" ], + "field-wed-relative+-1": "先週の水曜日", + "field-day-relative+0": "今日", + "field-day-relative+1": "明日", + "eraAbbr": [ + "サカ" + ], + "field-day-relative+2": "明後日", + "field-tue-relative+0": "今週の火曜日", + "field-zone": "タイムゾーン", + "field-tue-relative+1": "来週の火曜日", + "field-week-relative+-1": "先週", + "field-year-relative+0": "今年", + "field-year-relative+1": "翌年", + "field-sat-relative+-1": "先週の土曜日", + "field-year-relative+-1": "昨年", "field-year": "年", - "field-week-relative+0": "今週", - "months-standAlone-abbr": [ + "field-fri-relative+0": "今週の金曜日", + "field-fri-relative+1": "来週の金曜日", + "months-standAlone-wide": [ "カイトラ", "ヴァイサカ", "ジャイスタ", @@ -65,19 +74,10 @@ define( "マーガ", "パルグナ" ], + "field-week": "週", + "field-week-relative+0": "今週", "field-week-relative+1": "翌週", - "field-minute": "分", - "field-week-relative+-1": "先週", - "field-day-relative+0": "今日", - "field-hour": "時", - "field-day-relative+1": "明日", - "field-day-relative+2": "明後日", - "field-day": "日", - "field-month-relative+0": "今月", - "field-month-relative+1": "翌月", - "field-dayperiod": "午前/午後", - "field-month": "月", - "months-format-wide": [ + "months-format-abbr": [ "カイトラ", "ヴァイサカ", "ジャイスタ", @@ -91,10 +91,33 @@ define( "マーガ", "パルグナ" ], - "field-era": "時代", - "field-year-relative+0": "今年", - "field-year-relative+1": "翌年", - "months-format-abbr": [ + "field-month-relative+0": "今月", + "field-month": "月", + "field-month-relative+1": "翌月", + "field-fri-relative+-1": "先週の金曜日", + "field-second": "秒", + "field-tue-relative+-1": "先週の火曜日", + "field-day": "日", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-mon-relative+0": "今週の月曜日", + "field-mon-relative+1": "来週の月曜日", + "field-thu-relative+0": "今週の木曜日", + "field-second-relative+0": "今すぐ", + "field-thu-relative+1": "来週の木曜日", + "months-format-wide": [ "カイトラ", "ヴァイサカ", "ジャイスタ", @@ -108,11 +131,10 @@ define( "マーガ", "パルグナ" ], - "eraAbbr": [ - "サカ" - ], - "field-weekday": "曜日", - "field-zone": "タイムゾーン" + "field-wed-relative+0": "今週の水曜日", + "field-wed-relative+1": "来週の水曜日", + "field-month-relative+-1": "先月", + "field-thu-relative+-1": "先週の木曜日" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ja/islamic.js b/cldr/nls/ja/islamic.js index df42d71351..12e765dd65 100644 --- a/cldr/nls/ja/islamic.js +++ b/cldr/nls/ja/islamic.js @@ -24,9 +24,13 @@ define( "11", "12" ], + "field-second-relative+0": "今すぐ", "field-weekday": "曜日", + "field-wed-relative+0": "今週の水曜日", + "field-wed-relative+1": "来週の水曜日", "dateFormatItem-GyMMMEd": "Gy年M月d日(E)", "dateFormatItem-MMMEd": "M月d日(E)", + "field-tue-relative+-1": "先週の火曜日", "days-format-short": [ "日", "月", @@ -37,6 +41,8 @@ define( "土" ], "dateFormat-long": "Gy年M月d日", + "field-fri-relative+-1": "先週の金曜日", + "field-wed-relative+-1": "先週の水曜日", "months-format-wide": [ "ムハッラム", "サフアル", @@ -55,7 +61,9 @@ define( "dayPeriods-format-wide-pm": "午後", "dateFormat-full": "Gy年M月d日EEEE", "dateFormatItem-yyyyMEd": "Gy/M/d(E)", + "field-thu-relative+-1": "先週の木曜日", "dateFormatItem-Md": "M/d", + "dayPeriods-format-wide-noon": "正午", "field-era": "時代", "months-standAlone-wide": [ "ムハッラム", @@ -95,9 +103,13 @@ define( "ズル・カイダ", "ズル・ヒッジャ" ], + "field-sat-relative+0": "今週の土曜日", + "field-sat-relative+1": "来週の土曜日", "timeFormat-full": "H時mm分ss秒 zzzz", "field-day-relative+0": "今日", + "field-thu-relative+0": "今週の木曜日", "field-day-relative+1": "明日", + "field-thu-relative+1": "来週の木曜日", "dateFormatItem-GyMMMd": "Gy年M月d日", "field-day-relative+2": "明後日", "dateFormatItem-H": "H時", @@ -115,30 +127,53 @@ define( "ズル・カイダ", "ズル・ヒッジャ" ], - "quarters-format-abbr": [ - "1Q", - "2Q", - "3Q", - "4Q" + "quarters-standAlone-wide": [ + "第1四半期", + "第2四半期", + "第3四半期", + "第4四半期" ], "dateFormatItem-Gy": "Gy年", "dateFormatItem-yyyyMMMEd": "Gy年M月d日(E)", "dateFormatItem-M": "M月", + "days-standAlone-wide": [ + "日曜日", + "月曜日", + "火曜日", + "水曜日", + "木曜日", + "金曜日", + "土曜日" + ], "dateFormatItem-yyyyMMM": "Gy年M月", "dateFormatItem-yyyyMMMd": "Gy年M月d日", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "今週の日曜日", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "来週の日曜日", "eraAbbr": [ "AH" ], "field-minute": "分", "field-dayperiod": "午前/午後", + "days-standAlone-abbr": [ + "日", + "月", + "火", + "水", + "木", + "金", + "土" + ], "dateFormatItem-d": "d日", "field-day-relative+-1": "昨日", "dateFormatItem-h": "aK時", + "dayPeriods-format-narrow-am": "午前", "field-day-relative+-2": "一昨日", "dateFormatItem-MMMd": "M月d日", "dateFormatItem-MEd": "M/d(E)", + "field-fri-relative+0": "今週の金曜日", + "field-fri-relative+1": "来週の金曜日", "field-day": "日", "days-format-wide": [ "日曜日", @@ -177,8 +212,18 @@ define( "金", "土" ], + "days-format-narrow": [ + "日", + "月", + "火", + "水", + "木", + "金", + "土" + ], "dateFormatItem-yyyyMd": "Gy/M/d", "field-month": "月", + "dateFormatItem-MMM": "M月", "days-standAlone-narrow": [ "日", "月", @@ -188,10 +233,16 @@ define( "金", "土" ], - "dateFormatItem-MMM": "M月", + "field-tue-relative+0": "今週の火曜日", + "field-tue-relative+1": "来週の火曜日", "dayPeriods-format-wide-am": "午前", + "field-mon-relative+0": "今週の月曜日", + "field-mon-relative+1": "来週の月曜日", "dateFormat-short": "Gy/MM/dd", + "dayPeriods-format-narrow-noon": "正午", "field-second": "秒", + "field-sat-relative+-1": "先週の土曜日", + "field-sun-relative+-1": "先週の日曜日", "field-month-relative+0": "今月", "field-month-relative+1": "翌月", "dateFormatItem-Ed": "d日(E)", @@ -199,11 +250,13 @@ define( "dateFormat-medium": "Gy/MM/dd", "field-year-relative+0": "今年", "field-week-relative+-1": "先週", - "dateFormatItem-yyyyM": "Gy/M", "field-year-relative+1": "翌年", + "dateFormatItem-yyyyM": "Gy/M", + "dayPeriods-format-narrow-pm": "午後", "dateFormatItem-yyyyQQQQ": "GyQQQQ", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "aK:mm:ss", + "field-mon-relative+-1": "先週の月曜日", "dateFormatItem-GyMMM": "Gy年M月", "dateFormatItem-yyyy": "Gy年", "field-week-relative+0": "今週", diff --git a/cldr/nls/ja/japanese.js b/cldr/nls/ja/japanese.js index a690dc54c6..d873d517cc 100644 --- a/cldr/nls/ja/japanese.js +++ b/cldr/nls/ja/japanese.js @@ -1,29 +1,13 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "Gy年M月d日(E)", - "field-dayperiod": "午前/午後", - "field-minute": "分", - "dateFormatItem-MMMEd": "M月d日(E)", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "昨日", - "dateFormatItem-hms": "aK:mm:ss", - "field-day-relative+-2": "一昨日", + "field-second-relative+0": "今すぐ", "field-weekday": "曜日", - "dateFormatItem-MMM": "M月", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "Gy年", - "dateTimeFormat-medium": "{1} {0}", - "field-era": "時代", - "field-hour": "時", - "dateFormatItem-y": "Gy年", - "dateFormatItem-yyyy": "Gy年", - "dateFormatItem-yyyyMMMEEEEd": "Gy年M月d日EEEE", - "dateFormatItem-EEEEd": "d日EEEE", - "dateFormatItem-Ed": "d日(E)", - "field-day-relative+0": "今日", - "field-day-relative+1": "明日", - "eraAbbr": [ + "field-wed-relative+0": "今週の水曜日", + "dateFormatItem-GyMMMEd": "Gy年M月d日(E)", + "dateFormatItem-MMMEd": "M月d日(E)", + "field-wed-relative+1": "来週の水曜日", + "eraNarrow": [ "大化", "白雉", "白鳯", @@ -256,57 +240,42 @@ define( "文久", "元治", "慶応", - "明治", - "大正", - "昭和", - "平成" + "M", + "T", + "S", + "H" ], - "field-day-relative+2": "明後日", - "dateFormatItem-GyMMMd": "Gy年M月d日", - "dateFormatItem-yyyyMM": "Gy/MM", + "field-tue-relative+-1": "先週の火曜日", "dateFormat-long": "Gy年M月d日", - "field-zone": "タイムゾーン", - "dateFormatItem-Hm": "H:mm", - "dateFormatItem-MMMEEEEd": "M月d日EEEE", - "field-week-relative+-1": "先週", - "dateFormat-medium": "Gy年M月d日", - "dateFormatItem-Hms": "H:mm:ss", - "field-year-relative+0": "今年", - "field-year-relative+1": "翌年", - "field-year-relative+-1": "昨年", - "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "GyQQQQ", - "field-year": "年", - "dateFormatItem-GyMMMEEEEd": "Gy年M月d日EEEE", - "dateTimeFormat-long": "{1} {0}", - "field-week": "週", - "dateFormatItem-yyyyMd": "Gy/M/d", - "dateFormatItem-yyyyMMMd": "Gy年M月d日", + "field-fri-relative+-1": "先週の金曜日", + "field-wed-relative+-1": "先週の水曜日", + "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "Gy年M月d日EEEE", "dateFormatItem-yyyyMEd": "Gy/M/d(E)", - "dateFormatItem-yyyyMEEEEd": "Gy/M/dEEEE", - "dateFormatItem-MMMd": "M月d日", - "field-week-relative+0": "今週", - "field-week-relative+1": "翌週", - "field-month-relative+0": "今月", + "field-thu-relative+-1": "先週の木曜日", + "dateFormatItem-Md": "M/d", + "field-era": "時代", + "dateFormatItem-MEEEEd": "M/dEEEE", + "field-year": "年", + "field-hour": "時", + "field-sat-relative+0": "今週の土曜日", + "field-sat-relative+1": "来週の土曜日", + "field-day-relative+0": "今日", + "field-day-relative+1": "明日", + "field-thu-relative+0": "今週の木曜日", + "dateFormatItem-GyMMMd": "Gy年M月d日", + "field-day-relative+2": "明後日", + "field-thu-relative+1": "来週の木曜日", "dateFormatItem-H": "H時", - "field-month": "月", - "field-month-relative+1": "翌月", + "dateFormatItem-Gy": "Gy年", + "dateFormatItem-yyyyMMMEd": "Gy年M月d日(E)", "dateFormatItem-M": "M月", - "field-second": "秒", - "dateFormatItem-GyMMMEd": "Gy年M月d日(E)", - "dateFormatItem-GyMMM": "Gy年M月", - "dateFormatItem-MEEEEd": "M/dEEEE", - "field-day": "日", - "dateFormatItem-MEd": "M/d(E)", - "dateFormatItem-yyyyQQQ": "Gy/QQQ", - "dateFormatItem-hm": "aK:mm", - "dateFormat-short": "Gyy/MM/dd", - "dateFormat-full": "Gy年M月d日EEEE", - "dateFormatItem-Md": "M/d", "dateFormatItem-yyyyMMM": "Gy年M月", - "dateFormatItem-d": "d日", - "field-month-relative+-1": "先月", - "eraNarrow": [ + "dateFormatItem-yyyyMMMd": "Gy年M月d日", + "field-sun-relative+0": "今週の日曜日", + "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "来週の日曜日", + "eraAbbr": [ "大化", "白雉", "白鳯", @@ -539,12 +508,63 @@ define( "文久", "元治", "慶応", - "明", - "大", - "昭", - "平" + "明治", + "大正", + "昭和", + "平成" ], - "dateFormatItem-h": "aK時" + "field-minute": "分", + "field-dayperiod": "午前/午後", + "dateFormatItem-d": "d日", + "dateFormatItem-yyyyMEEEEd": "Gy/M/dEEEE", + "dateFormatItem-ms": "mm:ss", + "field-day-relative+-1": "昨日", + "dateFormatItem-h": "aK時", + "dateTimeFormat-long": "{1} {0}", + "field-day-relative+-2": "一昨日", + "dateFormatItem-MMMd": "M月d日", + "dateFormatItem-EEEEd": "d日EEEE", + "dateFormatItem-MEd": "M/d(E)", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "今週の金曜日", + "field-fri-relative+1": "来週の金曜日", + "field-day": "日", + "field-zone": "タイムゾーン", + "dateFormatItem-yyyyMM": "Gy/MM", + "dateFormatItem-y": "Gy年", + "field-year-relative+-1": "昨年", + "field-month-relative+-1": "先月", + "dateFormatItem-hm": "aK:mm", + "dateFormatItem-GyMMMEEEEd": "Gy年M月d日EEEE", + "dateFormatItem-yyyyMMMEEEEd": "Gy年M月d日EEEE", + "dateFormatItem-MMMEEEEd": "M月d日EEEE", + "dateFormatItem-yyyyMd": "Gy/M/d", + "field-month": "月", + "dateFormatItem-MMM": "M月", + "field-tue-relative+0": "今週の火曜日", + "field-tue-relative+1": "来週の火曜日", + "field-mon-relative+0": "今週の月曜日", + "field-mon-relative+1": "来週の月曜日", + "dateFormat-short": "Gyy/MM/dd", + "field-second": "秒", + "field-sat-relative+-1": "先週の土曜日", + "field-sun-relative+-1": "先週の日曜日", + "field-month-relative+0": "今月", + "field-month-relative+1": "翌月", + "dateFormatItem-Ed": "d日(E)", + "field-week": "週", + "dateFormat-medium": "Gy年M月d日", + "field-year-relative+0": "今年", + "field-week-relative+-1": "先週", + "field-year-relative+1": "翌年", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "H:mm:ss", + "dateFormatItem-hms": "aK:mm:ss", + "dateFormatItem-GyMMM": "Gy年M月", + "field-mon-relative+-1": "先週の月曜日", + "dateFormatItem-yyyy": "Gy年", + "field-week-relative+0": "今週", + "field-week-relative+1": "翌週" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ja/number.js b/cldr/nls/ja/number.js index 9678ce6436..e2fc0149da 100644 --- a/cldr/nls/ja/number.js +++ b/cldr/nls/ja/number.js @@ -10,10 +10,11 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ".", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", - "currencyFormat": "¤#,##0.00", + "currencyFormat": "¤#,##0.00;(¤#,##0.00)", "plusSign": "+", "decimalFormat-long": "000兆", "decimalFormat-short": "000兆" diff --git a/cldr/nls/ja/persian.js b/cldr/nls/ja/persian.js index 88615c3d10..37f81db950 100644 --- a/cldr/nls/ja/persian.js +++ b/cldr/nls/ja/persian.js @@ -24,9 +24,13 @@ define( "11", "12" ], + "field-second-relative+0": "今すぐ", "field-weekday": "曜日", + "field-wed-relative+0": "今週の水曜日", + "field-wed-relative+1": "来週の水曜日", "dateFormatItem-GyMMMEd": "Gy年M月d日(E)", "dateFormatItem-MMMEd": "M月d日(E)", + "field-tue-relative+-1": "先週の火曜日", "days-format-short": [ "日", "月", @@ -37,6 +41,8 @@ define( "土" ], "dateFormat-long": "Gy年M月d日", + "field-fri-relative+-1": "先週の金曜日", + "field-wed-relative+-1": "先週の水曜日", "months-format-wide": [ "ファルヴァルディーン", "オルディーベヘシュト", @@ -55,7 +61,9 @@ define( "dayPeriods-format-wide-pm": "午後", "dateFormat-full": "Gy年M月d日EEEE", "dateFormatItem-yyyyMEd": "Gy/M/d(E)", + "field-thu-relative+-1": "先週の木曜日", "dateFormatItem-Md": "M/d", + "dayPeriods-format-wide-noon": "正午", "field-era": "時代", "months-standAlone-wide": [ "ファルヴァルディーン", @@ -95,9 +103,13 @@ define( "バフマン", "エスファンド" ], + "field-sat-relative+0": "今週の土曜日", + "field-sat-relative+1": "来週の土曜日", "timeFormat-full": "H時mm分ss秒 zzzz", "field-day-relative+0": "今日", + "field-thu-relative+0": "今週の木曜日", "field-day-relative+1": "明日", + "field-thu-relative+1": "来週の木曜日", "dateFormatItem-GyMMMd": "Gy年M月d日", "field-day-relative+2": "明後日", "dateFormatItem-H": "H時", @@ -115,30 +127,53 @@ define( "バフマン", "エスファンド" ], - "quarters-format-abbr": [ - "1Q", - "2Q", - "3Q", - "4Q" + "quarters-standAlone-wide": [ + "第1四半期", + "第2四半期", + "第3四半期", + "第4四半期" ], "dateFormatItem-Gy": "Gy年", "dateFormatItem-yyyyMMMEd": "Gy年M月d日(E)", "dateFormatItem-M": "M月", + "days-standAlone-wide": [ + "日曜日", + "月曜日", + "火曜日", + "水曜日", + "木曜日", + "金曜日", + "土曜日" + ], "dateFormatItem-yyyyMMM": "Gy年M月", "dateFormatItem-yyyyMMMd": "Gy年M月d日", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "今週の日曜日", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "来週の日曜日", "eraAbbr": [ "AP" ], "field-minute": "分", "field-dayperiod": "午前/午後", + "days-standAlone-abbr": [ + "日", + "月", + "火", + "水", + "木", + "金", + "土" + ], "dateFormatItem-d": "d日", "field-day-relative+-1": "昨日", "dateFormatItem-h": "aK時", + "dayPeriods-format-narrow-am": "午前", "field-day-relative+-2": "一昨日", "dateFormatItem-MMMd": "M月d日", "dateFormatItem-MEd": "M/d(E)", + "field-fri-relative+0": "今週の金曜日", + "field-fri-relative+1": "来週の金曜日", "field-day": "日", "days-format-wide": [ "日曜日", @@ -177,8 +212,18 @@ define( "金", "土" ], + "days-format-narrow": [ + "日", + "月", + "火", + "水", + "木", + "金", + "土" + ], "dateFormatItem-yyyyMd": "Gy/M/d", "field-month": "月", + "dateFormatItem-MMM": "M月", "days-standAlone-narrow": [ "日", "月", @@ -188,10 +233,16 @@ define( "金", "土" ], - "dateFormatItem-MMM": "M月", + "field-tue-relative+0": "今週の火曜日", + "field-tue-relative+1": "来週の火曜日", "dayPeriods-format-wide-am": "午前", + "field-mon-relative+0": "今週の月曜日", + "field-mon-relative+1": "来週の月曜日", "dateFormat-short": "Gy/MM/dd", + "dayPeriods-format-narrow-noon": "正午", "field-second": "秒", + "field-sat-relative+-1": "先週の土曜日", + "field-sun-relative+-1": "先週の日曜日", "field-month-relative+0": "今月", "field-month-relative+1": "翌月", "dateFormatItem-Ed": "d日(E)", @@ -201,10 +252,12 @@ define( "field-week-relative+-1": "先週", "dateFormatItem-yyyyM": "Gy/M", "field-year-relative+1": "翌年", + "dayPeriods-format-narrow-pm": "午後", "dateFormatItem-yyyyQQQQ": "GyQQQQ", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "aK:mm:ss", "dateFormatItem-GyMMM": "Gy年M月", + "field-mon-relative+-1": "先週の月曜日", "dateFormatItem-yyyy": "Gy年", "field-week-relative+0": "今週", "field-week-relative+1": "翌週" diff --git a/cldr/nls/ja/roc.js b/cldr/nls/ja/roc.js index 9b357ce6bc..04530a75a6 100644 --- a/cldr/nls/ja/roc.js +++ b/cldr/nls/ja/roc.js @@ -1,35 +1,69 @@ define( //begin v1.x content { - "field-second": "秒", - "field-year-relative+-1": "昨年", - "field-week": "週", - "field-month-relative+-1": "先月", + "field-sat-relative+0": "今週の土曜日", + "field-sat-relative+1": "来週の土曜日", + "field-dayperiod": "午前/午後", + "field-sun-relative+-1": "先週の日曜日", + "field-mon-relative+-1": "先週の月曜日", + "field-minute": "分", + "dateFormatItem-MMMEd": "M月d日(E)", "field-day-relative+-1": "昨日", + "field-weekday": "曜日", "field-day-relative+-2": "一昨日", - "field-year": "年", - "field-week-relative+0": "今週", - "field-week-relative+1": "翌週", - "field-minute": "分", - "field-week-relative+-1": "先週", - "field-day-relative+0": "今日", + "dateFormatItem-MMM": "M月", + "field-era": "時代", "field-hour": "時", + "dateFormatItem-y": "Gy年", + "field-sun-relative+0": "今週の日曜日", + "field-sun-relative+1": "来週の日曜日", + "field-wed-relative+-1": "先週の水曜日", + "field-day-relative+0": "今日", "field-day-relative+1": "明日", - "field-day-relative+2": "明後日", - "field-day": "日", - "field-month-relative+0": "今月", - "field-month-relative+1": "翌月", - "field-dayperiod": "午前/午後", - "field-month": "月", - "field-era": "時代", - "field-year-relative+0": "今年", - "field-year-relative+1": "翌年", "eraAbbr": [ "民国前", "民国" ], - "field-weekday": "曜日", - "field-zone": "タイムゾーン" + "field-day-relative+2": "明後日", + "dateFormat-long": "Gy年M月d日", + "field-tue-relative+0": "今週の火曜日", + "field-zone": "タイムゾーン", + "field-tue-relative+1": "来週の火曜日", + "field-week-relative+-1": "先週", + "dateFormat-medium": "Gy/MM/dd", + "field-year-relative+0": "今年", + "field-year-relative+1": "翌年", + "field-sat-relative+-1": "先週の土曜日", + "field-year-relative+-1": "昨年", + "field-year": "年", + "field-fri-relative+0": "今週の金曜日", + "field-fri-relative+1": "来週の金曜日", + "field-week": "週", + "dateFormatItem-MMMd": "M月d日", + "field-week-relative+0": "今週", + "field-week-relative+1": "翌週", + "field-month-relative+0": "今月", + "field-month": "月", + "field-month-relative+1": "翌月", + "field-fri-relative+-1": "先週の金曜日", + "dateFormatItem-M": "M月", + "field-second": "秒", + "field-tue-relative+-1": "先週の火曜日", + "field-day": "日", + "dateFormatItem-MEd": "M/d(E)", + "field-mon-relative+0": "今週の月曜日", + "field-mon-relative+1": "来週の月曜日", + "field-thu-relative+0": "今週の木曜日", + "field-second-relative+0": "今すぐ", + "dateFormat-short": "Gy/MM/dd", + "field-thu-relative+1": "来週の木曜日", + "dateFormat-full": "Gy年M月d日EEEE", + "dateFormatItem-Md": "M/d", + "field-wed-relative+0": "今週の水曜日", + "field-wed-relative+1": "来週の水曜日", + "dateFormatItem-d": "d日", + "field-month-relative+-1": "先月", + "field-thu-relative+-1": "先週の木曜日" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/japanese.js b/cldr/nls/japanese.js index f9498317bb..1c34a461fb 100644 --- a/cldr/nls/japanese.js +++ b/cldr/nls/japanese.js @@ -2,16 +2,40 @@ define({ root: //begin v1.x content { - "days-standAlone-short": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" - ], - "months-format-narrow": [ + "dateTimeFormats-appendItem-Year": "{1} {0}", + "field-tue-relative+-1": "last Tuesday", + "field-year": "Year", + "days@localeAlias478": { + "bundle": "gregorian", + "target": "days" + }, + "dateFormatItem-Hm": "HH:mm", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", + "dateFormatItem-ms": "mm:ss", + "timeFormat-short": "HH:mm", + "field-minute": "Minute", + "dateTimeFormat-short": "{1} {0}", + "field-day-relative+0": "today", + "field-day-relative+1": "tomorrow", + "eraNames@localeAlias498": { + "bundle": "japanese", + "target": "eraAbbr" + }, + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", + "dayPeriods-format-narrow-am": "a", + "dateFormatItem-MMMd": "MMM d", + "dayPeriods-format-abbr-am": "AM", + "field-week-relative+0": "this week", + "field-month-relative+0": "this month", + "field-week-relative+1": "next week", + "field-month-relative+1": "next month", + "timeFormat-medium": "HH:mm:ss", + "field-second-relative+0": "now", + "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "dateFormatItem-yyyyQQQ": "G y QQQ", + "months-standAlone-narrow": [ "1", "2", "3", @@ -25,16 +49,7 @@ define({ root: "11", "12" ], - "quarters-standAlone-narrow": [ - "1", - "2", - "3", - "4" - ], - "field-weekday": "Day of the Week", - "dateFormatItem-GyMMMEd": "G y MMM d, E", - "dateFormatItem-MMMEd": "MMM d, E", - "eraNarrow": [ + "eraNames": [ "Taika (645-650)", "Hakuchi (650-671)", "Hakuhō (672-686)", @@ -196,11 +211,11 @@ define({ root: "Kōkoku (1340-1346)", "Shōhei (1346-1370)", "Kentoku (1370-1372)", - "Bunchũ (1372-1375)", + "Bunchū (1372-1375)", "Tenju (1375-1379)", "Kōryaku (1379-1381)", "Kōwa (1381-1384)", - "Genchũ (1384-1392)", + "Genchū (1384-1392)", "Meitoku (1384-1387)", "Kakei (1387-1389)", "Kōō (1389-1390)", @@ -267,190 +282,79 @@ define({ root: "Bunkyū (1861-1864)", "Genji (1864-1865)", "Keiō (1865-1868)", - "M", - "T", - "S", - "H" - ], - "months-standAlone-wide@localeAlias417": { - "bundle": "gregorian", - "target": "months-format-wide" - }, - "days-format-short": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" - ], - "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", - "dateFormat-long": "G y MMMM d", - "quarters-standAlone-abbr@localeAlias432": { - "bundle": "gregorian", - "target": "quarters-format-abbr" - }, - "months-format-wide": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" + "Meiji", + "Taishō", + "Shōwa", + "Heisei" ], - "quarters-standAlone-abbr@localeAlias433": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "dateTime@localeAlias445": { - "bundle": "generic", - "target": "dateTime" - }, - "dateFormatItem-yyyyQQQ": "G y QQQ", - "dateTimeFormat-medium": "{1} {0}", - "quarters-format-abbr@localeAlias430": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "quarters-format-narrow@localeAlias431": { - "bundle": "gregorian", - "target": "quarters-standAlone-narrow" - }, - "dayPeriods-format-wide-pm": "PM", - "dayPeriods-format-abbr@localeAlias436": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" - }, - "dateFormat-full": "G y MMMM d, EEEE", + "dateFormatItem-GyMMMEd": "G y MMM d, E", + "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", + "field-day": "Day", + "field-year-relative+-1": "last year", + "dayPeriods-format-wide-am": "AM", "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", - "dayPeriods-format-abbr@localeAlias439": { + "days-standAlone-wide@localeAlias488": { "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "target": "days-format-wide" }, - "dateFormatItem-Md": "MM-dd", - "dayPeriods-format-abbr-am": "AM", - "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", - "field-era": "Era", - "months-standAlone-wide": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" - ], - "timeFormat-short": "HH:mm", - "quarters-format-wide": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], - "timeFormat-long": "HH:mm:ss z", - "field-year": "Year", - "dateTimeFormats-appendItem-Era": "{1} {0}", - "field-hour": "Hour", - "months-format-abbr": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" + "field-wed-relative+-1": "last Wednesday", + "dateTimeFormat-medium": "{1} {0}", + "days-standAlone-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" ], - "months-standAlone-abbr@localeAlias415": { + "field-second": "Second", + "dateFormatItem-Ehms": "E h:mm:ss a", + "dateFormat-long": "G y MMMM d", + "dateFormatItem-GyMMMd": "G y MMM d", + "quarters@localeAlias489": { "bundle": "gregorian", - "target": "months-format-abbr" + "target": "quarters" }, - "months-standAlone-abbr@localeAlias416": { + "days-standAlone-abbr@localeAlias483": { "bundle": "gregorian", - "target": "months-format-wide" + "target": "days-format-abbr" }, - "months-format-abbr@localeAlias413": { + "days-standAlone-abbr@localeAlias484": { "bundle": "gregorian", - "target": "months-format-wide" + "target": "days-format-wide" }, - "timeFormat-full": "HH:mm:ss zzzz", - "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", - "dateFormatItem-GyMMMd": "G y MMM d", - "months-standAlone-abbr": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" - ], - "dateFormatItem-H": "HH", - "quarters-format-abbr": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], "quarters-standAlone-wide": [ "Q1", "Q2", "Q3", "Q4" ], - "quarters@localeAlias429": { + "days-format-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "quarters-format-narrow@localeAlias491": { "bundle": "gregorian", - "target": "quarters" + "target": "quarters-standAlone-narrow" }, - "dateFormatItem-Gy": "G y", - "dateFormatItem-yyyyMMMEd": "G y MMM d, E", - "dateFormatItem-M": "L", - "days-standAlone-wide": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" - ], - "dateFormatItem-yyyyMMM": "G y MMM", - "dateFormatItem-yyyyMMMd": "G y MMM d", - "timeFormat-medium": "HH:mm:ss", - "quarters-standAlone-abbr": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], - "dateFormatItem-Hm": "HH:mm", - "months-format-narrow@localeAlias414": { + "field-mon-relative+-1": "last Monday", + "dateFormatItem-GyMMM": "G y MMM", + "field-month": "Month", + "days-format-abbr@localeAlias479": { "bundle": "gregorian", - "target": "months-standAlone-narrow" + "target": "days-format-wide" }, + "dateFormatItem-MMM": "LLL", + "field-dayperiod": "Dayperiod", + "dayPeriods-format-narrow-pm": "p", + "dateFormat-medium": "G y MMM d", "eraAbbr": [ "Taika (645-650)", "Hakuchi (650-671)", @@ -689,9 +593,40 @@ define({ root: "Shōwa", "Heisei" ], - "field-minute": "Minute", - "field-dayperiod": "Dayperiod", - "days-standAlone-abbr": [ + "quarters-standAlone-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "months@localeAlias472": { + "bundle": "gregorian", + "target": "months" + }, + "dayPeriods-format-abbr-pm": "PM", + "dateFormatItem-yyyyM": "GGGGG y-MM", + "months-format-abbr@localeAlias473": { + "bundle": "gregorian", + "target": "months-format-wide" + }, + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "dateFormatItem-yyyyMMMd": "G y MMM d", + "days-format-short": [ "Sun", "Mon", "Tue", @@ -700,23 +635,74 @@ define({ root: "Fri", "Sat" ], - "dateFormatItem-d": "d", - "dateFormatItem-ms": "mm:ss", "quarters-format-narrow": [ "1", "2", "3", "4" ], - "field-day-relative+-1": "Yesterday", - "dayPeriods-format-narrow-am": "AM", + "dayPeriods-format-wide-pm": "PM", + "field-sat-relative+-1": "last Saturday", + "months-format-narrow@localeAlias474": { + "bundle": "gregorian", + "target": "months-standAlone-narrow" + }, + "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", "dateTimeFormat-long": "{1} {0}", - "dateFormatItem-h": "h a", - "dateFormatItem-MMMd": "MMM d", - "dateFormatItem-MEd": "MM-dd, E", - "dateTimeFormat-full": "{1} {0}", - "field-day": "Day", - "days-format-wide": [ + "dateFormatItem-Md": "MM-dd", + "dateFormat@localeAlias499": { + "bundle": "generic", + "target": "dateFormat" + }, + "field-hour": "Hour", + "months-format-wide": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" + ], + "dateFormat-full": "G y MMMM d, EEEE", + "field-month-relative+-1": "last month", + "dateFormatItem-Hms": "HH:mm:ss", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "dayPeriods-format-narrow-noon": "n", + "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", + "field-week-relative+-1": "last week", + "quarters-standAlone-wide@localeAlias494": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "dateFormatItem-Ehm": "E h:mm a", + "months-format-abbr": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" + ], + "timeFormat-long": "HH:mm:ss z", + "timeFormat@localeAlias500": { + "bundle": "gregorian", + "target": "timeFormat" + }, + "dateFormat-short": "GGGGG y-MM-dd", + "days-standAlone-wide": [ "Sun", "Mon", "Tue", @@ -725,52 +711,139 @@ define({ root: "Fri", "Sat" ], - "field-zone": "Zone", - "months-standAlone-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12" + "dateFormatItem-yyyyMMMEd": "G y MMM d, E", + "dateTimeFormats-appendItem-Era": "{1} {0}", + "dateFormatItem-H": "HH", + "dateFormatItem-yyyy": "G y", + "dateFormatItem-M": "L", + "months-standAlone-wide": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], - "dateFormatItem-y": "G y", - "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", - "days-standAlone-wide@localeAlias428": { + "field-sun-relative+-1": "last Sunday", + "days-standAlone-abbr": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateTimeFormat-full": "{1} {0}", + "quarters-standAlone-abbr@localeAlias492": { "bundle": "gregorian", - "target": "days-format-wide" + "target": "quarters-format-abbr" }, "dateFormatItem-hm": "h:mm a", - "dateTimeFormats-appendItem-Year": "{1} {0}", - "days-format-short@localeAlias421": { + "quarters-standAlone-abbr@localeAlias493": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "dateFormatItem-d": "d", + "field-weekday": "Day of the Week", + "field-sat-relative+0": "this Saturday", + "dateFormatItem-h": "h a", + "field-sat-relative+1": "next Saturday", + "months-standAlone-abbr": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" + ], + "days-standAlone-short@localeAlias485": { + "bundle": "gregorian", + "target": "days-format-short" + }, + "quarters-format-abbr@localeAlias490": { + "bundle": "gregorian", + "target": "quarters-format-wide" + }, + "days-standAlone-short@localeAlias486": { "bundle": "gregorian", "target": "days-format-abbr" }, - "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", - "days-format-short@localeAlias422": { + "months-standAlone-wide@localeAlias477": { "bundle": "gregorian", - "target": "days-format-wide" + "target": "months-format-wide" }, - "dayPeriods-format-abbr-pm": "PM", - "eraNames@localeAlias442": { - "bundle": "japanese", - "target": "eraAbbr" + "days-standAlone-short@localeAlias487": { + "bundle": "gregorian", + "target": "days-format-wide" }, - "dateFormat@localeAlias443": { + "dateTime@localeAlias501": { "bundle": "generic", - "target": "dateFormat" + "target": "dateTime" }, - "dayPeriods-format-narrow@localeAlias437": { + "dayPeriods-format-abbr@localeAlias496": { "bundle": "gregorian", - "target": "dayPeriods-format-abbr" + "target": "dayPeriods-format-wide" }, - "days-format-abbr": [ + "dayPeriods-format-abbr@localeAlias497": { + "bundle": "gregorian", + "target": "dayPeriods-format-wide" + }, + "timeFormat-full": "HH:mm:ss zzzz", + "dateFormatItem-MEd": "MM-dd, E", + "dateFormatItem-y": "G y", + "field-thu-relative+0": "this Thursday", + "field-thu-relative+1": "next Thursday", + "months-standAlone-abbr@localeAlias475": { + "bundle": "gregorian", + "target": "months-format-abbr" + }, + "dateFormatItem-hms": "h:mm:ss a", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "months-standAlone-abbr@localeAlias476": { + "bundle": "gregorian", + "target": "months-format-wide" + }, + "days-format-short@localeAlias481": { + "bundle": "gregorian", + "target": "days-format-abbr" + }, + "days-format-short@localeAlias482": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "dayPeriods-format-abbr-noon": "noon", + "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", + "field-thu-relative+-1": "last Thursday", + "field-week": "Week", + "quarters-standAlone-narrow": [ + "1", + "2", + "3", + "4" + ], + "quarters-format-wide": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "dateFormatItem-Ed": "d, E", + "dateFormatItem-yyyyMMM": "G y MMM", + "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", + "days-standAlone-short": [ "Sun", "Mon", "Tue", @@ -779,11 +852,17 @@ define({ root: "Fri", "Sat" ], - "dayPeriods-format-narrow@localeAlias438": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" - }, - "eraNames": [ + "dateFormatItem-yyyyQQQQ": "G y QQQQ", + "quarters-format-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "field-year-relative+0": "this year", + "field-year-relative+1": "next year", + "field-fri-relative+-1": "last Friday", + "eraNarrow": [ "Taika (645-650)", "Hakuchi (650-671)", "Hakuhō (672-686)", @@ -945,11 +1024,11 @@ define({ root: "Kōkoku (1340-1346)", "Shōhei (1346-1370)", "Kentoku (1370-1372)", - "Bunchū (1372-1375)", + "Bunchũ (1372-1375)", "Tenju (1375-1379)", "Kōryaku (1379-1381)", "Kōwa (1381-1384)", - "Genchū (1384-1392)", + "Genchũ (1384-1392)", "Meitoku (1384-1387)", "Kakei (1387-1389)", "Kōō (1389-1390)", @@ -1016,106 +1095,49 @@ define({ root: "Bunkyū (1861-1864)", "Genji (1864-1865)", "Keiō (1865-1868)", - "Meiji", - "Taishō", - "Shōwa", - "Heisei" - ], - "days-format-narrow": [ - "S", "M", "T", - "W", - "T", - "F", - "S" - ], - "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", - "days-standAlone-narrow": [ "S", - "M", - "T", - "W", - "T", - "F", - "S" + "H" ], - "dateFormatItem-MMM": "LLL", - "field-month": "Month", - "timeFormat@localeAlias444": { + "dayPeriods-format-wide-noon": "noon", + "dayPeriods@localeAlias495": { "bundle": "gregorian", - "target": "timeFormat" - }, - "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", - "dayPeriods-format-wide-am": "AM", - "days-standAlone-abbr@localeAlias423": { - "bundle": "gregorian", - "target": "days-format-abbr" - }, - "days-standAlone-abbr@localeAlias424": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "days-standAlone-short@localeAlias425": { - "bundle": "gregorian", - "target": "days-format-short" + "target": "dayPeriods" }, + "days-format-wide": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", - "days-standAlone-short@localeAlias426": { - "bundle": "gregorian", - "target": "days-format-abbr" - }, - "days-standAlone-short@localeAlias427": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "days-format-abbr@localeAlias419": { - "bundle": "gregorian", - "target": "days-format-wide" - }, - "dayPeriods-format-narrow@localeAlias440": { - "bundle": "gregorian", - "target": "dayPeriods-format-abbr" - }, + "dateFormatItem-EHm": "E HH:mm", + "field-zone": "Zone", + "dateFormatItem-MMMEd": "MMM d, E", + "dateFormatItem-EHms": "E HH:mm:ss", + "field-day-relative+-1": "yesterday", + "days-format-abbr": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "field-sun-relative+0": "this Sunday", + "field-sun-relative+1": "next Sunday", "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", - "dayPeriods-format-narrow@localeAlias441": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" - }, - "dayPeriods@localeAlias435": { - "bundle": "gregorian", - "target": "dayPeriods" - }, - "dateFormat-short": "GGGGG y-MM-dd", - "days@localeAlias418": { - "bundle": "gregorian", - "target": "days" - }, - "field-second": "Second", - "quarters-standAlone-wide@localeAlias434": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "dateFormatItem-Ed": "d, E", - "dateTimeFormats-appendItem-Timezone": "{0} {1}", - "field-week": "Week", - "dateFormat-medium": "G y MMM d", - "dateFormatItem-yyyyM": "GGGGG y-MM", - "dayPeriods-format-narrow-pm": "PM", - "months@localeAlias412": { - "bundle": "gregorian", - "target": "months" - }, - "days-format-narrow@localeAlias420": { + "dateFormatItem-Gy": "G y", + "field-era": "Era", + "days-format-narrow@localeAlias480": { "bundle": "gregorian", "target": "days-standAlone-narrow" - }, - "dateFormatItem-yyyyQQQQ": "G y QQQQ", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Hms": "HH:mm:ss", - "dateFormatItem-hms": "h:mm:ss a", - "dateFormatItem-GyMMM": "G y MMM", - "dateFormatItem-yyyy": "G y" + } } //end v1.x content , diff --git a/cldr/nls/ko/buddhist.js b/cldr/nls/ko/buddhist.js index 9941673b50..a03a5da2ba 100644 --- a/cldr/nls/ko/buddhist.js +++ b/cldr/nls/ko/buddhist.js @@ -10,12 +10,30 @@ define( "금", "토" ], + "months-format-narrow": [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월" + ], + "field-second-relative+0": "지금", "field-weekday": "요일", + "field-wed-relative+0": "이번 수요일", + "field-wed-relative+1": "다음 수요일", "dateFormatItem-GyMMMEd": "G y년 MMM d일 (E)", "dateFormatItem-MMMEd": "MMM d일 (E)", "eraNarrow": [ "불기" ], + "field-tue-relative+-1": "지난 화요일", "days-format-short": [ "일", "월", @@ -26,6 +44,8 @@ define( "토" ], "dateFormat-long": "G y년 M월 d일", + "field-fri-relative+-1": "지난 금요일", + "field-wed-relative+-1": "지난 수요일", "months-format-wide": [ "1월", "2월", @@ -44,6 +64,7 @@ define( "dayPeriods-format-wide-pm": "오후", "dateFormat-full": "G y년 M월 d일 EEEE", "dateFormatItem-yyyyMEd": "G y. M. d. (E)", + "field-thu-relative+-1": "지난 목요일", "dateFormatItem-Md": "M. d.", "field-era": "연호", "timeFormat-short": "a h:mm", @@ -56,24 +77,70 @@ define( "timeFormat-long": "a h시 m분 s초 z", "field-year": "년", "field-hour": "시", + "months-format-abbr": [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월" + ], + "field-sat-relative+0": "이번 토요일", + "field-sat-relative+1": "다음 토요일", "timeFormat-full": "a h시 m분 s초 zzzz", "field-day-relative+0": "오늘", + "field-thu-relative+0": "이번 목요일", "field-day-relative+1": "내일", + "field-thu-relative+1": "다음 목요일", "dateFormatItem-GyMMMd": "G y년 MMM d일", "field-day-relative+2": "모레", "dateFormatItem-H": "H시", + "months-standAlone-abbr": [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월" + ], "quarters-format-abbr": [ "1분기", "2분기", "3분기", "4분기" ], + "quarters-standAlone-wide": [ + "제 1/4분기", + "제 2/4분기", + "제 3/4분기", + "제 4/4분기" + ], "dateFormatItem-Gy": "G y년", "dateFormatItem-yyyyMMMEd": "G y년 MMM d일 (E)", "dateFormatItem-M": "M월", "dateFormatItem-yyyyMMM": "G y년 MMM", "dateFormatItem-yyyyMMMd": "G y년 MMM d일", "timeFormat-medium": "a h:mm:ss", + "field-sun-relative+0": "이번 일요일", + "field-sun-relative+1": "다음 일요일", + "quarters-standAlone-abbr": [ + "1분기", + "2분기", + "3분기", + "4분기" + ], "eraAbbr": [ "불기" ], @@ -85,6 +152,8 @@ define( "field-day-relative+-2": "그저께", "dateFormatItem-MMMd": "MMM d일", "dateFormatItem-MEd": "M. d. (E)", + "field-fri-relative+0": "이번 금요일", + "field-fri-relative+1": "다음 금요일", "field-day": "일", "days-format-wide": [ "일요일", @@ -137,9 +206,15 @@ define( "금", "토" ], + "field-tue-relative+0": "이번 화요일", + "field-tue-relative+1": "다음 화요일", "dayPeriods-format-wide-am": "오전", + "field-mon-relative+0": "이번 월요일", + "field-mon-relative+1": "다음 월요일", "dateFormat-short": "G y. M. d.", "field-second": "초", + "field-sat-relative+-1": "지난 토요일", + "field-sun-relative+-1": "지난 일요일", "field-month-relative+0": "이번 달", "field-month-relative+1": "다음 달", "dateFormatItem-Ed": "d일 (E)", @@ -153,6 +228,7 @@ define( "dateFormatItem-Hms": "H시 m분 s초", "dateFormatItem-hms": "a h:mm:ss", "dateFormatItem-GyMMM": "G y년 MMM", + "field-mon-relative+-1": "지난 월요일", "dateFormatItem-yyyy": "G y년", "field-week-relative+0": "이번 주", "field-week-relative+1": "다음 주" diff --git a/cldr/nls/ko/chinese.js b/cldr/nls/ko/chinese.js index b181448f09..a30deb0ac2 100644 --- a/cldr/nls/ko/chinese.js +++ b/cldr/nls/ko/chinese.js @@ -1,69 +1,91 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "U년 MMM d일 (E)", - "field-dayperiod": "오전/오후", - "field-minute": "분", - "dateFormatItem-MMMEd": "MMM d일 (E)", - "field-day-relative+-1": "어제", - "dateFormatItem-hms": "a h:mm:ss", - "field-day-relative+-2": "그저께", + "field-second-relative+0": "지금", "field-weekday": "요일", - "dateFormatItem-MMM": "LLL", - "dateFormatItem-Gy": "U년", + "field-wed-relative+0": "이번 수요일", + "field-wed-relative+1": "다음 수요일", + "dateFormatItem-GyMMMEd": "U년 MMM d일 (E)", + "dateFormatItem-MMMEd": "MMM d일 (E)", + "field-tue-relative+-1": "지난 화요일", + "dateFormat-long": "U년 M월 d일", + "field-fri-relative+-1": "지난 금요일", + "field-wed-relative+-1": "지난 수요일", + "dateFormatItem-yyyyQQQ": "U년 QQQ", + "dateFormat-full": "U년 M월 d일 EEEE", + "dateFormatItem-yyyyMEd": "U. M. d. (E)", + "field-thu-relative+-1": "지난 목요일", + "dateFormatItem-Md": "M. d.", + "dateFormatItem-yMd": "U. M. d.", "field-era": "연호", + "dateFormatItem-MEEEEd": "M. d. EEEE", + "field-year": "년", "field-hour": "시", - "dateFormatItem-y": "U년", - "dateFormatItem-yyyy": "U년", - "dateFormatItem-yyyyMMMEEEEd": "U년 MMM d일 EEEE", - "dateFormatItem-EEEEd": "d일 EEEE", - "dateFormatItem-Ed": "d일 (E)", + "field-sat-relative+0": "이번 토요일", + "field-sat-relative+1": "다음 토요일", "field-day-relative+0": "오늘", "field-day-relative+1": "내일", - "field-day-relative+2": "모레", + "field-thu-relative+0": "이번 목요일", "dateFormatItem-GyMMMd": "U년 MMM d일", - "dateFormat-long": "U년 M월 d일", - "field-zone": "시간대", - "dateFormatItem-MMMEEEEd": "MMM d일 EEEE", - "field-week-relative+-1": "지난주", - "dateFormat-medium": "y. M. d.", - "dateFormatItem-Hms": "H시 m분 s초", - "field-year-relative+0": "올해", - "field-year-relative+1": "내년", - "dateFormatItem-yMd": "U. M. d.", - "field-year-relative+-1": "지난해", - "dateFormatItem-yyyyQQQQ": "U년 QQQQ", - "field-year": "년", - "dateFormatItem-GyMMMEEEEd": "U년 MMM d일 EEEE", - "field-week": "주", - "dateFormatItem-yyyyMd": "U. M. d.", + "field-day-relative+2": "모레", + "field-thu-relative+1": "다음 목요일", + "dateFormatItem-H": "H시", + "dateFormatItem-Gy": "U년", + "dateFormatItem-yyyyMMMEd": "U년 MMM d일 (E)", + "dateFormatItem-M": "M월", + "dateFormatItem-yyyyMMM": "U년 MMM", "dateFormatItem-yyyyMMMd": "U년 MMM d일", - "dateFormatItem-yyyyMEd": "U. M. d. (E)", + "field-sun-relative+0": "이번 일요일", + "field-sun-relative+1": "다음 일요일", + "field-minute": "분", + "field-dayperiod": "오전/오후", + "dateFormatItem-d": "d일", "dateFormatItem-yyyyMEEEEd": "U. M. d. EEEE", + "field-day-relative+-1": "어제", + "dateFormatItem-h": "a h시", + "field-day-relative+-2": "그저께", "dateFormatItem-MMMd": "MMM d일", - "field-week-relative+0": "이번 주", - "field-week-relative+1": "다음 주", - "field-month-relative+0": "이번 달", - "dateFormatItem-H": "H시", - "field-month": "월", - "field-month-relative+1": "다음 달", - "dateFormatItem-M": "M월", - "field-second": "초", - "dateFormatItem-GyMMMEd": "U년 MMM d일 (E)", - "dateFormatItem-GyMMM": "U년 MMM", - "dateFormatItem-MEEEEd": "M. d. EEEE", - "field-day": "일", + "dateFormatItem-EEEEd": "d일 EEEE", "dateFormatItem-MEd": "M. d. (E)", - "dateFormatItem-yyyyQQQ": "U년 QQQ", + "field-fri-relative+0": "이번 금요일", + "field-fri-relative+1": "다음 금요일", + "field-day": "일", + "field-zone": "시간대", + "dateFormatItem-y": "U년", + "field-year-relative+-1": "지난해", + "field-month-relative+-1": "지난달", "dateFormatItem-hm": "a h:mm", + "dateFormatItem-GyMMMEEEEd": "U년 MMM d일 EEEE", + "dateFormatItem-yyyyMMMEEEEd": "U년 MMM d일 EEEE", + "dateFormatItem-MMMEEEEd": "MMM d일 EEEE", + "dateFormatItem-yyyyMd": "U. M. d.", + "field-month": "월", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "이번 화요일", + "field-tue-relative+1": "다음 화요일", + "field-mon-relative+0": "이번 월요일", + "field-mon-relative+1": "다음 월요일", "dateFormat-short": "y. M. d.", + "field-second": "초", + "field-sat-relative+-1": "지난 토요일", + "field-sun-relative+-1": "지난 일요일", + "field-month-relative+0": "이번 달", + "field-month-relative+1": "다음 달", + "dateFormatItem-Ed": "d일 (E)", + "field-week": "주", + "dateFormat-medium": "y. M. d.", + "field-year-relative+0": "올해", + "field-week-relative+-1": "지난주", "dateFormatItem-yyyyM": "U. M.", - "dateFormat-full": "U년 M월 d일 EEEE", - "dateFormatItem-Md": "M. d.", - "dateFormatItem-yyyyMMM": "U년 MMM", - "dateFormatItem-d": "d일", - "field-month-relative+-1": "지난달", - "dateFormatItem-h": "a h시" + "field-year-relative+1": "내년", + "dateFormatItem-yyyyQQQQ": "U년 QQQQ", + "dateFormatItem-Hms": "H시 m분 s초", + "dateFormatItem-hms": "a h:mm:ss", + "dateFormatItem-GyMMM": "U년 MMM", + "field-mon-relative+-1": "지난 월요일", + "dateFormatItem-yyyy": "U년", + "field-week-relative+0": "이번 주", + "field-week-relative+1": "다음 주" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ko/coptic.js b/cldr/nls/ko/coptic.js new file mode 100644 index 0000000000..64596c567a --- /dev/null +++ b/cldr/nls/ko/coptic.js @@ -0,0 +1,98 @@ +define( +//begin v1.x content +{ + "field-sat-relative+0": "이번 토요일", + "field-sat-relative+1": "다음 토요일", + "field-dayperiod": "오전/오후", + "field-sun-relative+-1": "지난 일요일", + "field-mon-relative+-1": "지난 월요일", + "field-minute": "분", + "field-day-relative+-1": "어제", + "field-weekday": "요일", + "field-day-relative+-2": "그저께", + "field-era": "연호", + "field-hour": "시", + "field-sun-relative+0": "이번 일요일", + "field-sun-relative+1": "다음 일요일", + "months-standAlone-abbr": [ + "투트", + "바바흐", + "하투르", + "키야흐크", + "투바흐", + "암쉬르", + "바라마트", + "바라문다흐", + "바샨스", + "바우나흐", + "아비브", + "미스라", + "나시" + ], + "field-wed-relative+-1": "지난 수요일", + "field-day-relative+0": "오늘", + "field-day-relative+1": "내일", + "field-day-relative+2": "모레", + "field-tue-relative+0": "이번 화요일", + "field-zone": "시간대", + "field-tue-relative+1": "다음 화요일", + "field-week-relative+-1": "지난주", + "field-year-relative+0": "올해", + "field-year-relative+1": "내년", + "field-sat-relative+-1": "지난 토요일", + "field-year-relative+-1": "지난해", + "field-year": "년", + "field-fri-relative+0": "이번 금요일", + "field-fri-relative+1": "다음 금요일", + "months-standAlone-wide": [ + "투트", + "바바흐", + "하투르", + "키야흐크", + "투바흐", + "암쉬르", + "바라마트", + "바라문다흐", + "바샨스", + "바우나흐", + "아비브", + "미스라", + "나시" + ], + "field-week": "주", + "field-week-relative+0": "이번 주", + "field-week-relative+1": "다음 주", + "months-format-abbr": [ + "투트", + "바바흐", + "하투르", + "키야흐크", + "투바흐", + "암쉬르", + "바라마트", + "바라문다흐", + "바샨스", + "바우나흐", + "아비브", + "미스라", + "나시" + ], + "field-month-relative+0": "이번 달", + "field-month": "월", + "field-month-relative+1": "다음 달", + "field-fri-relative+-1": "지난 금요일", + "field-second": "초", + "field-tue-relative+-1": "지난 화요일", + "field-day": "일", + "field-mon-relative+0": "이번 월요일", + "field-mon-relative+1": "다음 월요일", + "field-thu-relative+0": "이번 목요일", + "field-second-relative+0": "지금", + "field-thu-relative+1": "다음 목요일", + "field-wed-relative+0": "이번 수요일", + "field-wed-relative+1": "다음 수요일", + "field-month-relative+-1": "지난달", + "field-thu-relative+-1": "지난 목요일" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/ko/currency.js b/cldr/nls/ko/currency.js index 53f7de5e8d..0290c2ddf9 100644 --- a/cldr/nls/ko/currency.js +++ b/cldr/nls/ko/currency.js @@ -3,12 +3,19 @@ define( { "HKD_displayName": "홍콩 달러", "CHF_displayName": "스위스 프랑", + "JPY_symbol": "JP¥", "CAD_displayName": "캐나다 달러", - "CNY_displayName": "중국 위안 인민폐", + "HKD_symbol": "HK$", + "CNY_displayName": "중국 위안화", + "USD_symbol": "US$", "AUD_displayName": "호주 달러", "JPY_displayName": "일본 엔화", + "CAD_symbol": "CA$", "USD_displayName": "미국 달러", + "EUR_symbol": "€", + "CNY_symbol": "CN¥", "GBP_displayName": "영국령 파운드 스털링", + "GBP_symbol": "£", "AUD_symbol": "AU$", "EUR_displayName": "유로화" } diff --git a/cldr/nls/ko/dangi.js b/cldr/nls/ko/dangi.js new file mode 100644 index 0000000000..07e934240a --- /dev/null +++ b/cldr/nls/ko/dangi.js @@ -0,0 +1,141 @@ +define( +//begin v1.x content +{ + "field-sat-relative+0": "이번 토요일", + "field-sat-relative+1": "다음 토요일", + "field-dayperiod": "오전/오후", + "field-sun-relative+-1": "지난 일요일", + "field-mon-relative+-1": "지난 월요일", + "field-minute": "분", + "field-day-relative+-1": "어제", + "field-weekday": "요일", + "field-day-relative+-2": "그저께", + "months-standAlone-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-era": "연호", + "field-hour": "시", + "field-sun-relative+0": "이번 일요일", + "field-sun-relative+1": "다음 일요일", + "months-standAlone-abbr": [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월" + ], + "field-wed-relative+-1": "지난 수요일", + "field-day-relative+0": "오늘", + "field-day-relative+1": "내일", + "field-day-relative+2": "모레", + "dateFormat-long": "U년 M월 d일", + "field-tue-relative+0": "이번 화요일", + "field-zone": "시간대", + "field-tue-relative+1": "다음 화요일", + "field-week-relative+-1": "지난주", + "dateFormat-medium": "y. M. d.", + "field-year-relative+0": "올해", + "field-year-relative+1": "내년", + "field-sat-relative+-1": "지난 토요일", + "field-year-relative+-1": "지난해", + "field-year": "년", + "field-fri-relative+0": "이번 금요일", + "field-fri-relative+1": "다음 금요일", + "months-standAlone-wide": [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월" + ], + "field-week": "주", + "field-week-relative+0": "이번 주", + "field-week-relative+1": "다음 주", + "months-format-abbr": [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월" + ], + "field-month-relative+0": "이번 달", + "field-month": "월", + "field-month-relative+1": "다음 달", + "field-fri-relative+-1": "지난 금요일", + "field-second": "초", + "field-tue-relative+-1": "지난 화요일", + "field-day": "일", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-mon-relative+0": "이번 월요일", + "field-mon-relative+1": "다음 월요일", + "field-thu-relative+0": "이번 목요일", + "field-second-relative+0": "지금", + "dateFormat-short": "y. M. d.", + "field-thu-relative+1": "다음 목요일", + "dateFormat-full": "U년 M월 d일 EEEE", + "months-format-wide": [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월" + ], + "field-wed-relative+0": "이번 수요일", + "field-wed-relative+1": "다음 수요일", + "field-month-relative+-1": "지난달", + "field-thu-relative+-1": "지난 목요일" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/ko/ethiopic.js b/cldr/nls/ko/ethiopic.js new file mode 100644 index 0000000000..1c8db16d05 --- /dev/null +++ b/cldr/nls/ko/ethiopic.js @@ -0,0 +1,98 @@ +define( +//begin v1.x content +{ + "field-sat-relative+0": "이번 토요일", + "field-sat-relative+1": "다음 토요일", + "field-dayperiod": "오전/오후", + "field-sun-relative+-1": "지난 일요일", + "field-mon-relative+-1": "지난 월요일", + "field-minute": "분", + "field-day-relative+-1": "어제", + "field-weekday": "요일", + "field-day-relative+-2": "그저께", + "field-era": "연호", + "field-hour": "시", + "field-sun-relative+0": "이번 일요일", + "field-sun-relative+1": "다음 일요일", + "months-standAlone-abbr": [ + "매스캐램", + "테켐트", + "헤다르", + "타흐사스", + "테르", + "얘카티트", + "매가비트", + "미야지야", + "겐보트", + "새네", + "함레", + "내하세", + "파구맨" + ], + "field-wed-relative+-1": "지난 수요일", + "field-day-relative+0": "오늘", + "field-day-relative+1": "내일", + "field-day-relative+2": "모레", + "field-tue-relative+0": "이번 화요일", + "field-zone": "시간대", + "field-tue-relative+1": "다음 화요일", + "field-week-relative+-1": "지난주", + "field-year-relative+0": "올해", + "field-year-relative+1": "내년", + "field-sat-relative+-1": "지난 토요일", + "field-year-relative+-1": "지난해", + "field-year": "년", + "field-fri-relative+0": "이번 금요일", + "field-fri-relative+1": "다음 금요일", + "months-standAlone-wide": [ + "매스캐램", + "테켐트", + "헤다르", + "타흐사스", + "테르", + "얘카티트", + "매가비트", + "미야지야", + "겐보트", + "새네", + "함레", + "내하세", + "파구맨" + ], + "field-week": "주", + "field-week-relative+0": "이번 주", + "field-week-relative+1": "다음 주", + "months-format-abbr": [ + "매스캐램", + "테켐트", + "헤다르", + "타흐사스", + "테르", + "얘카티트", + "매가비트", + "미야지야", + "겐보트", + "새네", + "함레", + "내하세", + "파구맨" + ], + "field-month-relative+0": "이번 달", + "field-month": "월", + "field-month-relative+1": "다음 달", + "field-fri-relative+-1": "지난 금요일", + "field-second": "초", + "field-tue-relative+-1": "지난 화요일", + "field-day": "일", + "field-mon-relative+0": "이번 월요일", + "field-mon-relative+1": "다음 월요일", + "field-thu-relative+0": "이번 목요일", + "field-second-relative+0": "지금", + "field-thu-relative+1": "다음 목요일", + "field-wed-relative+0": "이번 수요일", + "field-wed-relative+1": "다음 수요일", + "field-month-relative+-1": "지난달", + "field-thu-relative+-1": "지난 목요일" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/ko/generic.js b/cldr/nls/ko/generic.js index cdb4b07f8c..4dba5d7c64 100644 --- a/cldr/nls/ko/generic.js +++ b/cldr/nls/ko/generic.js @@ -1,75 +1,97 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "G y년 MMM d일 (E)", - "field-dayperiod": "오전/오후", - "field-minute": "분", - "dateFormatItem-MMMEd": "MMM d일 (E)", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "어제", - "dateFormatItem-hms": "a h:mm:ss", - "field-day-relative+-2": "그저께", + "field-second-relative+0": "지금", "field-weekday": "요일", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "G y년", + "field-wed-relative+0": "이번 수요일", + "dateFormatItem-GyMMMEd": "G y년 MMM d일 (E)", + "dateFormatItem-MMMEd": "MMM d일 (E)", + "field-wed-relative+1": "다음 수요일", + "field-tue-relative+-1": "지난 화요일", + "dateFormat-long": "G y년 M월 d일", + "field-fri-relative+-1": "지난 금요일", + "field-wed-relative+-1": "지난 수요일", + "dateFormatItem-yyyyQQQ": "G y년 QQQ", "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "G y년 M월 d일 EEEE", + "dateFormatItem-yyyyMEd": "G y. M. d. (E)", + "field-thu-relative+-1": "지난 목요일", + "dateFormatItem-Md": "M. d.", "field-era": "연호", + "dateFormatItem-MEEEEd": "M. d. EEEE", + "field-year": "년", "field-hour": "시", - "dateFormatItem-y": "G y년", - "dateFormatItem-yyyy": "G y년", - "dateFormatItem-yyyyMMMEEEEd": "G y년 MMM d일 EEEE", - "dateFormatItem-EEEEd": "d일 EEEE", - "dateFormatItem-Ed": "d일 (E)", + "field-sat-relative+0": "이번 토요일", + "field-sat-relative+1": "다음 토요일", "field-day-relative+0": "오늘", "field-day-relative+1": "내일", - "field-day-relative+2": "모레", + "field-thu-relative+0": "이번 목요일", "dateFormatItem-GyMMMd": "G y년 MMM d일", - "dateFormat-long": "G y년 M월 d일", - "field-zone": "시간대", - "dateFormatItem-Hm": "HH:mm", - "dateFormatItem-MMMEEEEd": "MMM d일 EEEE", - "field-week-relative+-1": "지난주", - "dateFormat-medium": "G y. M. d.", - "dateFormatItem-Hms": "H시 m분 s초", - "field-year-relative+0": "올해", - "field-year-relative+1": "내년", - "field-year-relative+-1": "지난해", - "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "G y년 QQQQ", - "field-year": "년", - "dateFormatItem-GyMMMEEEEd": "G y년 MMM d일 EEEE", - "dateTimeFormat-long": "{1} {0}", + "field-day-relative+2": "모레", + "field-thu-relative+1": "다음 목요일", + "dateFormatItem-H": "H시", + "dateFormatItem-Gy": "G y년", "dateFormatItem-HHmmss": "HH:mm:ss", - "field-week": "주", - "dateFormatItem-yyyyMd": "G y. M. d.", + "dateFormatItem-yyyyMMMEd": "G y년 MMM d일 (E)", + "dateFormatItem-M": "M월", + "dateFormatItem-yyyyMMM": "G y년 MMM", "dateFormatItem-yyyyMMMd": "G y년 MMM d일", - "dateFormatItem-yyyyMEd": "G y. M. d. (E)", + "field-sun-relative+0": "이번 일요일", + "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "다음 일요일", + "field-minute": "분", + "field-dayperiod": "오전/오후", + "dateFormatItem-d": "d일", "dateFormatItem-yyyyMEEEEd": "G y. M. d. EEEE", + "dateFormatItem-ms": "mm:ss", + "field-day-relative+-1": "어제", + "dateFormatItem-h": "a h시", + "dateTimeFormat-long": "{1} {0}", + "field-day-relative+-2": "그저께", "dateFormatItem-MMMd": "MMM d일", - "field-week-relative+0": "이번 주", - "field-week-relative+1": "다음 주", - "field-month-relative+0": "이번 달", - "dateFormatItem-H": "H시", - "field-month": "월", - "field-month-relative+1": "다음 달", - "dateFormatItem-M": "M월", - "field-second": "초", - "dateFormatItem-GyMMMEd": "G y년 MMM d일 (E)", - "dateFormatItem-GyMMM": "G y년 MMM", - "dateFormatItem-MEEEEd": "M. d. EEEE", - "field-day": "일", + "dateFormatItem-EEEEd": "d일 EEEE", "dateFormatItem-MEd": "M. d. (E)", - "dateFormatItem-yyyyQQQ": "G y년 QQQ", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "이번 금요일", + "field-fri-relative+1": "다음 금요일", + "field-day": "일", + "field-zone": "시간대", + "dateFormatItem-y": "G y년", + "field-year-relative+-1": "지난해", + "field-month-relative+-1": "지난달", "dateFormatItem-hm": "a h:mm", + "dateFormatItem-GyMMMEEEEd": "G y년 MMM d일 EEEE", + "dateFormatItem-yyyyMMMEEEEd": "G y년 MMM d일 EEEE", + "dateFormatItem-MMMEEEEd": "MMM d일 EEEE", + "dateFormatItem-yyyyMd": "G y. M. d.", + "field-month": "월", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "이번 화요일", + "field-tue-relative+1": "다음 화요일", + "field-mon-relative+0": "이번 월요일", + "field-mon-relative+1": "다음 월요일", "dateFormat-short": "G y. M. d.", + "field-second": "초", + "field-sat-relative+-1": "지난 토요일", + "field-sun-relative+-1": "지난 일요일", + "field-month-relative+0": "이번 달", + "field-month-relative+1": "다음 달", + "dateFormatItem-Ed": "d일 (E)", + "field-week": "주", + "dateFormat-medium": "G y. M. d.", + "field-year-relative+0": "올해", + "field-week-relative+-1": "지난주", "dateFormatItem-yyyyM": "G y. M.", - "dateFormat-full": "G y년 M월 d일 EEEE", - "dateFormatItem-Md": "M. d.", - "dateFormatItem-yyyyMMM": "G y년 MMM", - "dateFormatItem-d": "d일", - "field-month-relative+-1": "지난달", - "dateFormatItem-h": "a h시" + "field-year-relative+1": "내년", + "dateFormatItem-yyyyQQQQ": "G y년 QQQQ", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "H시 m분 s초", + "dateFormatItem-hms": "a h:mm:ss", + "dateFormatItem-GyMMM": "G y년 MMM", + "field-mon-relative+-1": "지난 월요일", + "dateFormatItem-yyyy": "G y년", + "field-week-relative+0": "이번 주", + "field-week-relative+1": "다음 주" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ko/gregorian.js b/cldr/nls/ko/gregorian.js index 87ad8d984a..2e82d9e6c1 100644 --- a/cldr/nls/ko/gregorian.js +++ b/cldr/nls/ko/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "(E) a h:mm", "days-standAlone-short": [ "일", "월", @@ -24,6 +25,7 @@ define( "11월", "12월" ], + "field-second-relative+0": "지금", "quarters-standAlone-narrow": [ "1", "2", @@ -33,6 +35,8 @@ define( "field-weekday": "요일", "dateFormatItem-yQQQ": "y년 QQQ", "dateFormatItem-yMEd": "y. M. d. (E)", + "field-wed-relative+0": "이번 수요일", + "field-wed-relative+1": "다음 수요일", "dateFormatItem-GyMMMEd": "G y년 MMM d일 (E)", "dateFormatItem-MMMEd": "MMM d일 (E)", "eraNarrow": [ @@ -40,6 +44,7 @@ define( "서기" ], "dateFormatItem-yMM": "y. M.", + "field-tue-relative+-1": "지난 화요일", "days-format-short": [ "일", "월", @@ -50,6 +55,8 @@ define( "토" ], "dateFormat-long": "y년 M월 d일", + "field-fri-relative+-1": "지난 금요일", + "field-wed-relative+-1": "지난 수요일", "months-format-wide": [ "1월", "2월", @@ -67,6 +74,7 @@ define( "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "오후", "dateFormat-full": "y년 M월 d일 EEEE", + "field-thu-relative+-1": "지난 목요일", "dateFormatItem-Md": "M. d.", "dateFormatItem-yMd": "y. M. d.", "field-era": "연호", @@ -112,10 +120,14 @@ define( "11월", "12월" ], + "field-sat-relative+0": "이번 토요일", + "field-sat-relative+1": "다음 토요일", "dateFormatItem-yMEEEEd": "y. M. d. EEEE", "timeFormat-full": "a h시 m분 s초 zzzz", "field-day-relative+0": "오늘", + "field-thu-relative+0": "이번 목요일", "field-day-relative+1": "내일", + "field-thu-relative+1": "다음 목요일", "dateFormatItem-GyMMMd": "G y년 MMM d일", "field-day-relative+2": "모레", "dateFormatItem-H": "H시", @@ -159,7 +171,9 @@ define( ], "dateFormatItem-yMMMEEEEd": "y년 MMM d일 EEEE", "timeFormat-medium": "a h:mm:ss", + "field-sun-relative+0": "이번 일요일", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "다음 일요일", "quarters-standAlone-abbr": [ "1분기", "2분기", @@ -197,6 +211,8 @@ define( "dateFormatItem-EEEEd": "d일 EEEE", "dateFormatItem-MEd": "M. d. (E)", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "이번 금요일", + "field-fri-relative+1": "다음 금요일", "field-day": "일", "days-format-wide": [ "일요일", @@ -251,7 +267,6 @@ define( "토" ], "dateFormatItem-MMMEEEEd": "MMM d일 EEEE", - "field-month": "월", "days-standAlone-narrow": [ "일", "월", @@ -262,13 +277,24 @@ define( "토" ], "dateFormatItem-MMM": "LLL", + "field-month": "월", + "field-tue-relative+0": "이번 화요일", + "field-tue-relative+1": "다음 화요일", "dayPeriods-format-wide-am": "오전", + "dateFormatItem-EHm": "(E) HH:mm", + "field-mon-relative+0": "이번 월요일", + "field-mon-relative+1": "다음 월요일", "dateFormat-short": "yy. M. d.", + "dateFormatItem-EHms": "(E) HH:mm:ss", + "dateFormatItem-Ehms": "(E) a h:mm:ss", "field-second": "초", + "field-sat-relative+-1": "지난 토요일", "dateFormatItem-yMMMEd": "y년 MMM d일 (E)", + "field-sun-relative+-1": "지난 일요일", "field-month-relative+0": "이번 달", "field-month-relative+1": "다음 달", "dateFormatItem-Ed": "d일 (E)", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "주", "dateFormat-medium": "y. M. d.", "field-year-relative+0": "올해", @@ -279,6 +305,7 @@ define( "dateFormatItem-Hms": "H시 m분 s초", "dateFormatItem-hms": "a h:mm:ss", "dateFormatItem-GyMMM": "G y년 MMM", + "field-mon-relative+-1": "지난 월요일", "field-week-relative+0": "이번 주", "field-week-relative+1": "다음 주" } diff --git a/cldr/nls/ko/hebrew.js b/cldr/nls/ko/hebrew.js index 3d605d21b0..fc5217b955 100644 --- a/cldr/nls/ko/hebrew.js +++ b/cldr/nls/ko/hebrew.js @@ -1,26 +1,7 @@ define( //begin v1.x content { - "field-dayperiod": "오전/오후", - "dateFormatItem-yyyyMMMEd": "G y년 MMM d일 (E)", - "dayPeriods-format-wide-pm": "오후", - "field-minute": "분", - "dateFormatItem-MMMEd": "MMM d일 (E)", - "field-day-relative+-1": "어제", - "field-weekday": "요일", - "dateFormatItem-hms": "a h:mm:ss", - "field-day-relative+-2": "그저께", - "field-era": "연호", - "dateFormatItem-Gy": "G y년", - "field-hour": "시", - "dayPeriods-format-wide-am": "오전", - "dateFormatItem-y": "G y년", - "timeFormat-full": "a h시 m분 s초 zzzz", - "dateFormatItem-yyyy": "G y년", - "dateFormatItem-Ed": "d일 (E)", - "field-day-relative+0": "오늘", - "field-day-relative+1": "내일", - "days-standAlone-narrow": [ + "days-standAlone-short": [ "일", "월", "화", @@ -29,58 +10,155 @@ define( "금", "토" ], - "eraAbbr": [ - "AM" + "field-second-relative+0": "지금", + "field-weekday": "요일", + "field-wed-relative+0": "이번 수요일", + "field-wed-relative+1": "다음 수요일", + "dateFormatItem-GyMMMEd": "G y년 MMM d일 (E)", + "dateFormatItem-MMMEd": "MMM d일 (E)", + "field-tue-relative+-1": "지난 화요일", + "days-format-short": [ + "일", + "월", + "화", + "수", + "목", + "금", + "토" ], - "field-day-relative+2": "모레", - "dateFormatItem-GyMMMd": "G y년 MMM d일", "dateFormat-long": "G y년 M월 d일", - "timeFormat-medium": "a h:mm:ss", - "field-zone": "시간대", - "field-week-relative+-1": "지난주", - "dateFormat-medium": "G y. M. d.", - "dateFormatItem-Hms": "H시 m분 s초", - "field-year-relative+0": "올해", - "field-year-relative+1": "내년", - "field-year-relative+-1": "지난해", - "field-year": "년", - "dateFormatItem-yyyyQQQQ": "G y년 QQQQ", - "field-week": "주", - "dateFormatItem-yyyyMd": "G y. M. d.", - "dateFormatItem-yyyyMMMd": "G y년 MMM d일", + "field-fri-relative+-1": "지난 금요일", + "field-wed-relative+-1": "지난 수요일", + "dateFormatItem-yyyyQQQ": "G y년 QQQ", + "dayPeriods-format-wide-pm": "오후", + "dateFormat-full": "G y년 M월 d일 EEEE", "dateFormatItem-yyyyMEd": "G y. M. d. (E)", - "dateFormatItem-MMMd": "MMM d일", - "field-week-relative+0": "이번 주", - "field-week-relative+1": "다음 주", + "field-thu-relative+-1": "지난 목요일", + "dateFormatItem-Md": "M. d.", + "field-era": "연호", + "months-standAlone-wide": [ + "디스리월", + "말케스월", + "기슬르월", + "데벳월", + "스밧월", + "아달월 1", + "아달월", + "닛산월", + "이야르월", + "시완월", + "담무르월", + "압월", + "엘룰월" + ], + "timeFormat-short": "a h:mm", + "quarters-format-wide": [ + "제 1/4분기", + "제 2/4분기", + "제 3/4분기", + "제 4/4분기" + ], "timeFormat-long": "a h시 m분 s초 z", - "field-month-relative+0": "이번 달", - "field-month": "월", - "field-month-relative+1": "다음 달", + "field-year": "년", + "field-hour": "시", + "months-format-abbr-leap": "아달월 2", + "months-format-abbr": [ + "디스리월", + "말케스월", + "기슬르월", + "데벳월", + "스밧월", + "아달월 1", + "아달월", + "닛산월", + "이야르월", + "시완월", + "담무르월", + "압월", + "엘룰월" + ], + "field-sat-relative+0": "이번 토요일", + "field-sat-relative+1": "다음 토요일", + "timeFormat-full": "a h시 m분 s초 zzzz", + "field-day-relative+0": "오늘", + "field-thu-relative+0": "이번 목요일", + "field-day-relative+1": "내일", + "field-thu-relative+1": "다음 목요일", + "dateFormatItem-GyMMMd": "G y년 MMM d일", + "field-day-relative+2": "모레", "dateFormatItem-H": "H시", - "timeFormat-short": "a h:mm", + "months-standAlone-abbr": [ + "디스리월", + "말케스월", + "기슬르월", + "데벳월", + "스밧월", + "아달월 1", + "아달월", + "닛산월", + "이야르월", + "시완월", + "담무르월", + "압월", + "엘룰월" + ], "quarters-format-abbr": [ "1분기", "2분기", "3분기", "4분기" ], - "days-format-abbr": [ - "일", - "월", - "화", - "수", - "목", - "금", - "토" + "quarters-standAlone-wide": [ + "제 1/4분기", + "제 2/4분기", + "제 3/4분기", + "제 4/4분기" ], + "dateFormatItem-Gy": "G y년", + "dateFormatItem-yyyyMMMEd": "G y년 MMM d일 (E)", "dateFormatItem-M": "M월", - "field-second": "초", - "dateFormatItem-GyMMMEd": "G y년 MMM d일 (E)", - "dateFormatItem-GyMMM": "G y년 MMM", - "field-day": "일", - "dateFormatItem-yyyyQQQ": "G y년 QQQ", + "dateFormatItem-yyyyMMM": "G y년 MMM", + "dateFormatItem-yyyyMMMd": "G y년 MMM d일", + "months-standAlone-wide-leap": "아달월 2", + "timeFormat-medium": "a h:mm:ss", + "field-sun-relative+0": "이번 일요일", + "field-sun-relative+1": "다음 일요일", + "quarters-standAlone-abbr": [ + "1분기", + "2분기", + "3분기", + "4분기" + ], + "eraAbbr": [ + "AM" + ], + "field-minute": "분", + "field-dayperiod": "오전/오후", + "dateFormatItem-d": "d일", + "field-day-relative+-1": "어제", + "dateFormatItem-h": "a h시", + "field-day-relative+-2": "그저께", + "dateFormatItem-MMMd": "MMM d일", "dateFormatItem-MEd": "M. d. (E)", - "days-standAlone-short": [ + "field-fri-relative+0": "이번 금요일", + "field-fri-relative+1": "다음 금요일", + "field-day": "일", + "days-format-wide": [ + "일요일", + "월요일", + "화요일", + "수요일", + "목요일", + "금요일", + "토요일" + ], + "field-zone": "시간대", + "months-standAlone-abbr-leap": "아달월 2", + "dateFormatItem-y": "G y년", + "field-year-relative+-1": "지난해", + "field-month-relative+-1": "지난달", + "dateFormatItem-hm": "a h:mm", + "days-format-abbr": [ "일", "월", "화", @@ -89,12 +167,9 @@ define( "금", "토" ], - "dateFormatItem-hm": "a h:mm", - "dateFormat-short": "G y. M. d.", - "dateFormatItem-yyyyM": "G y. M.", - "dateFormatItem-Md": "M. d.", - "dateFormat-full": "G y년 M월 d일 EEEE", - "days-format-short": [ + "dateFormatItem-yyyyMd": "G y. M. d.", + "field-month": "월", + "days-standAlone-narrow": [ "일", "월", "화", @@ -103,25 +178,32 @@ define( "금", "토" ], - "dateFormatItem-yyyyMMM": "G y년 MMM", - "dateFormatItem-d": "d일", - "field-month-relative+-1": "지난달", - "quarters-format-wide": [ - "제 1/4분기", - "제 2/4분기", - "제 3/4분기", - "제 4/4분기" - ], - "days-format-wide": [ - "일요일", - "월요일", - "화요일", - "수요일", - "목요일", - "금요일", - "토요일" - ], - "dateFormatItem-h": "a h시" + "field-tue-relative+0": "이번 화요일", + "field-tue-relative+1": "다음 화요일", + "dayPeriods-format-wide-am": "오전", + "field-mon-relative+0": "이번 월요일", + "field-mon-relative+1": "다음 월요일", + "dateFormat-short": "G y. M. d.", + "field-second": "초", + "field-sat-relative+-1": "지난 토요일", + "field-sun-relative+-1": "지난 일요일", + "field-month-relative+0": "이번 달", + "field-month-relative+1": "다음 달", + "dateFormatItem-Ed": "d일 (E)", + "field-week": "주", + "dateFormat-medium": "G y. M. d.", + "field-year-relative+0": "올해", + "field-week-relative+-1": "지난주", + "dateFormatItem-yyyyM": "G y. M.", + "field-year-relative+1": "내년", + "dateFormatItem-yyyyQQQQ": "G y년 QQQQ", + "dateFormatItem-Hms": "H시 m분 s초", + "dateFormatItem-hms": "a h:mm:ss", + "dateFormatItem-GyMMM": "G y년 MMM", + "field-mon-relative+-1": "지난 월요일", + "dateFormatItem-yyyy": "G y년", + "field-week-relative+0": "이번 주", + "field-week-relative+1": "다음 주" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ko/islamic.js b/cldr/nls/ko/islamic.js index 2d91c8eb85..068acafd9a 100644 --- a/cldr/nls/ko/islamic.js +++ b/cldr/nls/ko/islamic.js @@ -1,26 +1,7 @@ define( //begin v1.x content { - "field-dayperiod": "오전/오후", - "dateFormatItem-yyyyMMMEd": "G y년 MMM d일 (E)", - "dayPeriods-format-wide-pm": "오후", - "field-minute": "분", - "dateFormatItem-MMMEd": "MMM d일 (E)", - "field-day-relative+-1": "어제", - "field-weekday": "요일", - "dateFormatItem-hms": "a h:mm:ss", - "field-day-relative+-2": "그저께", - "field-era": "연호", - "dateFormatItem-Gy": "G y년", - "field-hour": "시", - "dayPeriods-format-wide-am": "오전", - "dateFormatItem-y": "G y년", - "timeFormat-full": "a h시 m분 s초 zzzz", - "dateFormatItem-yyyy": "G y년", - "dateFormatItem-Ed": "d일 (E)", - "field-day-relative+0": "오늘", - "field-day-relative+1": "내일", - "days-standAlone-narrow": [ + "days-standAlone-short": [ "일", "월", "화", @@ -29,58 +10,107 @@ define( "금", "토" ], - "eraAbbr": [ - "AH" + "field-second-relative+0": "지금", + "field-weekday": "요일", + "field-wed-relative+0": "이번 수요일", + "field-wed-relative+1": "다음 수요일", + "dateFormatItem-GyMMMEd": "G y년 MMM d일 (E)", + "dateFormatItem-MMMEd": "MMM d일 (E)", + "field-tue-relative+-1": "지난 화요일", + "days-format-short": [ + "일", + "월", + "화", + "수", + "목", + "금", + "토" ], - "field-day-relative+2": "모레", - "dateFormatItem-GyMMMd": "G y년 MMM d일", "dateFormat-long": "G y년 M월 d일", - "timeFormat-medium": "a h:mm:ss", - "field-zone": "시간대", - "field-week-relative+-1": "지난주", - "dateFormat-medium": "G y. M. d.", - "dateFormatItem-Hms": "H시 m분 s초", - "field-year-relative+0": "올해", - "field-year-relative+1": "내년", - "field-year-relative+-1": "지난해", - "field-year": "년", - "dateFormatItem-yyyyQQQQ": "G y년 QQQQ", - "field-week": "주", - "dateFormatItem-yyyyMMMd": "G y년 MMM d일", - "dateFormatItem-yyyyMd": "G y. M. d.", + "field-fri-relative+-1": "지난 금요일", + "field-wed-relative+-1": "지난 수요일", + "dateFormatItem-yyyyQQQ": "G y년 QQQ", + "dayPeriods-format-wide-pm": "오후", + "dateFormat-full": "G y년 M월 d일 EEEE", "dateFormatItem-yyyyMEd": "G y. M. d. (E)", - "field-week-relative+0": "이번 주", - "dateFormatItem-MMMd": "MMM d일", - "field-week-relative+1": "다음 주", + "field-thu-relative+-1": "지난 목요일", + "dateFormatItem-Md": "M. d.", + "field-era": "연호", + "timeFormat-short": "a h:mm", + "quarters-format-wide": [ + "제 1/4분기", + "제 2/4분기", + "제 3/4분기", + "제 4/4분기" + ], "timeFormat-long": "a h시 m분 s초 z", - "field-month-relative+0": "이번 달", - "field-month": "월", - "field-month-relative+1": "다음 달", + "field-year": "년", + "field-hour": "시", + "field-sat-relative+0": "이번 토요일", + "field-sat-relative+1": "다음 토요일", + "timeFormat-full": "a h시 m분 s초 zzzz", + "field-day-relative+0": "오늘", + "field-thu-relative+0": "이번 목요일", + "field-day-relative+1": "내일", + "field-thu-relative+1": "다음 목요일", + "dateFormatItem-GyMMMd": "G y년 MMM d일", + "field-day-relative+2": "모레", "dateFormatItem-H": "H시", - "timeFormat-short": "a h:mm", "quarters-format-abbr": [ "1분기", "2분기", "3분기", "4분기" ], - "days-format-abbr": [ - "일", - "월", - "화", - "수", - "목", - "금", - "토" + "quarters-standAlone-wide": [ + "제 1/4분기", + "제 2/4분기", + "제 3/4분기", + "제 4/4분기" ], + "dateFormatItem-Gy": "G y년", + "dateFormatItem-yyyyMMMEd": "G y년 MMM d일 (E)", "dateFormatItem-M": "M월", - "field-second": "초", - "dateFormatItem-GyMMMEd": "G y년 MMM d일 (E)", - "dateFormatItem-GyMMM": "G y년 MMM", - "field-day": "일", - "dateFormatItem-yyyyQQQ": "G y년 QQQ", + "dateFormatItem-yyyyMMM": "G y년 MMM", + "dateFormatItem-yyyyMMMd": "G y년 MMM d일", + "timeFormat-medium": "a h:mm:ss", + "field-sun-relative+0": "이번 일요일", + "field-sun-relative+1": "다음 일요일", + "quarters-standAlone-abbr": [ + "1분기", + "2분기", + "3분기", + "4분기" + ], + "eraAbbr": [ + "AH" + ], + "field-minute": "분", + "field-dayperiod": "오전/오후", + "dateFormatItem-d": "d일", + "field-day-relative+-1": "어제", + "dateFormatItem-h": "a h시", + "field-day-relative+-2": "그저께", + "dateFormatItem-MMMd": "MMM d일", "dateFormatItem-MEd": "M. d. (E)", - "days-standAlone-short": [ + "field-fri-relative+0": "이번 금요일", + "field-fri-relative+1": "다음 금요일", + "field-day": "일", + "days-format-wide": [ + "일요일", + "월요일", + "화요일", + "수요일", + "목요일", + "금요일", + "토요일" + ], + "field-zone": "시간대", + "dateFormatItem-y": "G y년", + "field-year-relative+-1": "지난해", + "field-month-relative+-1": "지난달", + "dateFormatItem-hm": "a h:mm", + "days-format-abbr": [ "일", "월", "화", @@ -89,12 +119,9 @@ define( "금", "토" ], - "dateFormatItem-hm": "a h:mm", - "dateFormat-short": "G y. M. d.", - "dateFormatItem-yyyyM": "G y. M.", - "dateFormat-full": "G y년 M월 d일 EEEE", - "dateFormatItem-Md": "M. d.", - "days-format-short": [ + "dateFormatItem-yyyyMd": "G y. M. d.", + "field-month": "월", + "days-standAlone-narrow": [ "일", "월", "화", @@ -103,25 +130,32 @@ define( "금", "토" ], - "dateFormatItem-yyyyMMM": "G y년 MMM", - "dateFormatItem-d": "d일", - "field-month-relative+-1": "지난달", - "quarters-format-wide": [ - "제 1/4분기", - "제 2/4분기", - "제 3/4분기", - "제 4/4분기" - ], - "days-format-wide": [ - "일요일", - "월요일", - "화요일", - "수요일", - "목요일", - "금요일", - "토요일" - ], - "dateFormatItem-h": "a h시" + "field-tue-relative+0": "이번 화요일", + "field-tue-relative+1": "다음 화요일", + "dayPeriods-format-wide-am": "오전", + "field-mon-relative+0": "이번 월요일", + "field-mon-relative+1": "다음 월요일", + "dateFormat-short": "G y. M. d.", + "field-second": "초", + "field-sat-relative+-1": "지난 토요일", + "field-sun-relative+-1": "지난 일요일", + "field-month-relative+0": "이번 달", + "field-month-relative+1": "다음 달", + "dateFormatItem-Ed": "d일 (E)", + "field-week": "주", + "dateFormat-medium": "G y. M. d.", + "field-year-relative+0": "올해", + "field-week-relative+-1": "지난주", + "dateFormatItem-yyyyM": "G y. M.", + "field-year-relative+1": "내년", + "dateFormatItem-yyyyQQQQ": "G y년 QQQQ", + "dateFormatItem-Hms": "H시 m분 s초", + "dateFormatItem-hms": "a h:mm:ss", + "dateFormatItem-GyMMM": "G y년 MMM", + "field-mon-relative+-1": "지난 월요일", + "dateFormatItem-yyyy": "G y년", + "field-week-relative+0": "이번 주", + "field-week-relative+1": "다음 주" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ko/japanese.js b/cldr/nls/ko/japanese.js index a85b3b25ee..87c8523724 100644 --- a/cldr/nls/ko/japanese.js +++ b/cldr/nls/ko/japanese.js @@ -1,29 +1,22 @@ define( //begin v1.x content { - "field-second": "초", - "field-year-relative+-1": "지난해", - "field-week": "주", - "field-month-relative+-1": "지난달", + "field-sat-relative+0": "이번 토요일", + "field-sat-relative+1": "다음 토요일", + "field-dayperiod": "오전/오후", + "field-sun-relative+-1": "지난 일요일", + "field-mon-relative+-1": "지난 월요일", + "field-minute": "분", "field-day-relative+-1": "어제", + "field-weekday": "요일", "field-day-relative+-2": "그저께", - "field-year": "년", - "field-week-relative+0": "이번 주", - "field-week-relative+1": "다음 주", - "field-minute": "분", - "field-week-relative+-1": "지난주", - "field-day-relative+0": "오늘", + "field-era": "연호", "field-hour": "시", + "field-sun-relative+0": "이번 일요일", + "field-sun-relative+1": "다음 일요일", + "field-wed-relative+-1": "지난 수요일", + "field-day-relative+0": "오늘", "field-day-relative+1": "내일", - "field-day-relative+2": "모레", - "field-day": "일", - "field-month-relative+0": "이번 달", - "field-month-relative+1": "다음 달", - "field-dayperiod": "오전/오후", - "field-month": "월", - "field-era": "연호", - "field-year-relative+0": "올해", - "field-year-relative+1": "내년", "eraAbbr": [ "다이카 (645 ~ 650)", "하쿠치 (650 ~ 671)", @@ -262,8 +255,37 @@ define( "쇼와", "헤이세이" ], - "field-weekday": "요일", - "field-zone": "시간대" + "field-day-relative+2": "모레", + "field-tue-relative+0": "이번 화요일", + "field-zone": "시간대", + "field-tue-relative+1": "다음 화요일", + "field-week-relative+-1": "지난주", + "field-year-relative+0": "올해", + "field-year-relative+1": "내년", + "field-sat-relative+-1": "지난 토요일", + "field-year-relative+-1": "지난해", + "field-year": "년", + "field-fri-relative+0": "이번 금요일", + "field-fri-relative+1": "다음 금요일", + "field-week": "주", + "field-week-relative+0": "이번 주", + "field-week-relative+1": "다음 주", + "field-month-relative+0": "이번 달", + "field-month": "월", + "field-month-relative+1": "다음 달", + "field-fri-relative+-1": "지난 금요일", + "field-second": "초", + "field-tue-relative+-1": "지난 화요일", + "field-day": "일", + "field-mon-relative+0": "이번 월요일", + "field-mon-relative+1": "다음 월요일", + "field-thu-relative+0": "이번 목요일", + "field-second-relative+0": "지금", + "field-thu-relative+1": "다음 목요일", + "field-wed-relative+0": "이번 수요일", + "field-wed-relative+1": "다음 수요일", + "field-month-relative+-1": "지난달", + "field-thu-relative+-1": "지난 목요일" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ko/number.js b/cldr/nls/ko/number.js index 2ed1f76e86..ec4744b2c4 100644 --- a/cldr/nls/ko/number.js +++ b/cldr/nls/ko/number.js @@ -10,6 +10,7 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ".", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", diff --git a/cldr/nls/ko/roc.js b/cldr/nls/ko/roc.js index 25e687578d..cff11b03d4 100644 --- a/cldr/nls/ko/roc.js +++ b/cldr/nls/ko/roc.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "field-second": "초", - "field-year-relative+-1": "지난해", - "field-week": "주", - "field-month-relative+-1": "지난달", + "field-sat-relative+0": "이번 토요일", + "field-sat-relative+1": "다음 토요일", + "field-dayperiod": "오전/오후", + "field-sun-relative+-1": "지난 일요일", + "field-mon-relative+-1": "지난 월요일", + "field-minute": "분", "field-day-relative+-1": "어제", + "field-weekday": "요일", "field-day-relative+-2": "그저께", - "field-year": "년", - "field-week-relative+0": "이번 주", - "field-week-relative+1": "다음 주", - "field-minute": "분", - "field-week-relative+-1": "지난주", - "field-day-relative+0": "오늘", + "field-era": "연호", "field-hour": "시", + "field-sun-relative+0": "이번 일요일", + "field-sun-relative+1": "다음 일요일", + "field-wed-relative+-1": "지난 수요일", + "field-day-relative+0": "오늘", "field-day-relative+1": "내일", - "field-day-relative+2": "모레", - "field-day": "일", - "field-month-relative+0": "이번 달", - "field-month-relative+1": "다음 달", - "field-dayperiod": "오전/오후", - "field-month": "월", - "field-era": "연호", - "field-year-relative+0": "올해", - "field-year-relative+1": "내년", "eraAbbr": [ "중화민국전", "중화민국" ], - "field-weekday": "요일", - "field-zone": "시간대" + "field-day-relative+2": "모레", + "field-tue-relative+0": "이번 화요일", + "field-zone": "시간대", + "field-tue-relative+1": "다음 화요일", + "field-week-relative+-1": "지난주", + "field-year-relative+0": "올해", + "field-year-relative+1": "내년", + "field-sat-relative+-1": "지난 토요일", + "field-year-relative+-1": "지난해", + "field-year": "년", + "field-fri-relative+0": "이번 금요일", + "field-fri-relative+1": "다음 금요일", + "field-week": "주", + "field-week-relative+0": "이번 주", + "field-week-relative+1": "다음 주", + "field-month-relative+0": "이번 달", + "field-month": "월", + "field-month-relative+1": "다음 달", + "field-fri-relative+-1": "지난 금요일", + "field-second": "초", + "field-tue-relative+-1": "지난 화요일", + "field-day": "일", + "field-mon-relative+0": "이번 월요일", + "field-mon-relative+1": "다음 월요일", + "field-thu-relative+0": "이번 목요일", + "field-second-relative+0": "지금", + "field-thu-relative+1": "다음 목요일", + "field-wed-relative+0": "이번 수요일", + "field-wed-relative+1": "다음 수요일", + "field-month-relative+-1": "지난달", + "field-thu-relative+-1": "지난 목요일" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/nb/buddhist.js b/cldr/nls/nb/buddhist.js index 5eb9e17d71..48b7b72cdb 100644 --- a/cldr/nls/nb/buddhist.js +++ b/cldr/nls/nb/buddhist.js @@ -24,9 +24,13 @@ define( "N", "D" ], - "field-weekday": "ukedag", + "field-second-relative+0": "nå", + "field-weekday": "Ukedag", + "field-wed-relative+0": "onsdag denne uken", + "field-wed-relative+1": "onsdag neste uke", "dateFormatItem-GyMMMEd": "E d. MMM y G", "dateFormatItem-MMMEd": "E d. MMM", + "field-tue-relative+-1": "tirsdag sist uke", "days-format-short": [ "sø.", "ma.", @@ -37,6 +41,8 @@ define( "lø." ], "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "fredag sist uke", + "field-wed-relative+-1": "onsdag sist uke", "months-format-wide": [ "januar", "februar", @@ -52,12 +58,13 @@ define( "desember" ], "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateTimeFormat-medium": "{0} {1}", + "dayPeriods-format-wide-pm": "p.m.", "dateFormat-full": "EEEE d. MMMM y G", - "dateFormatItem-yyyyMEd": "E d.MM.y G", + "dateFormatItem-yyyyMEd": "E d.M.y G", + "field-thu-relative+-1": "torsdag sist uke", "dateFormatItem-Md": "d.M.", "dayPeriods-format-abbr-am": "a.m.", - "field-era": "tidsalder", + "field-era": "Tidsalder", "months-standAlone-wide": [ "januar", "februar", @@ -72,31 +79,37 @@ define( "november", "desember" ], + "timeFormat-short": "HH.mm", "quarters-format-wide": [ "1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal" ], - "field-year": "år", - "field-hour": "time", + "timeFormat-long": "HH.mm.ss z", + "field-year": "År", + "field-hour": "Time", "months-format-abbr": [ "jan.", "feb.", - "mars", + "mar.", "apr.", "mai", - "juni", - "juli", + "jun.", + "jul.", "aug.", "sep.", "okt.", "nov.", "des." ], - "timeFormat-full": "'kl'. HH:mm:ss zzzz", + "field-sat-relative+0": "lørdag denne uken", + "field-sat-relative+1": "lørdag neste uke", + "timeFormat-full": "HH.mm.ss zzzz", "field-day-relative+0": "i dag", + "field-thu-relative+0": "torsdag denne uken", "field-day-relative+1": "i morgen", + "field-thu-relative+1": "torsdag neste uke", "dateFormatItem-GyMMMd": "d. MMM y G", "field-day-relative+2": "i overmorgen", "months-standAlone-abbr": [ @@ -127,6 +140,7 @@ define( ], "dateFormatItem-Gy": "y G", "dateFormatItem-yyyyMMMEd": "E d. MMM y G", + "dateFormatItem-M": "L.", "days-standAlone-wide": [ "søndag", "mandag", @@ -138,6 +152,10 @@ define( ], "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d. MMM y G", + "timeFormat-medium": "HH.mm.ss", + "field-sun-relative+0": "søndag denne uken", + "dateFormatItem-Hm": "HH.mm", + "field-sun-relative+1": "søndag neste uke", "quarters-standAlone-abbr": [ "K1", "K2", @@ -147,7 +165,7 @@ define( "eraAbbr": [ "BE" ], - "field-minute": "minutt", + "field-minute": "Minutt", "field-dayperiod": "AM/PM", "days-standAlone-abbr": [ "sø.", @@ -159,14 +177,14 @@ define( "lø." ], "dateFormatItem-d": "d.", + "dateFormatItem-ms": "mm.ss", "field-day-relative+-1": "i går", - "dateTimeFormat-long": "{0} {1}", - "dayPeriods-format-narrow-am": "a", "field-day-relative+-2": "i forgårs", "dateFormatItem-MMMd": "d. MMM", "dateFormatItem-MEd": "E d.M", - "dateTimeFormat-full": "{0} {1}", - "field-day": "dag", + "field-fri-relative+0": "fredag denne uken", + "field-fri-relative+1": "fredag neste uke", + "field-day": "Dag", "days-format-wide": [ "søndag", "mandag", @@ -176,7 +194,7 @@ define( "fredag", "lørdag" ], - "field-zone": "sone", + "field-zone": "Tidssone", "dateFormatItem-y": "y G", "months-standAlone-narrow": [ "J", @@ -194,6 +212,7 @@ define( ], "field-year-relative+-1": "I fjor", "field-month-relative+-1": "Sist måned", + "dateFormatItem-hm": "h.mm a", "dayPeriods-format-abbr-pm": "p.m.", "days-format-abbr": [ "søn.", @@ -214,7 +233,7 @@ define( "L" ], "dateFormatItem-yyyyMd": "d.M.y G", - "field-month": "måned", + "field-month": "Måned", "days-standAlone-narrow": [ "S", "M", @@ -224,21 +243,29 @@ define( "F", "L" ], - "dateFormat-short": "d.M y G", - "field-second": "sekund", + "field-tue-relative+0": "tirsdag denne uken", + "field-tue-relative+1": "tirsdag neste uke", + "dayPeriods-format-wide-am": "a.m.", + "field-mon-relative+0": "mandag denne uken", + "field-mon-relative+1": "mandag neste uke", + "dateFormat-short": "d.M. y G", + "field-second": "Sekund", + "field-sat-relative+-1": "lørdag sist uke", + "field-sun-relative+-1": "søndag sist uke", "field-month-relative+0": "Denne måneden", "field-month-relative+1": "Neste måned", "dateFormatItem-Ed": "E d.", - "field-week": "uke", + "field-week": "Uke", "dateFormat-medium": "d. MMM y G", "field-year-relative+0": "Dette året", "field-week-relative+-1": "Sist uke", - "dateFormatItem-yyyyM": "M y G", + "dateFormatItem-yyyyM": "M.y G", "field-year-relative+1": "Neste år", - "dayPeriods-format-narrow-pm": "p", "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "dateTimeFormat-short": "{0} {1}", + "dateFormatItem-Hms": "HH.mm.ss", + "dateFormatItem-hms": "h.mm.ss a", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "mandag sist uke", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "Denne uken", "field-week-relative+1": "Neste uke" diff --git a/cldr/nls/nb/currency.js b/cldr/nls/nb/currency.js index ce9eac8988..ab14f2af3f 100644 --- a/cldr/nls/nb/currency.js +++ b/cldr/nls/nb/currency.js @@ -3,14 +3,20 @@ define( { "HKD_displayName": "Hongkong-dollar", "CHF_displayName": "sveitsiske franc", + "JPY_symbol": "JPY", "CAD_displayName": "kanadiske dollar", + "HKD_symbol": "HKD", "CNY_displayName": "kinesiske yuan", + "USD_symbol": "USD", "AUD_displayName": "australske dollar", "JPY_displayName": "japanske yen", + "CAD_symbol": "CAD", "USD_displayName": "amerikanske dollar", "EUR_symbol": "€", + "CNY_symbol": "CNY", "GBP_displayName": "britiske pund sterling", "GBP_symbol": "£", + "AUD_symbol": "AUD", "EUR_displayName": "euro" } //end v1.x content diff --git a/cldr/nls/nb/generic.js b/cldr/nls/nb/generic.js index 55ef40394e..fac2ddca12 100644 --- a/cldr/nls/nb/generic.js +++ b/cldr/nls/nb/generic.js @@ -1,71 +1,93 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E d. MMM y G", - "field-dayperiod": "AM/PM", - "field-minute": "minutt", + "field-second-relative+0": "nå", + "field-weekday": "Ukedag", + "field-wed-relative+0": "onsdag denne uken", + "dateFormatItem-GyMMMEd": "E d. MMM y G", "dateFormatItem-MMMEd": "E d. MMM", - "dateTimeFormat-full": "{0} {1}", - "field-day-relative+-1": "i går", - "dateFormatItem-hms": "h:mm:ss a", + "field-wed-relative+1": "onsdag neste uke", + "field-tue-relative+-1": "tirsdag sist uke", + "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "fredag sist uke", + "field-wed-relative+-1": "onsdag sist uke", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "EEEE d. MMMM y G", + "dateFormatItem-yyyyMEd": "E d.M.y G", + "field-thu-relative+-1": "torsdag sist uke", + "dateFormatItem-Md": "d.M.", + "field-era": "Tidsalder", + "field-year": "År", + "dateFormatItem-yyyyMMMM": "MMMM y G", "dateFormatItem-MMdd": "d.M.", - "field-day-relative+-2": "i forgårs", - "field-weekday": "ukedag", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{0} {1}", - "dateFormatItem-Gy": "y G", - "dateTimeFormat-medium": "{0} {1}", - "field-era": "tidsalder", - "field-hour": "time", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E d.", + "field-hour": "Time", + "field-sat-relative+0": "lørdag denne uken", + "field-sat-relative+1": "lørdag neste uke", "field-day-relative+0": "i dag", "field-day-relative+1": "i morgen", + "field-thu-relative+0": "torsdag denne uken", + "dateFormatItem-GyMMMd": "d. MMM y G", "field-day-relative+2": "i overmorgen", + "field-thu-relative+1": "torsdag neste uke", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d. MMM y G", + "dateFormatItem-M": "L.", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d. MMM y G", + "field-sun-relative+0": "søndag denne uken", + "dateFormatItem-Hm": "HH.mm", + "field-sun-relative+1": "søndag neste uke", + "field-minute": "Minutt", + "field-dayperiod": "AM/PM", + "dateFormatItem-d": "d.", + "dateFormatItem-ms": "mm.ss", + "field-day-relative+-1": "i går", + "dateFormatItem-h": "h a", + "dateTimeFormat-long": "{1} {0}", + "field-day-relative+-2": "i forgårs", + "dateFormatItem-MMMd": "d. MMM", + "dateFormatItem-MEd": "E d.M", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "fredag denne uken", + "field-fri-relative+1": "fredag neste uke", + "field-day": "Dag", + "field-zone": "Tidssone", "dateFormatItem-yyyyMM": "MM.y G", - "dateFormatItem-GyMMMd": "d. MMM y G", - "dateFormatItem-yyyyMMMM": "MMMM y G", - "dateFormat-long": "d. MMMM y G", - "field-zone": "sone", - "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "Sist uke", - "dateFormat-medium": "d. MMM y G", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "Dette året", - "field-year-relative+1": "Neste år", + "dateFormatItem-y": "y G", "field-year-relative+-1": "I fjor", - "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "field-year": "år", - "dateTimeFormat-long": "{0} {1}", - "field-week": "uke", + "field-month-relative+-1": "Sist måned", + "dateFormatItem-hm": "h.mm a", "dateFormatItem-yyyyMd": "d.M.y G", - "dateFormatItem-yyyyMMMd": "d. MMM y G", - "dateFormatItem-yyyyMEd": "E d.MM.y G", - "dateFormatItem-MMMd": "d. MMM", - "field-week-relative+0": "Denne uken", - "field-week-relative+1": "Neste uke", + "field-month": "Måned", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "tirsdag denne uken", + "field-tue-relative+1": "tirsdag neste uke", + "field-mon-relative+0": "mandag denne uken", + "field-mon-relative+1": "mandag neste uke", + "dateFormat-short": "d.M. y G", + "field-second": "Sekund", + "field-sat-relative+-1": "lørdag sist uke", + "field-sun-relative+-1": "søndag sist uke", "field-month-relative+0": "Denne måneden", - "dateFormatItem-H": "HH", - "field-month": "måned", "field-month-relative+1": "Neste måned", - "dateFormatItem-M": "L", - "field-second": "sekund", - "dateFormatItem-GyMMMEd": "E d. MMM y G", + "dateFormatItem-Ed": "E d.", + "field-week": "Uke", + "dateFormat-medium": "d. MMM y G", + "field-year-relative+0": "Dette året", + "field-week-relative+-1": "Sist uke", + "dateFormatItem-yyyyM": "M.y G", + "field-year-relative+1": "Neste år", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "HH.mm.ss", + "dateFormatItem-hms": "h.mm.ss a", "dateFormatItem-GyMMM": "MMM y G", - "field-day": "dag", - "dateFormatItem-MEd": "E d.M", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-hm": "h:mm a", - "dateFormat-short": "d.M y G", - "dateFormatItem-yyyyM": "M y G", - "dateFormat-full": "EEEE d. MMMM y G", - "dateFormatItem-Md": "d.M.", - "dateFormatItem-yyyyMMM": "MMM y G", - "dateFormatItem-d": "d.", - "field-month-relative+-1": "Sist måned", - "dateFormatItem-h": "h a" + "field-mon-relative+-1": "mandag sist uke", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "Denne uken", + "field-week-relative+1": "Neste uke" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/nb/gregorian.js b/cldr/nls/nb/gregorian.js index da362f7172..f68c935980 100644 --- a/cldr/nls/nb/gregorian.js +++ b/cldr/nls/nb/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h.mm a", "days-standAlone-short": [ "sø.", "ma.", @@ -24,22 +25,28 @@ define( "N", "D" ], + "field-second-relative+0": "nå", "quarters-standAlone-narrow": [ "1", "2", "3", "4" ], - "field-weekday": "ukedag", + "field-weekday": "Ukedag", "dateFormatItem-yQQQ": "QQQ y", "dateFormatItem-yMEd": "E d.MM.y", + "field-wed-relative+0": "onsdag denne uken", "dateFormatItem-GyMMMEd": "E d. MMM y G", "dateFormatItem-MMMEd": "E d. MMM", + "field-wed-relative+1": "onsdag neste uke", "eraNarrow": [ "f.Kr.", - "e.Kr." + "fvt.", + "e.Kr.", + "vt" ], "dateFormatItem-yMM": "MM.y", + "field-tue-relative+-1": "tirsdag sist uke", "days-format-short": [ "sø.", "ma.", @@ -50,6 +57,8 @@ define( "lø." ], "dateFormat-long": "d. MMMM y", + "field-fri-relative+-1": "fredag sist uke", + "field-wed-relative+-1": "onsdag sist uke", "months-format-wide": [ "januar", "februar", @@ -64,14 +73,15 @@ define( "november", "desember" ], - "dateTimeFormat-medium": "{0} {1}", - "dayPeriods-format-wide-pm": "PM", + "dateTimeFormat-medium": "{1}, {0}", + "dayPeriods-format-wide-pm": "p.m.", "dateFormat-full": "EEEE d. MMMM y", + "field-thu-relative+-1": "torsdag sist uke", "dateFormatItem-Md": "d.M.", "dayPeriods-format-abbr-am": "a.m.", "dateFormatItem-yMd": "d.M.y", - "dateFormatItem-yM": "M y", - "field-era": "tidsalder", + "dateFormatItem-yM": "M.y", + "field-era": "Tidsalder", "months-standAlone-wide": [ "januar", "februar", @@ -86,38 +96,42 @@ define( "november", "desember" ], - "timeFormat-short": "HH:mm", + "timeFormat-short": "HH.mm", "quarters-format-wide": [ "1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal" ], - "timeFormat-long": "HH:mm:ss z", + "timeFormat-long": "HH.mm.ss z", "dateFormatItem-yMMM": "MMM y", "dateFormatItem-yQQQQ": "QQQQ y", - "field-year": "år", + "field-year": "År", "dateFormatItem-MMdd": "d.M.", - "field-hour": "time", + "field-hour": "Time", "months-format-abbr": [ "jan.", "feb.", - "mars", + "mar.", "apr.", "mai", - "juni", - "juli", + "jun.", + "jul.", "aug.", "sep.", "okt.", "nov.", "des." ], - "timeFormat-full": "'kl'. HH:mm:ss zzzz", + "field-sat-relative+0": "lørdag denne uken", + "field-sat-relative+1": "lørdag neste uke", + "timeFormat-full": "HH.mm.ss zzzz", "field-day-relative+0": "i dag", "field-day-relative+1": "i morgen", + "field-thu-relative+0": "torsdag denne uken", "dateFormatItem-GyMMMd": "d. MMM y G", "field-day-relative+2": "i overmorgen", + "field-thu-relative+1": "torsdag neste uke", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ "jan", @@ -146,7 +160,7 @@ define( "4. kvartal" ], "dateFormatItem-Gy": "y G", - "dateFormatItem-M": "L", + "dateFormatItem-M": "L.", "days-standAlone-wide": [ "søndag", "mandag", @@ -156,19 +170,23 @@ define( "fredag", "lørdag" ], - "timeFormat-medium": "HH:mm:ss", - "dateFormatItem-Hm": "HH:mm", + "timeFormat-medium": "HH.mm.ss", + "field-sun-relative+0": "søndag denne uken", + "dateFormatItem-Hm": "HH.mm", "quarters-standAlone-abbr": [ "K1", "K2", "K3", "K4" ], + "field-sun-relative+1": "søndag neste uke", "eraAbbr": [ "f.Kr.", - "e.Kr." + "fvt.", + "e.Kr.", + "vt." ], - "field-minute": "minutt", + "field-minute": "Minutt", "field-dayperiod": "AM/PM", "days-standAlone-abbr": [ "sø.", @@ -180,7 +198,7 @@ define( "lø." ], "dateFormatItem-d": "d.", - "dateFormatItem-ms": "mm:ss", + "dateFormatItem-ms": "mm.ss", "quarters-format-narrow": [ "1", "2", @@ -189,14 +207,16 @@ define( ], "field-day-relative+-1": "i går", "dateFormatItem-h": "h a", - "dateTimeFormat-long": "{0} {1}", + "dateTimeFormat-long": "{1} 'kl.' {0}", "dayPeriods-format-narrow-am": "a", "field-day-relative+-2": "i forgårs", "dateFormatItem-MMMd": "d. MMM", "dateFormatItem-MEd": "E d.M", - "dateTimeFormat-full": "{0} {1}", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "fredag denne uken", "dateFormatItem-yMMMM": "MMMM y", - "field-day": "dag", + "field-fri-relative+1": "fredag neste uke", + "field-day": "Dag", "days-format-wide": [ "søndag", "mandag", @@ -206,7 +226,7 @@ define( "fredag", "lørdag" ], - "field-zone": "sone", + "field-zone": "Tidssone", "dateFormatItem-y": "y", "months-standAlone-narrow": [ "J", @@ -224,7 +244,7 @@ define( ], "field-year-relative+-1": "I fjor", "field-month-relative+-1": "Sist måned", - "dateFormatItem-hm": "h:mm a", + "dateFormatItem-hm": "h.mm a", "dayPeriods-format-abbr-pm": "p.m.", "days-format-abbr": [ "søn.", @@ -235,11 +255,13 @@ define( "fre.", "lør." ], - "dateFormatItem-yMMMd": "d. MMM y", "eraNames": [ "f.Kr.", - "e.Kr." + "før vår tidsregning", + "e.Kr.", + "vår tidsregning" ], + "dateFormatItem-yMMMd": "d. MMM y", "days-format-narrow": [ "S", "M", @@ -259,24 +281,35 @@ define( "L" ], "dateFormatItem-MMM": "LLL", - "field-month": "måned", - "dayPeriods-format-wide-am": "AM", + "field-month": "Måned", + "field-tue-relative+0": "tirsdag denne uken", + "field-tue-relative+1": "tirsdag neste uke", + "dayPeriods-format-wide-am": "a.m.", + "dateFormatItem-EHm": "E HH.mm", + "field-mon-relative+0": "mandag denne uken", + "field-mon-relative+1": "mandag neste uke", "dateFormat-short": "dd.MM.yy", - "field-second": "sekund", + "dateFormatItem-EHms": "E HH.mm.ss", + "dateFormatItem-Ehms": "E h.mm.ss a", + "field-second": "Sekund", + "field-sat-relative+-1": "lørdag sist uke", "dateFormatItem-yMMMEd": "E d. MMM y", + "field-sun-relative+-1": "søndag sist uke", "field-month-relative+0": "Denne måneden", "field-month-relative+1": "Neste måned", "dateFormatItem-Ed": "E d.", - "field-week": "uke", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "field-week": "Uke", "dateFormat-medium": "d. MMM y", "field-year-relative+0": "Dette året", "field-week-relative+-1": "Sist uke", "field-year-relative+1": "Neste år", "dayPeriods-format-narrow-pm": "p", - "dateTimeFormat-short": "{0} {1}", - "dateFormatItem-Hms": "HH:mm:ss", - "dateFormatItem-hms": "h:mm:ss a", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-Hms": "HH.mm.ss", + "dateFormatItem-hms": "h.mm.ss a", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "mandag sist uke", "field-week-relative+0": "Denne uken", "field-week-relative+1": "Neste uke" } diff --git a/cldr/nls/nb/hebrew.js b/cldr/nls/nb/hebrew.js index 46e23ab292..c785937405 100644 --- a/cldr/nls/nb/hebrew.js +++ b/cldr/nls/nb/hebrew.js @@ -1,14 +1,76 @@ define( //begin v1.x content { - "field-dayperiod": "AM/PM", - "dateFormatItem-yyyyMMMEd": "E d. MMM y G", - "field-minute": "minutt", + "days-standAlone-short": [ + "sø.", + "ma.", + "ti.", + "on.", + "to.", + "fr.", + "lø." + ], + "field-second-relative+0": "nå", + "field-weekday": "Ukedag", + "field-wed-relative+0": "onsdag denne uken", + "field-wed-relative+1": "onsdag neste uke", + "dateFormatItem-GyMMMEd": "E d. MMM y G", "dateFormatItem-MMMEd": "E d. MMM", - "dateTimeFormat-full": "{0} {1}", - "field-day-relative+-1": "i går", - "field-weekday": "ukedag", - "field-day-relative+-2": "i forgårs", + "field-tue-relative+-1": "tirsdag sist uke", + "days-format-short": [ + "sø.", + "ma.", + "ti.", + "on.", + "to.", + "fr.", + "lø." + ], + "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "fredag sist uke", + "field-wed-relative+-1": "onsdag sist uke", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dayPeriods-format-wide-pm": "p.m.", + "dateFormat-full": "EEEE d. MMMM y G", + "dateFormatItem-yyyyMEd": "E d.M.y G", + "field-thu-relative+-1": "torsdag sist uke", + "dateFormatItem-Md": "d.M.", + "dayPeriods-format-abbr-am": "a.m.", + "field-era": "Tidsalder", + "timeFormat-short": "HH.mm", + "quarters-format-wide": [ + "1. kvartal", + "2. kvartal", + "3. kvartal", + "4. kvartal" + ], + "timeFormat-long": "HH.mm.ss z", + "field-year": "År", + "field-hour": "Time", + "field-sat-relative+0": "lørdag denne uken", + "field-sat-relative+1": "lørdag neste uke", + "timeFormat-full": "HH.mm.ss zzzz", + "field-day-relative+0": "i dag", + "field-thu-relative+0": "torsdag denne uken", + "field-day-relative+1": "i morgen", + "field-thu-relative+1": "torsdag neste uke", + "dateFormatItem-GyMMMd": "d. MMM y G", + "field-day-relative+2": "i overmorgen", + "quarters-format-abbr": [ + "K1", + "K2", + "K3", + "K4" + ], + "quarters-standAlone-wide": [ + "1. kvartal", + "2. kvartal", + "3. kvartal", + "4. kvartal" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d. MMM y G", + "dateFormatItem-M": "L.", "days-standAlone-wide": [ "søndag", "mandag", @@ -18,71 +80,56 @@ define( "fredag", "lørdag" ], - "dateTimeFormat-short": "{0} {1}", - "field-era": "tidsalder", - "dateFormatItem-Gy": "y G", - "field-hour": "time", - "dateTimeFormat-medium": "{0} {1}", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d. MMM y G", + "timeFormat-medium": "HH.mm.ss", + "field-sun-relative+0": "søndag denne uken", + "dateFormatItem-Hm": "HH.mm", + "field-sun-relative+1": "søndag neste uke", "quarters-standAlone-abbr": [ "K1", "K2", "K3", "K4" ], - "dateFormatItem-y": "y G", - "timeFormat-full": "'kl'. HH:mm:ss zzzz", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E d.", - "field-day-relative+0": "i dag", - "field-day-relative+1": "i morgen", - "days-standAlone-narrow": [ - "S", - "M", - "T", - "O", - "T", - "F", - "L" - ], "eraAbbr": [ "AM" ], - "field-day-relative+2": "i overmorgen", - "dateFormatItem-GyMMMd": "d. MMM y G", - "dateFormat-long": "d. MMMM y G", - "field-zone": "sone", - "field-week-relative+-1": "Sist uke", - "dateFormat-medium": "d. MMM y G", - "dayPeriods-format-narrow-pm": "p", - "field-year-relative+0": "Dette året", - "field-year-relative+1": "Neste år", - "quarters-standAlone-wide": [ - "1. kvartal", - "2. kvartal", - "3. kvartal", - "4. kvartal" + "field-minute": "Minutt", + "field-dayperiod": "AM/PM", + "days-standAlone-abbr": [ + "sø.", + "ma.", + "ti.", + "on.", + "to.", + "fr.", + "lø." ], - "field-year-relative+-1": "I fjor", - "field-year": "år", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "dayPeriods-format-narrow-am": "a", - "dateTimeFormat-long": "{0} {1}", - "field-week": "uke", - "dateFormatItem-yyyyMd": "d.M.y G", - "dateFormatItem-yyyyMMMd": "d. MMM y G", - "dateFormatItem-yyyyMEd": "E d.MM.y G", + "dateFormatItem-d": "d.", + "dateFormatItem-ms": "mm.ss", + "field-day-relative+-1": "i går", + "field-day-relative+-2": "i forgårs", "dateFormatItem-MMMd": "d. MMM", - "field-week-relative+0": "Denne uken", - "field-week-relative+1": "Neste uke", - "field-month-relative+0": "Denne måneden", - "field-month": "måned", - "field-month-relative+1": "Neste måned", - "quarters-format-abbr": [ - "K1", - "K2", - "K3", - "K4" + "dateFormatItem-MEd": "E d.M", + "field-fri-relative+0": "fredag denne uken", + "field-fri-relative+1": "fredag neste uke", + "field-day": "Dag", + "days-format-wide": [ + "søndag", + "mandag", + "tirsdag", + "onsdag", + "torsdag", + "fredag", + "lørdag" ], + "field-zone": "Tidssone", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "I fjor", + "field-month-relative+-1": "Sist måned", + "dateFormatItem-hm": "h.mm a", + "dayPeriods-format-abbr-pm": "p.m.", "days-format-abbr": [ "søn.", "man.", @@ -101,63 +148,43 @@ define( "F", "L" ], - "field-second": "sekund", - "dateFormatItem-GyMMMEd": "E d. MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "dag", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E d.M", - "days-standAlone-short": [ - "sø.", - "ma.", - "ti.", - "on.", - "to.", - "fr.", - "lø." - ], - "days-standAlone-abbr": [ - "sø.", - "ma.", - "ti.", - "on.", - "to.", - "fr.", - "lø." - ], - "dayPeriods-format-abbr-pm": "p.m.", - "dateFormat-short": "d.M y G", - "dateFormatItem-yyyyM": "M y G", - "dateFormatItem-Md": "d.M.", - "dateFormat-full": "EEEE d. MMMM y G", - "dayPeriods-format-abbr-am": "a.m.", - "days-format-short": [ - "sø.", - "ma.", - "ti.", - "on.", - "to.", - "fr.", - "lø." - ], - "dateFormatItem-yyyyMMM": "MMM y G", - "dateFormatItem-d": "d.", - "field-month-relative+-1": "Sist måned", - "quarters-format-wide": [ - "1. kvartal", - "2. kvartal", - "3. kvartal", - "4. kvartal" + "dateFormatItem-yyyyMd": "d.M.y G", + "field-month": "Måned", + "days-standAlone-narrow": [ + "S", + "M", + "T", + "O", + "T", + "F", + "L" ], - "days-format-wide": [ - "søndag", - "mandag", - "tirsdag", - "onsdag", - "torsdag", - "fredag", - "lørdag" - ] + "field-tue-relative+0": "tirsdag denne uken", + "field-tue-relative+1": "tirsdag neste uke", + "dayPeriods-format-wide-am": "a.m.", + "field-mon-relative+0": "mandag denne uken", + "field-mon-relative+1": "mandag neste uke", + "dateFormat-short": "d.M. y G", + "field-second": "Sekund", + "field-sat-relative+-1": "lørdag sist uke", + "field-sun-relative+-1": "søndag sist uke", + "field-month-relative+0": "Denne måneden", + "field-month-relative+1": "Neste måned", + "dateFormatItem-Ed": "E d.", + "field-week": "Uke", + "dateFormat-medium": "d. MMM y G", + "field-year-relative+0": "Dette året", + "field-week-relative+-1": "Sist uke", + "dateFormatItem-yyyyM": "M.y G", + "field-year-relative+1": "Neste år", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-Hms": "HH.mm.ss", + "dateFormatItem-hms": "h.mm.ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "mandag sist uke", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "Denne uken", + "field-week-relative+1": "Neste uke" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/nb/islamic.js b/cldr/nls/nb/islamic.js index dda6e8e02c..74d6c17bf7 100644 --- a/cldr/nls/nb/islamic.js +++ b/cldr/nls/nb/islamic.js @@ -1,14 +1,76 @@ define( //begin v1.x content { - "field-dayperiod": "AM/PM", - "dateFormatItem-yyyyMMMEd": "E d. MMM y G", - "field-minute": "minutt", + "days-standAlone-short": [ + "sø.", + "ma.", + "ti.", + "on.", + "to.", + "fr.", + "lø." + ], + "field-second-relative+0": "nå", + "field-weekday": "Ukedag", + "field-wed-relative+0": "onsdag denne uken", + "field-wed-relative+1": "onsdag neste uke", + "dateFormatItem-GyMMMEd": "E d. MMM y G", "dateFormatItem-MMMEd": "E d. MMM", - "dateTimeFormat-full": "{0} {1}", - "field-day-relative+-1": "i går", - "field-weekday": "ukedag", - "field-day-relative+-2": "i forgårs", + "field-tue-relative+-1": "tirsdag sist uke", + "days-format-short": [ + "sø.", + "ma.", + "ti.", + "on.", + "to.", + "fr.", + "lø." + ], + "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "fredag sist uke", + "field-wed-relative+-1": "onsdag sist uke", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dayPeriods-format-wide-pm": "p.m.", + "dateFormat-full": "EEEE d. MMMM y G", + "dateFormatItem-yyyyMEd": "E d.M.y G", + "field-thu-relative+-1": "torsdag sist uke", + "dateFormatItem-Md": "d.M.", + "dayPeriods-format-abbr-am": "a.m.", + "field-era": "Tidsalder", + "timeFormat-short": "HH.mm", + "quarters-format-wide": [ + "1. kvartal", + "2. kvartal", + "3. kvartal", + "4. kvartal" + ], + "timeFormat-long": "HH.mm.ss z", + "field-year": "År", + "field-hour": "Time", + "field-sat-relative+0": "lørdag denne uken", + "field-sat-relative+1": "lørdag neste uke", + "timeFormat-full": "HH.mm.ss zzzz", + "field-day-relative+0": "i dag", + "field-thu-relative+0": "torsdag denne uken", + "field-day-relative+1": "i morgen", + "field-thu-relative+1": "torsdag neste uke", + "dateFormatItem-GyMMMd": "d. MMM y G", + "field-day-relative+2": "i overmorgen", + "quarters-format-abbr": [ + "K1", + "K2", + "K3", + "K4" + ], + "quarters-standAlone-wide": [ + "1. kvartal", + "2. kvartal", + "3. kvartal", + "4. kvartal" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d. MMM y G", + "dateFormatItem-M": "L.", "days-standAlone-wide": [ "søndag", "mandag", @@ -18,71 +80,56 @@ define( "fredag", "lørdag" ], - "dateTimeFormat-short": "{0} {1}", - "field-era": "tidsalder", - "dateFormatItem-Gy": "y G", - "field-hour": "time", - "dateTimeFormat-medium": "{0} {1}", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d. MMM y G", + "timeFormat-medium": "HH.mm.ss", + "field-sun-relative+0": "søndag denne uken", + "dateFormatItem-Hm": "HH.mm", + "field-sun-relative+1": "søndag neste uke", "quarters-standAlone-abbr": [ "K1", "K2", "K3", "K4" ], - "dateFormatItem-y": "y G", - "timeFormat-full": "'kl'. HH:mm:ss zzzz", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E d.", - "field-day-relative+0": "i dag", - "field-day-relative+1": "i morgen", - "days-standAlone-narrow": [ - "S", - "M", - "T", - "O", - "T", - "F", - "L" - ], "eraAbbr": [ "AH" ], - "field-day-relative+2": "i overmorgen", - "dateFormatItem-GyMMMd": "d. MMM y G", - "dateFormat-long": "d. MMMM y G", - "field-zone": "sone", - "field-week-relative+-1": "Sist uke", - "dateFormat-medium": "d. MMM y G", - "dayPeriods-format-narrow-pm": "p", - "field-year-relative+0": "Dette året", - "field-year-relative+1": "Neste år", - "quarters-standAlone-wide": [ - "1. kvartal", - "2. kvartal", - "3. kvartal", - "4. kvartal" + "field-minute": "Minutt", + "field-dayperiod": "AM/PM", + "days-standAlone-abbr": [ + "sø.", + "ma.", + "ti.", + "on.", + "to.", + "fr.", + "lø." ], - "field-year-relative+-1": "I fjor", - "field-year": "år", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "dayPeriods-format-narrow-am": "a", - "dateTimeFormat-long": "{0} {1}", - "field-week": "uke", - "dateFormatItem-yyyyMMMd": "d. MMM y G", - "dateFormatItem-yyyyMd": "d.M.y G", - "dateFormatItem-yyyyMEd": "E d.MM.y G", - "field-week-relative+0": "Denne uken", + "dateFormatItem-d": "d.", + "dateFormatItem-ms": "mm.ss", + "field-day-relative+-1": "i går", + "field-day-relative+-2": "i forgårs", "dateFormatItem-MMMd": "d. MMM", - "field-week-relative+1": "Neste uke", - "field-month-relative+0": "Denne måneden", - "field-month": "måned", - "field-month-relative+1": "Neste måned", - "quarters-format-abbr": [ - "K1", - "K2", - "K3", - "K4" + "dateFormatItem-MEd": "E d.M", + "field-fri-relative+0": "fredag denne uken", + "field-fri-relative+1": "fredag neste uke", + "field-day": "Dag", + "days-format-wide": [ + "søndag", + "mandag", + "tirsdag", + "onsdag", + "torsdag", + "fredag", + "lørdag" ], + "field-zone": "Tidssone", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "I fjor", + "field-month-relative+-1": "Sist måned", + "dateFormatItem-hm": "h.mm a", + "dayPeriods-format-abbr-pm": "p.m.", "days-format-abbr": [ "søn.", "man.", @@ -101,63 +148,43 @@ define( "F", "L" ], - "field-second": "sekund", - "dateFormatItem-GyMMMEd": "E d. MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "dag", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E d.M", - "days-standAlone-short": [ - "sø.", - "ma.", - "ti.", - "on.", - "to.", - "fr.", - "lø." - ], - "days-standAlone-abbr": [ - "sø.", - "ma.", - "ti.", - "on.", - "to.", - "fr.", - "lø." - ], - "dayPeriods-format-abbr-pm": "p.m.", - "dateFormat-short": "d.M y G", - "dateFormatItem-yyyyM": "M y G", - "dateFormat-full": "EEEE d. MMMM y G", - "dateFormatItem-Md": "d.M.", - "dayPeriods-format-abbr-am": "a.m.", - "days-format-short": [ - "sø.", - "ma.", - "ti.", - "on.", - "to.", - "fr.", - "lø." - ], - "dateFormatItem-yyyyMMM": "MMM y G", - "dateFormatItem-d": "d.", - "field-month-relative+-1": "Sist måned", - "quarters-format-wide": [ - "1. kvartal", - "2. kvartal", - "3. kvartal", - "4. kvartal" + "dateFormatItem-yyyyMd": "d.M.y G", + "field-month": "Måned", + "days-standAlone-narrow": [ + "S", + "M", + "T", + "O", + "T", + "F", + "L" ], - "days-format-wide": [ - "søndag", - "mandag", - "tirsdag", - "onsdag", - "torsdag", - "fredag", - "lørdag" - ] + "field-tue-relative+0": "tirsdag denne uken", + "field-tue-relative+1": "tirsdag neste uke", + "dayPeriods-format-wide-am": "a.m.", + "field-mon-relative+0": "mandag denne uken", + "field-mon-relative+1": "mandag neste uke", + "dateFormat-short": "d.M. y G", + "field-second": "Sekund", + "field-sat-relative+-1": "lørdag sist uke", + "field-sun-relative+-1": "søndag sist uke", + "field-month-relative+0": "Denne måneden", + "field-month-relative+1": "Neste måned", + "dateFormatItem-Ed": "E d.", + "field-week": "Uke", + "dateFormat-medium": "d. MMM y G", + "field-year-relative+0": "Dette året", + "field-week-relative+-1": "Sist uke", + "dateFormatItem-yyyyM": "M.y G", + "field-year-relative+1": "Neste år", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-Hms": "HH.mm.ss", + "dateFormatItem-hms": "h.mm.ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "mandag sist uke", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "Denne uken", + "field-week-relative+1": "Neste uke" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/nb/japanese.js b/cldr/nls/nb/japanese.js index 3343d59e70..749f5ac05b 100644 --- a/cldr/nls/nb/japanese.js +++ b/cldr/nls/nb/japanese.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "dateFormat-medium": "d. MMM y G", - "field-second": "sekund", - "field-year-relative+-1": "I fjor", - "field-week": "uke", - "field-month-relative+-1": "Sist måned", + "field-sat-relative+0": "lørdag denne uken", + "field-sat-relative+1": "lørdag neste uke", + "field-dayperiod": "AM/PM", + "field-sun-relative+-1": "søndag sist uke", + "field-mon-relative+-1": "mandag sist uke", + "field-minute": "Minutt", "field-day-relative+-1": "i går", + "field-weekday": "Ukedag", "field-day-relative+-2": "i forgårs", - "field-year": "år", - "field-week-relative+0": "Denne uken", - "field-week-relative+1": "Neste uke", - "field-minute": "minutt", - "field-week-relative+-1": "Sist uke", + "field-era": "Tidsalder", + "field-hour": "Time", + "field-sun-relative+0": "søndag denne uken", + "field-sun-relative+1": "søndag neste uke", + "field-wed-relative+-1": "onsdag sist uke", "field-day-relative+0": "i dag", - "field-hour": "time", "field-day-relative+1": "i morgen", - "dateFormat-long": "d. MMMM y G", "field-day-relative+2": "i overmorgen", - "field-day": "dag", + "dateFormat-long": "d. MMMM y G", + "field-tue-relative+0": "tirsdag denne uken", + "field-zone": "Tidssone", + "field-tue-relative+1": "tirsdag neste uke", + "field-week-relative+-1": "Sist uke", + "dateFormat-medium": "d. MMM y G", + "field-year-relative+0": "Dette året", + "field-year-relative+1": "Neste år", + "field-sat-relative+-1": "lørdag sist uke", + "field-year-relative+-1": "I fjor", + "field-year": "År", + "field-fri-relative+0": "fredag denne uken", + "field-fri-relative+1": "fredag neste uke", + "field-week": "Uke", + "field-week-relative+0": "Denne uken", + "field-week-relative+1": "Neste uke", "field-month-relative+0": "Denne måneden", + "field-month": "Måned", "field-month-relative+1": "Neste måned", - "field-dayperiod": "AM/PM", - "field-month": "måned", + "field-fri-relative+-1": "fredag sist uke", + "field-second": "Sekund", + "field-tue-relative+-1": "tirsdag sist uke", + "field-day": "Dag", + "field-mon-relative+0": "mandag denne uken", + "field-mon-relative+1": "mandag neste uke", + "field-thu-relative+0": "torsdag denne uken", + "field-second-relative+0": "nå", "dateFormat-short": "d.M y G", - "field-era": "tidsalder", - "field-year-relative+0": "Dette året", - "field-year-relative+1": "Neste år", + "field-thu-relative+1": "torsdag neste uke", "dateFormat-full": "EEEE d. MMMM y G", - "field-weekday": "ukedag", - "field-zone": "sone" + "field-wed-relative+0": "onsdag denne uken", + "field-wed-relative+1": "onsdag neste uke", + "field-month-relative+-1": "Sist måned", + "field-thu-relative+-1": "torsdag sist uke" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/nb/number.js b/cldr/nls/nb/number.js index 1dab5d54a2..7999ce7fc7 100644 --- a/cldr/nls/nb/number.js +++ b/cldr/nls/nb/number.js @@ -8,8 +8,9 @@ define( "percentFormat": "#,##0 %", "list": ";", "infinity": "∞", - "minusSign": "-", + "minusSign": "−", "decimal": ",", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", diff --git a/cldr/nls/nb/roc.js b/cldr/nls/nb/roc.js index 340ad01585..7dbaa7a8af 100644 --- a/cldr/nls/nb/roc.js +++ b/cldr/nls/nb/roc.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "field-second": "sekund", - "field-year-relative+-1": "I fjor", - "field-week": "uke", - "field-month-relative+-1": "Sist måned", + "field-sat-relative+0": "lørdag denne uken", + "field-sat-relative+1": "lørdag neste uke", + "field-dayperiod": "AM/PM", + "field-sun-relative+-1": "søndag sist uke", + "field-mon-relative+-1": "mandag sist uke", + "field-minute": "Minutt", "field-day-relative+-1": "i går", + "field-weekday": "Ukedag", "field-day-relative+-2": "i forgårs", - "field-year": "år", - "field-week-relative+0": "Denne uken", - "field-week-relative+1": "Neste uke", - "field-minute": "minutt", - "field-week-relative+-1": "Sist uke", + "field-era": "Tidsalder", + "field-hour": "Time", + "field-sun-relative+0": "søndag denne uken", + "field-sun-relative+1": "søndag neste uke", + "field-wed-relative+-1": "onsdag sist uke", "field-day-relative+0": "i dag", - "field-hour": "time", "field-day-relative+1": "i morgen", - "field-day-relative+2": "i overmorgen", - "field-day": "dag", - "field-month-relative+0": "Denne måneden", - "field-month-relative+1": "Neste måned", - "field-dayperiod": "AM/PM", - "field-month": "måned", - "field-era": "tidsalder", - "field-year-relative+0": "Dette året", - "field-year-relative+1": "Neste år", "eraAbbr": [ "Before R.O.C.", "Minguo" ], - "field-weekday": "ukedag", - "field-zone": "sone" + "field-day-relative+2": "i overmorgen", + "field-tue-relative+0": "tirsdag denne uken", + "field-zone": "Tidssone", + "field-tue-relative+1": "tirsdag neste uke", + "field-week-relative+-1": "Sist uke", + "field-year-relative+0": "Dette året", + "field-year-relative+1": "Neste år", + "field-sat-relative+-1": "lørdag sist uke", + "field-year-relative+-1": "I fjor", + "field-year": "År", + "field-fri-relative+0": "fredag denne uken", + "field-fri-relative+1": "fredag neste uke", + "field-week": "Uke", + "field-week-relative+0": "Denne uken", + "field-week-relative+1": "Neste uke", + "field-month-relative+0": "Denne måneden", + "field-month": "Måned", + "field-month-relative+1": "Neste måned", + "field-fri-relative+-1": "fredag sist uke", + "field-second": "Sekund", + "field-tue-relative+-1": "tirsdag sist uke", + "field-day": "Dag", + "field-mon-relative+0": "mandag denne uken", + "field-mon-relative+1": "mandag neste uke", + "field-thu-relative+0": "torsdag denne uken", + "field-second-relative+0": "nå", + "field-thu-relative+1": "torsdag neste uke", + "field-wed-relative+0": "onsdag denne uken", + "field-wed-relative+1": "onsdag neste uke", + "field-month-relative+-1": "Sist måned", + "field-thu-relative+-1": "torsdag sist uke" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/nl/buddhist.js b/cldr/nls/nl/buddhist.js index 200d540c50..dc52e2f30b 100644 --- a/cldr/nls/nl/buddhist.js +++ b/cldr/nls/nl/buddhist.js @@ -1,23 +1,16 @@ define( //begin v1.x content { - "field-dayperiod": "AM/PM", - "dateFormatItem-yyyyMMMEd": "E d MMM y G", - "field-minute": "Minuut", - "dateFormatItem-MMMEd": "E d MMM", - "field-day-relative+-1": "Gisteren", - "field-weekday": "Dag van de week", - "field-day-relative+-2": "Eergisteren", - "days-standAlone-wide": [ - "zondag", - "maandag", - "dinsdag", - "woensdag", - "donderdag", - "vrijdag", - "zaterdag" + "days-standAlone-short": [ + "zo", + "ma", + "di", + "wo", + "do", + "vr", + "za" ], - "months-standAlone-narrow": [ + "months-format-narrow": [ "J", "F", "M", @@ -31,63 +24,46 @@ define( "N", "D" ], - "field-era": "Tijdperk", - "dateFormatItem-Gy": "y G", - "field-hour": "Uur", - "quarters-standAlone-abbr": [ - "K1", - "K2", - "K3", - "K4" - ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ - "jan", - "feb", - "mrt", - "apr", - "mei", - "jun", - "jul", - "aug", - "sep", - "okt", - "nov", - "dec" - ], - "dateFormatItem-Ed": "E d", - "field-day-relative+0": "Vandaag", - "field-day-relative+1": "Morgen", - "days-standAlone-narrow": [ - "Z", - "M", - "D", - "W", - "D", - "V", - "Z" - ], - "eraAbbr": [ - "BE" + "field-second-relative+0": "nu", + "field-weekday": "Dag van de week", + "field-wed-relative+0": "deze woensdag", + "field-wed-relative+1": "volgende week woensdag", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "afgelopen dinsdag", + "days-format-short": [ + "zo", + "ma", + "di", + "wo", + "do", + "vr", + "za" ], - "field-day-relative+2": "Overmorgen", - "dateFormatItem-GyMMMd": "d MMM y G", "dateFormat-long": "d MMMM y G", - "field-zone": "Zone", - "field-week-relative+-1": "Vorige week", - "dateFormat-medium": "d MMM y G", - "field-year-relative+0": "Dit jaar", - "field-year-relative+1": "Volgend jaar", - "quarters-standAlone-wide": [ - "1e kwartaal", - "2e kwartaal", - "3e kwartaal", - "4e kwartaal" + "field-fri-relative+-1": "afgelopen vrijdag", + "field-wed-relative+-1": "afgelopen woensdag", + "months-format-wide": [ + "januari", + "februari", + "maart", + "april", + "mei", + "juni", + "juli", + "augustus", + "september", + "oktober", + "november", + "december" ], - "field-year-relative+-1": "Vorig jaar", - "field-year": "Jaar", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E d-M-y GGGGG", + "field-thu-relative+-1": "afgelopen donderdag", + "dateFormatItem-Md": "d-M", + "dayPeriods-format-wide-noon": "12 uur 's middags", + "field-era": "Tijdperk", "months-standAlone-wide": [ "januari", "februari", @@ -102,13 +78,15 @@ define( "november", "december" ], - "field-week": "week", - "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMd": "d-M-y GGGGG", - "dateFormatItem-yyyyMEd": "E d-M-y GGGGG", - "field-week-relative+0": "Deze week", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+1": "Volgende week", + "quarters-format-wide": [ + "1e kwartaal", + "2e kwartaal", + "3e kwartaal", + "4e kwartaal" + ], + "field-year": "Jaar", + "dateFormatItem-yyyyMMMM": "MMMM y G", + "field-hour": "Uur", "months-format-abbr": [ "jan.", "feb.", @@ -123,16 +101,70 @@ define( "nov.", "dec." ], - "field-month-relative+0": "Deze maand", - "field-month": "Maand", - "field-month-relative+1": "Volgende maand", + "field-sat-relative+0": "deze zaterdag", + "field-sat-relative+1": "volgende week zaterdag", + "field-day-relative+0": "vandaag", + "field-thu-relative+0": "deze donderdag", + "field-day-relative+1": "morgen", + "field-thu-relative+1": "volgende week donderdag", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "overmorgen", + "months-standAlone-abbr": [ + "jan", + "feb", + "mrt", + "apr", + "mei", + "jun", + "jul", + "aug", + "sep", + "okt", + "nov", + "dec" + ], "quarters-format-abbr": [ "K1", "K2", "K3", "K4" ], - "days-format-abbr": [ + "quarters-standAlone-wide": [ + "1e kwartaal", + "2e kwartaal", + "3e kwartaal", + "4e kwartaal" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "dateFormatItem-M": "L", + "days-standAlone-wide": [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag" + ], + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "dateFormatItem-MMMMd": "d MMMM", + "dayPeriods-format-abbr-noon": "12 uur 's middags", + "field-sun-relative+0": "deze zondag", + "field-sun-relative+1": "volgende week zondag", + "quarters-standAlone-abbr": [ + "K1", + "K2", + "K3", + "K4" + ], + "eraAbbr": [ + "BE" + ], + "field-minute": "Minuut", + "field-dayperiod": "AM/PM", + "days-standAlone-abbr": [ "zo", "ma", "di", @@ -141,22 +173,27 @@ define( "vr", "za" ], - "days-format-narrow": [ - "Z", - "M", - "D", - "W", - "D", - "V", - "Z" - ], - "field-second": "Seconde", - "dateFormatItem-GyMMMEd": "E d MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "Dag", - "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateFormatItem-d": "d", + "field-day-relative+-1": "gisteren", + "dayPeriods-format-narrow-am": "AM", + "field-day-relative+-2": "eergisteren", + "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E d-M", - "months-format-narrow": [ + "field-fri-relative+0": "deze vrijdag", + "field-fri-relative+1": "volgende week vrijdag", + "field-day": "Dag", + "days-format-wide": [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag" + ], + "field-zone": "Zone", + "dateFormatItem-y": "y G", + "months-standAlone-narrow": [ "J", "F", "M", @@ -170,7 +207,9 @@ define( "N", "D" ], - "days-standAlone-short": [ + "field-year-relative+-1": "vorig jaar", + "field-month-relative+-1": "vorige maand", + "days-format-abbr": [ "zo", "ma", "di", @@ -179,59 +218,51 @@ define( "vr", "za" ], - "days-standAlone-abbr": [ - "zo", - "ma", - "di", - "wo", - "do", - "vr", - "za" + "days-format-narrow": [ + "Z", + "M", + "D", + "W", + "D", + "V", + "Z" ], + "dateFormatItem-yyyyMd": "d-M-y GGGGG", + "field-month": "Maand", + "dateFormatItem-MMM": "LLL", + "days-standAlone-narrow": [ + "Z", + "M", + "D", + "W", + "D", + "V", + "Z" + ], + "field-tue-relative+0": "deze dinsdag", + "field-tue-relative+1": "volgende week dinsdag", + "field-mon-relative+0": "deze maandag", + "field-mon-relative+1": "volgende week maandag", "dateFormat-short": "dd-MM-yy GGGGG", + "field-second": "Seconde", + "field-sat-relative+-1": "afgelopen zaterdag", + "field-sun-relative+-1": "afgelopen zondag", + "field-month-relative+0": "deze maand", + "field-month-relative+1": "volgende maand", + "dateFormatItem-Ed": "E d", + "field-week": "Week", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "dit jaar", + "field-week-relative+-1": "vorige week", "dateFormatItem-yyyyM": "M-y GGGGG", - "dateFormat-full": "EEEE d MMMM y G", - "dateFormatItem-Md": "d-M", - "months-format-wide": [ - "januari", - "februari", - "maart", - "april", - "mei", - "juni", - "juli", - "augustus", - "september", - "oktober", - "november", - "december" - ], - "days-format-short": [ - "zo", - "ma", - "di", - "wo", - "do", - "vr", - "za" - ], - "dateFormatItem-yyyyMMM": "MMM y G", - "field-month-relative+-1": "Vorige maand", - "quarters-format-wide": [ - "1e kwartaal", - "2e kwartaal", - "3e kwartaal", - "4e kwartaal" - ], - "days-format-wide": [ - "zondag", - "maandag", - "dinsdag", - "woensdag", - "donderdag", - "vrijdag", - "zaterdag" - ] + "field-year-relative+1": "volgend jaar", + "dayPeriods-format-narrow-pm": "PM", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "afgelopen maandag", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "deze week", + "field-week-relative+1": "volgende week" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/nl/chinese.js b/cldr/nls/nl/chinese.js index 56fdb9d84a..9ee8c7ad62 100644 --- a/cldr/nls/nl/chinese.js +++ b/cldr/nls/nl/chinese.js @@ -1,66 +1,116 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E d MMM U", - "field-dayperiod": "AM/PM", - "field-minute": "Minuut", - "dateFormatItem-MMMEd": "E d MMM", - "field-day-relative+-1": "Gisteren", - "dateFormatItem-hms": "h:mm:ss a", - "field-day-relative+-2": "Eergisteren", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-second-relative+0": "nu", "field-weekday": "Dag van de week", - "dateFormatItem-MMM": "LLL", - "dateFormatItem-Gy": "U", + "field-wed-relative+0": "deze woensdag", + "field-wed-relative+1": "volgende week woensdag", + "dateFormatItem-GyMMMEd": "E d MMM U", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "afgelopen dinsdag", + "dateFormat-long": "d MMMM U", + "field-fri-relative+-1": "afgelopen vrijdag", + "field-wed-relative+-1": "afgelopen woensdag", + "dateFormatItem-yyyyQQQ": "QQQ U", + "dateFormat-full": "EEEE d MMMM U", + "dateFormatItem-yyyyMEd": "E d-M-y", + "field-thu-relative+-1": "afgelopen donderdag", + "dateFormatItem-Md": "d-M", "field-era": "Tijdperk", - "field-hour": "Uur", - "dateFormatItem-y": "U", - "dateFormatItem-yyyy": "U", - "dateFormatItem-Ed": "E d", - "field-day-relative+0": "Vandaag", - "field-day-relative+1": "Morgen", - "field-day-relative+2": "Overmorgen", + "field-year": "Jaar", "dateFormatItem-yyyyMMMM": "MMMM U", + "field-hour": "Uur", + "field-sat-relative+0": "deze zaterdag", + "field-sat-relative+1": "volgende week zaterdag", + "field-day-relative+0": "vandaag", + "field-thu-relative+0": "deze donderdag", + "field-day-relative+1": "morgen", "dateFormatItem-GyMMMd": "d MMM U", - "dateFormat-long": "d MMMM U", - "field-zone": "Zone", + "field-day-relative+2": "overmorgen", + "field-thu-relative+1": "volgende week donderdag", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "U", + "dateFormatItem-yyyyMMMEd": "E d MMM U", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM U", + "dateFormatItem-yyyyMMMd": "d MMM U", + "dateFormatItem-MMMMd": "d MMMM", + "field-sun-relative+0": "deze zondag", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "Vorige week", - "dateFormat-medium": "d MMM U", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "Dit jaar", - "field-year-relative+1": "Volgend jaar", - "field-year-relative+-1": "Vorig jaar", + "field-sun-relative+1": "volgende week zondag", + "field-minute": "Minuut", + "field-dayperiod": "AM/PM", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ U", - "field-year": "Jaar", - "field-week": "week", - "dateFormatItem-yyyyMd": "d-M-y", - "dateFormatItem-yyyyMMMd": "d MMM U", - "dateFormatItem-yyyyMEd": "E d-M-y", + "field-day-relative+-1": "gisteren", + "dateFormatItem-h": "h a", + "field-day-relative+-2": "eergisteren", "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "Deze week", - "field-week-relative+1": "Volgende week", - "field-month-relative+0": "Deze maand", - "dateFormatItem-H": "HH", - "field-month": "Maand", - "field-month-relative+1": "Volgende maand", - "dateFormatItem-MMMMd": "d MMMM", - "dateFormatItem-M": "L", - "field-second": "Seconde", - "dateFormatItem-GyMMMEd": "E d MMM U", - "dateFormatItem-GyMMM": "MMM U", - "field-day": "Dag", - "dateFormatItem-yyyyQQQ": "QQQ U", "dateFormatItem-MEd": "E d-M", + "field-fri-relative+0": "deze vrijdag", + "field-fri-relative+1": "volgende week vrijdag", + "field-day": "Dag", + "field-zone": "Zone", + "dateFormatItem-y": "U", + "months-standAlone-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-year-relative+-1": "vorig jaar", + "field-month-relative+-1": "vorige maand", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "d-M-y", + "field-month": "Maand", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "deze dinsdag", + "field-tue-relative+1": "volgende week dinsdag", + "field-mon-relative+0": "deze maandag", + "field-mon-relative+1": "volgende week maandag", "dateFormat-short": "dd-MM-yy", + "field-second": "Seconde", + "field-sat-relative+-1": "afgelopen zaterdag", + "field-sun-relative+-1": "afgelopen zondag", + "field-month-relative+0": "deze maand", + "field-month-relative+1": "volgende maand", + "dateFormatItem-Ed": "E d", + "field-week": "Week", + "dateFormat-medium": "d MMM U", + "field-year-relative+0": "dit jaar", + "field-week-relative+-1": "vorige week", "dateFormatItem-yyyyM": "M-y", - "dateFormat-full": "EEEE d MMMM U", - "dateFormatItem-Md": "d-M", - "dateFormatItem-yyyyMMM": "MMM U", - "dateFormatItem-d": "d", - "field-month-relative+-1": "Vorige maand", - "dateFormatItem-h": "h a" + "field-year-relative+1": "volgend jaar", + "dateFormatItem-yyyyQQQQ": "QQQQ U", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM U", + "field-mon-relative+-1": "afgelopen maandag", + "dateFormatItem-yyyy": "U", + "field-week-relative+0": "deze week", + "field-week-relative+1": "volgende week" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/nl/coptic.js b/cldr/nls/nl/coptic.js new file mode 100644 index 0000000000..b55606818e --- /dev/null +++ b/cldr/nls/nl/coptic.js @@ -0,0 +1,143 @@ +define( +//begin v1.x content +{ + "field-sat-relative+0": "deze zaterdag", + "field-sat-relative+1": "volgende week zaterdag", + "field-dayperiod": "AM/PM", + "field-sun-relative+-1": "afgelopen zondag", + "field-mon-relative+-1": "afgelopen maandag", + "field-minute": "Minuut", + "field-day-relative+-1": "gisteren", + "field-weekday": "Dag van de week", + "field-day-relative+-2": "eergisteren", + "months-standAlone-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-era": "Tijdperk", + "field-hour": "Uur", + "field-sun-relative+0": "deze zondag", + "field-sun-relative+1": "volgende week zondag", + "months-standAlone-abbr": [ + "Tut", + "Babah", + "Hatur", + "Kiyahk", + "Tubah", + "Amshir", + "Baramhat", + "Baramundah", + "Bashans", + "Ba'unah", + "Abib", + "Misra", + "Nasi" + ], + "field-wed-relative+-1": "afgelopen woensdag", + "field-day-relative+0": "vandaag", + "field-day-relative+1": "morgen", + "field-day-relative+2": "overmorgen", + "field-tue-relative+0": "deze dinsdag", + "field-zone": "Zone", + "field-tue-relative+1": "volgende week dinsdag", + "field-week-relative+-1": "vorige week", + "field-year-relative+0": "dit jaar", + "field-year-relative+1": "volgend jaar", + "field-sat-relative+-1": "afgelopen zaterdag", + "field-year-relative+-1": "vorig jaar", + "field-year": "Jaar", + "field-fri-relative+0": "deze vrijdag", + "field-fri-relative+1": "volgende week vrijdag", + "months-standAlone-wide": [ + "Tut", + "Babah", + "Hatur", + "Kiyahk", + "Tubah", + "Amshir", + "Baramhat", + "Baramundah", + "Bashans", + "Ba'unah", + "Abib", + "Misra", + "Nasi" + ], + "field-week": "Week", + "field-week-relative+0": "deze week", + "field-week-relative+1": "volgende week", + "months-format-abbr": [ + "Tut", + "Babah", + "Hatur", + "Kiyahk", + "Tubah", + "Amshir", + "Baramhat", + "Baramundah", + "Bashans", + "Ba'unah", + "Abib", + "Misra", + "Nasi" + ], + "field-month-relative+0": "deze maand", + "field-month": "Maand", + "field-month-relative+1": "volgende maand", + "field-fri-relative+-1": "afgelopen vrijdag", + "field-second": "Seconde", + "field-tue-relative+-1": "afgelopen dinsdag", + "field-day": "Dag", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "deze maandag", + "field-mon-relative+1": "volgende week maandag", + "field-thu-relative+0": "deze donderdag", + "field-second-relative+0": "nu", + "field-thu-relative+1": "volgende week donderdag", + "months-format-wide": [ + "Tut", + "Babah", + "Hatur", + "Kiyahk", + "Tubah", + "Amshir", + "Baramhat", + "Baramundah", + "Bashans", + "Ba'unah", + "Abib", + "Misra", + "Nasi" + ], + "field-wed-relative+0": "deze woensdag", + "field-wed-relative+1": "volgende week woensdag", + "field-month-relative+-1": "vorige maand", + "field-thu-relative+-1": "afgelopen donderdag" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/nl/currency.js b/cldr/nls/nl/currency.js index c42409153d..89ba2c6f2d 100644 --- a/cldr/nls/nl/currency.js +++ b/cldr/nls/nl/currency.js @@ -15,7 +15,8 @@ define( "EUR_symbol": "€", "CNY_symbol": "CN¥", "GBP_displayName": "Brits pond sterling", - "AUD_symbol": "AU $", + "GBP_symbol": "£", + "AUD_symbol": "AU$", "EUR_displayName": "Euro" } //end v1.x content diff --git a/cldr/nls/nl/dangi.js b/cldr/nls/nl/dangi.js new file mode 100644 index 0000000000..d96d7f12ba --- /dev/null +++ b/cldr/nls/nl/dangi.js @@ -0,0 +1,85 @@ +define( +//begin v1.x content +{ + "field-sat-relative+0": "deze zaterdag", + "field-sat-relative+1": "volgende week zaterdag", + "field-dayperiod": "AM/PM", + "field-sun-relative+-1": "afgelopen zondag", + "field-mon-relative+-1": "afgelopen maandag", + "field-minute": "Minuut", + "field-day-relative+-1": "gisteren", + "field-weekday": "Dag van de week", + "field-day-relative+-2": "eergisteren", + "months-standAlone-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-era": "Tijdperk", + "field-hour": "Uur", + "field-sun-relative+0": "deze zondag", + "field-sun-relative+1": "volgende week zondag", + "field-wed-relative+-1": "afgelopen woensdag", + "field-day-relative+0": "vandaag", + "field-day-relative+1": "morgen", + "field-day-relative+2": "overmorgen", + "dateFormat-long": "d MMMM U", + "field-tue-relative+0": "deze dinsdag", + "field-zone": "Zone", + "field-tue-relative+1": "volgende week dinsdag", + "field-week-relative+-1": "vorige week", + "dateFormat-medium": "d MMM U", + "field-year-relative+0": "dit jaar", + "field-year-relative+1": "volgend jaar", + "field-sat-relative+-1": "afgelopen zaterdag", + "field-year-relative+-1": "vorig jaar", + "field-year": "Jaar", + "field-fri-relative+0": "deze vrijdag", + "field-fri-relative+1": "volgende week vrijdag", + "field-week": "Week", + "field-week-relative+0": "deze week", + "field-week-relative+1": "volgende week", + "field-month-relative+0": "deze maand", + "field-month": "Maand", + "field-month-relative+1": "volgende maand", + "field-fri-relative+-1": "afgelopen vrijdag", + "field-second": "Seconde", + "field-tue-relative+-1": "afgelopen dinsdag", + "field-day": "Dag", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-mon-relative+0": "deze maandag", + "field-mon-relative+1": "volgende week maandag", + "field-thu-relative+0": "deze donderdag", + "field-second-relative+0": "nu", + "dateFormat-short": "dd-MM-yy", + "field-thu-relative+1": "volgende week donderdag", + "dateFormat-full": "EEEE d MMMM U", + "field-wed-relative+0": "deze woensdag", + "field-wed-relative+1": "volgende week woensdag", + "field-month-relative+-1": "vorige maand", + "field-thu-relative+-1": "afgelopen donderdag" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/nl/ethiopic.js b/cldr/nls/nl/ethiopic.js new file mode 100644 index 0000000000..97aa819e27 --- /dev/null +++ b/cldr/nls/nl/ethiopic.js @@ -0,0 +1,143 @@ +define( +//begin v1.x content +{ + "field-sat-relative+0": "deze zaterdag", + "field-sat-relative+1": "volgende week zaterdag", + "field-dayperiod": "AM/PM", + "field-sun-relative+-1": "afgelopen zondag", + "field-mon-relative+-1": "afgelopen maandag", + "field-minute": "Minuut", + "field-day-relative+-1": "gisteren", + "field-weekday": "Dag van de week", + "field-day-relative+-2": "eergisteren", + "months-standAlone-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-era": "Tijdperk", + "field-hour": "Uur", + "field-sun-relative+0": "deze zondag", + "field-sun-relative+1": "volgende week zondag", + "months-standAlone-abbr": [ + "Mäskäräm", + "Teqemt", + "Hedar", + "Tahsas", + "T'er", + "Yäkatit", + "Mägabit", + "Miyazya", + "Genbot", + "Säne", + "Hamle", + "Nähase", + "Pagumän" + ], + "field-wed-relative+-1": "afgelopen woensdag", + "field-day-relative+0": "vandaag", + "field-day-relative+1": "morgen", + "field-day-relative+2": "overmorgen", + "field-tue-relative+0": "deze dinsdag", + "field-zone": "Zone", + "field-tue-relative+1": "volgende week dinsdag", + "field-week-relative+-1": "vorige week", + "field-year-relative+0": "dit jaar", + "field-year-relative+1": "volgend jaar", + "field-sat-relative+-1": "afgelopen zaterdag", + "field-year-relative+-1": "vorig jaar", + "field-year": "Jaar", + "field-fri-relative+0": "deze vrijdag", + "field-fri-relative+1": "volgende week vrijdag", + "months-standAlone-wide": [ + "Mäskäräm", + "Teqemt", + "Hedar", + "Tahsas", + "T'er", + "Yäkatit", + "Mägabit", + "Miyazya", + "Genbot", + "Säne", + "Hamle", + "Nähase", + "Pagumän" + ], + "field-week": "Week", + "field-week-relative+0": "deze week", + "field-week-relative+1": "volgende week", + "months-format-abbr": [ + "Mäskäräm", + "Teqemt", + "Hedar", + "Tahsas", + "T'er", + "Yäkatit", + "Mägabit", + "Miyazya", + "Genbot", + "Säne", + "Hamle", + "Nähase", + "Pagumän" + ], + "field-month-relative+0": "deze maand", + "field-month": "Maand", + "field-month-relative+1": "volgende maand", + "field-fri-relative+-1": "afgelopen vrijdag", + "field-second": "Seconde", + "field-tue-relative+-1": "afgelopen dinsdag", + "field-day": "Dag", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "deze maandag", + "field-mon-relative+1": "volgende week maandag", + "field-thu-relative+0": "deze donderdag", + "field-second-relative+0": "nu", + "field-thu-relative+1": "volgende week donderdag", + "months-format-wide": [ + "Mäskäräm", + "Teqemt", + "Hedar", + "Tahsas", + "T'er", + "Yäkatit", + "Mägabit", + "Miyazya", + "Genbot", + "Säne", + "Hamle", + "Nähase", + "Pagumän" + ], + "field-wed-relative+0": "deze woensdag", + "field-wed-relative+1": "volgende week woensdag", + "field-month-relative+-1": "vorige maand", + "field-thu-relative+-1": "afgelopen donderdag" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/nl/generic.js b/cldr/nls/nl/generic.js index 10d93014db..de01367e49 100644 --- a/cldr/nls/nl/generic.js +++ b/cldr/nls/nl/generic.js @@ -1,70 +1,92 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E d MMM y G", - "field-dayperiod": "AM/PM", - "field-minute": "Minuut", - "dateFormatItem-MMMEd": "E d MMM", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "Gisteren", - "dateFormatItem-hms": "h:mm:ss a", - "field-day-relative+-2": "Eergisteren", + "field-second-relative+0": "nu", "field-weekday": "Dag van de week", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "y G", + "field-wed-relative+0": "deze woensdag", + "field-wed-relative+1": "volgende week woensdag", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "afgelopen dinsdag", + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "afgelopen vrijdag", + "field-wed-relative+-1": "afgelopen woensdag", + "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E d-M-y GGGGG", + "field-thu-relative+-1": "afgelopen donderdag", + "dateFormatItem-Md": "d-M", "field-era": "Tijdperk", + "field-year": "Jaar", + "dateFormatItem-yyyyMMMM": "MMMM y G", "field-hour": "Uur", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E d", - "field-day-relative+0": "Vandaag", - "field-day-relative+1": "Morgen", - "field-day-relative+2": "Overmorgen", + "field-sat-relative+0": "deze zaterdag", + "field-sat-relative+1": "volgende week zaterdag", + "field-day-relative+0": "vandaag", + "field-day-relative+1": "morgen", + "field-thu-relative+0": "deze donderdag", "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormatItem-yyyyMMMM": "MMMM y G", - "dateFormat-long": "d MMMM y G", - "field-zone": "Zone", + "field-day-relative+2": "overmorgen", + "field-thu-relative+1": "volgende week donderdag", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "dateFormatItem-MMMMd": "d MMMM", + "field-sun-relative+0": "deze zondag", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "Vorige week", - "dateFormat-medium": "d MMM y G", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "Dit jaar", - "field-year-relative+1": "Volgend jaar", - "field-year-relative+-1": "Vorig jaar", + "field-sun-relative+1": "volgende week zondag", + "field-minute": "Minuut", + "field-dayperiod": "AM/PM", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "field-year": "Jaar", + "field-day-relative+-1": "gisteren", + "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", - "field-week": "week", - "dateFormatItem-yyyyMd": "d-M-y GGGGG", - "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMEd": "E d-M-y GGGGG", + "field-day-relative+-2": "eergisteren", "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "Deze week", - "field-week-relative+1": "Volgende week", - "field-month-relative+0": "Deze maand", - "dateFormatItem-H": "HH", - "field-month": "Maand", - "field-month-relative+1": "Volgende maand", - "dateFormatItem-MMMMd": "d MMMM", - "dateFormatItem-M": "L", - "field-second": "Seconde", - "dateFormatItem-GyMMMEd": "E d MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "Dag", "dateFormatItem-MEd": "E d-M", - "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "deze vrijdag", + "field-fri-relative+1": "volgende week vrijdag", + "field-day": "Dag", + "field-zone": "Zone", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "vorig jaar", + "field-month-relative+-1": "vorige maand", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "d-M-y GGGGG", + "field-month": "Maand", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "deze dinsdag", + "field-tue-relative+1": "volgende week dinsdag", + "field-mon-relative+0": "deze maandag", + "field-mon-relative+1": "volgende week maandag", "dateFormat-short": "dd-MM-yy GGGGG", + "field-second": "Seconde", + "field-sat-relative+-1": "afgelopen zaterdag", + "field-sun-relative+-1": "afgelopen zondag", + "field-month-relative+0": "deze maand", + "field-month-relative+1": "volgende maand", + "dateFormatItem-Ed": "E d", + "field-week": "Week", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "dit jaar", + "field-week-relative+-1": "vorige week", "dateFormatItem-yyyyM": "M-y GGGGG", - "dateFormat-full": "EEEE d MMMM y G", - "dateFormatItem-Md": "d-M", - "dateFormatItem-yyyyMMM": "MMM y G", - "dateFormatItem-d": "d", - "field-month-relative+-1": "Vorige maand", - "dateFormatItem-h": "h a" + "field-year-relative+1": "volgend jaar", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "afgelopen maandag", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "deze week", + "field-week-relative+1": "volgende week" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/nl/gregorian.js b/cldr/nls/nl/gregorian.js index c5c5f303c3..3992e55ea9 100644 --- a/cldr/nls/nl/gregorian.js +++ b/cldr/nls/nl/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "zo", "ma", @@ -24,6 +25,7 @@ define( "N", "D" ], + "field-second-relative+0": "nu", "quarters-standAlone-narrow": [ "1", "2", @@ -33,12 +35,17 @@ define( "field-weekday": "Dag van de week", "dateFormatItem-yQQQ": "QQQ y", "dateFormatItem-yMEd": "E d-M-y", + "field-wed-relative+0": "deze woensdag", "dateFormatItem-GyMMMEd": "E d MMM y G", "dateFormatItem-MMMEd": "E d MMM", + "field-wed-relative+1": "volgende week woensdag", "eraNarrow": [ - "v.Chr.", - "n.Chr." + "v.C.", + "vgj", + "n.C.", + "gj" ], + "field-tue-relative+-1": "afgelopen dinsdag", "days-format-short": [ "zo", "ma", @@ -49,6 +56,8 @@ define( "za" ], "dateFormat-long": "d MMMM y", + "field-fri-relative+-1": "afgelopen vrijdag", + "field-wed-relative+-1": "afgelopen woensdag", "months-format-wide": [ "januari", "februari", @@ -66,11 +75,12 @@ define( "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "EEEE d MMMM y", + "field-thu-relative+-1": "afgelopen donderdag", "dateFormatItem-Md": "d-M", "dayPeriods-format-wide-noon": "12 uur 's middags", "dateFormatItem-yMd": "d-M-y", - "field-era": "Tijdperk", "dateFormatItem-yM": "M-y", + "field-era": "Tijdperk", "months-standAlone-wide": [ "januari", "februari", @@ -92,10 +102,10 @@ define( "3e kwartaal", "4e kwartaal" ], - "dateFormatItem-yQQQQ": "QQQQ y", "timeFormat-long": "HH:mm:ss z", - "field-year": "Jaar", "dateFormatItem-yMMM": "MMM y", + "dateFormatItem-yQQQQ": "QQQQ y", + "field-year": "Jaar", "field-hour": "Uur", "months-format-abbr": [ "jan.", @@ -111,11 +121,15 @@ define( "nov.", "dec." ], + "field-sat-relative+0": "deze zaterdag", + "field-sat-relative+1": "volgende week zaterdag", "timeFormat-full": "HH:mm:ss zzzz", - "field-day-relative+0": "Vandaag", - "field-day-relative+1": "Morgen", + "field-day-relative+0": "vandaag", + "field-day-relative+1": "morgen", + "field-thu-relative+0": "deze donderdag", "dateFormatItem-GyMMMd": "d MMM y G", - "field-day-relative+2": "Overmorgen", + "field-day-relative+2": "overmorgen", + "field-thu-relative+1": "volgende week donderdag", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ "jan", @@ -157,6 +171,7 @@ define( "dateFormatItem-MMMMd": "d MMMM", "dayPeriods-format-abbr-noon": "12 uur 's middags", "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "deze zondag", "dateFormatItem-Hm": "HH:mm", "quarters-standAlone-abbr": [ "K1", @@ -164,9 +179,12 @@ define( "K3", "K4" ], + "field-sun-relative+1": "volgende week zondag", "eraAbbr": [ "v.Chr.", - "n.Chr." + "v.g.j.", + "n.Chr.", + "g.j." ], "field-minute": "Minuut", "field-dayperiod": "AM/PM", @@ -187,14 +205,17 @@ define( "3", "4" ], - "field-day-relative+-1": "Gisteren", + "field-day-relative+-1": "gisteren", "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", - "field-day-relative+-2": "Eergisteren", + "dayPeriods-format-narrow-am": "AM", + "field-day-relative+-2": "eergisteren", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E d-M", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "deze vrijdag", "dateFormatItem-yMMMM": "MMMM y", + "field-fri-relative+1": "volgende week vrijdag", "field-day": "Dag", "days-format-wide": [ "zondag", @@ -221,8 +242,8 @@ define( "N", "D" ], - "field-year-relative+-1": "Vorig jaar", - "field-month-relative+-1": "Vorige maand", + "field-year-relative+-1": "vorig jaar", + "field-month-relative+-1": "vorige maand", "dateFormatItem-hm": "h:mm a", "days-format-abbr": [ "zo", @@ -233,11 +254,13 @@ define( "vr", "za" ], - "dateFormatItem-yMMMd": "d MMM y", "eraNames": [ "Voor Christus", - "na Christus" + "vóór gewone jaartelling", + "na Christus", + "gewone jaartelling" ], + "dateFormatItem-yMMMd": "d MMM y", "days-format-narrow": [ "Z", "M", @@ -258,25 +281,37 @@ define( ], "dateFormatItem-MMM": "LLL", "field-month": "Maand", + "field-tue-relative+0": "deze dinsdag", + "field-tue-relative+1": "volgende week dinsdag", "dayPeriods-format-wide-am": "AM", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "deze maandag", + "field-mon-relative+1": "volgende week maandag", "dateFormat-short": "dd-MM-yy", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", "dayPeriods-format-narrow-noon": "n", "field-second": "Seconde", + "field-sat-relative+-1": "afgelopen zaterdag", "dateFormatItem-yMMMEd": "E d MMM y", - "field-month-relative+0": "Deze maand", - "field-month-relative+1": "Volgende maand", + "field-sun-relative+-1": "afgelopen zondag", + "field-month-relative+0": "deze maand", + "field-month-relative+1": "volgende maand", "dateFormatItem-Ed": "E d", - "field-week": "week", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "field-week": "Week", "dateFormat-medium": "d MMM y", - "field-year-relative+0": "Dit jaar", - "field-week-relative+-1": "Vorige week", - "field-year-relative+1": "Volgend jaar", + "field-year-relative+0": "dit jaar", + "field-week-relative+-1": "vorige week", + "field-year-relative+1": "volgend jaar", + "dayPeriods-format-narrow-pm": "PM", "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "MMM y G", - "field-week-relative+0": "Deze week", - "field-week-relative+1": "Volgende week" + "field-mon-relative+-1": "afgelopen maandag", + "field-week-relative+0": "deze week", + "field-week-relative+1": "volgende week" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/nl/hebrew.js b/cldr/nls/nl/hebrew.js index 671787a7f9..56c3efbeae 100644 --- a/cldr/nls/nl/hebrew.js +++ b/cldr/nls/nl/hebrew.js @@ -1,34 +1,35 @@ define( //begin v1.x content { - "field-dayperiod": "AM/PM", - "dateFormatItem-yyyyMMMEd": "E d MMM y G", - "field-minute": "Minuut", - "dateFormatItem-MMMEd": "E d MMM", - "field-day-relative+-1": "Gisteren", - "field-weekday": "Dag van de week", - "field-day-relative+-2": "Eergisteren", - "days-standAlone-wide": [ - "zondag", - "maandag", - "dinsdag", - "woensdag", - "donderdag", - "vrijdag", - "zaterdag" + "days-standAlone-short": [ + "zo", + "ma", + "di", + "wo", + "do", + "vr", + "za" ], - "field-era": "Tijdperk", - "dateFormatItem-Gy": "y G", - "field-hour": "Uur", - "quarters-standAlone-abbr": [ - "K1", - "K2", - "K3", - "K4" + "field-second-relative+0": "nu", + "field-weekday": "Dag van de week", + "field-wed-relative+0": "deze woensdag", + "field-wed-relative+1": "volgende week woensdag", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "afgelopen dinsdag", + "days-format-short": [ + "zo", + "ma", + "di", + "wo", + "do", + "vr", + "za" ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "afgelopen vrijdag", + "field-wed-relative+-1": "afgelopen woensdag", + "months-format-wide": [ "Tisjrie", "Chesjwan", "Kislev", @@ -43,36 +44,38 @@ define( "Av", "Elloel" ], - "dateFormatItem-Ed": "E d", - "field-day-relative+0": "Vandaag", - "field-day-relative+1": "Morgen", - "days-standAlone-narrow": [ - "Z", - "M", - "D", - "W", - "D", - "V", - "Z" + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E d-M-y GGGGG", + "field-thu-relative+-1": "afgelopen donderdag", + "dateFormatItem-Md": "d-M", + "dayPeriods-format-wide-noon": "12 uur 's middags", + "field-era": "Tijdperk", + "months-standAlone-wide": [ + "Tisjrie", + "Chesjwan", + "Kislev", + "Tevet", + "Sjevat", + "Adar A", + "Adar", + "Nisan", + "Ijar", + "Sivan", + "Tammoez", + "Av", + "Elloel" ], - "field-day-relative+2": "Overmorgen", - "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormat-long": "d MMMM y G", - "field-zone": "Zone", - "field-week-relative+-1": "Vorige week", - "dateFormat-medium": "d MMM y G", - "field-year-relative+0": "Dit jaar", - "field-year-relative+1": "Volgend jaar", - "quarters-standAlone-wide": [ + "quarters-format-wide": [ "1e kwartaal", "2e kwartaal", "3e kwartaal", "4e kwartaal" ], - "field-year-relative+-1": "Vorig jaar", "field-year": "Jaar", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "months-standAlone-wide": [ + "field-hour": "Uur", + "months-format-abbr-leap": "Adar B", + "months-format-abbr": [ "Tisjrie", "Chesjwan", "Kislev", @@ -87,14 +90,15 @@ define( "Av", "Elloel" ], - "field-week": "week", - "dateFormatItem-yyyyMd": "d-M-y GGGGG", - "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMEd": "E d-M-y GGGGG", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "Deze week", - "field-week-relative+1": "Volgende week", - "months-format-abbr": [ + "field-sat-relative+0": "deze zaterdag", + "field-sat-relative+1": "volgende week zaterdag", + "field-day-relative+0": "vandaag", + "field-thu-relative+0": "deze donderdag", + "field-day-relative+1": "morgen", + "field-thu-relative+1": "volgende week donderdag", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "overmorgen", + "months-standAlone-abbr": [ "Tisjrie", "Chesjwan", "Kislev", @@ -109,48 +113,46 @@ define( "Av", "Elloel" ], - "field-month-relative+0": "Deze maand", - "field-month": "Maand", - "field-month-relative+1": "Volgende maand", "quarters-format-abbr": [ "K1", "K2", "K3", "K4" ], - "days-format-abbr": [ - "zo", - "ma", - "di", - "wo", - "do", - "vr", - "za" + "quarters-standAlone-wide": [ + "1e kwartaal", + "2e kwartaal", + "3e kwartaal", + "4e kwartaal" ], - "days-format-narrow": [ - "Z", - "M", - "D", - "W", - "D", - "V", - "Z" + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "days-standAlone-wide": [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag" ], - "field-second": "Seconde", - "dateFormatItem-GyMMMEd": "E d MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "Dag", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E d-M", - "days-standAlone-short": [ - "zo", - "ma", - "di", - "wo", - "do", - "vr", - "za" + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "dayPeriods-format-abbr-noon": "12 uur 's middags", + "months-standAlone-wide-leap": "Adar B", + "field-sun-relative+0": "deze zondag", + "field-sun-relative+1": "volgende week zondag", + "quarters-standAlone-abbr": [ + "K1", + "K2", + "K3", + "K4" ], + "eraAbbr": [ + "AM" + ], + "field-minute": "Minuut", + "field-dayperiod": "AM/PM", "days-standAlone-abbr": [ "zo", "ma", @@ -160,26 +162,29 @@ define( "vr", "za" ], - "dateFormat-short": "dd-MM-yy GGGGG", - "dateFormatItem-yyyyM": "M-y GGGGG", - "dateFormatItem-Md": "d-M", - "dateFormat-full": "EEEE d MMMM y G", - "months-format-wide": [ - "Tisjrie", - "Chesjwan", - "Kislev", - "Tevet", - "Sjevat", - "Adar A", - "Adar", - "Nisan", - "Ijar", - "Sivan", - "Tammoez", - "Av", - "Elloel" + "field-day-relative+-1": "gisteren", + "dayPeriods-format-narrow-am": "AM", + "field-day-relative+-2": "eergisteren", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E d-M", + "field-fri-relative+0": "deze vrijdag", + "field-fri-relative+1": "volgende week vrijdag", + "field-day": "Dag", + "days-format-wide": [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag" ], - "days-format-short": [ + "field-zone": "Zone", + "months-standAlone-abbr-leap": "Adar B", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "vorig jaar", + "field-month-relative+-1": "vorige maand", + "days-format-abbr": [ "zo", "ma", "di", @@ -188,24 +193,51 @@ define( "vr", "za" ], - "dateFormatItem-yyyyMMM": "MMM y G", - "months-format-wide-leap": "Adar B", - "field-month-relative+-1": "Vorige maand", - "quarters-format-wide": [ - "1e kwartaal", - "2e kwartaal", - "3e kwartaal", - "4e kwartaal" + "days-format-narrow": [ + "Z", + "M", + "D", + "W", + "D", + "V", + "Z" ], - "days-format-wide": [ - "zondag", - "maandag", - "dinsdag", - "woensdag", - "donderdag", - "vrijdag", - "zaterdag" - ] + "dateFormatItem-yyyyMd": "d-M-y GGGGG", + "field-month": "Maand", + "days-standAlone-narrow": [ + "Z", + "M", + "D", + "W", + "D", + "V", + "Z" + ], + "field-tue-relative+0": "deze dinsdag", + "field-tue-relative+1": "volgende week dinsdag", + "field-mon-relative+0": "deze maandag", + "field-mon-relative+1": "volgende week maandag", + "dateFormat-short": "dd-MM-yy GGGGG", + "field-second": "Seconde", + "field-sat-relative+-1": "afgelopen zaterdag", + "field-sun-relative+-1": "afgelopen zondag", + "field-month-relative+0": "deze maand", + "field-month-relative+1": "volgende maand", + "dateFormatItem-Ed": "E d", + "field-week": "Week", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "dit jaar", + "field-week-relative+-1": "vorige week", + "dateFormatItem-yyyyM": "M-y GGGGG", + "field-year-relative+1": "volgend jaar", + "dayPeriods-format-narrow-pm": "PM", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "months-format-wide-leap": "Adar B", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "afgelopen maandag", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "deze week", + "field-week-relative+1": "volgende week" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/nl/indian.js b/cldr/nls/nl/indian.js new file mode 100644 index 0000000000..7d9f8c404f --- /dev/null +++ b/cldr/nls/nl/indian.js @@ -0,0 +1,140 @@ +define( +//begin v1.x content +{ + "field-sat-relative+0": "deze zaterdag", + "field-sat-relative+1": "volgende week zaterdag", + "field-dayperiod": "AM/PM", + "field-sun-relative+-1": "afgelopen zondag", + "field-mon-relative+-1": "afgelopen maandag", + "field-minute": "Minuut", + "field-day-relative+-1": "gisteren", + "field-weekday": "Dag van de week", + "field-day-relative+-2": "eergisteren", + "months-standAlone-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-era": "Tijdperk", + "field-hour": "Uur", + "field-sun-relative+0": "deze zondag", + "field-sun-relative+1": "volgende week zondag", + "months-standAlone-abbr": [ + "Chaitra", + "Vaishakha", + "Jyeshtha", + "Aashaadha", + "Shraavana", + "Bhaadrapada", + "Ashvina", + "Kaartika", + "Agrahayana", + "Pausha", + "Maagha", + "Phaalguna" + ], + "field-wed-relative+-1": "afgelopen woensdag", + "field-day-relative+0": "vandaag", + "field-day-relative+1": "morgen", + "eraAbbr": [ + "SAKA" + ], + "field-day-relative+2": "overmorgen", + "field-tue-relative+0": "deze dinsdag", + "field-zone": "Zone", + "field-tue-relative+1": "volgende week dinsdag", + "field-week-relative+-1": "vorige week", + "field-year-relative+0": "dit jaar", + "field-year-relative+1": "volgend jaar", + "field-sat-relative+-1": "afgelopen zaterdag", + "field-year-relative+-1": "vorig jaar", + "field-year": "Jaar", + "field-fri-relative+0": "deze vrijdag", + "field-fri-relative+1": "volgende week vrijdag", + "months-standAlone-wide": [ + "Chaitra", + "Vaishakha", + "Jyeshtha", + "Aashaadha", + "Shraavana", + "Bhaadrapada", + "Ashvina", + "Kaartika", + "Agrahayana", + "Pausha", + "Maagha", + "Phaalguna" + ], + "field-week": "Week", + "field-week-relative+0": "deze week", + "field-week-relative+1": "volgende week", + "months-format-abbr": [ + "Chaitra", + "Vaishakha", + "Jyeshtha", + "Aashaadha", + "Shraavana", + "Bhaadrapada", + "Ashvina", + "Kaartika", + "Agrahayana", + "Pausha", + "Maagha", + "Phaalguna" + ], + "field-month-relative+0": "deze maand", + "field-month": "Maand", + "field-month-relative+1": "volgende maand", + "field-fri-relative+-1": "afgelopen vrijdag", + "field-second": "Seconde", + "field-tue-relative+-1": "afgelopen dinsdag", + "field-day": "Dag", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-mon-relative+0": "deze maandag", + "field-mon-relative+1": "volgende week maandag", + "field-thu-relative+0": "deze donderdag", + "field-second-relative+0": "nu", + "field-thu-relative+1": "volgende week donderdag", + "months-format-wide": [ + "Chaitra", + "Vaishakha", + "Jyeshtha", + "Aashaadha", + "Shraavana", + "Bhaadrapada", + "Ashvina", + "Kaartika", + "Agrahayana", + "Pausha", + "Maagha", + "Phaalguna" + ], + "field-wed-relative+0": "deze woensdag", + "field-wed-relative+1": "volgende week woensdag", + "field-month-relative+-1": "vorige maand", + "field-thu-relative+-1": "afgelopen donderdag" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/nl/islamic.js b/cldr/nls/nl/islamic.js index 35449c748b..b9333044a2 100644 --- a/cldr/nls/nl/islamic.js +++ b/cldr/nls/nl/islamic.js @@ -1,26 +1,16 @@ define( //begin v1.x content { - "field-dayperiod": "AM/PM", - "dateFormatItem-yyyyMMMEd": "E d MMM y G", - "field-minute": "Minuut", - "eraNames": [ - "Saʻna Hizjria" - ], - "dateFormatItem-MMMEd": "E d MMM", - "field-day-relative+-1": "Gisteren", - "field-weekday": "Dag van de week", - "field-day-relative+-2": "Eergisteren", - "days-standAlone-wide": [ - "zondag", - "maandag", - "dinsdag", - "woensdag", - "donderdag", - "vrijdag", - "zaterdag" + "days-standAlone-short": [ + "zo", + "ma", + "di", + "wo", + "do", + "vr", + "za" ], - "months-standAlone-narrow": [ + "months-format-narrow": [ "1", "2", "3", @@ -34,63 +24,49 @@ define( "11", "12" ], - "field-era": "Tijdperk", - "dateFormatItem-Gy": "y G", - "field-hour": "Uur", - "quarters-standAlone-abbr": [ - "K1", - "K2", - "K3", - "K4" - ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ - "Moeh.", - "Saf.", - "Rab. I", - "Rab. II", - "Joem. I", - "Joem. II", - "Raj.", - "Sja.", - "Ram.", - "Sjaw.", - "Doe al k.", - "Doe al h." - ], - "dateFormatItem-Ed": "E d", - "field-day-relative+0": "Vandaag", - "field-day-relative+1": "Morgen", - "days-standAlone-narrow": [ - "Z", - "M", - "D", - "W", - "D", - "V", - "Z" - ], - "eraAbbr": [ + "field-second-relative+0": "nu", + "field-weekday": "Dag van de week", + "field-wed-relative+0": "deze woensdag", + "field-wed-relative+1": "volgende week woensdag", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "eraNarrow": [ "Saʻna Hizjria" ], - "field-day-relative+2": "Overmorgen", - "dateFormatItem-GyMMMd": "d MMM y G", + "field-tue-relative+-1": "afgelopen dinsdag", + "days-format-short": [ + "zo", + "ma", + "di", + "wo", + "do", + "vr", + "za" + ], "dateFormat-long": "d MMMM y G", - "field-zone": "Zone", - "field-week-relative+-1": "Vorige week", - "dateFormat-medium": "d MMM y G", - "field-year-relative+0": "Dit jaar", - "field-year-relative+1": "Volgend jaar", - "quarters-standAlone-wide": [ - "1e kwartaal", - "2e kwartaal", - "3e kwartaal", - "4e kwartaal" + "field-fri-relative+-1": "afgelopen vrijdag", + "field-wed-relative+-1": "afgelopen woensdag", + "months-format-wide": [ + "Moeharram", + "Safar", + "Rabiʻa al awal", + "Rabiʻa al thani", + "Joemadʻal awal", + "Joemadʻal thani", + "Rajab", + "Sjaʻaban", + "Ramadan", + "Sjawal", + "Doe al kaʻaba", + "Doe al hizja" ], - "field-year-relative+-1": "Vorig jaar", - "field-year": "Jaar", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E d-M-y GGGGG", + "field-thu-relative+-1": "afgelopen donderdag", + "dateFormatItem-Md": "d-M", + "dayPeriods-format-wide-noon": "12 uur 's middags", + "field-era": "Tijdperk", "months-standAlone-wide": [ "Moeharram", "Safar", @@ -105,13 +81,15 @@ define( "Doe al kaʻaba", "Doe al hizja" ], - "field-week": "week", - "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMd": "d-M-y GGGGG", - "dateFormatItem-yyyyMEd": "E d-M-y GGGGG", - "field-week-relative+0": "Deze week", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+1": "Volgende week", + "quarters-format-wide": [ + "1e kwartaal", + "2e kwartaal", + "3e kwartaal", + "4e kwartaal" + ], + "field-year": "Jaar", + "dateFormatItem-yyyyMMMM": "MMMM y G", + "field-hour": "Uur", "months-format-abbr": [ "Moeh.", "Saf.", @@ -126,48 +104,69 @@ define( "Doe al k.", "Doe al h." ], - "field-month-relative+0": "Deze maand", - "field-month": "Maand", - "field-month-relative+1": "Volgende maand", + "field-sat-relative+0": "deze zaterdag", + "field-sat-relative+1": "volgende week zaterdag", + "field-day-relative+0": "vandaag", + "field-thu-relative+0": "deze donderdag", + "field-day-relative+1": "morgen", + "field-thu-relative+1": "volgende week donderdag", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "overmorgen", + "months-standAlone-abbr": [ + "Moeh.", + "Saf.", + "Rab. I", + "Rab. II", + "Joem. I", + "Joem. II", + "Raj.", + "Sja.", + "Ram.", + "Sjaw.", + "Doe al k.", + "Doe al h." + ], "quarters-format-abbr": [ "K1", "K2", "K3", "K4" ], - "days-format-abbr": [ - "zo", - "ma", - "di", - "wo", - "do", - "vr", - "za" + "quarters-standAlone-wide": [ + "1e kwartaal", + "2e kwartaal", + "3e kwartaal", + "4e kwartaal" ], - "days-format-narrow": [ - "Z", - "M", - "D", - "W", - "D", - "V", - "Z" + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "dateFormatItem-M": "L", + "days-standAlone-wide": [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag" ], - "field-second": "Seconde", - "dateFormatItem-GyMMMEd": "E d MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "Dag", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E d-M", - "days-standAlone-short": [ - "zo", - "ma", - "di", - "wo", - "do", - "vr", - "za" + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "dateFormatItem-MMMMd": "d MMMM", + "dayPeriods-format-abbr-noon": "12 uur 's middags", + "field-sun-relative+0": "deze zondag", + "field-sun-relative+1": "volgende week zondag", + "quarters-standAlone-abbr": [ + "K1", + "K2", + "K3", + "K4" + ], + "eraAbbr": [ + "Saʻna Hizjria" ], + "field-minute": "Minuut", + "field-dayperiod": "AM/PM", "days-standAlone-abbr": [ "zo", "ma", @@ -177,25 +176,43 @@ define( "vr", "za" ], - "dateFormat-short": "dd-MM-yy GGGGG", - "dateFormatItem-yyyyM": "M-y GGGGG", - "dateFormat-full": "EEEE d MMMM y G", - "dateFormatItem-Md": "d-M", - "months-format-wide": [ - "Moeharram", - "Safar", - "Rabiʻa al awal", - "Rabiʻa al thani", - "Joemadʻal awal", - "Joemadʻal thani", - "Rajab", - "Sjaʻaban", - "Ramadan", - "Sjawal", - "Doe al kaʻaba", - "Doe al hizja" + "dateFormatItem-d": "d", + "field-day-relative+-1": "gisteren", + "dayPeriods-format-narrow-am": "AM", + "field-day-relative+-2": "eergisteren", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E d-M", + "field-fri-relative+0": "deze vrijdag", + "field-fri-relative+1": "volgende week vrijdag", + "field-day": "Dag", + "days-format-wide": [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag" ], - "days-format-short": [ + "field-zone": "Zone", + "dateFormatItem-y": "y G", + "months-standAlone-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-year-relative+-1": "vorig jaar", + "field-month-relative+-1": "vorige maand", + "days-format-abbr": [ "zo", "ma", "di", @@ -204,26 +221,54 @@ define( "vr", "za" ], - "dateFormatItem-yyyyMMM": "MMM y G", - "field-month-relative+-1": "Vorige maand", - "quarters-format-wide": [ - "1e kwartaal", - "2e kwartaal", - "3e kwartaal", - "4e kwartaal" - ], - "eraNarrow": [ + "eraNames": [ "Saʻna Hizjria" ], - "days-format-wide": [ - "zondag", - "maandag", - "dinsdag", - "woensdag", - "donderdag", - "vrijdag", - "zaterdag" - ] + "days-format-narrow": [ + "Z", + "M", + "D", + "W", + "D", + "V", + "Z" + ], + "dateFormatItem-yyyyMd": "d-M-y GGGGG", + "field-month": "Maand", + "dateFormatItem-MMM": "LLL", + "days-standAlone-narrow": [ + "Z", + "M", + "D", + "W", + "D", + "V", + "Z" + ], + "field-tue-relative+0": "deze dinsdag", + "field-tue-relative+1": "volgende week dinsdag", + "field-mon-relative+0": "deze maandag", + "field-mon-relative+1": "volgende week maandag", + "dateFormat-short": "dd-MM-yy GGGGG", + "field-second": "Seconde", + "field-sat-relative+-1": "afgelopen zaterdag", + "field-sun-relative+-1": "afgelopen zondag", + "field-month-relative+0": "deze maand", + "field-month-relative+1": "volgende maand", + "dateFormatItem-Ed": "E d", + "field-week": "Week", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "dit jaar", + "field-week-relative+-1": "vorige week", + "dateFormatItem-yyyyM": "M-y GGGGG", + "field-year-relative+1": "volgend jaar", + "dayPeriods-format-narrow-pm": "PM", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "afgelopen maandag", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "deze week", + "field-week-relative+1": "volgende week" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/nl/japanese.js b/cldr/nls/nl/japanese.js index 7580473b66..670d9c92c3 100644 --- a/cldr/nls/nl/japanese.js +++ b/cldr/nls/nl/japanese.js @@ -1,35 +1,323 @@ define( //begin v1.x content { - "dateFormat-medium": "d MMM y G", - "field-second": "Seconde", - "field-year-relative+-1": "Vorig jaar", - "field-week": "week", - "field-month-relative+-1": "Vorige maand", - "field-day-relative+-1": "Gisteren", - "field-day-relative+-2": "Eergisteren", + "field-second-relative+0": "nu", + "field-weekday": "Dag van de week", + "field-wed-relative+0": "deze woensdag", + "field-wed-relative+1": "volgende week woensdag", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "afgelopen dinsdag", + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "afgelopen vrijdag", + "field-wed-relative+-1": "afgelopen woensdag", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E d-M-y GGGGG", + "field-thu-relative+-1": "afgelopen donderdag", + "dateFormatItem-Md": "d-M", + "field-era": "Tijdperk", "field-year": "Jaar", - "field-week-relative+0": "Deze week", - "field-week-relative+1": "Volgende week", - "field-minute": "Minuut", - "field-week-relative+-1": "Vorige week", - "field-day-relative+0": "Vandaag", + "dateFormatItem-yyyyMMMM": "MMMM y G", "field-hour": "Uur", - "field-day-relative+1": "Morgen", - "dateFormat-long": "d MMMM y G", - "field-day-relative+2": "Overmorgen", - "field-day": "Dag", - "field-month-relative+0": "Deze maand", - "field-month-relative+1": "Volgende maand", + "field-sat-relative+0": "deze zaterdag", + "field-sat-relative+1": "volgende week zaterdag", + "field-day-relative+0": "vandaag", + "field-thu-relative+0": "deze donderdag", + "field-day-relative+1": "morgen", + "field-thu-relative+1": "volgende week donderdag", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "overmorgen", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "dateFormatItem-MMMMd": "d MMMM", + "field-sun-relative+0": "deze zondag", + "field-sun-relative+1": "volgende week zondag", + "eraAbbr": [ + "Taika (645-650)", + "Hakuchi (650-671)", + "Hakuhō (672-686)", + "Shuchō (686-701)", + "Taihō (701-704)", + "Keiun (704-708)", + "Wadō (708-715)", + "Reiki (715-717)", + "Yōrō (717-724)", + "Jinki (724-729)", + "Tempyō (729-749)", + "Tempyō-kampō (749-749)", + "Tempyō-shōhō (749-757)", + "Tempyō-hōji (757-765)", + "Temphō-jingo (765-767)", + "Jingo-keiun (767-770)", + "Hōki (770-780)", + "Ten-ō (781-782)", + "Enryaku (782-806)", + "Daidō (806-810)", + "Kōnin (810-824)", + "Tenchō (824-834)", + "Jōwa (834-848)", + "Kajō (848-851)", + "Ninju (851-854)", + "Saiko (854-857)", + "Tennan (857-859)", + "Jōgan (859-877)", + "Genkei (877-885)", + "Ninna (885-889)", + "Kampyō (889-898)", + "Shōtai (898-901)", + "Engi (901-923)", + "Enchō (923-931)", + "Shōhei (931-938)", + "Tengyō (938-947)", + "Tenryaku (947-957)", + "Tentoku (957-961)", + "Ōwa (961-964)", + "Kōhō (964-968)", + "Anna (968-970)", + "Tenroku (970-973)", + "Ten-en (973-976)", + "Jōgen (976-978)", + "Tengen (978-983)", + "Eikan (983-985)", + "Kanna (985-987)", + "Ei-en (987-989)", + "Eiso (989-990)", + "Shōryaku (990-995)", + "Chōtoku (995-999)", + "Chōhō (999-1004)", + "Kankō (1004-1012)", + "Chōwa (1012-1017)", + "Kannin (1017-1021)", + "Jian (1021-1024)", + "Manju (1024-1028)", + "Chōgen (1028-1037)", + "Chōryaku (1037-1040)", + "Chōkyū (1040-1044)", + "Kantoku (1044-1046)", + "Eishō (1046-1053)", + "Tengi (1053-1058)", + "Kōhei (1058-1065)", + "Jiryaku (1065-1069)", + "Enkyū (1069-1074)", + "Shōho (1074-1077)", + "Shōryaku (1077-1081)", + "Eiho (1081-1084)", + "Ōtoku (1084-1087)", + "Kanji (1087-1094)", + "Kaho (1094-1096)", + "Eichō (1096-1097)", + "Shōtoku (1097-1099)", + "Kōwa (1099-1104)", + "Chōji (1104-1106)", + "Kashō (1106-1108)", + "Tennin (1108-1110)", + "Ten-ei (1110-1113)", + "Eikyū (1113-1118)", + "Gen-ei (1118-1120)", + "Hoan (1120-1124)", + "Tenji (1124-1126)", + "Daiji (1126-1131)", + "Tenshō (1131-1132)", + "Chōshō (1132-1135)", + "Hoen (1135-1141)", + "Eiji (1141-1142)", + "Kōji (1142-1144)", + "Tenyō (1144-1145)", + "Kyūan (1145-1151)", + "Ninpei (1151-1154)", + "Kyūju (1154-1156)", + "Hogen (1156-1159)", + "Heiji (1159-1160)", + "Eiryaku (1160-1161)", + "Ōho (1161-1163)", + "Chōkan (1163-1165)", + "Eiman (1165-1166)", + "Nin-an (1166-1169)", + "Kaō (1169-1171)", + "Shōan (1171-1175)", + "Angen (1175-1177)", + "Jishō (1177-1181)", + "Yōwa (1181-1182)", + "Juei (1182-1184)", + "Genryuku (1184-1185)", + "Bunji (1185-1190)", + "Kenkyū (1190-1199)", + "Shōji (1199-1201)", + "Kennin (1201-1204)", + "Genkyū (1204-1206)", + "Ken-ei (1206-1207)", + "Shōgen (1207-1211)", + "Kenryaku (1211-1213)", + "Kenpō (1213-1219)", + "Shōkyū (1219-1222)", + "Jōō (1222-1224)", + "Gennin (1224-1225)", + "Karoku (1225-1227)", + "Antei (1227-1229)", + "Kanki (1229-1232)", + "Jōei (1232-1233)", + "Tempuku (1233-1234)", + "Bunryaku (1234-1235)", + "Katei (1235-1238)", + "Ryakunin (1238-1239)", + "En-ō (1239-1240)", + "Ninji (1240-1243)", + "Kangen (1243-1247)", + "Hōji (1247-1249)", + "Kenchō (1249-1256)", + "Kōgen (1256-1257)", + "Shōka (1257-1259)", + "Shōgen (1259-1260)", + "Bun-ō (1260-1261)", + "Kōchō (1261-1264)", + "Bun-ei (1264-1275)", + "Kenji (1275-1278)", + "Kōan (1278-1288)", + "Shōō (1288-1293)", + "Einin (1293-1299)", + "Shōan (1299-1302)", + "Kengen (1302-1303)", + "Kagen (1303-1306)", + "Tokuji (1306-1308)", + "Enkei (1308-1311)", + "Ōchō (1311-1312)", + "Shōwa (1312-1317)", + "Bunpō (1317-1319)", + "Genō (1319-1321)", + "Genkyō (1321-1324)", + "Shōchū (1324-1326)", + "Kareki (1326-1329)", + "Gentoku (1329-1331)", + "Genkō (1331-1334)", + "Kemmu (1334-1336)", + "Engen (1336-1340)", + "Kōkoku (1340-1346)", + "Shōhei (1346-1370)", + "Kentoku (1370-1372)", + "Bunchū (1372-1375)", + "Tenju (1375-1379)", + "Kōryaku (1379-1381)", + "Kōwa (1381-1384)", + "Genchū (1384-1392)", + "Meitoku (1384-1387)", + "Kakei (1387-1389)", + "Kōō (1389-1390)", + "Meitoku (1390-1394)", + "Ōei (1394-1428)", + "Shōchō (1428-1429)", + "Eikyō (1429-1441)", + "Kakitsu (1441-1444)", + "Bun-an (1444-1449)", + "Hōtoku (1449-1452)", + "Kyōtoku (1452-1455)", + "Kōshō (1455-1457)", + "Chōroku (1457-1460)", + "Kanshō (1460-1466)", + "Bunshō (1466-1467)", + "Ōnin (1467-1469)", + "Bunmei (1469-1487)", + "Chōkyō (1487-1489)", + "Entoku (1489-1492)", + "Meiō (1492-1501)", + "Bunki (1501-1504)", + "Eishō (1504-1521)", + "Taiei (1521-1528)", + "Kyōroku (1528-1532)", + "Tenmon (1532-1555)", + "Kōji (1555-1558)", + "Eiroku (1558-1570)", + "Genki (1570-1573)", + "Tenshō (1573-1592)", + "Bunroku (1592-1596)", + "Keichō (1596-1615)", + "Genwa (1615-1624)", + "Kan-ei (1624-1644)", + "Shōho (1644-1648)", + "Keian (1648-1652)", + "Shōō (1652-1655)", + "Meiryaku (1655-1658)", + "Manji (1658-1661)", + "Kanbun (1661-1673)", + "Enpō (1673-1681)", + "Tenwa (1681-1684)", + "Jōkyō (1684-1688)", + "Genroku (1688-1704)", + "Hōei (1704-1711)", + "Shōtoku (1711-1716)", + "Kyōhō (1716-1736)", + "Genbun (1736-1741)", + "Kanpō (1741-1744)", + "Enkyō (1744-1748)", + "Kan-en (1748-1751)", + "Hōryaku (1751-1764)", + "Meiwa (1764-1772)", + "An-ei (1772-1781)", + "Tenmei (1781-1789)", + "Kansei (1789-1801)", + "Kyōwa (1801-1804)", + "Bunka (1804-1818)", + "Bunsei (1818-1830)", + "Tenpō (1830-1844)", + "Kōka (1844-1848)", + "Kaei (1848-1854)", + "Ansei (1854-1860)", + "Man-en (1860-1861)", + "Bunkyū (1861-1864)", + "Genji (1864-1865)", + "Keiō (1865-1868)", + "Meiji", + "Taishō", + "Shōwa", + "Heisei" + ], + "field-minute": "Minuut", "field-dayperiod": "AM/PM", + "dateFormatItem-d": "d", + "field-day-relative+-1": "gisteren", + "dateTimeFormat-long": "{1} {0}", + "field-day-relative+-2": "eergisteren", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E d-M", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "deze vrijdag", + "field-fri-relative+1": "volgende week vrijdag", + "field-day": "Dag", + "field-zone": "Zone", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "vorig jaar", + "field-month-relative+-1": "vorige maand", + "dateFormatItem-yyyyMd": "d-M-y GGGGG", "field-month": "Maand", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "deze dinsdag", + "field-tue-relative+1": "volgende week dinsdag", + "field-mon-relative+0": "deze maandag", + "field-mon-relative+1": "volgende week maandag", "dateFormat-short": "dd-MM-yy GGGGG", - "field-era": "Tijdperk", - "field-year-relative+0": "Dit jaar", - "field-year-relative+1": "Volgend jaar", - "dateFormat-full": "EEEE d MMMM y G", - "field-weekday": "Dag van de week", - "field-zone": "Zone" + "field-second": "Seconde", + "field-sat-relative+-1": "afgelopen zaterdag", + "field-sun-relative+-1": "afgelopen zondag", + "field-month-relative+0": "deze maand", + "field-month-relative+1": "volgende maand", + "dateFormatItem-Ed": "E d", + "field-week": "Week", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "dit jaar", + "field-week-relative+-1": "vorige week", + "dateFormatItem-yyyyM": "M-y GGGGG", + "field-year-relative+1": "volgend jaar", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "afgelopen maandag", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "deze week", + "field-week-relative+1": "volgende week" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/nl/number.js b/cldr/nls/nl/number.js index 4898ad8e1a..06e896082c 100644 --- a/cldr/nls/nl/number.js +++ b/cldr/nls/nl/number.js @@ -10,10 +10,11 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", - "currencyFormat": "¤ #,##0.00;¤ #,##0.00-", + "currencyFormat": "¤ #,##0.00;(¤ #,##0.00)", "plusSign": "+", "decimalFormat-long": "000 biljoen", "decimalFormat-short": "000 bln'.'" diff --git a/cldr/nls/nl/persian.js b/cldr/nls/nl/persian.js new file mode 100644 index 0000000000..1c2f995fcb --- /dev/null +++ b/cldr/nls/nl/persian.js @@ -0,0 +1,263 @@ +define( +//begin v1.x content +{ + "days-standAlone-short": [ + "zo", + "ma", + "di", + "wo", + "do", + "vr", + "za" + ], + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-second-relative+0": "nu", + "field-weekday": "Dag van de week", + "field-wed-relative+0": "deze woensdag", + "field-wed-relative+1": "volgende week woensdag", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "afgelopen dinsdag", + "days-format-short": [ + "zo", + "ma", + "di", + "wo", + "do", + "vr", + "za" + ], + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "afgelopen vrijdag", + "field-wed-relative+-1": "afgelopen woensdag", + "months-format-wide": [ + "Farvardin", + "Ordibehesht", + "Khordad", + "Tir", + "Mordad", + "Shahrivar", + "Mehr", + "Aban", + "Azar", + "Dey", + "Bahman", + "Esfand" + ], + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E d-M-y GGGGG", + "field-thu-relative+-1": "afgelopen donderdag", + "dateFormatItem-Md": "d-M", + "dayPeriods-format-wide-noon": "12 uur 's middags", + "field-era": "Tijdperk", + "months-standAlone-wide": [ + "Farvardin", + "Ordibehesht", + "Khordad", + "Tir", + "Mordad", + "Shahrivar", + "Mehr", + "Aban", + "Azar", + "Dey", + "Bahman", + "Esfand" + ], + "quarters-format-wide": [ + "1e kwartaal", + "2e kwartaal", + "3e kwartaal", + "4e kwartaal" + ], + "field-year": "Jaar", + "field-hour": "Uur", + "months-format-abbr": [ + "Farvardin", + "Ordibehesht", + "Khordad", + "Tir", + "Mordad", + "Shahrivar", + "Mehr", + "Aban", + "Azar", + "Dey", + "Bahman", + "Esfand" + ], + "field-sat-relative+0": "deze zaterdag", + "field-sat-relative+1": "volgende week zaterdag", + "field-day-relative+0": "vandaag", + "field-thu-relative+0": "deze donderdag", + "field-day-relative+1": "morgen", + "field-thu-relative+1": "volgende week donderdag", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "overmorgen", + "months-standAlone-abbr": [ + "Farvardin", + "Ordibehesht", + "Khordad", + "Tir", + "Mordad", + "Shahrivar", + "Mehr", + "Aban", + "Azar", + "Dey", + "Bahman", + "Esfand" + ], + "quarters-format-abbr": [ + "K1", + "K2", + "K3", + "K4" + ], + "quarters-standAlone-wide": [ + "1e kwartaal", + "2e kwartaal", + "3e kwartaal", + "4e kwartaal" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "days-standAlone-wide": [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag" + ], + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "dayPeriods-format-abbr-noon": "12 uur 's middags", + "field-sun-relative+0": "deze zondag", + "field-sun-relative+1": "volgende week zondag", + "quarters-standAlone-abbr": [ + "K1", + "K2", + "K3", + "K4" + ], + "eraAbbr": [ + "AP" + ], + "field-minute": "Minuut", + "field-dayperiod": "AM/PM", + "days-standAlone-abbr": [ + "zo", + "ma", + "di", + "wo", + "do", + "vr", + "za" + ], + "field-day-relative+-1": "gisteren", + "dayPeriods-format-narrow-am": "AM", + "field-day-relative+-2": "eergisteren", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E d-M", + "field-fri-relative+0": "deze vrijdag", + "field-fri-relative+1": "volgende week vrijdag", + "field-day": "Dag", + "days-format-wide": [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag" + ], + "field-zone": "Zone", + "dateFormatItem-y": "y G", + "months-standAlone-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-year-relative+-1": "vorig jaar", + "field-month-relative+-1": "vorige maand", + "days-format-abbr": [ + "zo", + "ma", + "di", + "wo", + "do", + "vr", + "za" + ], + "days-format-narrow": [ + "Z", + "M", + "D", + "W", + "D", + "V", + "Z" + ], + "dateFormatItem-yyyyMd": "d-M-y GGGGG", + "field-month": "Maand", + "days-standAlone-narrow": [ + "Z", + "M", + "D", + "W", + "D", + "V", + "Z" + ], + "field-tue-relative+0": "deze dinsdag", + "field-tue-relative+1": "volgende week dinsdag", + "field-mon-relative+0": "deze maandag", + "field-mon-relative+1": "volgende week maandag", + "dateFormat-short": "dd-MM-yy GGGGG", + "field-second": "Seconde", + "field-sat-relative+-1": "afgelopen zaterdag", + "field-sun-relative+-1": "afgelopen zondag", + "field-month-relative+0": "deze maand", + "field-month-relative+1": "volgende maand", + "dateFormatItem-Ed": "E d", + "field-week": "Week", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "dit jaar", + "field-week-relative+-1": "vorige week", + "dateFormatItem-yyyyM": "M-y GGGGG", + "field-year-relative+1": "volgend jaar", + "dayPeriods-format-narrow-pm": "PM", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "afgelopen maandag", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "deze week", + "field-week-relative+1": "volgende week" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/nl/roc.js b/cldr/nls/nl/roc.js index 9e05fc0751..04fe392f23 100644 --- a/cldr/nls/nl/roc.js +++ b/cldr/nls/nl/roc.js @@ -1,35 +1,85 @@ define( //begin v1.x content { - "field-second": "Seconde", - "field-year-relative+-1": "Vorig jaar", - "field-week": "week", - "field-month-relative+-1": "Vorige maand", - "field-day-relative+-1": "Gisteren", - "field-day-relative+-2": "Eergisteren", + "field-second-relative+0": "nu", + "field-weekday": "Dag van de week", + "field-wed-relative+0": "deze woensdag", + "field-wed-relative+1": "volgende week woensdag", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "afgelopen dinsdag", + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "afgelopen vrijdag", + "field-wed-relative+-1": "afgelopen woensdag", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E d-M-y GGGGG", + "field-thu-relative+-1": "afgelopen donderdag", + "dateFormatItem-Md": "d-M", + "field-era": "Tijdperk", "field-year": "Jaar", - "field-week-relative+0": "Deze week", - "field-week-relative+1": "Volgende week", - "field-minute": "Minuut", - "field-week-relative+-1": "Vorige week", - "field-day-relative+0": "Vandaag", + "dateFormatItem-yyyyMMMM": "MMMM y G", "field-hour": "Uur", - "field-day-relative+1": "Morgen", - "field-day-relative+2": "Overmorgen", - "field-day": "Dag", - "field-month-relative+0": "Deze maand", - "field-month-relative+1": "Volgende maand", - "field-dayperiod": "AM/PM", - "field-month": "Maand", - "field-era": "Tijdperk", - "field-year-relative+0": "Dit jaar", - "field-year-relative+1": "Volgend jaar", + "field-sat-relative+0": "deze zaterdag", + "field-sat-relative+1": "volgende week zaterdag", + "field-day-relative+0": "vandaag", + "field-thu-relative+0": "deze donderdag", + "field-day-relative+1": "morgen", + "field-thu-relative+1": "volgende week donderdag", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "overmorgen", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "dateFormatItem-MMMMd": "d MMMM", + "field-sun-relative+0": "deze zondag", + "field-sun-relative+1": "volgende week zondag", "eraAbbr": [ "Before R.O.C.", "Minguo" ], - "field-weekday": "Dag van de week", - "field-zone": "Zone" + "field-minute": "Minuut", + "field-dayperiod": "AM/PM", + "dateFormatItem-d": "d", + "field-day-relative+-1": "gisteren", + "field-day-relative+-2": "eergisteren", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E d-M", + "field-fri-relative+0": "deze vrijdag", + "field-fri-relative+1": "volgende week vrijdag", + "field-day": "Dag", + "field-zone": "Zone", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "vorig jaar", + "field-month-relative+-1": "vorige maand", + "dateFormatItem-yyyyMd": "d-M-y GGGGG", + "field-month": "Maand", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "deze dinsdag", + "field-tue-relative+1": "volgende week dinsdag", + "field-mon-relative+0": "deze maandag", + "field-mon-relative+1": "volgende week maandag", + "dateFormat-short": "dd-MM-yy GGGGG", + "field-second": "Seconde", + "field-sat-relative+-1": "afgelopen zaterdag", + "field-sun-relative+-1": "afgelopen zondag", + "field-month-relative+0": "deze maand", + "field-month-relative+1": "volgende maand", + "dateFormatItem-Ed": "E d", + "field-week": "Week", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "dit jaar", + "field-week-relative+-1": "vorige week", + "dateFormatItem-yyyyM": "M-y GGGGG", + "field-year-relative+1": "volgend jaar", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "afgelopen maandag", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "deze week", + "field-week-relative+1": "volgende week" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/number.js b/cldr/nls/number.js index 0a57abe4f3..987d047250 100644 --- a/cldr/nls/number.js +++ b/cldr/nls/number.js @@ -5,6 +5,7 @@ define({ root: "scientificFormat": "#E0", "currencySpacing-afterCurrency-currencyMatch": "[:^S:]", "infinity": "∞", + "superscriptingExponent": "×", "list": ";", "percentSign": "%", "minusSign": "-", @@ -34,7 +35,7 @@ define({ root: "de": true, "el": true, "en": true, - "en-gb": true, + "en-au": true, "es": true, "fi": true, "fr": true, diff --git a/cldr/nls/persian.js b/cldr/nls/persian.js index c847f89255..5a281658fa 100644 --- a/cldr/nls/persian.js +++ b/cldr/nls/persian.js @@ -2,6 +2,7 @@ define({ root: //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "Sun", "Mon", @@ -25,6 +26,7 @@ define({ root: "11", "12" ], + "field-second-relative+0": "now", "quarters-standAlone-narrow": [ "1", "2", @@ -32,11 +34,14 @@ define({ root: "4" ], "field-weekday": "Day of the Week", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", "dateFormatItem-GyMMMEd": "G y MMM d, E", "dateFormatItem-MMMEd": "MMM d, E", "eraNarrow": [ "AP" ], + "field-tue-relative+-1": "last Tuesday", "days-format-short": [ "Sun", "Mon", @@ -48,6 +53,8 @@ define({ root: ], "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", "dateFormat-long": "G y MMMM d", + "field-fri-relative+-1": "last Friday", + "field-wed-relative+-1": "last Wednesday", "months-format-wide": [ "Farvardin", "Ordibehesht", @@ -67,9 +74,11 @@ define({ root: "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "G y MMMM d, EEEE", "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", + "field-thu-relative+-1": "last Thursday", "dateFormatItem-Md": "MM-dd", "dayPeriods-format-abbr-am": "AM", "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "dayPeriods-format-wide-noon": "noon", "field-era": "Era", "months-standAlone-wide": [ "Farvardin", @@ -110,10 +119,14 @@ define({ root: "Bahman", "Esfand" ], + "field-sat-relative+0": "this Saturday", + "field-sat-relative+1": "next Saturday", "timeFormat-full": "HH:mm:ss zzzz", "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", + "field-day-relative+0": "today", + "field-thu-relative+0": "this Thursday", + "field-day-relative+1": "tomorrow", + "field-thu-relative+1": "next Thursday", "dateFormatItem-GyMMMd": "G y MMM d", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ @@ -156,8 +169,11 @@ define({ root: ], "dateFormatItem-yyyyMMM": "G y MMM", "dateFormatItem-yyyyMMMd": "G y MMM d", + "dayPeriods-format-abbr-noon": "noon", "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "this Sunday", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "next Sunday", "quarters-standAlone-abbr": [ "Q1", "Q2", @@ -186,13 +202,15 @@ define({ root: "3", "4" ], - "field-day-relative+-1": "Yesterday", - "dateFormatItem-h": "h a", + "field-day-relative+-1": "yesterday", "dateTimeFormat-long": "{1} {0}", - "dayPeriods-format-narrow-am": "AM", + "dayPeriods-format-narrow-am": "a", + "dateFormatItem-h": "h a", "dateFormatItem-MMMd": "MMM d", "dateFormatItem-MEd": "MM-dd, E", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", "field-day": "Day", "days-format-wide": [ "Sun", @@ -204,8 +222,6 @@ define({ root: "Sat" ], "field-zone": "Zone", - "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", - "dateFormatItem-y": "G y", "months-standAlone-narrow": [ "1", "2", @@ -220,8 +236,12 @@ define({ root: "11", "12" ], - "dateFormatItem-hm": "h:mm a", + "dateFormatItem-y": "G y", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "field-year-relative+-1": "last year", + "field-month-relative+-1": "last month", "dateTimeFormats-appendItem-Year": "{1} {0}", + "dateFormatItem-hm": "h:mm a", "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", "dayPeriods-format-abbr-pm": "PM", "days-format-abbr": [ @@ -246,6 +266,7 @@ define({ root: "S" ], "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", + "field-month": "Month", "days-standAlone-narrow": [ "S", "M", @@ -256,31 +277,50 @@ define({ root: "S" ], "dateFormatItem-MMM": "LLL", - "field-month": "Month", + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", "dayPeriods-format-wide-am": "AM", "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", "dateFormat-short": "GGGGG y-MM-dd", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", + "dayPeriods-format-narrow-noon": "n", "field-second": "Second", - "dateFormatItem-Ed": "d, E", + "field-sat-relative+-1": "last Saturday", + "field-sun-relative+-1": "last Sunday", + "field-month-relative+0": "this month", + "field-month-relative+1": "next month", "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "dateFormatItem-Ed": "d, E", "field-week": "Week", "dateFormat-medium": "G y MMM d", + "field-week-relative+-1": "last week", + "field-year-relative+0": "this year", "dateFormatItem-yyyyM": "GGGGG y-MM", - "dayPeriods-format-narrow-pm": "PM", + "field-year-relative+1": "next year", + "dayPeriods-format-narrow-pm": "p", "dateFormatItem-yyyyQQQQ": "G y QQQQ", "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "G y MMM", - "dateFormatItem-yyyy": "G y" + "field-mon-relative+-1": "last Monday", + "dateFormatItem-yyyy": "G y", + "field-week-relative+0": "this week", + "field-week-relative+1": "next week" } //end v1.x content , "ar": true, + "fr": true, "hu": true, "ja": true, + "nl": true, "pl": true, "pt": true, "ru": true, diff --git a/cldr/nls/pl/buddhist.js b/cldr/nls/pl/buddhist.js index c6d99e608c..1b1d172131 100644 --- a/cldr/nls/pl/buddhist.js +++ b/cldr/nls/pl/buddhist.js @@ -24,15 +24,13 @@ define( "l", "g" ], - "quarters-standAlone-narrow": [ - "K1", - "K2", - "K3", - "K4" - ], - "field-weekday": "Dzień tygodnia", + "field-second-relative+0": "teraz", + "field-weekday": "dzień tygodnia", + "field-wed-relative+0": "w tę środę", + "field-wed-relative+1": "w przyszłą środę", "dateFormatItem-GyMMMEd": "E, d MMM y G", "dateFormatItem-MMMEd": "E, d MMM", + "field-tue-relative+-1": "w zeszły wtorek", "days-format-short": [ "niedz.", "pon.", @@ -43,6 +41,8 @@ define( "sob." ], "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "w zeszły piątek", + "field-wed-relative+-1": "w zeszłą środę", "months-format-wide": [ "stycznia", "lutego", @@ -61,8 +61,10 @@ define( "dateTimeFormat-medium": "{1}, {0}", "dateFormat-full": "EEEE, d MMMM y G", "dateFormatItem-yyyyMEd": "E, d.MM.y G", + "field-thu-relative+-1": "w zeszły czwartek", "dateFormatItem-Md": "d.MM", - "field-era": "Era", + "dayPeriods-format-wide-noon": "w południe", + "field-era": "era", "months-standAlone-wide": [ "styczeń", "luty", @@ -83,8 +85,8 @@ define( "III kwartał", "IV kwartał" ], - "field-year": "Rok", - "field-hour": "Godzina", + "field-year": "rok", + "field-hour": "godzina", "months-format-abbr": [ "sty", "lut", @@ -99,10 +101,14 @@ define( "lis", "gru" ], - "field-day-relative+0": "Dzisiaj", - "field-day-relative+1": "Jutro", + "field-sat-relative+0": "w tę sobotę", + "field-sat-relative+1": "w przyszłą sobotę", + "field-day-relative+0": "dzisiaj", + "field-thu-relative+0": "w ten czwartek", + "field-day-relative+1": "jutro", + "field-thu-relative+1": "w przyszły czwartek", "dateFormatItem-GyMMMd": "d MMM y G", - "field-day-relative+2": "Pojutrze", + "field-day-relative+2": "pojutrze", "months-standAlone-abbr": [ "sty", "lut", @@ -142,6 +148,8 @@ define( ], "dateFormatItem-yyyyMMM": "LLL y G", "dateFormatItem-yyyyMMMd": "d MMM y G", + "field-sun-relative+0": "w tę niedzielę", + "field-sun-relative+1": "w przyszłą niedzielę", "quarters-standAlone-abbr": [ "1 kw.", "2 kw.", @@ -151,8 +159,8 @@ define( "eraAbbr": [ "BE" ], - "field-minute": "Minuta", - "field-dayperiod": "Dayperiod", + "field-minute": "minuta", + "field-dayperiod": "rano / po południu / wieczorem", "days-standAlone-abbr": [ "niedz.", "pon.", @@ -162,12 +170,16 @@ define( "pt.", "sob." ], - "field-day-relative+-1": "Wczoraj", + "field-day-relative+-1": "wczoraj", "dateFormatItem-h": "hh a", - "field-day-relative+-2": "Przedwczoraj", + "dateTimeFormat-long": "{1}, {0}", + "field-day-relative+-2": "przedwczoraj", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E, d.MM", - "field-day": "Dzień", + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "w ten piątek", + "field-fri-relative+1": "w przyszły piątek", + "field-day": "dzień", "days-format-wide": [ "niedziela", "poniedziałek", @@ -177,7 +189,7 @@ define( "piątek", "sobota" ], - "field-zone": "Strefa", + "field-zone": "strefa czasowa", "dateFormatItem-y": "y G", "months-standAlone-narrow": [ "s", @@ -193,8 +205,8 @@ define( "l", "g" ], - "field-year-relative+-1": "Zeszły rok", - "field-month-relative+-1": "Zeszły miesiąc", + "field-year-relative+-1": "w zeszłym roku", + "field-month-relative+-1": "w zeszłym miesiącu", "dateFormatItem-hm": "hh:mm a", "days-format-abbr": [ "niedz.", @@ -215,7 +227,7 @@ define( "S" ], "dateFormatItem-yyyyMd": "d.MM.y G", - "field-month": "Miesiąc", + "field-month": "miesiąc", "days-standAlone-narrow": [ "N", "P", @@ -225,24 +237,31 @@ define( "P", "S" ], + "field-tue-relative+0": "w ten wtorek", + "field-tue-relative+1": "w przyszły wtorek", + "field-mon-relative+0": "w ten poniedziałek", + "field-mon-relative+1": "w przyszły poniedziałek", "dateFormat-short": "dd.MM.y G", - "field-second": "Sekunda", - "field-month-relative+0": "Bieżący miesiąc", - "field-month-relative+1": "Przyszły miesiąc", + "field-second": "sekunda", + "field-sat-relative+-1": "w zeszłą sobotę", + "field-sun-relative+-1": "w zeszłą niedzielę", + "field-month-relative+0": "w tym miesiącu", + "field-month-relative+1": "w przyszłym miesiącu", "dateFormatItem-Ed": "E, d", - "field-week": "Tydzień", + "field-week": "tydzień", "dateFormat-medium": "d MMM y G", - "field-year-relative+0": "Bieżący rok", + "field-year-relative+0": "w tym roku", "field-week-relative+-1": "Zeszły tydzień", "dateFormatItem-yyyyM": "MM.y G", - "field-year-relative+1": "Przyszły rok", + "field-year-relative+1": "w przyszłym roku", "dateFormatItem-yyyyQQQQ": "QQQQ y G", "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-hms": "hh:mm:ss a", "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "w zeszły poniedziałek", "dateFormatItem-yyyy": "y G", - "field-week-relative+0": "Bieżący tydzień", - "field-week-relative+1": "Przyszły tydzień" + "field-week-relative+0": "w tym tygodniu", + "field-week-relative+1": "w przyszłym tygodniu" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pl/chinese.js b/cldr/nls/pl/chinese.js index 5226ef2871..f9c80e0817 100644 --- a/cldr/nls/pl/chinese.js +++ b/cldr/nls/pl/chinese.js @@ -1,13 +1,20 @@ define( //begin v1.x content { - "dateFormat-medium": "d MMM U", - "field-second": "Sekunda", - "field-year-relative+-1": "Zeszły rok", - "field-week": "Tydzień", - "field-month-relative+-1": "Zeszły miesiąc", - "field-day-relative+-1": "Wczoraj", - "months-format-narrow": [ + "field-sat-relative+0": "w tę sobotę", + "field-sat-relative+1": "w przyszłą sobotę", + "field-dayperiod": "rano / po południu / wieczorem", + "field-sun-relative+-1": "w zeszłą niedzielę", + "field-mon-relative+-1": "w zeszły poniedziałek", + "field-minute": "minuta", + "field-day-relative+-1": "wczoraj", + "field-weekday": "dzień tygodnia", + "field-day-relative+-2": "przedwczoraj", + "field-era": "era", + "field-hour": "godzina", + "field-sun-relative+0": "w tę niedzielę", + "field-sun-relative+1": "w przyszłą niedzielę", + "months-standAlone-abbr": [ "1", "2", "3", @@ -21,7 +28,23 @@ define( "11", "12" ], - "field-day-relative+-2": "Przedwczoraj", + "field-wed-relative+-1": "w zeszłą środę", + "field-day-relative+0": "dzisiaj", + "field-day-relative+1": "jutro", + "field-day-relative+2": "pojutrze", + "dateFormat-long": "d MMMM U", + "field-tue-relative+0": "w ten wtorek", + "field-zone": "strefa czasowa", + "field-tue-relative+1": "w przyszły wtorek", + "field-week-relative+-1": "Zeszły tydzień", + "dateFormat-medium": "d MMM U", + "field-year-relative+0": "w tym roku", + "field-year-relative+1": "w przyszłym roku", + "field-sat-relative+-1": "w zeszłą sobotę", + "field-year-relative+-1": "w zeszłym roku", + "field-year": "rok", + "field-fri-relative+0": "w ten piątek", + "field-fri-relative+1": "w przyszły piątek", "months-standAlone-wide": [ "1", "2", @@ -36,9 +59,10 @@ define( "11", "12" ], - "field-year": "Rok", - "field-week-relative+0": "Bieżący tydzień", - "months-standAlone-abbr": [ + "field-week": "tydzień", + "field-week-relative+0": "w tym tygodniu", + "field-week-relative+1": "w przyszłym tygodniu", + "months-format-abbr": [ "1", "2", "3", @@ -52,24 +76,14 @@ define( "11", "12" ], - "field-week-relative+1": "Przyszły tydzień", - "field-minute": "Minuta", - "field-week-relative+-1": "Zeszły tydzień", - "field-day-relative+0": "Dzisiaj", - "field-hour": "Godzina", - "field-day-relative+1": "Jutro", - "dateFormat-long": "d MMMM U", - "field-day-relative+2": "Pojutrze", - "field-day": "Dzień", - "field-month-relative+0": "Bieżący miesiąc", - "field-month-relative+1": "Przyszły miesiąc", - "field-dayperiod": "Dayperiod", - "field-month": "Miesiąc", - "dateFormat-short": "dd.MM.y", - "field-era": "Era", - "field-year-relative+0": "Bieżący rok", - "field-year-relative+1": "Przyszły rok", - "months-format-abbr": [ + "field-month-relative+0": "w tym miesiącu", + "field-month": "miesiąc", + "field-month-relative+1": "w przyszłym miesiącu", + "field-fri-relative+-1": "w zeszły piątek", + "field-second": "sekunda", + "field-tue-relative+-1": "w zeszły wtorek", + "field-day": "dzień", + "months-format-narrow": [ "1", "2", "3", @@ -83,9 +97,17 @@ define( "11", "12" ], + "field-mon-relative+0": "w ten poniedziałek", + "field-mon-relative+1": "w przyszły poniedziałek", + "field-thu-relative+0": "w ten czwartek", + "field-second-relative+0": "teraz", + "dateFormat-short": "dd.MM.y", + "field-thu-relative+1": "w przyszły czwartek", "dateFormat-full": "EEEE, d MMMM U", - "field-weekday": "Dzień tygodnia", - "field-zone": "Strefa" + "field-wed-relative+0": "w tę środę", + "field-wed-relative+1": "w przyszłą środę", + "field-month-relative+-1": "w zeszłym miesiącu", + "field-thu-relative+-1": "w zeszły czwartek" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pl/coptic.js b/cldr/nls/pl/coptic.js index b91acc950a..bda8788818 100644 --- a/cldr/nls/pl/coptic.js +++ b/cldr/nls/pl/coptic.js @@ -1,28 +1,20 @@ define( //begin v1.x content { - "field-second": "Sekunda", - "field-year-relative+-1": "Zeszły rok", - "field-week": "Tydzień", - "field-month-relative+-1": "Zeszły miesiąc", - "field-day-relative+-1": "Wczoraj", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], - "field-day-relative+-2": "Przedwczoraj", - "months-standAlone-wide": [ + "field-sat-relative+0": "w tę sobotę", + "field-sat-relative+1": "w przyszłą sobotę", + "field-dayperiod": "rano / po południu / wieczorem", + "field-sun-relative+-1": "w zeszłą niedzielę", + "field-mon-relative+-1": "w zeszły poniedziałek", + "field-minute": "minuta", + "field-day-relative+-1": "wczoraj", + "field-weekday": "dzień tygodnia", + "field-day-relative+-2": "przedwczoraj", + "field-era": "era", + "field-hour": "godzina", + "field-sun-relative+0": "w tę niedzielę", + "field-sun-relative+1": "w przyszłą niedzielę", + "months-standAlone-abbr": [ "Tout", "Baba", "Hator", @@ -37,9 +29,22 @@ define( "Mesra", "Nasie" ], - "field-year": "Rok", - "field-week-relative+0": "Bieżący tydzień", - "months-standAlone-abbr": [ + "field-wed-relative+-1": "w zeszłą środę", + "field-day-relative+0": "dzisiaj", + "field-day-relative+1": "jutro", + "field-day-relative+2": "pojutrze", + "field-tue-relative+0": "w ten wtorek", + "field-zone": "strefa czasowa", + "field-tue-relative+1": "w przyszły wtorek", + "field-week-relative+-1": "Zeszły tydzień", + "field-year-relative+0": "w tym roku", + "field-year-relative+1": "w przyszłym roku", + "field-sat-relative+-1": "w zeszłą sobotę", + "field-year-relative+-1": "w zeszłym roku", + "field-year": "rok", + "field-fri-relative+0": "w ten piątek", + "field-fri-relative+1": "w przyszły piątek", + "months-standAlone-wide": [ "Tout", "Baba", "Hator", @@ -54,21 +59,9 @@ define( "Mesra", "Nasie" ], - "field-week-relative+1": "Przyszły tydzień", - "field-minute": "Minuta", - "field-week-relative+-1": "Zeszły tydzień", - "field-day-relative+0": "Dzisiaj", - "field-hour": "Godzina", - "field-day-relative+1": "Jutro", - "field-day-relative+2": "Pojutrze", - "field-day": "Dzień", - "field-month-relative+0": "Bieżący miesiąc", - "field-month-relative+1": "Przyszły miesiąc", - "field-dayperiod": "Dayperiod", - "field-month": "Miesiąc", - "field-era": "Era", - "field-year-relative+0": "Bieżący rok", - "field-year-relative+1": "Przyszły rok", + "field-week": "tydzień", + "field-week-relative+0": "w tym tygodniu", + "field-week-relative+1": "w przyszłym tygodniu", "months-format-abbr": [ "Tout", "Baba", @@ -84,8 +77,37 @@ define( "Mesra", "Nasie" ], - "field-weekday": "Dzień tygodnia", - "field-zone": "Strefa" + "field-month-relative+0": "w tym miesiącu", + "field-month": "miesiąc", + "field-month-relative+1": "w przyszłym miesiącu", + "field-fri-relative+-1": "w zeszły piątek", + "field-second": "sekunda", + "field-tue-relative+-1": "w zeszły wtorek", + "field-day": "dzień", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "w ten poniedziałek", + "field-mon-relative+1": "w przyszły poniedziałek", + "field-thu-relative+0": "w ten czwartek", + "field-second-relative+0": "teraz", + "field-thu-relative+1": "w przyszły czwartek", + "field-wed-relative+0": "w tę środę", + "field-wed-relative+1": "w przyszłą środę", + "field-month-relative+-1": "w zeszłym miesiącu", + "field-thu-relative+-1": "w zeszły czwartek" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pl/currency.js b/cldr/nls/pl/currency.js index c2850b0b94..5ff487373e 100644 --- a/cldr/nls/pl/currency.js +++ b/cldr/nls/pl/currency.js @@ -3,13 +3,19 @@ define( { "HKD_displayName": "dolar hongkoński", "CHF_displayName": "frank szwajcarski", + "JPY_symbol": "JPY", "CAD_displayName": "dolar kanadyjski", - "CNY_displayName": "juan renminbi", + "HKD_symbol": "HKD", + "CNY_displayName": "juan chiński", + "USD_symbol": "USD", "AUD_displayName": "dolar australijski", "JPY_displayName": "jen japoński", + "CAD_symbol": "CAD", "USD_displayName": "dolar amerykański", + "CNY_symbol": "CNY", "GBP_displayName": "funt szterling", - "AUD_symbol": "A$", + "GBP_symbol": "GBP", + "AUD_symbol": "AUD", "EUR_displayName": "euro" } //end v1.x content diff --git a/cldr/nls/pl/ethiopic.js b/cldr/nls/pl/ethiopic.js index c25cc0f64e..4707ae8667 100644 --- a/cldr/nls/pl/ethiopic.js +++ b/cldr/nls/pl/ethiopic.js @@ -1,28 +1,20 @@ define( //begin v1.x content { - "field-second": "Sekunda", - "field-year-relative+-1": "Zeszły rok", - "field-week": "Tydzień", - "field-month-relative+-1": "Zeszły miesiąc", - "field-day-relative+-1": "Wczoraj", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], - "field-day-relative+-2": "Przedwczoraj", - "months-standAlone-wide": [ + "field-sat-relative+0": "w tę sobotę", + "field-sat-relative+1": "w przyszłą sobotę", + "field-dayperiod": "rano / po południu / wieczorem", + "field-sun-relative+-1": "w zeszłą niedzielę", + "field-mon-relative+-1": "w zeszły poniedziałek", + "field-minute": "minuta", + "field-day-relative+-1": "wczoraj", + "field-weekday": "dzień tygodnia", + "field-day-relative+-2": "przedwczoraj", + "field-era": "era", + "field-hour": "godzina", + "field-sun-relative+0": "w tę niedzielę", + "field-sun-relative+1": "w przyszłą niedzielę", + "months-standAlone-abbr": [ "Meskerem", "Tekemt", "Hedar", @@ -37,9 +29,22 @@ define( "Nehasse", "Pagumen" ], - "field-year": "Rok", - "field-week-relative+0": "Bieżący tydzień", - "months-standAlone-abbr": [ + "field-wed-relative+-1": "w zeszłą środę", + "field-day-relative+0": "dzisiaj", + "field-day-relative+1": "jutro", + "field-day-relative+2": "pojutrze", + "field-tue-relative+0": "w ten wtorek", + "field-zone": "strefa czasowa", + "field-tue-relative+1": "w przyszły wtorek", + "field-week-relative+-1": "Zeszły tydzień", + "field-year-relative+0": "w tym roku", + "field-year-relative+1": "w przyszłym roku", + "field-sat-relative+-1": "w zeszłą sobotę", + "field-year-relative+-1": "w zeszłym roku", + "field-year": "rok", + "field-fri-relative+0": "w ten piątek", + "field-fri-relative+1": "w przyszły piątek", + "months-standAlone-wide": [ "Meskerem", "Tekemt", "Hedar", @@ -54,21 +59,9 @@ define( "Nehasse", "Pagumen" ], - "field-week-relative+1": "Przyszły tydzień", - "field-minute": "Minuta", - "field-week-relative+-1": "Zeszły tydzień", - "field-day-relative+0": "Dzisiaj", - "field-hour": "Godzina", - "field-day-relative+1": "Jutro", - "field-day-relative+2": "Pojutrze", - "field-day": "Dzień", - "field-month-relative+0": "Bieżący miesiąc", - "field-month-relative+1": "Przyszły miesiąc", - "field-dayperiod": "Dayperiod", - "field-month": "Miesiąc", - "field-era": "Era", - "field-year-relative+0": "Bieżący rok", - "field-year-relative+1": "Przyszły rok", + "field-week": "tydzień", + "field-week-relative+0": "w tym tygodniu", + "field-week-relative+1": "w przyszłym tygodniu", "months-format-abbr": [ "Meskerem", "Tekemt", @@ -84,8 +77,37 @@ define( "Nehasse", "Pagumen" ], - "field-weekday": "Dzień tygodnia", - "field-zone": "Strefa" + "field-month-relative+0": "w tym miesiącu", + "field-month": "miesiąc", + "field-month-relative+1": "w przyszłym miesiącu", + "field-fri-relative+-1": "w zeszły piątek", + "field-second": "sekunda", + "field-tue-relative+-1": "w zeszły wtorek", + "field-day": "dzień", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "w ten poniedziałek", + "field-mon-relative+1": "w przyszły poniedziałek", + "field-thu-relative+0": "w ten czwartek", + "field-second-relative+0": "teraz", + "field-thu-relative+1": "w przyszły czwartek", + "field-wed-relative+0": "w tę środę", + "field-wed-relative+1": "w przyszłą środę", + "field-month-relative+-1": "w zeszłym miesiącu", + "field-thu-relative+-1": "w zeszły czwartek" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pl/generic.js b/cldr/nls/pl/generic.js index 6743e938dc..7870d15023 100644 --- a/cldr/nls/pl/generic.js +++ b/cldr/nls/pl/generic.js @@ -1,72 +1,94 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E, d MMM y G", - "field-dayperiod": "Dayperiod", - "field-minute": "Minuta", + "field-second-relative+0": "teraz", + "field-weekday": "dzień tygodnia", + "field-wed-relative+0": "w tę środę", + "dateFormatItem-GyMMMEd": "E, d MMM y G", "dateFormatItem-MMMEd": "E, d MMM", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "Wczoraj", - "dateFormatItem-hms": "hh:mm:ss a", - "dateFormatItem-MMdd": "d.MM", - "field-day-relative+-2": "Przedwczoraj", - "field-weekday": "Dzień tygodnia", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1}, {0}", - "dateFormatItem-Gy": "y G", + "field-wed-relative+1": "w przyszłą środę", + "field-tue-relative+-1": "w zeszły wtorek", + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "w zeszły piątek", + "field-wed-relative+-1": "w zeszłą środę", + "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1}, {0}", - "field-era": "Era", - "field-hour": "Godzina", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E, d", - "field-day-relative+0": "Dzisiaj", - "field-day-relative+1": "Jutro", - "field-day-relative+2": "Pojutrze", - "dateFormatItem-yyyyMM": "MM.y G", - "dateFormatItem-GyMMMd": "d MMM y G", + "dateFormat-full": "EEEE, d MMMM y G", + "dateFormatItem-yyyyMEd": "E, d.MM.y G", + "field-thu-relative+-1": "w zeszły czwartek", + "dateFormatItem-Md": "d.MM", + "field-era": "era", + "field-year": "rok", "dateFormatItem-yyyyMMMM": "LLLL y G", - "dateFormat-long": "d MMMM y G", - "field-zone": "Strefa", + "dateFormatItem-MMdd": "d.MM", + "field-hour": "godzina", + "field-sat-relative+0": "w tę sobotę", + "field-sat-relative+1": "w przyszłą sobotę", + "field-day-relative+0": "dzisiaj", + "field-day-relative+1": "jutro", + "field-thu-relative+0": "w ten czwartek", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "pojutrze", + "field-thu-relative+1": "w przyszły czwartek", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d MMM y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "LLL y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "dateFormatItem-MMMMd": "d MMMM", + "field-sun-relative+0": "w tę niedzielę", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "Zeszły tydzień", - "dateFormat-medium": "d MMM y G", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "Bieżący rok", - "field-year-relative+1": "Przyszły rok", - "field-year-relative+-1": "Zeszły rok", + "field-sun-relative+1": "w przyszłą niedzielę", + "field-minute": "minuta", + "field-dayperiod": "rano / po południu / wieczorem", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "field-year": "Rok", - "dateTimeFormat-long": "{1} {0}", - "field-week": "Tydzień", - "dateFormatItem-yyyyMd": "d.MM.y G", - "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMEd": "E, d.MM.y G", + "field-day-relative+-1": "wczoraj", + "dateFormatItem-h": "hh a", + "dateTimeFormat-long": "{1}, {0}", + "field-day-relative+-2": "przedwczoraj", "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "Bieżący tydzień", - "field-week-relative+1": "Przyszły tydzień", - "field-month-relative+0": "Bieżący miesiąc", - "dateFormatItem-H": "HH", - "field-month": "Miesiąc", - "field-month-relative+1": "Przyszły miesiąc", - "dateFormatItem-MMMMd": "d MMMM", - "dateFormatItem-M": "L", - "field-second": "Sekunda", - "dateFormatItem-GyMMMEd": "E, d MMM y G", - "dateFormatItem-GyMMM": "LLL y G", - "field-day": "Dzień", "dateFormatItem-MEd": "E, d.MM", - "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "w ten piątek", + "field-fri-relative+1": "w przyszły piątek", + "field-day": "dzień", + "field-zone": "strefa czasowa", + "dateFormatItem-yyyyMM": "MM.y G", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "w zeszłym roku", + "field-month-relative+-1": "w zeszłym miesiącu", "dateFormatItem-hm": "hh:mm a", + "dateFormatItem-yyyyMd": "d.MM.y G", + "field-month": "miesiąc", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "w ten wtorek", + "field-tue-relative+1": "w przyszły wtorek", + "field-mon-relative+0": "w ten poniedziałek", + "field-mon-relative+1": "w przyszły poniedziałek", "dateFormat-short": "dd.MM.y G", + "field-second": "sekunda", + "field-sat-relative+-1": "w zeszłą sobotę", + "field-sun-relative+-1": "w zeszłą niedzielę", + "field-month-relative+0": "w tym miesiącu", + "field-month-relative+1": "w przyszłym miesiącu", + "dateFormatItem-Ed": "E, d", + "field-week": "tydzień", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "w tym roku", + "field-week-relative+-1": "Zeszły tydzień", "dateFormatItem-yyyyM": "MM.y G", - "dateFormat-full": "EEEE, d MMMM y G", - "dateFormatItem-Md": "d.MM", - "dateFormatItem-yyyyMMM": "LLL y G", - "dateFormatItem-d": "d", - "field-month-relative+-1": "Zeszły miesiąc", - "dateFormatItem-h": "hh a" + "field-year-relative+1": "w przyszłym roku", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "hh:mm:ss a", + "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "w zeszły poniedziałek", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "w tym tygodniu", + "field-week-relative+1": "w przyszłym tygodniu" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pl/gregorian.js b/cldr/nls/pl/gregorian.js index 0084749d00..1255d6c3a0 100644 --- a/cldr/nls/pl/gregorian.js +++ b/cldr/nls/pl/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E, h:mm a", "days-standAlone-short": [ "niedz.", "pon.", @@ -24,21 +25,26 @@ define( "l", "g" ], + "field-second-relative+0": "teraz", "quarters-standAlone-narrow": [ - "K1", - "K2", - "K3", - "K4" + "1", + "2", + "3", + "4" ], - "field-weekday": "Dzień tygodnia", + "field-weekday": "dzień tygodnia", "dateFormatItem-yQQQ": "QQQ y", "dateFormatItem-yMEd": "E, d.MM.y", + "field-wed-relative+0": "w tę środę", + "field-wed-relative+1": "w przyszłą środę", + "dateFormatItem-GyMMMEd": "E, d MMM y G", "dateFormatItem-MMMEd": "E, d MMM", "eraNarrow": [ "p.n.e.", "n.e." ], "dateFormatItem-yMM": "MM.y", + "field-tue-relative+-1": "w zeszły wtorek", "dayPeriods-format-wide-earlyMorning": "nad ranem", "dayPeriods-format-wide-morning": "rano", "days-format-short": [ @@ -51,6 +57,8 @@ define( "sob." ], "dateFormat-long": "d MMMM y", + "field-fri-relative+-1": "w zeszły piątek", + "field-wed-relative+-1": "w zeszłą środę", "months-format-wide": [ "stycznia", "lutego", @@ -69,10 +77,11 @@ define( "dateTimeFormat-medium": "{1}, {0}", "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "EEEE, d MMMM y", + "field-thu-relative+-1": "w zeszły czwartek", "dateFormatItem-Md": "d.MM", "dayPeriods-format-wide-noon": "w południe", "dateFormatItem-yMd": "d.MM.y", - "field-era": "Era", + "field-era": "era", "dateFormatItem-yM": "MM.y", "months-standAlone-wide": [ "styczeń", @@ -97,9 +106,9 @@ define( ], "dateFormatItem-yQQQQ": "QQQQ y", "timeFormat-long": "HH:mm:ss z", - "field-year": "Rok", + "field-year": "rok", "dateFormatItem-yMMM": "LLL y", - "field-hour": "Godzina", + "field-hour": "godzina", "dateFormatItem-MMdd": "d.MM", "months-format-abbr": [ "sty", @@ -115,10 +124,15 @@ define( "lis", "gru" ], + "field-sat-relative+0": "w tę sobotę", + "field-sat-relative+1": "w przyszłą sobotę", "timeFormat-full": "HH:mm:ss zzzz", - "field-day-relative+0": "Dzisiaj", - "field-day-relative+1": "Jutro", - "field-day-relative+2": "Pojutrze", + "field-day-relative+0": "dzisiaj", + "field-thu-relative+0": "w ten czwartek", + "field-day-relative+1": "jutro", + "field-thu-relative+1": "w przyszły czwartek", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "pojutrze", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ "sty", @@ -146,6 +160,7 @@ define( "III kwartał", "IV kwartał" ], + "dateFormatItem-Gy": "y G", "dateFormatItem-M": "L", "days-standAlone-wide": [ "niedziela", @@ -158,7 +173,9 @@ define( ], "dateFormatItem-MMMMd": "d MMMM", "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "w tę niedzielę", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "w przyszłą niedzielę", "quarters-standAlone-abbr": [ "1 kw.", "2 kw.", @@ -169,8 +186,8 @@ define( "p.n.e.", "n.e." ], - "field-minute": "Minuta", - "field-dayperiod": "Dayperiod", + "field-minute": "minuta", + "field-dayperiod": "rano / po południu / wieczorem", "days-standAlone-abbr": [ "niedz.", "pon.", @@ -189,16 +206,18 @@ define( "3", "4" ], - "field-day-relative+-1": "Wczoraj", - "dateFormatItem-h": "hh a", + "field-day-relative+-1": "wczoraj", + "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", - "field-day-relative+-2": "Przedwczoraj", + "field-day-relative+-2": "przedwczoraj", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E, d.MM", "dayPeriods-format-wide-lateMorning": "przed południem", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "w ten piątek", "dateFormatItem-yMMMM": "LLLL y", - "field-day": "Dzień", + "field-fri-relative+1": "w przyszły piątek", + "field-day": "dzień", "days-format-wide": [ "niedziela", "poniedziałek", @@ -208,7 +227,7 @@ define( "piątek", "sobota" ], - "field-zone": "Strefa", + "field-zone": "strefa czasowa", "dateFormatItem-y": "y", "months-standAlone-narrow": [ "s", @@ -224,9 +243,9 @@ define( "l", "g" ], - "field-year-relative+-1": "Zeszły rok", - "field-month-relative+-1": "Zeszły miesiąc", - "dateFormatItem-hm": "hh:mm a", + "field-year-relative+-1": "w zeszłym roku", + "field-month-relative+-1": "w zeszłym miesiącu", + "dateFormatItem-hm": "h:mm a", "days-format-abbr": [ "niedz.", "pon.", @@ -236,11 +255,11 @@ define( "pt.", "sob." ], - "dateFormatItem-yMMMd": "d MMM y", "eraNames": [ "p.n.e.", "n.e." ], + "dateFormatItem-yMMMd": "d MMM y", "days-format-narrow": [ "N", "P", @@ -260,25 +279,37 @@ define( "S" ], "dateFormatItem-MMM": "LLL", - "field-month": "Miesiąc", + "field-month": "miesiąc", + "field-tue-relative+0": "w ten wtorek", + "field-tue-relative+1": "w przyszły wtorek", "dayPeriods-format-wide-am": "AM", + "dateFormatItem-EHm": "E, HH:mm", + "field-mon-relative+0": "w ten poniedziałek", + "field-mon-relative+1": "w przyszły poniedziałek", "dateFormat-short": "dd.MM.y", "dayPeriods-format-wide-afternoon": "po południu", - "field-second": "Sekunda", + "dateFormatItem-EHms": "E, HH:mm:ss", + "dateFormatItem-Ehms": "E, h:mm:ss a", + "field-second": "sekunda", + "field-sat-relative+-1": "w zeszłą sobotę", "dateFormatItem-yMMMEd": "E, d MMM y", - "field-month-relative+0": "Bieżący miesiąc", - "field-month-relative+1": "Przyszły miesiąc", + "field-sun-relative+-1": "w zeszłą niedzielę", + "field-month-relative+0": "w tym miesiącu", + "field-month-relative+1": "w przyszłym miesiącu", "dateFormatItem-Ed": "E, d", - "field-week": "Tydzień", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "field-week": "tydzień", "dateFormat-medium": "d MMM y", - "field-year-relative+0": "Bieżący rok", + "field-year-relative+0": "w tym roku", "field-week-relative+-1": "Zeszły tydzień", - "field-year-relative+1": "Przyszły rok", + "field-year-relative+1": "w przyszłym roku", "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-Hms": "HH:mm:ss", - "dateFormatItem-hms": "hh:mm:ss a", - "field-week-relative+0": "Bieżący tydzień", - "field-week-relative+1": "Przyszły tydzień" + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "w zeszły poniedziałek", + "field-week-relative+0": "w tym tygodniu", + "field-week-relative+1": "w przyszłym tygodniu" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pl/hebrew.js b/cldr/nls/pl/hebrew.js index 560e85203f..bd5d900011 100644 --- a/cldr/nls/pl/hebrew.js +++ b/cldr/nls/pl/hebrew.js @@ -10,15 +10,13 @@ define( "pt.", "sob." ], - "quarters-standAlone-narrow": [ - "K1", - "K2", - "K3", - "K4" - ], - "field-weekday": "Dzień tygodnia", + "field-second-relative+0": "teraz", + "field-weekday": "dzień tygodnia", + "field-wed-relative+0": "w tę środę", + "field-wed-relative+1": "w przyszłą środę", "dateFormatItem-GyMMMEd": "E, d MMM y G", "dateFormatItem-MMMEd": "E, d MMM", + "field-tue-relative+-1": "w zeszły wtorek", "days-format-short": [ "niedz.", "pon.", @@ -29,6 +27,8 @@ define( "sob." ], "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "w zeszły piątek", + "field-wed-relative+-1": "w zeszłą środę", "months-format-wide": [ "Tiszri", "Cheszwan", @@ -48,8 +48,10 @@ define( "dateTimeFormat-medium": "{1}, {0}", "dateFormat-full": "EEEE, d MMMM y G", "dateFormatItem-yyyyMEd": "E, d.MM.y G", + "field-thu-relative+-1": "w zeszły czwartek", "dateFormatItem-Md": "d.MM", - "field-era": "Era", + "dayPeriods-format-wide-noon": "w południe", + "field-era": "era", "months-standAlone-wide": [ "Tiszri", "Cheszwan", @@ -71,8 +73,8 @@ define( "III kwartał", "IV kwartał" ], - "field-year": "Rok", - "field-hour": "Godzina", + "field-year": "rok", + "field-hour": "godzina", "months-format-abbr-leap": "Adar II", "months-format-abbr": [ "Tiszri", @@ -89,10 +91,14 @@ define( "Aw", "Elul" ], - "field-day-relative+0": "Dzisiaj", - "field-day-relative+1": "Jutro", + "field-sat-relative+0": "w tę sobotę", + "field-sat-relative+1": "w przyszłą sobotę", + "field-day-relative+0": "dzisiaj", + "field-thu-relative+0": "w ten czwartek", + "field-day-relative+1": "jutro", + "field-thu-relative+1": "w przyszły czwartek", "dateFormatItem-GyMMMd": "d MMM y G", - "field-day-relative+2": "Pojutrze", + "field-day-relative+2": "pojutrze", "months-standAlone-abbr": [ "Tiszri", "Cheszwan", @@ -134,14 +140,16 @@ define( "dateFormatItem-yyyyMMM": "LLL y G", "dateFormatItem-yyyyMMMd": "d MMM y G", "months-standAlone-wide-leap": "Adar II", + "field-sun-relative+0": "w tę niedzielę", + "field-sun-relative+1": "w przyszłą niedzielę", "quarters-standAlone-abbr": [ "1 kw.", "2 kw.", "3 kw.", "4 kw." ], - "field-minute": "Minuta", - "field-dayperiod": "Dayperiod", + "field-minute": "minuta", + "field-dayperiod": "rano / po południu / wieczorem", "days-standAlone-abbr": [ "niedz.", "pon.", @@ -151,12 +159,16 @@ define( "pt.", "sob." ], - "field-day-relative+-1": "Wczoraj", + "field-day-relative+-1": "wczoraj", "dateFormatItem-h": "hh a", - "field-day-relative+-2": "Przedwczoraj", + "dateTimeFormat-long": "{1}, {0}", + "field-day-relative+-2": "przedwczoraj", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E, d.MM", - "field-day": "Dzień", + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "w ten piątek", + "field-fri-relative+1": "w przyszły piątek", + "field-day": "dzień", "days-format-wide": [ "niedziela", "poniedziałek", @@ -166,10 +178,10 @@ define( "piątek", "sobota" ], - "field-zone": "Strefa", + "field-zone": "strefa czasowa", "dateFormatItem-y": "y G", - "field-year-relative+-1": "Zeszły rok", - "field-month-relative+-1": "Zeszły miesiąc", + "field-year-relative+-1": "w zeszłym roku", + "field-month-relative+-1": "w zeszłym miesiącu", "dateFormatItem-hm": "hh:mm a", "days-format-abbr": [ "niedz.", @@ -190,7 +202,7 @@ define( "S" ], "dateFormatItem-yyyyMd": "d.MM.y G", - "field-month": "Miesiąc", + "field-month": "miesiąc", "days-standAlone-narrow": [ "N", "P", @@ -200,25 +212,32 @@ define( "P", "S" ], + "field-tue-relative+0": "w ten wtorek", + "field-tue-relative+1": "w przyszły wtorek", + "field-mon-relative+0": "w ten poniedziałek", + "field-mon-relative+1": "w przyszły poniedziałek", "dateFormat-short": "dd.MM.y G", - "field-second": "Sekunda", - "field-month-relative+0": "Bieżący miesiąc", - "field-month-relative+1": "Przyszły miesiąc", + "field-second": "sekunda", + "field-sat-relative+-1": "w zeszłą sobotę", + "field-sun-relative+-1": "w zeszłą niedzielę", + "field-month-relative+0": "w tym miesiącu", + "field-month-relative+1": "w przyszłym miesiącu", "dateFormatItem-Ed": "E, d", - "field-week": "Tydzień", + "field-week": "tydzień", "dateFormat-medium": "d MMM y G", - "field-year-relative+0": "Bieżący rok", + "field-year-relative+0": "w tym roku", "field-week-relative+-1": "Zeszły tydzień", "dateFormatItem-yyyyM": "MM.y G", - "field-year-relative+1": "Przyszły rok", + "field-year-relative+1": "w przyszłym roku", "dateFormatItem-yyyyQQQQ": "QQQQ y G", "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-hms": "hh:mm:ss a", "months-format-wide-leap": "Adar II", "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "w zeszły poniedziałek", "dateFormatItem-yyyy": "y G", - "field-week-relative+0": "Bieżący tydzień", - "field-week-relative+1": "Przyszły tydzień" + "field-week-relative+0": "w tym tygodniu", + "field-week-relative+1": "w przyszłym tygodniu" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pl/indian.js b/cldr/nls/pl/indian.js index 80af78abff..609b2bfee5 100644 --- a/cldr/nls/pl/indian.js +++ b/cldr/nls/pl/indian.js @@ -1,27 +1,20 @@ define( //begin v1.x content { - "field-second": "Sekunda", - "field-year-relative+-1": "Zeszły rok", - "field-week": "Tydzień", - "field-month-relative+-1": "Zeszły miesiąc", - "field-day-relative+-1": "Wczoraj", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12" - ], - "field-day-relative+-2": "Przedwczoraj", - "months-standAlone-wide": [ + "field-sat-relative+0": "w tę sobotę", + "field-sat-relative+1": "w przyszłą sobotę", + "field-dayperiod": "rano / po południu / wieczorem", + "field-sun-relative+-1": "w zeszłą niedzielę", + "field-mon-relative+-1": "w zeszły poniedziałek", + "field-minute": "minuta", + "field-day-relative+-1": "wczoraj", + "field-weekday": "dzień tygodnia", + "field-day-relative+-2": "przedwczoraj", + "field-era": "era", + "field-hour": "godzina", + "field-sun-relative+0": "w tę niedzielę", + "field-sun-relative+1": "w przyszłą niedzielę", + "months-standAlone-abbr": [ "Chaitra", "Vaisakha", "Jyaistha", @@ -35,9 +28,22 @@ define( "Magha", "Phalguna" ], - "field-year": "Rok", - "field-week-relative+0": "Bieżący tydzień", - "months-standAlone-abbr": [ + "field-wed-relative+-1": "w zeszłą środę", + "field-day-relative+0": "dzisiaj", + "field-day-relative+1": "jutro", + "field-day-relative+2": "pojutrze", + "field-tue-relative+0": "w ten wtorek", + "field-zone": "strefa czasowa", + "field-tue-relative+1": "w przyszły wtorek", + "field-week-relative+-1": "Zeszły tydzień", + "field-year-relative+0": "w tym roku", + "field-year-relative+1": "w przyszłym roku", + "field-sat-relative+-1": "w zeszłą sobotę", + "field-year-relative+-1": "w zeszłym roku", + "field-year": "rok", + "field-fri-relative+0": "w ten piątek", + "field-fri-relative+1": "w przyszły piątek", + "months-standAlone-wide": [ "Chaitra", "Vaisakha", "Jyaistha", @@ -51,21 +57,9 @@ define( "Magha", "Phalguna" ], - "field-week-relative+1": "Przyszły tydzień", - "field-minute": "Minuta", - "field-week-relative+-1": "Zeszły tydzień", - "field-day-relative+0": "Dzisiaj", - "field-hour": "Godzina", - "field-day-relative+1": "Jutro", - "field-day-relative+2": "Pojutrze", - "field-day": "Dzień", - "field-month-relative+0": "Bieżący miesiąc", - "field-month-relative+1": "Przyszły miesiąc", - "field-dayperiod": "Dayperiod", - "field-month": "Miesiąc", - "field-era": "Era", - "field-year-relative+0": "Bieżący rok", - "field-year-relative+1": "Przyszły rok", + "field-week": "tydzień", + "field-week-relative+0": "w tym tygodniu", + "field-week-relative+1": "w przyszłym tygodniu", "months-format-abbr": [ "Chaitra", "Vaisakha", @@ -80,8 +74,36 @@ define( "Magha", "Phalguna" ], - "field-weekday": "Dzień tygodnia", - "field-zone": "Strefa" + "field-month-relative+0": "w tym miesiącu", + "field-month": "miesiąc", + "field-month-relative+1": "w przyszłym miesiącu", + "field-fri-relative+-1": "w zeszły piątek", + "field-second": "sekunda", + "field-tue-relative+-1": "w zeszły wtorek", + "field-day": "dzień", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-mon-relative+0": "w ten poniedziałek", + "field-mon-relative+1": "w przyszły poniedziałek", + "field-thu-relative+0": "w ten czwartek", + "field-second-relative+0": "teraz", + "field-thu-relative+1": "w przyszły czwartek", + "field-wed-relative+0": "w tę środę", + "field-wed-relative+1": "w przyszłą środę", + "field-month-relative+-1": "w zeszłym miesiącu", + "field-thu-relative+-1": "w zeszły czwartek" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pl/islamic.js b/cldr/nls/pl/islamic.js index 2054ef733f..79aed7a7f5 100644 --- a/cldr/nls/pl/islamic.js +++ b/cldr/nls/pl/islamic.js @@ -1,130 +1,7 @@ define( //begin v1.x content { - "field-dayperiod": "Dayperiod", - "dateFormatItem-yyyyMMMEd": "E, d MMM y G", - "field-minute": "Minuta", - "dateFormatItem-MMMEd": "E, d MMM", - "field-day-relative+-1": "Wczoraj", - "field-weekday": "Dzień tygodnia", - "dateFormatItem-hms": "hh:mm:ss a", - "field-day-relative+-2": "Przedwczoraj", - "days-standAlone-wide": [ - "niedziela", - "poniedziałek", - "wtorek", - "środa", - "czwartek", - "piątek", - "sobota" - ], - "dateTimeFormat-short": "{1}, {0}", - "field-era": "Era", - "dateFormatItem-Gy": "y G", - "field-hour": "Godzina", - "dateTimeFormat-medium": "{1}, {0}", - "quarters-standAlone-abbr": [ - "1 kw.", - "2 kw.", - "3 kw.", - "4 kw." - ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ - "Muh.", - "Saf.", - "Rab. I", - "Rab. II", - "Dżu. I", - "Dżu. II", - "Ra.", - "Sza.", - "Ram.", - "Szaw.", - "Zu al-k.", - "Zu al-h." - ], - "dateFormatItem-Ed": "E, d", - "field-day-relative+0": "Dzisiaj", - "field-day-relative+1": "Jutro", - "days-standAlone-narrow": [ - "N", - "P", - "W", - "Ś", - "C", - "P", - "S" - ], - "field-day-relative+2": "Pojutrze", - "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormat-long": "d MMMM y G", - "field-zone": "Strefa", - "field-week-relative+-1": "Zeszły tydzień", - "dateFormat-medium": "d MMM y G", - "field-year-relative+0": "Bieżący rok", - "field-year-relative+1": "Przyszły rok", - "quarters-standAlone-wide": [ - "I kwartał", - "II kwartał", - "III kwartał", - "IV kwartał" - ], - "field-year-relative+-1": "Zeszły rok", - "field-year": "Rok", - "dateFormatItem-yyyyQQQQ": "QQQQ y G", - "quarters-standAlone-narrow": [ - "K1", - "K2", - "K3", - "K4" - ], - "months-standAlone-wide": [ - "Muharram", - "Safar", - "Rabi I", - "Rabi II", - "Dżumada I", - "Dżumada II", - "Radżab", - "Szaban", - "Ramadan", - "Szawwal", - "Zu al-kada", - "Zu al-hidżdża" - ], - "field-week": "Tydzień", - "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMd": "d.MM.y G", - "dateFormatItem-yyyyMEd": "E, d.MM.y G", - "field-week-relative+0": "Bieżący tydzień", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+1": "Przyszły tydzień", - "months-format-abbr": [ - "Muh.", - "Saf.", - "Rab. I", - "Rab. II", - "Dżu. I", - "Dżu. II", - "Ra.", - "Sza.", - "Ram.", - "Szaw.", - "Zu al-k.", - "Zu al-h." - ], - "field-month-relative+0": "Bieżący miesiąc", - "field-month": "Miesiąc", - "field-month-relative+1": "Przyszły miesiąc", - "quarters-format-abbr": [ - "K1", - "K2", - "K3", - "K4" - ], - "days-format-abbr": [ + "days-standAlone-short": [ "niedz.", "pon.", "wt.", @@ -133,21 +10,6 @@ define( "pt.", "sob." ], - "days-format-narrow": [ - "N", - "P", - "W", - "Ś", - "C", - "P", - "S" - ], - "field-second": "Sekunda", - "dateFormatItem-GyMMMEd": "E, d MMM y G", - "dateFormatItem-GyMMM": "LLL y G", - "field-day": "Dzień", - "dateFormatItem-yyyyQQQ": "QQQ y G", - "dateFormatItem-MEd": "E, d.MM", "months-format-narrow": [ "1", "2", @@ -162,7 +24,14 @@ define( "11", "12" ], - "days-standAlone-short": [ + "field-second-relative+0": "teraz", + "field-weekday": "dzień tygodnia", + "field-wed-relative+0": "w tę środę", + "field-wed-relative+1": "w przyszłą środę", + "dateFormatItem-GyMMMEd": "E, d MMM y G", + "dateFormatItem-MMMEd": "E, d MMM", + "field-tue-relative+-1": "w zeszły wtorek", + "days-format-short": [ "niedz.", "pon.", "wt.", @@ -171,25 +40,36 @@ define( "pt.", "sob." ], - "dateFormatItem-hm": "hh:mm a", - "days-standAlone-abbr": [ - "niedz.", - "pon.", - "wt.", - "śr.", - "czw.", - "pt.", - "sob." + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "w zeszły piątek", + "field-wed-relative+-1": "w zeszłą środę", + "months-format-wide": [ + "Muharram", + "Safar", + "Rabiʻ I", + "Rabiʻ II", + "Dżumada I", + "Dżumada II", + "Radżab", + "Szaban", + "Ramadan", + "Szawwal", + "Zu al-kada", + "Zu al-hidżdża" ], - "dateFormat-short": "dd.MM.y G", - "dateFormatItem-yyyyM": "MM.y G", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-medium": "{1}, {0}", "dateFormat-full": "EEEE, d MMMM y G", + "dateFormatItem-yyyyMEd": "E, d.MM.y G", + "field-thu-relative+-1": "w zeszły czwartek", "dateFormatItem-Md": "d.MM", - "months-format-wide": [ + "dayPeriods-format-wide-noon": "w południe", + "field-era": "era", + "months-standAlone-wide": [ "Muharram", "Safar", - "Rabi I", - "Rabi II", + "Rabiʻ I", + "Rabiʻ II", "Dżumada I", "Dżumada II", "Radżab", @@ -199,7 +79,86 @@ define( "Zu al-kada", "Zu al-hidżdża" ], - "days-format-short": [ + "quarters-format-wide": [ + "I kwartał", + "II kwartał", + "III kwartał", + "IV kwartał" + ], + "field-year": "rok", + "field-hour": "godzina", + "months-format-abbr": [ + "Muh.", + "Saf.", + "Rab. I", + "Rab. II", + "Dżu. I", + "Dżu. II", + "Ra.", + "Sza.", + "Ram.", + "Szaw.", + "Zu al-k.", + "Zu al-h." + ], + "field-sat-relative+0": "w tę sobotę", + "field-sat-relative+1": "w przyszłą sobotę", + "field-day-relative+0": "dzisiaj", + "field-thu-relative+0": "w ten czwartek", + "field-day-relative+1": "jutro", + "field-thu-relative+1": "w przyszły czwartek", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "pojutrze", + "months-standAlone-abbr": [ + "Muh.", + "Saf.", + "Rab. I", + "Rab. II", + "Dżu. I", + "Dżu. II", + "Ra.", + "Sza.", + "Ram.", + "Szaw.", + "Zu al-k.", + "Zu al-h." + ], + "quarters-format-abbr": [ + "K1", + "K2", + "K3", + "K4" + ], + "quarters-standAlone-wide": [ + "I kwartał", + "II kwartał", + "III kwartał", + "IV kwartał" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d MMM y G", + "days-standAlone-wide": [ + "niedziela", + "poniedziałek", + "wtorek", + "środa", + "czwartek", + "piątek", + "sobota" + ], + "dateFormatItem-yyyyMMM": "LLL y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "field-sun-relative+0": "w tę niedzielę", + "field-sun-relative+1": "w przyszłą niedzielę", + "quarters-standAlone-abbr": [ + "1 kw.", + "2 kw.", + "3 kw.", + "4 kw." + ], + "field-minute": "minuta", + "field-dayperiod": "rano / po południu / wieczorem", + "days-standAlone-abbr": [ "niedz.", "pon.", "wt.", @@ -208,14 +167,16 @@ define( "pt.", "sob." ], - "dateFormatItem-yyyyMMM": "LLL y G", - "field-month-relative+-1": "Zeszły miesiąc", - "quarters-format-wide": [ - "I kwartał", - "II kwartał", - "III kwartał", - "IV kwartał" - ], + "field-day-relative+-1": "wczoraj", + "dateFormatItem-h": "hh a", + "dateTimeFormat-long": "{1}, {0}", + "field-day-relative+-2": "przedwczoraj", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E, d.MM", + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "w ten piątek", + "field-fri-relative+1": "w przyszły piątek", + "field-day": "dzień", "days-format-wide": [ "niedziela", "poniedziałek", @@ -225,7 +186,65 @@ define( "piątek", "sobota" ], - "dateFormatItem-h": "hh a" + "field-zone": "strefa czasowa", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "w zeszłym roku", + "field-month-relative+-1": "w zeszłym miesiącu", + "dateFormatItem-hm": "hh:mm a", + "days-format-abbr": [ + "niedz.", + "pon.", + "wt.", + "śr.", + "czw.", + "pt.", + "sob." + ], + "days-format-narrow": [ + "N", + "P", + "W", + "Ś", + "C", + "P", + "S" + ], + "dateFormatItem-yyyyMd": "d.MM.y G", + "field-month": "miesiąc", + "days-standAlone-narrow": [ + "N", + "P", + "W", + "Ś", + "C", + "P", + "S" + ], + "field-tue-relative+0": "w ten wtorek", + "field-tue-relative+1": "w przyszły wtorek", + "field-mon-relative+0": "w ten poniedziałek", + "field-mon-relative+1": "w przyszły poniedziałek", + "dateFormat-short": "dd.MM.y G", + "field-second": "sekunda", + "field-sat-relative+-1": "w zeszłą sobotę", + "field-sun-relative+-1": "w zeszłą niedzielę", + "field-month-relative+0": "w tym miesiącu", + "field-month-relative+1": "w przyszłym miesiącu", + "dateFormatItem-Ed": "E, d", + "field-week": "tydzień", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "w tym roku", + "field-week-relative+-1": "Zeszły tydzień", + "dateFormatItem-yyyyM": "MM.y G", + "field-year-relative+1": "w przyszłym roku", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-hms": "hh:mm:ss a", + "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "w zeszły poniedziałek", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "w tym tygodniu", + "field-week-relative+1": "w przyszłym tygodniu" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pl/japanese.js b/cldr/nls/pl/japanese.js index 9a5359033a..4746bdf579 100644 --- a/cldr/nls/pl/japanese.js +++ b/cldr/nls/pl/japanese.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "dateFormat-medium": "d MMM y G", - "field-second": "Sekunda", - "field-year-relative+-1": "Zeszły rok", - "field-week": "Tydzień", - "field-month-relative+-1": "Zeszły miesiąc", - "field-day-relative+-1": "Wczoraj", - "field-day-relative+-2": "Przedwczoraj", - "field-year": "Rok", - "field-week-relative+0": "Bieżący tydzień", - "field-week-relative+1": "Przyszły tydzień", - "field-minute": "Minuta", - "field-week-relative+-1": "Zeszły tydzień", - "field-day-relative+0": "Dzisiaj", - "field-hour": "Godzina", - "field-day-relative+1": "Jutro", + "field-sat-relative+0": "w tę sobotę", + "field-sat-relative+1": "w przyszłą sobotę", + "field-dayperiod": "rano / po południu / wieczorem", + "field-sun-relative+-1": "w zeszłą niedzielę", + "field-mon-relative+-1": "w zeszły poniedziałek", + "field-minute": "minuta", + "field-day-relative+-1": "wczoraj", + "field-weekday": "dzień tygodnia", + "field-day-relative+-2": "przedwczoraj", + "field-era": "era", + "field-hour": "godzina", + "field-sun-relative+0": "w tę niedzielę", + "field-sun-relative+1": "w przyszłą niedzielę", + "field-wed-relative+-1": "w zeszłą środę", + "field-day-relative+0": "dzisiaj", + "field-day-relative+1": "jutro", + "field-day-relative+2": "pojutrze", "dateFormat-long": "d MMMM y G", - "field-day-relative+2": "Pojutrze", - "field-day": "Dzień", - "field-month-relative+0": "Bieżący miesiąc", - "field-month-relative+1": "Przyszły miesiąc", - "field-dayperiod": "Dayperiod", - "field-month": "Miesiąc", + "field-tue-relative+0": "w ten wtorek", + "field-zone": "strefa czasowa", + "field-tue-relative+1": "w przyszły wtorek", + "field-week-relative+-1": "Zeszły tydzień", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "w tym roku", + "field-year-relative+1": "w przyszłym roku", + "field-sat-relative+-1": "w zeszłą sobotę", + "field-year-relative+-1": "w zeszłym roku", + "field-year": "rok", + "field-fri-relative+0": "w ten piątek", + "field-fri-relative+1": "w przyszły piątek", + "field-week": "tydzień", + "field-week-relative+0": "w tym tygodniu", + "field-week-relative+1": "w przyszłym tygodniu", + "field-month-relative+0": "w tym miesiącu", + "field-month": "miesiąc", + "field-month-relative+1": "w przyszłym miesiącu", + "field-fri-relative+-1": "w zeszły piątek", + "field-second": "sekunda", + "field-tue-relative+-1": "w zeszły wtorek", + "field-day": "dzień", + "field-mon-relative+0": "w ten poniedziałek", + "field-mon-relative+1": "w przyszły poniedziałek", + "field-thu-relative+0": "w ten czwartek", + "field-second-relative+0": "teraz", "dateFormat-short": "dd.MM.y G", - "field-era": "Era", - "field-year-relative+0": "Bieżący rok", - "field-year-relative+1": "Przyszły rok", + "field-thu-relative+1": "w przyszły czwartek", "dateFormat-full": "EEEE, d MMMM y G", - "field-weekday": "Dzień tygodnia", - "field-zone": "Strefa" + "field-wed-relative+0": "w tę środę", + "field-wed-relative+1": "w przyszłą środę", + "field-month-relative+-1": "w zeszłym miesiącu", + "field-thu-relative+-1": "w zeszły czwartek" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pl/number.js b/cldr/nls/pl/number.js index d0be6d75b5..7483788307 100644 --- a/cldr/nls/pl/number.js +++ b/cldr/nls/pl/number.js @@ -10,6 +10,7 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", diff --git a/cldr/nls/pl/persian.js b/cldr/nls/pl/persian.js index f896513528..fab7de2dfe 100644 --- a/cldr/nls/pl/persian.js +++ b/cldr/nls/pl/persian.js @@ -24,15 +24,13 @@ define( "11", "12" ], - "quarters-standAlone-narrow": [ - "K1", - "K2", - "K3", - "K4" - ], - "field-weekday": "Dzień tygodnia", + "field-second-relative+0": "teraz", + "field-weekday": "dzień tygodnia", + "field-wed-relative+0": "w tę środę", + "field-wed-relative+1": "w przyszłą środę", "dateFormatItem-GyMMMEd": "E, d MMM y G", "dateFormatItem-MMMEd": "E, d MMM", + "field-tue-relative+-1": "w zeszły wtorek", "days-format-short": [ "niedz.", "pon.", @@ -43,6 +41,8 @@ define( "sob." ], "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "w zeszły piątek", + "field-wed-relative+-1": "w zeszłą środę", "months-format-wide": [ "Farwardin", "Ordibeheszt", @@ -61,8 +61,10 @@ define( "dateTimeFormat-medium": "{1}, {0}", "dateFormat-full": "EEEE, d MMMM y G", "dateFormatItem-yyyyMEd": "E, d.MM.y G", + "field-thu-relative+-1": "w zeszły czwartek", "dateFormatItem-Md": "d.MM", - "field-era": "Era", + "dayPeriods-format-wide-noon": "w południe", + "field-era": "era", "months-standAlone-wide": [ "Farwardin", "Ordibeheszt", @@ -83,8 +85,8 @@ define( "III kwartał", "IV kwartał" ], - "field-year": "Rok", - "field-hour": "Godzina", + "field-year": "rok", + "field-hour": "godzina", "months-format-abbr": [ "Farwardin", "Ordibeheszt", @@ -99,10 +101,14 @@ define( "Bahman", "Esfand" ], - "field-day-relative+0": "Dzisiaj", - "field-day-relative+1": "Jutro", + "field-sat-relative+0": "w tę sobotę", + "field-sat-relative+1": "w przyszłą sobotę", + "field-day-relative+0": "dzisiaj", + "field-thu-relative+0": "w ten czwartek", + "field-day-relative+1": "jutro", + "field-thu-relative+1": "w przyszły czwartek", "dateFormatItem-GyMMMd": "d MMM y G", - "field-day-relative+2": "Pojutrze", + "field-day-relative+2": "pojutrze", "months-standAlone-abbr": [ "Farwardin", "Ordibeheszt", @@ -142,14 +148,16 @@ define( ], "dateFormatItem-yyyyMMM": "LLL y G", "dateFormatItem-yyyyMMMd": "d MMM y G", + "field-sun-relative+0": "w tę niedzielę", + "field-sun-relative+1": "w przyszłą niedzielę", "quarters-standAlone-abbr": [ "1 kw.", "2 kw.", "3 kw.", "4 kw." ], - "field-minute": "Minuta", - "field-dayperiod": "Dayperiod", + "field-minute": "minuta", + "field-dayperiod": "rano / po południu / wieczorem", "days-standAlone-abbr": [ "niedz.", "pon.", @@ -159,12 +167,16 @@ define( "pt.", "sob." ], - "field-day-relative+-1": "Wczoraj", + "field-day-relative+-1": "wczoraj", "dateFormatItem-h": "hh a", - "field-day-relative+-2": "Przedwczoraj", + "dateTimeFormat-long": "{1}, {0}", + "field-day-relative+-2": "przedwczoraj", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E, d.MM", - "field-day": "Dzień", + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "w ten piątek", + "field-fri-relative+1": "w przyszły piątek", + "field-day": "dzień", "days-format-wide": [ "niedziela", "poniedziałek", @@ -174,7 +186,7 @@ define( "piątek", "sobota" ], - "field-zone": "Strefa", + "field-zone": "strefa czasowa", "dateFormatItem-y": "y G", "months-standAlone-narrow": [ "s", @@ -190,8 +202,8 @@ define( "l", "g" ], - "field-year-relative+-1": "Zeszły rok", - "field-month-relative+-1": "Zeszły miesiąc", + "field-year-relative+-1": "w zeszłym roku", + "field-month-relative+-1": "w zeszłym miesiącu", "dateFormatItem-hm": "hh:mm a", "days-format-abbr": [ "niedz.", @@ -212,7 +224,7 @@ define( "S" ], "dateFormatItem-yyyyMd": "d.MM.y G", - "field-month": "Miesiąc", + "field-month": "miesiąc", "days-standAlone-narrow": [ "N", "P", @@ -222,24 +234,31 @@ define( "P", "S" ], + "field-tue-relative+0": "w ten wtorek", + "field-tue-relative+1": "w przyszły wtorek", + "field-mon-relative+0": "w ten poniedziałek", + "field-mon-relative+1": "w przyszły poniedziałek", "dateFormat-short": "dd.MM.y G", - "field-second": "Sekunda", - "field-month-relative+0": "Bieżący miesiąc", - "field-month-relative+1": "Przyszły miesiąc", + "field-second": "sekunda", + "field-sat-relative+-1": "w zeszłą sobotę", + "field-sun-relative+-1": "w zeszłą niedzielę", + "field-month-relative+0": "w tym miesiącu", + "field-month-relative+1": "w przyszłym miesiącu", "dateFormatItem-Ed": "E, d", - "field-week": "Tydzień", + "field-week": "tydzień", "dateFormat-medium": "d MMM y G", - "field-year-relative+0": "Bieżący rok", + "field-year-relative+0": "w tym roku", "field-week-relative+-1": "Zeszły tydzień", "dateFormatItem-yyyyM": "MM.y G", - "field-year-relative+1": "Przyszły rok", + "field-year-relative+1": "w przyszłym roku", "dateFormatItem-yyyyQQQQ": "QQQQ y G", "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-hms": "hh:mm:ss a", "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "w zeszły poniedziałek", "dateFormatItem-yyyy": "y G", - "field-week-relative+0": "Bieżący tydzień", - "field-week-relative+1": "Przyszły tydzień" + "field-week-relative+0": "w tym tygodniu", + "field-week-relative+1": "w przyszłym tygodniu" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pl/roc.js b/cldr/nls/pl/roc.js index 2613aeddf0..a7edfec756 100644 --- a/cldr/nls/pl/roc.js +++ b/cldr/nls/pl/roc.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "field-second": "Sekunda", - "field-year-relative+-1": "Zeszły rok", - "field-week": "Tydzień", - "field-month-relative+-1": "Zeszły miesiąc", - "field-day-relative+-1": "Wczoraj", - "field-day-relative+-2": "Przedwczoraj", - "field-year": "Rok", - "field-week-relative+0": "Bieżący tydzień", - "field-week-relative+1": "Przyszły tydzień", - "field-minute": "Minuta", - "field-week-relative+-1": "Zeszły tydzień", - "field-day-relative+0": "Dzisiaj", - "field-hour": "Godzina", - "field-day-relative+1": "Jutro", - "field-day-relative+2": "Pojutrze", - "field-day": "Dzień", - "field-month-relative+0": "Bieżący miesiąc", - "field-month-relative+1": "Przyszły miesiąc", - "field-dayperiod": "Dayperiod", - "field-month": "Miesiąc", - "field-era": "Era", - "field-year-relative+0": "Bieżący rok", - "field-year-relative+1": "Przyszły rok", + "field-sat-relative+0": "w tę sobotę", + "field-sat-relative+1": "w przyszłą sobotę", + "field-dayperiod": "rano / po południu / wieczorem", + "field-sun-relative+-1": "w zeszłą niedzielę", + "field-mon-relative+-1": "w zeszły poniedziałek", + "field-minute": "minuta", + "field-day-relative+-1": "wczoraj", + "field-weekday": "dzień tygodnia", + "field-day-relative+-2": "przedwczoraj", + "field-era": "era", + "field-hour": "godzina", + "field-sun-relative+0": "w tę niedzielę", + "field-sun-relative+1": "w przyszłą niedzielę", + "field-wed-relative+-1": "w zeszłą środę", + "field-day-relative+0": "dzisiaj", + "field-day-relative+1": "jutro", "eraAbbr": [ "Przed ROC", "ROC" ], - "field-weekday": "Dzień tygodnia", - "field-zone": "Strefa" + "field-day-relative+2": "pojutrze", + "field-tue-relative+0": "w ten wtorek", + "field-zone": "strefa czasowa", + "field-tue-relative+1": "w przyszły wtorek", + "field-week-relative+-1": "Zeszły tydzień", + "field-year-relative+0": "w tym roku", + "field-year-relative+1": "w przyszłym roku", + "field-sat-relative+-1": "w zeszłą sobotę", + "field-year-relative+-1": "w zeszłym roku", + "field-year": "rok", + "field-fri-relative+0": "w ten piątek", + "field-fri-relative+1": "w przyszły piątek", + "field-week": "tydzień", + "field-week-relative+0": "w tym tygodniu", + "field-week-relative+1": "w przyszłym tygodniu", + "field-month-relative+0": "w tym miesiącu", + "field-month": "miesiąc", + "field-month-relative+1": "w przyszłym miesiącu", + "field-fri-relative+-1": "w zeszły piątek", + "field-second": "sekunda", + "field-tue-relative+-1": "w zeszły wtorek", + "field-day": "dzień", + "field-mon-relative+0": "w ten poniedziałek", + "field-mon-relative+1": "w przyszły poniedziałek", + "field-thu-relative+0": "w ten czwartek", + "field-second-relative+0": "teraz", + "field-thu-relative+1": "w przyszły czwartek", + "field-wed-relative+0": "w tę środę", + "field-wed-relative+1": "w przyszłą środę", + "field-month-relative+-1": "w zeszłym miesiącu", + "field-thu-relative+-1": "w zeszły czwartek" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt-pt/buddhist.js b/cldr/nls/pt-pt/buddhist.js index b6973fad54..ab9cc6bdb8 100644 --- a/cldr/nls/pt-pt/buddhist.js +++ b/cldr/nls/pt-pt/buddhist.js @@ -1,19 +1,16 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E, d/MM/y G", - "dateFormatItem-MMMEd": "E, d/MM", - "dateTimeFormat-full": "{1} 'às' {0}", - "days-standAlone-wide": [ - "Domingo", - "Segunda-feira", - "Terça-feira", - "Quarta-feira", - "Quinta-feira", - "Sexta-feira", - "Sábado" + "days-standAlone-short": [ + "do", + "sg", + "te", + "qu", + "qi", + "sx", + "sb" ], - "months-standAlone-narrow": [ + "months-format-narrow": [ "J", "F", "M", @@ -27,55 +24,48 @@ define( "N", "D" ], - "dateTimeFormat-short": "{1}, {0}", - "dateFormatItem-Gy": "y G", - "dateTimeFormat-medium": "{1}, {0}", - "quarters-standAlone-abbr": [ - "T1", - "T2", - "T3", - "T4" - ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ - "Jan", - "Fev", - "Mar", - "Abr", - "Mai", - "Jun", - "Jul", - "Ago", - "Set", - "Out", - "Nov", - "Dez" - ], - "dateFormatItem-Ed": "E, d", - "days-standAlone-narrow": [ - "D", - "S", - "T", - "Q", - "Q", - "S", - "S" + "field-weekday": "Dia da semana", + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", + "dateFormatItem-MMMEd": "E, d 'de' MMM", + "field-tue-relative+-1": "terça-feira passada", + "days-format-short": [ + "do", + "sg", + "te", + "qu", + "qi", + "sx", + "sb" ], - "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", "dateFormat-long": "d 'de' MMMM 'de' y G", - "field-zone": "Fuso horário", - "dateFormat-medium": "dd/MM/y G", - "dayPeriods-format-narrow-pm": "p.m.", - "quarters-standAlone-wide": [ - "1º trimestre", - "2º trimestre", - "3º trimestre", - "4º trimestre" + "field-fri-relative+-1": "sexta-feira passada", + "field-wed-relative+-1": "quarta-feira passada", + "months-format-wide": [ + "Janeiro", + "Fevereiro", + "Março", + "Abril", + "Maio", + "Junho", + "Julho", + "Agosto", + "Setembro", + "Outubro", + "Novembro", + "Dezembro" ], - "dateFormatItem-yyyyQQQQ": "QQQQ 'de' y G", - "dayPeriods-format-narrow-am": "a.m.", - "dateTimeFormat-long": "{1} 'às' {0}", + "dateFormatItem-yyyyQQQ": "QQQQ 'de' y G", + "dateTimeFormat-medium": "{1}, {0}", + "dayPeriods-format-wide-pm": "da tarde", + "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", + "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", + "field-thu-relative+-1": "quinta-feira passada", + "dateFormatItem-Md": "d/M", + "dayPeriods-format-abbr-am": "a.m.", + "dayPeriods-format-wide-noon": "meio-dia", + "field-era": "Era", "months-standAlone-wide": [ "Janeiro", "Fevereiro", @@ -90,10 +80,14 @@ define( "Novembro", "Dezembro" ], - "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", - "dateFormatItem-yyyyMMMd": "d/MM/y G", - "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", - "dateFormatItem-MMMd": "d/MM", + "quarters-format-wide": [ + "1.º trimestre", + "2.º trimestre", + "3.º trimestre", + "4.º trimestre" + ], + "field-year": "Ano", + "field-hour": "Hora", "months-format-abbr": [ "Jan", "Fev", @@ -108,13 +102,64 @@ define( "Nov", "Dez" ], + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-day-relative+0": "hoje", + "field-thu-relative+0": "esta quinta-feira", + "field-day-relative+1": "amanhã", + "field-thu-relative+1": "próxima quinta-feira", + "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", + "field-day-relative+2": "depois de amanhã", + "months-standAlone-abbr": [ + "Jan", + "Fev", + "Mar", + "Abr", + "Mai", + "Jun", + "Jul", + "Ago", + "Set", + "Out", + "Nov", + "Dez" + ], "quarters-format-abbr": [ "T1", "T2", "T3", "T4" ], - "days-format-abbr": [ + "quarters-standAlone-wide": [ + "1.º trimestre", + "2.º trimestre", + "3.º trimestre", + "4.º trimestre" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d/MM/y G", + "days-standAlone-wide": [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado" + ], + "dateFormatItem-yyyyMMM": "MM/y G", + "dateFormatItem-yyyyMMMd": "d/MM/y G", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", + "quarters-standAlone-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], + "field-minute": "Minuto", + "field-dayperiod": "Da manhã/da tarde", + "days-standAlone-abbr": [ "dom", "seg", "ter", @@ -123,20 +168,28 @@ define( "sex", "sáb" ], - "days-format-narrow": [ - "D", - "S", - "T", - "Q", - "Q", - "S", - "S" - ], - "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", - "dateFormatItem-GyMMM": "MMM 'de' y G", - "dateFormatItem-yyyyQQQ": "QQQQ 'de' y G", + "field-day-relative+-1": "ontem", + "dateTimeFormat-long": "{1} 'às' {0}", + "dayPeriods-format-narrow-am": "a.m.", + "field-day-relative+-2": "anteontem", + "dateFormatItem-MMMd": "d 'de' MMM", "dateFormatItem-MEd": "E, dd/MM", - "months-format-narrow": [ + "dateTimeFormat-full": "{1} 'às' {0}", + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "field-day": "Dia", + "days-format-wide": [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado" + ], + "field-zone": "Fuso horário", + "dateFormatItem-y": "y G", + "months-standAlone-narrow": [ "J", "F", "M", @@ -150,7 +203,10 @@ define( "N", "D" ], - "days-standAlone-short": [ + "field-year-relative+-1": "ano passado", + "field-month-relative+-1": "mês passado", + "dayPeriods-format-abbr-pm": "p.m.", + "days-format-abbr": [ "dom", "seg", "ter", @@ -159,60 +215,52 @@ define( "sex", "sáb" ], - "days-standAlone-abbr": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "sáb" + "days-format-narrow": [ + "D", + "S", + "T", + "Q", + "Q", + "S", + "S" ], - "dayPeriods-format-abbr-pm": "p.m.", + "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", + "field-month": "Mês", + "days-standAlone-narrow": [ + "D", + "S", + "T", + "Q", + "Q", + "S", + "S" + ], + "field-tue-relative+0": "esta terça-feira", + "field-tue-relative+1": "próxima terça-feira", + "dayPeriods-format-wide-am": "da manhã", + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", "dateFormat-short": "d/M/y G", + "field-second": "Segundo", + "field-sat-relative+-1": "sábado passado", + "field-sun-relative+-1": "domingo passado", + "field-month-relative+0": "este mês", + "field-month-relative+1": "próximo mês", + "dateFormatItem-Ed": "E, d", + "field-week": "Semana", + "dateFormat-medium": "d 'de' MMM, y G", + "field-year-relative+0": "este ano", + "field-week-relative+-1": "semana passada", "dateFormatItem-yyyyM": "MM/y GGGGG", - "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", - "dateFormatItem-Md": "d/M", - "months-format-wide": [ - "Janeiro", - "Fevereiro", - "Março", - "Abril", - "Maio", - "Junho", - "Julho", - "Agosto", - "Setembro", - "Outubro", - "Novembro", - "Dezembro" - ], - "dayPeriods-format-abbr-am": "a.m.", - "days-format-short": [ - "Do", - "Sg", - "Te", - "Qu", - "Qi", - "Sx", - "Sb" - ], - "dateFormatItem-yyyyMMM": "MM/y G", - "quarters-format-wide": [ - "1.º trimestre", - "2.º trimestre", - "3.º trimestre", - "4.º trimestre" - ], - "days-format-wide": [ - "Domingo", - "Segunda-feira", - "Terça-feira", - "Quarta-feira", - "Quinta-feira", - "Sexta-feira", - "Sábado" - ] + "field-year-relative+1": "próximo ano", + "dayPeriods-format-narrow-pm": "p.m.", + "dateFormatItem-yyyyQQQQ": "QQQQ 'de' y G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-GyMMM": "MMM 'de' y G", + "field-mon-relative+-1": "segunda-feira passada", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt-pt/chinese.js b/cldr/nls/pt-pt/chinese.js new file mode 100644 index 0000000000..fed0e26b66 --- /dev/null +++ b/cldr/nls/pt-pt/chinese.js @@ -0,0 +1,140 @@ +define( +//begin v1.x content +{ + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-dayperiod": "Da manhã/da tarde", + "field-sun-relative+-1": "domingo passado", + "field-mon-relative+-1": "segunda-feira passada", + "field-minute": "Minuto", + "field-day-relative+-1": "ontem", + "field-weekday": "Dia da semana", + "field-day-relative+-2": "anteontem", + "months-standAlone-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-era": "Era", + "field-hour": "Hora", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", + "months-standAlone-abbr": [ + "M1", + "M2", + "M3", + "M4", + "M5", + "M6", + "M7", + "M8", + "M9", + "M10", + "M11", + "M12" + ], + "field-wed-relative+-1": "quarta-feira passada", + "field-day-relative+0": "hoje", + "field-day-relative+1": "amanhã", + "field-day-relative+2": "depois de amanhã", + "dateFormat-long": "d 'de' MMMM 'de' U", + "field-tue-relative+0": "esta terça-feira", + "field-zone": "Fuso horário", + "field-tue-relative+1": "próxima terça-feira", + "field-week-relative+-1": "semana passada", + "dateFormat-medium": "d 'de' MMM 'de' U", + "field-year-relative+0": "este ano", + "field-year-relative+1": "próximo ano", + "field-sat-relative+-1": "sábado passado", + "field-year-relative+-1": "ano passado", + "field-year": "Ano", + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "months-standAlone-wide": [ + "Mês 1", + "Mês 2", + "Mês 3", + "Mês 4", + "Mês 5", + "Mês 6", + "Mês 7", + "Mês 8", + "Mês 9", + "Mês 10", + "Mês 11", + "Mês 12" + ], + "field-week": "Semana", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana", + "months-format-abbr": [ + "M1", + "M2", + "M3", + "M4", + "M5", + "M6", + "M7", + "M8", + "M9", + "M10", + "M11", + "M12" + ], + "field-month-relative+0": "este mês", + "field-month": "Mês", + "field-month-relative+1": "próximo mês", + "field-fri-relative+-1": "sexta-feira passada", + "field-second": "Segundo", + "field-tue-relative+-1": "terça-feira passada", + "field-day": "Dia", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", + "field-thu-relative+0": "esta quinta-feira", + "dateFormat-short": "dd/MM/yy", + "field-thu-relative+1": "próxima quinta-feira", + "dateFormat-full": "EEEE, d 'de' MMMM 'de' U", + "months-format-wide": [ + "Mês 1", + "Mês 2", + "Mês 3", + "Mês 4", + "Mês 5", + "Mês 6", + "Mês 7", + "Mês 8", + "Mês 9", + "Mês 10", + "Mês 11", + "Mês 12" + ], + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "field-month-relative+-1": "mês passado", + "field-thu-relative+-1": "quinta-feira passada" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/pt-pt/currency.js b/cldr/nls/pt-pt/currency.js index dd588dc71d..c36953d07a 100644 --- a/cldr/nls/pt-pt/currency.js +++ b/cldr/nls/pt-pt/currency.js @@ -1,8 +1,23 @@ define( //begin v1.x content { + "HKD_displayName": "Dólar de Hong Kong", + "CHF_displayName": "Franco suíço", + "JPY_symbol": "JP¥", "CAD_displayName": "Dólar canadiano", - "USD_displayName": "Dólar dos Estados Unidos" + "HKD_symbol": "HK$", + "CNY_displayName": "Yuan chinês", + "USD_symbol": "US$", + "AUD_displayName": "Dólar australiano", + "JPY_displayName": "Iene japonês", + "CAD_symbol": "CA$", + "USD_displayName": "Dólar dos Estados Unidos", + "EUR_symbol": "€", + "CNY_symbol": "CN¥", + "GBP_displayName": "Libra esterlina britânica", + "GBP_symbol": "£", + "AUD_symbol": "AU$", + "EUR_displayName": "Euro" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt-pt/generic.js b/cldr/nls/pt-pt/generic.js index c526c00aff..e88f7ff135 100644 --- a/cldr/nls/pt-pt/generic.js +++ b/cldr/nls/pt-pt/generic.js @@ -1,25 +1,88 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEEEEd": "EEEE, d/MM/y", - "dateFormatItem-MMMEd": "E, d/MM", - "dateFormatItem-yyyyMMM": "MM/y G", + "dateFormatItem-yyyyMMMMEd": "E, d 'de' MMMM 'de' y G", + "field-weekday": "Dia da semana", + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", + "dateFormatItem-MMMEd": "E, d 'de' MMM", + "field-tue-relative+-1": "terça-feira passada", + "dateFormat-long": "d 'de' MMMM 'de' y G", + "field-fri-relative+-1": "sexta-feira passada", + "field-wed-relative+-1": "quarta-feira passada", + "dateFormatItem-yyyyQQQ": "QQQQ 'de' y G", "dateTimeFormat-medium": "{1}, {0}", - "dateFormatItem-yyyyQQQQ": "QQQQ 'de' y G", - "dateFormatItem-yyyyMMMEd": "E, d/MM/y G", - "dateFormatItem-MMMMEd": "E, d 'de' MMMM", + "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", + "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", + "field-thu-relative+-1": "quinta-feira passada", + "dateFormatItem-Md": "d/M", + "field-era": "Era", + "field-year": "Ano", "dateFormatItem-yyyyMMMM": "MMMM 'de' y G", + "field-hour": "Hora", + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-day-relative+0": "hoje", + "field-thu-relative+0": "esta quinta-feira", + "field-day-relative+1": "amanhã", + "field-thu-relative+1": "próxima quinta-feira", + "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", + "field-day-relative+2": "depois de amanhã", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d/MM/y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MM/y G", + "dateFormatItem-yyyyMMMd": "d/MM/y G", "dateFormatItem-MMMMd": "d 'de' MMMM", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", + "field-minute": "Minuto", + "field-dayperiod": "Da manhã/da tarde", + "dateFormatItem-d": "d", + "field-day-relative+-1": "ontem", "dateTimeFormat-long": "{1} 'às' {0}", + "field-day-relative+-2": "anteontem", + "dateFormatItem-MMMd": "d 'de' MMM", + "dateFormatItem-MEd": "E, dd/MM", + "dateTimeFormat-full": "{1} 'às' {0}", + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "field-day": "Dia", + "field-zone": "Fuso horário", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "ano passado", + "field-month-relative+-1": "mês passado", "dateFormatItem-yyyyMMMMd": "d 'de' MMMM 'de' y G", - "dateFormatItem-yyyyQQQ": "QQQQ 'de' y G", - "dateFormatItem-yyyyMMMMEd": "E, d 'de' MMMM 'de' y G", + "dateFormatItem-yyyyMMMEEEEd": "EEEE, d/MM/y", + "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", + "field-month": "Mês", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "esta terça-feira", + "field-tue-relative+1": "próxima terça-feira", + "dateFormatItem-MMMMEd": "E, d 'de' MMMM", + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", "dateFormat-short": "d/M/y G", + "field-second": "Segundo", + "field-sat-relative+-1": "sábado passado", + "field-sun-relative+-1": "domingo passado", + "field-month-relative+0": "este mês", + "field-month-relative+1": "próximo mês", + "dateFormatItem-Ed": "E, d", + "field-week": "Semana", + "dateFormat-medium": "d 'de' MMM, y G", + "field-year-relative+0": "este ano", + "field-week-relative+-1": "semana passada", + "dateFormatItem-yyyyM": "MM/y GGGGG", + "field-year-relative+1": "próximo ano", + "dateFormatItem-yyyyQQQQ": "QQQQ 'de' y G", "dateTimeFormat-short": "{1}, {0}", - "dateTimeFormat-full": "{1} 'às' {0}", - "dateFormatItem-yyyyMMMd": "d/MM/y G", - "dateFormatItem-MMMd": "d/MM", - "field-zone": "Fuso horário" + "dateFormatItem-GyMMM": "MMM 'de' y G", + "field-mon-relative+-1": "segunda-feira passada", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt-pt/gregorian.js b/cldr/nls/pt-pt/gregorian.js index ac28fe429f..513d428321 100644 --- a/cldr/nls/pt-pt/gregorian.js +++ b/cldr/nls/pt-pt/gregorian.js @@ -1,31 +1,117 @@ define( //begin v1.x content { - "dayPeriods-format-wide-pm": "PM", - "dayPeriods-standAlone-abbr-pm": "p.m.", - "dateFormatItem-MMMEd": "E, d/MM", - "dateTimeFormat-full": "{1} 'às' {0}", + "dateFormatItem-Ehm": "E, h:mm a", + "days-standAlone-short": [ + "do", + "sg", + "te", + "qu", + "qi", + "sx", + "sb" + ], + "months-format-narrow": [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D" + ], + "quarters-standAlone-narrow": [ + "1", + "2", + "3", + "4" + ], + "field-weekday": "Dia da semana", "dateFormatItem-yQQQ": "QQQQ 'de' y", - "days-standAlone-wide": [ - "Domingo", - "Segunda-feira", - "Terça-feira", - "Quarta-feira", - "Quinta-feira", - "Sexta-feira", - "Sábado" + "dateFormatItem-yMEd": "E, dd/MM/y", + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", + "dateFormatItem-MMMEd": "E, d/MM", + "eraNarrow": [ + "a.C.", + "a.E.C.", + "d.C.", + "E.C." + ], + "dateFormatItem-yMM": "MM/y", + "field-tue-relative+-1": "terça-feira passada", + "days-format-short": [ + "do", + "sg", + "te", + "qu", + "qi", + "sx", + "sb" + ], + "dateFormat-long": "d 'de' MMMM 'de' y", + "field-fri-relative+-1": "sexta-feira passada", + "field-wed-relative+-1": "quarta-feira passada", + "months-format-wide": [ + "Janeiro", + "Fevereiro", + "Março", + "Abril", + "Maio", + "Junho", + "Julho", + "Agosto", + "Setembro", + "Outubro", + "Novembro", + "Dezembro" ], - "dateTimeFormat-short": "{1}, {0}", - "dayPeriods-format-wide-am": "AM", "dateTimeFormat-medium": "{1}, {0}", + "dateFormatItem-yMMMMd": "d 'de' MMMM 'de' y", + "dayPeriods-format-wide-pm": "da tarde", + "dateFormat-full": "EEEE, d 'de' MMMM 'de' y", + "field-thu-relative+-1": "quinta-feira passada", + "dateFormatItem-Md": "d/M", + "dayPeriods-standAlone-wide-pm": "p.m.", + "dayPeriods-format-abbr-am": "a.m.", + "dateFormatItem-yMd": "dd/MM/y", + "field-era": "Era", + "dateFormatItem-yM": "MM/y", + "months-standAlone-wide": [ + "Janeiro", + "Fevereiro", + "Março", + "Abril", + "Maio", + "Junho", + "Julho", + "Agosto", + "Setembro", + "Outubro", + "Novembro", + "Dezembro" + ], + "timeFormat-short": "HH:mm", "dayPeriods-standAlone-abbr-am": "a.m.", - "quarters-standAlone-abbr": [ + "quarters-format-wide": [ "1.º trimestre", "2.º trimestre", "3.º trimestre", "4.º trimestre" ], - "months-standAlone-abbr": [ + "dateFormatItem-yQQQQ": "QQQQ 'de' y", + "timeFormat-long": "HH:mm:ss z", + "field-year": "Ano", + "dateFormatItem-yMMM": "MM/y", + "field-hour": "Hora", + "dateFormatItem-MMdd": "dd/MM", + "months-format-abbr": [ "Jan", "Fev", "Mar", @@ -39,40 +125,17 @@ define( "Nov", "Dez" ], - "dayPeriods-standAlone-wide-pm": "p.m.", - "dateFormatItem-yMMM": "MM/y", - "dateFormatItem-yMMMMEd": "E, d 'de' MMMM 'de' y", - "field-zone": "Fuso horário", - "dayPeriods-standAlone-wide-am": "a.m.", - "dayPeriods-format-narrow-pm": "p.m.", - "dateFormatItem-yMMMEEEEd": "EEEE, d/MM/y", - "quarters-standAlone-wide": [ - "1.º trimestre", - "2.º trimestre", - "3.º trimestre", - "4.º trimestre" - ], - "dateFormatItem-yMMMM": "MMMM 'de' y", - "dateFormatItem-yMMMMd": "d 'de' MMMM 'de' y", - "dayPeriods-format-narrow-am": "a.m.", - "dateTimeFormat-long": "{1} 'às' {0}", - "months-standAlone-wide": [ - "Janeiro", - "Fevereiro", - "Março", - "Abril", - "Maio", - "Junho", - "Julho", - "Agosto", - "Setembro", - "Outubro", - "Novembro", - "Dezembro" - ], - "dateFormatItem-MMMMEd": "E, d 'de' MMMM", - "dateFormatItem-MMMd": "d/MM", - "months-format-abbr": [ + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "timeFormat-full": "HH:mm:ss zzzz", + "field-day-relative+0": "hoje", + "field-thu-relative+0": "esta quinta-feira", + "field-day-relative+1": "amanhã", + "field-thu-relative+1": "próxima quinta-feira", + "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", + "field-day-relative+2": "depois de amanhã", + "dateFormatItem-H": "HH", + "months-standAlone-abbr": [ "Jan", "Fev", "Mar", @@ -86,83 +149,179 @@ define( "Nov", "Dez" ], - "dateFormatItem-yQQQQ": "QQQQ 'de' y", - "dateFormatItem-MMMMd": "d 'de' MMMM", "quarters-format-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], + "quarters-standAlone-wide": [ "1.º trimestre", "2.º trimestre", "3.º trimestre", "4.º trimestre" ], - "days-format-abbr": [ - "Domingo", - "Segunda-feira", - "Terça-feira", - "Quarta-feira", - "Quinta-feira", - "Sexta-feira", - "Sábado" + "dateFormatItem-Gy": "y G", + "dateFormatItem-HHmmss": "HH:mm:ss", + "dateFormatItem-M": "L", + "days-standAlone-wide": [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado" ], - "dateFormatItem-yMMMd": "d/MM/y", - "days-standAlone-short": [ - "Do", - "Sg", - "Te", - "Qu", - "Qi", - "Sx", - "Sb" + "dateFormatItem-MMMMd": "d 'de' MMMM", + "dateFormatItem-yMMMEEEEd": "EEEE, d/MM/y", + "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "este domingo", + "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "próximo domingo", + "quarters-standAlone-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], + "eraAbbr": [ + "a.C.", + "a.E.C.", + "d.C.", + "E.C." ], + "field-minute": "Minuto", + "field-dayperiod": "Da manhã/da tarde", "days-standAlone-abbr": [ - "Domingo", - "Segunda-feira", - "Terça-feira", - "Quarta-feira", - "Quinta-feira", - "Sexta-feira", - "Sábado" + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb" + ], + "dateFormatItem-d": "d", + "dateFormatItem-ms": "mm:ss", + "quarters-format-narrow": [ + "1", + "2", + "3", + "4" + ], + "field-day-relative+-1": "ontem", + "dateFormatItem-h": "h a", + "dateTimeFormat-long": "{1} 'às' {0}", + "dayPeriods-format-narrow-am": "a.m.", + "field-day-relative+-2": "anteontem", + "dateFormatItem-MMMd": "d/MM", + "dateFormatItem-MEd": "E, dd/MM", + "dateTimeFormat-full": "{1} 'às' {0}", + "field-fri-relative+0": "esta sexta-feira", + "dateFormatItem-yMMMM": "MMMM 'de' y", + "field-fri-relative+1": "próxima sexta-feira", + "field-day": "Dia", + "days-format-wide": [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado" ], + "field-zone": "Fuso horário", + "months-standAlone-narrow": [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D" + ], + "dateFormatItem-y": "y", + "field-year-relative+-1": "ano passado", + "field-month-relative+-1": "mês passado", + "dateFormatItem-hm": "h:mm a", "dayPeriods-format-abbr-pm": "p.m.", - "dateFormatItem-yMMMEd": "E, d/MM/y", - "months-format-wide": [ - "Janeiro", - "Fevereiro", - "Março", - "Abril", - "Maio", - "Junho", - "Julho", - "Agosto", - "Setembro", - "Outubro", - "Novembro", - "Dezembro" + "days-format-abbr": [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb" ], - "dayPeriods-format-abbr-am": "a.m.", - "days-format-short": [ - "Do", - "Sg", - "Te", - "Qu", - "Qi", - "Sx", - "Sb" + "dayPeriods-standAlone-abbr-pm": "p.m.", + "dateFormatItem-yMMMd": "d/MM/y", + "eraNames": [ + "a.C.", + "a.E.C.", + "d.C.", + "E.C." ], - "quarters-format-wide": [ - "1.º trimestre", - "2.º trimestre", - "3.º trimestre", - "4.º trimestre" + "days-format-narrow": [ + "D", + "S", + "T", + "Q", + "Q", + "S", + "S" ], - "days-format-wide": [ - "Domingo", - "Segunda-feira", - "Terça-feira", - "Quarta-feira", - "Quinta-feira", - "Sexta-feira", - "Sábado" - ] + "days-standAlone-narrow": [ + "D", + "S", + "T", + "Q", + "Q", + "S", + "S" + ], + "dateFormatItem-MMM": "LLL", + "field-month": "Mês", + "dateFormatItem-HHmm": "HH:mm", + "field-tue-relative+0": "esta terça-feira", + "field-tue-relative+1": "próxima terça-feira", + "dayPeriods-format-wide-am": "da manhã", + "dayPeriods-standAlone-wide-am": "a.m.", + "dateFormatItem-MMMMEd": "E, d 'de' MMMM", + "dateFormatItem-EHm": "E, HH:mm", + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", + "dateFormat-short": "dd/MM/yy", + "dateFormatItem-EHms": "E, HH:mm:ss", + "dateFormatItem-yMMMMEd": "E, d 'de' MMMM 'de' y", + "dateFormatItem-Ehms": "E, h:mm:ss a", + "field-second": "Segundo", + "field-sat-relative+-1": "sábado passado", + "dateFormatItem-yMMMEd": "E, d/MM/y", + "field-sun-relative+-1": "domingo passado", + "field-month-relative+0": "este mês", + "field-month-relative+1": "próximo mês", + "dateFormatItem-Ed": "E, d", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "field-week": "Semana", + "dateFormat-medium": "dd/MM/y", + "field-year-relative+0": "este ano", + "field-week-relative+-1": "semana passada", + "field-year-relative+1": "próximo ano", + "dayPeriods-format-narrow-pm": "p.m.", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM 'de' y G", + "field-mon-relative+-1": "segunda-feira passada", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt-pt/hebrew.js b/cldr/nls/pt-pt/hebrew.js index 3825c7af8c..e118fe3393 100644 --- a/cldr/nls/pt-pt/hebrew.js +++ b/cldr/nls/pt-pt/hebrew.js @@ -1,63 +1,127 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E, d/MM/y G", - "dateFormatItem-MMMEd": "E, d/MM", - "dateTimeFormat-full": "{1} 'às' {0}", - "days-standAlone-wide": [ - "Domingo", - "Segunda-feira", - "Terça-feira", - "Quarta-feira", - "Quinta-feira", - "Sexta-feira", - "Sábado" + "days-standAlone-short": [ + "do", + "sg", + "te", + "qu", + "qi", + "sx", + "sb" ], - "dateTimeFormat-short": "{1}, {0}", - "dateFormatItem-Gy": "y G", + "field-weekday": "Dia da semana", + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", + "dateFormatItem-MMMEd": "E, d 'de' MMM", + "field-tue-relative+-1": "terça-feira passada", + "days-format-short": [ + "do", + "sg", + "te", + "qu", + "qi", + "sx", + "sb" + ], + "dateFormat-long": "d 'de' MMMM 'de' y G", + "field-fri-relative+-1": "sexta-feira passada", + "field-wed-relative+-1": "quarta-feira passada", + "dateFormatItem-yyyyQQQ": "QQQQ 'de' y G", "dateTimeFormat-medium": "{1}, {0}", - "quarters-standAlone-abbr": [ + "dayPeriods-format-wide-pm": "da tarde", + "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", + "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", + "field-thu-relative+-1": "quinta-feira passada", + "dateFormatItem-Md": "d/M", + "dayPeriods-format-abbr-am": "a.m.", + "dayPeriods-format-wide-noon": "meio-dia", + "field-era": "Era", + "quarters-format-wide": [ + "1.º trimestre", + "2.º trimestre", + "3.º trimestre", + "4.º trimestre" + ], + "field-year": "Ano", + "field-hour": "Hora", + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-day-relative+0": "hoje", + "field-thu-relative+0": "esta quinta-feira", + "field-day-relative+1": "amanhã", + "field-thu-relative+1": "próxima quinta-feira", + "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", + "field-day-relative+2": "depois de amanhã", + "quarters-format-abbr": [ "T1", "T2", "T3", "T4" ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E, d", - "days-standAlone-narrow": [ - "D", - "S", - "T", - "Q", - "Q", - "S", - "S" - ], - "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", - "dateFormat-long": "d 'de' MMMM 'de' y G", - "field-zone": "Fuso horário", - "dateFormat-medium": "dd/MM/y G", - "dayPeriods-format-narrow-pm": "p.m.", "quarters-standAlone-wide": [ - "1º trimestre", - "2º trimestre", - "3º trimestre", - "4º trimestre" + "1.º trimestre", + "2.º trimestre", + "3.º trimestre", + "4.º trimestre" ], - "dateFormatItem-yyyyQQQQ": "QQQQ 'de' y G", - "dayPeriods-format-narrow-am": "a.m.", - "dateTimeFormat-long": "{1} 'às' {0}", - "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d/MM/y G", + "days-standAlone-wide": [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado" + ], + "dateFormatItem-yyyyMMM": "MM/y G", "dateFormatItem-yyyyMMMd": "d/MM/y G", - "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", - "dateFormatItem-MMMd": "d/MM", - "quarters-format-abbr": [ + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", + "quarters-standAlone-abbr": [ "T1", "T2", "T3", "T4" ], + "field-minute": "Minuto", + "field-dayperiod": "Da manhã/da tarde", + "days-standAlone-abbr": [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb" + ], + "field-day-relative+-1": "ontem", + "dateTimeFormat-long": "{1} 'às' {0}", + "dayPeriods-format-narrow-am": "a.m.", + "field-day-relative+-2": "anteontem", + "dateFormatItem-MMMd": "d 'de' MMM", + "dateFormatItem-MEd": "E, dd/MM", + "dateTimeFormat-full": "{1} 'às' {0}", + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "field-day": "Dia", + "days-format-wide": [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado" + ], + "field-zone": "Fuso horário", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "ano passado", + "field-month-relative+-1": "mês passado", + "dayPeriods-format-abbr-pm": "p.m.", "days-format-abbr": [ "dom", "seg", @@ -76,59 +140,43 @@ define( "S", "S" ], - "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", - "dateFormatItem-GyMMM": "MMM 'de' y G", - "dateFormatItem-yyyyQQQ": "QQQQ 'de' y G", - "dateFormatItem-MEd": "E, dd/MM", - "days-standAlone-short": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "sáb" - ], - "days-standAlone-abbr": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "sáb" + "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", + "field-month": "Mês", + "days-standAlone-narrow": [ + "D", + "S", + "T", + "Q", + "Q", + "S", + "S" ], - "dayPeriods-format-abbr-pm": "p.m.", + "field-tue-relative+0": "esta terça-feira", + "field-tue-relative+1": "próxima terça-feira", + "dayPeriods-format-wide-am": "da manhã", + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", "dateFormat-short": "d/M/y G", + "field-second": "Segundo", + "field-sat-relative+-1": "sábado passado", + "field-sun-relative+-1": "domingo passado", + "field-month-relative+0": "este mês", + "field-month-relative+1": "próximo mês", + "dateFormatItem-Ed": "E, d", + "field-week": "Semana", + "dateFormat-medium": "d 'de' MMM, y G", + "field-year-relative+0": "este ano", + "field-week-relative+-1": "semana passada", "dateFormatItem-yyyyM": "MM/y GGGGG", - "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", - "dateFormatItem-Md": "d/M", - "dayPeriods-format-abbr-am": "a.m.", - "days-format-short": [ - "Do", - "Sg", - "Te", - "Qu", - "Qi", - "Sx", - "Sb" - ], - "dateFormatItem-yyyyMMM": "MM/y G", - "quarters-format-wide": [ - "1.º trimestre", - "2.º trimestre", - "3.º trimestre", - "4.º trimestre" - ], - "days-format-wide": [ - "Domingo", - "Segunda-feira", - "Terça-feira", - "Quarta-feira", - "Quinta-feira", - "Sexta-feira", - "Sábado" - ] + "field-year-relative+1": "próximo ano", + "dayPeriods-format-narrow-pm": "p.m.", + "dateFormatItem-yyyyQQQQ": "QQQQ 'de' y G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-GyMMM": "MMM 'de' y G", + "field-mon-relative+-1": "segunda-feira passada", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt-pt/islamic.js b/cldr/nls/pt-pt/islamic.js index 3825c7af8c..e118fe3393 100644 --- a/cldr/nls/pt-pt/islamic.js +++ b/cldr/nls/pt-pt/islamic.js @@ -1,63 +1,127 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E, d/MM/y G", - "dateFormatItem-MMMEd": "E, d/MM", - "dateTimeFormat-full": "{1} 'às' {0}", - "days-standAlone-wide": [ - "Domingo", - "Segunda-feira", - "Terça-feira", - "Quarta-feira", - "Quinta-feira", - "Sexta-feira", - "Sábado" + "days-standAlone-short": [ + "do", + "sg", + "te", + "qu", + "qi", + "sx", + "sb" ], - "dateTimeFormat-short": "{1}, {0}", - "dateFormatItem-Gy": "y G", + "field-weekday": "Dia da semana", + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", + "dateFormatItem-MMMEd": "E, d 'de' MMM", + "field-tue-relative+-1": "terça-feira passada", + "days-format-short": [ + "do", + "sg", + "te", + "qu", + "qi", + "sx", + "sb" + ], + "dateFormat-long": "d 'de' MMMM 'de' y G", + "field-fri-relative+-1": "sexta-feira passada", + "field-wed-relative+-1": "quarta-feira passada", + "dateFormatItem-yyyyQQQ": "QQQQ 'de' y G", "dateTimeFormat-medium": "{1}, {0}", - "quarters-standAlone-abbr": [ + "dayPeriods-format-wide-pm": "da tarde", + "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", + "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", + "field-thu-relative+-1": "quinta-feira passada", + "dateFormatItem-Md": "d/M", + "dayPeriods-format-abbr-am": "a.m.", + "dayPeriods-format-wide-noon": "meio-dia", + "field-era": "Era", + "quarters-format-wide": [ + "1.º trimestre", + "2.º trimestre", + "3.º trimestre", + "4.º trimestre" + ], + "field-year": "Ano", + "field-hour": "Hora", + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-day-relative+0": "hoje", + "field-thu-relative+0": "esta quinta-feira", + "field-day-relative+1": "amanhã", + "field-thu-relative+1": "próxima quinta-feira", + "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", + "field-day-relative+2": "depois de amanhã", + "quarters-format-abbr": [ "T1", "T2", "T3", "T4" ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E, d", - "days-standAlone-narrow": [ - "D", - "S", - "T", - "Q", - "Q", - "S", - "S" - ], - "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", - "dateFormat-long": "d 'de' MMMM 'de' y G", - "field-zone": "Fuso horário", - "dateFormat-medium": "dd/MM/y G", - "dayPeriods-format-narrow-pm": "p.m.", "quarters-standAlone-wide": [ - "1º trimestre", - "2º trimestre", - "3º trimestre", - "4º trimestre" + "1.º trimestre", + "2.º trimestre", + "3.º trimestre", + "4.º trimestre" ], - "dateFormatItem-yyyyQQQQ": "QQQQ 'de' y G", - "dayPeriods-format-narrow-am": "a.m.", - "dateTimeFormat-long": "{1} 'às' {0}", - "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d/MM/y G", + "days-standAlone-wide": [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado" + ], + "dateFormatItem-yyyyMMM": "MM/y G", "dateFormatItem-yyyyMMMd": "d/MM/y G", - "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", - "dateFormatItem-MMMd": "d/MM", - "quarters-format-abbr": [ + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", + "quarters-standAlone-abbr": [ "T1", "T2", "T3", "T4" ], + "field-minute": "Minuto", + "field-dayperiod": "Da manhã/da tarde", + "days-standAlone-abbr": [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb" + ], + "field-day-relative+-1": "ontem", + "dateTimeFormat-long": "{1} 'às' {0}", + "dayPeriods-format-narrow-am": "a.m.", + "field-day-relative+-2": "anteontem", + "dateFormatItem-MMMd": "d 'de' MMM", + "dateFormatItem-MEd": "E, dd/MM", + "dateTimeFormat-full": "{1} 'às' {0}", + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "field-day": "Dia", + "days-format-wide": [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado" + ], + "field-zone": "Fuso horário", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "ano passado", + "field-month-relative+-1": "mês passado", + "dayPeriods-format-abbr-pm": "p.m.", "days-format-abbr": [ "dom", "seg", @@ -76,59 +140,43 @@ define( "S", "S" ], - "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", - "dateFormatItem-GyMMM": "MMM 'de' y G", - "dateFormatItem-yyyyQQQ": "QQQQ 'de' y G", - "dateFormatItem-MEd": "E, dd/MM", - "days-standAlone-short": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "sáb" - ], - "days-standAlone-abbr": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "sáb" + "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", + "field-month": "Mês", + "days-standAlone-narrow": [ + "D", + "S", + "T", + "Q", + "Q", + "S", + "S" ], - "dayPeriods-format-abbr-pm": "p.m.", + "field-tue-relative+0": "esta terça-feira", + "field-tue-relative+1": "próxima terça-feira", + "dayPeriods-format-wide-am": "da manhã", + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", "dateFormat-short": "d/M/y G", + "field-second": "Segundo", + "field-sat-relative+-1": "sábado passado", + "field-sun-relative+-1": "domingo passado", + "field-month-relative+0": "este mês", + "field-month-relative+1": "próximo mês", + "dateFormatItem-Ed": "E, d", + "field-week": "Semana", + "dateFormat-medium": "d 'de' MMM, y G", + "field-year-relative+0": "este ano", + "field-week-relative+-1": "semana passada", "dateFormatItem-yyyyM": "MM/y GGGGG", - "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", - "dateFormatItem-Md": "d/M", - "dayPeriods-format-abbr-am": "a.m.", - "days-format-short": [ - "Do", - "Sg", - "Te", - "Qu", - "Qi", - "Sx", - "Sb" - ], - "dateFormatItem-yyyyMMM": "MM/y G", - "quarters-format-wide": [ - "1.º trimestre", - "2.º trimestre", - "3.º trimestre", - "4.º trimestre" - ], - "days-format-wide": [ - "Domingo", - "Segunda-feira", - "Terça-feira", - "Quarta-feira", - "Quinta-feira", - "Sexta-feira", - "Sábado" - ] + "field-year-relative+1": "próximo ano", + "dayPeriods-format-narrow-pm": "p.m.", + "dateFormatItem-yyyyQQQQ": "QQQQ 'de' y G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-GyMMM": "MMM 'de' y G", + "field-mon-relative+-1": "segunda-feira passada", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt-pt/japanese.js b/cldr/nls/pt-pt/japanese.js index 4adf6ce140..7cb2bd8e38 100644 --- a/cldr/nls/pt-pt/japanese.js +++ b/cldr/nls/pt-pt/japanese.js @@ -1,8 +1,53 @@ define( //begin v1.x content { + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-dayperiod": "Da manhã/da tarde", + "field-sun-relative+-1": "domingo passado", + "field-mon-relative+-1": "segunda-feira passada", + "field-minute": "Minuto", + "field-day-relative+-1": "ontem", + "field-weekday": "Dia da semana", + "field-day-relative+-2": "anteontem", + "field-era": "Era", + "field-hour": "Hora", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", + "field-wed-relative+-1": "quarta-feira passada", + "field-day-relative+0": "hoje", + "field-day-relative+1": "amanhã", + "field-day-relative+2": "depois de amanhã", + "field-tue-relative+0": "esta terça-feira", "field-zone": "Fuso horário", - "dateFormat-short": "d/M/y G" + "field-tue-relative+1": "próxima terça-feira", + "field-week-relative+-1": "semana passada", + "field-year-relative+0": "este ano", + "field-year-relative+1": "próximo ano", + "field-sat-relative+-1": "sábado passado", + "field-year-relative+-1": "ano passado", + "field-year": "Ano", + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "field-week": "Semana", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana", + "field-month-relative+0": "este mês", + "field-month": "Mês", + "field-month-relative+1": "próximo mês", + "field-fri-relative+-1": "sexta-feira passada", + "field-second": "Segundo", + "field-tue-relative+-1": "terça-feira passada", + "field-day": "Dia", + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", + "field-thu-relative+0": "esta quinta-feira", + "dateFormat-short": "d/M/y G", + "field-thu-relative+1": "próxima quinta-feira", + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "field-month-relative+-1": "mês passado", + "field-thu-relative+-1": "quinta-feira passada" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt-pt/number.js b/cldr/nls/pt-pt/number.js index e57de63448..2b15188cbc 100644 --- a/cldr/nls/pt-pt/number.js +++ b/cldr/nls/pt-pt/number.js @@ -2,10 +2,21 @@ define( //begin v1.x content { "group": " ", + "percentSign": "%", + "exponential": "E", + "scientificFormat": "#E0", + "percentFormat": "#,##0%", + "infinity": "∞", + "minusSign": "-", + "decimal": ",", + "superscriptingExponent": "×", + "nan": "NaN", + "perMille": "‰", + "decimalFormat": "#,##0.###", + "currencyFormat": "#,##0.00 ¤;(#,##0.00 ¤)", + "plusSign": "+", "decimalFormat-long": "000 biliões", - "currencyFormat": "#,##0.00 ¤", - "decimalFormat-short": "000 Bi", - "decimal": "," + "decimalFormat-short": "000 Bi" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt-pt/roc.js b/cldr/nls/pt-pt/roc.js index 4adf6ce140..7cb2bd8e38 100644 --- a/cldr/nls/pt-pt/roc.js +++ b/cldr/nls/pt-pt/roc.js @@ -1,8 +1,53 @@ define( //begin v1.x content { + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-dayperiod": "Da manhã/da tarde", + "field-sun-relative+-1": "domingo passado", + "field-mon-relative+-1": "segunda-feira passada", + "field-minute": "Minuto", + "field-day-relative+-1": "ontem", + "field-weekday": "Dia da semana", + "field-day-relative+-2": "anteontem", + "field-era": "Era", + "field-hour": "Hora", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", + "field-wed-relative+-1": "quarta-feira passada", + "field-day-relative+0": "hoje", + "field-day-relative+1": "amanhã", + "field-day-relative+2": "depois de amanhã", + "field-tue-relative+0": "esta terça-feira", "field-zone": "Fuso horário", - "dateFormat-short": "d/M/y G" + "field-tue-relative+1": "próxima terça-feira", + "field-week-relative+-1": "semana passada", + "field-year-relative+0": "este ano", + "field-year-relative+1": "próximo ano", + "field-sat-relative+-1": "sábado passado", + "field-year-relative+-1": "ano passado", + "field-year": "Ano", + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "field-week": "Semana", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana", + "field-month-relative+0": "este mês", + "field-month": "Mês", + "field-month-relative+1": "próximo mês", + "field-fri-relative+-1": "sexta-feira passada", + "field-second": "Segundo", + "field-tue-relative+-1": "terça-feira passada", + "field-day": "Dia", + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", + "field-thu-relative+0": "esta quinta-feira", + "dateFormat-short": "d/M/y G", + "field-thu-relative+1": "próxima quinta-feira", + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "field-month-relative+-1": "mês passado", + "field-thu-relative+-1": "quinta-feira passada" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt/buddhist.js b/cldr/nls/pt/buddhist.js index 80d8e4e628..e932adaf31 100644 --- a/cldr/nls/pt/buddhist.js +++ b/cldr/nls/pt/buddhist.js @@ -1,23 +1,16 @@ define( //begin v1.x content { - "field-dayperiod": "Período do dia", - "dateFormatItem-yyyyMMMEd": "E, d 'de' MMM 'de' y G", - "field-minute": "Minuto", - "dateFormatItem-MMMEd": "E, d 'de' MMM", - "field-day-relative+-1": "Ontem", - "field-weekday": "Dia da semana", - "field-day-relative+-2": "Anteontem", - "days-standAlone-wide": [ - "domingo", - "segunda-feira", - "terça-feira", - "quarta-feira", - "quinta-feira", - "sexta-feira", - "sábado" + "days-standAlone-short": [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb" ], - "months-standAlone-narrow": [ + "months-format-narrow": [ "J", "F", "M", @@ -31,65 +24,45 @@ define( "N", "D" ], - "field-era": "Era", - "dateFormatItem-Gy": "y G", - "field-hour": "Hora", - "quarters-standAlone-abbr": [ - "T1", - "T2", - "T3", - "T4" - ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ - "jan", - "fev", - "mar", - "abr", - "mai", - "jun", - "jul", - "ago", - "set", - "out", - "nov", - "dez" - ], - "dateFormatItem-Ed": "E, d", - "field-day-relative+0": "Hoje", - "field-day-relative+1": "Amanhã", - "days-standAlone-narrow": [ - "D", - "S", - "T", - "Q", - "Q", - "S", - "S" - ], - "eraAbbr": [ - "BE" + "field-second-relative+0": "agora", + "field-weekday": "Dia da semana", + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", + "dateFormatItem-MMMEd": "E, d 'de' MMM", + "field-tue-relative+-1": "terça-feira passada", + "days-format-short": [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb" ], - "field-day-relative+2": "Depois de amanhã", - "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", "dateFormat-long": "d 'de' MMMM 'de' y G", - "field-zone": "Fuso", - "field-week-relative+-1": "Semana passada", - "dateFormat-medium": "dd/MM/y G", - "dayPeriods-format-narrow-pm": "p", - "field-year-relative+0": "Este ano", - "field-year-relative+1": "Próximo ano", - "quarters-standAlone-wide": [ - "1º trimestre", - "2º trimestre", - "3º trimestre", - "4º trimestre" + "field-fri-relative+-1": "sexta-feira passada", + "field-wed-relative+-1": "quarta-feira passada", + "months-format-wide": [ + "janeiro", + "fevereiro", + "março", + "abril", + "maio", + "junho", + "julho", + "agosto", + "setembro", + "outubro", + "novembro", + "dezembro" ], - "field-year-relative+-1": "Ano passado", - "field-year": "Ano", - "dayPeriods-format-narrow-am": "a", - "field-week": "Semana", + "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", + "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", + "field-thu-relative+-1": "quinta-feira passada", + "dateFormatItem-Md": "d/M", + "dayPeriods-format-wide-noon": "meio-dia", + "field-era": "Era", "months-standAlone-wide": [ "janeiro", "fevereiro", @@ -104,12 +77,14 @@ define( "novembro", "dezembro" ], - "dateFormatItem-yyyyMMMd": "d 'de' MMM 'de' y G", - "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", - "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", - "field-week-relative+0": "Esta semana", - "dateFormatItem-MMMd": "d 'de' MMM", - "field-week-relative+1": "Próxima semana", + "quarters-format-wide": [ + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre" + ], + "field-year": "Ano", + "field-hour": "Hora", "months-format-abbr": [ "jan", "fev", @@ -124,16 +99,67 @@ define( "nov", "dez" ], - "field-month-relative+0": "Este mês", - "field-month": "Mês", - "field-month-relative+1": "Próximo mês", + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-day-relative+0": "hoje", + "field-thu-relative+0": "esta quinta-feira", + "field-day-relative+1": "amanhã", + "field-thu-relative+1": "próxima quinta-feira", + "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", + "field-day-relative+2": "depois de amanhã", + "months-standAlone-abbr": [ + "jan", + "fev", + "mar", + "abr", + "mai", + "jun", + "jul", + "ago", + "set", + "out", + "nov", + "dez" + ], "quarters-format-abbr": [ "T1", "T2", "T3", "T4" ], - "days-format-abbr": [ + "quarters-standAlone-wide": [ + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d 'de' MMM 'de' y G", + "days-standAlone-wide": [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado" + ], + "dateFormatItem-yyyyMMM": "MMM 'de' y G", + "dateFormatItem-yyyyMMMd": "d 'de' MMM 'de' y G", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", + "quarters-standAlone-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], + "eraAbbr": [ + "BE" + ], + "field-minute": "Minuto", + "field-dayperiod": "Período do dia", + "days-standAlone-abbr": [ "dom", "seg", "ter", @@ -142,21 +168,25 @@ define( "sex", "sáb" ], - "days-format-narrow": [ - "D", - "S", - "T", - "Q", - "Q", - "S", - "S" - ], - "field-second": "Segundo", - "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", - "dateFormatItem-GyMMM": "MMM 'de' y G", - "field-day": "Dia", + "field-day-relative+-1": "ontem", + "field-day-relative+-2": "anteontem", + "dateFormatItem-MMMd": "d 'de' MMM", "dateFormatItem-MEd": "E, dd/MM", - "months-format-narrow": [ + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "field-day": "Dia", + "days-format-wide": [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado" + ], + "field-zone": "Fuso", + "dateFormatItem-y": "y G", + "months-standAlone-narrow": [ "J", "F", "M", @@ -170,7 +200,9 @@ define( "N", "D" ], - "days-standAlone-short": [ + "field-year-relative+-1": "ano passado", + "field-month-relative+-1": "mês passado", + "days-format-abbr": [ "dom", "seg", "ter", @@ -179,59 +211,48 @@ define( "sex", "sáb" ], - "days-standAlone-abbr": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "sáb" + "days-format-narrow": [ + "D", + "S", + "T", + "Q", + "Q", + "S", + "S" ], + "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", + "field-month": "Mês", + "days-standAlone-narrow": [ + "D", + "S", + "T", + "Q", + "Q", + "S", + "S" + ], + "field-tue-relative+0": "esta terça-feira", + "field-tue-relative+1": "próxima terça-feira", + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", "dateFormat-short": "dd/MM/yy GGGGG", + "field-second": "Segundo", + "field-sat-relative+-1": "sábado passado", + "field-sun-relative+-1": "domingo passado", + "field-month-relative+0": "este mês", + "field-month-relative+1": "próximo mês", + "dateFormatItem-Ed": "E, d", + "field-week": "Semana", + "dateFormat-medium": "dd/MM/y G", + "field-year-relative+0": "este ano", + "field-week-relative+-1": "semana passada", "dateFormatItem-yyyyM": "MM/y GGGGG", - "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", - "dateFormatItem-Md": "d/M", - "months-format-wide": [ - "janeiro", - "fevereiro", - "março", - "abril", - "maio", - "junho", - "julho", - "agosto", - "setembro", - "outubro", - "novembro", - "dezembro" - ], - "days-format-short": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "sáb" - ], - "dateFormatItem-yyyyMMM": "MMM 'de' y G", - "field-month-relative+-1": "Mês passado", - "quarters-format-wide": [ - "1º trimestre", - "2º trimestre", - "3º trimestre", - "4º trimestre" - ], - "days-format-wide": [ - "domingo", - "segunda-feira", - "terça-feira", - "quarta-feira", - "quinta-feira", - "sexta-feira", - "sábado" - ] + "field-year-relative+1": "próximo ano", + "dateFormatItem-GyMMM": "MMM 'de' y G", + "field-mon-relative+-1": "segunda-feira passada", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt/chinese.js b/cldr/nls/pt/chinese.js index 654ae3ca97..b93d76ac5f 100644 --- a/cldr/nls/pt/chinese.js +++ b/cldr/nls/pt/chinese.js @@ -1,13 +1,16 @@ define( //begin v1.x content { - "dateFormat-medium": "dd/MM U", - "field-second": "Segundo", - "field-year-relative+-1": "Ano passado", - "field-week": "Semana", - "field-month-relative+-1": "Mês passado", - "field-day-relative+-1": "Ontem", - "months-format-narrow": [ + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-dayperiod": "Período do dia", + "field-sun-relative+-1": "domingo passado", + "field-mon-relative+-1": "segunda-feira passada", + "field-minute": "Minuto", + "field-day-relative+-1": "ontem", + "field-weekday": "Dia da semana", + "field-day-relative+-2": "anteontem", + "months-standAlone-narrow": [ "1", "2", "3", @@ -21,8 +24,11 @@ define( "11", "12" ], - "field-day-relative+-2": "Anteontem", - "months-standAlone-wide": [ + "field-era": "Era", + "field-hour": "Hora", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", + "months-standAlone-abbr": [ "1", "2", "3", @@ -36,9 +42,24 @@ define( "11", "12" ], + "field-wed-relative+-1": "quarta-feira passada", + "field-day-relative+0": "hoje", + "field-day-relative+1": "amanhã", + "field-day-relative+2": "depois de amanhã", + "dateFormat-long": "d 'de' MMMM 'de' U", + "field-tue-relative+0": "esta terça-feira", + "field-zone": "Fuso", + "field-tue-relative+1": "próxima terça-feira", + "field-week-relative+-1": "semana passada", + "dateFormat-medium": "dd/MM U", + "field-year-relative+0": "este ano", + "field-year-relative+1": "próximo ano", + "field-sat-relative+-1": "sábado passado", + "field-year-relative+-1": "ano passado", "field-year": "Ano", - "field-week-relative+0": "Esta semana", - "months-standAlone-abbr": [ + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "months-standAlone-wide": [ "1", "2", "3", @@ -52,23 +73,9 @@ define( "11", "12" ], - "field-week-relative+1": "Próxima semana", - "field-minute": "Minuto", - "field-week-relative+-1": "Semana passada", - "field-day-relative+0": "Hoje", - "field-hour": "Hora", - "field-day-relative+1": "Amanhã", - "dateFormat-long": "d 'de' MMMM 'de' U", - "field-day-relative+2": "Depois de amanhã", - "field-day": "Dia", - "field-month-relative+0": "Este mês", - "field-month-relative+1": "Próximo mês", - "field-dayperiod": "Período do dia", - "field-month": "Mês", - "dateFormat-short": "dd/MM/yy", - "field-era": "Era", - "field-year-relative+0": "Este ano", - "field-year-relative+1": "Próximo ano", + "field-week": "Semana", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana", "months-format-abbr": [ "1", "2", @@ -83,9 +90,52 @@ define( "11", "12" ], + "field-month-relative+0": "este mês", + "field-month": "Mês", + "field-month-relative+1": "próximo mês", + "field-fri-relative+-1": "sexta-feira passada", + "field-second": "Segundo", + "field-tue-relative+-1": "terça-feira passada", + "field-day": "Dia", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", + "field-thu-relative+0": "esta quinta-feira", + "field-second-relative+0": "agora", + "dateFormat-short": "dd/MM/yy", + "field-thu-relative+1": "próxima quinta-feira", "dateFormat-full": "EEEE, d 'de' MMMM 'de' U", - "field-weekday": "Dia da semana", - "field-zone": "Fuso" + "months-format-wide": [ + "Mês 1", + "Mês 2", + "Mês 3", + "Mês 4", + "Mês 5", + "Mês 6", + "Mês 7", + "Mês 8", + "Mês 9", + "Mês 10", + "Mês 11", + "Mês 12" + ], + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "field-month-relative+-1": "mês passado", + "field-thu-relative+-1": "quinta-feira passada" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt/coptic.js b/cldr/nls/pt/coptic.js index 6b8da74c28..a237e6c8b3 100644 --- a/cldr/nls/pt/coptic.js +++ b/cldr/nls/pt/coptic.js @@ -1,28 +1,20 @@ define( //begin v1.x content { - "field-second": "Segundo", - "field-year-relative+-1": "Ano passado", - "field-week": "Semana", - "field-month-relative+-1": "Mês passado", - "field-day-relative+-1": "Ontem", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], - "field-day-relative+-2": "Anteontem", - "months-standAlone-wide": [ + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-dayperiod": "Período do dia", + "field-sun-relative+-1": "domingo passado", + "field-mon-relative+-1": "segunda-feira passada", + "field-minute": "Minuto", + "field-day-relative+-1": "ontem", + "field-weekday": "Dia da semana", + "field-day-relative+-2": "anteontem", + "field-era": "Era", + "field-hour": "Hora", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", + "months-standAlone-abbr": [ "Tout", "Baba", "Hator", @@ -37,9 +29,22 @@ define( "Mesra", "Nasie" ], + "field-wed-relative+-1": "quarta-feira passada", + "field-day-relative+0": "hoje", + "field-day-relative+1": "amanhã", + "field-day-relative+2": "depois de amanhã", + "field-tue-relative+0": "esta terça-feira", + "field-zone": "Fuso", + "field-tue-relative+1": "próxima terça-feira", + "field-week-relative+-1": "semana passada", + "field-year-relative+0": "este ano", + "field-year-relative+1": "próximo ano", + "field-sat-relative+-1": "sábado passado", + "field-year-relative+-1": "ano passado", "field-year": "Ano", - "field-week-relative+0": "Esta semana", - "months-standAlone-abbr": [ + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "months-standAlone-wide": [ "Tout", "Baba", "Hator", @@ -54,21 +59,9 @@ define( "Mesra", "Nasie" ], - "field-week-relative+1": "Próxima semana", - "field-minute": "Minuto", - "field-week-relative+-1": "Semana passada", - "field-day-relative+0": "Hoje", - "field-hour": "Hora", - "field-day-relative+1": "Amanhã", - "field-day-relative+2": "Depois de amanhã", - "field-day": "Dia", - "field-month-relative+0": "Este mês", - "field-month-relative+1": "Próximo mês", - "field-dayperiod": "Período do dia", - "field-month": "Mês", - "field-era": "Era", - "field-year-relative+0": "Este ano", - "field-year-relative+1": "Próximo ano", + "field-week": "Semana", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana", "months-format-abbr": [ "Tout", "Baba", @@ -84,8 +77,37 @@ define( "Mesra", "Nasie" ], - "field-weekday": "Dia da semana", - "field-zone": "Fuso" + "field-month-relative+0": "este mês", + "field-month": "Mês", + "field-month-relative+1": "próximo mês", + "field-fri-relative+-1": "sexta-feira passada", + "field-second": "Segundo", + "field-tue-relative+-1": "terça-feira passada", + "field-day": "Dia", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", + "field-thu-relative+0": "esta quinta-feira", + "field-second-relative+0": "agora", + "field-thu-relative+1": "próxima quinta-feira", + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "field-month-relative+-1": "mês passado", + "field-thu-relative+-1": "quinta-feira passada" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt/ethiopic.js b/cldr/nls/pt/ethiopic.js index 1b5d2d0df7..792934d595 100644 --- a/cldr/nls/pt/ethiopic.js +++ b/cldr/nls/pt/ethiopic.js @@ -1,28 +1,20 @@ define( //begin v1.x content { - "field-second": "Segundo", - "field-year-relative+-1": "Ano passado", - "field-week": "Semana", - "field-month-relative+-1": "Mês passado", - "field-day-relative+-1": "Ontem", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], - "field-day-relative+-2": "Anteontem", - "months-standAlone-wide": [ + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-dayperiod": "Período do dia", + "field-sun-relative+-1": "domingo passado", + "field-mon-relative+-1": "segunda-feira passada", + "field-minute": "Minuto", + "field-day-relative+-1": "ontem", + "field-weekday": "Dia da semana", + "field-day-relative+-2": "anteontem", + "field-era": "Era", + "field-hour": "Hora", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", + "months-standAlone-abbr": [ "Meskerem", "Tekemt", "Hedar", @@ -37,9 +29,22 @@ define( "Nehasse", "Pagumen" ], + "field-wed-relative+-1": "quarta-feira passada", + "field-day-relative+0": "hoje", + "field-day-relative+1": "amanhã", + "field-day-relative+2": "depois de amanhã", + "field-tue-relative+0": "esta terça-feira", + "field-zone": "Fuso", + "field-tue-relative+1": "próxima terça-feira", + "field-week-relative+-1": "semana passada", + "field-year-relative+0": "este ano", + "field-year-relative+1": "próximo ano", + "field-sat-relative+-1": "sábado passado", + "field-year-relative+-1": "ano passado", "field-year": "Ano", - "field-week-relative+0": "Esta semana", - "months-standAlone-abbr": [ + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "months-standAlone-wide": [ "Meskerem", "Tekemt", "Hedar", @@ -54,21 +59,9 @@ define( "Nehasse", "Pagumen" ], - "field-week-relative+1": "Próxima semana", - "field-minute": "Minuto", - "field-week-relative+-1": "Semana passada", - "field-day-relative+0": "Hoje", - "field-hour": "Hora", - "field-day-relative+1": "Amanhã", - "field-day-relative+2": "Depois de amanhã", - "field-day": "Dia", - "field-month-relative+0": "Este mês", - "field-month-relative+1": "Próximo mês", - "field-dayperiod": "Período do dia", - "field-month": "Mês", - "field-era": "Era", - "field-year-relative+0": "Este ano", - "field-year-relative+1": "Próximo ano", + "field-week": "Semana", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana", "months-format-abbr": [ "Meskerem", "Tekemt", @@ -84,8 +77,37 @@ define( "Nehasse", "Pagumen" ], - "field-weekday": "Dia da semana", - "field-zone": "Fuso" + "field-month-relative+0": "este mês", + "field-month": "Mês", + "field-month-relative+1": "próximo mês", + "field-fri-relative+-1": "sexta-feira passada", + "field-second": "Segundo", + "field-tue-relative+-1": "terça-feira passada", + "field-day": "Dia", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", + "field-thu-relative+0": "esta quinta-feira", + "field-second-relative+0": "agora", + "field-thu-relative+1": "próxima quinta-feira", + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "field-month-relative+-1": "mês passado", + "field-thu-relative+-1": "quinta-feira passada" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt/generic.js b/cldr/nls/pt/generic.js index 7a3e7cb346..587dc4bca7 100644 --- a/cldr/nls/pt/generic.js +++ b/cldr/nls/pt/generic.js @@ -1,68 +1,90 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E, d 'de' MMM 'de' y G", - "field-dayperiod": "Período do dia", - "field-minute": "Minuto", - "dateFormatItem-MMMEd": "E, d 'de' MMM", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "Ontem", - "dateFormatItem-hms": "h:mm:ss a", - "field-day-relative+-2": "Anteontem", + "field-second-relative+0": "agora", "field-weekday": "Dia da semana", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "y G", + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", + "dateFormatItem-MMMEd": "E, d 'de' MMM", + "field-tue-relative+-1": "terça-feira passada", + "dateFormat-long": "d 'de' MMMM 'de' y G", + "field-fri-relative+-1": "sexta-feira passada", + "field-wed-relative+-1": "quarta-feira passada", + "dateFormatItem-yyyyQQQ": "G y QQQ", "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", + "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", + "field-thu-relative+-1": "quinta-feira passada", + "dateFormatItem-Md": "d/M", "field-era": "Era", + "field-year": "Ano", "field-hour": "Hora", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E, d", - "field-day-relative+0": "Hoje", - "field-day-relative+1": "Amanhã", - "field-day-relative+2": "Depois de amanhã", + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-day-relative+0": "hoje", + "field-thu-relative+0": "esta quinta-feira", + "field-day-relative+1": "amanhã", "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", - "dateFormat-long": "d 'de' MMMM 'de' y G", - "field-zone": "Fuso", + "field-day-relative+2": "depois de amanhã", + "field-thu-relative+1": "próxima quinta-feira", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d 'de' MMM 'de' y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM 'de' y G", + "dateFormatItem-yyyyMMMd": "d 'de' MMM 'de' y G", + "field-sun-relative+0": "este domingo", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "Semana passada", - "dateFormat-medium": "dd/MM/y G", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "Este ano", - "field-year-relative+1": "Próximo ano", - "field-year-relative+-1": "Ano passado", + "field-sun-relative+1": "próximo domingo", + "field-minute": "Minuto", + "field-dayperiod": "Período do dia", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "G y QQQQ", - "field-year": "Ano", + "field-day-relative+-1": "ontem", + "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", - "field-week": "Semana", - "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", - "dateFormatItem-yyyyMMMd": "d 'de' MMM 'de' y G", - "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", + "field-day-relative+-2": "anteontem", "dateFormatItem-MMMd": "d 'de' MMM", - "field-week-relative+0": "Esta semana", - "field-week-relative+1": "Próxima semana", - "field-month-relative+0": "Este mês", - "dateFormatItem-H": "HH", - "field-month": "Mês", - "field-month-relative+1": "Próximo mês", - "dateFormatItem-M": "L", - "field-second": "Segundo", - "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", - "dateFormatItem-GyMMM": "MMM 'de' y G", - "field-day": "Dia", "dateFormatItem-MEd": "E, dd/MM", - "dateFormatItem-yyyyQQQ": "G y QQQ", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "field-day": "Dia", + "field-zone": "Fuso", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "ano passado", + "field-month-relative+-1": "mês passado", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", + "field-month": "Mês", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "esta terça-feira", + "field-tue-relative+1": "próxima terça-feira", + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", "dateFormat-short": "dd/MM/yy GGGGG", + "field-second": "Segundo", + "field-sat-relative+-1": "sábado passado", + "field-sun-relative+-1": "domingo passado", + "field-month-relative+0": "este mês", + "field-month-relative+1": "próximo mês", + "dateFormatItem-Ed": "E, d", + "field-week": "Semana", + "dateFormat-medium": "dd/MM/y G", + "field-year-relative+0": "este ano", + "field-week-relative+-1": "semana passada", "dateFormatItem-yyyyM": "MM/y GGGGG", - "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", - "dateFormatItem-Md": "d/M", - "dateFormatItem-yyyyMMM": "MMM 'de' y G", - "dateFormatItem-d": "d", - "field-month-relative+-1": "Mês passado", - "dateFormatItem-h": "h a" + "field-year-relative+1": "próximo ano", + "dateFormatItem-yyyyQQQQ": "G y QQQQ", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM 'de' y G", + "field-mon-relative+-1": "segunda-feira passada", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt/gregorian.js b/cldr/nls/pt/gregorian.js index 8a0a4a880e..b17df34020 100644 --- a/cldr/nls/pt/gregorian.js +++ b/cldr/nls/pt/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E, h:mm a", "days-standAlone-short": [ "dom", "seg", @@ -24,6 +25,7 @@ define( "N", "D" ], + "field-second-relative+0": "agora", "quarters-standAlone-narrow": [ "1", "2", @@ -33,6 +35,8 @@ define( "field-weekday": "Dia da semana", "dateFormatItem-yQQQ": "y QQQ", "dateFormatItem-yMEd": "E, dd/MM/y", + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", "dateFormatItem-MMMEd": "E, d 'de' MMM", "eraNarrow": [ @@ -40,6 +44,7 @@ define( "d.C." ], "dateFormatItem-yMM": "MM/y", + "field-tue-relative+-1": "terça-feira passada", "dayPeriods-format-wide-morning": "manhã", "days-format-short": [ "dom", @@ -51,6 +56,8 @@ define( "sáb" ], "dateFormat-long": "d 'de' MMMM 'de' y", + "field-fri-relative+-1": "sexta-feira passada", + "field-wed-relative+-1": "quarta-feira passada", "months-format-wide": [ "janeiro", "fevereiro", @@ -68,6 +75,7 @@ define( "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "EEEE, d 'de' MMMM 'de' y", + "field-thu-relative+-1": "quinta-feira passada", "dateFormatItem-Md": "d/M", "dayPeriods-format-abbr-am": "AM", "dayPeriods-format-wide-noon": "meio-dia", @@ -115,11 +123,15 @@ define( "nov", "dez" ], + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", "timeFormat-full": "HH:mm:ss zzzz", - "field-day-relative+0": "Hoje", - "field-day-relative+1": "Amanhã", + "field-day-relative+0": "hoje", + "field-thu-relative+0": "esta quinta-feira", + "field-day-relative+1": "amanhã", + "field-thu-relative+1": "próxima quinta-feira", "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", - "field-day-relative+2": "Depois de amanhã", + "field-day-relative+2": "depois de amanhã", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ "jan", @@ -160,7 +172,9 @@ define( "sábado" ], "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "este domingo", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "próximo domingo", "quarters-standAlone-abbr": [ "T1", "T2", @@ -191,14 +205,16 @@ define( "3", "4" ], - "field-day-relative+-1": "Ontem", + "field-day-relative+-1": "ontem", "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", "dayPeriods-format-narrow-am": "a", - "field-day-relative+-2": "Anteontem", + "field-day-relative+-2": "anteontem", "dateFormatItem-MMMd": "d 'de' MMM", "dateFormatItem-MEd": "E, dd/MM", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", "field-day": "Dia", "days-format-wide": [ "domingo", @@ -225,8 +241,8 @@ define( "N", "D" ], - "field-year-relative+-1": "Ano passado", - "field-month-relative+-1": "Mês passado", + "field-year-relative+-1": "ano passado", + "field-month-relative+-1": "mês passado", "dateFormatItem-hm": "h:mm a", "dayPeriods-format-abbr-pm": "PM", "days-format-abbr": [ @@ -264,26 +280,37 @@ define( "dateFormatItem-MMM": "LLL", "field-month": "Mês", "dateFormatItem-HHmm": "HH:mm", + "field-tue-relative+0": "esta terça-feira", + "field-tue-relative+1": "próxima terça-feira", "dayPeriods-format-wide-am": "AM", + "dateFormatItem-EHm": "E, HH:mm", + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", "dateFormat-short": "dd/MM/yy", "dayPeriods-format-wide-afternoon": "tarde", + "dateFormatItem-EHms": "E, HH:mm:ss", + "dateFormatItem-Ehms": "E, h:mm:ss a", "field-second": "Segundo", + "field-sat-relative+-1": "sábado passado", "dateFormatItem-yMMMEd": "E, d 'de' MMM 'de' y", - "field-month-relative+0": "Este mês", - "field-month-relative+1": "Próximo mês", + "field-sun-relative+-1": "domingo passado", + "field-month-relative+0": "este mês", + "field-month-relative+1": "próximo mês", "dateFormatItem-Ed": "E, d", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "Semana", "dateFormat-medium": "dd/MM/y", - "field-year-relative+0": "Este ano", - "field-week-relative+-1": "Semana passada", - "field-year-relative+1": "Próximo ano", + "field-year-relative+0": "este ano", + "field-week-relative+-1": "semana passada", + "field-year-relative+1": "próximo ano", "dayPeriods-format-narrow-pm": "p", "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "MMM 'de' y G", - "field-week-relative+0": "Esta semana", - "field-week-relative+1": "Próxima semana" + "field-mon-relative+-1": "segunda-feira passada", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt/hebrew.js b/cldr/nls/pt/hebrew.js index 42fe73faab..28cef997d4 100644 --- a/cldr/nls/pt/hebrew.js +++ b/cldr/nls/pt/hebrew.js @@ -1,36 +1,35 @@ define( //begin v1.x content { - "field-dayperiod": "Período do dia", - "dateFormatItem-yyyyMMMEd": "E, d 'de' MMM 'de' y G", - "months-standAlone-abbr-leap": "Adar II", - "field-minute": "Minuto", - "dateFormatItem-MMMEd": "E, d 'de' MMM", - "field-day-relative+-1": "Ontem", - "field-weekday": "Dia da semana", - "field-day-relative+-2": "Anteontem", - "days-standAlone-wide": [ - "domingo", - "segunda-feira", - "terça-feira", - "quarta-feira", - "quinta-feira", - "sexta-feira", - "sábado" + "days-standAlone-short": [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb" ], - "field-era": "Era", - "dateFormatItem-Gy": "y G", - "field-hour": "Hora", - "months-format-abbr-leap": "Adar II", - "quarters-standAlone-abbr": [ - "T1", - "T2", - "T3", - "T4" + "field-second-relative+0": "agora", + "field-weekday": "Dia da semana", + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", + "dateFormatItem-MMMEd": "E, d 'de' MMM", + "field-tue-relative+-1": "terça-feira passada", + "days-format-short": [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb" ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ + "dateFormat-long": "d 'de' MMMM 'de' y G", + "field-fri-relative+-1": "sexta-feira passada", + "field-wed-relative+-1": "quarta-feira passada", + "months-format-wide": [ "Tishri", "Heshvan", "Kislev", @@ -45,37 +44,37 @@ define( "Av", "Elul" ], - "dateFormatItem-Ed": "E, d", - "field-day-relative+0": "Hoje", - "field-day-relative+1": "Amanhã", - "days-standAlone-narrow": [ - "D", - "S", - "T", - "Q", - "Q", - "S", - "S" + "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", + "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", + "field-thu-relative+-1": "quinta-feira passada", + "dateFormatItem-Md": "d/M", + "dayPeriods-format-wide-noon": "meio-dia", + "field-era": "Era", + "months-standAlone-wide": [ + "Tishri", + "Heshvan", + "Kislev", + "Tevet", + "Shevat", + "Adar I", + "Adar", + "Nisan", + "Iyar", + "Sivan", + "Tamuz", + "Av", + "Elul" ], - "field-day-relative+2": "Depois de amanhã", - "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", - "dateFormat-long": "d 'de' MMMM 'de' y G", - "field-zone": "Fuso", - "field-week-relative+-1": "Semana passada", - "dateFormat-medium": "dd/MM/y G", - "dayPeriods-format-narrow-pm": "p", - "field-year-relative+0": "Este ano", - "field-year-relative+1": "Próximo ano", - "quarters-standAlone-wide": [ + "quarters-format-wide": [ "1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre" ], - "field-year-relative+-1": "Ano passado", "field-year": "Ano", - "dayPeriods-format-narrow-am": "a", - "months-standAlone-wide": [ + "field-hour": "Hora", + "months-format-abbr-leap": "Adar II", + "months-format-abbr": [ "Tishri", "Heshvan", "Kislev", @@ -90,14 +89,15 @@ define( "Av", "Elul" ], - "field-week": "Semana", - "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", - "dateFormatItem-yyyyMMMd": "d 'de' MMM 'de' y G", - "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", - "dateFormatItem-MMMd": "d 'de' MMM", - "field-week-relative+0": "Esta semana", - "field-week-relative+1": "Próxima semana", - "months-format-abbr": [ + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-day-relative+0": "hoje", + "field-thu-relative+0": "esta quinta-feira", + "field-day-relative+1": "amanhã", + "field-thu-relative+1": "próxima quinta-feira", + "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", + "field-day-relative+2": "depois de amanhã", + "months-standAlone-abbr": [ "Tishri", "Heshvan", "Kislev", @@ -112,47 +112,42 @@ define( "Av", "Elul" ], - "field-month-relative+0": "Este mês", - "field-month": "Mês", - "field-month-relative+1": "Próximo mês", "quarters-format-abbr": [ "T1", "T2", "T3", "T4" ], - "days-format-abbr": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "sáb" + "quarters-standAlone-wide": [ + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre" ], - "days-format-narrow": [ - "D", - "S", - "T", - "Q", - "Q", - "S", - "S" + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d 'de' MMM 'de' y G", + "days-standAlone-wide": [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado" ], - "field-second": "Segundo", - "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", - "dateFormatItem-GyMMM": "MMM 'de' y G", - "field-day": "Dia", - "dateFormatItem-MEd": "E, dd/MM", - "days-standAlone-short": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "sáb" + "dateFormatItem-yyyyMMM": "MMM 'de' y G", + "dateFormatItem-yyyyMMMd": "d 'de' MMM 'de' y G", + "months-standAlone-wide-leap": "Adar II", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", + "quarters-standAlone-abbr": [ + "T1", + "T2", + "T3", + "T4" ], + "field-minute": "Minuto", + "field-dayperiod": "Período do dia", "days-standAlone-abbr": [ "dom", "seg", @@ -162,27 +157,28 @@ define( "sex", "sáb" ], - "months-standAlone-wide-leap": "Adar II", - "dateFormat-short": "dd/MM/yy GGGGG", - "dateFormatItem-yyyyM": "MM/y GGGGG", - "dateFormatItem-Md": "d/M", - "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", - "months-format-wide": [ - "Tishri", - "Heshvan", - "Kislev", - "Tevet", - "Shevat", - "Adar I", - "Adar", - "Nisan", - "Iyar", - "Sivan", - "Tamuz", - "Av", - "Elul" + "field-day-relative+-1": "ontem", + "field-day-relative+-2": "anteontem", + "dateFormatItem-MMMd": "d 'de' MMM", + "dateFormatItem-MEd": "E, dd/MM", + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "field-day": "Dia", + "days-format-wide": [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado" ], - "days-format-short": [ + "field-zone": "Fuso", + "months-standAlone-abbr-leap": "Adar II", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "ano passado", + "field-month-relative+-1": "mês passado", + "days-format-abbr": [ "dom", "seg", "ter", @@ -191,24 +187,49 @@ define( "sex", "sáb" ], - "dateFormatItem-yyyyMMM": "MMM 'de' y G", - "months-format-wide-leap": "Adar II", - "field-month-relative+-1": "Mês passado", - "quarters-format-wide": [ - "1º trimestre", - "2º trimestre", - "3º trimestre", - "4º trimestre" + "days-format-narrow": [ + "D", + "S", + "T", + "Q", + "Q", + "S", + "S" ], - "days-format-wide": [ - "domingo", - "segunda-feira", - "terça-feira", - "quarta-feira", - "quinta-feira", - "sexta-feira", - "sábado" - ] + "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", + "field-month": "Mês", + "days-standAlone-narrow": [ + "D", + "S", + "T", + "Q", + "Q", + "S", + "S" + ], + "field-tue-relative+0": "esta terça-feira", + "field-tue-relative+1": "próxima terça-feira", + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", + "dateFormat-short": "dd/MM/yy GGGGG", + "field-second": "Segundo", + "field-sat-relative+-1": "sábado passado", + "field-sun-relative+-1": "domingo passado", + "field-month-relative+0": "este mês", + "field-month-relative+1": "próximo mês", + "dateFormatItem-Ed": "E, d", + "field-week": "Semana", + "dateFormat-medium": "dd/MM/y G", + "field-year-relative+0": "este ano", + "field-week-relative+-1": "semana passada", + "dateFormatItem-yyyyM": "MM/y GGGGG", + "field-year-relative+1": "próximo ano", + "months-format-wide-leap": "Adar II", + "dateFormatItem-GyMMM": "MMM 'de' y G", + "field-mon-relative+-1": "segunda-feira passada", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt/indian.js b/cldr/nls/pt/indian.js index f525ccf0c9..2ed77a04fc 100644 --- a/cldr/nls/pt/indian.js +++ b/cldr/nls/pt/indian.js @@ -1,27 +1,20 @@ define( //begin v1.x content { - "field-second": "Segundo", - "field-year-relative+-1": "Ano passado", - "field-week": "Semana", - "field-month-relative+-1": "Mês passado", - "field-day-relative+-1": "Ontem", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12" - ], - "field-day-relative+-2": "Anteontem", - "months-standAlone-wide": [ + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-dayperiod": "Período do dia", + "field-sun-relative+-1": "domingo passado", + "field-mon-relative+-1": "segunda-feira passada", + "field-minute": "Minuto", + "field-day-relative+-1": "ontem", + "field-weekday": "Dia da semana", + "field-day-relative+-2": "anteontem", + "field-era": "Era", + "field-hour": "Hora", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", + "months-standAlone-abbr": [ "Chaitra", "Vaisakha", "Jyaistha", @@ -35,9 +28,22 @@ define( "Magha", "Phalguna" ], + "field-wed-relative+-1": "quarta-feira passada", + "field-day-relative+0": "hoje", + "field-day-relative+1": "amanhã", + "field-day-relative+2": "depois de amanhã", + "field-tue-relative+0": "esta terça-feira", + "field-zone": "Fuso", + "field-tue-relative+1": "próxima terça-feira", + "field-week-relative+-1": "semana passada", + "field-year-relative+0": "este ano", + "field-year-relative+1": "próximo ano", + "field-sat-relative+-1": "sábado passado", + "field-year-relative+-1": "ano passado", "field-year": "Ano", - "field-week-relative+0": "Esta semana", - "months-standAlone-abbr": [ + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "months-standAlone-wide": [ "Chaitra", "Vaisakha", "Jyaistha", @@ -51,21 +57,9 @@ define( "Magha", "Phalguna" ], - "field-week-relative+1": "Próxima semana", - "field-minute": "Minuto", - "field-week-relative+-1": "Semana passada", - "field-day-relative+0": "Hoje", - "field-hour": "Hora", - "field-day-relative+1": "Amanhã", - "field-day-relative+2": "Depois de amanhã", - "field-day": "Dia", - "field-month-relative+0": "Este mês", - "field-month-relative+1": "Próximo mês", - "field-dayperiod": "Período do dia", - "field-month": "Mês", - "field-era": "Era", - "field-year-relative+0": "Este ano", - "field-year-relative+1": "Próximo ano", + "field-week": "Semana", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana", "months-format-abbr": [ "Chaitra", "Vaisakha", @@ -80,8 +74,36 @@ define( "Magha", "Phalguna" ], - "field-weekday": "Dia da semana", - "field-zone": "Fuso" + "field-month-relative+0": "este mês", + "field-month": "Mês", + "field-month-relative+1": "próximo mês", + "field-fri-relative+-1": "sexta-feira passada", + "field-second": "Segundo", + "field-tue-relative+-1": "terça-feira passada", + "field-day": "Dia", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", + "field-thu-relative+0": "esta quinta-feira", + "field-second-relative+0": "agora", + "field-thu-relative+1": "próxima quinta-feira", + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "field-month-relative+-1": "mês passado", + "field-thu-relative+-1": "quinta-feira passada" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt/islamic.js b/cldr/nls/pt/islamic.js index 5a365d5f3d..8f5e057258 100644 --- a/cldr/nls/pt/islamic.js +++ b/cldr/nls/pt/islamic.js @@ -1,13 +1,70 @@ define( //begin v1.x content { - "field-dayperiod": "Período do dia", - "dateFormatItem-yyyyMMMEd": "E, d 'de' MMM 'de' y G", - "field-minute": "Minuto", - "dateFormatItem-MMMEd": "E, d 'de' MMM", - "field-day-relative+-1": "Ontem", + "days-standAlone-short": [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb" + ], + "field-second-relative+0": "agora", "field-weekday": "Dia da semana", - "field-day-relative+-2": "Anteontem", + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", + "dateFormatItem-MMMEd": "E, d 'de' MMM", + "field-tue-relative+-1": "terça-feira passada", + "days-format-short": [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb" + ], + "dateFormat-long": "d 'de' MMMM 'de' y G", + "field-fri-relative+-1": "sexta-feira passada", + "field-wed-relative+-1": "quarta-feira passada", + "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", + "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", + "field-thu-relative+-1": "quinta-feira passada", + "dateFormatItem-Md": "d/M", + "dayPeriods-format-wide-noon": "meio-dia", + "field-era": "Era", + "quarters-format-wide": [ + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre" + ], + "field-year": "Ano", + "field-hour": "Hora", + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-day-relative+0": "hoje", + "field-thu-relative+0": "esta quinta-feira", + "field-day-relative+1": "amanhã", + "field-thu-relative+1": "próxima quinta-feira", + "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", + "field-day-relative+2": "depois de amanhã", + "quarters-format-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], + "quarters-standAlone-wide": [ + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d 'de' MMM 'de' y G", "days-standAlone-wide": [ "domingo", "segunda-feira", @@ -17,66 +74,50 @@ define( "sexta-feira", "sábado" ], - "field-era": "Era", - "dateFormatItem-Gy": "y G", - "field-hour": "Hora", + "dateFormatItem-yyyyMMM": "MMM 'de' y G", + "dateFormatItem-yyyyMMMd": "d 'de' MMM 'de' y G", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", "quarters-standAlone-abbr": [ "T1", "T2", "T3", "T4" ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E, d", - "field-day-relative+0": "Hoje", - "field-day-relative+1": "Amanhã", - "days-standAlone-narrow": [ - "D", - "S", - "T", - "Q", - "Q", - "S", - "S" - ], "eraAbbr": [ "AH" ], - "field-day-relative+2": "Depois de amanhã", - "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", - "dateFormat-long": "d 'de' MMMM 'de' y G", - "field-zone": "Fuso", - "field-week-relative+-1": "Semana passada", - "dateFormat-medium": "dd/MM/y G", - "dayPeriods-format-narrow-pm": "p", - "field-year-relative+0": "Este ano", - "field-year-relative+1": "Próximo ano", - "quarters-standAlone-wide": [ - "1º trimestre", - "2º trimestre", - "3º trimestre", - "4º trimestre" + "field-minute": "Minuto", + "field-dayperiod": "Período do dia", + "days-standAlone-abbr": [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb" ], - "field-year-relative+-1": "Ano passado", - "field-year": "Ano", - "dayPeriods-format-narrow-am": "a", - "field-week": "Semana", - "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", - "dateFormatItem-yyyyMMMd": "d 'de' MMM 'de' y G", - "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", - "field-week-relative+0": "Esta semana", + "field-day-relative+-1": "ontem", + "field-day-relative+-2": "anteontem", "dateFormatItem-MMMd": "d 'de' MMM", - "field-week-relative+1": "Próxima semana", - "field-month-relative+0": "Este mês", - "field-month": "Mês", - "field-month-relative+1": "Próximo mês", - "quarters-format-abbr": [ - "T1", - "T2", - "T3", - "T4" + "dateFormatItem-MEd": "E, dd/MM", + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "field-day": "Dia", + "days-format-wide": [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado" ], + "field-zone": "Fuso", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "ano passado", + "field-month-relative+-1": "mês passado", "days-format-abbr": [ "dom", "seg", @@ -95,59 +136,39 @@ define( "S", "S" ], - "field-second": "Segundo", - "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", - "dateFormatItem-GyMMM": "MMM 'de' y G", - "field-day": "Dia", - "dateFormatItem-MEd": "E, dd/MM", - "days-standAlone-short": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "sáb" - ], - "days-standAlone-abbr": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "sáb" + "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", + "field-month": "Mês", + "days-standAlone-narrow": [ + "D", + "S", + "T", + "Q", + "Q", + "S", + "S" ], + "field-tue-relative+0": "esta terça-feira", + "field-tue-relative+1": "próxima terça-feira", + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", "dateFormat-short": "dd/MM/yy GGGGG", + "field-second": "Segundo", + "field-sat-relative+-1": "sábado passado", + "field-sun-relative+-1": "domingo passado", + "field-month-relative+0": "este mês", + "field-month-relative+1": "próximo mês", + "dateFormatItem-Ed": "E, d", + "field-week": "Semana", + "dateFormat-medium": "dd/MM/y G", + "field-year-relative+0": "este ano", + "field-week-relative+-1": "semana passada", "dateFormatItem-yyyyM": "MM/y GGGGG", - "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", - "dateFormatItem-Md": "d/M", - "days-format-short": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "sáb" - ], - "dateFormatItem-yyyyMMM": "MMM 'de' y G", - "field-month-relative+-1": "Mês passado", - "quarters-format-wide": [ - "1º trimestre", - "2º trimestre", - "3º trimestre", - "4º trimestre" - ], - "days-format-wide": [ - "domingo", - "segunda-feira", - "terça-feira", - "quarta-feira", - "quinta-feira", - "sexta-feira", - "sábado" - ] + "field-year-relative+1": "próximo ano", + "dateFormatItem-GyMMM": "MMM 'de' y G", + "field-mon-relative+-1": "segunda-feira passada", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt/japanese.js b/cldr/nls/pt/japanese.js index 3da0ebebfe..1b43d2dd9c 100644 --- a/cldr/nls/pt/japanese.js +++ b/cldr/nls/pt/japanese.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "dateFormat-medium": "dd/MM/y G", - "field-second": "Segundo", - "field-year-relative+-1": "Ano passado", - "field-week": "Semana", - "field-month-relative+-1": "Mês passado", - "field-day-relative+-1": "Ontem", - "field-day-relative+-2": "Anteontem", - "field-year": "Ano", - "field-week-relative+0": "Esta semana", - "field-week-relative+1": "Próxima semana", + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-dayperiod": "Período do dia", + "field-sun-relative+-1": "domingo passado", + "field-mon-relative+-1": "segunda-feira passada", "field-minute": "Minuto", - "field-week-relative+-1": "Semana passada", - "field-day-relative+0": "Hoje", + "field-day-relative+-1": "ontem", + "field-weekday": "Dia da semana", + "field-day-relative+-2": "anteontem", + "field-era": "Era", "field-hour": "Hora", - "field-day-relative+1": "Amanhã", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", + "field-wed-relative+-1": "quarta-feira passada", + "field-day-relative+0": "hoje", + "field-day-relative+1": "amanhã", + "field-day-relative+2": "depois de amanhã", "dateFormat-long": "d 'de' MMMM 'de' y G", - "field-day-relative+2": "Depois de amanhã", - "field-day": "Dia", - "field-month-relative+0": "Este mês", - "field-month-relative+1": "Próximo mês", - "field-dayperiod": "Período do dia", + "field-tue-relative+0": "esta terça-feira", + "field-zone": "Fuso", + "field-tue-relative+1": "próxima terça-feira", + "field-week-relative+-1": "semana passada", + "dateFormat-medium": "dd/MM/y G", + "field-year-relative+0": "este ano", + "field-year-relative+1": "próximo ano", + "field-sat-relative+-1": "sábado passado", + "field-year-relative+-1": "ano passado", + "field-year": "Ano", + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "field-week": "Semana", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana", + "field-month-relative+0": "este mês", "field-month": "Mês", + "field-month-relative+1": "próximo mês", + "field-fri-relative+-1": "sexta-feira passada", + "field-second": "Segundo", + "field-tue-relative+-1": "terça-feira passada", + "field-day": "Dia", + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", + "field-thu-relative+0": "esta quinta-feira", + "field-second-relative+0": "agora", "dateFormat-short": "dd/MM/yy GGGGG", - "field-era": "Era", - "field-year-relative+0": "Este ano", - "field-year-relative+1": "Próximo ano", + "field-thu-relative+1": "próxima quinta-feira", "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", - "field-weekday": "Dia da semana", - "field-zone": "Fuso" + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "field-month-relative+-1": "mês passado", + "field-thu-relative+-1": "quinta-feira passada" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt/number.js b/cldr/nls/pt/number.js index 5698aa3d8f..5bf60ad51f 100644 --- a/cldr/nls/pt/number.js +++ b/cldr/nls/pt/number.js @@ -10,6 +10,7 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", diff --git a/cldr/nls/pt/persian.js b/cldr/nls/pt/persian.js index 13013101f5..bdc2ea3128 100644 --- a/cldr/nls/pt/persian.js +++ b/cldr/nls/pt/persian.js @@ -1,48 +1,69 @@ define( //begin v1.x content { - "field-dayperiod": "Período do dia", - "dateFormatItem-yyyyMMMEd": "E, d 'de' MMM 'de' y G", - "field-minute": "Minuto", - "dateFormatItem-MMMEd": "E, d 'de' MMM", - "field-day-relative+-1": "Ontem", + "days-standAlone-short": [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb" + ], + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-second-relative+0": "agora", "field-weekday": "Dia da semana", - "field-day-relative+-2": "Anteontem", - "days-standAlone-wide": [ - "domingo", - "segunda-feira", - "terça-feira", - "quarta-feira", - "quinta-feira", - "sexta-feira", - "sábado" + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", + "dateFormatItem-MMMEd": "E, d 'de' MMM", + "field-tue-relative+-1": "terça-feira passada", + "days-format-short": [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb" ], - "months-standAlone-narrow": [ - "J", - "F", - "M", - "A", - "M", - "J", - "J", - "A", - "S", - "O", - "N", - "D" + "dateFormat-long": "d 'de' MMMM 'de' y G", + "field-fri-relative+-1": "sexta-feira passada", + "field-wed-relative+-1": "quarta-feira passada", + "months-format-wide": [ + "janeiro", + "fevereiro", + "março", + "abril", + "maio", + "junho", + "julho", + "agosto", + "setembro", + "outubro", + "novembro", + "dezembro" ], + "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", + "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", + "field-thu-relative+-1": "quinta-feira passada", + "dateFormatItem-Md": "d/M", + "dayPeriods-format-wide-noon": "meio-dia", "field-era": "Era", - "dateFormatItem-Gy": "y G", - "field-hour": "Hora", - "quarters-standAlone-abbr": [ - "T1", - "T2", - "T3", - "T4" - ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ + "months-standAlone-wide": [ "Farvardin", "Ordibehesht", "Khordad", @@ -56,37 +77,15 @@ define( "Bahman", "Esfand" ], - "dateFormatItem-Ed": "E, d", - "field-day-relative+0": "Hoje", - "field-day-relative+1": "Amanhã", - "days-standAlone-narrow": [ - "D", - "S", - "T", - "Q", - "Q", - "S", - "S" - ], - "field-day-relative+2": "Depois de amanhã", - "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", - "dateFormat-long": "d 'de' MMMM 'de' y G", - "field-zone": "Fuso", - "field-week-relative+-1": "Semana passada", - "dateFormat-medium": "dd/MM/y G", - "dayPeriods-format-narrow-pm": "p", - "field-year-relative+0": "Este ano", - "field-year-relative+1": "Próximo ano", - "quarters-standAlone-wide": [ + "quarters-format-wide": [ "1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre" ], - "field-year-relative+-1": "Ano passado", "field-year": "Ano", - "dayPeriods-format-narrow-am": "a", - "months-standAlone-wide": [ + "field-hour": "Hora", + "months-format-abbr": [ "Farvardin", "Ordibehesht", "Khordad", @@ -100,14 +99,15 @@ define( "Bahman", "Esfand" ], - "field-week": "Semana", - "dateFormatItem-yyyyMMMd": "d 'de' MMM 'de' y G", - "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", - "dateFormatItem-yyyyMEd": "E, dd/MM/y GGGGG", - "field-week-relative+0": "Esta semana", - "dateFormatItem-MMMd": "d 'de' MMM", - "field-week-relative+1": "Próxima semana", - "months-format-abbr": [ + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", + "field-day-relative+0": "hoje", + "field-thu-relative+0": "esta quinta-feira", + "field-day-relative+1": "amanhã", + "field-thu-relative+1": "próxima quinta-feira", + "dateFormatItem-GyMMMd": "d 'de' MMM 'de' y G", + "field-day-relative+2": "depois de amanhã", + "months-standAlone-abbr": [ "Farvardin", "Ordibehesht", "Khordad", @@ -121,61 +121,41 @@ define( "Bahman", "Esfand" ], - "field-month-relative+0": "Este mês", - "field-month": "Mês", - "field-month-relative+1": "Próximo mês", "quarters-format-abbr": [ "T1", "T2", "T3", "T4" ], - "days-format-abbr": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "sáb" - ], - "days-format-narrow": [ - "D", - "S", - "T", - "Q", - "Q", - "S", - "S" + "quarters-standAlone-wide": [ + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre" ], - "field-second": "Segundo", - "dateFormatItem-GyMMMEd": "E, d 'de' MMM 'de' y G", - "dateFormatItem-GyMMM": "MMM 'de' y G", - "field-day": "Dia", - "dateFormatItem-MEd": "E, dd/MM", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12" + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d 'de' MMM 'de' y G", + "days-standAlone-wide": [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado" ], - "days-standAlone-short": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "sáb" + "dateFormatItem-yyyyMMM": "MMM 'de' y G", + "dateFormatItem-yyyyMMMd": "d 'de' MMM 'de' y G", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", + "quarters-standAlone-abbr": [ + "T1", + "T2", + "T3", + "T4" ], + "field-minute": "Minuto", + "field-dayperiod": "Período do dia", "days-standAlone-abbr": [ "dom", "seg", @@ -185,25 +165,41 @@ define( "sex", "sáb" ], - "dateFormat-short": "dd/MM/yy GGGGG", - "dateFormatItem-yyyyM": "MM/y GGGGG", - "dateFormat-full": "EEEE, d 'de' MMMM 'de' y G", - "dateFormatItem-Md": "d/M", - "months-format-wide": [ - "janeiro", - "fevereiro", - "março", - "abril", - "maio", - "junho", - "julho", - "agosto", - "setembro", - "outubro", - "novembro", - "dezembro" + "field-day-relative+-1": "ontem", + "field-day-relative+-2": "anteontem", + "dateFormatItem-MMMd": "d 'de' MMM", + "dateFormatItem-MEd": "E, dd/MM", + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "field-day": "Dia", + "days-format-wide": [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado" ], - "days-format-short": [ + "field-zone": "Fuso", + "dateFormatItem-y": "y G", + "months-standAlone-narrow": [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D" + ], + "field-year-relative+-1": "ano passado", + "field-month-relative+-1": "mês passado", + "days-format-abbr": [ "dom", "seg", "ter", @@ -212,23 +208,48 @@ define( "sex", "sáb" ], - "dateFormatItem-yyyyMMM": "MMM 'de' y G", - "field-month-relative+-1": "Mês passado", - "quarters-format-wide": [ - "1º trimestre", - "2º trimestre", - "3º trimestre", - "4º trimestre" + "days-format-narrow": [ + "D", + "S", + "T", + "Q", + "Q", + "S", + "S" ], - "days-format-wide": [ - "domingo", - "segunda-feira", - "terça-feira", - "quarta-feira", - "quinta-feira", - "sexta-feira", - "sábado" - ] + "dateFormatItem-yyyyMd": "dd/MM/y GGGGG", + "field-month": "Mês", + "days-standAlone-narrow": [ + "D", + "S", + "T", + "Q", + "Q", + "S", + "S" + ], + "field-tue-relative+0": "esta terça-feira", + "field-tue-relative+1": "próxima terça-feira", + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", + "dateFormat-short": "dd/MM/yy GGGGG", + "field-second": "Segundo", + "field-sat-relative+-1": "sábado passado", + "field-sun-relative+-1": "domingo passado", + "field-month-relative+0": "este mês", + "field-month-relative+1": "próximo mês", + "dateFormatItem-Ed": "E, d", + "field-week": "Semana", + "dateFormat-medium": "dd/MM/y G", + "field-year-relative+0": "este ano", + "field-week-relative+-1": "semana passada", + "dateFormatItem-yyyyM": "MM/y GGGGG", + "field-year-relative+1": "próximo ano", + "dateFormatItem-GyMMM": "MMM 'de' y G", + "field-mon-relative+-1": "segunda-feira passada", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/pt/roc.js b/cldr/nls/pt/roc.js index ae71c8b35f..a0579b94f9 100644 --- a/cldr/nls/pt/roc.js +++ b/cldr/nls/pt/roc.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "field-second": "Segundo", - "field-year-relative+-1": "Ano passado", - "field-week": "Semana", - "field-month-relative+-1": "Mês passado", - "field-day-relative+-1": "Ontem", - "field-day-relative+-2": "Anteontem", - "field-year": "Ano", - "field-week-relative+0": "Esta semana", - "field-week-relative+1": "Próxima semana", - "field-minute": "Minuto", - "field-week-relative+-1": "Semana passada", - "field-day-relative+0": "Hoje", - "field-hour": "Hora", - "field-day-relative+1": "Amanhã", - "field-day-relative+2": "Depois de amanhã", - "field-day": "Dia", - "field-month-relative+0": "Este mês", - "field-month-relative+1": "Próximo mês", + "field-sat-relative+0": "este sábado", + "field-sat-relative+1": "próximo sábado", "field-dayperiod": "Período do dia", - "field-month": "Mês", + "field-sun-relative+-1": "domingo passado", + "field-mon-relative+-1": "segunda-feira passada", + "field-minute": "Minuto", + "field-day-relative+-1": "ontem", + "field-weekday": "Dia da semana", + "field-day-relative+-2": "anteontem", "field-era": "Era", - "field-year-relative+0": "Este ano", - "field-year-relative+1": "Próximo ano", + "field-hour": "Hora", + "field-sun-relative+0": "este domingo", + "field-sun-relative+1": "próximo domingo", + "field-wed-relative+-1": "quarta-feira passada", + "field-day-relative+0": "hoje", + "field-day-relative+1": "amanhã", "eraAbbr": [ "Antes de R.O.C.", "R.O.C." ], - "field-weekday": "Dia da semana", - "field-zone": "Fuso" + "field-day-relative+2": "depois de amanhã", + "field-tue-relative+0": "esta terça-feira", + "field-zone": "Fuso", + "field-tue-relative+1": "próxima terça-feira", + "field-week-relative+-1": "semana passada", + "field-year-relative+0": "este ano", + "field-year-relative+1": "próximo ano", + "field-sat-relative+-1": "sábado passado", + "field-year-relative+-1": "ano passado", + "field-year": "Ano", + "field-fri-relative+0": "esta sexta-feira", + "field-fri-relative+1": "próxima sexta-feira", + "field-week": "Semana", + "field-week-relative+0": "esta semana", + "field-week-relative+1": "próxima semana", + "field-month-relative+0": "este mês", + "field-month": "Mês", + "field-month-relative+1": "próximo mês", + "field-fri-relative+-1": "sexta-feira passada", + "field-second": "Segundo", + "field-tue-relative+-1": "terça-feira passada", + "field-day": "Dia", + "field-mon-relative+0": "esta segunda-feira", + "field-mon-relative+1": "próxima segunda-feira", + "field-thu-relative+0": "esta quinta-feira", + "field-second-relative+0": "agora", + "field-thu-relative+1": "próxima quinta-feira", + "field-wed-relative+0": "esta quarta-feira", + "field-wed-relative+1": "próxima quarta-feira", + "field-month-relative+-1": "mês passado", + "field-thu-relative+-1": "quinta-feira passada" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ro/buddhist.js b/cldr/nls/ro/buddhist.js index 0a84fa6782..5a000273a1 100644 --- a/cldr/nls/ro/buddhist.js +++ b/cldr/nls/ro/buddhist.js @@ -1,26 +1,16 @@ define( //begin v1.x content { - "field-dayperiod": "perioada zilei", - "field-minute": "minut", - "eraNames": [ - "era budistă" - ], - "dateFormatItem-MMMEd": "E d MMM", - "dateTimeFormat-full": "{1}, {0}", - "field-day-relative+-1": "ieri", - "field-weekday": "zi a săptămânii", - "field-day-relative+-2": "alaltăieri", - "days-standAlone-wide": [ - "duminică", - "luni", - "marți", - "miercuri", - "joi", - "vineri", - "sâmbătă" + "days-standAlone-short": [ + "Du", + "Lu", + "Ma", + "Mi", + "Jo", + "Vi", + "Sâ" ], - "months-standAlone-narrow": [ + "months-format-narrow": [ "I", "F", "M", @@ -34,69 +24,50 @@ define( "N", "D" ], - "dateTimeFormat-short": "{1}, {0}", - "field-era": "eră", - "field-hour": "oră", - "dateTimeFormat-medium": "{1}, {0}", - "quarters-standAlone-abbr": [ - "T1", - "T2", - "T3", - "T4" - ], - "dateFormatItem-y": "y", - "months-standAlone-abbr": [ - "ian.", - "feb.", - "mar.", - "apr.", - "mai", - "iun.", - "iul.", - "aug.", - "sept.", - "oct.", - "nov.", - "dec." - ], - "dateFormatItem-Ed": "E d", - "field-day-relative+0": "azi", - "field-day-relative+1": "mâine", - "days-standAlone-narrow": [ - "D", - "L", - "M", - "M", - "J", - "V", - "S" - ], - "eraAbbr": [ + "field-second-relative+0": "acum", + "field-weekday": "zi a săptămânii", + "field-wed-relative+0": "miercurea aceasta", + "field-wed-relative+1": "miercurea viitoare", + "dateFormatItem-GyMMMEd": "E, d MMM y G", + "dateFormatItem-MMMEd": "E, d MMM", + "eraNarrow": [ "e.b." ], - "field-day-relative+2": "poimâine", - "dateFormat-long": "d MMMM y G", - "field-zone": "zonă", - "field-week-relative+-1": "Săptămâna trecută", - "dateFormat-medium": "d MMM y G", - "field-year-relative+0": "Anul acesta", - "field-year-relative+1": "Anul viitor", - "quarters-standAlone-wide": [ - "trimestrul I", - "trimestrul al II-lea", - "trimestrul al III-lea", - "trimestrul al IV-lea" + "field-tue-relative+-1": "marțea trecută", + "days-format-short": [ + "Du", + "Lu", + "Ma", + "Mi", + "Jo", + "Vi", + "Sâ" ], - "field-year-relative+-1": "Anul trecut", - "field-year": "an", - "quarters-standAlone-narrow": [ - "T1", - "T2", - "T3", - "T4" + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "vinerea trecută", + "field-wed-relative+-1": "miercurea trecută", + "months-format-wide": [ + "ianuarie", + "februarie", + "martie", + "aprilie", + "mai", + "iunie", + "iulie", + "august", + "septembrie", + "octombrie", + "noiembrie", + "decembrie" ], - "dateTimeFormat-long": "{1}, {0}", - "field-week": "săptămână", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-medium": "{1}, {0}", + "dayPeriods-format-wide-pm": "p.m.", + "dateFormat-full": "EEEE, d MMMM y G", + "dateFormatItem-yyyyMEd": "E, dd.MM.y G", + "field-thu-relative+-1": "joia trecută", + "dateFormatItem-Md": "dd.MM", + "field-era": "eră", "months-standAlone-wide": [ "ianuarie", "februarie", @@ -111,15 +82,14 @@ define( "noiembrie", "decembrie" ], - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "Săptămâna aceasta", - "quarters-format-narrow": [ - "1", - "2", - "3", - "T4" + "quarters-format-wide": [ + "trimestrul I", + "trimestrul al II-lea", + "trimestrul al III-lea", + "trimestrul al IV-lea" ], - "field-week-relative+1": "Săptămâna viitoare", + "field-year": "an", + "field-hour": "oră", "months-format-abbr": [ "ian.", "feb.", @@ -134,37 +104,96 @@ define( "nov.", "dec." ], - "field-month-relative+0": "Luna aceasta", - "field-month": "lună", - "field-month-relative+1": "Luna viitoare", + "field-sat-relative+0": "sâmbăta aceasta", + "field-sat-relative+1": "sâmbăta viitoare", + "field-day-relative+0": "azi", + "field-thu-relative+0": "joia aceasta", + "field-day-relative+1": "mâine", + "field-thu-relative+1": "joia viitoare", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "poimâine", + "months-standAlone-abbr": [ + "ian.", + "feb.", + "mar.", + "apr.", + "mai", + "iun.", + "iul.", + "aug.", + "sept.", + "oct.", + "nov.", + "dec." + ], "quarters-format-abbr": [ "trim. I", "trim. II", "trim. III", "trim. IV" ], - "days-format-abbr": [ - "Du", - "Lu", - "Ma", - "Mi", - "Jo", - "Vi", - "Sâ" + "quarters-standAlone-wide": [ + "trimestrul I", + "trimestrul al II-lea", + "trimestrul al III-lea", + "trimestrul al IV-lea" ], - "days-format-narrow": [ - "D", - "L", - "M", - "M", - "J", - "V", - "S" + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d MMM y G", + "days-standAlone-wide": [ + "duminică", + "luni", + "marți", + "miercuri", + "joi", + "vineri", + "sâmbătă" ], - "field-second": "secundă", - "field-day": "zi", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "field-sun-relative+0": "duminica aceasta", + "field-sun-relative+1": "duminica viitoare", + "quarters-standAlone-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], + "eraAbbr": [ + "e.b." + ], + "field-minute": "minut", + "field-dayperiod": "a.m./p.m", + "days-standAlone-abbr": [ + "Dum", + "Lun", + "Mar", + "Mie", + "Joi", + "Vin", + "Sâm" + ], + "field-day-relative+-1": "ieri", + "dateTimeFormat-long": "{1}, {0}", + "field-day-relative+-2": "alaltăieri", + "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E, dd.MM", - "months-format-narrow": [ + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "vinerea aceasta", + "field-fri-relative+1": "vinerea viitoare", + "field-day": "zi", + "days-format-wide": [ + "duminică", + "luni", + "marți", + "miercuri", + "joi", + "vineri", + "sâmbătă" + ], + "field-zone": "fus orar", + "dateFormatItem-y": "y", + "months-standAlone-narrow": [ "I", "F", "M", @@ -178,69 +207,65 @@ define( "N", "D" ], - "days-standAlone-short": [ - "Du", - "Lu", - "Ma", - "Mi", - "Jo", - "Vi", - "Sâ" - ], - "days-standAlone-abbr": [ - "Du", - "Lu", - "Ma", - "Mi", - "Jo", - "Vi", - "Sâ" - ], - "dateFormat-short": "d/M/y", - "dateFormat-full": "EEEE, d MMMM, y G", - "dateFormatItem-Md": "dd.MM", - "months-format-wide": [ - "ianuarie", - "februarie", - "martie", - "aprilie", - "mai", - "iunie", - "iulie", - "august", - "septembrie", - "octombrie", - "noiembrie", - "decembrie" + "field-year-relative+-1": "anul trecut", + "field-month-relative+-1": "luna trecută", + "days-format-abbr": [ + "Dum", + "Lun", + "Mar", + "Mie", + "Joi", + "Vin", + "Sâm" ], - "days-format-short": [ - "Du", - "Lu", - "Ma", - "Mi", - "Jo", - "Vi", - "Sâ" + "eraNames": [ + "era budistă" ], - "field-month-relative+-1": "Luna trecută", - "quarters-format-wide": [ - "trimestrul I", - "trimestrul al II-lea", - "trimestrul al III-lea", - "trimestrul al IV-lea" + "days-format-narrow": [ + "D", + "L", + "M", + "M", + "J", + "V", + "S" ], - "eraNarrow": [ - "e.b." + "dateFormatItem-yyyyMd": "dd.MM.y G", + "field-month": "lună", + "days-standAlone-narrow": [ + "D", + "L", + "M", + "M", + "J", + "V", + "S" ], - "days-format-wide": [ - "duminică", - "luni", - "marți", - "miercuri", - "joi", - "vineri", - "sâmbătă" - ] + "field-tue-relative+0": "marțea aceasta", + "field-tue-relative+1": "marțea viitoare", + "dayPeriods-format-wide-am": "a.m.", + "field-mon-relative+0": "lunea aceasta", + "field-mon-relative+1": "lunea viitoare", + "dateFormat-short": "dd.MM.y GGGGG", + "field-second": "secundă", + "field-sat-relative+-1": "sâmbăta trecută", + "field-sun-relative+-1": "duminica trecută", + "field-month-relative+0": "luna aceasta", + "field-month-relative+1": "luna viitoare", + "dateFormatItem-Ed": "E d", + "field-week": "săptămână", + "dateFormat-medium": "dd.MM.y G", + "field-year-relative+0": "anul acesta", + "field-week-relative+-1": "săptămâna trecută", + "dateFormatItem-yyyyM": "MM.y G", + "field-year-relative+1": "anul viitor", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "lunea trecută", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "săptămâna aceasta", + "field-week-relative+1": "săptămâna viitoare" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ro/chinese.js b/cldr/nls/ro/chinese.js index 89db0c9ac6..93ba3987a7 100644 --- a/cldr/nls/ro/chinese.js +++ b/cldr/nls/ro/chinese.js @@ -1,12 +1,20 @@ define( //begin v1.x content { - "field-second": "secundă", - "field-year-relative+-1": "Anul trecut", - "field-week": "săptămână", - "field-month-relative+-1": "Luna trecută", + "field-sat-relative+0": "sâmbăta aceasta", + "field-sat-relative+1": "sâmbăta viitoare", + "field-dayperiod": "a.m./p.m", + "field-sun-relative+-1": "duminica trecută", + "field-mon-relative+-1": "lunea trecută", + "field-minute": "minut", "field-day-relative+-1": "ieri", - "months-format-narrow": [ + "field-weekday": "zi a săptămânii", + "field-day-relative+-2": "alaltăieri", + "field-era": "eră", + "field-hour": "oră", + "field-sun-relative+0": "duminica aceasta", + "field-sun-relative+1": "duminica viitoare", + "months-standAlone-abbr": [ "1", "2", "3", @@ -20,7 +28,21 @@ define( "11", "12" ], - "field-day-relative+-2": "alaltăieri", + "field-wed-relative+-1": "miercurea trecută", + "field-day-relative+0": "azi", + "field-day-relative+1": "mâine", + "field-day-relative+2": "poimâine", + "field-tue-relative+0": "marțea aceasta", + "field-zone": "fus orar", + "field-tue-relative+1": "marțea viitoare", + "field-week-relative+-1": "săptămâna trecută", + "field-year-relative+0": "anul acesta", + "field-year-relative+1": "anul viitor", + "field-sat-relative+-1": "sâmbăta trecută", + "field-year-relative+-1": "anul trecut", + "field-year": "an", + "field-fri-relative+0": "vinerea aceasta", + "field-fri-relative+1": "vinerea viitoare", "months-standAlone-wide": [ "1", "2", @@ -35,9 +57,10 @@ define( "11", "12" ], - "field-year": "an", - "field-week-relative+0": "Săptămâna aceasta", - "months-standAlone-abbr": [ + "field-week": "săptămână", + "field-week-relative+0": "săptămâna aceasta", + "field-week-relative+1": "săptămâna viitoare", + "months-format-abbr": [ "1", "2", "3", @@ -51,22 +74,14 @@ define( "11", "12" ], - "field-week-relative+1": "Săptămâna viitoare", - "field-minute": "minut", - "field-week-relative+-1": "Săptămâna trecută", - "field-day-relative+0": "azi", - "field-hour": "oră", - "field-day-relative+1": "mâine", - "field-day-relative+2": "poimâine", - "field-day": "zi", - "field-month-relative+0": "Luna aceasta", - "field-month-relative+1": "Luna viitoare", - "field-dayperiod": "perioada zilei", + "field-month-relative+0": "luna aceasta", "field-month": "lună", - "field-era": "eră", - "field-year-relative+0": "Anul acesta", - "field-year-relative+1": "Anul viitor", - "months-format-abbr": [ + "field-month-relative+1": "luna viitoare", + "field-fri-relative+-1": "vinerea trecută", + "field-second": "secundă", + "field-tue-relative+-1": "marțea trecută", + "field-day": "zi", + "months-format-narrow": [ "1", "2", "3", @@ -80,8 +95,15 @@ define( "11", "12" ], - "field-weekday": "zi a săptămânii", - "field-zone": "zonă" + "field-mon-relative+0": "lunea aceasta", + "field-mon-relative+1": "lunea viitoare", + "field-thu-relative+0": "joia aceasta", + "field-second-relative+0": "acum", + "field-thu-relative+1": "joia viitoare", + "field-wed-relative+0": "miercurea aceasta", + "field-wed-relative+1": "miercurea viitoare", + "field-month-relative+-1": "luna trecută", + "field-thu-relative+-1": "joia trecută" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ro/coptic.js b/cldr/nls/ro/coptic.js index 67c42e19b7..9915dcda05 100644 --- a/cldr/nls/ro/coptic.js +++ b/cldr/nls/ro/coptic.js @@ -1,31 +1,53 @@ define( //begin v1.x content { - "field-second": "secundă", - "field-year-relative+-1": "Anul trecut", - "field-week": "săptămână", - "field-month-relative+-1": "Luna trecută", + "field-sat-relative+0": "sâmbăta aceasta", + "field-sat-relative+1": "sâmbăta viitoare", + "field-dayperiod": "a.m./p.m", + "field-sun-relative+-1": "duminica trecută", + "field-mon-relative+-1": "lunea trecută", + "field-minute": "minut", "field-day-relative+-1": "ieri", + "field-weekday": "zi a săptămânii", "field-day-relative+-2": "alaltăieri", - "field-year": "an", - "field-week-relative+0": "Săptămâna aceasta", - "field-week-relative+1": "Săptămâna viitoare", - "field-minute": "minut", - "field-week-relative+-1": "Săptămâna trecută", - "field-day-relative+0": "azi", + "field-era": "eră", "field-hour": "oră", + "field-sun-relative+0": "duminica aceasta", + "field-sun-relative+1": "duminica viitoare", + "field-wed-relative+-1": "miercurea trecută", + "field-day-relative+0": "azi", "field-day-relative+1": "mâine", "field-day-relative+2": "poimâine", - "field-day": "zi", - "field-month-relative+0": "Luna aceasta", - "field-month-relative+1": "Luna viitoare", - "field-dayperiod": "perioada zilei", + "field-tue-relative+0": "marțea aceasta", + "field-zone": "fus orar", + "field-tue-relative+1": "marțea viitoare", + "field-week-relative+-1": "săptămâna trecută", + "field-year-relative+0": "anul acesta", + "field-year-relative+1": "anul viitor", + "field-sat-relative+-1": "sâmbăta trecută", + "field-year-relative+-1": "anul trecut", + "field-year": "an", + "field-fri-relative+0": "vinerea aceasta", + "field-fri-relative+1": "vinerea viitoare", + "field-week": "săptămână", + "field-week-relative+0": "săptămâna aceasta", + "field-week-relative+1": "săptămâna viitoare", + "field-month-relative+0": "luna aceasta", "field-month": "lună", - "field-era": "eră", - "field-year-relative+0": "Anul acesta", - "field-year-relative+1": "Anul viitor", - "field-weekday": "zi a săptămânii", - "field-zone": "zonă" + "field-month-relative+1": "luna viitoare", + "field-fri-relative+-1": "vinerea trecută", + "field-second": "secundă", + "field-tue-relative+-1": "marțea trecută", + "field-day": "zi", + "field-mon-relative+0": "lunea aceasta", + "field-mon-relative+1": "lunea viitoare", + "field-thu-relative+0": "joia aceasta", + "field-second-relative+0": "acum", + "field-thu-relative+1": "joia viitoare", + "field-wed-relative+0": "miercurea aceasta", + "field-wed-relative+1": "miercurea viitoare", + "field-month-relative+-1": "luna trecută", + "field-thu-relative+-1": "joia trecută" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ro/currency.js b/cldr/nls/ro/currency.js index e0eb410953..7308030498 100644 --- a/cldr/nls/ro/currency.js +++ b/cldr/nls/ro/currency.js @@ -1,15 +1,21 @@ define( //begin v1.x content { - "HKD_displayName": "dolar Hong Kong", + "HKD_displayName": "dolar din Hong Kong", "CHF_displayName": "franc elvețian", + "JPY_symbol": "JPY", "CAD_displayName": "dolar canadian", + "HKD_symbol": "HKD", "CNY_displayName": "yuan renminbi chinezesc", - "USD_symbol": "$", + "USD_symbol": "USD", "AUD_displayName": "dolar australian", "JPY_displayName": "yen japonez", + "CAD_symbol": "CAD", "USD_displayName": "dolar american", + "CNY_symbol": "CNY", "GBP_displayName": "liră sterlină", + "GBP_symbol": "GBP", + "AUD_symbol": "AUD", "EUR_displayName": "euro" } //end v1.x content diff --git a/cldr/nls/ro/ethiopic.js b/cldr/nls/ro/ethiopic.js index 67c42e19b7..9915dcda05 100644 --- a/cldr/nls/ro/ethiopic.js +++ b/cldr/nls/ro/ethiopic.js @@ -1,31 +1,53 @@ define( //begin v1.x content { - "field-second": "secundă", - "field-year-relative+-1": "Anul trecut", - "field-week": "săptămână", - "field-month-relative+-1": "Luna trecută", + "field-sat-relative+0": "sâmbăta aceasta", + "field-sat-relative+1": "sâmbăta viitoare", + "field-dayperiod": "a.m./p.m", + "field-sun-relative+-1": "duminica trecută", + "field-mon-relative+-1": "lunea trecută", + "field-minute": "minut", "field-day-relative+-1": "ieri", + "field-weekday": "zi a săptămânii", "field-day-relative+-2": "alaltăieri", - "field-year": "an", - "field-week-relative+0": "Săptămâna aceasta", - "field-week-relative+1": "Săptămâna viitoare", - "field-minute": "minut", - "field-week-relative+-1": "Săptămâna trecută", - "field-day-relative+0": "azi", + "field-era": "eră", "field-hour": "oră", + "field-sun-relative+0": "duminica aceasta", + "field-sun-relative+1": "duminica viitoare", + "field-wed-relative+-1": "miercurea trecută", + "field-day-relative+0": "azi", "field-day-relative+1": "mâine", "field-day-relative+2": "poimâine", - "field-day": "zi", - "field-month-relative+0": "Luna aceasta", - "field-month-relative+1": "Luna viitoare", - "field-dayperiod": "perioada zilei", + "field-tue-relative+0": "marțea aceasta", + "field-zone": "fus orar", + "field-tue-relative+1": "marțea viitoare", + "field-week-relative+-1": "săptămâna trecută", + "field-year-relative+0": "anul acesta", + "field-year-relative+1": "anul viitor", + "field-sat-relative+-1": "sâmbăta trecută", + "field-year-relative+-1": "anul trecut", + "field-year": "an", + "field-fri-relative+0": "vinerea aceasta", + "field-fri-relative+1": "vinerea viitoare", + "field-week": "săptămână", + "field-week-relative+0": "săptămâna aceasta", + "field-week-relative+1": "săptămâna viitoare", + "field-month-relative+0": "luna aceasta", "field-month": "lună", - "field-era": "eră", - "field-year-relative+0": "Anul acesta", - "field-year-relative+1": "Anul viitor", - "field-weekday": "zi a săptămânii", - "field-zone": "zonă" + "field-month-relative+1": "luna viitoare", + "field-fri-relative+-1": "vinerea trecută", + "field-second": "secundă", + "field-tue-relative+-1": "marțea trecută", + "field-day": "zi", + "field-mon-relative+0": "lunea aceasta", + "field-mon-relative+1": "lunea viitoare", + "field-thu-relative+0": "joia aceasta", + "field-second-relative+0": "acum", + "field-thu-relative+1": "joia viitoare", + "field-wed-relative+0": "miercurea aceasta", + "field-wed-relative+1": "miercurea viitoare", + "field-month-relative+-1": "luna trecută", + "field-thu-relative+-1": "joia trecută" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ro/generic.js b/cldr/nls/ro/generic.js index 849e7bda43..81bdefa1d4 100644 --- a/cldr/nls/ro/generic.js +++ b/cldr/nls/ro/generic.js @@ -1,67 +1,92 @@ define( //begin v1.x content { - "dateFormatItem-yM": "MM.y", - "field-dayperiod": "perioada zilei", - "field-minute": "minut", - "dateFormatItem-MMMEd": "E, d MMM", - "dateTimeFormat-full": "{1}, {0}", - "field-day-relative+-1": "ieri", - "dateFormatItem-hms": "h:mm:ss a", - "dateFormatItem-yQQQ": "QQQ y", - "dateFormatItem-MMdd": "dd.MM", - "field-day-relative+-2": "alaltăieri", + "field-second-relative+0": "acum", "field-weekday": "zi a săptămânii", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1}, {0}", + "field-wed-relative+0": "miercurea aceasta", + "field-wed-relative+1": "miercurea viitoare", + "dateFormatItem-GyMMMEd": "E, d MMM y G", + "dateFormatItem-MMMEd": "E, d MMM", + "field-tue-relative+-1": "marțea trecută", + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "vinerea trecută", + "field-wed-relative+-1": "miercurea trecută", + "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1}, {0}", + "dateFormat-full": "EEEE, d MMMM y G", + "dateFormatItem-yyyyMEd": "E, dd.MM.y G", + "field-thu-relative+-1": "joia trecută", + "dateFormatItem-Md": "dd.MM", "field-era": "eră", + "field-year": "an", + "dateFormatItem-yyyyMMMM": "MMMM y G", "field-hour": "oră", - "dateFormatItem-y": "y", - "dateFormatItem-yMM": "MM.y", - "dateFormatItem-Ed": "E d", - "dateFormatItem-yMMM": "MMM y", + "field-sat-relative+0": "sâmbăta aceasta", + "field-sat-relative+1": "sâmbăta viitoare", "field-day-relative+0": "azi", "field-day-relative+1": "mâine", + "field-thu-relative+0": "joia aceasta", + "dateFormatItem-GyMMMd": "d MMM y G", "field-day-relative+2": "poimâine", - "dateFormat-long": "d MMMM y G", - "field-zone": "zonă", + "field-thu-relative+1": "joia viitoare", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d MMM y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "dateFormatItem-MMMMd": "d MMMM", + "field-sun-relative+0": "duminica aceasta", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "Săptămâna trecută", - "dateFormat-medium": "dd.MM.y G", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "Anul acesta", - "field-year-relative+1": "Anul viitor", - "dateFormatItem-yMd": "dd.MM.y", - "field-year-relative+-1": "Anul trecut", - "dateFormatItem-yMMMM": "MMMM y", + "field-sun-relative+1": "duminica viitoare", + "field-minute": "minut", + "field-dayperiod": "a.m./p.m", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "field-year": "an", + "field-day-relative+-1": "ieri", "dateTimeFormat-long": "{1}, {0}", - "field-week": "săptămână", - "dateFormatItem-MMMMEd": "E, d MMMM", + "field-day-relative+-2": "alaltăieri", "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "Săptămâna aceasta", - "field-week-relative+1": "Săptămâna viitoare", - "dateFormatItem-yQQQQ": "QQQQ y", - "field-month-relative+0": "Luna aceasta", - "dateFormatItem-H": "HH", - "field-month": "lună", - "field-month-relative+1": "Luna viitoare", - "dateFormatItem-MMMMd": "d MMMM", - "dateFormatItem-M": "L", - "dateFormatItem-yMMMd": "d MMM y", - "field-second": "secundă", - "field-day": "zi", "dateFormatItem-MEd": "E, dd.MM", + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "vinerea aceasta", + "field-fri-relative+1": "vinerea viitoare", + "field-day": "zi", + "field-zone": "fus orar", + "dateFormatItem-y": "y", + "field-year-relative+-1": "anul trecut", + "field-month-relative+-1": "luna trecută", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "dd.MM.y G", + "field-month": "lună", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "marțea aceasta", + "field-tue-relative+1": "marțea viitoare", + "dateFormatItem-MMMMEd": "E, d MMMM", + "field-mon-relative+0": "lunea aceasta", + "field-mon-relative+1": "lunea viitoare", "dateFormat-short": "dd.MM.y GGGGG", - "dateFormatItem-yMMMEd": "E, d MMM y", - "dateFormat-full": "EEEE, d MMMM y G", - "dateFormatItem-Md": "dd.MM", - "dateFormatItem-yMEd": "E, dd.MM.y", - "dateFormatItem-d": "d", - "field-month-relative+-1": "Luna trecută" + "field-second": "secundă", + "field-sat-relative+-1": "sâmbăta trecută", + "field-sun-relative+-1": "duminica trecută", + "field-month-relative+0": "luna aceasta", + "field-month-relative+1": "luna viitoare", + "dateFormatItem-Ed": "E d", + "field-week": "săptămână", + "dateFormat-medium": "dd.MM.y G", + "field-year-relative+0": "anul acesta", + "field-week-relative+-1": "săptămâna trecută", + "dateFormatItem-yyyyM": "MM.y G", + "field-year-relative+1": "anul viitor", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "lunea trecută", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "săptămâna aceasta", + "field-week-relative+1": "săptămâna viitoare" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ro/gregorian.js b/cldr/nls/ro/gregorian.js index e06ec9a8aa..23490b1b14 100644 --- a/cldr/nls/ro/gregorian.js +++ b/cldr/nls/ro/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "Du", "Lu", @@ -24,21 +25,28 @@ define( "N", "D" ], + "field-second-relative+0": "acum", "quarters-standAlone-narrow": [ - "T1", - "T2", - "T3", - "T4" + "1", + "2", + "3", + "4" ], "field-weekday": "zi a săptămânii", "dateFormatItem-yQQQ": "QQQ y", "dateFormatItem-yMEd": "E, dd.MM.y", + "field-wed-relative+0": "miercurea aceasta", + "field-wed-relative+1": "miercurea viitoare", + "dateFormatItem-GyMMMEd": "E, d MMM y G", "dateFormatItem-MMMEd": "E, d MMM", "eraNarrow": [ "î.Hr.", - "d.Hr." + "î.e.n", + "d.Hr.", + "e.n." ], "dateFormatItem-yMM": "MM.y", + "field-tue-relative+-1": "marțea trecută", "days-format-short": [ "Du", "Lu", @@ -49,6 +57,8 @@ define( "Sâ" ], "dateFormat-long": "d MMMM y", + "field-fri-relative+-1": "vinerea trecută", + "field-wed-relative+-1": "miercurea trecută", "months-format-wide": [ "ianuarie", "februarie", @@ -64,8 +74,9 @@ define( "decembrie" ], "dateTimeFormat-medium": "{1}, {0}", - "dayPeriods-format-wide-pm": "PM", + "dayPeriods-format-wide-pm": "p.m.", "dateFormat-full": "EEEE, d MMMM y", + "field-thu-relative+-1": "joia trecută", "dateFormatItem-Md": "dd.MM", "dateFormatItem-yMd": "dd.MM.y", "field-era": "eră", @@ -111,9 +122,14 @@ define( "nov.", "dec." ], + "field-sat-relative+0": "sâmbăta aceasta", + "field-sat-relative+1": "sâmbăta viitoare", "timeFormat-full": "HH:mm:ss zzzz", "field-day-relative+0": "azi", + "field-thu-relative+0": "joia aceasta", "field-day-relative+1": "mâine", + "field-thu-relative+1": "joia viitoare", + "dateFormatItem-GyMMMd": "d MMM y G", "field-day-relative+2": "poimâine", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ @@ -142,6 +158,7 @@ define( "trimestrul al III-lea", "trimestrul al IV-lea" ], + "dateFormatItem-Gy": "y G", "dateFormatItem-M": "L", "days-standAlone-wide": [ "duminică", @@ -154,7 +171,9 @@ define( ], "dateFormatItem-MMMMd": "d MMMM", "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "duminica aceasta", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "duminica viitoare", "quarters-standAlone-abbr": [ "T1", "T2", @@ -163,18 +182,20 @@ define( ], "eraAbbr": [ "î.Hr.", - "d.Hr." + "î.e.n", + "d.Hr.", + "e.n." ], "field-minute": "minut", - "field-dayperiod": "perioada zilei", + "field-dayperiod": "a.m./p.m", "days-standAlone-abbr": [ - "Du", - "Lu", - "Ma", - "Mi", - "Jo", - "Vi", - "Sâ" + "Dum", + "Lun", + "Mar", + "Mie", + "Joi", + "Vin", + "Sâm" ], "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", @@ -182,15 +203,18 @@ define( "1", "2", "3", - "T4" + "4" ], "field-day-relative+-1": "ieri", + "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1}, {0}", "field-day-relative+-2": "alaltăieri", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E, dd.MM", "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "vinerea aceasta", "dateFormatItem-yMMMM": "MMMM y", + "field-fri-relative+1": "vinerea viitoare", "field-day": "zi", "days-format-wide": [ "duminică", @@ -201,7 +225,7 @@ define( "vineri", "sâmbătă" ], - "field-zone": "zonă", + "field-zone": "fus orar", "dateFormatItem-y": "y", "months-standAlone-narrow": [ "I", @@ -217,22 +241,24 @@ define( "N", "D" ], - "field-year-relative+-1": "Anul trecut", - "field-month-relative+-1": "Luna trecută", + "field-year-relative+-1": "anul trecut", + "field-month-relative+-1": "luna trecută", "dateFormatItem-hm": "h:mm a", "days-format-abbr": [ - "Du", - "Lu", - "Ma", - "Mi", - "Jo", - "Vi", - "Sâ" + "Dum", + "Lun", + "Mar", + "Mie", + "Joi", + "Vin", + "Sâm" ], "dateFormatItem-yMMMd": "d MMM y", "eraNames": [ "înainte de Hristos", - "după Hristos" + "după Hristos", + "d.Hr.", + "e.n." ], "days-format-narrow": [ "D", @@ -243,7 +269,6 @@ define( "V", "S" ], - "field-month": "lună", "days-standAlone-narrow": [ "D", "L", @@ -254,24 +279,37 @@ define( "S" ], "dateFormatItem-MMM": "LLL", - "dayPeriods-format-wide-am": "AM", + "field-month": "lună", + "field-tue-relative+0": "marțea aceasta", + "field-tue-relative+1": "marțea viitoare", + "dayPeriods-format-wide-am": "a.m.", "dateFormatItem-MMMMEd": "E, d MMMM", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "lunea aceasta", + "field-mon-relative+1": "lunea viitoare", "dateFormat-short": "dd.MM.y", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", "field-second": "secundă", + "field-sat-relative+-1": "sâmbăta trecută", "dateFormatItem-yMMMEd": "E, d MMM y", - "field-month-relative+0": "Luna aceasta", - "field-month-relative+1": "Luna viitoare", + "field-sun-relative+-1": "duminica trecută", + "field-month-relative+0": "luna aceasta", + "field-month-relative+1": "luna viitoare", "dateFormatItem-Ed": "E d", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "săptămână", - "dateFormat-medium": "dd.MM.y", - "field-year-relative+0": "Anul acesta", - "field-week-relative+-1": "Săptămâna trecută", - "field-year-relative+1": "Anul viitor", + "dateFormat-medium": "d MMM y", + "field-year-relative+0": "anul acesta", + "field-week-relative+-1": "săptămâna trecută", + "field-year-relative+1": "anul viitor", "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", - "field-week-relative+0": "Săptămâna aceasta", - "field-week-relative+1": "Săptămâna viitoare" + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "lunea trecută", + "field-week-relative+0": "săptămâna aceasta", + "field-week-relative+1": "săptămâna viitoare" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ro/hebrew.js b/cldr/nls/ro/hebrew.js index 5faa17817e..abad9d8a17 100644 --- a/cldr/nls/ro/hebrew.js +++ b/cldr/nls/ro/hebrew.js @@ -1,36 +1,35 @@ define( //begin v1.x content { - "field-dayperiod": "perioada zilei", - "months-standAlone-abbr-leap": "Adar II", - "field-minute": "minut", - "dateFormatItem-MMMEd": "E, d MMM", - "dateTimeFormat-full": "{1}, {0}", - "field-day-relative+-1": "ieri", - "field-weekday": "zi a săptămânii", - "field-day-relative+-2": "alaltăieri", - "days-standAlone-wide": [ - "duminică", - "luni", - "marți", - "miercuri", - "joi", - "vineri", - "sâmbătă" + "days-standAlone-short": [ + "Du", + "Lu", + "Ma", + "Mi", + "Jo", + "Vi", + "Sâ" ], - "dateTimeFormat-short": "{1}, {0}", - "field-era": "eră", - "field-hour": "oră", - "dateTimeFormat-medium": "{1}, {0}", - "months-format-abbr-leap": "Adar II", - "quarters-standAlone-abbr": [ - "T1", - "T2", - "T3", - "T4" + "field-second-relative+0": "acum", + "field-weekday": "zi a săptămânii", + "field-wed-relative+0": "miercurea aceasta", + "field-wed-relative+1": "miercurea viitoare", + "dateFormatItem-GyMMMEd": "E, d MMM y G", + "dateFormatItem-MMMEd": "E, d MMM", + "field-tue-relative+-1": "marțea trecută", + "days-format-short": [ + "Du", + "Lu", + "Ma", + "Mi", + "Jo", + "Vi", + "Sâ" ], - "dateFormatItem-y": "y", - "months-standAlone-abbr": [ + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "vinerea trecută", + "field-wed-relative+-1": "miercurea trecută", + "months-format-wide": [ "Tișrei", "Heșvan", "Kislev", @@ -45,40 +44,14 @@ define( "Av", "Elul" ], - "dateFormatItem-Ed": "E d", - "field-day-relative+0": "azi", - "field-day-relative+1": "mâine", - "days-standAlone-narrow": [ - "D", - "L", - "M", - "M", - "J", - "V", - "S" - ], - "field-day-relative+2": "poimâine", - "dateFormat-long": "d MMMM y G", - "field-zone": "zonă", - "field-week-relative+-1": "Săptămâna trecută", - "dateFormat-medium": "dd.MM.y G", - "field-year-relative+0": "Anul acesta", - "field-year-relative+1": "Anul viitor", - "quarters-standAlone-wide": [ - "trimestrul I", - "trimestrul al II-lea", - "trimestrul al III-lea", - "trimestrul al IV-lea" - ], - "field-year-relative+-1": "Anul trecut", - "field-year": "an", - "quarters-standAlone-narrow": [ - "T1", - "T2", - "T3", - "T4" - ], - "dateTimeFormat-long": "{1}, {0}", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-medium": "{1}, {0}", + "dayPeriods-format-wide-pm": "p.m.", + "dateFormat-full": "EEEE, d MMMM y G", + "dateFormatItem-yyyyMEd": "E, dd.MM.y G", + "field-thu-relative+-1": "joia trecută", + "dateFormatItem-Md": "dd.MM", + "field-era": "eră", "months-standAlone-wide": [ "Tișrei", "Heșvan", @@ -94,16 +67,15 @@ define( "Av", "Elul" ], - "field-week": "săptămână", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "Săptămâna aceasta", - "quarters-format-narrow": [ - "1", - "2", - "3", - "T4" + "quarters-format-wide": [ + "trimestrul I", + "trimestrul al II-lea", + "trimestrul al III-lea", + "trimestrul al IV-lea" ], - "field-week-relative+1": "Săptămâna viitoare", + "field-year": "an", + "field-hour": "oră", + "months-format-abbr-leap": "Adar II", "months-format-abbr": [ "Tișrei", "Heșvan", @@ -119,59 +91,15 @@ define( "Av", "Elul" ], - "field-month-relative+0": "Luna aceasta", - "field-month": "lună", - "field-month-relative+1": "Luna viitoare", - "quarters-format-abbr": [ - "trim. I", - "trim. II", - "trim. III", - "trim. IV" - ], - "days-format-abbr": [ - "Du", - "Lu", - "Ma", - "Mi", - "Jo", - "Vi", - "Sâ" - ], - "days-format-narrow": [ - "D", - "L", - "M", - "M", - "J", - "V", - "S" - ], - "field-second": "secundă", - "field-day": "zi", - "dateFormatItem-MEd": "E, dd.MM", - "days-standAlone-short": [ - "Du", - "Lu", - "Ma", - "Mi", - "Jo", - "Vi", - "Sâ" - ], - "days-standAlone-abbr": [ - "Du", - "Lu", - "Ma", - "Mi", - "Jo", - "Vi", - "Sâ" - ], - "months-standAlone-wide-leap": "Adar II", - "dateFormat-short": "dd.MM.y GGGGG", - "dateFormatItem-Md": "dd.MM", - "dateFormat-full": "EEEE, d MMMM y G", - "months-format-wide": [ + "field-sat-relative+0": "sâmbăta aceasta", + "field-sat-relative+1": "sâmbăta viitoare", + "field-day-relative+0": "azi", + "field-thu-relative+0": "joia aceasta", + "field-day-relative+1": "mâine", + "field-thu-relative+1": "joia viitoare", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "poimâine", + "months-standAlone-abbr": [ "Tișrei", "Heșvan", "Kislev", @@ -186,23 +114,60 @@ define( "Av", "Elul" ], - "days-format-short": [ - "Du", - "Lu", - "Ma", - "Mi", - "Jo", - "Vi", - "Sâ" + "quarters-format-abbr": [ + "trim. I", + "trim. II", + "trim. III", + "trim. IV" ], - "months-format-wide-leap": "Adar II", - "field-month-relative+-1": "Luna trecută", - "quarters-format-wide": [ + "quarters-standAlone-wide": [ "trimestrul I", "trimestrul al II-lea", "trimestrul al III-lea", "trimestrul al IV-lea" ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d MMM y G", + "days-standAlone-wide": [ + "duminică", + "luni", + "marți", + "miercuri", + "joi", + "vineri", + "sâmbătă" + ], + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "months-standAlone-wide-leap": "Adar II", + "field-sun-relative+0": "duminica aceasta", + "field-sun-relative+1": "duminica viitoare", + "quarters-standAlone-abbr": [ + "T1", + "T2", + "T3", + "T4" + ], + "field-minute": "minut", + "field-dayperiod": "a.m./p.m", + "days-standAlone-abbr": [ + "Dum", + "Lun", + "Mar", + "Mie", + "Joi", + "Vin", + "Sâm" + ], + "field-day-relative+-1": "ieri", + "dateTimeFormat-long": "{1}, {0}", + "field-day-relative+-2": "alaltăieri", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E, dd.MM", + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "vinerea aceasta", + "field-fri-relative+1": "vinerea viitoare", + "field-day": "zi", "days-format-wide": [ "duminică", "luni", @@ -211,7 +176,67 @@ define( "joi", "vineri", "sâmbătă" - ] + ], + "field-zone": "fus orar", + "months-standAlone-abbr-leap": "Adar II", + "dateFormatItem-y": "y", + "field-year-relative+-1": "anul trecut", + "field-month-relative+-1": "luna trecută", + "days-format-abbr": [ + "Dum", + "Lun", + "Mar", + "Mie", + "Joi", + "Vin", + "Sâm" + ], + "days-format-narrow": [ + "D", + "L", + "M", + "M", + "J", + "V", + "S" + ], + "dateFormatItem-yyyyMd": "dd.MM.y G", + "field-month": "lună", + "days-standAlone-narrow": [ + "D", + "L", + "M", + "M", + "J", + "V", + "S" + ], + "field-tue-relative+0": "marțea aceasta", + "field-tue-relative+1": "marțea viitoare", + "dayPeriods-format-wide-am": "a.m.", + "field-mon-relative+0": "lunea aceasta", + "field-mon-relative+1": "lunea viitoare", + "dateFormat-short": "dd.MM.y GGGGG", + "field-second": "secundă", + "field-sat-relative+-1": "sâmbăta trecută", + "field-sun-relative+-1": "duminica trecută", + "field-month-relative+0": "luna aceasta", + "field-month-relative+1": "luna viitoare", + "dateFormatItem-Ed": "E d", + "field-week": "săptămână", + "dateFormat-medium": "dd.MM.y G", + "field-year-relative+0": "anul acesta", + "field-week-relative+-1": "săptămâna trecută", + "dateFormatItem-yyyyM": "MM.y G", + "field-year-relative+1": "anul viitor", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1}, {0}", + "months-format-wide-leap": "Adar II", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "lunea trecută", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "săptămâna aceasta", + "field-week-relative+1": "săptămâna viitoare" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ro/islamic.js b/cldr/nls/ro/islamic.js index 33fa550220..84e9f0701e 100644 --- a/cldr/nls/ro/islamic.js +++ b/cldr/nls/ro/islamic.js @@ -1,13 +1,72 @@ define( //begin v1.x content { - "field-dayperiod": "perioada zilei", - "field-minute": "minut", - "dateFormatItem-MMMEd": "E, d MMM", - "dateTimeFormat-full": "{1}, {0}", - "field-day-relative+-1": "ieri", + "days-standAlone-short": [ + "Du", + "Lu", + "Ma", + "Mi", + "Jo", + "Vi", + "Sâ" + ], + "field-second-relative+0": "acum", "field-weekday": "zi a săptămânii", - "field-day-relative+-2": "alaltăieri", + "field-wed-relative+0": "miercurea aceasta", + "field-wed-relative+1": "miercurea viitoare", + "dateFormatItem-GyMMMEd": "E, d MMM y G", + "dateFormatItem-MMMEd": "E, d MMM", + "field-tue-relative+-1": "marțea trecută", + "days-format-short": [ + "Du", + "Lu", + "Ma", + "Mi", + "Jo", + "Vi", + "Sâ" + ], + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "vinerea trecută", + "field-wed-relative+-1": "miercurea trecută", + "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-medium": "{1}, {0}", + "dayPeriods-format-wide-pm": "p.m.", + "dateFormat-full": "EEEE, d MMMM y G", + "dateFormatItem-yyyyMEd": "E, dd.MM.y G", + "field-thu-relative+-1": "joia trecută", + "dateFormatItem-Md": "dd.MM", + "field-era": "eră", + "quarters-format-wide": [ + "trimestrul I", + "trimestrul al II-lea", + "trimestrul al III-lea", + "trimestrul al IV-lea" + ], + "field-year": "an", + "field-hour": "oră", + "field-sat-relative+0": "sâmbăta aceasta", + "field-sat-relative+1": "sâmbăta viitoare", + "field-day-relative+0": "azi", + "field-thu-relative+0": "joia aceasta", + "field-day-relative+1": "mâine", + "field-thu-relative+1": "joia viitoare", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "poimâine", + "quarters-format-abbr": [ + "trim. I", + "trim. II", + "trim. III", + "trim. IV" + ], + "quarters-standAlone-wide": [ + "trimestrul I", + "trimestrul al II-lea", + "trimestrul al III-lea", + "trimestrul al IV-lea" + ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d MMM y G", "days-standAlone-wide": [ "duminică", "luni", @@ -17,21 +76,62 @@ define( "vineri", "sâmbătă" ], - "dateTimeFormat-short": "{1}, {0}", - "field-era": "eră", - "field-hour": "oră", - "dateTimeFormat-medium": "{1}, {0}", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "field-sun-relative+0": "duminica aceasta", + "field-sun-relative+1": "duminica viitoare", "quarters-standAlone-abbr": [ "T1", "T2", "T3", "T4" ], + "eraAbbr": [ + "AH" + ], + "field-minute": "minut", + "field-dayperiod": "a.m./p.m", + "days-standAlone-abbr": [ + "Dum", + "Lun", + "Mar", + "Mie", + "Joi", + "Vin", + "Sâm" + ], + "field-day-relative+-1": "ieri", + "dateTimeFormat-long": "{1}, {0}", + "field-day-relative+-2": "alaltăieri", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E, dd.MM", + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "vinerea aceasta", + "field-fri-relative+1": "vinerea viitoare", + "field-day": "zi", + "days-format-wide": [ + "duminică", + "luni", + "marți", + "miercuri", + "joi", + "vineri", + "sâmbătă" + ], + "field-zone": "fus orar", "dateFormatItem-y": "y", - "dateFormatItem-Ed": "E d", - "field-day-relative+0": "azi", - "field-day-relative+1": "mâine", - "days-standAlone-narrow": [ + "field-year-relative+-1": "anul trecut", + "field-month-relative+-1": "luna trecută", + "days-format-abbr": [ + "Dum", + "Lun", + "Mar", + "Mie", + "Joi", + "Vin", + "Sâm" + ], + "days-format-narrow": [ "D", "L", "M", @@ -40,57 +140,9 @@ define( "V", "S" ], - "field-day-relative+2": "poimâine", - "dateFormat-long": "d MMMM y G", - "field-zone": "zonă", - "field-week-relative+-1": "Săptămâna trecută", - "dateFormat-medium": "dd.MM.y G", - "field-year-relative+0": "Anul acesta", - "field-year-relative+1": "Anul viitor", - "quarters-standAlone-wide": [ - "trimestrul I", - "trimestrul al II-lea", - "trimestrul al III-lea", - "trimestrul al IV-lea" - ], - "field-year-relative+-1": "Anul trecut", - "field-year": "an", - "quarters-standAlone-narrow": [ - "T1", - "T2", - "T3", - "T4" - ], - "dateTimeFormat-long": "{1}, {0}", - "field-week": "săptămână", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "Săptămâna aceasta", - "quarters-format-narrow": [ - "1", - "2", - "3", - "T4" - ], - "field-week-relative+1": "Săptămâna viitoare", - "field-month-relative+0": "Luna aceasta", + "dateFormatItem-yyyyMd": "dd.MM.y G", "field-month": "lună", - "field-month-relative+1": "Luna viitoare", - "quarters-format-abbr": [ - "trim. I", - "trim. II", - "trim. III", - "trim. IV" - ], - "days-format-abbr": [ - "Du", - "Lu", - "Ma", - "Mi", - "Jo", - "Vi", - "Sâ" - ], - "days-format-narrow": [ + "days-standAlone-narrow": [ "D", "L", "M", @@ -99,56 +151,31 @@ define( "V", "S" ], - "field-second": "secundă", - "field-day": "zi", - "dateFormatItem-MEd": "E, dd.MM", - "days-standAlone-short": [ - "Du", - "Lu", - "Ma", - "Mi", - "Jo", - "Vi", - "Sâ" - ], - "days-standAlone-abbr": [ - "Du", - "Lu", - "Ma", - "Mi", - "Jo", - "Vi", - "Sâ" - ], + "field-tue-relative+0": "marțea aceasta", + "field-tue-relative+1": "marțea viitoare", + "dayPeriods-format-wide-am": "a.m.", + "field-mon-relative+0": "lunea aceasta", + "field-mon-relative+1": "lunea viitoare", "dateFormat-short": "dd.MM.y GGGGG", - "dateFormat-full": "EEEE, d MMMM y G", - "dateFormatItem-Md": "dd.MM", - "dateFormatItem-yMEd": "E, dd.MM.y", - "days-format-short": [ - "Du", - "Lu", - "Ma", - "Mi", - "Jo", - "Vi", - "Sâ" - ], - "field-month-relative+-1": "Luna trecută", - "quarters-format-wide": [ - "trimestrul I", - "trimestrul al II-lea", - "trimestrul al III-lea", - "trimestrul al IV-lea" - ], - "days-format-wide": [ - "duminică", - "luni", - "marți", - "miercuri", - "joi", - "vineri", - "sâmbătă" - ] + "field-second": "secundă", + "field-sat-relative+-1": "sâmbăta trecută", + "field-sun-relative+-1": "duminica trecută", + "field-month-relative+0": "luna aceasta", + "field-month-relative+1": "luna viitoare", + "dateFormatItem-Ed": "E d", + "field-week": "săptămână", + "dateFormat-medium": "dd.MM.y G", + "field-year-relative+0": "anul acesta", + "field-week-relative+-1": "săptămâna trecută", + "dateFormatItem-yyyyM": "MM.y G", + "field-year-relative+1": "anul viitor", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "lunea trecută", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "săptămâna aceasta", + "field-week-relative+1": "săptămâna viitoare" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ro/number.js b/cldr/nls/ro/number.js index 353371e0b9..c9dd8dd7c3 100644 --- a/cldr/nls/ro/number.js +++ b/cldr/nls/ro/number.js @@ -10,13 +10,14 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", - "currencyFormat": "#,##0.00 ¤", + "currencyFormat": "#,##0.00 ¤;(#,##0.00 ¤)", "plusSign": "+", "decimalFormat-long": "000 de trilioane", - "decimalFormat-short": "000 T" + "decimalFormat-short": "000 tril'.'" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/roc.js b/cldr/nls/roc.js index 259e14b836..487e3465d0 100644 --- a/cldr/nls/roc.js +++ b/cldr/nls/roc.js @@ -2,16 +2,36 @@ define({ root: //begin v1.x content { - "days-standAlone-short": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" - ], - "months-format-narrow": [ + "dateTimeFormats-appendItem-Year": "{1} {0}", + "field-tue-relative+-1": "last Tuesday", + "field-year": "Year", + "dateFormatItem-Hm": "HH:mm", + "field-wed-relative+0": "this Wednesday", + "field-wed-relative+1": "next Wednesday", + "dateFormatItem-ms": "mm:ss", + "timeFormat-short": "HH:mm", + "field-minute": "Minute", + "dateTimeFormat-short": "{1} {0}", + "field-day-relative+0": "today", + "field-day-relative+1": "tomorrow", + "dayPeriods@localeAlias555": { + "bundle": "gregorian", + "target": "dayPeriods" + }, + "field-tue-relative+0": "this Tuesday", + "field-tue-relative+1": "next Tuesday", + "dayPeriods-format-narrow-am": "a", + "dateFormatItem-MMMd": "MMM d", + "dayPeriods-format-abbr-am": "AM", + "field-week-relative+0": "this week", + "field-month-relative+0": "this month", + "field-week-relative+1": "next week", + "field-month-relative+1": "next month", + "timeFormat-medium": "HH:mm:ss", + "field-second-relative+0": "now", + "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", + "dateFormatItem-yyyyQQQ": "G y QQQ", + "months-standAlone-narrow": [ "1", "2", "3", @@ -25,172 +45,104 @@ define({ root: "11", "12" ], - "quarters-standAlone-narrow": [ - "1", - "2", - "3", - "4" - ], - "field-weekday": "Day of the Week", - "months@localeAlias480": { - "bundle": "gregorian", - "target": "months" - }, - "dateFormatItem-GyMMMEd": "G y MMM d, E", - "dateFormatItem-MMMEd": "MMM d, E", - "eraNarrow": [ + "eraNames": [ "Before R.O.C.", "R.O.C." ], - "days-format-short": [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat" - ], - "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", - "dateFormat-long": "G y MMMM d", - "months-format-wide": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" - ], - "dateFormatItem-yyyyQQQ": "G y QQQ", - "dateTimeFormat-medium": "{1} {0}", - "dayPeriods-format-wide-pm": "PM", - "dateFormat-full": "G y MMMM d, EEEE", - "eraNames@localeAlias510": { - "bundle": "roc", - "target": "eraAbbr" - }, - "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", - "dateFormat@localeAlias512": { + "dateFormatItem-GyMMMEd": "G y MMM d, E", + "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", + "field-day": "Day", + "field-year-relative+-1": "last year", + "dayPeriods-format-wide-am": "AM", + "dateTime@localeAlias562": { "bundle": "generic", - "target": "dateFormat" - }, - "quarters-format-abbr@localeAlias498": { - "bundle": "gregorian", - "target": "quarters-format-wide" - }, - "quarters-format-narrow@localeAlias499": { - "bundle": "gregorian", - "target": "quarters-standAlone-narrow" - }, - "dayPeriods-format-narrow@localeAlias505": { - "bundle": "gregorian", - "target": "dayPeriods-format-abbr" - }, - "dayPeriods-format-narrow@localeAlias506": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "target": "dateTime" }, - "dateFormatItem-Md": "MM-dd", - "dayPeriods-format-abbr-am": "AM", - "dayPeriods-format-narrow@localeAlias508": { + "days-format-narrow@localeAlias540": { "bundle": "gregorian", - "target": "dayPeriods-format-abbr" - }, - "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", - "dayPeriods-format-narrow@localeAlias509": { - "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "target": "days-standAlone-narrow" }, - "field-era": "Era", - "months-standAlone-wide@localeAlias485": { + "dateFormatItem-yyyyMEd": "GGGGG y-MM-dd, E", + "field-wed-relative+-1": "last Wednesday", + "dateTimeFormat-medium": "{1} {0}", + "days-standAlone-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" + ], + "field-second": "Second", + "days@localeAlias538": { "bundle": "gregorian", - "target": "months-format-wide" + "target": "days" }, - "months-standAlone-wide": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" - ], - "timeFormat-short": "HH:mm", - "quarters-format-wide": [ + "dateFormatItem-Ehms": "E h:mm:ss a", + "dateFormat-long": "G y MMMM d", + "dateFormatItem-GyMMMd": "G y MMM d", + "quarters-standAlone-wide": [ "Q1", "Q2", "Q3", "Q4" ], - "timeFormat-long": "HH:mm:ss z", - "field-year": "Year", - "dateTimeFormats-appendItem-Era": "{1} {0}", - "field-hour": "Hour", - "months-format-abbr": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" + "days-format-narrow": [ + "S", + "M", + "T", + "W", + "T", + "F", + "S" ], - "timeFormat@localeAlias513": { - "bundle": "gregorian", - "target": "timeFormat" + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "eraNames@localeAlias558": { + "bundle": "roc", + "target": "eraAbbr" }, - "timeFormat-full": "HH:mm:ss zzzz", - "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", - "field-day-relative+0": "Today", - "field-day-relative+1": "Tomorrow", - "dateFormatItem-GyMMMd": "G y MMM d", - "months-standAlone-abbr": [ - "Month1", - "Month2", - "Month3", - "Month4", - "Month5", - "Month6", - "Month7", - "Month8", - "Month9", - "Month10", - "Month11", - "Month12" + "field-mon-relative+-1": "last Monday", + "dateFormatItem-GyMMM": "G y MMM", + "field-month": "Month", + "dateFormatItem-MMM": "LLL", + "field-dayperiod": "Dayperiod", + "dayPeriods-format-narrow-pm": "p", + "dateFormat-medium": "G y MMM d", + "eraAbbr": [ + "Before R.O.C.", + "R.O.C." ], - "dateFormatItem-H": "HH", - "quarters-format-abbr": [ + "quarters-standAlone-abbr": [ "Q1", "Q2", "Q3", "Q4" ], - "quarters-standAlone-wide": [ - "Q1", - "Q2", - "Q3", - "Q4" + "dayPeriods-format-abbr-pm": "PM", + "dateFormatItem-yyyyM": "GGGGG y-MM", + "field-mon-relative+0": "this Monday", + "field-mon-relative+1": "next Monday", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" ], - "dateFormatItem-Gy": "G y", - "dateFormatItem-yyyyMMMEd": "G y MMM d, E", - "dateFormatItem-M": "L", - "days-standAlone-wide": [ + "dateFormatItem-yyyyMMMd": "G y MMM d", + "days-standAlone-wide@localeAlias548": { + "bundle": "gregorian", + "target": "days-format-wide" + }, + "days-format-short": [ "Sun", "Mon", "Tue", @@ -199,43 +151,86 @@ define({ root: "Fri", "Sat" ], - "dayPeriods@localeAlias503": { + "quarters-format-narrow": [ + "1", + "2", + "3", + "4" + ], + "dayPeriods-format-wide-pm": "PM", + "field-sat-relative+-1": "last Saturday", + "quarters@localeAlias549": { "bundle": "gregorian", - "target": "dayPeriods" + "target": "quarters" }, - "dateFormatItem-yyyyMMM": "G y MMM", - "dateFormatItem-yyyyMMMd": "G y MMM d", - "months-standAlone-abbr@localeAlias483": { + "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", + "dateTimeFormat-long": "{1} {0}", + "dateFormatItem-Md": "MM-dd", + "days-standAlone-abbr@localeAlias543": { "bundle": "gregorian", - "target": "months-format-abbr" + "target": "days-format-abbr" }, - "months-standAlone-abbr@localeAlias484": { + "field-hour": "Hour", + "days-standAlone-abbr@localeAlias544": { "bundle": "gregorian", - "target": "months-format-wide" + "target": "days-format-wide" }, - "months-format-abbr@localeAlias481": { + "months-format-wide": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" + ], + "dateFormat-full": "G y MMMM d, EEEE", + "field-month-relative+-1": "last month", + "dateFormatItem-Hms": "HH:mm:ss", + "field-fri-relative+0": "this Friday", + "field-fri-relative+1": "next Friday", + "quarters-format-narrow@localeAlias551": { "bundle": "gregorian", - "target": "months-format-wide" + "target": "quarters-standAlone-narrow" }, - "timeFormat-medium": "HH:mm:ss", - "quarters-standAlone-wide@localeAlias502": { + "dayPeriods-format-narrow-noon": "n", + "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", + "days-format-abbr@localeAlias539": { "bundle": "gregorian", - "target": "quarters-format-wide" + "target": "days-format-wide" }, - "quarters-standAlone-abbr": [ - "Q1", - "Q2", - "Q3", - "Q4" - ], - "dateFormatItem-Hm": "HH:mm", - "eraAbbr": [ - "Before R.O.C.", - "R.O.C." + "field-week-relative+-1": "last week", + "dateFormatItem-Ehm": "E h:mm a", + "months-format-abbr": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], - "field-minute": "Minute", - "field-dayperiod": "Dayperiod", - "days-standAlone-abbr": [ + "timeFormat-long": "HH:mm:ss z", + "months@localeAlias532": { + "bundle": "gregorian", + "target": "months" + }, + "dateFormat-short": "GGGGG y-MM-dd", + "months-format-abbr@localeAlias533": { + "bundle": "gregorian", + "target": "months-format-wide" + }, + "days-standAlone-wide": [ "Sun", "Mon", "Tue", @@ -244,27 +239,31 @@ define({ root: "Fri", "Sat" ], - "quarters@localeAlias497": { + "dateFormatItem-yyyyMMMEd": "G y MMM d, E", + "dateTimeFormats-appendItem-Era": "{1} {0}", + "dateFormatItem-H": "HH", + "dateFormatItem-yyyy": "G y", + "months-format-narrow@localeAlias534": { "bundle": "gregorian", - "target": "quarters" + "target": "months-standAlone-narrow" }, - "dateFormatItem-d": "d", - "dateFormatItem-ms": "mm:ss", - "quarters-format-narrow": [ - "1", - "2", - "3", - "4" + "dateFormatItem-M": "L", + "months-standAlone-wide": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" ], - "field-day-relative+-1": "Yesterday", - "dayPeriods-format-narrow-am": "AM", - "dateTimeFormat-long": "{1} {0}", - "dateFormatItem-h": "h a", - "dateFormatItem-MMMd": "MMM d", - "dateFormatItem-MEd": "MM-dd, E", - "dateTimeFormat-full": "{1} {0}", - "field-day": "Day", - "days-format-wide": [ + "field-sun-relative+-1": "last Sunday", + "days-standAlone-abbr": [ "Sun", "Mon", "Tue", @@ -273,36 +272,62 @@ define({ root: "Fri", "Sat" ], - "months-format-narrow@localeAlias482": { + "dateTimeFormat-full": "{1} {0}", + "dateFormatItem-hm": "h:mm a", + "dateFormat@localeAlias560": { + "bundle": "generic", + "target": "dateFormat" + }, + "dateFormatItem-d": "d", + "field-weekday": "Day of the Week", + "field-sat-relative+0": "this Saturday", + "dateFormatItem-h": "h a", + "field-sat-relative+1": "next Saturday", + "months-standAlone-abbr": [ + "M01", + "M02", + "M03", + "M04", + "M05", + "M06", + "M07", + "M08", + "M09", + "M10", + "M11", + "M12" + ], + "quarters-standAlone-wide@localeAlias554": { "bundle": "gregorian", - "target": "months-standAlone-narrow" + "target": "quarters-format-wide" }, - "field-zone": "Zone", - "months-standAlone-narrow": [ + "timeFormat-full": "HH:mm:ss zzzz", + "dateFormatItem-MEd": "MM-dd, E", + "dateFormatItem-y": "G y", + "field-thu-relative+0": "this Thursday", + "field-thu-relative+1": "next Thursday", + "dateFormatItem-hms": "h:mm:ss a", + "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", + "dayPeriods-format-abbr-noon": "noon", + "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", + "field-thu-relative+-1": "last Thursday", + "field-week": "Week", + "quarters-standAlone-narrow": [ "1", "2", "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12" + "4" ], - "dateFormatItem-y": "G y", - "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", - "dateFormatItem-hm": "h:mm a", - "dateTimeFormats-appendItem-Year": "{1} {0}", - "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", - "dayPeriods-format-abbr-pm": "PM", - "days-format-short@localeAlias489": { - "bundle": "gregorian", - "target": "days-format-abbr" - }, - "days-format-abbr": [ + "quarters-format-wide": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], + "dateFormatItem-Ed": "d, E", + "dateFormatItem-yyyyMMM": "G y MMM", + "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", + "days-standAlone-short": [ "Sun", "Mon", "Tue", @@ -311,113 +336,110 @@ define({ root: "Fri", "Sat" ], - "eraNames": [ - "Before R.O.C.", - "R.O.C." - ], - "days-format-narrow": [ - "S", - "M", - "T", - "W", - "T", - "F", - "S" - ], - "quarters-standAlone-abbr@localeAlias500": { + "quarters-standAlone-abbr@localeAlias552": { "bundle": "gregorian", "target": "quarters-format-abbr" }, - "quarters-standAlone-abbr@localeAlias501": { + "quarters-standAlone-abbr@localeAlias553": { "bundle": "gregorian", "target": "quarters-format-wide" }, - "dateTime@localeAlias514": { - "bundle": "generic", - "target": "dateTime" - }, - "dateFormatItem-yyyyMd": "GGGGG y-MM-dd", - "days-standAlone-narrow": [ - "S", - "M", - "T", - "W", - "T", - "F", - "S" + "dateFormatItem-yyyyQQQQ": "G y QQQQ", + "quarters-format-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" ], - "dayPeriods-format-abbr@localeAlias504": { + "field-year-relative+0": "this year", + "field-year-relative+1": "next year", + "field-fri-relative+-1": "last Friday", + "eraNarrow": [ + "Before R.O.C.", + "R.O.C." + ], + "quarters-format-abbr@localeAlias550": { "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "target": "quarters-format-wide" }, - "dateFormatItem-MMM": "LLL", - "field-month": "Month", - "eraNarrow@localeAlias511": { - "bundle": "roc", - "target": "eraAbbr" + "days-standAlone-short@localeAlias545": { + "bundle": "gregorian", + "target": "days-format-short" }, - "dayPeriods-format-abbr@localeAlias507": { + "months-standAlone-wide@localeAlias537": { "bundle": "gregorian", - "target": "dayPeriods-format-wide" + "target": "months-format-wide" }, - "days-standAlone-wide@localeAlias496": { + "days-standAlone-short@localeAlias546": { "bundle": "gregorian", - "target": "days-format-wide" + "target": "days-format-abbr" }, - "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", - "dayPeriods-format-wide-am": "AM", - "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", - "days-format-short@localeAlias490": { + "dayPeriods-format-wide-noon": "noon", + "days-standAlone-short@localeAlias547": { "bundle": "gregorian", "target": "days-format-wide" }, - "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", - "dateFormat-short": "GGGGG y-MM-dd", - "field-second": "Second", - "days-standAlone-abbr@localeAlias491": { + "dayPeriods-format-abbr@localeAlias556": { "bundle": "gregorian", - "target": "days-format-abbr" + "target": "dayPeriods-format-wide" }, - "days-standAlone-abbr@localeAlias492": { + "dayPeriods-format-abbr@localeAlias557": { "bundle": "gregorian", - "target": "days-format-wide" + "target": "dayPeriods-format-wide" }, - "days-standAlone-short@localeAlias493": { + "days-format-wide": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", + "dateFormatItem-EHm": "E HH:mm", + "months-standAlone-abbr@localeAlias535": { "bundle": "gregorian", - "target": "days-format-short" + "target": "months-format-abbr" }, - "days-standAlone-short@localeAlias494": { + "field-zone": "Zone", + "months-standAlone-abbr@localeAlias536": { "bundle": "gregorian", - "target": "days-format-abbr" + "target": "months-format-wide" }, - "days-standAlone-short@localeAlias495": { + "days-format-short@localeAlias541": { "bundle": "gregorian", - "target": "days-format-wide" + "target": "days-format-abbr" }, - "days-format-abbr@localeAlias487": { + "dateFormatItem-MMMEd": "MMM d, E", + "days-format-short@localeAlias542": { "bundle": "gregorian", "target": "days-format-wide" }, - "dateFormatItem-Ed": "d, E", - "dateTimeFormats-appendItem-Timezone": "{0} {1}", - "field-week": "Week", - "dateFormat-medium": "G y MMM d", - "dateFormatItem-yyyyM": "GGGGG y-MM", - "dayPeriods-format-narrow-pm": "PM", - "dateFormatItem-yyyyQQQQ": "G y QQQQ", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Hms": "HH:mm:ss", - "days-format-narrow@localeAlias488": { - "bundle": "gregorian", - "target": "days-standAlone-narrow" + "dateFormatItem-EHms": "E HH:mm:ss", + "eraNarrow@localeAlias559": { + "bundle": "roc", + "target": "eraAbbr" }, - "dateFormatItem-hms": "h:mm:ss a", - "days@localeAlias486": { + "field-day-relative+-1": "yesterday", + "days-format-abbr": [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + "field-sun-relative+0": "this Sunday", + "field-sun-relative+1": "next Sunday", + "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", + "dateFormatItem-Gy": "G y", + "field-era": "Era", + "timeFormat@localeAlias561": { "bundle": "gregorian", - "target": "days" - }, - "dateFormatItem-GyMMM": "G y MMM", - "dateFormatItem-yyyy": "G y" + "target": "timeFormat" + } } //end v1.x content , diff --git a/cldr/nls/ru/buddhist.js b/cldr/nls/ru/buddhist.js index 9f05ce2f9b..b89b94ad8b 100644 --- a/cldr/nls/ru/buddhist.js +++ b/cldr/nls/ru/buddhist.js @@ -24,9 +24,13 @@ define( "Н", "Д" ], + "field-second-relative+0": "сейчас", "field-weekday": "День недели", + "field-wed-relative+0": "в эту среду", + "field-wed-relative+1": "в следующую среду", "dateFormatItem-GyMMMEd": "E, d MMM y G", "dateFormatItem-MMMEd": "ccc, d MMM", + "field-tue-relative+-1": "в прошлый вторник", "days-format-short": [ "вс", "пн", @@ -37,6 +41,8 @@ define( "сб" ], "dateFormat-long": "d MMMM y 'г'. G", + "field-fri-relative+-1": "в прошлую пятницу", + "field-wed-relative+-1": "в прошлую среду", "months-format-wide": [ "января", "февраля", @@ -53,11 +59,10 @@ define( ], "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1}, {0}", - "dayPeriods-format-wide-pm": "после полудня", "dateFormat-full": "EEEE, d MMMM y 'г'. G", "dateFormatItem-yyyyMEd": "E, dd.MM.y G", + "field-thu-relative+-1": "в прошлый четверг", "dateFormatItem-Md": "dd.MM", - "dayPeriods-format-abbr-am": "до полудня", "field-era": "Эра", "months-standAlone-wide": [ "Январь", @@ -97,11 +102,15 @@ define( "нояб.", "дек." ], + "field-sat-relative+0": "в эту субботу", + "field-sat-relative+1": "в следующую субботу", "timeFormat-full": "H:mm:ss zzzz", - "field-day-relative+0": "Сегодня", - "field-day-relative+1": "Завтра", + "field-day-relative+0": "сегодня", + "field-thu-relative+0": "в этот четверг", + "field-day-relative+1": "завтра", + "field-thu-relative+1": "в следующий четверг", "dateFormatItem-GyMMMd": "d MMM y G", - "field-day-relative+2": "Послезавтра", + "field-day-relative+2": "послезавтра", "dateFormatItem-H": "H", "months-standAlone-abbr": [ "Янв.", @@ -143,7 +152,9 @@ define( "dateFormatItem-yyyyMMM": "LLL y G", "dateFormatItem-yyyyMMMd": "d MMM y G", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "в это воскресенье", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "в следующее воскресенье", "quarters-standAlone-abbr": [ "1-й кв.", "2-й кв.", @@ -164,13 +175,15 @@ define( "Пт", "Сб" ], - "field-day-relative+-1": "Вчера", + "field-day-relative+-1": "вчера", "dateTimeFormat-long": "{1}, {0}", - "dayPeriods-format-narrow-am": "дп", - "field-day-relative+-2": "Позавчера", + "dayPeriods-format-narrow-am": "AM", + "field-day-relative+-2": "позавчера", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E, dd.MM", "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "в эту пятницу", + "field-fri-relative+1": "в следующую пятницу", "field-day": "День", "days-format-wide": [ "воскресенье", @@ -197,9 +210,8 @@ define( "Н", "Д" ], - "field-year-relative+-1": "В прошлом году", - "field-month-relative+-1": "В прошлом месяце", - "dayPeriods-format-abbr-pm": "после полудня", + "field-year-relative+-1": "в прошлом году", + "field-month-relative+-1": "в прошлом месяце", "days-format-abbr": [ "вс", "пн", @@ -229,26 +241,32 @@ define( "П", "С" ], - "dayPeriods-format-wide-am": "до полудня", + "field-tue-relative+0": "в этот вторник", + "field-tue-relative+1": "в следующий вторник", + "field-mon-relative+0": "в этот понедельник", + "field-mon-relative+1": "в следующий понедельник", "dateFormat-short": "dd.MM.y G", "field-second": "Секунда", - "field-month-relative+0": "В этом месяце", - "field-month-relative+1": "В следующем месяце", + "field-sat-relative+-1": "в прошлую субботу", + "field-sun-relative+-1": "в прошлое воскресенье", + "field-month-relative+0": "в этом месяце", + "field-month-relative+1": "в следующем месяце", "dateFormatItem-Ed": "E, d", "field-week": "Неделя", "dateFormat-medium": "dd.MM.y G", - "field-year-relative+0": "В этом году", - "field-week-relative+-1": "На прошлой неделе", + "field-year-relative+0": "в этому году", + "field-week-relative+-1": "на прошлой неделе", "dateFormatItem-yyyyM": "MM.y G", - "field-year-relative+1": "В следующем году", - "dayPeriods-format-narrow-pm": "пп", + "field-year-relative+1": "в следующем году", + "dayPeriods-format-narrow-pm": "PM", "dateFormatItem-yyyyQQQQ": "QQQQ y 'г'. G", "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "в прошлый понедельник", "dateFormatItem-yyyy": "y G", - "field-week-relative+0": "На этой неделе", - "field-week-relative+1": "На следующей неделе" + "field-week-relative+0": "на этой неделе", + "field-week-relative+1": "на следующей неделе" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ru/chinese.js b/cldr/nls/ru/chinese.js index 9a43687dda..a77788d14d 100644 --- a/cldr/nls/ru/chinese.js +++ b/cldr/nls/ru/chinese.js @@ -1,21 +1,7 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E, d MMM U", - "field-dayperiod": "ДП/ПП", - "field-minute": "Минута", - "dateFormatItem-MMMEd": "ccc, d MMM", - "field-day-relative+-1": "Вчера", - "dateFormatItem-hms": "h:mm:ss a", - "field-day-relative+-2": "Позавчера", - "field-weekday": "День недели", - "dateFormatItem-MMM": "LLL", - "dateFormatItem-Gy": "U", - "field-era": "Эра", - "field-hour": "Час", - "dateFormatItem-y": "U", - "dateFormatItem-yyyy": "U", - "months-standAlone-abbr": [ + "months-format-narrow": [ "1", "2", "3", @@ -29,24 +15,22 @@ define( "11", "12" ], - "dateFormatItem-Ed": "E, d", - "field-day-relative+0": "Сегодня", - "field-day-relative+1": "Завтра", - "field-day-relative+2": "Послезавтра", - "dateFormatItem-GyMMMd": "d MMM U", - "dateFormatItem-yyyyMMMM": "LLLL U", + "field-second-relative+0": "сейчас", + "field-weekday": "День недели", + "field-wed-relative+0": "в эту среду", + "field-wed-relative+1": "в следующую среду", + "dateFormatItem-GyMMMEd": "E, d MMM U", + "dateFormatItem-MMMEd": "ccc, d MMM", + "field-tue-relative+-1": "в прошлый вторник", "dateFormat-long": "d MMMM U", - "field-zone": "Часовой пояс", - "dateFormatItem-Hm": "H:mm", - "field-week-relative+-1": "На прошлой неделе", - "dateFormat-medium": "dd.MM U", - "dateFormatItem-Hms": "H:mm:ss", - "field-year-relative+0": "В этом году", - "field-year-relative+1": "В следующем году", - "field-year-relative+-1": "В прошлом году", - "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ U", - "field-year": "Год", + "field-fri-relative+-1": "в прошлую пятницу", + "field-wed-relative+-1": "в прошлую среду", + "dateFormatItem-yyyyQQQ": "QQQ U", + "dateFormat-full": "EEEE, d MMMM U", + "dateFormatItem-yyyyMEd": "E, dd.MM.y", + "field-thu-relative+-1": "в прошлый четверг", + "dateFormatItem-Md": "dd.MM", + "field-era": "Эра", "months-standAlone-wide": [ "1", "2", @@ -61,13 +45,9 @@ define( "11", "12" ], - "field-week": "Неделя", - "dateFormatItem-yyyyMd": "dd.MM.y", - "dateFormatItem-yyyyMMMd": "d MMM U", - "dateFormatItem-yyyyMEd": "E, dd.MM.y", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "На этой неделе", - "field-week-relative+1": "На следующей неделе", + "field-year": "Год", + "dateFormatItem-yyyyMMMM": "LLLL U", + "field-hour": "Час", "months-format-abbr": [ "1", "2", @@ -82,19 +62,17 @@ define( "11", "12" ], + "field-sat-relative+0": "в эту субботу", + "field-sat-relative+1": "в следующую субботу", "dateFormatItem-E": "ccc", - "field-month-relative+0": "В этом месяце", + "field-day-relative+0": "сегодня", + "field-day-relative+1": "завтра", + "field-thu-relative+0": "в этот четверг", + "dateFormatItem-GyMMMd": "d MMM U", + "field-day-relative+2": "послезавтра", + "field-thu-relative+1": "в следующий четверг", "dateFormatItem-H": "H", - "field-month": "Месяц", - "field-month-relative+1": "В следующем месяце", - "dateFormatItem-M": "L", - "field-second": "Секунда", - "dateFormatItem-GyMMMEd": "E, d MMM U", - "dateFormatItem-GyMMM": "LLL U", - "field-day": "День", - "dateFormatItem-MEd": "E, dd.MM", - "dateFormatItem-yyyyQQQ": "QQQ U", - "months-format-narrow": [ + "months-standAlone-abbr": [ "1", "2", "3", @@ -108,15 +86,59 @@ define( "11", "12" ], + "dateFormatItem-Gy": "U", + "dateFormatItem-yyyyMMMEd": "E, d MMM U", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "LLL U", + "dateFormatItem-yyyyMMMd": "d MMM U", + "field-sun-relative+0": "в это воскресенье", + "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "в следующее воскресенье", + "field-minute": "Минута", + "field-dayperiod": "ДП/ПП", + "dateFormatItem-d": "d", + "dateFormatItem-ms": "mm:ss", + "field-day-relative+-1": "вчера", + "dateFormatItem-h": "h a", + "field-day-relative+-2": "позавчера", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E, dd.MM", + "field-fri-relative+0": "в эту пятницу", + "field-fri-relative+1": "в следующую пятницу", + "field-day": "День", + "field-zone": "Часовой пояс", + "dateFormatItem-y": "U", + "field-year-relative+-1": "в прошлом году", + "field-month-relative+-1": "в прошлом месяце", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "dd.MM.y", + "field-month": "Месяц", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "в этот вторник", + "field-tue-relative+1": "в следующий вторник", + "field-mon-relative+0": "в этот понедельник", + "field-mon-relative+1": "в следующий понедельник", "dateFormat-short": "dd.MM.y", + "field-second": "Секунда", + "field-sat-relative+-1": "в прошлую субботу", + "field-sun-relative+-1": "в прошлое воскресенье", + "field-month-relative+0": "в этом месяце", + "field-month-relative+1": "в следующем месяце", + "dateFormatItem-Ed": "E, d", + "field-week": "Неделя", + "dateFormat-medium": "dd.MM U", + "field-year-relative+0": "в этому году", + "field-week-relative+-1": "на прошлой неделе", "dateFormatItem-yyyyM": "MM.y", - "dateFormat-full": "EEEE, d MMMM U", - "dateFormatItem-Md": "dd.MM", - "dateFormatItem-yyyyMMM": "LLL U", - "dateFormatItem-d": "d", - "field-month-relative+-1": "В прошлом месяце", - "dateFormatItem-h": "h a" + "field-year-relative+1": "в следующем году", + "dateFormatItem-yyyyQQQQ": "QQQQ U", + "dateFormatItem-Hms": "H:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "LLL U", + "field-mon-relative+-1": "в прошлый понедельник", + "dateFormatItem-yyyy": "U", + "field-week-relative+0": "на этой неделе", + "field-week-relative+1": "на следующей неделе" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ru/coptic.js b/cldr/nls/ru/coptic.js index 8d328831a3..035ba2eb2f 100644 --- a/cldr/nls/ru/coptic.js +++ b/cldr/nls/ru/coptic.js @@ -1,28 +1,20 @@ define( //begin v1.x content { - "field-second": "Секунда", - "field-year-relative+-1": "В прошлом году", - "field-week": "Неделя", - "field-month-relative+-1": "В прошлом месяце", - "field-day-relative+-1": "Вчера", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], - "field-day-relative+-2": "Позавчера", - "months-standAlone-wide": [ + "field-sat-relative+0": "в эту субботу", + "field-sat-relative+1": "в следующую субботу", + "field-dayperiod": "ДП/ПП", + "field-sun-relative+-1": "в прошлое воскресенье", + "field-mon-relative+-1": "в прошлый понедельник", + "field-minute": "Минута", + "field-day-relative+-1": "вчера", + "field-weekday": "День недели", + "field-day-relative+-2": "позавчера", + "field-era": "Эра", + "field-hour": "Час", + "field-sun-relative+0": "в это воскресенье", + "field-sun-relative+1": "в следующее воскресенье", + "months-standAlone-abbr": [ "Тот", "Бабэ", "Хатур", @@ -37,9 +29,22 @@ define( "Мисра", "Наси" ], + "field-wed-relative+-1": "в прошлую среду", + "field-day-relative+0": "сегодня", + "field-day-relative+1": "завтра", + "field-day-relative+2": "послезавтра", + "field-tue-relative+0": "в этот вторник", + "field-zone": "Часовой пояс", + "field-tue-relative+1": "в следующий вторник", + "field-week-relative+-1": "на прошлой неделе", + "field-year-relative+0": "в этому году", + "field-year-relative+1": "в следующем году", + "field-sat-relative+-1": "в прошлую субботу", + "field-year-relative+-1": "в прошлом году", "field-year": "Год", - "field-week-relative+0": "На этой неделе", - "months-standAlone-abbr": [ + "field-fri-relative+0": "в эту пятницу", + "field-fri-relative+1": "в следующую пятницу", + "months-standAlone-wide": [ "Тот", "Бабэ", "Хатур", @@ -54,19 +59,10 @@ define( "Мисра", "Наси" ], - "field-week-relative+1": "На следующей неделе", - "field-minute": "Минута", - "field-week-relative+-1": "На прошлой неделе", - "field-day-relative+0": "Сегодня", - "field-hour": "Час", - "field-day-relative+1": "Завтра", - "field-day-relative+2": "Послезавтра", - "field-day": "День", - "field-month-relative+0": "В этом месяце", - "field-month-relative+1": "В следующем месяце", - "field-dayperiod": "ДП/ПП", - "field-month": "Месяц", - "months-format-wide": [ + "field-week": "Неделя", + "field-week-relative+0": "на этой неделе", + "field-week-relative+1": "на следующей неделе", + "months-format-abbr": [ "Тот", "Бабэ", "Хатур", @@ -81,10 +77,34 @@ define( "Мисра", "Наси" ], - "field-era": "Эра", - "field-year-relative+0": "В этом году", - "field-year-relative+1": "В следующем году", - "months-format-abbr": [ + "field-month-relative+0": "в этом месяце", + "field-month": "Месяц", + "field-month-relative+1": "в следующем месяце", + "field-fri-relative+-1": "в прошлую пятницу", + "field-second": "Секунда", + "field-tue-relative+-1": "в прошлый вторник", + "field-day": "День", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "в этот понедельник", + "field-mon-relative+1": "в следующий понедельник", + "field-thu-relative+0": "в этот четверг", + "field-second-relative+0": "сейчас", + "field-thu-relative+1": "в следующий четверг", + "months-format-wide": [ "Тот", "Бабэ", "Хатур", @@ -99,8 +119,10 @@ define( "Мисра", "Наси" ], - "field-weekday": "День недели", - "field-zone": "Часовой пояс" + "field-wed-relative+0": "в эту среду", + "field-wed-relative+1": "в следующую среду", + "field-month-relative+-1": "в прошлом месяце", + "field-thu-relative+-1": "в прошлый четверг" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ru/currency.js b/cldr/nls/ru/currency.js index 8f0e51ab27..4ab23ffde3 100644 --- a/cldr/nls/ru/currency.js +++ b/cldr/nls/ru/currency.js @@ -5,12 +5,18 @@ define( "CHF_displayName": "Швейцарский франк", "JPY_symbol": "¥", "CAD_displayName": "Канадский доллар", + "HKD_symbol": "HK$", "CNY_displayName": "Юань Ренминби", "USD_symbol": "$", "AUD_displayName": "Австралийский доллар", "JPY_displayName": "Японская иена", + "CAD_symbol": "CA$", "USD_displayName": "Доллар США", + "EUR_symbol": "€", + "CNY_symbol": "CN¥", "GBP_displayName": "Английский фунт стерлингов", + "GBP_symbol": "£", + "AUD_symbol": "A$", "EUR_displayName": "Евро" } //end v1.x content diff --git a/cldr/nls/ru/ethiopic.js b/cldr/nls/ru/ethiopic.js index 6e131b677a..2fe21a373b 100644 --- a/cldr/nls/ru/ethiopic.js +++ b/cldr/nls/ru/ethiopic.js @@ -1,28 +1,20 @@ define( //begin v1.x content { - "field-second": "Секунда", - "field-year-relative+-1": "В прошлом году", - "field-week": "Неделя", - "field-month-relative+-1": "В прошлом месяце", - "field-day-relative+-1": "Вчера", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], - "field-day-relative+-2": "Позавчера", - "months-standAlone-wide": [ + "field-sat-relative+0": "в эту субботу", + "field-sat-relative+1": "в следующую субботу", + "field-dayperiod": "ДП/ПП", + "field-sun-relative+-1": "в прошлое воскресенье", + "field-mon-relative+-1": "в прошлый понедельник", + "field-minute": "Минута", + "field-day-relative+-1": "вчера", + "field-weekday": "День недели", + "field-day-relative+-2": "позавчера", + "field-era": "Эра", + "field-hour": "Час", + "field-sun-relative+0": "в это воскресенье", + "field-sun-relative+1": "в следующее воскресенье", + "months-standAlone-abbr": [ "Мескерем", "Текемт", "Хедар", @@ -37,9 +29,22 @@ define( "Нахасэ", "Эпагомен" ], + "field-wed-relative+-1": "в прошлую среду", + "field-day-relative+0": "сегодня", + "field-day-relative+1": "завтра", + "field-day-relative+2": "послезавтра", + "field-tue-relative+0": "в этот вторник", + "field-zone": "Часовой пояс", + "field-tue-relative+1": "в следующий вторник", + "field-week-relative+-1": "на прошлой неделе", + "field-year-relative+0": "в этому году", + "field-year-relative+1": "в следующем году", + "field-sat-relative+-1": "в прошлую субботу", + "field-year-relative+-1": "в прошлом году", "field-year": "Год", - "field-week-relative+0": "На этой неделе", - "months-standAlone-abbr": [ + "field-fri-relative+0": "в эту пятницу", + "field-fri-relative+1": "в следующую пятницу", + "months-standAlone-wide": [ "Мескерем", "Текемт", "Хедар", @@ -54,19 +59,10 @@ define( "Нахасэ", "Эпагомен" ], - "field-week-relative+1": "На следующей неделе", - "field-minute": "Минута", - "field-week-relative+-1": "На прошлой неделе", - "field-day-relative+0": "Сегодня", - "field-hour": "Час", - "field-day-relative+1": "Завтра", - "field-day-relative+2": "Послезавтра", - "field-day": "День", - "field-month-relative+0": "В этом месяце", - "field-month-relative+1": "В следующем месяце", - "field-dayperiod": "ДП/ПП", - "field-month": "Месяц", - "months-format-wide": [ + "field-week": "Неделя", + "field-week-relative+0": "на этой неделе", + "field-week-relative+1": "на следующей неделе", + "months-format-abbr": [ "Мескерем", "Текемт", "Хедар", @@ -81,10 +77,34 @@ define( "Нахасэ", "Эпагомен" ], - "field-era": "Эра", - "field-year-relative+0": "В этом году", - "field-year-relative+1": "В следующем году", - "months-format-abbr": [ + "field-month-relative+0": "в этом месяце", + "field-month": "Месяц", + "field-month-relative+1": "в следующем месяце", + "field-fri-relative+-1": "в прошлую пятницу", + "field-second": "Секунда", + "field-tue-relative+-1": "в прошлый вторник", + "field-day": "День", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "в этот понедельник", + "field-mon-relative+1": "в следующий понедельник", + "field-thu-relative+0": "в этот четверг", + "field-second-relative+0": "сейчас", + "field-thu-relative+1": "в следующий четверг", + "months-format-wide": [ "Мескерем", "Текемт", "Хедар", @@ -99,8 +119,10 @@ define( "Нахасэ", "Эпагомен" ], - "field-weekday": "День недели", - "field-zone": "Часовой пояс" + "field-wed-relative+0": "в эту среду", + "field-wed-relative+1": "в следующую среду", + "field-month-relative+-1": "в прошлом месяце", + "field-thu-relative+-1": "в прошлый четверг" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ru/generic.js b/cldr/nls/ru/generic.js index 4979629c9f..d7ae1a558c 100644 --- a/cldr/nls/ru/generic.js +++ b/cldr/nls/ru/generic.js @@ -1,70 +1,92 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E, d MMM y G", - "field-dayperiod": "ДП/ПП", - "field-minute": "Минута", - "dateFormatItem-MMMEd": "ccc, d MMM", - "dateTimeFormat-full": "{1}, {0}", - "field-day-relative+-1": "Вчера", - "dateFormatItem-hms": "h:mm:ss a", - "field-day-relative+-2": "Позавчера", + "field-second-relative+0": "сейчас", "field-weekday": "День недели", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1}, {0}", - "dateFormatItem-Gy": "y G", + "field-wed-relative+0": "в эту среду", + "field-wed-relative+1": "в следующую среду", + "dateFormatItem-GyMMMEd": "E, d MMM y G", + "dateFormatItem-MMMEd": "ccc, d MMM", + "field-tue-relative+-1": "в прошлый вторник", + "dateFormat-long": "d MMMM y 'г'. G", + "field-fri-relative+-1": "в прошлую пятницу", + "field-wed-relative+-1": "в прошлую среду", + "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1}, {0}", + "dateFormat-full": "EEEE, d MMMM y 'г'. G", + "dateFormatItem-yyyyMEd": "E, dd.MM.y G", + "field-thu-relative+-1": "в прошлый четверг", + "dateFormatItem-Md": "dd.MM", "field-era": "Эра", + "field-year": "Год", + "dateFormatItem-yyyyMMMM": "LLLL y G", "field-hour": "Час", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E, d", - "field-day-relative+0": "Сегодня", - "field-day-relative+1": "Завтра", - "field-day-relative+2": "Послезавтра", + "field-sat-relative+0": "в эту субботу", + "field-sat-relative+1": "в следующую субботу", + "dateFormatItem-E": "ccc", + "field-day-relative+0": "сегодня", + "field-day-relative+1": "завтра", + "field-thu-relative+0": "в этот четверг", "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormatItem-yyyyMMMM": "LLLL y G", - "dateFormat-long": "d MMMM y 'г'. G", - "field-zone": "Часовой пояс", + "field-day-relative+2": "послезавтра", + "field-thu-relative+1": "в следующий четверг", + "dateFormatItem-H": "H", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d MMM y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "LLL y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "field-sun-relative+0": "в это воскресенье", "dateFormatItem-Hm": "H:mm", - "field-week-relative+-1": "На прошлой неделе", - "dateFormat-medium": "dd.MM.y G", - "dateFormatItem-Hms": "H:mm:ss", - "field-year-relative+0": "В этом году", - "field-year-relative+1": "В следующем году", - "field-year-relative+-1": "В прошлом году", + "field-sun-relative+1": "в следующее воскресенье", + "field-minute": "Минута", + "field-dayperiod": "ДП/ПП", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ y 'г'. G", - "field-year": "Год", + "field-day-relative+-1": "вчера", + "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1}, {0}", - "field-week": "Неделя", - "dateFormatItem-yyyyMd": "dd.MM.y G", - "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMEd": "E, dd.MM.y G", + "field-day-relative+-2": "позавчера", "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "На этой неделе", - "field-week-relative+1": "На следующей неделе", - "dateFormatItem-E": "ccc", - "field-month-relative+0": "В этом месяце", - "dateFormatItem-H": "H", - "field-month": "Месяц", - "field-month-relative+1": "В следующем месяце", - "dateFormatItem-M": "L", - "field-second": "Секунда", - "dateFormatItem-GyMMMEd": "E, d MMM y G", - "dateFormatItem-GyMMM": "LLL y G", - "field-day": "День", "dateFormatItem-MEd": "E, dd.MM", - "dateFormatItem-yyyyQQQ": "QQQ y G", + "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "в эту пятницу", + "field-fri-relative+1": "в следующую пятницу", + "field-day": "День", + "field-zone": "Часовой пояс", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "в прошлом году", + "field-month-relative+-1": "в прошлом месяце", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "dd.MM.y G", + "field-month": "Месяц", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "в этот вторник", + "field-tue-relative+1": "в следующий вторник", + "field-mon-relative+0": "в этот понедельник", + "field-mon-relative+1": "в следующий понедельник", "dateFormat-short": "dd.MM.y G", + "field-second": "Секунда", + "field-sat-relative+-1": "в прошлую субботу", + "field-sun-relative+-1": "в прошлое воскресенье", + "field-month-relative+0": "в этом месяце", + "field-month-relative+1": "в следующем месяце", + "dateFormatItem-Ed": "E, d", + "field-week": "Неделя", + "dateFormat-medium": "dd.MM.y G", + "field-year-relative+0": "в этому году", + "field-week-relative+-1": "на прошлой неделе", "dateFormatItem-yyyyM": "MM.y G", - "dateFormat-full": "EEEE, d MMMM y 'г'. G", - "dateFormatItem-Md": "dd.MM", - "dateFormatItem-yyyyMMM": "LLL y G", - "dateFormatItem-d": "d", - "field-month-relative+-1": "В прошлом месяце", - "dateFormatItem-h": "h a" + "field-year-relative+1": "в следующем году", + "dateFormatItem-yyyyQQQQ": "QQQQ y 'г'. G", + "dateTimeFormat-short": "{1}, {0}", + "dateFormatItem-Hms": "H:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "в прошлый понедельник", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "на этой неделе", + "field-week-relative+1": "на следующей неделе" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ru/gregorian.js b/cldr/nls/ru/gregorian.js index db6a82241e..b2516c8bf3 100644 --- a/cldr/nls/ru/gregorian.js +++ b/cldr/nls/ru/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "вс", "пн", @@ -24,16 +25,27 @@ define( "Н", "Д" ], + "field-second-relative+0": "сейчас", + "quarters-standAlone-narrow": [ + "1", + "2", + "3", + "4" + ], "field-weekday": "День недели", "dateFormatItem-yQQQ": "QQQ y 'г'.", "dateFormatItem-yMEd": "ccc, d.MM.y 'г'.", + "field-wed-relative+0": "в эту среду", + "field-wed-relative+1": "в следующую среду", "dateFormatItem-GyMMMEd": "E, d MMM y G", "dateFormatItem-MMMEd": "ccc, d MMM", "eraNarrow": [ "до н.э.", + "н.э.", "н.э." ], "dateFormatItem-yMM": "MM.y", + "field-tue-relative+-1": "в прошлый вторник", "days-format-short": [ "вс", "пн", @@ -44,6 +56,8 @@ define( "сб" ], "dateFormat-long": "d MMMM y 'г'.", + "field-fri-relative+-1": "в прошлую пятницу", + "field-wed-relative+-1": "в прошлую среду", "months-format-wide": [ "января", "февраля", @@ -59,13 +73,14 @@ define( "декабря" ], "dateTimeFormat-medium": "{1}, {0}", - "dayPeriods-format-wide-pm": "после полудня", + "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "EEEE, d MMMM y 'г'.", + "field-thu-relative+-1": "в прошлый четверг", "dateFormatItem-Md": "dd.MM", - "dayPeriods-format-abbr-am": "до полудня", + "dayPeriods-format-abbr-am": "AM", "dateFormatItem-yMd": "dd.MM.y", - "dateFormatItem-yM": "MM.y", "field-era": "Эра", + "dateFormatItem-yM": "MM.y", "months-standAlone-wide": [ "Январь", "Февраль", @@ -87,12 +102,12 @@ define( "3-й квартал", "4-й квартал" ], - "timeFormat-long": "H:mm:ss z", - "dateFormatItem-yMMM": "LLL y", "dateFormatItem-yQQQQ": "QQQQ y 'г'.", + "timeFormat-long": "H:mm:ss z", "field-year": "Год", - "dateFormatItem-MMdd": "dd.MM", + "dateFormatItem-yMMM": "LLL y", "field-hour": "Час", + "dateFormatItem-MMdd": "dd.MM", "months-format-abbr": [ "янв.", "февр.", @@ -107,12 +122,16 @@ define( "нояб.", "дек." ], + "field-sat-relative+0": "в эту субботу", + "field-sat-relative+1": "в следующую субботу", "timeFormat-full": "H:mm:ss zzzz", "dateFormatItem-E": "ccc", - "field-day-relative+0": "Сегодня", - "field-day-relative+1": "Завтра", + "field-day-relative+0": "сегодня", + "field-thu-relative+0": "в этот четверг", + "field-day-relative+1": "завтра", + "field-thu-relative+1": "в следующий четверг", "dateFormatItem-GyMMMd": "d MMM y 'г'. G", - "field-day-relative+2": "Послезавтра", + "field-day-relative+2": "послезавтра", "dateFormatItem-H": "H", "months-standAlone-abbr": [ "Янв.", @@ -153,7 +172,9 @@ define( ], "dateFormatItem-yLLLL": "LLLL y", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "в это воскресенье", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "в следующее воскресенье", "quarters-standAlone-abbr": [ "1-й кв.", "2-й кв.", @@ -161,7 +182,8 @@ define( "4-й кв." ], "eraAbbr": [ - "до н.э.", + "до н. э.", + "н. э.", "н.э." ], "field-minute": "Минута", @@ -183,15 +205,17 @@ define( "3", "4" ], - "field-day-relative+-1": "Вчера", + "field-day-relative+-1": "вчера", "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1}, {0}", - "dayPeriods-format-narrow-am": "дп", - "field-day-relative+-2": "Позавчера", + "dayPeriods-format-narrow-am": "AM", + "field-day-relative+-2": "позавчера", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E, dd.MM", "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "в эту пятницу", "dateFormatItem-yMMMM": "LLLL y", + "field-fri-relative+1": "в следующую пятницу", "field-day": "День", "days-format-wide": [ "воскресенье", @@ -218,10 +242,10 @@ define( "Н", "Д" ], - "field-year-relative+-1": "В прошлом году", - "field-month-relative+-1": "В прошлом месяце", + "field-year-relative+-1": "в прошлом году", + "field-month-relative+-1": "в прошлом месяце", "dateFormatItem-hm": "h:mm a", - "dayPeriods-format-abbr-pm": "после полудня", + "dayPeriods-format-abbr-pm": "PM", "days-format-abbr": [ "вс", "пн", @@ -231,11 +255,12 @@ define( "пт", "сб" ], - "dateFormatItem-yMMMd": "d MMM y 'г'.", "eraNames": [ "до н.э.", + "н.э.", "н.э." ], + "dateFormatItem-yMMMd": "d MMM y 'г'.", "days-format-narrow": [ "вс", "пн", @@ -256,25 +281,36 @@ define( ], "dateFormatItem-MMM": "LLL", "field-month": "Месяц", - "dayPeriods-format-wide-am": "до полудня", + "field-tue-relative+0": "в этот вторник", + "field-tue-relative+1": "в следующий вторник", + "dayPeriods-format-wide-am": "AM", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "в этот понедельник", + "field-mon-relative+1": "в следующий понедельник", "dateFormat-short": "dd.MM.yy", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", "field-second": "Секунда", + "field-sat-relative+-1": "в прошлую субботу", "dateFormatItem-yMMMEd": "E, d MMM y", - "field-month-relative+0": "В этом месяце", - "field-month-relative+1": "В следующем месяце", + "field-sun-relative+-1": "в прошлое воскресенье", + "field-month-relative+0": "в этом месяце", + "field-month-relative+1": "в следующем месяце", "dateFormatItem-Ed": "ccc, d", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "Неделя", - "dateFormat-medium": "dd MMM y 'г'.", - "field-year-relative+0": "В этом году", - "field-week-relative+-1": "На прошлой неделе", - "field-year-relative+1": "В следующем году", - "dayPeriods-format-narrow-pm": "пп", + "dateFormat-medium": "d MMM y 'г'.", + "field-year-relative+0": "в этому году", + "field-week-relative+-1": "на прошлой неделе", + "field-year-relative+1": "в следующем году", + "dayPeriods-format-narrow-pm": "PM", "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "LLL y G", - "field-week-relative+0": "На этой неделе", - "field-week-relative+1": "На следующей неделе" + "field-mon-relative+-1": "в прошлый понедельник", + "field-week-relative+0": "на этой неделе", + "field-week-relative+1": "на следующей неделе" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ru/hebrew.js b/cldr/nls/ru/hebrew.js index 8c58ebb2de..799c513f40 100644 --- a/cldr/nls/ru/hebrew.js +++ b/cldr/nls/ru/hebrew.js @@ -10,9 +10,13 @@ define( "пт", "сб" ], + "field-second-relative+0": "сейчас", "field-weekday": "День недели", + "field-wed-relative+0": "в эту среду", + "field-wed-relative+1": "в следующую среду", "dateFormatItem-GyMMMEd": "E, d MMM y G", "dateFormatItem-MMMEd": "ccc, d MMM", + "field-tue-relative+-1": "в прошлый вторник", "days-format-short": [ "вс", "пн", @@ -23,6 +27,8 @@ define( "сб" ], "dateFormat-long": "d MMMM y 'г'. G", + "field-fri-relative+-1": "в прошлую пятницу", + "field-wed-relative+-1": "в прошлую среду", "months-format-wide": [ "Тишрей", "Хешван", @@ -40,11 +46,10 @@ define( ], "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1}, {0}", - "dayPeriods-format-wide-pm": "после полудня", "dateFormat-full": "EEEE, d MMMM y 'г'. G", "dateFormatItem-yyyyMEd": "E, dd.MM.y G", + "field-thu-relative+-1": "в прошлый четверг", "dateFormatItem-Md": "dd.MM", - "dayPeriods-format-abbr-am": "до полудня", "field-era": "Эра", "months-standAlone-wide": [ "Тишрей", @@ -87,11 +92,15 @@ define( "Ав", "Элул" ], + "field-sat-relative+0": "в эту субботу", + "field-sat-relative+1": "в следующую субботу", "timeFormat-full": "H:mm:ss zzzz", - "field-day-relative+0": "Сегодня", - "field-day-relative+1": "Завтра", + "field-day-relative+0": "сегодня", + "field-thu-relative+0": "в этот четверг", + "field-day-relative+1": "завтра", + "field-thu-relative+1": "в следующий четверг", "dateFormatItem-GyMMMd": "d MMM y G", - "field-day-relative+2": "Послезавтра", + "field-day-relative+2": "послезавтра", "dateFormatItem-H": "H", "months-standAlone-abbr": [ "Тишрей", @@ -135,7 +144,9 @@ define( "dateFormatItem-yyyyMMMd": "d MMM y G", "months-standAlone-wide-leap": "Адар II", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "в это воскресенье", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "в следующее воскресенье", "quarters-standAlone-abbr": [ "1-й кв.", "2-й кв.", @@ -153,13 +164,15 @@ define( "Пт", "Сб" ], - "field-day-relative+-1": "Вчера", + "field-day-relative+-1": "вчера", "dateTimeFormat-long": "{1}, {0}", - "dayPeriods-format-narrow-am": "дп", - "field-day-relative+-2": "Позавчера", + "dayPeriods-format-narrow-am": "AM", + "field-day-relative+-2": "позавчера", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E, dd.MM", "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "в эту пятницу", + "field-fri-relative+1": "в следующую пятницу", "field-day": "День", "days-format-wide": [ "воскресенье", @@ -173,9 +186,8 @@ define( "field-zone": "Часовой пояс", "months-standAlone-abbr-leap": "Адар II", "dateFormatItem-y": "y G", - "field-year-relative+-1": "В прошлом году", - "field-month-relative+-1": "В прошлом месяце", - "dayPeriods-format-abbr-pm": "после полудня", + "field-year-relative+-1": "в прошлом году", + "field-month-relative+-1": "в прошлом месяце", "days-format-abbr": [ "вс", "пн", @@ -205,27 +217,33 @@ define( "П", "С" ], - "dayPeriods-format-wide-am": "до полудня", + "field-tue-relative+0": "в этот вторник", + "field-tue-relative+1": "в следующий вторник", + "field-mon-relative+0": "в этот понедельник", + "field-mon-relative+1": "в следующий понедельник", "dateFormat-short": "dd.MM.y G", "field-second": "Секунда", - "field-month-relative+0": "В этом месяце", - "field-month-relative+1": "В следующем месяце", + "field-sat-relative+-1": "в прошлую субботу", + "field-sun-relative+-1": "в прошлое воскресенье", + "field-month-relative+0": "в этом месяце", + "field-month-relative+1": "в следующем месяце", "dateFormatItem-Ed": "E, d", "field-week": "Неделя", "dateFormat-medium": "dd.MM.y G", - "field-year-relative+0": "В этом году", - "field-week-relative+-1": "На прошлой неделе", + "field-year-relative+0": "в этому году", + "field-week-relative+-1": "на прошлой неделе", "dateFormatItem-yyyyM": "MM.y G", - "field-year-relative+1": "В следующем году", - "dayPeriods-format-narrow-pm": "пп", + "field-year-relative+1": "в следующем году", + "dayPeriods-format-narrow-pm": "PM", "dateFormatItem-yyyyQQQQ": "QQQQ y 'г'. G", "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-Hms": "H:mm:ss", "months-format-wide-leap": "Адар II", "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "в прошлый понедельник", "dateFormatItem-yyyy": "y G", - "field-week-relative+0": "На этой неделе", - "field-week-relative+1": "На следующей неделе" + "field-week-relative+0": "на этой неделе", + "field-week-relative+1": "на следующей неделе" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ru/indian.js b/cldr/nls/ru/indian.js index 0a4bb478b5..530562bd6b 100644 --- a/cldr/nls/ru/indian.js +++ b/cldr/nls/ru/indian.js @@ -1,27 +1,20 @@ define( //begin v1.x content { - "field-second": "Секунда", - "field-year-relative+-1": "В прошлом году", - "field-week": "Неделя", - "field-month-relative+-1": "В прошлом месяце", - "field-day-relative+-1": "Вчера", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12" - ], - "field-day-relative+-2": "Позавчера", - "months-standAlone-wide": [ + "field-sat-relative+0": "в эту субботу", + "field-sat-relative+1": "в следующую субботу", + "field-dayperiod": "ДП/ПП", + "field-sun-relative+-1": "в прошлое воскресенье", + "field-mon-relative+-1": "в прошлый понедельник", + "field-minute": "Минута", + "field-day-relative+-1": "вчера", + "field-weekday": "День недели", + "field-day-relative+-2": "позавчера", + "field-era": "Эра", + "field-hour": "Час", + "field-sun-relative+0": "в это воскресенье", + "field-sun-relative+1": "в следующее воскресенье", + "months-standAlone-abbr": [ "Чайтра", "Ваисакха", "Джанштха", @@ -35,9 +28,22 @@ define( "Магха", "Пхалгуна" ], + "field-wed-relative+-1": "в прошлую среду", + "field-day-relative+0": "сегодня", + "field-day-relative+1": "завтра", + "field-day-relative+2": "послезавтра", + "field-tue-relative+0": "в этот вторник", + "field-zone": "Часовой пояс", + "field-tue-relative+1": "в следующий вторник", + "field-week-relative+-1": "на прошлой неделе", + "field-year-relative+0": "в этому году", + "field-year-relative+1": "в следующем году", + "field-sat-relative+-1": "в прошлую субботу", + "field-year-relative+-1": "в прошлом году", "field-year": "Год", - "field-week-relative+0": "На этой неделе", - "months-standAlone-abbr": [ + "field-fri-relative+0": "в эту пятницу", + "field-fri-relative+1": "в следующую пятницу", + "months-standAlone-wide": [ "Чайтра", "Ваисакха", "Джанштха", @@ -51,19 +57,10 @@ define( "Магха", "Пхалгуна" ], - "field-week-relative+1": "На следующей неделе", - "field-minute": "Минута", - "field-week-relative+-1": "На прошлой неделе", - "field-day-relative+0": "Сегодня", - "field-hour": "Час", - "field-day-relative+1": "Завтра", - "field-day-relative+2": "Послезавтра", - "field-day": "День", - "field-month-relative+0": "В этом месяце", - "field-month-relative+1": "В следующем месяце", - "field-dayperiod": "ДП/ПП", - "field-month": "Месяц", - "months-format-wide": [ + "field-week": "Неделя", + "field-week-relative+0": "на этой неделе", + "field-week-relative+1": "на следующей неделе", + "months-format-abbr": [ "Чайтра", "Ваисакха", "Джанштха", @@ -77,10 +74,33 @@ define( "Магха", "Пхалгуна" ], - "field-era": "Эра", - "field-year-relative+0": "В этом году", - "field-year-relative+1": "В следующем году", - "months-format-abbr": [ + "field-month-relative+0": "в этом месяце", + "field-month": "Месяц", + "field-month-relative+1": "в следующем месяце", + "field-fri-relative+-1": "в прошлую пятницу", + "field-second": "Секунда", + "field-tue-relative+-1": "в прошлый вторник", + "field-day": "День", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-mon-relative+0": "в этот понедельник", + "field-mon-relative+1": "в следующий понедельник", + "field-thu-relative+0": "в этот четверг", + "field-second-relative+0": "сейчас", + "field-thu-relative+1": "в следующий четверг", + "months-format-wide": [ "Чайтра", "Ваисакха", "Джанштха", @@ -94,8 +114,10 @@ define( "Магха", "Пхалгуна" ], - "field-weekday": "День недели", - "field-zone": "Часовой пояс" + "field-wed-relative+0": "в эту среду", + "field-wed-relative+1": "в следующую среду", + "field-month-relative+-1": "в прошлом месяце", + "field-thu-relative+-1": "в прошлый четверг" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ru/islamic.js b/cldr/nls/ru/islamic.js index acaea9001b..ec6d4e0a39 100644 --- a/cldr/nls/ru/islamic.js +++ b/cldr/nls/ru/islamic.js @@ -24,9 +24,13 @@ define( "11", "12" ], + "field-second-relative+0": "сейчас", "field-weekday": "День недели", + "field-wed-relative+0": "в эту среду", + "field-wed-relative+1": "в следующую среду", "dateFormatItem-GyMMMEd": "E, d MMM y G", "dateFormatItem-MMMEd": "ccc, d MMM", + "field-tue-relative+-1": "в прошлый вторник", "days-format-short": [ "вс", "пн", @@ -37,6 +41,8 @@ define( "сб" ], "dateFormat-long": "d MMMM y 'г'. G", + "field-fri-relative+-1": "в прошлую пятницу", + "field-wed-relative+-1": "в прошлую среду", "months-format-wide": [ "Мухаррам", "Сафар", @@ -53,11 +59,10 @@ define( ], "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1}, {0}", - "dayPeriods-format-wide-pm": "после полудня", "dateFormat-full": "EEEE, d MMMM y 'г'. G", "dateFormatItem-yyyyMEd": "E, dd.MM.y G", + "field-thu-relative+-1": "в прошлый четверг", "dateFormatItem-Md": "dd.MM", - "dayPeriods-format-abbr-am": "до полудня", "field-era": "Эра", "months-standAlone-wide": [ "Мухаррам", @@ -97,11 +102,15 @@ define( "Зуль-Каада", "Зуль-Хиджжа" ], + "field-sat-relative+0": "в эту субботу", + "field-sat-relative+1": "в следующую субботу", "timeFormat-full": "H:mm:ss zzzz", - "field-day-relative+0": "Сегодня", - "field-day-relative+1": "Завтра", + "field-day-relative+0": "сегодня", + "field-thu-relative+0": "в этот четверг", + "field-day-relative+1": "завтра", + "field-thu-relative+1": "в следующий четверг", "dateFormatItem-GyMMMd": "d MMM y G", - "field-day-relative+2": "Послезавтра", + "field-day-relative+2": "послезавтра", "dateFormatItem-H": "H", "months-standAlone-abbr": [ "Мухаррам", @@ -143,7 +152,9 @@ define( "dateFormatItem-yyyyMMM": "LLL y G", "dateFormatItem-yyyyMMMd": "d MMM y G", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "в это воскресенье", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "в следующее воскресенье", "quarters-standAlone-abbr": [ "1-й кв.", "2-й кв.", @@ -161,13 +172,15 @@ define( "Пт", "Сб" ], - "field-day-relative+-1": "Вчера", + "field-day-relative+-1": "вчера", "dateTimeFormat-long": "{1}, {0}", - "dayPeriods-format-narrow-am": "дп", - "field-day-relative+-2": "Позавчера", + "dayPeriods-format-narrow-am": "AM", + "field-day-relative+-2": "позавчера", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E, dd.MM", "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "в эту пятницу", + "field-fri-relative+1": "в следующую пятницу", "field-day": "День", "days-format-wide": [ "воскресенье", @@ -180,9 +193,8 @@ define( ], "field-zone": "Часовой пояс", "dateFormatItem-y": "y G", - "field-year-relative+-1": "В прошлом году", - "field-month-relative+-1": "В прошлом месяце", - "dayPeriods-format-abbr-pm": "после полудня", + "field-year-relative+-1": "в прошлом году", + "field-month-relative+-1": "в прошлом месяце", "days-format-abbr": [ "вс", "пн", @@ -212,26 +224,32 @@ define( "П", "С" ], - "dayPeriods-format-wide-am": "до полудня", + "field-tue-relative+0": "в этот вторник", + "field-tue-relative+1": "в следующий вторник", + "field-mon-relative+0": "в этот понедельник", + "field-mon-relative+1": "в следующий понедельник", "dateFormat-short": "dd.MM.y G", "field-second": "Секунда", - "field-month-relative+0": "В этом месяце", - "field-month-relative+1": "В следующем месяце", + "field-sat-relative+-1": "в прошлую субботу", + "field-sun-relative+-1": "в прошлое воскресенье", + "field-month-relative+0": "в этом месяце", + "field-month-relative+1": "в следующем месяце", "dateFormatItem-Ed": "E, d", "field-week": "Неделя", "dateFormat-medium": "dd.MM.y G", - "field-year-relative+0": "В этом году", - "field-week-relative+-1": "На прошлой неделе", + "field-year-relative+0": "в этому году", + "field-week-relative+-1": "на прошлой неделе", "dateFormatItem-yyyyM": "MM.y G", - "field-year-relative+1": "В следующем году", - "dayPeriods-format-narrow-pm": "пп", + "field-year-relative+1": "в следующем году", + "dayPeriods-format-narrow-pm": "PM", "dateFormatItem-yyyyQQQQ": "QQQQ y 'г'. G", "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "в прошлый понедельник", "dateFormatItem-yyyy": "y G", - "field-week-relative+0": "На этой неделе", - "field-week-relative+1": "На следующей неделе" + "field-week-relative+0": "на этой неделе", + "field-week-relative+1": "на следующей неделе" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ru/japanese.js b/cldr/nls/ru/japanese.js index d00eb2b9cf..120a7ea0fc 100644 --- a/cldr/nls/ru/japanese.js +++ b/cldr/nls/ru/japanese.js @@ -1,29 +1,22 @@ define( //begin v1.x content { - "field-second": "Секунда", - "field-year-relative+-1": "В прошлом году", - "field-week": "Неделя", - "field-month-relative+-1": "В прошлом месяце", - "field-day-relative+-1": "Вчера", - "field-day-relative+-2": "Позавчера", - "field-year": "Год", - "field-week-relative+0": "На этой неделе", - "field-week-relative+1": "На следующей неделе", - "field-minute": "Минута", - "field-week-relative+-1": "На прошлой неделе", - "field-day-relative+0": "Сегодня", - "field-hour": "Час", - "field-day-relative+1": "Завтра", - "field-day-relative+2": "Послезавтра", - "field-day": "День", - "field-month-relative+0": "В этом месяце", - "field-month-relative+1": "В следующем месяце", + "field-sat-relative+0": "в эту субботу", + "field-sat-relative+1": "в следующую субботу", "field-dayperiod": "ДП/ПП", - "field-month": "Месяц", + "field-sun-relative+-1": "в прошлое воскресенье", + "field-mon-relative+-1": "в прошлый понедельник", + "field-minute": "Минута", + "field-day-relative+-1": "вчера", + "field-weekday": "День недели", + "field-day-relative+-2": "позавчера", "field-era": "Эра", - "field-year-relative+0": "В этом году", - "field-year-relative+1": "В следующем году", + "field-hour": "Час", + "field-sun-relative+0": "в это воскресенье", + "field-sun-relative+1": "в следующее воскресенье", + "field-wed-relative+-1": "в прошлую среду", + "field-day-relative+0": "сегодня", + "field-day-relative+1": "завтра", "eraAbbr": [ "Эпоха Тайка (645-650)", "Эпоха Хакути (650-671)", @@ -262,8 +255,37 @@ define( "Сьова", "Эпоха Хэйсэй" ], - "field-weekday": "День недели", - "field-zone": "Часовой пояс" + "field-day-relative+2": "послезавтра", + "field-tue-relative+0": "в этот вторник", + "field-zone": "Часовой пояс", + "field-tue-relative+1": "в следующий вторник", + "field-week-relative+-1": "на прошлой неделе", + "field-year-relative+0": "в этому году", + "field-year-relative+1": "в следующем году", + "field-sat-relative+-1": "в прошлую субботу", + "field-year-relative+-1": "в прошлом году", + "field-year": "Год", + "field-fri-relative+0": "в эту пятницу", + "field-fri-relative+1": "в следующую пятницу", + "field-week": "Неделя", + "field-week-relative+0": "на этой неделе", + "field-week-relative+1": "на следующей неделе", + "field-month-relative+0": "в этом месяце", + "field-month": "Месяц", + "field-month-relative+1": "в следующем месяце", + "field-fri-relative+-1": "в прошлую пятницу", + "field-second": "Секунда", + "field-tue-relative+-1": "в прошлый вторник", + "field-day": "День", + "field-mon-relative+0": "в этот понедельник", + "field-mon-relative+1": "в следующий понедельник", + "field-thu-relative+0": "в этот четверг", + "field-second-relative+0": "сейчас", + "field-thu-relative+1": "в следующий четверг", + "field-wed-relative+0": "в эту среду", + "field-wed-relative+1": "в следующую среду", + "field-month-relative+-1": "в прошлом месяце", + "field-thu-relative+-1": "в прошлый четверг" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ru/number.js b/cldr/nls/ru/number.js index bde6564cdb..46abd43e91 100644 --- a/cldr/nls/ru/number.js +++ b/cldr/nls/ru/number.js @@ -10,6 +10,7 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "×", "nan": "не число", "perMille": "‰", "decimalFormat": "#,##0.###", diff --git a/cldr/nls/ru/persian.js b/cldr/nls/ru/persian.js index 5a05096a91..d8bee6cde7 100644 --- a/cldr/nls/ru/persian.js +++ b/cldr/nls/ru/persian.js @@ -24,9 +24,13 @@ define( "11", "12" ], + "field-second-relative+0": "сейчас", "field-weekday": "День недели", + "field-wed-relative+0": "в эту среду", + "field-wed-relative+1": "в следующую среду", "dateFormatItem-GyMMMEd": "E, d MMM y G", "dateFormatItem-MMMEd": "ccc, d MMM", + "field-tue-relative+-1": "в прошлый вторник", "days-format-short": [ "вс", "пн", @@ -37,6 +41,8 @@ define( "сб" ], "dateFormat-long": "d MMMM y 'г'. G", + "field-fri-relative+-1": "в прошлую пятницу", + "field-wed-relative+-1": "в прошлую среду", "months-format-wide": [ "Фарвардин", "Ордибехешт", @@ -53,11 +59,10 @@ define( ], "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1}, {0}", - "dayPeriods-format-wide-pm": "после полудня", "dateFormat-full": "EEEE, d MMMM y 'г'. G", "dateFormatItem-yyyyMEd": "E, dd.MM.y G", + "field-thu-relative+-1": "в прошлый четверг", "dateFormatItem-Md": "dd.MM", - "dayPeriods-format-abbr-am": "до полудня", "field-era": "Эра", "months-standAlone-wide": [ "Фарвардин", @@ -97,11 +102,15 @@ define( "Бахман", "Эсфанд" ], + "field-sat-relative+0": "в эту субботу", + "field-sat-relative+1": "в следующую субботу", "timeFormat-full": "H:mm:ss zzzz", - "field-day-relative+0": "Сегодня", - "field-day-relative+1": "Завтра", + "field-day-relative+0": "сегодня", + "field-thu-relative+0": "в этот четверг", + "field-day-relative+1": "завтра", + "field-thu-relative+1": "в следующий четверг", "dateFormatItem-GyMMMd": "d MMM y G", - "field-day-relative+2": "Послезавтра", + "field-day-relative+2": "послезавтра", "dateFormatItem-H": "H", "months-standAlone-abbr": [ "Фарвардин", @@ -143,7 +152,9 @@ define( "dateFormatItem-yyyyMMM": "LLL y G", "dateFormatItem-yyyyMMMd": "d MMM y G", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "в это воскресенье", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "в следующее воскресенье", "quarters-standAlone-abbr": [ "1-й кв.", "2-й кв.", @@ -161,13 +172,15 @@ define( "Пт", "Сб" ], - "field-day-relative+-1": "Вчера", + "field-day-relative+-1": "вчера", "dateTimeFormat-long": "{1}, {0}", - "dayPeriods-format-narrow-am": "дп", - "field-day-relative+-2": "Позавчера", + "dayPeriods-format-narrow-am": "AM", + "field-day-relative+-2": "позавчера", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E, dd.MM", "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "в эту пятницу", + "field-fri-relative+1": "в следующую пятницу", "field-day": "День", "days-format-wide": [ "воскресенье", @@ -194,9 +207,8 @@ define( "Н", "Д" ], - "field-year-relative+-1": "В прошлом году", - "field-month-relative+-1": "В прошлом месяце", - "dayPeriods-format-abbr-pm": "после полудня", + "field-year-relative+-1": "в прошлом году", + "field-month-relative+-1": "в прошлом месяце", "days-format-abbr": [ "вс", "пн", @@ -226,26 +238,32 @@ define( "П", "С" ], - "dayPeriods-format-wide-am": "до полудня", + "field-tue-relative+0": "в этот вторник", + "field-tue-relative+1": "в следующий вторник", + "field-mon-relative+0": "в этот понедельник", + "field-mon-relative+1": "в следующий понедельник", "dateFormat-short": "dd.MM.y G", "field-second": "Секунда", - "field-month-relative+0": "В этом месяце", - "field-month-relative+1": "В следующем месяце", + "field-sat-relative+-1": "в прошлую субботу", + "field-sun-relative+-1": "в прошлое воскресенье", + "field-month-relative+0": "в этом месяце", + "field-month-relative+1": "в следующем месяце", "dateFormatItem-Ed": "E, d", "field-week": "Неделя", "dateFormat-medium": "dd.MM.y G", - "field-year-relative+0": "В этом году", - "field-week-relative+-1": "На прошлой неделе", + "field-year-relative+0": "в этому году", + "field-week-relative+-1": "на прошлой неделе", "dateFormatItem-yyyyM": "MM.y G", - "field-year-relative+1": "В следующем году", - "dayPeriods-format-narrow-pm": "пп", + "field-year-relative+1": "в следующем году", + "dayPeriods-format-narrow-pm": "PM", "dateFormatItem-yyyyQQQQ": "QQQQ y 'г'. G", "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "в прошлый понедельник", "dateFormatItem-yyyy": "y G", - "field-week-relative+0": "На этой неделе", - "field-week-relative+1": "На следующей неделе" + "field-week-relative+0": "на этой неделе", + "field-week-relative+1": "на следующей неделе" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/ru/roc.js b/cldr/nls/ru/roc.js index de7d7d6c16..5a392dd338 100644 --- a/cldr/nls/ru/roc.js +++ b/cldr/nls/ru/roc.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "field-second": "Секунда", - "field-year-relative+-1": "В прошлом году", - "field-week": "Неделя", - "field-month-relative+-1": "В прошлом месяце", - "field-day-relative+-1": "Вчера", - "field-day-relative+-2": "Позавчера", - "field-year": "Год", - "field-week-relative+0": "На этой неделе", - "field-week-relative+1": "На следующей неделе", - "field-minute": "Минута", - "field-week-relative+-1": "На прошлой неделе", - "field-day-relative+0": "Сегодня", - "field-hour": "Час", - "field-day-relative+1": "Завтра", - "field-day-relative+2": "Послезавтра", - "field-day": "День", - "field-month-relative+0": "В этом месяце", - "field-month-relative+1": "В следующем месяце", + "field-sat-relative+0": "в эту субботу", + "field-sat-relative+1": "в следующую субботу", "field-dayperiod": "ДП/ПП", - "field-month": "Месяц", + "field-sun-relative+-1": "в прошлое воскресенье", + "field-mon-relative+-1": "в прошлый понедельник", + "field-minute": "Минута", + "field-day-relative+-1": "вчера", + "field-weekday": "День недели", + "field-day-relative+-2": "позавчера", "field-era": "Эра", - "field-year-relative+0": "В этом году", - "field-year-relative+1": "В следующем году", + "field-hour": "Час", + "field-sun-relative+0": "в это воскресенье", + "field-sun-relative+1": "в следующее воскресенье", + "field-wed-relative+-1": "в прошлую среду", + "field-day-relative+0": "сегодня", + "field-day-relative+1": "завтра", "eraAbbr": [ "Before R.O.C.", "Minguo" ], - "field-weekday": "День недели", - "field-zone": "Часовой пояс" + "field-day-relative+2": "послезавтра", + "field-tue-relative+0": "в этот вторник", + "field-zone": "Часовой пояс", + "field-tue-relative+1": "в следующий вторник", + "field-week-relative+-1": "на прошлой неделе", + "field-year-relative+0": "в этому году", + "field-year-relative+1": "в следующем году", + "field-sat-relative+-1": "в прошлую субботу", + "field-year-relative+-1": "в прошлом году", + "field-year": "Год", + "field-fri-relative+0": "в эту пятницу", + "field-fri-relative+1": "в следующую пятницу", + "field-week": "Неделя", + "field-week-relative+0": "на этой неделе", + "field-week-relative+1": "на следующей неделе", + "field-month-relative+0": "в этом месяце", + "field-month": "Месяц", + "field-month-relative+1": "в следующем месяце", + "field-fri-relative+-1": "в прошлую пятницу", + "field-second": "Секунда", + "field-tue-relative+-1": "в прошлый вторник", + "field-day": "День", + "field-mon-relative+0": "в этот понедельник", + "field-mon-relative+1": "в следующий понедельник", + "field-thu-relative+0": "в этот четверг", + "field-second-relative+0": "сейчас", + "field-thu-relative+1": "в следующий четверг", + "field-wed-relative+0": "в эту среду", + "field-wed-relative+1": "в следующую среду", + "field-month-relative+-1": "в прошлом месяце", + "field-thu-relative+-1": "в прошлый четверг" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/sk/currency.js b/cldr/nls/sk/currency.js index d8d40fab64..c7e27310fe 100644 --- a/cldr/nls/sk/currency.js +++ b/cldr/nls/sk/currency.js @@ -1,8 +1,8 @@ define( //begin v1.x content { - "HKD_displayName": "Hongkongský dolár", - "CHF_displayName": "Švajčiarský frank", + "HKD_displayName": "Hongkonský dolár", + "CHF_displayName": "Švajčiarsky frank", "JPY_symbol": "JPY", "CAD_displayName": "Kanadský dolár", "HKD_symbol": "HKD", @@ -12,6 +12,7 @@ define( "JPY_displayName": "Japonský jen", "CAD_symbol": "CAD", "USD_displayName": "Americký dolár", + "EUR_symbol": "€", "CNY_symbol": "CNY", "GBP_displayName": "Britská libra", "GBP_symbol": "GBP", diff --git a/cldr/nls/sk/generic.js b/cldr/nls/sk/generic.js index d617152fb2..516e815fa8 100644 --- a/cldr/nls/sk/generic.js +++ b/cldr/nls/sk/generic.js @@ -1,67 +1,96 @@ define( //begin v1.x content { - "dateFormatItem-yM": "M.y", - "field-dayperiod": "Časť dňa", - "field-minute": "Minúta", - "dateFormatItem-MMMEd": "E, d. MMM.", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "Včera", - "dateFormatItem-hms": "h:mm:ss a", - "dateFormatItem-yQQQ": "QQQ y", - "field-day-relative+-2": "Predvčerom", + "field-second-relative+0": "teraz", "field-weekday": "Deň v týždni", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", + "field-wed-relative+0": "Túto stredu", + "dateFormatItem-GyMMMEd": "E, d. MMM y G", + "dateFormatItem-MMMEd": "E, d. MMM.", + "field-wed-relative+1": "Budúcu stredu", + "field-tue-relative+-1": "Minulý utorok", + "dateFormat-long": "d. MMMM y G", + "field-fri-relative+-1": "Minulý piatok", + "field-wed-relative+-1": "Minulú stredu", + "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "EEEE, d. MMMM y G", + "dateFormatItem-yyyyMEd": "E d. M. y G", + "field-thu-relative+-1": "Minulý štvrtok", + "dateFormatItem-Md": "d.M.", "field-era": "Éra", + "field-year": "Rok", + "dateFormatItem-yyyyMMMM": "LLLL y G", "field-hour": "Hodina", - "dateFormatItem-y": "y", - "dateFormatItem-Ed": "E d.", - "dateFormatItem-yMMM": "LLL y", + "field-sat-relative+0": "Túto sobotu", + "field-sat-relative+1": "Budúcu sobotu", "field-day-relative+0": "Dnes", "field-day-relative+1": "Zajtra", + "field-thu-relative+0": "Tento štvrtok", + "dateFormatItem-GyMMMd": "d.M.y G", "field-day-relative+2": "Pozajtra", - "dateFormat-long": "d. MMMM y G", - "field-zone": "Časové pásmo", + "field-thu-relative+1": "Budúci štvrtok", + "dateFormatItem-H": "H", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d. MMM y G", + "dateFormatItem-M": "L.", + "dateFormatItem-yyyyMMM": "LLL y G", + "dateFormatItem-yyyyMMMd": "d.M.y G", + "dateFormatItem-MMMMd": "d. MMMM", + "dateFormatItem-GyMMMMd": "d. MMMM y G", + "field-sun-relative+0": "Túto nedeľu", "dateFormatItem-Hm": "H:mm", - "field-week-relative+-1": "Minulý týždeň", - "dateFormat-medium": "d.M.y G", - "dateFormatItem-Hms": "H:mm:ss", - "field-year-relative+0": "Tento rok", - "field-year-relative+1": "Budúci rok", - "dateFormatItem-yMd": "d.M.y", - "field-year-relative+-1": "Minulý rok", - "dateFormatItem-yMMMM": "LLLL y", + "field-sun-relative+1": "Budúcu nedeľu", + "field-minute": "Minúta", + "field-dayperiod": "Časť dňa", + "dateFormatItem-d": "d.", "dateFormatItem-ms": "mm:ss", - "field-year": "Rok", + "field-day-relative+-1": "Včera", + "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", - "field-week": "Týždeň", - "dateFormatItem-MMMMEd": "E, d. MMMM", + "field-day-relative+-2": "Predvčerom", "dateFormatItem-MMMd": "d. MMM.", - "field-week-relative+0": "Tento týždeň", - "field-week-relative+1": "Budúci týždeň", - "dateFormatItem-yQQQQ": "QQQQ y", - "field-month-relative+0": "Tento mesiac", - "dateFormatItem-H": "H", - "field-month": "Mesiac", - "field-month-relative+1": "Budúci mesiac", - "dateFormatItem-MMMMd": "d. MMMM", - "dateFormatItem-mmss": "mm:ss", - "dateFormatItem-M": "L.", - "dateFormatItem-yMMMd": "d.M.y", - "field-second": "Sekunda", - "field-day": "Deň", "dateFormatItem-MEd": "E, d.M.", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "Tento piatok", + "field-fri-relative+1": "Budúci piatok", + "field-day": "Deň", + "field-zone": "Časové pásmo", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "Minulý rok", + "field-month-relative+-1": "Posledný mesiac", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMMMMd": "d. MMMM y G", + "dateFormatItem-yyyyMd": "d.M.y G", + "field-month": "Mesiac", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "Tento utorok", + "field-tue-relative+1": "Budúci utorok", + "dateFormatItem-MMMMEd": "E, d. MMMM", + "field-mon-relative+0": "Tento pondelok", + "field-mon-relative+1": "Budúci pondelok", "dateFormat-short": "d.M.y GGGGG", - "dateFormatItem-yMMMEd": "E, d. MMM y", - "dateFormat-full": "EEEE, d. MMMM y G", - "dateFormatItem-Md": "d.M.", - "dateFormatItem-yMEd": "E d. M. y", - "dateFormatItem-d": "d.", - "field-month-relative+-1": "Posledný mesiac", - "dateFormatItem-h": "h a" + "field-second": "Sekunda", + "field-sat-relative+-1": "Minulú sobotu", + "field-sun-relative+-1": "Minulú nedeľu", + "field-month-relative+0": "Tento mesiac", + "field-month-relative+1": "Budúci mesiac", + "dateFormatItem-Ed": "E d.", + "field-week": "Týždeň", + "dateFormat-medium": "d.M.y G", + "field-year-relative+0": "Tento rok", + "field-week-relative+-1": "Minulý týždeň", + "dateFormatItem-yyyyM": "M.y G", + "field-year-relative+1": "Budúci rok", + "dateFormatItem-mmss": "mm:ss", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "H:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "Minulý pondelok", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "Tento týždeň", + "field-week-relative+1": "Budúci týždeň" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/sk/gregorian.js b/cldr/nls/sk/gregorian.js index f9ef7ebf18..72c150df99 100644 --- a/cldr/nls/sk/gregorian.js +++ b/cldr/nls/sk/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm", "days-standAlone-short": [ "Ne", "Po", @@ -24,6 +25,7 @@ define( "n", "d" ], + "field-second-relative+0": "teraz", "quarters-standAlone-narrow": [ "1", "2", @@ -33,11 +35,15 @@ define( "field-weekday": "Deň v týždni", "dateFormatItem-yQQQ": "QQQ y", "dateFormatItem-yMEd": "E d. M. y", + "field-wed-relative+0": "Túto stredu", + "field-wed-relative+1": "Budúcu stredu", + "dateFormatItem-GyMMMEd": "E, d. MMM y G", "dateFormatItem-MMMEd": "E, d. MMM.", "eraNarrow": [ "pred n.l.", "n.l." ], + "field-tue-relative+-1": "Minulý utorok", "days-format-short": [ "Ne", "Po", @@ -48,6 +54,8 @@ define( "So" ], "dateFormat-long": "d. MMMM y", + "field-fri-relative+-1": "Minulý piatok", + "field-wed-relative+-1": "Minulú stredu", "months-format-wide": [ "januára", "februára", @@ -63,8 +71,10 @@ define( "decembra" ], "dateTimeFormat-medium": "{1} {0}", - "dayPeriods-format-wide-pm": "popoludní", + "dateFormatItem-yMMMMd": "d. MMMM y", + "dayPeriods-format-wide-pm": "PM", "dateFormat-full": "EEEE, d. MMMM y", + "field-thu-relative+-1": "Minulý štvrtok", "dateFormatItem-Md": "d.M.", "dateFormatItem-yMd": "d.M.y", "field-era": "Éra", @@ -109,9 +119,14 @@ define( "nov", "dec" ], + "field-sat-relative+0": "Túto sobotu", + "field-sat-relative+1": "Budúcu sobotu", "timeFormat-full": "H:mm:ss zzzz", "field-day-relative+0": "Dnes", + "field-thu-relative+0": "Tento štvrtok", "field-day-relative+1": "Zajtra", + "field-thu-relative+1": "Budúci štvrtok", + "dateFormatItem-GyMMMd": "d.M.y G", "field-day-relative+2": "Pozajtra", "dateFormatItem-H": "H", "months-standAlone-abbr": [ @@ -140,6 +155,7 @@ define( "3. štvrťrok", "4. štvrťrok" ], + "dateFormatItem-Gy": "y G", "dateFormatItem-M": "L.", "days-standAlone-wide": [ "nedeľa", @@ -151,8 +167,11 @@ define( "sobota" ], "dateFormatItem-MMMMd": "d. MMMM", + "dateFormatItem-GyMMMMd": "d. MMMM y G", "timeFormat-medium": "H:mm:ss", + "field-sun-relative+0": "Túto nedeľu", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "Budúcu nedeľu", "quarters-standAlone-abbr": [ "1Q", "2Q", @@ -189,7 +208,9 @@ define( "dateFormatItem-MMMd": "d. MMM.", "dateFormatItem-MEd": "E, d.M.", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "Tento piatok", "dateFormatItem-yMMMM": "LLLL y", + "field-fri-relative+1": "Budúci piatok", "field-day": "Deň", "days-format-wide": [ "nedeľa", @@ -242,7 +263,6 @@ define( "P", "S" ], - "field-month": "Mesiac", "days-standAlone-narrow": [ "N", "P", @@ -253,14 +273,25 @@ define( "S" ], "dateFormatItem-MMM": "LLL", - "dayPeriods-format-wide-am": "dopoludnia", + "field-month": "Mesiac", + "field-tue-relative+0": "Tento utorok", + "field-tue-relative+1": "Budúci utorok", + "dayPeriods-format-wide-am": "AM", "dateFormatItem-MMMMEd": "E, d. MMMM", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "Tento pondelok", + "field-mon-relative+1": "Budúci pondelok", "dateFormat-short": "d.M.y", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss", "field-second": "Sekunda", + "field-sat-relative+-1": "Minulú sobotu", "dateFormatItem-yMMMEd": "E, d. MMM y", + "field-sun-relative+-1": "Minulú nedeľu", "field-month-relative+0": "Tento mesiac", "field-month-relative+1": "Budúci mesiac", "dateFormatItem-Ed": "E d.", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "Týždeň", "dateFormat-medium": "d.M.y", "field-year-relative+0": "Tento rok", @@ -270,6 +301,8 @@ define( "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "LLL y G", + "field-mon-relative+-1": "Minulý pondelok", "field-week-relative+0": "Tento týždeň", "field-week-relative+1": "Budúci týždeň" } diff --git a/cldr/nls/sk/number.js b/cldr/nls/sk/number.js index 4c3dc2bde3..a9a7f725d5 100644 --- a/cldr/nls/sk/number.js +++ b/cldr/nls/sk/number.js @@ -10,10 +10,11 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", - "currencyFormat": "#,##0.00 ¤", + "currencyFormat": "#,##0.00 ¤;(#,##0.00 ¤)", "plusSign": "+", "decimalFormat-long": "000 biliónov", "decimalFormat-short": "000 bil'.'" diff --git a/cldr/nls/sl/currency.js b/cldr/nls/sl/currency.js index 1a3549e75d..6963a819fe 100644 --- a/cldr/nls/sl/currency.js +++ b/cldr/nls/sl/currency.js @@ -9,6 +9,7 @@ define( "USD_symbol": "$", "AUD_displayName": "avstralski dolar", "JPY_displayName": "japonski jen", + "CAD_symbol": "CAD", "USD_displayName": "ameriški dolar", "GBP_displayName": "britanski funt", "EUR_displayName": "evro" diff --git a/cldr/nls/sl/generic.js b/cldr/nls/sl/generic.js index 4d1bd04ba9..3ac8724fc3 100644 --- a/cldr/nls/sl/generic.js +++ b/cldr/nls/sl/generic.js @@ -1,65 +1,92 @@ define( //begin v1.x content { - "dateFormatItem-yM": "M/y", - "field-dayperiod": "Čas dneva", - "field-minute": "Minuta", - "dateFormatItem-MMMEd": "E, d. MMM", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "Včeraj", - "dateFormatItem-hms": "h:mm:ss a", - "dateFormatItem-yQQQ": "QQQ y", - "field-day-relative+-2": "Predvčerajšnjim", + "field-second-relative+0": "zdaj", "field-weekday": "Dan v tednu", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "field-era": "Doba", + "field-wed-relative+0": "To sredo", + "field-wed-relative+1": "Naslednjo sredo", + "dateFormatItem-GyMMMEd": "E, d. MMM y G", + "dateFormatItem-MMMEd": "E, d. MMM", + "field-tue-relative+-1": "Prejšnji torek", + "dateFormat-long": "dd. MMMM y G", + "field-fri-relative+-1": "Prejšnji petek", + "field-wed-relative+-1": "Prejšnjo sredo", + "dateFormatItem-yyyyQQQ": "QQQ y G", "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "EEEE, dd. MMMM y G", + "dateFormatItem-yyyyMEd": "E, d. M. y G", + "field-thu-relative+-1": "Prejšnji četrtek", + "dateFormatItem-Md": "d. M.", + "field-era": "Doba", + "field-year": "Leto", + "dateFormatItem-yyyyMMMM": "MMMM y G", "field-hour": "Ura", - "dateFormatItem-y": "y", - "dateFormatItem-Ed": "E, d.", - "dateFormatItem-yMMM": "MMM y", + "field-sat-relative+0": "To soboto", + "field-sat-relative+1": "Naslednjo soboto", "field-day-relative+0": "Danes", "field-day-relative+1": "Jutri", + "field-thu-relative+0": "Ta četrtek", + "dateFormatItem-GyMMMd": "d. MMM y G", "field-day-relative+2": "Pojutrišnjem", - "dateFormat-long": "dd. MMMM y G", + "field-thu-relative+1": "Naslednji četrtek", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E, d. MMM y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d. MMM y G", + "field-sun-relative+0": "To nedeljo", + "dateFormatItem-Hm": "HH.mm", + "field-sun-relative+1": "Naslednjo nedeljo", + "field-minute": "Minuta", + "field-dayperiod": "Čas dneva", + "dateFormatItem-d": "d", + "dateFormatItem-ms": "mm.ss", + "field-day-relative+-1": "Včeraj", + "dateFormatItem-h": "h a", + "dateTimeFormat-long": "{1} {0}", + "field-day-relative+-2": "Predvčerajšnjim", + "dateFormatItem-MMMd": "d. MMM", + "dateFormatItem-MEd": "E, d. MM.", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "Ta petek", + "field-fri-relative+1": "Naslednji petek", + "field-day": "Dan", "field-zone": "Območje", - "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "Prejšnji teden", + "dateFormatItem-y": "y", + "field-year-relative+-1": "Lani", + "field-month-relative+-1": "Prejšnji mesec", + "dateFormatItem-hm": "h.mm a", + "dateFormatItem-GyM": "M/y G", + "dateFormatItem-yyyyMd": "d. M. y G", + "field-month": "Mesec", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "Ta torek", + "field-tue-relative+1": "Naslednji torek", + "field-mon-relative+0": "Ta ponedeljek", + "field-mon-relative+1": "Naslednji ponedeljek", + "dateFormat-short": "d. MM. yy GGGGG", + "field-second": "Sekunda", + "field-sat-relative+-1": "Prejšnjo soboto", + "field-sun-relative+-1": "Prejšnjo nedeljo", + "field-month-relative+0": "Ta mesec", + "field-month-relative+1": "Naslednji mesec", + "dateFormatItem-Ed": "E, d.", + "field-week": "Teden", "dateFormat-medium": "d. MMM y G", - "dateFormatItem-Hms": "HH:mm:ss", "field-year-relative+0": "Letos", + "field-week-relative+-1": "Prejšnji teden", + "dateFormatItem-yyyyM": "M/y G", "field-year-relative+1": "Naslednje leto", - "dateFormatItem-yMd": "d. M. y", - "field-year-relative+-1": "Lani", - "dateFormatItem-yMMMM": "MMMM y", - "dateFormatItem-ms": "mm:ss", - "field-year": "Leto", - "dateTimeFormat-long": "{1} {0}", - "field-week": "Teden", - "dateFormatItem-MMMd": "d. MMM", + "dateFormatItem-yyyyQQQQ": "QQQQ y G", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "HH.mm.ss", + "dateFormatItem-hms": "h.mm.ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "Prejšnji ponedeljek", + "dateFormatItem-yyyy": "y G", "field-week-relative+0": "Ta teden", - "field-week-relative+1": "Naslednji teden", - "dateFormatItem-yQQQQ": "QQQQ y", - "field-month-relative+0": "Ta mesec", - "dateFormatItem-H": "HH", - "field-month": "Mesec", - "field-month-relative+1": "Naslednji mesec", - "dateFormatItem-mmss": "mm:ss", - "dateFormatItem-M": "L", - "dateFormatItem-yMMMd": "d. MMM y", - "field-second": "Sekunda", - "field-day": "Dan", - "dateFormatItem-MEd": "E, d. MM.", - "dateFormatItem-hm": "h:mm a", - "dateFormat-short": "d. MM. yy GGGGG", - "dateFormatItem-yMMMEd": "E, d. MMM y", - "dateFormat-full": "EEEE, dd. MMMM y G", - "dateFormatItem-Md": "d. M.", - "dateFormatItem-yMEd": "E, d. M. y", - "dateFormatItem-d": "d", - "field-month-relative+-1": "Prejšnji mesec", - "dateFormatItem-h": "h a" + "field-week-relative+1": "Naslednji teden" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/sl/gregorian.js b/cldr/nls/sl/gregorian.js index a901a96e8e..ba7436599a 100644 --- a/cldr/nls/sl/gregorian.js +++ b/cldr/nls/sl/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h.mm a", "days-standAlone-short": [ "ned.", "pon.", @@ -24,6 +25,7 @@ define( "n", "d" ], + "field-second-relative+0": "zdaj", "quarters-standAlone-narrow": [ "1", "2", @@ -33,11 +35,16 @@ define( "field-weekday": "Dan v tednu", "dateFormatItem-yQQQ": "QQQ y", "dateFormatItem-yMEd": "E, d. M. y", + "field-wed-relative+0": "To sredo", + "field-wed-relative+1": "Naslednjo sredo", + "dateFormatItem-GyMMMEd": "E, d. MMM y G", "dateFormatItem-MMMEd": "E, d. MMM", "eraNarrow": [ "pr. n. št.", - "po Kr." + "po Kr.", + "po n. št." ], + "field-tue-relative+-1": "Prejšnji torek", "days-format-short": [ "ned.", "pon.", @@ -48,6 +55,8 @@ define( "sob." ], "dateFormat-long": "dd. MMMM y", + "field-fri-relative+-1": "Prejšnji petek", + "field-wed-relative+-1": "Prejšnjo sredo", "months-format-wide": [ "januar", "februar", @@ -65,6 +74,7 @@ define( "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "pop.", "dateFormat-full": "EEEE, dd. MMMM y", + "field-thu-relative+-1": "Prejšnji četrtek", "dateFormatItem-Md": "d. M.", "dateFormatItem-yMd": "d. M. y", "field-era": "Doba", @@ -83,7 +93,7 @@ define( "november", "december" ], - "timeFormat-short": "HH:mm", + "timeFormat-short": "HH.mm", "quarters-format-wide": [ "1. četrtletje", "2. četrtletje", @@ -91,7 +101,7 @@ define( "4. četrtletje" ], "dateFormatItem-yQQQQ": "QQQQ y", - "timeFormat-long": "HH:mm:ss z", + "timeFormat-long": "HH.mm.ss z", "field-year": "Leto", "dateFormatItem-yMMM": "MMM y", "field-hour": "Ura", @@ -109,9 +119,14 @@ define( "nov.", "dec." ], - "timeFormat-full": "HH:mm:ss zzzz", + "field-sat-relative+0": "To soboto", + "field-sat-relative+1": "Naslednjo soboto", + "timeFormat-full": "HH.mm.ss zzzz", "field-day-relative+0": "Danes", + "field-thu-relative+0": "Ta četrtek", "field-day-relative+1": "Jutri", + "field-thu-relative+1": "Naslednji četrtek", + "dateFormatItem-GyMMMd": "d. MMM y G", "field-day-relative+2": "Pojutrišnjem", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ @@ -140,6 +155,7 @@ define( "3. četrtletje", "4. četrtletje" ], + "dateFormatItem-Gy": "y G", "dateFormatItem-M": "L", "days-standAlone-wide": [ "nedelja", @@ -150,11 +166,20 @@ define( "petek", "sobota" ], - "timeFormat-medium": "HH:mm:ss", - "dateFormatItem-Hm": "HH:mm", + "timeFormat-medium": "HH.mm.ss", + "field-sun-relative+0": "To nedeljo", + "dateFormatItem-Hm": "HH.mm", + "field-sun-relative+1": "Naslednjo nedeljo", + "quarters-standAlone-abbr": [ + "Q1", + "Q2", + "Q3", + "Q4" + ], "eraAbbr": [ "pr. n. št.", - "po Kr." + "po Kr.", + "po n. št." ], "field-minute": "Minuta", "field-dayperiod": "Čas dneva", @@ -168,7 +193,7 @@ define( "sob" ], "dateFormatItem-d": "d", - "dateFormatItem-ms": "mm:ss", + "dateFormatItem-ms": "mm.ss", "quarters-format-narrow": [ "1", "2", @@ -182,7 +207,9 @@ define( "dateFormatItem-MMMd": "d. MMM", "dateFormatItem-MEd": "E, d. MM.", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "Ta petek", "dateFormatItem-yMMMM": "MMMM y", + "field-fri-relative+1": "Naslednji petek", "field-day": "Dan", "days-format-wide": [ "nedelja", @@ -211,7 +238,7 @@ define( ], "field-year-relative+-1": "Lani", "field-month-relative+-1": "Prejšnji mesec", - "dateFormatItem-hm": "h:mm a", + "dateFormatItem-hm": "h.mm a", "days-format-abbr": [ "ned.", "pon.", @@ -221,10 +248,12 @@ define( "pet.", "sob." ], + "dateFormatItem-GyM": "M/y G", "dateFormatItem-yMMMd": "d. MMM y", "eraNames": [ "pred našim štetjem", - "naše štetje" + "naše štetje", + "po n. št." ], "days-format-narrow": [ "n", @@ -235,7 +264,6 @@ define( "p", "s" ], - "field-month": "Mesec", "days-standAlone-narrow": [ "n", "p", @@ -246,22 +274,34 @@ define( "s" ], "dateFormatItem-MMM": "LLL", + "field-month": "Mesec", + "field-tue-relative+0": "Ta torek", + "field-tue-relative+1": "Naslednji torek", "dayPeriods-format-wide-am": "dop.", + "dateFormatItem-EHm": "E HH.mm", + "field-mon-relative+0": "Ta ponedeljek", + "field-mon-relative+1": "Naslednji ponedeljek", "dateFormat-short": "d. MM. yy", + "dateFormatItem-EHms": "E HH.mm.ss", + "dateFormatItem-Ehms": "E h.mm.ss a", "field-second": "Sekunda", + "field-sat-relative+-1": "Prejšnjo soboto", "dateFormatItem-yMMMEd": "E, d. MMM y", + "field-sun-relative+-1": "Prejšnjo nedeljo", "field-month-relative+0": "Ta mesec", "field-month-relative+1": "Naslednji mesec", "dateFormatItem-Ed": "E, d.", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "Teden", "dateFormat-medium": "d. MMM y", "field-year-relative+0": "Letos", "field-week-relative+-1": "Prejšnji teden", "field-year-relative+1": "Naslednje leto", - "dateFormatItem-mmss": "mm:ss", "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Hms": "HH:mm:ss", - "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-Hms": "HH.mm.ss", + "dateFormatItem-hms": "h.mm.ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "Prejšnji ponedeljek", "field-week-relative+0": "Ta teden", "field-week-relative+1": "Naslednji teden" } diff --git a/cldr/nls/sl/number.js b/cldr/nls/sl/number.js index aeeddd7540..804eab27c8 100644 --- a/cldr/nls/sl/number.js +++ b/cldr/nls/sl/number.js @@ -10,10 +10,11 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", - "currencyFormat": "¤#,##0.00;(¤#,##0.00)", + "currencyFormat": "#,##0.00 ¤;(#,##0.00 ¤)", "plusSign": "+", "decimalFormat-long": "000 bilijonov", "decimalFormat-short": "000 bil'.'" diff --git a/cldr/nls/sv/buddhist.js b/cldr/nls/sv/buddhist.js index 4363a04926..e330e6132f 100644 --- a/cldr/nls/sv/buddhist.js +++ b/cldr/nls/sv/buddhist.js @@ -24,9 +24,13 @@ define( "N", "D" ], - "field-weekday": "veckodag", + "field-second-relative+0": "nu", + "field-weekday": "Veckodag", + "field-wed-relative+0": "onsdag denna vecka", + "field-wed-relative+1": "onsdag nästa vecka", "dateFormatItem-GyMMMEd": "E d MMM y G", "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "tisdag förra veckan", "days-format-short": [ "sö", "må", @@ -37,6 +41,8 @@ define( "lö" ], "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "fredag förra veckan", + "field-wed-relative+-1": "onsdag förra veckan", "months-format-wide": [ "januari", "februari", @@ -54,9 +60,10 @@ define( "dayPeriods-format-wide-pm": "em", "dateFormat-full": "EEEE d MMMM y G", "dateFormatItem-yyyyMEd": "E, y-MM-dd G", + "field-thu-relative+-1": "torsdag förra veckan", "dateFormatItem-Md": "d/M", "dayPeriods-format-abbr-am": "FM", - "field-era": "era", + "field-era": "Era", "months-standAlone-wide": [ "Januari", "Februari", @@ -77,7 +84,7 @@ define( "3:e kvartalet", "4:e kvartalet" ], - "field-year": "år", + "field-year": "År", "field-hour": "timme", "months-format-abbr": [ "jan", @@ -93,9 +100,13 @@ define( "nov", "dec" ], + "field-sat-relative+0": "lördag denna vecka", + "field-sat-relative+1": "lördag nästa vecka", "timeFormat-full": "'kl'. HH:mm:ss zzzz", "field-day-relative+0": "i dag", + "field-thu-relative+0": "torsdag denna vecka", "field-day-relative+1": "i morgon", + "field-thu-relative+1": "torsdag nästa vecka", "dateFormatItem-GyMMMd": "d MMM y G", "field-day-relative+2": "i övermorgon", "months-standAlone-abbr": [ @@ -137,6 +148,8 @@ define( ], "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d MMM y G", + "field-sun-relative+0": "söndag denna vecka", + "field-sun-relative+1": "söndag nästa vecka", "quarters-standAlone-abbr": [ "K1", "K2", @@ -146,7 +159,7 @@ define( "eraAbbr": [ "BE" ], - "field-minute": "minut", + "field-minute": "Minut", "field-dayperiod": "fm/em", "days-standAlone-abbr": [ "Sön", @@ -162,7 +175,9 @@ define( "field-day-relative+-2": "i förrgår", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E d/M", - "field-day": "dag", + "field-fri-relative+0": "fredag denna vecka", + "field-fri-relative+1": "fredag nästa vecka", + "field-day": "Dag", "days-format-wide": [ "söndag", "måndag", @@ -172,7 +187,7 @@ define( "fredag", "lördag" ], - "field-zone": "tidszon", + "field-zone": "Tidszon", "dateFormatItem-y": "y G", "months-standAlone-narrow": [ "J", @@ -210,7 +225,7 @@ define( "L" ], "dateFormatItem-yyyyMd": "G y-MM-dd", - "field-month": "månad", + "field-month": "Månad", "days-standAlone-narrow": [ "S", "M", @@ -220,13 +235,19 @@ define( "F", "L" ], + "field-tue-relative+0": "tisdag denna vecka", + "field-tue-relative+1": "tisdag nästa vecka", "dayPeriods-format-wide-am": "fm", + "field-mon-relative+0": "måndag denna vecka", + "field-mon-relative+1": "måndag nästa vecka", "dateFormat-short": "G y-MM-dd", - "field-second": "sekund", + "field-second": "Sekund", + "field-sat-relative+-1": "lördag förra veckan", + "field-sun-relative+-1": "söndag förra veckan", "field-month-relative+0": "denna månad", "field-month-relative+1": "nästa månad", "dateFormatItem-Ed": "E d", - "field-week": "vecka", + "field-week": "Vecka", "dateFormat-medium": "d MMM y G", "field-year-relative+0": "i år", "field-week-relative+-1": "förra veckan", @@ -234,6 +255,7 @@ define( "field-year-relative+1": "nästa år", "dayPeriods-format-narrow-pm": "e", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "måndag förra veckan", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "denna vecka", "field-week-relative+1": "nästa vecka" diff --git a/cldr/nls/sv/coptic.js b/cldr/nls/sv/coptic.js index 82c9e4d47e..b79acf4792 100644 --- a/cldr/nls/sv/coptic.js +++ b/cldr/nls/sv/coptic.js @@ -1,13 +1,20 @@ define( //begin v1.x content { - "field-second": "sekund", - "field-year-relative+-1": "i fjol", - "field-week": "vecka", - "field-month-relative+-1": "förra månaden", + "field-sat-relative+0": "lördag denna vecka", + "field-sat-relative+1": "lördag nästa vecka", + "field-dayperiod": "fm/em", + "field-sun-relative+-1": "söndag förra veckan", + "field-mon-relative+-1": "måndag förra veckan", + "field-minute": "Minut", "field-day-relative+-1": "i går", + "field-weekday": "Veckodag", "field-day-relative+-2": "i förrgår", - "months-standAlone-wide": [ + "field-era": "Era", + "field-hour": "timme", + "field-sun-relative+0": "söndag denna vecka", + "field-sun-relative+1": "söndag nästa vecka", + "months-standAlone-abbr": [ "Tout", "Bâbâ", "Hâtour", @@ -22,9 +29,22 @@ define( "Misra", "Al-nasi" ], - "field-year": "år", - "field-week-relative+0": "denna vecka", - "months-standAlone-abbr": [ + "field-wed-relative+-1": "onsdag förra veckan", + "field-day-relative+0": "i dag", + "field-day-relative+1": "i morgon", + "field-day-relative+2": "i övermorgon", + "field-tue-relative+0": "tisdag denna vecka", + "field-zone": "Tidszon", + "field-tue-relative+1": "tisdag nästa vecka", + "field-week-relative+-1": "förra veckan", + "field-year-relative+0": "i år", + "field-year-relative+1": "nästa år", + "field-sat-relative+-1": "lördag förra veckan", + "field-year-relative+-1": "i fjol", + "field-year": "År", + "field-fri-relative+0": "fredag denna vecka", + "field-fri-relative+1": "fredag nästa vecka", + "months-standAlone-wide": [ "Tout", "Bâbâ", "Hâtour", @@ -39,19 +59,10 @@ define( "Misra", "Al-nasi" ], + "field-week": "Vecka", + "field-week-relative+0": "denna vecka", "field-week-relative+1": "nästa vecka", - "field-minute": "minut", - "field-week-relative+-1": "förra veckan", - "field-day-relative+0": "i dag", - "field-hour": "timme", - "field-day-relative+1": "i morgon", - "field-day-relative+2": "i övermorgon", - "field-day": "dag", - "field-month-relative+0": "denna månad", - "field-month-relative+1": "nästa månad", - "field-dayperiod": "fm/em", - "field-month": "månad", - "months-format-wide": [ + "months-format-abbr": [ "tout", "bâbâ", "hâtour", @@ -66,10 +77,20 @@ define( "misra", "al-nasi" ], - "field-era": "era", - "field-year-relative+0": "i år", - "field-year-relative+1": "nästa år", - "months-format-abbr": [ + "field-month-relative+0": "denna månad", + "field-month": "Månad", + "field-month-relative+1": "nästa månad", + "field-fri-relative+-1": "fredag förra veckan", + "field-second": "Sekund", + "field-tue-relative+-1": "tisdag förra veckan", + "field-day": "Dag", + "field-mon-relative+0": "måndag denna vecka", + "field-mon-relative+1": "måndag nästa vecka", + "field-thu-relative+0": "torsdag denna vecka", + "field-second-relative+0": "nu", + "field-thu-relative+1": "torsdag nästa vecka", + "field-wed-relative+0": "onsdag denna vecka", + "months-format-wide": [ "tout", "bâbâ", "hâtour", @@ -84,8 +105,9 @@ define( "misra", "al-nasi" ], - "field-weekday": "veckodag", - "field-zone": "tidszon" + "field-wed-relative+1": "onsdag nästa vecka", + "field-month-relative+-1": "förra månaden", + "field-thu-relative+-1": "torsdag förra veckan" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/sv/dangi.js b/cldr/nls/sv/dangi.js new file mode 100644 index 0000000000..5491066eac --- /dev/null +++ b/cldr/nls/sv/dangi.js @@ -0,0 +1,53 @@ +define( +//begin v1.x content +{ + "field-sat-relative+0": "lördag denna vecka", + "field-sat-relative+1": "lördag nästa vecka", + "field-dayperiod": "fm/em", + "field-sun-relative+-1": "söndag förra veckan", + "field-mon-relative+-1": "måndag förra veckan", + "field-minute": "Minut", + "field-day-relative+-1": "i går", + "field-weekday": "Veckodag", + "field-day-relative+-2": "i förrgår", + "field-era": "Era", + "field-hour": "timme", + "field-sun-relative+0": "söndag denna vecka", + "field-sun-relative+1": "söndag nästa vecka", + "field-wed-relative+-1": "onsdag förra veckan", + "field-day-relative+0": "i dag", + "field-day-relative+1": "i morgon", + "field-day-relative+2": "i övermorgon", + "field-tue-relative+0": "tisdag denna vecka", + "field-zone": "Tidszon", + "field-tue-relative+1": "tisdag nästa vecka", + "field-week-relative+-1": "förra veckan", + "field-year-relative+0": "i år", + "field-year-relative+1": "nästa år", + "field-sat-relative+-1": "lördag förra veckan", + "field-year-relative+-1": "i fjol", + "field-year": "År", + "field-fri-relative+0": "fredag denna vecka", + "field-fri-relative+1": "fredag nästa vecka", + "field-week": "Vecka", + "field-week-relative+0": "denna vecka", + "field-week-relative+1": "nästa vecka", + "field-month-relative+0": "denna månad", + "field-month": "Månad", + "field-month-relative+1": "nästa månad", + "field-fri-relative+-1": "fredag förra veckan", + "field-second": "Sekund", + "field-tue-relative+-1": "tisdag förra veckan", + "field-day": "Dag", + "field-mon-relative+0": "måndag denna vecka", + "field-mon-relative+1": "måndag nästa vecka", + "field-thu-relative+0": "torsdag denna vecka", + "field-second-relative+0": "nu", + "field-thu-relative+1": "torsdag nästa vecka", + "field-wed-relative+0": "onsdag denna vecka", + "field-wed-relative+1": "onsdag nästa vecka", + "field-month-relative+-1": "förra månaden", + "field-thu-relative+-1": "torsdag förra veckan" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/sv/ethiopic.js b/cldr/nls/sv/ethiopic.js index 3a5791dba5..ffb2248f3c 100644 --- a/cldr/nls/sv/ethiopic.js +++ b/cldr/nls/sv/ethiopic.js @@ -1,13 +1,20 @@ define( //begin v1.x content { - "field-second": "sekund", - "field-year-relative+-1": "i fjol", - "field-week": "vecka", - "field-month-relative+-1": "förra månaden", + "field-sat-relative+0": "lördag denna vecka", + "field-sat-relative+1": "lördag nästa vecka", + "field-dayperiod": "fm/em", + "field-sun-relative+-1": "söndag förra veckan", + "field-mon-relative+-1": "måndag förra veckan", + "field-minute": "Minut", "field-day-relative+-1": "i går", + "field-weekday": "Veckodag", "field-day-relative+-2": "i förrgår", - "months-standAlone-wide": [ + "field-era": "Era", + "field-hour": "timme", + "field-sun-relative+0": "söndag denna vecka", + "field-sun-relative+1": "söndag nästa vecka", + "months-standAlone-abbr": [ "Mäskäräm", "Teqemt", "Hedar", @@ -22,9 +29,22 @@ define( "Nähasé", "Pagumén" ], - "field-year": "år", - "field-week-relative+0": "denna vecka", - "months-standAlone-abbr": [ + "field-wed-relative+-1": "onsdag förra veckan", + "field-day-relative+0": "i dag", + "field-day-relative+1": "i morgon", + "field-day-relative+2": "i övermorgon", + "field-tue-relative+0": "tisdag denna vecka", + "field-zone": "Tidszon", + "field-tue-relative+1": "tisdag nästa vecka", + "field-week-relative+-1": "förra veckan", + "field-year-relative+0": "i år", + "field-year-relative+1": "nästa år", + "field-sat-relative+-1": "lördag förra veckan", + "field-year-relative+-1": "i fjol", + "field-year": "År", + "field-fri-relative+0": "fredag denna vecka", + "field-fri-relative+1": "fredag nästa vecka", + "months-standAlone-wide": [ "Mäskäräm", "Teqemt", "Hedar", @@ -39,19 +59,10 @@ define( "Nähasé", "Pagumén" ], + "field-week": "Vecka", + "field-week-relative+0": "denna vecka", "field-week-relative+1": "nästa vecka", - "field-minute": "minut", - "field-week-relative+-1": "förra veckan", - "field-day-relative+0": "i dag", - "field-hour": "timme", - "field-day-relative+1": "i morgon", - "field-day-relative+2": "i övermorgon", - "field-day": "dag", - "field-month-relative+0": "denna månad", - "field-month-relative+1": "nästa månad", - "field-dayperiod": "fm/em", - "field-month": "månad", - "months-format-wide": [ + "months-format-abbr": [ "mäskäräm", "teqemt", "hedar", @@ -66,10 +77,20 @@ define( "nähasé", "pagumén" ], - "field-era": "era", - "field-year-relative+0": "i år", - "field-year-relative+1": "nästa år", - "months-format-abbr": [ + "field-month-relative+0": "denna månad", + "field-month": "Månad", + "field-month-relative+1": "nästa månad", + "field-fri-relative+-1": "fredag förra veckan", + "field-second": "Sekund", + "field-tue-relative+-1": "tisdag förra veckan", + "field-day": "Dag", + "field-mon-relative+0": "måndag denna vecka", + "field-mon-relative+1": "måndag nästa vecka", + "field-thu-relative+0": "torsdag denna vecka", + "field-second-relative+0": "nu", + "field-thu-relative+1": "torsdag nästa vecka", + "field-wed-relative+0": "onsdag denna vecka", + "months-format-wide": [ "mäskäräm", "teqemt", "hedar", @@ -84,8 +105,9 @@ define( "nähasé", "pagumén" ], - "field-weekday": "veckodag", - "field-zone": "tidszon" + "field-wed-relative+1": "onsdag nästa vecka", + "field-month-relative+-1": "förra månaden", + "field-thu-relative+-1": "torsdag förra veckan" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/sv/generic.js b/cldr/nls/sv/generic.js index 34daabb61a..0d24effaa0 100644 --- a/cldr/nls/sv/generic.js +++ b/cldr/nls/sv/generic.js @@ -1,73 +1,95 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E d MMM y G", - "field-dayperiod": "fm/em", - "field-minute": "minut", + "field-second-relative+0": "nu", + "field-weekday": "Veckodag", + "field-wed-relative+0": "onsdag denna vecka", + "dateFormatItem-GyMMMEd": "E d MMM y G", "dateFormatItem-MMMEd": "E d MMM", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "i går", - "dateFormatItem-hms": "h:mm:ss a", - "dateFormatItem-MMdd": "dd/MM", - "field-day-relative+-2": "i förrgår", - "field-weekday": "veckodag", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "y G", + "field-wed-relative+1": "onsdag nästa vecka", + "field-tue-relative+-1": "tisdag förra veckan", + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "fredag förra veckan", + "field-wed-relative+-1": "onsdag förra veckan", + "dateFormatItem-yyyyQQQ": "G y QQQ", "dateTimeFormat-medium": "{1} {0}", - "field-era": "era", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E, y-MM-dd G", + "field-thu-relative+-1": "torsdag förra veckan", + "dateFormatItem-Md": "d/M", + "field-era": "Era", + "field-year": "År", + "dateFormatItem-MMdd": "dd/MM", "field-hour": "timme", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "E d", + "field-sat-relative+0": "lördag denna vecka", + "field-sat-relative+1": "lördag nästa vecka", "field-day-relative+0": "i dag", "field-day-relative+1": "i morgon", - "field-day-relative+2": "i övermorgon", + "field-thu-relative+0": "torsdag denna vecka", "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormatItem-yyyyMM": "G y-MM", - "dateFormat-long": "d MMMM y G", - "field-zone": "tidszon", + "field-day-relative+2": "i övermorgon", + "field-thu-relative+1": "torsdag nästa vecka", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "dateFormatItem-MMMMd": "d MMMM", + "field-sun-relative+0": "söndag denna vecka", "dateFormatItem-Hm": "HH:mm", - "dateFormatItem-MMd": "d/M", - "field-week-relative+-1": "förra veckan", - "dateFormat-medium": "d MMM y G", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "i år", - "field-year-relative+1": "nästa år", - "field-year-relative+-1": "i fjol", + "field-sun-relative+1": "söndag nästa vecka", + "field-minute": "Minut", + "field-dayperiod": "fm/em", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "G y QQQQ", - "field-year": "år", + "field-day-relative+-1": "i går", + "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", - "field-week": "vecka", - "dateFormatItem-yyyyMd": "G y-MM-dd", - "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-MMMMEd": "E d:'e' MMMM", - "dateFormatItem-yyyyMEd": "E, y-MM-dd G", + "field-day-relative+-2": "i förrgår", "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "denna vecka", - "field-week-relative+1": "nästa vecka", - "field-month-relative+0": "denna månad", - "dateFormatItem-H": "HH", - "field-month": "månad", - "field-month-relative+1": "nästa månad", - "dateFormatItem-MMMMd": "d:'e' MMMM", - "dateFormatItem-M": "L", - "field-second": "sekund", - "dateFormatItem-GyMMMEd": "E d MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "dag", "dateFormatItem-MEd": "E d/M", - "dateFormatItem-yyyyQQQ": "G y QQQ", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "fredag denna vecka", + "field-fri-relative+1": "fredag nästa vecka", + "field-day": "Dag", + "field-zone": "Tidszon", + "dateFormatItem-yyyyMM": "G y-MM", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "i fjol", + "field-month-relative+-1": "förra månaden", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "G y-MM-dd", + "field-month": "Månad", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "tisdag denna vecka", + "field-tue-relative+1": "tisdag nästa vecka", + "dateFormatItem-MMMMEd": "E d MMMM", + "field-mon-relative+0": "måndag denna vecka", + "field-mon-relative+1": "måndag nästa vecka", "dateFormat-short": "G y-MM-dd", + "dateFormatItem-MMd": "d/M", + "field-second": "Sekund", + "field-sat-relative+-1": "lördag förra veckan", + "field-sun-relative+-1": "söndag förra veckan", + "field-month-relative+0": "denna månad", + "field-month-relative+1": "nästa månad", + "dateFormatItem-Ed": "E d", + "field-week": "Vecka", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "i år", + "field-week-relative+-1": "förra veckan", "dateFormatItem-yyyyM": "G y-MM", - "dateFormat-full": "EEEE d MMMM y G", - "dateFormatItem-Md": "d/M", - "dateFormatItem-yyyyMMM": "MMM y G", - "dateFormatItem-d": "d", - "field-month-relative+-1": "förra månaden", - "dateFormatItem-h": "h a" + "field-year-relative+1": "nästa år", + "dateFormatItem-yyyyQQQQ": "G y QQQQ", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "måndag förra veckan", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "denna vecka", + "field-week-relative+1": "nästa vecka" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/sv/gregorian.js b/cldr/nls/sv/gregorian.js index 46bcf947a9..53843036fc 100644 --- a/cldr/nls/sv/gregorian.js +++ b/cldr/nls/sv/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "Sö", "Må", @@ -24,22 +25,28 @@ define( "N", "D" ], + "field-second-relative+0": "nu", "quarters-standAlone-narrow": [ "1", "2", "3", "4" ], - "field-weekday": "veckodag", + "field-weekday": "Veckodag", "dateFormatItem-yQQQ": "y QQQ", "dateFormatItem-yMEd": "E, y-MM-dd", + "field-wed-relative+0": "onsdag denna vecka", "dateFormatItem-GyMMMEd": "E d MMM y G", "dateFormatItem-MMMEd": "E d MMM", + "field-wed-relative+1": "onsdag nästa vecka", "eraNarrow": [ "f.Kr.", - "e.Kr." + "fvt", + "e.Kr.", + "vt" ], "dateFormatItem-yMM": "y-MM", + "field-tue-relative+-1": "tisdag förra veckan", "days-format-short": [ "sö", "må", @@ -50,6 +57,8 @@ define( "lö" ], "dateFormat-long": "d MMMM y", + "field-fri-relative+-1": "fredag förra veckan", + "field-wed-relative+-1": "onsdag förra veckan", "months-format-wide": [ "januari", "februari", @@ -66,12 +75,13 @@ define( ], "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "em", - "dateFormat-full": "EEEE'en' 'den' d:'e' MMMM y", + "dateFormat-full": "EEEE d MMMM y", + "field-thu-relative+-1": "torsdag förra veckan", "dateFormatItem-Md": "d/M", "dayPeriods-format-abbr-am": "FM", "dateFormatItem-yMd": "y-MM-dd", "dateFormatItem-yM": "y-MM", - "field-era": "era", + "field-era": "Era", "months-standAlone-wide": [ "Januari", "Februari", @@ -96,7 +106,7 @@ define( "timeFormat-long": "HH:mm:ss z", "dateFormatItem-yMMM": "MMM y", "dateFormatItem-yQQQQ": "y QQQQ", - "field-year": "år", + "field-year": "År", "dateFormatItem-MMdd": "dd/MM", "field-hour": "timme", "months-format-abbr": [ @@ -113,11 +123,15 @@ define( "nov", "dec" ], + "field-sat-relative+0": "lördag denna vecka", + "field-sat-relative+1": "lördag nästa vecka", "timeFormat-full": "'kl'. HH:mm:ss zzzz", "field-day-relative+0": "i dag", "field-day-relative+1": "i morgon", + "field-thu-relative+0": "torsdag denna vecka", "dateFormatItem-GyMMMd": "d MMM y G", "field-day-relative+2": "i övermorgon", + "field-thu-relative+1": "torsdag nästa vecka", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ "Jan", @@ -156,8 +170,9 @@ define( "Fredag", "Lördag" ], - "dateFormatItem-MMMMd": "d:'e' MMMM", + "dateFormatItem-MMMMd": "d MMMM", "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "söndag denna vecka", "dateFormatItem-Hm": "HH:mm", "quarters-standAlone-abbr": [ "K1", @@ -165,11 +180,14 @@ define( "K3", "K4" ], + "field-sun-relative+1": "söndag nästa vecka", "eraAbbr": [ "f.Kr.", - "e.Kr." + "f.v.t.", + "e.Kr.", + "v.t." ], - "field-minute": "minut", + "field-minute": "Minut", "field-dayperiod": "fm/em", "days-standAlone-abbr": [ "Sön", @@ -196,7 +214,9 @@ define( "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E d/M", "dateTimeFormat-full": "{1} {0}", - "field-day": "dag", + "field-fri-relative+0": "fredag denna vecka", + "field-fri-relative+1": "fredag nästa vecka", + "field-day": "Dag", "days-format-wide": [ "söndag", "måndag", @@ -206,7 +226,7 @@ define( "fredag", "lördag" ], - "field-zone": "tidszon", + "field-zone": "Tidszon", "dateFormatItem-y": "y", "months-standAlone-narrow": [ "J", @@ -235,11 +255,13 @@ define( "fre", "lör" ], - "dateFormatItem-yMMMd": "d MMM y", "eraNames": [ "före Kristus", - "efter Kristus" + "före västerländsk tideräkning", + "efter Kristus", + "västerländsk tideräkning" ], + "dateFormatItem-yMMMd": "d MMM y", "days-format-narrow": [ "S", "M", @@ -259,17 +281,27 @@ define( "L" ], "dateFormatItem-MMM": "LLL", - "field-month": "månad", + "field-month": "Månad", + "field-tue-relative+0": "tisdag denna vecka", + "field-tue-relative+1": "tisdag nästa vecka", "dayPeriods-format-wide-am": "fm", - "dateFormatItem-MMMMEd": "E d:'e' MMMM", + "dateFormatItem-MMMMEd": "E d MMMM", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "måndag denna vecka", + "field-mon-relative+1": "måndag nästa vecka", "dateFormat-short": "y-MM-dd", "dateFormatItem-MMd": "d/M", - "field-second": "sekund", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", + "field-second": "Sekund", + "field-sat-relative+-1": "lördag förra veckan", "dateFormatItem-yMMMEd": "E d MMM y", + "field-sun-relative+-1": "söndag förra veckan", "field-month-relative+0": "denna månad", "field-month-relative+1": "nästa månad", "dateFormatItem-Ed": "E d", - "field-week": "vecka", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "field-week": "Vecka", "dateFormat-medium": "d MMM y", "field-year-relative+0": "i år", "field-week-relative+-1": "förra veckan", @@ -279,6 +311,7 @@ define( "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "måndag förra veckan", "field-week-relative+0": "denna vecka", "field-week-relative+1": "nästa vecka" } diff --git a/cldr/nls/sv/hebrew.js b/cldr/nls/sv/hebrew.js index 440dd82b0e..5ef05302ff 100644 --- a/cldr/nls/sv/hebrew.js +++ b/cldr/nls/sv/hebrew.js @@ -10,9 +10,13 @@ define( "Fr", "Lö" ], - "field-weekday": "veckodag", + "field-second-relative+0": "nu", + "field-weekday": "Veckodag", + "field-wed-relative+0": "onsdag denna vecka", + "field-wed-relative+1": "onsdag nästa vecka", "dateFormatItem-GyMMMEd": "E d MMM y G", "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "tisdag förra veckan", "days-format-short": [ "sö", "må", @@ -23,6 +27,8 @@ define( "lö" ], "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "fredag förra veckan", + "field-wed-relative+-1": "onsdag förra veckan", "months-format-wide": [ "tishrí", "heshván", @@ -41,9 +47,10 @@ define( "dayPeriods-format-wide-pm": "em", "dateFormat-full": "EEEE d MMMM y G", "dateFormatItem-yyyyMEd": "E, y-MM-dd G", + "field-thu-relative+-1": "torsdag förra veckan", "dateFormatItem-Md": "d/M", "dayPeriods-format-abbr-am": "FM", - "field-era": "era", + "field-era": "Era", "months-standAlone-wide": [ "Tishrí", "Heshván", @@ -65,7 +72,7 @@ define( "3:e kvartalet", "4:e kvartalet" ], - "field-year": "år", + "field-year": "År", "field-hour": "timme", "months-format-abbr": [ "tishrí", @@ -82,9 +89,13 @@ define( "ab", "elúl" ], + "field-sat-relative+0": "lördag denna vecka", + "field-sat-relative+1": "lördag nästa vecka", "timeFormat-full": "'kl'. HH:mm:ss zzzz", "field-day-relative+0": "i dag", + "field-thu-relative+0": "torsdag denna vecka", "field-day-relative+1": "i morgon", + "field-thu-relative+1": "torsdag nästa vecka", "dateFormatItem-GyMMMd": "d MMM y G", "field-day-relative+2": "i övermorgon", "months-standAlone-abbr": [ @@ -128,6 +139,8 @@ define( "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d MMM y G", "months-standAlone-wide-leap": "Adár II", + "field-sun-relative+0": "söndag denna vecka", + "field-sun-relative+1": "söndag nästa vecka", "quarters-standAlone-abbr": [ "K1", "K2", @@ -137,7 +150,7 @@ define( "eraAbbr": [ "AM" ], - "field-minute": "minut", + "field-minute": "Minut", "field-dayperiod": "fm/em", "days-standAlone-abbr": [ "Sön", @@ -153,7 +166,9 @@ define( "field-day-relative+-2": "i förrgår", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E d/M", - "field-day": "dag", + "field-fri-relative+0": "fredag denna vecka", + "field-fri-relative+1": "fredag nästa vecka", + "field-day": "Dag", "days-format-wide": [ "söndag", "måndag", @@ -163,7 +178,7 @@ define( "fredag", "lördag" ], - "field-zone": "tidszon", + "field-zone": "Tidszon", "months-standAlone-abbr-leap": "Adár II", "dateFormatItem-y": "y G", "field-year-relative+-1": "i fjol", @@ -188,7 +203,7 @@ define( "L" ], "dateFormatItem-yyyyMd": "G y-MM-dd", - "field-month": "månad", + "field-month": "Månad", "days-standAlone-narrow": [ "S", "M", @@ -198,13 +213,19 @@ define( "F", "L" ], + "field-tue-relative+0": "tisdag denna vecka", + "field-tue-relative+1": "tisdag nästa vecka", "dayPeriods-format-wide-am": "fm", + "field-mon-relative+0": "måndag denna vecka", + "field-mon-relative+1": "måndag nästa vecka", "dateFormat-short": "G y-MM-dd", - "field-second": "sekund", + "field-second": "Sekund", + "field-sat-relative+-1": "lördag förra veckan", + "field-sun-relative+-1": "söndag förra veckan", "field-month-relative+0": "denna månad", "field-month-relative+1": "nästa månad", "dateFormatItem-Ed": "E d", - "field-week": "vecka", + "field-week": "Vecka", "dateFormat-medium": "d MMM y G", "field-year-relative+0": "i år", "field-week-relative+-1": "förra veckan", @@ -213,6 +234,7 @@ define( "dayPeriods-format-narrow-pm": "e", "months-format-wide-leap": "adár II", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "måndag förra veckan", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "denna vecka", "field-week-relative+1": "nästa vecka" diff --git a/cldr/nls/sv/indian.js b/cldr/nls/sv/indian.js index bf1ffd29d8..205cad4e8d 100644 --- a/cldr/nls/sv/indian.js +++ b/cldr/nls/sv/indian.js @@ -1,13 +1,20 @@ define( //begin v1.x content { - "field-second": "sekund", - "field-year-relative+-1": "i fjol", - "field-week": "vecka", - "field-month-relative+-1": "förra månaden", + "field-sat-relative+0": "lördag denna vecka", + "field-sat-relative+1": "lördag nästa vecka", + "field-dayperiod": "fm/em", + "field-sun-relative+-1": "söndag förra veckan", + "field-mon-relative+-1": "måndag förra veckan", + "field-minute": "Minut", "field-day-relative+-1": "i går", + "field-weekday": "Veckodag", "field-day-relative+-2": "i förrgår", - "months-standAlone-wide": [ + "field-era": "Era", + "field-hour": "timme", + "field-sun-relative+0": "söndag denna vecka", + "field-sun-relative+1": "söndag nästa vecka", + "months-standAlone-abbr": [ "Chaitra", "Vaishākh", "Jyaishtha", @@ -21,9 +28,25 @@ define( "Māgh", "Phālgun" ], - "field-year": "år", - "field-week-relative+0": "denna vecka", - "months-standAlone-abbr": [ + "field-wed-relative+-1": "onsdag förra veckan", + "field-day-relative+0": "i dag", + "field-day-relative+1": "i morgon", + "eraAbbr": [ + "SAKA" + ], + "field-day-relative+2": "i övermorgon", + "field-tue-relative+0": "tisdag denna vecka", + "field-zone": "Tidszon", + "field-tue-relative+1": "tisdag nästa vecka", + "field-week-relative+-1": "förra veckan", + "field-year-relative+0": "i år", + "field-year-relative+1": "nästa år", + "field-sat-relative+-1": "lördag förra veckan", + "field-year-relative+-1": "i fjol", + "field-year": "År", + "field-fri-relative+0": "fredag denna vecka", + "field-fri-relative+1": "fredag nästa vecka", + "months-standAlone-wide": [ "Chaitra", "Vaishākh", "Jyaishtha", @@ -37,19 +60,10 @@ define( "Māgh", "Phālgun" ], + "field-week": "Vecka", + "field-week-relative+0": "denna vecka", "field-week-relative+1": "nästa vecka", - "field-minute": "minut", - "field-week-relative+-1": "förra veckan", - "field-day-relative+0": "i dag", - "field-hour": "timme", - "field-day-relative+1": "i morgon", - "field-day-relative+2": "i övermorgon", - "field-day": "dag", - "field-month-relative+0": "denna månad", - "field-month-relative+1": "nästa månad", - "field-dayperiod": "fm/em", - "field-month": "månad", - "months-format-wide": [ + "months-format-abbr": [ "chaitra", "vaishākh", "jyaishtha", @@ -63,10 +77,19 @@ define( "māgh", "phālgun" ], - "field-era": "era", - "field-year-relative+0": "i år", - "field-year-relative+1": "nästa år", - "months-format-abbr": [ + "field-month-relative+0": "denna månad", + "field-month": "Månad", + "field-month-relative+1": "nästa månad", + "field-fri-relative+-1": "fredag förra veckan", + "field-second": "Sekund", + "field-tue-relative+-1": "tisdag förra veckan", + "field-day": "Dag", + "field-mon-relative+0": "måndag denna vecka", + "field-mon-relative+1": "måndag nästa vecka", + "field-thu-relative+0": "torsdag denna vecka", + "field-second-relative+0": "nu", + "field-thu-relative+1": "torsdag nästa vecka", + "months-format-wide": [ "chaitra", "vaishākh", "jyaishtha", @@ -80,11 +103,10 @@ define( "māgh", "phālgun" ], - "eraAbbr": [ - "SAKA" - ], - "field-weekday": "veckodag", - "field-zone": "tidszon" + "field-wed-relative+0": "onsdag denna vecka", + "field-wed-relative+1": "onsdag nästa vecka", + "field-month-relative+-1": "förra månaden", + "field-thu-relative+-1": "torsdag förra veckan" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/sv/islamic.js b/cldr/nls/sv/islamic.js index d852453187..b80d3e61fe 100644 --- a/cldr/nls/sv/islamic.js +++ b/cldr/nls/sv/islamic.js @@ -1,37 +1,35 @@ define( //begin v1.x content { - "field-dayperiod": "fm/em", - "dateFormatItem-yyyyMMMEd": "E d MMM y G", - "dayPeriods-format-wide-pm": "em", - "field-minute": "minut", - "dateFormatItem-MMMEd": "E d MMM", - "field-day-relative+-1": "i går", - "field-weekday": "veckodag", - "field-day-relative+-2": "i förrgår", - "days-standAlone-wide": [ - "Söndag", - "Måndag", - "Tisdag", - "Onsdag", - "Torsdag", - "Fredag", - "Lördag" + "days-standAlone-short": [ + "Sö", + "Må", + "Ti", + "On", + "To", + "Fr", + "Lö" ], - "field-era": "era", - "dateFormatItem-Gy": "y G", - "field-hour": "timme", - "dayPeriods-format-wide-am": "fm", - "quarters-standAlone-abbr": [ - "K1", - "K2", - "K3", - "K4" + "field-second-relative+0": "nu", + "field-weekday": "Veckodag", + "field-wed-relative+0": "onsdag denna vecka", + "field-wed-relative+1": "onsdag nästa vecka", + "dateFormatItem-GyMMMEd": "E d MMM y G", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "tisdag förra veckan", + "days-format-short": [ + "sö", + "må", + "ti", + "on", + "to", + "fr", + "lö" ], - "dateFormatItem-y": "y G", - "timeFormat-full": "'kl'. HH:mm:ss zzzz", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ + "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "fredag förra veckan", + "field-wed-relative+-1": "onsdag förra veckan", + "months-format-wide": [ "muharram", "safar", "rabi’ al-awwal", @@ -45,39 +43,13 @@ define( "dhu-l-ga’da", "dhu-l-hijja" ], - "dateFormatItem-Ed": "E d", - "field-day-relative+0": "i dag", - "field-day-relative+1": "i morgon", - "days-standAlone-narrow": [ - "S", - "M", - "T", - "O", - "T", - "F", - "L" - ], - "eraAbbr": [ - "AH" - ], - "field-day-relative+2": "i övermorgon", - "dateFormatItem-GyMMMd": "d MMM y G", - "dateFormat-long": "d MMMM y G", - "field-zone": "tidszon", - "field-week-relative+-1": "förra veckan", - "dateFormat-medium": "d MMM y G", - "dayPeriods-format-narrow-pm": "e", - "field-year-relative+0": "i år", - "field-year-relative+1": "nästa år", - "quarters-standAlone-wide": [ - "1:a kvartalet", - "2:a kvartalet", - "3:e kvartalet", - "4:e kvartalet" - ], - "field-year-relative+-1": "i fjol", - "field-year": "år", - "dayPeriods-format-narrow-am": "f", + "dayPeriods-format-wide-pm": "em", + "dateFormat-full": "EEEE d MMMM y G", + "dateFormatItem-yyyyMEd": "E, y-MM-dd G", + "field-thu-relative+-1": "torsdag förra veckan", + "dateFormatItem-Md": "d/M", + "dayPeriods-format-abbr-am": "FM", + "field-era": "Era", "months-standAlone-wide": [ "Muharram", "Safar", @@ -92,13 +64,14 @@ define( "Dhu-l-ga’da", "Dhu-l-hijja" ], - "field-week": "vecka", - "dateFormatItem-yyyyMMMd": "d MMM y G", - "dateFormatItem-yyyyMd": "G y-MM-dd", - "dateFormatItem-yyyyMEd": "E, y-MM-dd G", - "field-week-relative+0": "denna vecka", - "dateFormatItem-MMMd": "d MMM", - "field-week-relative+1": "nästa vecka", + "quarters-format-wide": [ + "1:a kvartalet", + "2:a kvartalet", + "3:e kvartalet", + "4:e kvartalet" + ], + "field-year": "År", + "field-hour": "timme", "months-format-abbr": [ "muharram", "safar", @@ -113,62 +86,16 @@ define( "dhu-l-ga’da", "dhu-l-hijja" ], - "field-month-relative+0": "denna månad", - "field-month": "månad", - "field-month-relative+1": "nästa månad", - "quarters-format-abbr": [ - "K1", - "K2", - "K3", - "K4" - ], - "days-format-abbr": [ - "sön", - "mån", - "tis", - "ons", - "tors", - "fre", - "lör" - ], - "days-format-narrow": [ - "S", - "M", - "T", - "O", - "T", - "F", - "L" - ], - "field-second": "sekund", - "dateFormatItem-GyMMMEd": "E d MMM y G", - "dateFormatItem-GyMMM": "MMM y G", - "field-day": "dag", - "dateFormatItem-MEd": "E d/M", - "days-standAlone-short": [ - "Sö", - "Må", - "Ti", - "On", - "To", - "Fr", - "Lö" - ], - "days-standAlone-abbr": [ - "Sön", - "Mån", - "Tis", - "Ons", - "Tor", - "Fre", - "Lör" - ], - "dayPeriods-format-abbr-pm": "EM", - "dateFormat-short": "G y-MM-dd", - "dateFormatItem-yyyyM": "G y-MM", - "dateFormat-full": "EEEE d MMMM y G", - "dateFormatItem-Md": "d/M", - "months-format-wide": [ + "field-sat-relative+0": "lördag denna vecka", + "field-sat-relative+1": "lördag nästa vecka", + "timeFormat-full": "'kl'. HH:mm:ss zzzz", + "field-day-relative+0": "i dag", + "field-thu-relative+0": "torsdag denna vecka", + "field-day-relative+1": "i morgon", + "field-thu-relative+1": "torsdag nästa vecka", + "dateFormatItem-GyMMMd": "d MMM y G", + "field-day-relative+2": "i övermorgon", + "months-standAlone-abbr": [ "muharram", "safar", "rabi’ al-awwal", @@ -182,24 +109,61 @@ define( "dhu-l-ga’da", "dhu-l-hijja" ], - "dayPeriods-format-abbr-am": "FM", - "days-format-short": [ - "sö", - "må", - "ti", - "on", - "to", - "fr", - "lö" + "quarters-format-abbr": [ + "K1", + "K2", + "K3", + "K4" ], - "dateFormatItem-yyyyMMM": "MMM y G", - "field-month-relative+-1": "förra månaden", - "quarters-format-wide": [ + "quarters-standAlone-wide": [ "1:a kvartalet", "2:a kvartalet", "3:e kvartalet", "4:e kvartalet" ], + "dateFormatItem-Gy": "y G", + "dateFormatItem-yyyyMMMEd": "E d MMM y G", + "days-standAlone-wide": [ + "Söndag", + "Måndag", + "Tisdag", + "Onsdag", + "Torsdag", + "Fredag", + "Lördag" + ], + "dateFormatItem-yyyyMMM": "MMM y G", + "dateFormatItem-yyyyMMMd": "d MMM y G", + "field-sun-relative+0": "söndag denna vecka", + "field-sun-relative+1": "söndag nästa vecka", + "quarters-standAlone-abbr": [ + "K1", + "K2", + "K3", + "K4" + ], + "eraAbbr": [ + "AH" + ], + "field-minute": "Minut", + "field-dayperiod": "fm/em", + "days-standAlone-abbr": [ + "Sön", + "Mån", + "Tis", + "Ons", + "Tor", + "Fre", + "Lör" + ], + "field-day-relative+-1": "i går", + "dayPeriods-format-narrow-am": "f", + "field-day-relative+-2": "i förrgår", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "E d/M", + "field-fri-relative+0": "fredag denna vecka", + "field-fri-relative+1": "fredag nästa vecka", + "field-day": "Dag", "days-format-wide": [ "söndag", "måndag", @@ -208,7 +172,65 @@ define( "torsdag", "fredag", "lördag" - ] + ], + "field-zone": "Tidszon", + "dateFormatItem-y": "y G", + "field-year-relative+-1": "i fjol", + "field-month-relative+-1": "förra månaden", + "dayPeriods-format-abbr-pm": "EM", + "days-format-abbr": [ + "sön", + "mån", + "tis", + "ons", + "tors", + "fre", + "lör" + ], + "days-format-narrow": [ + "S", + "M", + "T", + "O", + "T", + "F", + "L" + ], + "dateFormatItem-yyyyMd": "G y-MM-dd", + "field-month": "Månad", + "days-standAlone-narrow": [ + "S", + "M", + "T", + "O", + "T", + "F", + "L" + ], + "field-tue-relative+0": "tisdag denna vecka", + "field-tue-relative+1": "tisdag nästa vecka", + "dayPeriods-format-wide-am": "fm", + "field-mon-relative+0": "måndag denna vecka", + "field-mon-relative+1": "måndag nästa vecka", + "dateFormat-short": "G y-MM-dd", + "field-second": "Sekund", + "field-sat-relative+-1": "lördag förra veckan", + "field-sun-relative+-1": "söndag förra veckan", + "field-month-relative+0": "denna månad", + "field-month-relative+1": "nästa månad", + "dateFormatItem-Ed": "E d", + "field-week": "Vecka", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "i år", + "field-week-relative+-1": "förra veckan", + "dateFormatItem-yyyyM": "G y-MM", + "field-year-relative+1": "nästa år", + "dayPeriods-format-narrow-pm": "e", + "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "måndag förra veckan", + "dateFormatItem-yyyy": "y G", + "field-week-relative+0": "denna vecka", + "field-week-relative+1": "nästa vecka" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/sv/japanese.js b/cldr/nls/sv/japanese.js index af32ea50bd..ea0ec9f8f6 100644 --- a/cldr/nls/sv/japanese.js +++ b/cldr/nls/sv/japanese.js @@ -1,29 +1,25 @@ define( //begin v1.x content { - "field-second": "sekund", - "field-year-relative+-1": "i fjol", - "field-week": "vecka", - "field-month-relative+-1": "förra månaden", + "field-sat-relative+0": "lördag denna vecka", + "field-sat-relative+1": "lördag nästa vecka", + "field-dayperiod": "fm/em", + "field-sun-relative+-1": "söndag förra veckan", + "field-mon-relative+-1": "måndag förra veckan", + "field-minute": "Minut", + "dateTimeFormat-full": "{1} {0}", "field-day-relative+-1": "i går", + "field-weekday": "Veckodag", "field-day-relative+-2": "i förrgår", - "field-year": "år", - "field-week-relative+0": "denna vecka", - "field-week-relative+1": "nästa vecka", - "field-minute": "minut", - "field-week-relative+-1": "förra veckan", - "field-day-relative+0": "i dag", + "dateTimeFormat-short": "{1} {0}", + "field-era": "Era", + "dateTimeFormat-medium": "{1} {0}", "field-hour": "timme", + "field-sun-relative+0": "söndag denna vecka", + "field-sun-relative+1": "söndag nästa vecka", + "field-wed-relative+-1": "onsdag förra veckan", + "field-day-relative+0": "i dag", "field-day-relative+1": "i morgon", - "field-day-relative+2": "i övermorgon", - "field-day": "dag", - "field-month-relative+0": "denna månad", - "field-month-relative+1": "nästa månad", - "field-dayperiod": "fm/em", - "field-month": "månad", - "field-era": "era", - "field-year-relative+0": "i år", - "field-year-relative+1": "nästa år", "eraAbbr": [ "Taika (645–650)", "Hakuchi (650–671)", @@ -262,8 +258,38 @@ define( "Shōwa", "Heisei" ], - "field-weekday": "veckodag", - "field-zone": "tidszon" + "field-day-relative+2": "i övermorgon", + "field-tue-relative+0": "tisdag denna vecka", + "field-zone": "Tidszon", + "field-tue-relative+1": "tisdag nästa vecka", + "field-week-relative+-1": "förra veckan", + "field-year-relative+0": "i år", + "field-year-relative+1": "nästa år", + "field-sat-relative+-1": "lördag förra veckan", + "field-year-relative+-1": "i fjol", + "field-year": "År", + "field-fri-relative+0": "fredag denna vecka", + "field-fri-relative+1": "fredag nästa vecka", + "dateTimeFormat-long": "{1} {0}", + "field-week": "Vecka", + "field-week-relative+0": "denna vecka", + "field-week-relative+1": "nästa vecka", + "field-month-relative+0": "denna månad", + "field-month": "Månad", + "field-month-relative+1": "nästa månad", + "field-fri-relative+-1": "fredag förra veckan", + "field-second": "Sekund", + "field-tue-relative+-1": "tisdag förra veckan", + "field-day": "Dag", + "field-mon-relative+0": "måndag denna vecka", + "field-mon-relative+1": "måndag nästa vecka", + "field-thu-relative+0": "torsdag denna vecka", + "field-second-relative+0": "nu", + "field-thu-relative+1": "torsdag nästa vecka", + "field-wed-relative+0": "onsdag denna vecka", + "field-wed-relative+1": "onsdag nästa vecka", + "field-month-relative+-1": "förra månaden", + "field-thu-relative+-1": "torsdag förra veckan" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/sv/number.js b/cldr/nls/sv/number.js index 12209343b0..237e4ff77c 100644 --- a/cldr/nls/sv/number.js +++ b/cldr/nls/sv/number.js @@ -10,8 +10,8 @@ define( "infinity": "∞", "minusSign": "−", "decimal": ",", + "superscriptingExponent": "·", "nan": "¤¤¤", - "currencyDecimal": ":", "perMille": "‰", "decimalFormat": "#,##0.###", "currencyFormat": "#,##0.00 ¤", diff --git a/cldr/nls/sv/persian.js b/cldr/nls/sv/persian.js index 9dd3a275c2..e2947d42ef 100644 --- a/cldr/nls/sv/persian.js +++ b/cldr/nls/sv/persian.js @@ -24,9 +24,13 @@ define( "N", "D" ], - "field-weekday": "veckodag", + "field-second-relative+0": "nu", + "field-weekday": "Veckodag", + "field-wed-relative+0": "onsdag denna vecka", + "field-wed-relative+1": "onsdag nästa vecka", "dateFormatItem-GyMMMEd": "E d MMM y G", "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "tisdag förra veckan", "days-format-short": [ "sö", "må", @@ -37,6 +41,8 @@ define( "lö" ], "dateFormat-long": "d MMMM y G", + "field-fri-relative+-1": "fredag förra veckan", + "field-wed-relative+-1": "onsdag förra veckan", "months-format-wide": [ "farvardin", "ordibehesht", @@ -54,9 +60,10 @@ define( "dayPeriods-format-wide-pm": "em", "dateFormat-full": "EEEE d MMMM y G", "dateFormatItem-yyyyMEd": "E, y-MM-dd G", + "field-thu-relative+-1": "torsdag förra veckan", "dateFormatItem-Md": "d/M", "dayPeriods-format-abbr-am": "FM", - "field-era": "era", + "field-era": "Era", "months-standAlone-wide": [ "Farvardin", "Ordibehesht", @@ -77,7 +84,7 @@ define( "3:e kvartalet", "4:e kvartalet" ], - "field-year": "år", + "field-year": "År", "field-hour": "timme", "months-format-abbr": [ "farvardin", @@ -93,9 +100,13 @@ define( "bahman", "esfand" ], + "field-sat-relative+0": "lördag denna vecka", + "field-sat-relative+1": "lördag nästa vecka", "timeFormat-full": "'kl'. HH:mm:ss zzzz", "field-day-relative+0": "i dag", + "field-thu-relative+0": "torsdag denna vecka", "field-day-relative+1": "i morgon", + "field-thu-relative+1": "torsdag nästa vecka", "dateFormatItem-GyMMMd": "d MMM y G", "field-day-relative+2": "i övermorgon", "months-standAlone-abbr": [ @@ -137,6 +148,8 @@ define( ], "dateFormatItem-yyyyMMM": "MMM y G", "dateFormatItem-yyyyMMMd": "d MMM y G", + "field-sun-relative+0": "söndag denna vecka", + "field-sun-relative+1": "söndag nästa vecka", "quarters-standAlone-abbr": [ "K1", "K2", @@ -146,7 +159,7 @@ define( "eraAbbr": [ "AP" ], - "field-minute": "minut", + "field-minute": "Minut", "field-dayperiod": "fm/em", "days-standAlone-abbr": [ "Sön", @@ -162,7 +175,9 @@ define( "field-day-relative+-2": "i förrgår", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E d/M", - "field-day": "dag", + "field-fri-relative+0": "fredag denna vecka", + "field-fri-relative+1": "fredag nästa vecka", + "field-day": "Dag", "days-format-wide": [ "söndag", "måndag", @@ -172,7 +187,7 @@ define( "fredag", "lördag" ], - "field-zone": "tidszon", + "field-zone": "Tidszon", "dateFormatItem-y": "y G", "months-standAlone-narrow": [ "J", @@ -210,7 +225,7 @@ define( "L" ], "dateFormatItem-yyyyMd": "G y-MM-dd", - "field-month": "månad", + "field-month": "Månad", "days-standAlone-narrow": [ "S", "M", @@ -220,13 +235,19 @@ define( "F", "L" ], + "field-tue-relative+0": "tisdag denna vecka", + "field-tue-relative+1": "tisdag nästa vecka", "dayPeriods-format-wide-am": "fm", + "field-mon-relative+0": "måndag denna vecka", + "field-mon-relative+1": "måndag nästa vecka", "dateFormat-short": "G y-MM-dd", - "field-second": "sekund", + "field-second": "Sekund", + "field-sat-relative+-1": "lördag förra veckan", + "field-sun-relative+-1": "söndag förra veckan", "field-month-relative+0": "denna månad", "field-month-relative+1": "nästa månad", "dateFormatItem-Ed": "E d", - "field-week": "vecka", + "field-week": "Vecka", "dateFormat-medium": "d MMM y G", "field-year-relative+0": "i år", "field-week-relative+-1": "förra veckan", @@ -234,6 +255,7 @@ define( "field-year-relative+1": "nästa år", "dayPeriods-format-narrow-pm": "e", "dateFormatItem-GyMMM": "MMM y G", + "field-mon-relative+-1": "måndag förra veckan", "dateFormatItem-yyyy": "y G", "field-week-relative+0": "denna vecka", "field-week-relative+1": "nästa vecka" diff --git a/cldr/nls/sv/roc.js b/cldr/nls/sv/roc.js index b0afae24ec..b1bafafec0 100644 --- a/cldr/nls/sv/roc.js +++ b/cldr/nls/sv/roc.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "field-second": "sekund", - "field-year-relative+-1": "i fjol", - "field-week": "vecka", - "field-month-relative+-1": "förra månaden", + "field-sat-relative+0": "lördag denna vecka", + "field-sat-relative+1": "lördag nästa vecka", + "field-dayperiod": "fm/em", + "field-sun-relative+-1": "söndag förra veckan", + "field-mon-relative+-1": "måndag förra veckan", + "field-minute": "Minut", "field-day-relative+-1": "i går", + "field-weekday": "Veckodag", "field-day-relative+-2": "i förrgår", - "field-year": "år", - "field-week-relative+0": "denna vecka", - "field-week-relative+1": "nästa vecka", - "field-minute": "minut", - "field-week-relative+-1": "förra veckan", - "field-day-relative+0": "i dag", + "field-era": "Era", "field-hour": "timme", + "field-sun-relative+0": "söndag denna vecka", + "field-sun-relative+1": "söndag nästa vecka", + "field-wed-relative+-1": "onsdag förra veckan", + "field-day-relative+0": "i dag", "field-day-relative+1": "i morgon", - "field-day-relative+2": "i övermorgon", - "field-day": "dag", - "field-month-relative+0": "denna månad", - "field-month-relative+1": "nästa månad", - "field-dayperiod": "fm/em", - "field-month": "månad", - "field-era": "era", - "field-year-relative+0": "i år", - "field-year-relative+1": "nästa år", "eraAbbr": [ "före R.K.", "R.K." ], - "field-weekday": "veckodag", - "field-zone": "tidszon" + "field-day-relative+2": "i övermorgon", + "field-tue-relative+0": "tisdag denna vecka", + "field-zone": "Tidszon", + "field-tue-relative+1": "tisdag nästa vecka", + "field-week-relative+-1": "förra veckan", + "field-year-relative+0": "i år", + "field-year-relative+1": "nästa år", + "field-sat-relative+-1": "lördag förra veckan", + "field-year-relative+-1": "i fjol", + "field-year": "År", + "field-fri-relative+0": "fredag denna vecka", + "field-fri-relative+1": "fredag nästa vecka", + "field-week": "Vecka", + "field-week-relative+0": "denna vecka", + "field-week-relative+1": "nästa vecka", + "field-month-relative+0": "denna månad", + "field-month": "Månad", + "field-month-relative+1": "nästa månad", + "field-fri-relative+-1": "fredag förra veckan", + "field-second": "Sekund", + "field-tue-relative+-1": "tisdag förra veckan", + "field-day": "Dag", + "field-mon-relative+0": "måndag denna vecka", + "field-mon-relative+1": "måndag nästa vecka", + "field-thu-relative+0": "torsdag denna vecka", + "field-second-relative+0": "nu", + "field-thu-relative+1": "torsdag nästa vecka", + "field-wed-relative+0": "onsdag denna vecka", + "field-wed-relative+1": "onsdag nästa vecka", + "field-month-relative+-1": "förra månaden", + "field-thu-relative+-1": "torsdag förra veckan" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/th/buddhist.js b/cldr/nls/th/buddhist.js index 4567d36be4..262e871a4b 100644 --- a/cldr/nls/th/buddhist.js +++ b/cldr/nls/th/buddhist.js @@ -10,26 +10,16 @@ define( "ศ.", "ส." ], - "months-format-narrow": [ - "ม.ค.", - "ก.พ.", - "มี.ค.", - "เม.ย.", - "พ.ค.", - "มิ.ย", - "ก.ค.", - "ส.ค.", - "ก.ย.", - "ต.ค.", - "พ.ย.", - "ธ.ค." - ], + "field-second-relative+0": "ขณะนี้", "field-weekday": "วันในสัปดาห์", + "field-wed-relative+0": "พุธนี้", + "field-wed-relative+1": "พุธหน้า", "dateFormatItem-GyMMMEd": "E d MMM G y", "dateFormatItem-MMMEd": "E d MMM", "eraNarrow": [ "พ.ศ." ], + "field-tue-relative+-1": "อังคารที่แล้ว", "days-format-short": [ "อา.", "จ.", @@ -40,6 +30,8 @@ define( "ส." ], "dateFormat-long": "d MMMM y", + "field-fri-relative+-1": "ศุกร์ที่แล้ว", + "field-wed-relative+-1": "พุธที่แล้ว", "months-format-wide": [ "มกราคม", "กุมภาพันธ์", @@ -55,10 +47,10 @@ define( "ธันวาคม" ], "dateFormatItem-yyyyQQQ": "QQQ y", - "dateTimeFormat-medium": "{1}, {0}", "dayPeriods-format-wide-pm": "หลังเที่ยง", "dateFormat-full": "EEEEที่ d MMMM G y", "dateFormatItem-yyyyMEd": "E d/M/y", + "field-thu-relative+-1": "พฤหัสที่แล้ว", "dateFormatItem-Md": "d/M", "field-era": "สมัย", "months-standAlone-wide": [ @@ -99,9 +91,13 @@ define( "พ.ย.", "ธ.ค." ], + "field-sat-relative+0": "เสาร์นี้", + "field-sat-relative+1": "เสาร์หน้า", "timeFormat-full": "H นาฬิกา mm นาที ss วินาที zzzz", "field-day-relative+0": "วันนี้", + "field-thu-relative+0": "พฤหัสนี้", "field-day-relative+1": "พรุ่งนี้", + "field-thu-relative+1": "พฤหัสหน้า", "dateFormatItem-GyMMMd": "d MMM G y", "field-day-relative+2": "มะรืนนี้", "dateFormatItem-H": "HH", @@ -146,7 +142,9 @@ define( "dateFormatItem-yyyyMMM": "MMM y", "dateFormatItem-yyyyMMMd": "d MMM y", "dateFormatItem-MMMMd": "d MMMM", + "field-sun-relative+0": "อาทิตย์นี้", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "อาทิตย์หน้า", "quarters-standAlone-abbr": [ "ไตรมาส 1", "ไตรมาส 2", @@ -171,12 +169,11 @@ define( "dateFormatItem-ms": "mm:ss", "field-day-relative+-1": "เมื่อวาน", "dateFormatItem-h": "h a", - "dateTimeFormat-long": "{1}, {0}", - "dayPeriods-format-narrow-am": "ก่อนเที่ยง", "field-day-relative+-2": "เมื่อวานซืน", "dateFormatItem-MMMd": "d MMM", - "dateFormatItem-MEd": "E, d/M", - "dateTimeFormat-full": "{1}, {0}", + "dateFormatItem-MEd": "E d/M", + "field-fri-relative+0": "ศุกร์นี้", + "field-fri-relative+1": "ศุกร์หน้า", "field-day": "วัน", "days-format-wide": [ "วันอาทิตย์", @@ -187,7 +184,7 @@ define( "วันศุกร์", "วันเสาร์" ], - "field-zone": "เขต", + "field-zone": "เขตเวลา", "dateFormatItem-y": "G y", "months-standAlone-narrow": [ "ม.ค.", @@ -219,30 +216,36 @@ define( "พุทธศักราช" ], "days-format-narrow": [ - "อา.", - "จ.", - "อ.", - "พ.", - "พฤ.", - "ศ.", - "ส." + "อา", + "จ", + "อ", + "พ", + "พฤ", + "ศ", + "ส" ], "dateFormatItem-yyyyMd": "d/M/y", "field-month": "เดือน", + "dateFormatItem-MMM": "LLL", "days-standAlone-narrow": [ - "อา.", - "จ.", - "อ.", - "พ.", - "พฤ.", - "ศ.", - "ส." + "อา", + "จ", + "อ", + "พ", + "พฤ", + "ศ", + "ส" ], - "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "อังคารนี้", + "field-tue-relative+1": "อังคารหน้า", "dayPeriods-format-wide-am": "ก่อนเที่ยง", "dateFormatItem-MMMMEd": "E d MMMM", + "field-mon-relative+0": "จันทร์นี้", + "field-mon-relative+1": "จันทร์หน้า", "dateFormat-short": "d/M/yy", "field-second": "วินาที", + "field-sat-relative+-1": "เสาร์ที่แล้ว", + "field-sun-relative+-1": "อาทิตย์ที่แล้ว", "field-month-relative+0": "เดือนนี้", "field-month-relative+1": "เดือนหน้า", "dateFormatItem-Ed": "E d", @@ -253,12 +256,11 @@ define( "dateFormatItem-yyyyM": "M/y", "field-year-relative+1": "ปีหน้า", "dateFormatItem-mmss": "mm:ss", - "dayPeriods-format-narrow-pm": "หลังเที่ยง", "dateFormatItem-yyyyQQQQ": "QQQQ y", - "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "MMM G y", + "field-mon-relative+-1": "จันทร์ที่แล้ว", "dateFormatItem-yyyy": "G y", "field-week-relative+0": "สัปดาห์นี้", "field-week-relative+1": "สัปดาห์หน้า" diff --git a/cldr/nls/th/chinese.js b/cldr/nls/th/chinese.js index 9c9c3dd34c..b9d865e195 100644 --- a/cldr/nls/th/chinese.js +++ b/cldr/nls/th/chinese.js @@ -1,13 +1,16 @@ define( //begin v1.x content { - "dateFormat-medium": "U MMM d", - "field-second": "วินาที", - "field-year-relative+-1": "ปีที่แล้ว", - "field-week": "สัปดาห์", - "field-month-relative+-1": "เดือนที่แล้ว", + "field-sat-relative+0": "เสาร์นี้", + "field-sat-relative+1": "เสาร์หน้า", + "field-dayperiod": "ช่วงวัน", + "field-sun-relative+-1": "อาทิตย์ที่แล้ว", + "field-mon-relative+-1": "จันทร์ที่แล้ว", + "field-minute": "นาที", "field-day-relative+-1": "เมื่อวาน", - "months-format-narrow": [ + "field-weekday": "วันในสัปดาห์", + "field-day-relative+-2": "เมื่อวานซืน", + "months-standAlone-narrow": [ "1", "2", "3", @@ -21,8 +24,11 @@ define( "11", "12" ], - "field-day-relative+-2": "เมื่อวานซืน", - "months-standAlone-narrow": [ + "field-era": "สมัย", + "field-hour": "ชั่วโมง", + "field-sun-relative+0": "อาทิตย์นี้", + "field-sun-relative+1": "อาทิตย์หน้า", + "months-standAlone-abbr": [ "1", "2", "3", @@ -36,6 +42,23 @@ define( "11", "12" ], + "field-wed-relative+-1": "พุธที่แล้ว", + "field-day-relative+0": "วันนี้", + "field-day-relative+1": "พรุ่งนี้", + "field-day-relative+2": "มะรืนนี้", + "dateFormat-long": "U MMMM d", + "field-tue-relative+0": "อังคารนี้", + "field-zone": "เขตเวลา", + "field-tue-relative+1": "อังคารหน้า", + "field-week-relative+-1": "สัปดาห์ที่แล้ว", + "dateFormat-medium": "U MMM d", + "field-year-relative+0": "ปีนี้", + "field-year-relative+1": "ปีหน้า", + "field-sat-relative+-1": "เสาร์ที่แล้ว", + "field-year-relative+-1": "ปีที่แล้ว", + "field-year": "ปี", + "field-fri-relative+0": "ศุกร์นี้", + "field-fri-relative+1": "ศุกร์หน้า", "months-standAlone-wide": [ "1", "2", @@ -50,9 +73,10 @@ define( "11", "12" ], - "field-year": "ปี", + "field-week": "สัปดาห์", "field-week-relative+0": "สัปดาห์นี้", - "months-standAlone-abbr": [ + "field-week-relative+1": "สัปดาห์หน้า", + "months-format-abbr": [ "1", "2", "3", @@ -66,21 +90,14 @@ define( "11", "12" ], - "field-week-relative+1": "สัปดาห์หน้า", - "field-minute": "นาที", - "field-week-relative+-1": "สัปดาห์ที่แล้ว", - "field-day-relative+0": "วันนี้", - "field-hour": "ชั่วโมง", - "field-day-relative+1": "พรุ่งนี้", - "dateFormat-long": "U MMMM d", - "field-day-relative+2": "มะรืนนี้", - "field-day": "วัน", "field-month-relative+0": "เดือนนี้", - "field-month-relative+1": "เดือนหน้า", - "field-dayperiod": "ช่วงวัน", "field-month": "เดือน", - "dateFormat-short": "y-M-d", - "months-format-wide": [ + "field-month-relative+1": "เดือนหน้า", + "field-fri-relative+-1": "ศุกร์ที่แล้ว", + "field-second": "วินาที", + "field-tue-relative+-1": "อังคารที่แล้ว", + "field-day": "วัน", + "months-format-narrow": [ "1", "2", "3", @@ -94,10 +111,14 @@ define( "11", "12" ], - "field-era": "สมัย", - "field-year-relative+0": "ปีนี้", - "field-year-relative+1": "ปีหน้า", - "months-format-abbr": [ + "field-mon-relative+0": "จันทร์นี้", + "field-mon-relative+1": "จันทร์หน้า", + "field-thu-relative+0": "พฤหัสนี้", + "field-second-relative+0": "ขณะนี้", + "dateFormat-short": "y-M-d", + "field-thu-relative+1": "พฤหัสหน้า", + "dateFormat-full": "EEEE, U MMMM d", + "months-format-wide": [ "1", "2", "3", @@ -111,9 +132,10 @@ define( "11", "12" ], - "dateFormat-full": "EEEE, U MMMM d", - "field-weekday": "วันในสัปดาห์", - "field-zone": "เขต" + "field-wed-relative+0": "พุธนี้", + "field-wed-relative+1": "พุธหน้า", + "field-month-relative+-1": "เดือนที่แล้ว", + "field-thu-relative+-1": "พฤหัสที่แล้ว" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/th/coptic.js b/cldr/nls/th/coptic.js index 4b32ee955b..05554570eb 100644 --- a/cldr/nls/th/coptic.js +++ b/cldr/nls/th/coptic.js @@ -1,26 +1,14 @@ define( //begin v1.x content { - "field-second": "วินาที", - "field-year-relative+-1": "ปีที่แล้ว", - "field-week": "สัปดาห์", - "field-month-relative+-1": "เดือนที่แล้ว", + "field-sat-relative+0": "เสาร์นี้", + "field-sat-relative+1": "เสาร์หน้า", + "field-dayperiod": "ช่วงวัน", + "field-sun-relative+-1": "อาทิตย์ที่แล้ว", + "field-mon-relative+-1": "จันทร์ที่แล้ว", + "field-minute": "นาที", "field-day-relative+-1": "เมื่อวาน", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], + "field-weekday": "วันในสัปดาห์", "field-day-relative+-2": "เมื่อวานซืน", "months-standAlone-narrow": [ "1", @@ -37,7 +25,11 @@ define( "12", "13" ], - "months-standAlone-wide": [ + "field-era": "สมัย", + "field-hour": "ชั่วโมง", + "field-sun-relative+0": "อาทิตย์นี้", + "field-sun-relative+1": "อาทิตย์หน้า", + "months-standAlone-abbr": [ "เทาท์", "บาบา", "ฮาเทอร์", @@ -52,9 +44,22 @@ define( "เมสรา", "นาซี" ], + "field-wed-relative+-1": "พุธที่แล้ว", + "field-day-relative+0": "วันนี้", + "field-day-relative+1": "พรุ่งนี้", + "field-day-relative+2": "มะรืนนี้", + "field-tue-relative+0": "อังคารนี้", + "field-zone": "เขตเวลา", + "field-tue-relative+1": "อังคารหน้า", + "field-week-relative+-1": "สัปดาห์ที่แล้ว", + "field-year-relative+0": "ปีนี้", + "field-year-relative+1": "ปีหน้า", + "field-sat-relative+-1": "เสาร์ที่แล้ว", + "field-year-relative+-1": "ปีที่แล้ว", "field-year": "ปี", - "field-week-relative+0": "สัปดาห์นี้", - "months-standAlone-abbr": [ + "field-fri-relative+0": "ศุกร์นี้", + "field-fri-relative+1": "ศุกร์หน้า", + "months-standAlone-wide": [ "เทาท์", "บาบา", "ฮาเทอร์", @@ -69,19 +74,10 @@ define( "เมสรา", "นาซี" ], + "field-week": "สัปดาห์", + "field-week-relative+0": "สัปดาห์นี้", "field-week-relative+1": "สัปดาห์หน้า", - "field-minute": "นาที", - "field-week-relative+-1": "สัปดาห์ที่แล้ว", - "field-day-relative+0": "วันนี้", - "field-hour": "ชั่วโมง", - "field-day-relative+1": "พรุ่งนี้", - "field-day-relative+2": "มะรืนนี้", - "field-day": "วัน", - "field-month-relative+0": "เดือนนี้", - "field-month-relative+1": "เดือนหน้า", - "field-dayperiod": "ช่วงวัน", - "field-month": "เดือน", - "months-format-wide": [ + "months-format-abbr": [ "เทาท์", "บาบา", "ฮาเทอร์", @@ -96,10 +92,34 @@ define( "เมสรา", "นาซี" ], - "field-era": "สมัย", - "field-year-relative+0": "ปีนี้", - "field-year-relative+1": "ปีหน้า", - "months-format-abbr": [ + "field-month-relative+0": "เดือนนี้", + "field-month": "เดือน", + "field-month-relative+1": "เดือนหน้า", + "field-fri-relative+-1": "ศุกร์ที่แล้ว", + "field-second": "วินาที", + "field-tue-relative+-1": "อังคารที่แล้ว", + "field-day": "วัน", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "จันทร์นี้", + "field-mon-relative+1": "จันทร์หน้า", + "field-thu-relative+0": "พฤหัสนี้", + "field-second-relative+0": "ขณะนี้", + "field-thu-relative+1": "พฤหัสหน้า", + "months-format-wide": [ "เทาท์", "บาบา", "ฮาเทอร์", @@ -114,8 +134,10 @@ define( "เมสรา", "นาซี" ], - "field-weekday": "วันในสัปดาห์", - "field-zone": "เขต" + "field-wed-relative+0": "พุธนี้", + "field-wed-relative+1": "พุธหน้า", + "field-month-relative+-1": "เดือนที่แล้ว", + "field-thu-relative+-1": "พฤหัสที่แล้ว" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/th/dangi.js b/cldr/nls/th/dangi.js new file mode 100644 index 0000000000..b9d865e195 --- /dev/null +++ b/cldr/nls/th/dangi.js @@ -0,0 +1,141 @@ +define( +//begin v1.x content +{ + "field-sat-relative+0": "เสาร์นี้", + "field-sat-relative+1": "เสาร์หน้า", + "field-dayperiod": "ช่วงวัน", + "field-sun-relative+-1": "อาทิตย์ที่แล้ว", + "field-mon-relative+-1": "จันทร์ที่แล้ว", + "field-minute": "นาที", + "field-day-relative+-1": "เมื่อวาน", + "field-weekday": "วันในสัปดาห์", + "field-day-relative+-2": "เมื่อวานซืน", + "months-standAlone-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-era": "สมัย", + "field-hour": "ชั่วโมง", + "field-sun-relative+0": "อาทิตย์นี้", + "field-sun-relative+1": "อาทิตย์หน้า", + "months-standAlone-abbr": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-wed-relative+-1": "พุธที่แล้ว", + "field-day-relative+0": "วันนี้", + "field-day-relative+1": "พรุ่งนี้", + "field-day-relative+2": "มะรืนนี้", + "dateFormat-long": "U MMMM d", + "field-tue-relative+0": "อังคารนี้", + "field-zone": "เขตเวลา", + "field-tue-relative+1": "อังคารหน้า", + "field-week-relative+-1": "สัปดาห์ที่แล้ว", + "dateFormat-medium": "U MMM d", + "field-year-relative+0": "ปีนี้", + "field-year-relative+1": "ปีหน้า", + "field-sat-relative+-1": "เสาร์ที่แล้ว", + "field-year-relative+-1": "ปีที่แล้ว", + "field-year": "ปี", + "field-fri-relative+0": "ศุกร์นี้", + "field-fri-relative+1": "ศุกร์หน้า", + "months-standAlone-wide": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-week": "สัปดาห์", + "field-week-relative+0": "สัปดาห์นี้", + "field-week-relative+1": "สัปดาห์หน้า", + "months-format-abbr": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-month-relative+0": "เดือนนี้", + "field-month": "เดือน", + "field-month-relative+1": "เดือนหน้า", + "field-fri-relative+-1": "ศุกร์ที่แล้ว", + "field-second": "วินาที", + "field-tue-relative+-1": "อังคารที่แล้ว", + "field-day": "วัน", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-mon-relative+0": "จันทร์นี้", + "field-mon-relative+1": "จันทร์หน้า", + "field-thu-relative+0": "พฤหัสนี้", + "field-second-relative+0": "ขณะนี้", + "dateFormat-short": "y-M-d", + "field-thu-relative+1": "พฤหัสหน้า", + "dateFormat-full": "EEEE, U MMMM d", + "months-format-wide": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-wed-relative+0": "พุธนี้", + "field-wed-relative+1": "พุธหน้า", + "field-month-relative+-1": "เดือนที่แล้ว", + "field-thu-relative+-1": "พฤหัสที่แล้ว" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/th/ethiopic.js b/cldr/nls/th/ethiopic.js index 1052fc3e3d..0e5eab6251 100644 --- a/cldr/nls/th/ethiopic.js +++ b/cldr/nls/th/ethiopic.js @@ -1,26 +1,14 @@ define( //begin v1.x content { - "field-second": "วินาที", - "field-year-relative+-1": "ปีที่แล้ว", - "field-week": "สัปดาห์", - "field-month-relative+-1": "เดือนที่แล้ว", + "field-sat-relative+0": "เสาร์นี้", + "field-sat-relative+1": "เสาร์หน้า", + "field-dayperiod": "ช่วงวัน", + "field-sun-relative+-1": "อาทิตย์ที่แล้ว", + "field-mon-relative+-1": "จันทร์ที่แล้ว", + "field-minute": "นาที", "field-day-relative+-1": "เมื่อวาน", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], + "field-weekday": "วันในสัปดาห์", "field-day-relative+-2": "เมื่อวานซืน", "months-standAlone-narrow": [ "1", @@ -37,7 +25,11 @@ define( "12", "13" ], - "months-standAlone-wide": [ + "field-era": "สมัย", + "field-hour": "ชั่วโมง", + "field-sun-relative+0": "อาทิตย์นี้", + "field-sun-relative+1": "อาทิตย์หน้า", + "months-standAlone-abbr": [ "เมสเคอเรม", "เตเกมท", "เฮดาร์", @@ -52,9 +44,22 @@ define( "เนแฮซ", "พากูเมน" ], + "field-wed-relative+-1": "พุธที่แล้ว", + "field-day-relative+0": "วันนี้", + "field-day-relative+1": "พรุ่งนี้", + "field-day-relative+2": "มะรืนนี้", + "field-tue-relative+0": "อังคารนี้", + "field-zone": "เขตเวลา", + "field-tue-relative+1": "อังคารหน้า", + "field-week-relative+-1": "สัปดาห์ที่แล้ว", + "field-year-relative+0": "ปีนี้", + "field-year-relative+1": "ปีหน้า", + "field-sat-relative+-1": "เสาร์ที่แล้ว", + "field-year-relative+-1": "ปีที่แล้ว", "field-year": "ปี", - "field-week-relative+0": "สัปดาห์นี้", - "months-standAlone-abbr": [ + "field-fri-relative+0": "ศุกร์นี้", + "field-fri-relative+1": "ศุกร์หน้า", + "months-standAlone-wide": [ "เมสเคอเรม", "เตเกมท", "เฮดาร์", @@ -69,19 +74,10 @@ define( "เนแฮซ", "พากูเมน" ], + "field-week": "สัปดาห์", + "field-week-relative+0": "สัปดาห์นี้", "field-week-relative+1": "สัปดาห์หน้า", - "field-minute": "นาที", - "field-week-relative+-1": "สัปดาห์ที่แล้ว", - "field-day-relative+0": "วันนี้", - "field-hour": "ชั่วโมง", - "field-day-relative+1": "พรุ่งนี้", - "field-day-relative+2": "มะรืนนี้", - "field-day": "วัน", - "field-month-relative+0": "เดือนนี้", - "field-month-relative+1": "เดือนหน้า", - "field-dayperiod": "ช่วงวัน", - "field-month": "เดือน", - "months-format-wide": [ + "months-format-abbr": [ "เมสเคอเรม", "เตเกมท", "เฮดาร์", @@ -96,10 +92,34 @@ define( "เนแฮซ", "พากูเมน" ], - "field-era": "สมัย", - "field-year-relative+0": "ปีนี้", - "field-year-relative+1": "ปีหน้า", - "months-format-abbr": [ + "field-month-relative+0": "เดือนนี้", + "field-month": "เดือน", + "field-month-relative+1": "เดือนหน้า", + "field-fri-relative+-1": "ศุกร์ที่แล้ว", + "field-second": "วินาที", + "field-tue-relative+-1": "อังคารที่แล้ว", + "field-day": "วัน", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "จันทร์นี้", + "field-mon-relative+1": "จันทร์หน้า", + "field-thu-relative+0": "พฤหัสนี้", + "field-second-relative+0": "ขณะนี้", + "field-thu-relative+1": "พฤหัสหน้า", + "months-format-wide": [ "เมสเคอเรม", "เตเกมท", "เฮดาร์", @@ -114,8 +134,10 @@ define( "เนแฮซ", "พากูเมน" ], - "field-weekday": "วันในสัปดาห์", - "field-zone": "เขต" + "field-wed-relative+0": "พุธนี้", + "field-wed-relative+1": "พุธหน้า", + "field-month-relative+-1": "เดือนที่แล้ว", + "field-thu-relative+-1": "พฤหัสที่แล้ว" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/th/generic.js b/cldr/nls/th/generic.js index d129291bfe..e24a5a5651 100644 --- a/cldr/nls/th/generic.js +++ b/cldr/nls/th/generic.js @@ -1,68 +1,90 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E d MMM G y", - "field-dayperiod": "ช่วงวัน", - "field-minute": "นาที", - "dateFormatItem-MMMEd": "E d MMM", - "dateTimeFormat-full": "{1}, {0}", - "field-day-relative+-1": "เมื่อวาน", - "dateFormatItem-hms": "h:mm:ss a", - "field-day-relative+-2": "เมื่อวานซืน", + "field-second-relative+0": "ขณะนี้", "field-weekday": "วันในสัปดาห์", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1}, {0}", - "dateFormatItem-Gy": "G y", - "dateTimeFormat-medium": "{1}, {0}", + "field-wed-relative+0": "พุธนี้", + "field-wed-relative+1": "พุธหน้า", + "dateFormatItem-GyMMMEd": "E d MMM G y", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "อังคารที่แล้ว", + "dateFormat-long": "d MMMM G y", + "field-fri-relative+-1": "ศุกร์ที่แล้ว", + "field-wed-relative+-1": "พุธที่แล้ว", + "dateFormatItem-yyyyQQQ": "QQQ G y", + "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "EEEEที่ d MMMM G y", + "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", + "field-thu-relative+-1": "พฤหัสที่แล้ว", + "dateFormatItem-Md": "d/M", "field-era": "สมัย", + "field-year": "ปี", "field-hour": "ชั่วโมง", - "dateFormatItem-y": "G y", - "dateFormatItem-yyyy": "G y", - "dateFormatItem-Ed": "E d", + "field-sat-relative+0": "เสาร์นี้", + "field-sat-relative+1": "เสาร์หน้า", "field-day-relative+0": "วันนี้", + "field-thu-relative+0": "พฤหัสนี้", "field-day-relative+1": "พรุ่งนี้", - "field-day-relative+2": "มะรืนนี้", "dateFormatItem-GyMMMd": "d MMM G y", - "dateFormat-long": "d MMMM G y", - "field-zone": "เขต", + "field-day-relative+2": "มะรืนนี้", + "field-thu-relative+1": "พฤหัสหน้า", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "G y", + "dateFormatItem-yyyyMMMEd": "E d MMM G y", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM G y", + "dateFormatItem-yyyyMMMd": "d MMM G y", + "field-sun-relative+0": "อาทิตย์นี้", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "สัปดาห์ที่แล้ว", - "dateFormat-medium": "d MMM G y", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "ปีนี้", - "field-year-relative+1": "ปีหน้า", - "field-year-relative+-1": "ปีที่แล้ว", + "field-sun-relative+1": "อาทิตย์หน้า", + "field-minute": "นาที", + "field-dayperiod": "ช่วงวัน", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ G y", - "field-year": "ปี", - "dateTimeFormat-long": "{1}, {0}", - "field-week": "สัปดาห์", - "dateFormatItem-yyyyMd": "d/M/y G", - "dateFormatItem-yyyyMMMd": "d MMM G y", - "dateFormatItem-yyyyMEd": "E d/M/y G", + "field-day-relative+-1": "เมื่อวาน", + "dateFormatItem-h": "h a", + "dateTimeFormat-long": "{1} {0}", + "field-day-relative+-2": "เมื่อวานซืน", "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "สัปดาห์นี้", - "field-week-relative+1": "สัปดาห์หน้า", - "field-month-relative+0": "เดือนนี้", - "dateFormatItem-H": "HH", - "field-month": "เดือน", - "field-month-relative+1": "เดือนหน้า", - "dateFormatItem-M": "L", - "field-second": "วินาที", - "dateFormatItem-GyMMMEd": "E d MMM G y", - "dateFormatItem-GyMMM": "MMM G y", + "dateFormatItem-MEd": "E d/M", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "ศุกร์นี้", + "field-fri-relative+1": "ศุกร์หน้า", "field-day": "วัน", - "dateFormatItem-MEd": "E, d/M", - "dateFormatItem-yyyyQQQ": "QQQ G y", + "field-zone": "เขตเวลา", + "dateFormatItem-y": "G y", + "field-year-relative+-1": "ปีที่แล้ว", + "field-month-relative+-1": "เดือนที่แล้ว", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "d/M/y GGGGG", + "field-month": "เดือน", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "อังคารนี้", + "field-tue-relative+1": "อังคารหน้า", + "field-mon-relative+0": "จันทร์นี้", + "field-mon-relative+1": "จันทร์หน้า", "dateFormat-short": "d/M/y G", + "field-second": "วินาที", + "field-sat-relative+-1": "เสาร์ที่แล้ว", + "field-sun-relative+-1": "อาทิตย์ที่แล้ว", + "field-month-relative+0": "เดือนนี้", + "field-month-relative+1": "เดือนหน้า", + "dateFormatItem-Ed": "E d", + "field-week": "สัปดาห์", + "dateFormat-medium": "d MMM G y", + "field-year-relative+0": "ปีนี้", + "field-week-relative+-1": "สัปดาห์ที่แล้ว", "dateFormatItem-yyyyM": "M/y G", - "dateFormat-full": "EEEEที่ d MMMM G y", - "dateFormatItem-Md": "d/M", - "dateFormatItem-yyyyMMM": "MMM G y", - "dateFormatItem-d": "d", - "field-month-relative+-1": "เดือนที่แล้ว", - "dateFormatItem-h": "h a" + "field-year-relative+1": "ปีหน้า", + "dateFormatItem-yyyyQQQQ": "QQQQ G y", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM G y", + "field-mon-relative+-1": "จันทร์ที่แล้ว", + "dateFormatItem-yyyy": "G y", + "field-week-relative+0": "สัปดาห์นี้", + "field-week-relative+1": "สัปดาห์หน้า" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/th/gregorian.js b/cldr/nls/th/gregorian.js index 7f8d451bb0..fb0c6c4544 100644 --- a/cldr/nls/th/gregorian.js +++ b/cldr/nls/th/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E h:mm a", "days-standAlone-short": [ "อา.", "จ.", @@ -16,7 +17,7 @@ define( "มี.ค.", "เม.ย.", "พ.ค.", - "มิ.ย", + "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", @@ -24,6 +25,7 @@ define( "พ.ย.", "ธ.ค." ], + "field-second-relative+0": "ขณะนี้", "quarters-standAlone-narrow": [ "1", "2", @@ -33,12 +35,17 @@ define( "field-weekday": "วันในสัปดาห์", "dateFormatItem-yQQQ": "QQQ y", "dateFormatItem-yMEd": "E d/M/y", + "field-wed-relative+0": "พุธนี้", + "field-wed-relative+1": "พุธหน้า", "dateFormatItem-GyMMMEd": "E d MMM G y", "dateFormatItem-MMMEd": "E d MMM", "eraNarrow": [ "ก่อน ค.ศ.", - "ค.ศ." + "ก.ส.ศ.", + "ค.ศ.", + "ส.ศ." ], + "field-tue-relative+-1": "อังคารที่แล้ว", "days-format-short": [ "อา.", "จ.", @@ -49,6 +56,8 @@ define( "ส." ], "dateFormat-long": "d MMMM y", + "field-fri-relative+-1": "ศุกร์ที่แล้ว", + "field-wed-relative+-1": "พุธที่แล้ว", "months-format-wide": [ "มกราคม", "กุมภาพันธ์", @@ -63,13 +72,14 @@ define( "พฤศจิกายน", "ธันวาคม" ], - "dateTimeFormat-medium": "{1}, {0}", + "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "หลังเที่ยง", "dateFormat-full": "EEEEที่ d MMMM G y", + "field-thu-relative+-1": "พฤหัสที่แล้ว", "dateFormatItem-Md": "d/M", "dateFormatItem-yMd": "d/M/y", - "dateFormatItem-yM": "M/y", "field-era": "สมัย", + "dateFormatItem-yM": "M/y", "months-standAlone-wide": [ "มกราคม", "กุมภาพันธ์", @@ -93,8 +103,8 @@ define( ], "dateFormatItem-yQQQQ": "QQQQ y", "timeFormat-long": "H นาฬิกา mm นาที ss วินาที z", - "dateFormatItem-yMMM": "MMM y", "field-year": "ปี", + "dateFormatItem-yMMM": "MMM y", "field-hour": "ชั่วโมง", "months-format-abbr": [ "ม.ค.", @@ -110,9 +120,13 @@ define( "พ.ย.", "ธ.ค." ], + "field-sat-relative+0": "เสาร์นี้", + "field-sat-relative+1": "เสาร์หน้า", "timeFormat-full": "H นาฬิกา mm นาที ss วินาที zzzz", "field-day-relative+0": "วันนี้", + "field-thu-relative+0": "พฤหัสนี้", "field-day-relative+1": "พรุ่งนี้", + "field-thu-relative+1": "พฤหัสหน้า", "dateFormatItem-GyMMMd": "d MMM G y", "field-day-relative+2": "มะรืนนี้", "dateFormatItem-H": "HH", @@ -155,7 +169,9 @@ define( ], "dateFormatItem-MMMMd": "d MMMM", "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "อาทิตย์นี้", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "อาทิตย์หน้า", "quarters-standAlone-abbr": [ "ไตรมาส 1", "ไตรมาส 2", @@ -164,7 +180,9 @@ define( ], "eraAbbr": [ "ปีก่อน ค.ศ.", - "ค.ศ." + "ก.ส.ศ.", + "ค.ศ.", + "ส.ศ." ], "field-minute": "นาที", "field-dayperiod": "ช่วงวัน", @@ -187,13 +205,14 @@ define( ], "field-day-relative+-1": "เมื่อวาน", "dateFormatItem-h": "h a", - "dateTimeFormat-long": "{1}, {0}", - "dayPeriods-format-narrow-am": "ก่อนเที่ยง", + "dateTimeFormat-long": "{1} {0}", "field-day-relative+-2": "เมื่อวานซืน", "dateFormatItem-MMMd": "d MMM", - "dateFormatItem-MEd": "E, d/M", - "dateTimeFormat-full": "{1}, {0}", + "dateFormatItem-MEd": "E d/M", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "ศุกร์นี้", "dateFormatItem-yMMMM": "MMMM y", + "field-fri-relative+1": "ศุกร์หน้า", "field-day": "วัน", "days-format-wide": [ "วันอาทิตย์", @@ -204,7 +223,7 @@ define( "วันศุกร์", "วันเสาร์" ], - "field-zone": "เขต", + "field-zone": "เขตเวลา", "dateFormatItem-y": "y", "months-standAlone-narrow": [ "ม.ค.", @@ -235,47 +254,59 @@ define( "dateFormatItem-yMMMd": "d MMM y", "eraNames": [ "ปีก่อนคริสต์ศักราช", - "คริสต์ศักราช" + "ก่อนสามัญศักราช", + "คริสต์ศักราช", + "สามัญศักราช" ], "days-format-narrow": [ - "อา.", - "จ.", - "อ.", - "พ.", - "พฤ.", - "ศ.", - "ส." + "อา", + "จ", + "อ", + "พ", + "พฤ", + "ศ", + "ส" ], "days-standAlone-narrow": [ - "อา.", - "จ.", - "อ.", - "พ.", - "พฤ.", - "ศ.", - "ส." + "อา", + "จ", + "อ", + "พ", + "พฤ", + "ศ", + "ส" ], "dateFormatItem-MMM": "LLL", "field-month": "เดือน", + "field-tue-relative+0": "อังคารนี้", + "field-tue-relative+1": "อังคารหน้า", "dayPeriods-format-wide-am": "ก่อนเที่ยง", "dateFormatItem-MMMMEd": "E d MMMM", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "จันทร์นี้", + "field-mon-relative+1": "จันทร์หน้า", "dateFormat-short": "d/M/yy", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E h:mm:ss a", "field-second": "วินาที", + "field-sat-relative+-1": "เสาร์ที่แล้ว", "dateFormatItem-yMMMEd": "E d MMM y", + "field-sun-relative+-1": "อาทิตย์ที่แล้ว", "field-month-relative+0": "เดือนนี้", "field-month-relative+1": "เดือนหน้า", "dateFormatItem-Ed": "E d", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "สัปดาห์", "dateFormat-medium": "d MMM y", "field-year-relative+0": "ปีนี้", "field-week-relative+-1": "สัปดาห์ที่แล้ว", "field-year-relative+1": "ปีหน้า", "dateFormatItem-mmss": "mm:ss", - "dayPeriods-format-narrow-pm": "หลังเที่ยง", - "dateTimeFormat-short": "{1}, {0}", + "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-GyMMM": "MMM G y", + "field-mon-relative+-1": "จันทร์ที่แล้ว", "field-week-relative+0": "สัปดาห์นี้", "field-week-relative+1": "สัปดาห์หน้า" } diff --git a/cldr/nls/th/hebrew.js b/cldr/nls/th/hebrew.js index 67006d93e7..f542a98082 100644 --- a/cldr/nls/th/hebrew.js +++ b/cldr/nls/th/hebrew.js @@ -10,12 +10,16 @@ define( "ศ.", "ส." ], + "field-second-relative+0": "ขณะนี้", "field-weekday": "วันในสัปดาห์", + "field-wed-relative+0": "พุธนี้", + "field-wed-relative+1": "พุธหน้า", "dateFormatItem-GyMMMEd": "E d MMM G y", "dateFormatItem-MMMEd": "E d MMM", "eraNarrow": [ "ย.ศ." ], + "field-tue-relative+-1": "อังคารที่แล้ว", "days-format-short": [ "อา.", "จ.", @@ -26,6 +30,8 @@ define( "ส." ], "dateFormat-long": "d MMMM G y", + "field-fri-relative+-1": "ศุกร์ที่แล้ว", + "field-wed-relative+-1": "พุธที่แล้ว", "months-format-wide": [ "ทิชรี", "เฮวาน", @@ -42,10 +48,10 @@ define( "เอลอุล" ], "dateFormatItem-yyyyQQQ": "QQQ G y", - "dateTimeFormat-medium": "{1}, {0}", "dayPeriods-format-wide-pm": "หลังเที่ยง", "dateFormat-full": "EEEEที่ d MMMM G y", - "dateFormatItem-yyyyMEd": "E d/M/y G", + "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", + "field-thu-relative+-1": "พฤหัสที่แล้ว", "dateFormatItem-Md": "d/M", "field-era": "สมัย", "months-standAlone-wide": [ @@ -88,9 +94,13 @@ define( "อัฟ", "เอลอุล" ], + "field-sat-relative+0": "เสาร์นี้", + "field-sat-relative+1": "เสาร์หน้า", "timeFormat-full": "H นาฬิกา mm นาที ss วินาที zzzz", "field-day-relative+0": "วันนี้", + "field-thu-relative+0": "พฤหัสนี้", "field-day-relative+1": "พรุ่งนี้", + "field-thu-relative+1": "พฤหัสหน้า", "dateFormatItem-GyMMMd": "d MMM G y", "field-day-relative+2": "มะรืนนี้", "months-standAlone-abbr": [ @@ -133,6 +143,8 @@ define( "dateFormatItem-yyyyMMM": "MMM G y", "dateFormatItem-yyyyMMMd": "d MMM G y", "months-standAlone-wide-leap": "อาดาร์ II", + "field-sun-relative+0": "อาทิตย์นี้", + "field-sun-relative+1": "อาทิตย์หน้า", "quarters-standAlone-abbr": [ "ไตรมาส 1", "ไตรมาส 2", @@ -154,12 +166,11 @@ define( "ส." ], "field-day-relative+-1": "เมื่อวาน", - "dateTimeFormat-long": "{1}, {0}", - "dayPeriods-format-narrow-am": "ก่อนเที่ยง", "field-day-relative+-2": "เมื่อวานซืน", "dateFormatItem-MMMd": "d MMM", - "dateFormatItem-MEd": "E, d/M", - "dateTimeFormat-full": "{1}, {0}", + "dateFormatItem-MEd": "E d/M", + "field-fri-relative+0": "ศุกร์นี้", + "field-fri-relative+1": "ศุกร์หน้า", "field-day": "วัน", "days-format-wide": [ "วันอาทิตย์", @@ -170,7 +181,7 @@ define( "วันศุกร์", "วันเสาร์" ], - "field-zone": "เขต", + "field-zone": "เขตเวลา", "months-standAlone-abbr-leap": "อาดาร์ II", "field-year-relative+-1": "ปีที่แล้ว", "field-month-relative+-1": "เดือนที่แล้ว", @@ -187,28 +198,34 @@ define( "ย.ศ." ], "days-format-narrow": [ - "อา.", - "จ.", - "อ.", - "พ.", - "พฤ.", - "ศ.", - "ส." - ], - "dateFormatItem-yyyyMd": "d/M/y G", + "อา", + "จ", + "อ", + "พ", + "พฤ", + "ศ", + "ส" + ], + "dateFormatItem-yyyyMd": "d/M/y GGGGG", "field-month": "เดือน", "days-standAlone-narrow": [ - "อา.", - "จ.", - "อ.", - "พ.", - "พฤ.", - "ศ.", - "ส." - ], + "อา", + "จ", + "อ", + "พ", + "พฤ", + "ศ", + "ส" + ], + "field-tue-relative+0": "อังคารนี้", + "field-tue-relative+1": "อังคารหน้า", "dayPeriods-format-wide-am": "ก่อนเที่ยง", + "field-mon-relative+0": "จันทร์นี้", + "field-mon-relative+1": "จันทร์หน้า", "dateFormat-short": "d/M/y G", "field-second": "วินาที", + "field-sat-relative+-1": "เสาร์ที่แล้ว", + "field-sun-relative+-1": "อาทิตย์ที่แล้ว", "field-month-relative+0": "เดือนนี้", "field-month-relative+1": "เดือนหน้า", "dateFormatItem-Ed": "E d", @@ -218,11 +235,10 @@ define( "field-week-relative+-1": "สัปดาห์ที่แล้ว", "dateFormatItem-yyyyM": "M/y G", "field-year-relative+1": "ปีหน้า", - "dayPeriods-format-narrow-pm": "หลังเที่ยง", "dateFormatItem-yyyyQQQQ": "QQQQ G y", - "dateTimeFormat-short": "{1}, {0}", "months-format-wide-leap": "อาดาร์ II", "dateFormatItem-GyMMM": "MMM G y", + "field-mon-relative+-1": "จันทร์ที่แล้ว", "field-week-relative+0": "สัปดาห์นี้", "field-week-relative+1": "สัปดาห์หน้า" } diff --git a/cldr/nls/th/indian.js b/cldr/nls/th/indian.js index e22510de79..306d8b4404 100644 --- a/cldr/nls/th/indian.js +++ b/cldr/nls/th/indian.js @@ -1,25 +1,14 @@ define( //begin v1.x content { - "field-second": "วินาที", - "field-year-relative+-1": "ปีที่แล้ว", - "field-week": "สัปดาห์", - "field-month-relative+-1": "เดือนที่แล้ว", + "field-sat-relative+0": "เสาร์นี้", + "field-sat-relative+1": "เสาร์หน้า", + "field-dayperiod": "ช่วงวัน", + "field-sun-relative+-1": "อาทิตย์ที่แล้ว", + "field-mon-relative+-1": "จันทร์ที่แล้ว", + "field-minute": "นาที", "field-day-relative+-1": "เมื่อวาน", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12" - ], + "field-weekday": "วันในสัปดาห์", "field-day-relative+-2": "เมื่อวานซืน", "months-standAlone-narrow": [ "1", @@ -35,7 +24,11 @@ define( "11", "12" ], - "months-standAlone-wide": [ + "field-era": "สมัย", + "field-hour": "ชั่วโมง", + "field-sun-relative+0": "อาทิตย์นี้", + "field-sun-relative+1": "อาทิตย์หน้า", + "months-standAlone-abbr": [ "จิตรา", "วิสาขา", "เชษฐา", @@ -49,9 +42,25 @@ define( "มาฆะ", "ผลคุณี" ], + "field-wed-relative+-1": "พุธที่แล้ว", + "field-day-relative+0": "วันนี้", + "field-day-relative+1": "พรุ่งนี้", + "eraAbbr": [ + "ม.ศ." + ], + "field-day-relative+2": "มะรืนนี้", + "field-tue-relative+0": "อังคารนี้", + "field-zone": "เขตเวลา", + "field-tue-relative+1": "อังคารหน้า", + "field-week-relative+-1": "สัปดาห์ที่แล้ว", + "field-year-relative+0": "ปีนี้", + "field-year-relative+1": "ปีหน้า", + "field-sat-relative+-1": "เสาร์ที่แล้ว", + "field-year-relative+-1": "ปีที่แล้ว", "field-year": "ปี", - "field-week-relative+0": "สัปดาห์นี้", - "months-standAlone-abbr": [ + "field-fri-relative+0": "ศุกร์นี้", + "field-fri-relative+1": "ศุกร์หน้า", + "months-standAlone-wide": [ "จิตรา", "วิสาขา", "เชษฐา", @@ -65,19 +74,10 @@ define( "มาฆะ", "ผลคุณี" ], + "field-week": "สัปดาห์", + "field-week-relative+0": "สัปดาห์นี้", "field-week-relative+1": "สัปดาห์หน้า", - "field-minute": "นาที", - "field-week-relative+-1": "สัปดาห์ที่แล้ว", - "field-day-relative+0": "วันนี้", - "field-hour": "ชั่วโมง", - "field-day-relative+1": "พรุ่งนี้", - "field-day-relative+2": "มะรืนนี้", - "field-day": "วัน", - "field-month-relative+0": "เดือนนี้", - "field-month-relative+1": "เดือนหน้า", - "field-dayperiod": "ช่วงวัน", - "field-month": "เดือน", - "months-format-wide": [ + "months-format-abbr": [ "จิตรา", "วิสาขา", "เชษฐา", @@ -91,10 +91,33 @@ define( "มาฆะ", "ผลคุณี" ], - "field-era": "สมัย", - "field-year-relative+0": "ปีนี้", - "field-year-relative+1": "ปีหน้า", - "months-format-abbr": [ + "field-month-relative+0": "เดือนนี้", + "field-month": "เดือน", + "field-month-relative+1": "เดือนหน้า", + "field-fri-relative+-1": "ศุกร์ที่แล้ว", + "field-second": "วินาที", + "field-tue-relative+-1": "อังคารที่แล้ว", + "field-day": "วัน", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-mon-relative+0": "จันทร์นี้", + "field-mon-relative+1": "จันทร์หน้า", + "field-thu-relative+0": "พฤหัสนี้", + "field-second-relative+0": "ขณะนี้", + "field-thu-relative+1": "พฤหัสหน้า", + "months-format-wide": [ "จิตรา", "วิสาขา", "เชษฐา", @@ -108,11 +131,10 @@ define( "มาฆะ", "ผลคุณี" ], - "eraAbbr": [ - "ม.ศ." - ], - "field-weekday": "วันในสัปดาห์", - "field-zone": "เขต" + "field-wed-relative+0": "พุธนี้", + "field-wed-relative+1": "พุธหน้า", + "field-month-relative+-1": "เดือนที่แล้ว", + "field-thu-relative+-1": "พฤหัสที่แล้ว" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/th/islamic.js b/cldr/nls/th/islamic.js index ac9d49c9f4..2231d3bc51 100644 --- a/cldr/nls/th/islamic.js +++ b/cldr/nls/th/islamic.js @@ -24,12 +24,16 @@ define( "11", "12" ], + "field-second-relative+0": "ขณะนี้", "field-weekday": "วันในสัปดาห์", + "field-wed-relative+0": "พุธนี้", + "field-wed-relative+1": "พุธหน้า", "dateFormatItem-GyMMMEd": "E d MMM G y", "dateFormatItem-MMMEd": "E d MMM", "eraNarrow": [ "ฮ.ศ." ], + "field-tue-relative+-1": "อังคารที่แล้ว", "days-format-short": [ "อา.", "จ.", @@ -40,6 +44,8 @@ define( "ส." ], "dateFormat-long": "d MMMM G y", + "field-fri-relative+-1": "ศุกร์ที่แล้ว", + "field-wed-relative+-1": "พุธที่แล้ว", "months-format-wide": [ "มุฮะร์รอม", "ซอฟาร์", @@ -55,10 +61,10 @@ define( "ดฮุอัลฮิจจะห์" ], "dateFormatItem-yyyyQQQ": "QQQ G y", - "dateTimeFormat-medium": "{1}, {0}", "dayPeriods-format-wide-pm": "หลังเที่ยง", "dateFormat-full": "EEEEที่ d MMMM G y", - "dateFormatItem-yyyyMEd": "E d/M/y G", + "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", + "field-thu-relative+-1": "พฤหัสที่แล้ว", "dateFormatItem-Md": "d/M", "field-era": "สมัย", "months-standAlone-wide": [ @@ -98,9 +104,13 @@ define( "ซุลกิอฺ.", "ซุลหิจ." ], + "field-sat-relative+0": "เสาร์นี้", + "field-sat-relative+1": "เสาร์หน้า", "timeFormat-full": "H นาฬิกา mm นาที ss วินาที zzzz", "field-day-relative+0": "วันนี้", + "field-thu-relative+0": "พฤหัสนี้", "field-day-relative+1": "พรุ่งนี้", + "field-thu-relative+1": "พฤหัสหน้า", "dateFormatItem-GyMMMd": "d MMM G y", "field-day-relative+2": "มะรืนนี้", "months-standAlone-abbr": [ @@ -130,6 +140,7 @@ define( "ไตรมาส 4" ], "dateFormatItem-yyyyMMMEd": "E d MMM G y", + "dateFormatItem-M": "L", "days-standAlone-wide": [ "วันอาทิตย์", "วันจันทร์", @@ -141,6 +152,8 @@ define( ], "dateFormatItem-yyyyMMM": "MMM G y", "dateFormatItem-yyyyMMMd": "d MMM G y", + "field-sun-relative+0": "อาทิตย์นี้", + "field-sun-relative+1": "อาทิตย์หน้า", "quarters-standAlone-abbr": [ "ไตรมาส 1", "ไตรมาส 2", @@ -161,13 +174,13 @@ define( "ศ.", "ส." ], + "dateFormatItem-d": "d", "field-day-relative+-1": "เมื่อวาน", - "dateTimeFormat-long": "{1}, {0}", - "dayPeriods-format-narrow-am": "ก่อนเที่ยง", "field-day-relative+-2": "เมื่อวานซืน", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "E, d/M", - "dateTimeFormat-full": "{1}, {0}", + "field-fri-relative+0": "ศุกร์นี้", + "field-fri-relative+1": "ศุกร์หน้า", "field-day": "วัน", "days-format-wide": [ "วันอาทิตย์", @@ -178,7 +191,8 @@ define( "วันศุกร์", "วันเสาร์" ], - "field-zone": "เขต", + "field-zone": "เขตเวลา", + "dateFormatItem-y": "G y", "months-standAlone-narrow": [ "1", "2", @@ -208,28 +222,35 @@ define( "ฮิจเราะห์ศักราช" ], "days-format-narrow": [ - "อา.", - "จ.", - "อ.", - "พ.", - "พฤ.", - "ศ.", - "ส." + "อา", + "จ", + "อ", + "พ", + "พฤ", + "ศ", + "ส" ], - "dateFormatItem-yyyyMd": "d/M/y G", + "dateFormatItem-yyyyMd": "d/M/y GGGGG", "field-month": "เดือน", + "dateFormatItem-MMM": "LLL", "days-standAlone-narrow": [ - "อา.", - "จ.", - "อ.", - "พ.", - "พฤ.", - "ศ.", - "ส." + "อา", + "จ", + "อ", + "พ", + "พฤ", + "ศ", + "ส" ], + "field-tue-relative+0": "อังคารนี้", + "field-tue-relative+1": "อังคารหน้า", "dayPeriods-format-wide-am": "ก่อนเที่ยง", + "field-mon-relative+0": "จันทร์นี้", + "field-mon-relative+1": "จันทร์หน้า", "dateFormat-short": "d/M/y G", "field-second": "วินาที", + "field-sat-relative+-1": "เสาร์ที่แล้ว", + "field-sun-relative+-1": "อาทิตย์ที่แล้ว", "field-month-relative+0": "เดือนนี้", "field-month-relative+1": "เดือนหน้า", "dateFormatItem-Ed": "E d", @@ -237,11 +258,10 @@ define( "dateFormat-medium": "d MMM G y", "field-year-relative+0": "ปีนี้", "field-week-relative+-1": "สัปดาห์ที่แล้ว", - "dateFormatItem-yyyyM": "M/y G", "field-year-relative+1": "ปีหน้า", - "dayPeriods-format-narrow-pm": "หลังเที่ยง", + "dateFormatItem-yyyyM": "M/y G", "dateFormatItem-yyyyQQQQ": "QQQQ G y", - "dateTimeFormat-short": "{1}, {0}", + "field-mon-relative+-1": "จันทร์ที่แล้ว", "dateFormatItem-GyMMM": "MMM G y", "field-week-relative+0": "สัปดาห์นี้", "field-week-relative+1": "สัปดาห์หน้า" diff --git a/cldr/nls/th/japanese.js b/cldr/nls/th/japanese.js index 024dfcac51..a3a442e0d1 100644 --- a/cldr/nls/th/japanese.js +++ b/cldr/nls/th/japanese.js @@ -1,26 +1,42 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E d MMM G y", - "field-dayperiod": "ช่วงวัน", - "field-minute": "นาที", - "dateFormatItem-MMMEd": "E d MMM", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "เมื่อวาน", - "dateFormatItem-hms": "h:mm:ss a", - "field-day-relative+-2": "เมื่อวานซืน", + "field-second-relative+0": "ขณะนี้", "field-weekday": "วันในสัปดาห์", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "G y", + "field-wed-relative+0": "พุธนี้", + "field-wed-relative+1": "พุธหน้า", + "dateFormatItem-GyMMMEd": "E d MMM G y", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "อังคารที่แล้ว", + "dateFormat-long": "d MMMM ปีG y", + "field-fri-relative+-1": "ศุกร์ที่แล้ว", + "field-wed-relative+-1": "พุธที่แล้ว", + "dateFormatItem-yyyyQQQ": "QQQ G y", "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "EEEEที่ d MMMM ปีGที่ y", + "dateFormatItem-yyyyMEd": "E d/M/GGGGG y", + "field-thu-relative+-1": "พฤหัสที่แล้ว", + "dateFormatItem-Md": "d/M", "field-era": "สมัย", + "field-year": "ปี", "field-hour": "ชั่วโมง", - "dateFormatItem-y": "G y", - "dateFormatItem-yyyy": "G y", - "dateFormatItem-Ed": "E d", + "field-sat-relative+0": "เสาร์นี้", + "field-sat-relative+1": "เสาร์หน้า", "field-day-relative+0": "วันนี้", "field-day-relative+1": "พรุ่งนี้", + "field-thu-relative+0": "พฤหัสนี้", + "dateFormatItem-GyMMMd": "d MMM G y", + "field-day-relative+2": "มะรืนนี้", + "field-thu-relative+1": "พฤหัสหน้า", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "G y", + "dateFormatItem-yyyyMMMEd": "E d MMM G y", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM G y", + "dateFormatItem-yyyyMMMd": "d MMM G y", + "field-sun-relative+0": "อาทิตย์นี้", + "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "อาทิตย์หน้า", "eraAbbr": [ "ทะอิกะ (645-650)", "ฮะกุชิ (650-671)", @@ -259,48 +275,54 @@ define( "โชวะ", "เฮเซ" ], - "field-day-relative+2": "มะรืนนี้", - "dateFormatItem-GyMMMd": "d MMM G y", - "dateFormat-long": "d MMMM ปีG y", - "field-zone": "เขต", - "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "สัปดาห์ที่แล้ว", - "dateFormat-medium": "d MMM G y", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "ปีนี้", - "field-year-relative+1": "ปีหน้า", - "field-year-relative+-1": "ปีที่แล้ว", + "field-minute": "นาที", + "field-dayperiod": "ช่วงวัน", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "QQQQ G y", - "field-year": "ปี", + "field-day-relative+-1": "เมื่อวาน", + "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", - "field-week": "สัปดาห์", - "dateFormatItem-yyyyMd": "d/M/GGGGG y", - "dateFormatItem-yyyyMMMd": "d MMM G y", - "dateFormatItem-yyyyMEd": "E d/M/GGGGG y", + "field-day-relative+-2": "เมื่อวานซืน", "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "สัปดาห์นี้", - "field-week-relative+1": "สัปดาห์หน้า", - "field-month-relative+0": "เดือนนี้", - "dateFormatItem-H": "HH", - "field-month": "เดือน", - "field-month-relative+1": "เดือนหน้า", - "dateFormatItem-M": "L", - "field-second": "วินาที", - "dateFormatItem-GyMMMEd": "E d MMM G y", - "dateFormatItem-GyMMM": "MMM G y", - "field-day": "วัน", "dateFormatItem-MEd": "E, d/M", - "dateFormatItem-yyyyQQQ": "QQQ G y", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "ศุกร์นี้", + "field-fri-relative+1": "ศุกร์หน้า", + "field-day": "วัน", + "field-zone": "เขตเวลา", + "dateFormatItem-y": "G y", + "field-year-relative+-1": "ปีที่แล้ว", + "field-month-relative+-1": "เดือนที่แล้ว", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "d/M/GGGGG y", + "field-month": "เดือน", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "อังคารนี้", + "field-tue-relative+1": "อังคารหน้า", + "field-mon-relative+0": "จันทร์นี้", + "field-mon-relative+1": "จันทร์หน้า", "dateFormat-short": "d/M/yy G", + "field-second": "วินาที", + "field-sat-relative+-1": "เสาร์ที่แล้ว", + "field-sun-relative+-1": "อาทิตย์ที่แล้ว", + "field-month-relative+0": "เดือนนี้", + "field-month-relative+1": "เดือนหน้า", + "dateFormatItem-Ed": "E d", + "field-week": "สัปดาห์", + "dateFormat-medium": "d MMM G y", + "field-year-relative+0": "ปีนี้", + "field-week-relative+-1": "สัปดาห์ที่แล้ว", "dateFormatItem-yyyyM": "M/GGGGG y", - "dateFormat-full": "EEEEที่ d MMMM ปีGที่ y", - "dateFormatItem-Md": "d/M", - "dateFormatItem-yyyyMMM": "MMM G y", - "dateFormatItem-d": "d", - "field-month-relative+-1": "เดือนที่แล้ว", - "dateFormatItem-h": "h a" + "field-year-relative+1": "ปีหน้า", + "dateFormatItem-yyyyQQQQ": "QQQQ G y", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM G y", + "field-mon-relative+-1": "จันทร์ที่แล้ว", + "dateFormatItem-yyyy": "G y", + "field-week-relative+0": "สัปดาห์นี้", + "field-week-relative+1": "สัปดาห์หน้า" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/th/number.js b/cldr/nls/th/number.js index 9b35025bf5..3a639acf80 100644 --- a/cldr/nls/th/number.js +++ b/cldr/nls/th/number.js @@ -10,6 +10,7 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ".", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", diff --git a/cldr/nls/th/persian.js b/cldr/nls/th/persian.js index b34de39eee..1015989914 100644 --- a/cldr/nls/th/persian.js +++ b/cldr/nls/th/persian.js @@ -24,12 +24,16 @@ define( "11", "12" ], + "field-second-relative+0": "ขณะนี้", "field-weekday": "วันในสัปดาห์", + "field-wed-relative+0": "พุธนี้", + "field-wed-relative+1": "พุธหน้า", "dateFormatItem-GyMMMEd": "E d MMM G y", "dateFormatItem-MMMEd": "E d MMM", "eraNarrow": [ "ปีเปอร์เซีย" ], + "field-tue-relative+-1": "อังคารที่แล้ว", "days-format-short": [ "อา.", "จ.", @@ -40,6 +44,8 @@ define( "ส." ], "dateFormat-long": "d MMMM G y", + "field-fri-relative+-1": "ศุกร์ที่แล้ว", + "field-wed-relative+-1": "พุธที่แล้ว", "months-format-wide": [ "ฟาร์วาร์ดิน", "ออร์ดิเบเฮชต์", @@ -55,10 +61,10 @@ define( "เอสฟานด์" ], "dateFormatItem-yyyyQQQ": "QQQ G y", - "dateTimeFormat-medium": "{1}, {0}", "dayPeriods-format-wide-pm": "หลังเที่ยง", "dateFormat-full": "EEEEที่ d MMMM G y", - "dateFormatItem-yyyyMEd": "E d/M/y G", + "dateFormatItem-yyyyMEd": "E d/M/y GGGGG", + "field-thu-relative+-1": "พฤหัสที่แล้ว", "dateFormatItem-Md": "d/M", "field-era": "สมัย", "months-standAlone-wide": [ @@ -98,9 +104,13 @@ define( "บาฮ์มาน", "เอสฟานด์" ], + "field-sat-relative+0": "เสาร์นี้", + "field-sat-relative+1": "เสาร์หน้า", "timeFormat-full": "H นาฬิกา mm นาที ss วินาที zzzz", "field-day-relative+0": "วันนี้", + "field-thu-relative+0": "พฤหัสนี้", "field-day-relative+1": "พรุ่งนี้", + "field-thu-relative+1": "พฤหัสหน้า", "dateFormatItem-GyMMMd": "d MMM G y", "field-day-relative+2": "มะรืนนี้", "months-standAlone-abbr": [ @@ -141,6 +151,8 @@ define( ], "dateFormatItem-yyyyMMM": "MMM G y", "dateFormatItem-yyyyMMMd": "d MMM G y", + "field-sun-relative+0": "อาทิตย์นี้", + "field-sun-relative+1": "อาทิตย์หน้า", "quarters-standAlone-abbr": [ "ไตรมาส 1", "ไตรมาส 2", @@ -162,12 +174,11 @@ define( "ส." ], "field-day-relative+-1": "เมื่อวาน", - "dateTimeFormat-long": "{1}, {0}", - "dayPeriods-format-narrow-am": "ก่อนเที่ยง", "field-day-relative+-2": "เมื่อวานซืน", "dateFormatItem-MMMd": "d MMM", - "dateFormatItem-MEd": "E, d/M", - "dateTimeFormat-full": "{1}, {0}", + "dateFormatItem-MEd": "E d/M", + "field-fri-relative+0": "ศุกร์นี้", + "field-fri-relative+1": "ศุกร์หน้า", "field-day": "วัน", "days-format-wide": [ "วันอาทิตย์", @@ -178,7 +189,7 @@ define( "วันศุกร์", "วันเสาร์" ], - "field-zone": "เขต", + "field-zone": "เขตเวลา", "months-standAlone-narrow": [ "1", "2", @@ -208,28 +219,34 @@ define( "ปีเปอร์เซีย" ], "days-format-narrow": [ - "อา.", - "จ.", - "อ.", - "พ.", - "พฤ.", - "ศ.", - "ส." + "อา", + "จ", + "อ", + "พ", + "พฤ", + "ศ", + "ส" ], - "dateFormatItem-yyyyMd": "d/M/y G", + "dateFormatItem-yyyyMd": "d/M/y GGGGG", "field-month": "เดือน", "days-standAlone-narrow": [ - "อา.", - "จ.", - "อ.", - "พ.", - "พฤ.", - "ศ.", - "ส." + "อา", + "จ", + "อ", + "พ", + "พฤ", + "ศ", + "ส" ], + "field-tue-relative+0": "อังคารนี้", + "field-tue-relative+1": "อังคารหน้า", "dayPeriods-format-wide-am": "ก่อนเที่ยง", + "field-mon-relative+0": "จันทร์นี้", + "field-mon-relative+1": "จันทร์หน้า", "dateFormat-short": "d/M/y G", "field-second": "วินาที", + "field-sat-relative+-1": "เสาร์ที่แล้ว", + "field-sun-relative+-1": "อาทิตย์ที่แล้ว", "field-month-relative+0": "เดือนนี้", "field-month-relative+1": "เดือนหน้า", "dateFormatItem-Ed": "E d", @@ -239,10 +256,9 @@ define( "field-week-relative+-1": "สัปดาห์ที่แล้ว", "dateFormatItem-yyyyM": "M/y G", "field-year-relative+1": "ปีหน้า", - "dayPeriods-format-narrow-pm": "หลังเที่ยง", "dateFormatItem-yyyyQQQQ": "QQQQ G y", - "dateTimeFormat-short": "{1}, {0}", "dateFormatItem-GyMMM": "MMM G y", + "field-mon-relative+-1": "จันทร์ที่แล้ว", "field-week-relative+0": "สัปดาห์นี้", "field-week-relative+1": "สัปดาห์หน้า" } diff --git a/cldr/nls/th/roc.js b/cldr/nls/th/roc.js index 13895d7c57..a168938afd 100644 --- a/cldr/nls/th/roc.js +++ b/cldr/nls/th/roc.js @@ -1,67 +1,89 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "E d MMM G y", - "field-dayperiod": "ช่วงวัน", - "field-minute": "นาที", - "dateFormatItem-MMMEd": "E d MMM", - "field-day-relative+-1": "เมื่อวาน", - "dateFormatItem-hms": "h:mm:ss a", - "field-day-relative+-2": "เมื่อวานซืน", + "field-second-relative+0": "ขณะนี้", "field-weekday": "วันในสัปดาห์", - "dateFormatItem-MMM": "LLL", + "field-wed-relative+0": "พุธนี้", + "field-wed-relative+1": "พุธหน้า", + "dateFormatItem-GyMMMEd": "E d MMM G y", + "dateFormatItem-MMMEd": "E d MMM", + "field-tue-relative+-1": "อังคารที่แล้ว", + "dateFormat-long": "d MMMM ปีG y", + "field-fri-relative+-1": "ศุกร์ที่แล้ว", + "field-wed-relative+-1": "พุธที่แล้ว", + "dateFormatItem-yyyyQQQ": "QQQ G y", + "dateFormat-full": "EEEEที่ d MMMM ปีGที่ y", + "dateFormatItem-yyyyMEd": "E d/M/GGGGG y", + "field-thu-relative+-1": "พฤหัสที่แล้ว", + "dateFormatItem-Md": "d/M", "field-era": "สมัย", - "dateFormatItem-Gy": "ปีGที่ y", + "field-year": "ปี", "field-hour": "ชั่วโมง", - "dateFormatItem-y": "ปีGที่ y", - "dateFormatItem-yyyy": "ปีGที่ y", - "dateFormatItem-Ed": "E d", + "field-sat-relative+0": "เสาร์นี้", + "field-sat-relative+1": "เสาร์หน้า", "field-day-relative+0": "วันนี้", + "field-thu-relative+0": "พฤหัสนี้", "field-day-relative+1": "พรุ่งนี้", + "field-thu-relative+1": "พฤหัสหน้า", + "dateFormatItem-GyMMMd": "d MMM G y", + "field-day-relative+2": "มะรืนนี้", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "ปีGที่ y", + "dateFormatItem-yyyyMMMEd": "E d MMM G y", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "MMM G y", + "dateFormatItem-yyyyMMMd": "d MMM G y", + "field-sun-relative+0": "อาทิตย์นี้", + "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "อาทิตย์หน้า", "eraAbbr": [ "ปีก่อนไต้หวัน", "ไต้หวัน" ], - "field-day-relative+2": "มะรืนนี้", - "dateFormatItem-GyMMMd": "d MMM G y", - "dateFormat-long": "d MMMM ปีG y", - "field-zone": "เขต", - "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "สัปดาห์ที่แล้ว", - "dateFormat-medium": "d MMM G y", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "ปีนี้", - "field-year-relative+1": "ปีหน้า", - "field-year-relative+-1": "ปีที่แล้ว", + "field-minute": "นาที", + "field-dayperiod": "ช่วงวัน", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "field-year": "ปี", - "field-week": "สัปดาห์", - "dateFormatItem-yyyyMd": "d/M/GGGGG y", - "dateFormatItem-yyyyMMMd": "d MMM G y", - "dateFormatItem-yyyyMEd": "E d/M/GGGGG y", + "field-day-relative+-1": "เมื่อวาน", + "dateFormatItem-h": "h a", + "field-day-relative+-2": "เมื่อวานซืน", "dateFormatItem-MMMd": "d MMM", - "field-week-relative+0": "สัปดาห์นี้", - "field-week-relative+1": "สัปดาห์หน้า", - "field-month-relative+0": "เดือนนี้", - "dateFormatItem-H": "HH", - "field-month": "เดือน", - "field-month-relative+1": "เดือนหน้า", - "dateFormatItem-M": "L", - "field-second": "วินาที", - "dateFormatItem-GyMMMEd": "E d MMM G y", - "dateFormatItem-GyMMM": "MMM G y", - "field-day": "วัน", - "dateFormatItem-yyyyQQQ": "QQQ G y", "dateFormatItem-MEd": "E, d/M", + "field-fri-relative+0": "ศุกร์นี้", + "field-fri-relative+1": "ศุกร์หน้า", + "field-day": "วัน", + "field-zone": "เขตเวลา", + "dateFormatItem-y": "ปีGที่ y", + "field-year-relative+-1": "ปีที่แล้ว", + "field-month-relative+-1": "เดือนที่แล้ว", "dateFormatItem-hm": "h:mm a", + "dateFormatItem-yyyyMd": "d/M/GGGGG y", + "field-month": "เดือน", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "อังคารนี้", + "field-tue-relative+1": "อังคารหน้า", + "field-mon-relative+0": "จันทร์นี้", + "field-mon-relative+1": "จันทร์หน้า", "dateFormat-short": "d/M/yy", + "field-second": "วินาที", + "field-sat-relative+-1": "เสาร์ที่แล้ว", + "field-sun-relative+-1": "อาทิตย์ที่แล้ว", + "field-month-relative+0": "เดือนนี้", + "field-month-relative+1": "เดือนหน้า", + "dateFormatItem-Ed": "E d", + "field-week": "สัปดาห์", + "dateFormat-medium": "d MMM G y", + "field-year-relative+0": "ปีนี้", + "field-week-relative+-1": "สัปดาห์ที่แล้ว", "dateFormatItem-yyyyM": "M/GGGGG y", - "dateFormat-full": "EEEEที่ d MMMM ปีGที่ y", - "dateFormatItem-Md": "d/M", - "dateFormatItem-yyyyMMM": "MMM G y", - "dateFormatItem-d": "d", - "field-month-relative+-1": "เดือนที่แล้ว", - "dateFormatItem-h": "h a" + "field-year-relative+1": "ปีหน้า", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "MMM G y", + "field-mon-relative+-1": "จันทร์ที่แล้ว", + "dateFormatItem-yyyy": "ปีGที่ y", + "field-week-relative+0": "สัปดาห์นี้", + "field-week-relative+1": "สัปดาห์หน้า" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/tr/buddhist.js b/cldr/nls/tr/buddhist.js index 36c60330d4..e236fa1f15 100644 --- a/cldr/nls/tr/buddhist.js +++ b/cldr/nls/tr/buddhist.js @@ -1,24 +1,16 @@ define( //begin v1.x content { - "field-dayperiod": "ÖÖ/ÖS", - "dateFormatItem-yyyyMMMEd": "d MMM y G E", - "dayPeriods-format-wide-pm": "ÖS", - "field-minute": "Dakika", - "dateFormatItem-MMMEd": "d MMMM E", - "field-day-relative+-1": "Dün", - "field-weekday": "Haftanın Günü", - "field-day-relative+-2": "Evvelsi gün", - "days-standAlone-wide": [ - "Pazar", - "Pazartesi", - "Salı", - "Çarşamba", - "Perşembe", - "Cuma", - "Cumartesi" + "days-standAlone-short": [ + "Pa", + "Pt", + "Sa", + "Ça", + "Pe", + "Cu", + "Ct" ], - "months-standAlone-narrow": [ + "months-format-narrow": [ "O", "Ş", "M", @@ -32,71 +24,52 @@ define( "K", "A" ], - "field-era": "Miladi Dönem", - "dateFormatItem-Gy": "y G", - "field-hour": "Saat", - "dayPeriods-format-wide-am": "ÖÖ", - "quarters-standAlone-abbr": [ - "Ç1", - "Ç2", - "Ç3", - "Ç4" - ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ - "Oca", - "Şub", - "Mar", - "Nis", - "May", - "Haz", - "Tem", - "Ağu", - "Eyl", - "Eki", - "Kas", - "Ara" - ], - "dateFormatItem-Ed": "d E", - "field-day-relative+0": "Bugün", - "field-day-relative+1": "Yarın", - "days-standAlone-narrow": [ - "P", - "P", - "S", - "Ç", - "P", - "C", - "C" - ], - "eraAbbr": [ - "BE" - ], - "field-day-relative+2": "Öbür gün", - "dateFormatItem-GyMMMd": "dd MMM y G", - "dateFormat-long": "d MMMM y G", - "field-zone": "Saat Dilimi", - "field-week-relative+-1": "Geçen hafta", - "dateFormat-medium": "d MMM y G", - "field-year-relative+0": "Bu yıl", - "field-year-relative+1": "Gelecek yıl", - "quarters-standAlone-wide": [ - "1. çeyrek", - "2. çeyrek", - "3. çeyrek", - "4. çeyrek" - ], - "field-year-relative+-1": "Geçen yıl", - "field-year": "Yıl", - "dateFormatItem-yyyyQQQQ": "G y/QQQQ", + "field-second-relative+0": "şimdi", "quarters-standAlone-narrow": [ "1.", "2.", "3.", "4." ], - "field-week": "Hafta", + "field-weekday": "Haftanın Günü", + "field-wed-relative+0": "bu çarşamba", + "field-wed-relative+1": "gelecek çarşamba", + "dateFormatItem-GyMMMEd": "G d MMM y E", + "dateFormatItem-MMMEd": "d MMM E", + "field-tue-relative+-1": "geçen salı", + "days-format-short": [ + "Pa", + "Pt", + "Sa", + "Ça", + "Pe", + "Cu", + "Ct" + ], + "dateFormat-long": "G d MMMM y", + "field-fri-relative+-1": "geçen cuma", + "field-wed-relative+-1": "geçen çarşamba", + "months-format-wide": [ + "Ocak", + "Şubat", + "Mart", + "Nisan", + "Mayıs", + "Haziran", + "Temmuz", + "Ağustos", + "Eylül", + "Ekim", + "Kasım", + "Aralık" + ], + "dateFormatItem-yyyyQQQ": "G y/QQQ", + "dayPeriods-format-wide-pm": "ÖS", + "dateFormat-full": "G d MMMM y EEEE", + "dateFormatItem-yyyyMEd": "GGGGG dd.MM.y E", + "field-thu-relative+-1": "geçen perşembe", + "dateFormatItem-Md": "dd/MM", + "field-era": "Miladi Dönem", "months-standAlone-wide": [ "Ocak", "Şubat", @@ -111,18 +84,14 @@ define( "Kasım", "Aralık" ], - "dateFormatItem-yyyyMMMd": "dd MMM y G", - "dateFormatItem-yyyyMd": "dd.MM.y G", - "dateFormatItem-yyyyMEd": "dd.MM.y G E", - "field-week-relative+0": "Bu hafta", - "dateFormatItem-MMMd": "d MMMM", - "quarters-format-narrow": [ - "1.", - "2.", - "3.", - "4." + "quarters-format-wide": [ + "1. çeyrek", + "2. çeyrek", + "3. çeyrek", + "4. çeyrek" ], - "field-week-relative+1": "Gelecek hafta", + "field-year": "Yıl", + "field-hour": "Saat", "months-format-abbr": [ "Oca", "Şub", @@ -137,16 +106,66 @@ define( "Kas", "Ara" ], - "field-month-relative+0": "Bu ay", - "field-month": "Ay", - "field-month-relative+1": "Gelecek ay", + "field-sat-relative+0": "bu cumartesi", + "field-sat-relative+1": "gelecek cumartesi", + "field-day-relative+0": "bugün", + "field-thu-relative+0": "bu perşembe", + "field-day-relative+1": "yarın", + "field-thu-relative+1": "gelecek perşembe", + "dateFormatItem-GyMMMd": "G d MMM y", + "field-day-relative+2": "öbür gün", + "months-standAlone-abbr": [ + "Oca", + "Şub", + "Mar", + "Nis", + "May", + "Haz", + "Tem", + "Ağu", + "Eyl", + "Eki", + "Kas", + "Ara" + ], "quarters-format-abbr": [ "Ç1", "Ç2", "Ç3", "Ç4" ], - "days-format-abbr": [ + "quarters-standAlone-wide": [ + "1. çeyrek", + "2. çeyrek", + "3. çeyrek", + "4. çeyrek" + ], + "dateFormatItem-yyyyMMMEd": "G d MMM y E", + "days-standAlone-wide": [ + "Pazar", + "Pazartesi", + "Salı", + "Çarşamba", + "Perşembe", + "Cuma", + "Cumartesi" + ], + "dateFormatItem-yyyyMMM": "G MMM y", + "dateFormatItem-yyyyMMMd": "G dd MMM y", + "field-sun-relative+0": "bu pazar", + "field-sun-relative+1": "gelecek pazar", + "quarters-standAlone-abbr": [ + "Ç1", + "Ç2", + "Ç3", + "Ç4" + ], + "eraAbbr": [ + "BE" + ], + "field-minute": "Dakika", + "field-dayperiod": "ÖÖ/ÖS", + "days-standAlone-abbr": [ "Paz", "Pzt", "Sal", @@ -155,22 +174,30 @@ define( "Cum", "Cmt" ], - "days-format-narrow": [ - "P", - "P", - "S", - "Ç", - "P", - "C", - "C" + "quarters-format-narrow": [ + "1.", + "2.", + "3.", + "4." ], - "field-second": "Saniye", - "dateFormatItem-GyMMMEd": "d MMM y G E", - "dateFormatItem-GyMMM": "MMM y G", + "field-day-relative+-1": "dün", + "field-day-relative+-2": "evvelsi gün", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "dd/MM E", + "field-fri-relative+0": "bu cuma", + "field-fri-relative+1": "gelecek cuma", "field-day": "Gün", - "dateFormatItem-yyyyQQQ": "G y/QQQ", - "dateFormatItem-MEd": "dd.MM E", - "months-format-narrow": [ + "days-format-wide": [ + "Pazar", + "Pazartesi", + "Salı", + "Çarşamba", + "Perşembe", + "Cuma", + "Cumartesi" + ], + "field-zone": "Saat Dilimi", + "months-standAlone-narrow": [ "O", "Ş", "M", @@ -184,16 +211,9 @@ define( "K", "A" ], - "days-standAlone-short": [ - "Pa", - "Pt", - "Sa", - "Ça", - "Pe", - "Cu", - "Ct" - ], - "days-standAlone-abbr": [ + "field-year-relative+-1": "geçen yıl", + "field-month-relative+-1": "geçen ay", + "days-format-abbr": [ "Paz", "Pzt", "Sal", @@ -202,50 +222,49 @@ define( "Cum", "Cmt" ], - "dateFormat-short": "d.MM.y G", - "dateFormatItem-yyyyM": "MM.y G", - "dateFormat-full": "d MMMM y G EEEE", - "dateFormatItem-Md": "dd.MM", - "months-format-wide": [ - "Ocak", - "Şubat", - "Mart", - "Nisan", - "Mayıs", - "Haziran", - "Temmuz", - "Ağustos", - "Eylül", - "Ekim", - "Kasım", - "Aralık" - ], - "days-format-short": [ - "Pa", - "Pt", - "Sa", - "Ça", - "Pe", - "Cu", - "Ct" + "days-format-narrow": [ + "P", + "P", + "S", + "Ç", + "P", + "C", + "C" ], - "dateFormatItem-yyyyMMM": "MMM y G", - "field-month-relative+-1": "Geçen ay", - "quarters-format-wide": [ - "1. çeyrek", - "2. çeyrek", - "3. çeyrek", - "4. çeyrek" + "dateFormatItem-yyyyMd": "GGGGG dd.MM.y", + "field-month": "Ay", + "days-standAlone-narrow": [ + "P", + "P", + "S", + "Ç", + "P", + "C", + "C" ], - "days-format-wide": [ - "Pazar", - "Pazartesi", - "Salı", - "Çarşamba", - "Perşembe", - "Cuma", - "Cumartesi" - ] + "field-tue-relative+0": "bu salı", + "field-tue-relative+1": "gelecek salı", + "dayPeriods-format-wide-am": "ÖÖ", + "field-mon-relative+0": "bu pazartesi", + "field-mon-relative+1": "gelecek pazartesi", + "dateFormat-short": "GGGGG d.MM.y", + "field-second": "Saniye", + "field-sat-relative+-1": "geçen cumartesi", + "field-sun-relative+-1": "geçen pazar", + "field-month-relative+0": "bu ay", + "field-month-relative+1": "gelecek ay", + "dateFormatItem-Ed": "d E", + "field-week": "Hafta", + "dateFormat-medium": "G d MMM y", + "field-year-relative+0": "bu yıl", + "field-week-relative+-1": "geçen hafta", + "dateFormatItem-yyyyM": "GGGGG M/y", + "field-year-relative+1": "gelecek yıl", + "dateFormatItem-yyyyQQQQ": "G y/QQQQ", + "dateFormatItem-GyMMM": "G MMM y", + "field-mon-relative+-1": "geçen pazartesi", + "field-week-relative+0": "bu hafta", + "field-week-relative+1": "gelecek hafta" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/tr/coptic.js b/cldr/nls/tr/coptic.js index 6dd2e822f8..9290fde179 100644 --- a/cldr/nls/tr/coptic.js +++ b/cldr/nls/tr/coptic.js @@ -1,26 +1,50 @@ define( //begin v1.x content { - "field-second": "Saniye", - "field-year-relative+-1": "Geçen yıl", - "field-week": "Hafta", - "field-month-relative+-1": "Geçen ay", - "field-day-relative+-1": "Dün", - "field-day-relative+-2": "Evvelsi gün", - "field-year": "Yıl", - "field-week-relative+0": "Bu hafta", - "field-week-relative+1": "Gelecek hafta", + "field-sat-relative+0": "bu cumartesi", + "field-sat-relative+1": "gelecek cumartesi", + "field-dayperiod": "ÖÖ/ÖS", + "field-sun-relative+-1": "geçen pazar", + "field-mon-relative+-1": "geçen pazartesi", "field-minute": "Dakika", - "field-week-relative+-1": "Geçen hafta", - "field-day-relative+0": "Bugün", + "field-day-relative+-1": "dün", + "field-weekday": "Haftanın Günü", + "field-day-relative+-2": "evvelsi gün", + "field-era": "Miladi Dönem", "field-hour": "Saat", - "field-day-relative+1": "Yarın", - "field-day-relative+2": "Öbür gün", - "field-day": "Gün", - "field-month-relative+0": "Bu ay", - "field-month-relative+1": "Gelecek ay", - "field-dayperiod": "ÖÖ/ÖS", + "field-sun-relative+0": "bu pazar", + "field-sun-relative+1": "gelecek pazar", + "field-wed-relative+-1": "geçen çarşamba", + "field-day-relative+0": "bugün", + "field-day-relative+1": "yarın", + "field-day-relative+2": "öbür gün", + "field-tue-relative+0": "bu salı", + "field-zone": "Saat Dilimi", + "field-tue-relative+1": "gelecek salı", + "field-week-relative+-1": "geçen hafta", + "field-year-relative+0": "bu yıl", + "field-year-relative+1": "gelecek yıl", + "field-sat-relative+-1": "geçen cumartesi", + "field-year-relative+-1": "geçen yıl", + "field-year": "Yıl", + "field-fri-relative+0": "bu cuma", + "field-fri-relative+1": "gelecek cuma", + "field-week": "Hafta", + "field-week-relative+0": "bu hafta", + "field-week-relative+1": "gelecek hafta", + "field-month-relative+0": "bu ay", "field-month": "Ay", + "field-month-relative+1": "gelecek ay", + "field-fri-relative+-1": "geçen cuma", + "field-second": "Saniye", + "field-tue-relative+-1": "geçen salı", + "field-day": "Gün", + "field-mon-relative+0": "bu pazartesi", + "field-mon-relative+1": "gelecek pazartesi", + "field-thu-relative+0": "bu perşembe", + "field-second-relative+0": "şimdi", + "field-thu-relative+1": "gelecek perşembe", + "field-wed-relative+0": "bu çarşamba", "months-format-wide": [ "Tût", "Bâbe", @@ -36,11 +60,9 @@ define( "Mısrî", "Nesî" ], - "field-era": "Miladi Dönem", - "field-year-relative+0": "Bu yıl", - "field-year-relative+1": "Gelecek yıl", - "field-weekday": "Haftanın Günü", - "field-zone": "Saat Dilimi" + "field-wed-relative+1": "gelecek çarşamba", + "field-month-relative+-1": "geçen ay", + "field-thu-relative+-1": "geçen perşembe" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/tr/ethiopic.js b/cldr/nls/tr/ethiopic.js index 3984f2950d..084170bb62 100644 --- a/cldr/nls/tr/ethiopic.js +++ b/cldr/nls/tr/ethiopic.js @@ -1,26 +1,50 @@ define( //begin v1.x content { - "field-second": "Saniye", - "field-year-relative+-1": "Geçen yıl", - "field-week": "Hafta", - "field-month-relative+-1": "Geçen ay", - "field-day-relative+-1": "Dün", - "field-day-relative+-2": "Evvelsi gün", - "field-year": "Yıl", - "field-week-relative+0": "Bu hafta", - "field-week-relative+1": "Gelecek hafta", + "field-sat-relative+0": "bu cumartesi", + "field-sat-relative+1": "gelecek cumartesi", + "field-dayperiod": "ÖÖ/ÖS", + "field-sun-relative+-1": "geçen pazar", + "field-mon-relative+-1": "geçen pazartesi", "field-minute": "Dakika", - "field-week-relative+-1": "Geçen hafta", - "field-day-relative+0": "Bugün", + "field-day-relative+-1": "dün", + "field-weekday": "Haftanın Günü", + "field-day-relative+-2": "evvelsi gün", + "field-era": "Miladi Dönem", "field-hour": "Saat", - "field-day-relative+1": "Yarın", - "field-day-relative+2": "Öbür gün", - "field-day": "Gün", - "field-month-relative+0": "Bu ay", - "field-month-relative+1": "Gelecek ay", - "field-dayperiod": "ÖÖ/ÖS", + "field-sun-relative+0": "bu pazar", + "field-sun-relative+1": "gelecek pazar", + "field-wed-relative+-1": "geçen çarşamba", + "field-day-relative+0": "bugün", + "field-day-relative+1": "yarın", + "field-day-relative+2": "öbür gün", + "field-tue-relative+0": "bu salı", + "field-zone": "Saat Dilimi", + "field-tue-relative+1": "gelecek salı", + "field-week-relative+-1": "geçen hafta", + "field-year-relative+0": "bu yıl", + "field-year-relative+1": "gelecek yıl", + "field-sat-relative+-1": "geçen cumartesi", + "field-year-relative+-1": "geçen yıl", + "field-year": "Yıl", + "field-fri-relative+0": "bu cuma", + "field-fri-relative+1": "gelecek cuma", + "field-week": "Hafta", + "field-week-relative+0": "bu hafta", + "field-week-relative+1": "gelecek hafta", + "field-month-relative+0": "bu ay", "field-month": "Ay", + "field-month-relative+1": "gelecek ay", + "field-fri-relative+-1": "geçen cuma", + "field-second": "Saniye", + "field-tue-relative+-1": "geçen salı", + "field-day": "Gün", + "field-mon-relative+0": "bu pazartesi", + "field-mon-relative+1": "gelecek pazartesi", + "field-thu-relative+0": "bu perşembe", + "field-second-relative+0": "şimdi", + "field-thu-relative+1": "gelecek perşembe", + "field-wed-relative+0": "bu çarşamba", "months-format-wide": [ "Meskerem", "Tikimt", @@ -36,11 +60,9 @@ define( "Nehasa", "Pagumiene" ], - "field-era": "Miladi Dönem", - "field-year-relative+0": "Bu yıl", - "field-year-relative+1": "Gelecek yıl", - "field-weekday": "Haftanın Günü", - "field-zone": "Saat Dilimi" + "field-wed-relative+1": "gelecek çarşamba", + "field-month-relative+-1": "geçen ay", + "field-thu-relative+-1": "geçen perşembe" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/tr/generic.js b/cldr/nls/tr/generic.js index 09a1bddb2d..d653a89f30 100644 --- a/cldr/nls/tr/generic.js +++ b/cldr/nls/tr/generic.js @@ -1,73 +1,95 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "d MMM y G E", - "field-dayperiod": "ÖÖ/ÖS", - "field-minute": "Dakika", - "dateFormatItem-MMMEd": "d MMMM E", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "Dün", - "dateFormatItem-hms": "h:mm:ss a", - "field-day-relative+-2": "Evvelsi gün", + "field-second-relative+0": "şimdi", "field-weekday": "Haftanın Günü", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "y G", + "field-wed-relative+0": "bu çarşamba", + "dateFormatItem-GyMMMEd": "G d MMM y E", + "dateFormatItem-MMMEd": "d MMM E", + "field-wed-relative+1": "gelecek çarşamba", + "field-tue-relative+-1": "geçen salı", + "dateFormat-long": "G d MMMM y", + "field-fri-relative+-1": "geçen cuma", + "field-wed-relative+-1": "geçen çarşamba", + "dateFormatItem-yyyyQQQ": "G y/QQQ", "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "G d MMMM y EEEE", + "dateFormatItem-yyyyMEd": "GGGGG dd.MM.y E", + "field-thu-relative+-1": "geçen perşembe", + "dateFormatItem-Md": "dd/MM", "field-era": "Miladi Dönem", - "field-hour": "Saat", - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "dateFormatItem-Ed": "d E", - "field-day-relative+0": "Bugün", - "field-day-relative+1": "Yarın", - "field-day-relative+2": "Öbür gün", - "dateFormatItem-GyMMMd": "dd MMM y G", - "dateFormatItem-yyyyMM": "MM.y G", + "field-year": "Yıl", "dateFormatItem-yyyyMMMM": "MMMM y G", - "dateFormat-long": "d MMMM y G", - "field-zone": "Saat Dilimi", + "field-hour": "Saat", + "field-sat-relative+0": "bu cumartesi", + "field-sat-relative+1": "gelecek cumartesi", + "field-day-relative+0": "bugün", + "field-day-relative+1": "yarın", + "field-thu-relative+0": "bu perşembe", + "dateFormatItem-GyMMMd": "G d MMM y", + "field-day-relative+2": "öbür gün", + "field-thu-relative+1": "gelecek perşembe", + "dateFormatItem-H": "HH", + "dateFormatItem-Gy": "G y", + "dateFormatItem-yyyyMMMEd": "G d MMM y E", + "dateFormatItem-M": "L", + "dateFormatItem-yyyyMMM": "G MMM y", + "dateFormatItem-yyyyMMMd": "G dd MMM y", + "dateFormatItem-MMMMd": "dd MMMM", + "field-sun-relative+0": "bu pazar", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "Geçen hafta", - "dateFormat-medium": "d MMM y G", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "Bu yıl", - "field-year-relative+1": "Gelecek yıl", - "field-year-relative+-1": "Geçen yıl", + "field-sun-relative+1": "gelecek pazar", + "field-minute": "Dakika", + "field-dayperiod": "ÖÖ/ÖS", + "dateFormatItem-d": "d", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "G y/QQQQ", - "field-year": "Yıl", + "field-day-relative+-1": "dün", + "dateFormatItem-h": "h a", "dateTimeFormat-long": "{1} {0}", - "field-week": "Hafta", - "dateFormatItem-yyyyMd": "dd.MM.y G", - "dateFormatItem-yyyyMMMd": "dd MMM y G", - "dateFormatItem-MMMMEd": "dd MMMM E", - "dateFormatItem-yyyyMEd": "dd.MM.y G E", - "dateFormatItem-MMMd": "d MMMM", - "field-week-relative+0": "Bu hafta", - "field-week-relative+1": "Gelecek hafta", - "field-month-relative+0": "Bu ay", - "dateFormatItem-H": "HH", - "field-month": "Ay", - "field-month-relative+1": "Gelecek ay", - "dateFormatItem-MMMMd": "dd MMMM", - "dateFormatItem-mmss": "mm:ss", - "dateFormatItem-M": "L", - "field-second": "Saniye", - "dateFormatItem-GyMMMEd": "d MMM y G E", - "dateFormatItem-GyMMM": "MMM y G", + "field-day-relative+-2": "evvelsi gün", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "dd/MM E", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "bu cuma", + "field-fri-relative+1": "gelecek cuma", "field-day": "Gün", - "dateFormatItem-MEd": "dd.MM E", - "dateFormatItem-yyyyQQQ": "G y/QQQ", + "field-zone": "Saat Dilimi", + "dateFormatItem-yyyyMM": "MM.y G", + "dateFormatItem-y": "G y", + "field-year-relative+-1": "geçen yıl", + "field-month-relative+-1": "geçen ay", "dateFormatItem-hm": "h:mm a", - "dateFormat-short": "d.MM.y G", - "dateFormatItem-yyyyM": "MM.y G", - "dateFormat-full": "d MMMM y G EEEE", - "dateFormatItem-Md": "dd.MM", - "dateFormatItem-yyyyMMM": "MMM y G", - "dateFormatItem-d": "d", - "field-month-relative+-1": "Geçen ay", - "dateFormatItem-h": "h a" + "dateFormatItem-yyyyMd": "GGGGG dd.MM.y", + "field-month": "Ay", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "bu salı", + "field-tue-relative+1": "gelecek salı", + "dateFormatItem-MMMMEd": "dd MMMM E", + "field-mon-relative+0": "bu pazartesi", + "field-mon-relative+1": "gelecek pazartesi", + "dateFormat-short": "GGGGG d.MM.y", + "field-second": "Saniye", + "field-sat-relative+-1": "geçen cumartesi", + "field-sun-relative+-1": "geçen pazar", + "field-month-relative+0": "bu ay", + "field-month-relative+1": "gelecek ay", + "dateFormatItem-Ed": "d E", + "field-week": "Hafta", + "dateFormat-medium": "G d MMM y", + "field-year-relative+0": "bu yıl", + "field-week-relative+-1": "geçen hafta", + "dateFormatItem-yyyyM": "GGGGG M/y", + "field-year-relative+1": "gelecek yıl", + "dateFormatItem-mmss": "mm:ss", + "dateFormatItem-yyyyQQQQ": "G y/QQQQ", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "h:mm:ss a", + "dateFormatItem-GyMMM": "G MMM y", + "field-mon-relative+-1": "geçen pazartesi", + "dateFormatItem-yyyy": "G y", + "field-week-relative+0": "bu hafta", + "field-week-relative+1": "gelecek hafta" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/tr/gregorian.js b/cldr/nls/tr/gregorian.js index d683c52788..d3d4986358 100644 --- a/cldr/nls/tr/gregorian.js +++ b/cldr/nls/tr/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E a h:mm", "days-standAlone-short": [ "Pa", "Pt", @@ -24,6 +25,7 @@ define( "K", "A" ], + "field-second-relative+0": "şimdi", "quarters-standAlone-narrow": [ "1.", "2.", @@ -33,13 +35,18 @@ define( "field-weekday": "Haftanın Günü", "dateFormatItem-yQQQ": "y/QQQ", "dateFormatItem-yMEd": "dd.MM.y E", - "dateFormatItem-GyMMMEd": "d MMM y G E", + "field-wed-relative+0": "bu çarşamba", + "field-wed-relative+1": "gelecek çarşamba", + "dateFormatItem-GyMMMEd": "G d MMM y E", "dateFormatItem-MMMEd": "d MMMM E", "eraNarrow": [ "MÖ", - "MS" + "İÖ", + "MS", + "İS" ], "dateFormatItem-yMM": "MM.y", + "field-tue-relative+-1": "geçen salı", "days-format-short": [ "Pa", "Pt", @@ -50,6 +57,8 @@ define( "Ct" ], "dateFormat-long": "d MMMM y", + "field-fri-relative+-1": "geçen cuma", + "field-wed-relative+-1": "geçen çarşamba", "months-format-wide": [ "Ocak", "Şubat", @@ -67,6 +76,7 @@ define( "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "ÖS", "dateFormat-full": "d MMMM y EEEE", + "field-thu-relative+-1": "geçen perşembe", "dateFormatItem-Md": "dd/MM", "dateFormatItem-yMd": "dd.MM.y", "field-era": "Miladi Dönem", @@ -111,11 +121,15 @@ define( "Kas", "Ara" ], + "field-sat-relative+0": "bu cumartesi", + "field-sat-relative+1": "gelecek cumartesi", "timeFormat-full": "HH:mm:ss zzzz", - "field-day-relative+0": "Bugün", - "field-day-relative+1": "Yarın", - "dateFormatItem-GyMMMd": "dd MMM y G", - "field-day-relative+2": "Öbür gün", + "field-day-relative+0": "bugün", + "field-thu-relative+0": "bu perşembe", + "field-day-relative+1": "yarın", + "field-thu-relative+1": "gelecek perşembe", + "dateFormatItem-GyMMMd": "G dd MMM y", + "field-day-relative+2": "öbür gün", "dateFormatItem-H": "HH", "months-standAlone-abbr": [ "Oca", @@ -143,7 +157,7 @@ define( "3. çeyrek", "4. çeyrek" ], - "dateFormatItem-Gy": "y G", + "dateFormatItem-Gy": "G y", "dateFormatItem-M": "L", "days-standAlone-wide": [ "Pazar", @@ -156,7 +170,9 @@ define( ], "dateFormatItem-MMMMd": "dd MMMM", "timeFormat-medium": "HH:mm:ss", + "field-sun-relative+0": "bu pazar", "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "gelecek pazar", "quarters-standAlone-abbr": [ "Ç1", "Ç2", @@ -165,7 +181,9 @@ define( ], "eraAbbr": [ "MÖ", - "MS" + "İÖ", + "MS", + "İS" ], "field-minute": "Dakika", "field-dayperiod": "ÖÖ/ÖS", @@ -186,14 +204,16 @@ define( "3.", "4." ], - "field-day-relative+-1": "Dün", - "dateFormatItem-h": "h a", + "field-day-relative+-1": "dün", + "dateFormatItem-h": "a h", "dateTimeFormat-long": "{1} {0}", - "field-day-relative+-2": "Evvelsi gün", - "dateFormatItem-MMMd": "d MMMM", + "field-day-relative+-2": "evvelsi gün", + "dateFormatItem-MMMd": "d MMM", "dateFormatItem-MEd": "dd/MM E", "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "bu cuma", "dateFormatItem-yMMMM": "MMMM y", + "field-fri-relative+1": "gelecek cuma", "field-day": "Gün", "days-format-wide": [ "Pazar", @@ -220,9 +240,9 @@ define( "K", "A" ], - "field-year-relative+-1": "Geçen yıl", - "field-month-relative+-1": "Geçen ay", - "dateFormatItem-hm": "h:mm a", + "field-year-relative+-1": "geçen yıl", + "field-month-relative+-1": "geçen ay", + "dateFormatItem-hm": "a h:mm", "days-format-abbr": [ "Paz", "Pzt", @@ -235,7 +255,9 @@ define( "dateFormatItem-yMMMd": "dd MMM y", "eraNames": [ "Milattan Önce", - "Milattan Sonra" + "Milattan Sonra", + "MS", + "İS" ], "days-format-narrow": [ "P", @@ -257,26 +279,37 @@ define( ], "dateFormatItem-MMM": "LLL", "field-month": "Ay", + "field-tue-relative+0": "bu salı", + "field-tue-relative+1": "gelecek salı", "dayPeriods-format-wide-am": "ÖÖ", "dateFormatItem-MMMMEd": "dd MMMM E", + "dateFormatItem-EHm": "E HH:mm", + "field-mon-relative+0": "bu pazartesi", + "field-mon-relative+1": "gelecek pazartesi", "dateFormat-short": "d.MM.y", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E a h:mm:ss", "field-second": "Saniye", + "field-sat-relative+-1": "geçen cumartesi", "dateFormatItem-yMMMEd": "d MMM y E", - "field-month-relative+0": "Bu ay", - "field-month-relative+1": "Gelecek ay", + "field-sun-relative+-1": "geçen pazar", + "field-month-relative+0": "bu ay", + "field-month-relative+1": "gelecek ay", "dateFormatItem-Ed": "d E", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "Hafta", "dateFormat-medium": "d MMM y", - "field-year-relative+0": "Bu yıl", - "field-week-relative+-1": "Geçen hafta", - "field-year-relative+1": "Gelecek yıl", + "field-year-relative+0": "bu yıl", + "field-week-relative+-1": "geçen hafta", + "field-year-relative+1": "gelecek yıl", "dateFormatItem-mmss": "mm:ss", "dateTimeFormat-short": "{1} {0}", "dateFormatItem-Hms": "HH:mm:ss", - "dateFormatItem-hms": "h:mm:ss a", - "dateFormatItem-GyMMM": "MMM y G", - "field-week-relative+0": "Bu hafta", - "field-week-relative+1": "Gelecek hafta" + "dateFormatItem-hms": "a h:mm:ss", + "dateFormatItem-GyMMM": "G MMM y", + "field-mon-relative+-1": "geçen pazartesi", + "field-week-relative+0": "bu hafta", + "field-week-relative+1": "gelecek hafta" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/tr/hebrew.js b/cldr/nls/tr/hebrew.js index 83da9a8191..06e0f22fed 100644 --- a/cldr/nls/tr/hebrew.js +++ b/cldr/nls/tr/hebrew.js @@ -1,36 +1,41 @@ define( //begin v1.x content { - "field-dayperiod": "ÖÖ/ÖS", - "dateFormatItem-yyyyMMMEd": "d MMM y G E", - "dayPeriods-format-wide-pm": "ÖS", - "field-minute": "Dakika", - "dateFormatItem-MMMEd": "d MMMM E", - "field-day-relative+-1": "Dün", - "field-weekday": "Haftanın Günü", - "field-day-relative+-2": "Evvelsi gün", - "days-standAlone-wide": [ - "Pazar", - "Pazartesi", - "Salı", - "Çarşamba", - "Perşembe", - "Cuma", - "Cumartesi" + "days-standAlone-short": [ + "Pa", + "Pt", + "Sa", + "Ça", + "Pe", + "Cu", + "Ct" ], - "field-era": "Miladi Dönem", - "dateFormatItem-Gy": "y G", - "field-hour": "Saat", - "dayPeriods-format-wide-am": "ÖÖ", - "quarters-standAlone-abbr": [ - "Ç1", - "Ç2", - "Ç3", - "Ç4" + "field-second-relative+0": "şimdi", + "quarters-standAlone-narrow": [ + "1.", + "2.", + "3.", + "4." ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ + "field-weekday": "Haftanın Günü", + "field-wed-relative+0": "bu çarşamba", + "field-wed-relative+1": "gelecek çarşamba", + "dateFormatItem-GyMMMEd": "G d MMM y E", + "dateFormatItem-MMMEd": "d MMM E", + "field-tue-relative+-1": "geçen salı", + "days-format-short": [ + "Pa", + "Pt", + "Sa", + "Ça", + "Pe", + "Cu", + "Ct" + ], + "dateFormat-long": "G d MMMM y", + "field-fri-relative+-1": "geçen cuma", + "field-wed-relative+-1": "geçen çarşamba", + "months-format-wide": [ "Tişri", "Heşvan", "Kislev", @@ -45,42 +50,37 @@ define( "Av", "Elul" ], - "dateFormatItem-Ed": "d E", - "field-day-relative+0": "Bugün", - "field-day-relative+1": "Yarın", - "days-standAlone-narrow": [ - "P", - "P", - "S", - "Ç", - "P", - "C", - "C" + "dateFormatItem-yyyyQQQ": "G y/QQQ", + "dayPeriods-format-wide-pm": "ÖS", + "dateFormat-full": "G d MMMM y EEEE", + "dateFormatItem-yyyyMEd": "GGGGG dd.MM.y E", + "field-thu-relative+-1": "geçen perşembe", + "dateFormatItem-Md": "dd/MM", + "field-era": "Miladi Dönem", + "months-standAlone-wide": [ + "Tişri", + "Heşvan", + "Kislev", + "Tevet", + "Şevat", + "Veadar", + "Adar", + "Nisan", + "İyar", + "Sivan", + "Tamuz", + "Av", + "Elul" ], - "field-day-relative+2": "Öbür gün", - "dateFormatItem-GyMMMd": "dd MMM y G", - "dateFormat-long": "d MMMM y G", - "field-zone": "Saat Dilimi", - "field-week-relative+-1": "Geçen hafta", - "dateFormat-medium": "d MMM y G", - "field-year-relative+0": "Bu yıl", - "field-year-relative+1": "Gelecek yıl", - "quarters-standAlone-wide": [ + "quarters-format-wide": [ "1. çeyrek", "2. çeyrek", "3. çeyrek", "4. çeyrek" ], - "field-year-relative+-1": "Geçen yıl", "field-year": "Yıl", - "dateFormatItem-yyyyQQQQ": "G y/QQQQ", - "quarters-standAlone-narrow": [ - "1.", - "2.", - "3.", - "4." - ], - "months-standAlone-wide": [ + "field-hour": "Saat", + "months-format-abbr": [ "Tişri", "Heşvan", "Kislev", @@ -95,20 +95,15 @@ define( "Av", "Elul" ], - "field-week": "Hafta", - "dateFormatItem-yyyyMd": "dd.MM.y G", - "dateFormatItem-yyyyMMMd": "dd MMM y G", - "dateFormatItem-yyyyMEd": "dd.MM.y G E", - "dateFormatItem-MMMd": "d MMMM", - "field-week-relative+0": "Bu hafta", - "quarters-format-narrow": [ - "1.", - "2.", - "3.", - "4." - ], - "field-week-relative+1": "Gelecek hafta", - "months-format-abbr": [ + "field-sat-relative+0": "bu cumartesi", + "field-sat-relative+1": "gelecek cumartesi", + "field-day-relative+0": "bugün", + "field-thu-relative+0": "bu perşembe", + "field-day-relative+1": "yarın", + "field-thu-relative+1": "gelecek perşembe", + "dateFormatItem-GyMMMd": "G d MMM y", + "field-day-relative+2": "öbür gün", + "months-standAlone-abbr": [ "Tişri", "Heşvan", "Kislev", @@ -123,16 +118,41 @@ define( "Av", "Elul" ], - "field-month-relative+0": "Bu ay", - "field-month": "Ay", - "field-month-relative+1": "Gelecek ay", "quarters-format-abbr": [ "Ç1", "Ç2", "Ç3", "Ç4" ], - "days-format-abbr": [ + "quarters-standAlone-wide": [ + "1. çeyrek", + "2. çeyrek", + "3. çeyrek", + "4. çeyrek" + ], + "dateFormatItem-yyyyMMMEd": "G d MMM y E", + "days-standAlone-wide": [ + "Pazar", + "Pazartesi", + "Salı", + "Çarşamba", + "Perşembe", + "Cuma", + "Cumartesi" + ], + "dateFormatItem-yyyyMMM": "G MMM y", + "dateFormatItem-yyyyMMMd": "G dd MMM y", + "field-sun-relative+0": "bu pazar", + "field-sun-relative+1": "gelecek pazar", + "quarters-standAlone-abbr": [ + "Ç1", + "Ç2", + "Ç3", + "Ç4" + ], + "field-minute": "Dakika", + "field-dayperiod": "ÖÖ/ÖS", + "days-standAlone-abbr": [ "Paz", "Pzt", "Sal", @@ -141,31 +161,32 @@ define( "Cum", "Cmt" ], - "days-format-narrow": [ - "P", - "P", - "S", - "Ç", - "P", - "C", - "C" + "quarters-format-narrow": [ + "1.", + "2.", + "3.", + "4." ], - "field-second": "Saniye", - "dateFormatItem-GyMMMEd": "d MMM y G E", - "dateFormatItem-GyMMM": "MMM y G", + "field-day-relative+-1": "dün", + "field-day-relative+-2": "evvelsi gün", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "dd/MM E", + "field-fri-relative+0": "bu cuma", + "field-fri-relative+1": "gelecek cuma", "field-day": "Gün", - "dateFormatItem-yyyyQQQ": "G y/QQQ", - "dateFormatItem-MEd": "dd.MM E", - "days-standAlone-short": [ - "Pa", - "Pt", - "Sa", - "Ça", - "Pe", - "Cu", - "Ct" + "days-format-wide": [ + "Pazar", + "Pazartesi", + "Salı", + "Çarşamba", + "Perşembe", + "Cuma", + "Cumartesi" ], - "days-standAlone-abbr": [ + "field-zone": "Saat Dilimi", + "field-year-relative+-1": "geçen yıl", + "field-month-relative+-1": "geçen ay", + "days-format-abbr": [ "Paz", "Pzt", "Sal", @@ -174,52 +195,50 @@ define( "Cum", "Cmt" ], - "dateFormat-short": "d.MM.y G", - "dateFormatItem-yyyyM": "MM.y G", - "dateFormatItem-Md": "dd.MM", - "dateFormat-full": "d MMMM y G EEEE", - "months-format-wide": [ - "Tişri", - "Heşvan", - "Kislev", - "Tevet", - "Şevat", - "Veadar", - "Adar", - "Nisan", - "İyar", - "Sivan", - "Tamuz", - "Av", - "Elul" + "days-format-narrow": [ + "P", + "P", + "S", + "Ç", + "P", + "C", + "C" ], - "days-format-short": [ - "Pa", - "Pt", - "Sa", - "Ça", - "Pe", - "Cu", - "Ct" + "dateFormatItem-yyyyMd": "GGGGG dd.MM.y", + "field-month": "Ay", + "days-standAlone-narrow": [ + "P", + "P", + "S", + "Ç", + "P", + "C", + "C" ], - "dateFormatItem-yyyyMMM": "MMM y G", + "field-tue-relative+0": "bu salı", + "field-tue-relative+1": "gelecek salı", + "dayPeriods-format-wide-am": "ÖÖ", + "field-mon-relative+0": "bu pazartesi", + "field-mon-relative+1": "gelecek pazartesi", + "dateFormat-short": "GGGGG d.MM.y", + "field-second": "Saniye", + "field-sat-relative+-1": "geçen cumartesi", + "field-sun-relative+-1": "geçen pazar", + "field-month-relative+0": "bu ay", + "field-month-relative+1": "gelecek ay", + "dateFormatItem-Ed": "d E", + "field-week": "Hafta", + "dateFormat-medium": "G d MMM y", + "field-year-relative+0": "bu yıl", + "field-week-relative+-1": "geçen hafta", + "dateFormatItem-yyyyM": "GGGGG M/y", + "field-year-relative+1": "gelecek yıl", + "dateFormatItem-yyyyQQQQ": "G y/QQQQ", "months-format-wide-leap": "Adar II", - "field-month-relative+-1": "Geçen ay", - "quarters-format-wide": [ - "1. çeyrek", - "2. çeyrek", - "3. çeyrek", - "4. çeyrek" - ], - "days-format-wide": [ - "Pazar", - "Pazartesi", - "Salı", - "Çarşamba", - "Perşembe", - "Cuma", - "Cumartesi" - ] + "dateFormatItem-GyMMM": "G MMM y", + "field-mon-relative+-1": "geçen pazartesi", + "field-week-relative+0": "bu hafta", + "field-week-relative+1": "gelecek hafta" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/tr/islamic.js b/cldr/nls/tr/islamic.js index c40d07ba9a..f69051f94f 100644 --- a/cldr/nls/tr/islamic.js +++ b/cldr/nls/tr/islamic.js @@ -1,50 +1,44 @@ define( //begin v1.x content { - "field-dayperiod": "ÖÖ/ÖS", - "dateFormatItem-yyyyMMMEd": "d MMM y G E", - "dayPeriods-format-wide-pm": "ÖS", - "field-minute": "Dakika", - "dateFormatItem-MMMEd": "d MMMM E", - "field-day-relative+-1": "Dün", - "field-weekday": "Haftanın Günü", - "field-day-relative+-2": "Evvelsi gün", - "days-standAlone-wide": [ - "Pazar", - "Pazartesi", - "Salı", - "Çarşamba", - "Perşembe", - "Cuma", - "Cumartesi" + "days-standAlone-short": [ + "Pa", + "Pt", + "Sa", + "Ça", + "Pe", + "Cu", + "Ct" ], - "months-standAlone-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12" + "field-second-relative+0": "şimdi", + "quarters-standAlone-narrow": [ + "1.", + "2.", + "3.", + "4." ], - "field-era": "Miladi Dönem", - "dateFormatItem-Gy": "y G", - "field-hour": "Saat", - "dayPeriods-format-wide-am": "ÖÖ", - "quarters-standAlone-abbr": [ - "Ç1", - "Ç2", - "Ç3", - "Ç4" + "field-weekday": "Haftanın Günü", + "field-wed-relative+0": "bu çarşamba", + "field-wed-relative+1": "gelecek çarşamba", + "dateFormatItem-GyMMMEd": "G d MMM y E", + "dateFormatItem-MMMEd": "d MMM E", + "eraNarrow": [ + "Hicri" ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ + "field-tue-relative+-1": "geçen salı", + "days-format-short": [ + "Pa", + "Pt", + "Sa", + "Ça", + "Pe", + "Cu", + "Ct" + ], + "dateFormat-long": "G d MMMM y", + "field-fri-relative+-1": "geçen cuma", + "field-wed-relative+-1": "geçen çarşamba", + "months-format-wide": [ "Muharrem", "Safer", "Rebiülevvel", @@ -58,42 +52,36 @@ define( "Zilkade", "Zilhicce" ], - "dateFormatItem-Ed": "d E", - "field-day-relative+0": "Bugün", - "field-day-relative+1": "Yarın", - "days-standAlone-narrow": [ - "P", - "P", - "S", - "Ç", - "P", - "C", - "C" + "dateFormatItem-yyyyQQQ": "G y/QQQ", + "dayPeriods-format-wide-pm": "ÖS", + "dateFormat-full": "G d MMMM y EEEE", + "dateFormatItem-yyyyMEd": "GGGGG dd.MM.y E", + "field-thu-relative+-1": "geçen perşembe", + "dateFormatItem-Md": "dd/MM", + "field-era": "Miladi Dönem", + "months-standAlone-wide": [ + "Muharrem", + "Safer", + "Rebiülevvel", + "Rebiülahir", + "Cemaziyelevvel", + "Cemaziyelahir", + "Recep", + "Şaban", + "Ramazan", + "Şevval", + "Zilkade", + "Zilhicce" ], - "field-day-relative+2": "Öbür gün", - "dateFormatItem-GyMMMd": "dd MMM y G", - "dateFormat-long": "d MMMM y G", - "field-zone": "Saat Dilimi", - "field-week-relative+-1": "Geçen hafta", - "dateFormat-medium": "d MMM y G", - "field-year-relative+0": "Bu yıl", - "field-year-relative+1": "Gelecek yıl", - "quarters-standAlone-wide": [ + "quarters-format-wide": [ "1. çeyrek", "2. çeyrek", "3. çeyrek", "4. çeyrek" ], - "field-year-relative+-1": "Geçen yıl", "field-year": "Yıl", - "dateFormatItem-yyyyQQQQ": "G y/QQQQ", - "quarters-standAlone-narrow": [ - "1.", - "2.", - "3.", - "4." - ], - "months-standAlone-wide": [ + "field-hour": "Saat", + "months-format-abbr": [ "Muharrem", "Safer", "Rebiülevvel", @@ -107,20 +95,15 @@ define( "Zilkade", "Zilhicce" ], - "field-week": "Hafta", - "dateFormatItem-yyyyMMMd": "dd MMM y G", - "dateFormatItem-yyyyMd": "dd.MM.y G", - "dateFormatItem-yyyyMEd": "dd.MM.y G E", - "field-week-relative+0": "Bu hafta", - "dateFormatItem-MMMd": "d MMMM", - "quarters-format-narrow": [ - "1.", - "2.", - "3.", - "4." - ], - "field-week-relative+1": "Gelecek hafta", - "months-format-abbr": [ + "field-sat-relative+0": "bu cumartesi", + "field-sat-relative+1": "gelecek cumartesi", + "field-day-relative+0": "bugün", + "field-thu-relative+0": "bu perşembe", + "field-day-relative+1": "yarın", + "field-thu-relative+1": "gelecek perşembe", + "dateFormatItem-GyMMMd": "G d MMM y", + "field-day-relative+2": "öbür gün", + "months-standAlone-abbr": [ "Muharrem", "Safer", "Rebiülevvel", @@ -134,16 +117,44 @@ define( "Zilkade", "Zilhicce" ], - "field-month-relative+0": "Bu ay", - "field-month": "Ay", - "field-month-relative+1": "Gelecek ay", "quarters-format-abbr": [ "Ç1", "Ç2", "Ç3", "Ç4" ], - "days-format-abbr": [ + "quarters-standAlone-wide": [ + "1. çeyrek", + "2. çeyrek", + "3. çeyrek", + "4. çeyrek" + ], + "dateFormatItem-yyyyMMMEd": "G d MMM y E", + "days-standAlone-wide": [ + "Pazar", + "Pazartesi", + "Salı", + "Çarşamba", + "Perşembe", + "Cuma", + "Cumartesi" + ], + "dateFormatItem-yyyyMMM": "G MMM y", + "dateFormatItem-yyyyMMMd": "G dd MMM y", + "field-sun-relative+0": "bu pazar", + "field-sun-relative+1": "gelecek pazar", + "quarters-standAlone-abbr": [ + "Ç1", + "Ç2", + "Ç3", + "Ç4" + ], + "eraAbbr": [ + "Hicri" + ], + "field-minute": "Dakika", + "field-dayperiod": "ÖÖ/ÖS", + "days-standAlone-abbr": [ "Paz", "Pzt", "Sal", @@ -152,31 +163,46 @@ define( "Cum", "Cmt" ], - "days-format-narrow": [ - "P", - "P", - "S", - "Ç", - "P", - "C", - "C" + "quarters-format-narrow": [ + "1.", + "2.", + "3.", + "4." ], - "field-second": "Saniye", - "dateFormatItem-GyMMMEd": "d MMM y G E", - "dateFormatItem-GyMMM": "MMM y G", + "field-day-relative+-1": "dün", + "field-day-relative+-2": "evvelsi gün", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "dd/MM E", + "field-fri-relative+0": "bu cuma", + "field-fri-relative+1": "gelecek cuma", "field-day": "Gün", - "dateFormatItem-yyyyQQQ": "G y/QQQ", - "dateFormatItem-MEd": "dd.MM E", - "days-standAlone-short": [ - "Pa", - "Pt", - "Sa", - "Ça", - "Pe", - "Cu", - "Ct" + "days-format-wide": [ + "Pazar", + "Pazartesi", + "Salı", + "Çarşamba", + "Perşembe", + "Cuma", + "Cumartesi" ], - "days-standAlone-abbr": [ + "field-zone": "Saat Dilimi", + "months-standAlone-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-year-relative+-1": "geçen yıl", + "field-month-relative+-1": "geçen ay", + "days-format-abbr": [ "Paz", "Pzt", "Sal", @@ -185,50 +211,52 @@ define( "Cum", "Cmt" ], - "dateFormat-short": "d.MM.y G", - "dateFormatItem-yyyyM": "MM.y G", - "dateFormat-full": "d MMMM y G EEEE", - "dateFormatItem-Md": "dd.MM", - "months-format-wide": [ - "Muharrem", - "Safer", - "Rebiülevvel", - "Rebiülahir", - "Cemaziyelevvel", - "Cemaziyelahir", - "Recep", - "Şaban", - "Ramazan", - "Şevval", - "Zilkade", - "Zilhicce" + "eraNames": [ + "Hicri" ], - "days-format-short": [ - "Pa", - "Pt", - "Sa", - "Ça", - "Pe", - "Cu", - "Ct" + "days-format-narrow": [ + "P", + "P", + "S", + "Ç", + "P", + "C", + "C" ], - "dateFormatItem-yyyyMMM": "MMM y G", - "field-month-relative+-1": "Geçen ay", - "quarters-format-wide": [ - "1. çeyrek", - "2. çeyrek", - "3. çeyrek", - "4. çeyrek" + "dateFormatItem-yyyyMd": "GGGGG dd.MM.y", + "field-month": "Ay", + "days-standAlone-narrow": [ + "P", + "P", + "S", + "Ç", + "P", + "C", + "C" ], - "days-format-wide": [ - "Pazar", - "Pazartesi", - "Salı", - "Çarşamba", - "Perşembe", - "Cuma", - "Cumartesi" - ] + "field-tue-relative+0": "bu salı", + "field-tue-relative+1": "gelecek salı", + "dayPeriods-format-wide-am": "ÖÖ", + "field-mon-relative+0": "bu pazartesi", + "field-mon-relative+1": "gelecek pazartesi", + "dateFormat-short": "GGGGG d.MM.y", + "field-second": "Saniye", + "field-sat-relative+-1": "geçen cumartesi", + "field-sun-relative+-1": "geçen pazar", + "field-month-relative+0": "bu ay", + "field-month-relative+1": "gelecek ay", + "dateFormatItem-Ed": "d E", + "field-week": "Hafta", + "dateFormat-medium": "G d MMM y", + "field-year-relative+0": "bu yıl", + "field-week-relative+-1": "geçen hafta", + "dateFormatItem-yyyyM": "GGGGG M/y", + "field-year-relative+1": "gelecek yıl", + "dateFormatItem-yyyyQQQQ": "G y/QQQQ", + "dateFormatItem-GyMMM": "G MMM y", + "field-mon-relative+-1": "geçen pazartesi", + "field-week-relative+0": "bu hafta", + "field-week-relative+1": "gelecek hafta" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/tr/japanese.js b/cldr/nls/tr/japanese.js index afc71f4dbd..55cd3d3b78 100644 --- a/cldr/nls/tr/japanese.js +++ b/cldr/nls/tr/japanese.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "dateFormat-medium": "d MMM y G", - "field-second": "Saniye", - "field-year-relative+-1": "Geçen yıl", - "field-week": "Hafta", - "field-month-relative+-1": "Geçen ay", - "field-day-relative+-1": "Dün", - "field-day-relative+-2": "Evvelsi gün", - "field-year": "Yıl", - "field-week-relative+0": "Bu hafta", - "field-week-relative+1": "Gelecek hafta", + "field-sat-relative+0": "bu cumartesi", + "field-sat-relative+1": "gelecek cumartesi", + "field-dayperiod": "ÖÖ/ÖS", + "field-sun-relative+-1": "geçen pazar", + "field-mon-relative+-1": "geçen pazartesi", "field-minute": "Dakika", - "field-week-relative+-1": "Geçen hafta", - "field-day-relative+0": "Bugün", + "field-day-relative+-1": "dün", + "field-weekday": "Haftanın Günü", + "field-day-relative+-2": "evvelsi gün", + "field-era": "Miladi Dönem", "field-hour": "Saat", - "field-day-relative+1": "Yarın", + "field-sun-relative+0": "bu pazar", + "field-sun-relative+1": "gelecek pazar", + "field-wed-relative+-1": "geçen çarşamba", + "field-day-relative+0": "bugün", + "field-day-relative+1": "yarın", + "field-day-relative+2": "öbür gün", "dateFormat-long": "d MMMM y G", - "field-day-relative+2": "Öbür gün", - "field-day": "Gün", - "field-month-relative+0": "Bu ay", - "field-month-relative+1": "Gelecek ay", - "field-dayperiod": "ÖÖ/ÖS", + "field-tue-relative+0": "bu salı", + "field-zone": "Saat Dilimi", + "field-tue-relative+1": "gelecek salı", + "field-week-relative+-1": "geçen hafta", + "dateFormat-medium": "d MMM y G", + "field-year-relative+0": "bu yıl", + "field-year-relative+1": "gelecek yıl", + "field-sat-relative+-1": "geçen cumartesi", + "field-year-relative+-1": "geçen yıl", + "field-year": "Yıl", + "field-fri-relative+0": "bu cuma", + "field-fri-relative+1": "gelecek cuma", + "field-week": "Hafta", + "field-week-relative+0": "bu hafta", + "field-week-relative+1": "gelecek hafta", + "field-month-relative+0": "bu ay", "field-month": "Ay", + "field-month-relative+1": "gelecek ay", + "field-fri-relative+-1": "geçen cuma", + "field-second": "Saniye", + "field-tue-relative+-1": "geçen salı", + "field-day": "Gün", + "field-mon-relative+0": "bu pazartesi", + "field-mon-relative+1": "gelecek pazartesi", + "field-thu-relative+0": "bu perşembe", + "field-second-relative+0": "şimdi", "dateFormat-short": "d.MM.y G", - "field-era": "Miladi Dönem", - "field-year-relative+0": "Bu yıl", - "field-year-relative+1": "Gelecek yıl", + "field-thu-relative+1": "gelecek perşembe", "dateFormat-full": "d MMMM y G EEEE", - "field-weekday": "Haftanın Günü", - "field-zone": "Saat Dilimi" + "field-wed-relative+0": "bu çarşamba", + "field-wed-relative+1": "gelecek çarşamba", + "field-month-relative+-1": "geçen ay", + "field-thu-relative+-1": "geçen perşembe" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/tr/number.js b/cldr/nls/tr/number.js index 92d3755f44..d459255f3a 100644 --- a/cldr/nls/tr/number.js +++ b/cldr/nls/tr/number.js @@ -10,6 +10,7 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ",", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", diff --git a/cldr/nls/tr/persian.js b/cldr/nls/tr/persian.js index a2ee3d023b..efa769927b 100644 --- a/cldr/nls/tr/persian.js +++ b/cldr/nls/tr/persian.js @@ -1,24 +1,16 @@ define( //begin v1.x content { - "field-dayperiod": "ÖÖ/ÖS", - "dateFormatItem-yyyyMMMEd": "d MMM y G E", - "dayPeriods-format-wide-pm": "ÖS", - "field-minute": "Dakika", - "dateFormatItem-MMMEd": "d MMMM E", - "field-day-relative+-1": "Dün", - "field-weekday": "Haftanın Günü", - "field-day-relative+-2": "Evvelsi gün", - "days-standAlone-wide": [ - "Pazar", - "Pazartesi", - "Salı", - "Çarşamba", - "Perşembe", - "Cuma", - "Cumartesi" + "days-standAlone-short": [ + "Pa", + "Pt", + "Sa", + "Ça", + "Pe", + "Cu", + "Ct" ], - "months-standAlone-narrow": [ + "months-format-narrow": [ "O", "Ş", "M", @@ -32,19 +24,32 @@ define( "K", "A" ], - "field-era": "Miladi Dönem", - "dateFormatItem-Gy": "y G", - "field-hour": "Saat", - "dayPeriods-format-wide-am": "ÖÖ", - "quarters-standAlone-abbr": [ - "Ç1", - "Ç2", - "Ç3", - "Ç4" + "field-second-relative+0": "şimdi", + "quarters-standAlone-narrow": [ + "1.", + "2.", + "3.", + "4." ], - "dateFormatItem-y": "y G", - "dateFormatItem-yyyy": "y G", - "months-standAlone-abbr": [ + "field-weekday": "Haftanın Günü", + "field-wed-relative+0": "bu çarşamba", + "field-wed-relative+1": "gelecek çarşamba", + "dateFormatItem-GyMMMEd": "G d MMM y E", + "dateFormatItem-MMMEd": "d MMM E", + "field-tue-relative+-1": "geçen salı", + "days-format-short": [ + "Pa", + "Pt", + "Sa", + "Ça", + "Pe", + "Cu", + "Ct" + ], + "dateFormat-long": "G d MMMM y", + "field-fri-relative+-1": "geçen cuma", + "field-wed-relative+-1": "geçen çarşamba", + "months-format-wide": [ "Ferverdin", "Ordibeheşt", "Hordad", @@ -58,42 +63,36 @@ define( "Behmen", "Esfend" ], - "dateFormatItem-Ed": "d E", - "field-day-relative+0": "Bugün", - "field-day-relative+1": "Yarın", - "days-standAlone-narrow": [ - "P", - "P", - "S", - "Ç", - "P", - "C", - "C" + "dateFormatItem-yyyyQQQ": "G y/QQQ", + "dayPeriods-format-wide-pm": "ÖS", + "dateFormat-full": "G d MMMM y EEEE", + "dateFormatItem-yyyyMEd": "GGGGG dd.MM.y E", + "field-thu-relative+-1": "geçen perşembe", + "dateFormatItem-Md": "dd/MM", + "field-era": "Miladi Dönem", + "months-standAlone-wide": [ + "Ferverdin", + "Ordibeheşt", + "Hordad", + "Tir", + "Mordad", + "Şehriver", + "Mehr", + "Aban", + "Azer", + "Dey", + "Behmen", + "Esfend" ], - "field-day-relative+2": "Öbür gün", - "dateFormatItem-GyMMMd": "dd MMM y G", - "dateFormat-long": "d MMMM y G", - "field-zone": "Saat Dilimi", - "field-week-relative+-1": "Geçen hafta", - "dateFormat-medium": "d MMM y G", - "field-year-relative+0": "Bu yıl", - "field-year-relative+1": "Gelecek yıl", - "quarters-standAlone-wide": [ + "quarters-format-wide": [ "1. çeyrek", "2. çeyrek", "3. çeyrek", "4. çeyrek" ], - "field-year-relative+-1": "Geçen yıl", "field-year": "Yıl", - "dateFormatItem-yyyyQQQQ": "G y/QQQQ", - "quarters-standAlone-narrow": [ - "1.", - "2.", - "3.", - "4." - ], - "months-standAlone-wide": [ + "field-hour": "Saat", + "months-format-abbr": [ "Ferverdin", "Ordibeheşt", "Hordad", @@ -107,20 +106,15 @@ define( "Behmen", "Esfend" ], - "field-week": "Hafta", - "dateFormatItem-yyyyMMMd": "dd MMM y G", - "dateFormatItem-yyyyMd": "dd.MM.y G", - "dateFormatItem-yyyyMEd": "dd.MM.y G E", - "field-week-relative+0": "Bu hafta", - "dateFormatItem-MMMd": "d MMMM", - "quarters-format-narrow": [ - "1.", - "2.", - "3.", - "4." - ], - "field-week-relative+1": "Gelecek hafta", - "months-format-abbr": [ + "field-sat-relative+0": "bu cumartesi", + "field-sat-relative+1": "gelecek cumartesi", + "field-day-relative+0": "bugün", + "field-thu-relative+0": "bu perşembe", + "field-day-relative+1": "yarın", + "field-thu-relative+1": "gelecek perşembe", + "dateFormatItem-GyMMMd": "G d MMM y", + "field-day-relative+2": "öbür gün", + "months-standAlone-abbr": [ "Ferverdin", "Ordibeheşt", "Hordad", @@ -134,16 +128,41 @@ define( "Behmen", "Esfend" ], - "field-month-relative+0": "Bu ay", - "field-month": "Ay", - "field-month-relative+1": "Gelecek ay", "quarters-format-abbr": [ "Ç1", "Ç2", "Ç3", "Ç4" ], - "days-format-abbr": [ + "quarters-standAlone-wide": [ + "1. çeyrek", + "2. çeyrek", + "3. çeyrek", + "4. çeyrek" + ], + "dateFormatItem-yyyyMMMEd": "G d MMM y E", + "days-standAlone-wide": [ + "Pazar", + "Pazartesi", + "Salı", + "Çarşamba", + "Perşembe", + "Cuma", + "Cumartesi" + ], + "dateFormatItem-yyyyMMM": "G MMM y", + "dateFormatItem-yyyyMMMd": "G dd MMM y", + "field-sun-relative+0": "bu pazar", + "field-sun-relative+1": "gelecek pazar", + "quarters-standAlone-abbr": [ + "Ç1", + "Ç2", + "Ç3", + "Ç4" + ], + "field-minute": "Dakika", + "field-dayperiod": "ÖÖ/ÖS", + "days-standAlone-abbr": [ "Paz", "Pzt", "Sal", @@ -152,22 +171,30 @@ define( "Cum", "Cmt" ], - "days-format-narrow": [ - "P", - "P", - "S", - "Ç", - "P", - "C", - "C" + "quarters-format-narrow": [ + "1.", + "2.", + "3.", + "4." ], - "field-second": "Saniye", - "dateFormatItem-GyMMMEd": "d MMM y G E", - "dateFormatItem-GyMMM": "MMM y G", + "field-day-relative+-1": "dün", + "field-day-relative+-2": "evvelsi gün", + "dateFormatItem-MMMd": "d MMM", + "dateFormatItem-MEd": "dd/MM E", + "field-fri-relative+0": "bu cuma", + "field-fri-relative+1": "gelecek cuma", "field-day": "Gün", - "dateFormatItem-yyyyQQQ": "G y/QQQ", - "dateFormatItem-MEd": "dd.MM E", - "months-format-narrow": [ + "days-format-wide": [ + "Pazar", + "Pazartesi", + "Salı", + "Çarşamba", + "Perşembe", + "Cuma", + "Cumartesi" + ], + "field-zone": "Saat Dilimi", + "months-standAlone-narrow": [ "O", "Ş", "M", @@ -181,16 +208,9 @@ define( "K", "A" ], - "days-standAlone-short": [ - "Pa", - "Pt", - "Sa", - "Ça", - "Pe", - "Cu", - "Ct" - ], - "days-standAlone-abbr": [ + "field-year-relative+-1": "geçen yıl", + "field-month-relative+-1": "geçen ay", + "days-format-abbr": [ "Paz", "Pzt", "Sal", @@ -199,50 +219,49 @@ define( "Cum", "Cmt" ], - "dateFormat-short": "d.MM.y G", - "dateFormatItem-yyyyM": "MM.y G", - "dateFormat-full": "d MMMM y G EEEE", - "dateFormatItem-Md": "dd.MM", - "months-format-wide": [ - "Ferverdin", - "Ordibeheşt", - "Hordad", - "Tir", - "Mordad", - "Şehriver", - "Mehr", - "Aban", - "Azer", - "Dey", - "Behmen", - "Esfend" - ], - "days-format-short": [ - "Pa", - "Pt", - "Sa", - "Ça", - "Pe", - "Cu", - "Ct" + "days-format-narrow": [ + "P", + "P", + "S", + "Ç", + "P", + "C", + "C" ], - "dateFormatItem-yyyyMMM": "MMM y G", - "field-month-relative+-1": "Geçen ay", - "quarters-format-wide": [ - "1. çeyrek", - "2. çeyrek", - "3. çeyrek", - "4. çeyrek" + "dateFormatItem-yyyyMd": "GGGGG dd.MM.y", + "field-month": "Ay", + "days-standAlone-narrow": [ + "P", + "P", + "S", + "Ç", + "P", + "C", + "C" ], - "days-format-wide": [ - "Pazar", - "Pazartesi", - "Salı", - "Çarşamba", - "Perşembe", - "Cuma", - "Cumartesi" - ] + "field-tue-relative+0": "bu salı", + "field-tue-relative+1": "gelecek salı", + "dayPeriods-format-wide-am": "ÖÖ", + "field-mon-relative+0": "bu pazartesi", + "field-mon-relative+1": "gelecek pazartesi", + "dateFormat-short": "GGGGG d.MM.y", + "field-second": "Saniye", + "field-sat-relative+-1": "geçen cumartesi", + "field-sun-relative+-1": "geçen pazar", + "field-month-relative+0": "bu ay", + "field-month-relative+1": "gelecek ay", + "dateFormatItem-Ed": "d E", + "field-week": "Hafta", + "dateFormat-medium": "G d MMM y", + "field-year-relative+0": "bu yıl", + "field-week-relative+-1": "geçen hafta", + "dateFormatItem-yyyyM": "GGGGG M/y", + "field-year-relative+1": "gelecek yıl", + "dateFormatItem-yyyyQQQQ": "G y/QQQQ", + "dateFormatItem-GyMMM": "G MMM y", + "field-mon-relative+-1": "geçen pazartesi", + "field-week-relative+0": "bu hafta", + "field-week-relative+1": "gelecek hafta" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/tr/roc.js b/cldr/nls/tr/roc.js index 112f18cf74..af3919c42b 100644 --- a/cldr/nls/tr/roc.js +++ b/cldr/nls/tr/roc.js @@ -1,35 +1,57 @@ define( //begin v1.x content { - "field-second": "Saniye", - "field-year-relative+-1": "Geçen yıl", - "field-week": "Hafta", - "field-month-relative+-1": "Geçen ay", - "field-day-relative+-1": "Dün", - "field-day-relative+-2": "Evvelsi gün", - "field-year": "Yıl", - "field-week-relative+0": "Bu hafta", - "field-week-relative+1": "Gelecek hafta", - "field-minute": "Dakika", - "field-week-relative+-1": "Geçen hafta", - "field-day-relative+0": "Bugün", - "field-hour": "Saat", - "field-day-relative+1": "Yarın", - "field-day-relative+2": "Öbür gün", - "field-day": "Gün", - "field-month-relative+0": "Bu ay", - "field-month-relative+1": "Gelecek ay", + "field-sat-relative+0": "bu cumartesi", + "field-sat-relative+1": "gelecek cumartesi", "field-dayperiod": "ÖÖ/ÖS", - "field-month": "Ay", + "field-sun-relative+-1": "geçen pazar", + "field-mon-relative+-1": "geçen pazartesi", + "field-minute": "Dakika", + "field-day-relative+-1": "dün", + "field-weekday": "Haftanın Günü", + "field-day-relative+-2": "evvelsi gün", "field-era": "Miladi Dönem", - "field-year-relative+0": "Bu yıl", - "field-year-relative+1": "Gelecek yıl", + "field-hour": "Saat", + "field-sun-relative+0": "bu pazar", + "field-sun-relative+1": "gelecek pazar", + "field-wed-relative+-1": "geçen çarşamba", + "field-day-relative+0": "bugün", + "field-day-relative+1": "yarın", "eraAbbr": [ "Before R.O.C.", "Minguo" ], - "field-weekday": "Haftanın Günü", - "field-zone": "Saat Dilimi" + "field-day-relative+2": "öbür gün", + "field-tue-relative+0": "bu salı", + "field-zone": "Saat Dilimi", + "field-tue-relative+1": "gelecek salı", + "field-week-relative+-1": "geçen hafta", + "field-year-relative+0": "bu yıl", + "field-year-relative+1": "gelecek yıl", + "field-sat-relative+-1": "geçen cumartesi", + "field-year-relative+-1": "geçen yıl", + "field-year": "Yıl", + "field-fri-relative+0": "bu cuma", + "field-fri-relative+1": "gelecek cuma", + "field-week": "Hafta", + "field-week-relative+0": "bu hafta", + "field-week-relative+1": "gelecek hafta", + "field-month-relative+0": "bu ay", + "field-month": "Ay", + "field-month-relative+1": "gelecek ay", + "field-fri-relative+-1": "geçen cuma", + "field-second": "Saniye", + "field-tue-relative+-1": "geçen salı", + "field-day": "Gün", + "field-mon-relative+0": "bu pazartesi", + "field-mon-relative+1": "gelecek pazartesi", + "field-thu-relative+0": "bu perşembe", + "field-second-relative+0": "şimdi", + "field-thu-relative+1": "gelecek perşembe", + "field-wed-relative+0": "bu çarşamba", + "field-wed-relative+1": "gelecek çarşamba", + "field-month-relative+-1": "geçen ay", + "field-thu-relative+-1": "geçen perşembe" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh-hant/buddhist.js b/cldr/nls/zh-hant/buddhist.js index 9db507bd3b..0cd7805d1d 100644 --- a/cldr/nls/zh-hant/buddhist.js +++ b/cldr/nls/zh-hant/buddhist.js @@ -10,12 +10,16 @@ define( "五", "六" ], + "field-second-relative+0": "現在", "field-weekday": "週天", + "field-wed-relative+0": "本週三", + "field-wed-relative+1": "下週三", "dateFormatItem-GyMMMEd": "Gy年M月d日E", "dateFormatItem-MMMEd": "M月d日E", "eraNarrow": [ "佛曆" ], + "field-tue-relative+-1": "上週二", "days-format-short": [ "日", "一", @@ -26,6 +30,8 @@ define( "六" ], "dateFormat-long": "Gy年M月d日", + "field-fri-relative+-1": "上週五", + "field-wed-relative+-1": "上週三", "months-format-wide": [ "1月", "2月", @@ -44,21 +50,23 @@ define( "dayPeriods-format-wide-pm": "下午", "dateFormat-full": "Gy年M月d日EEEE", "dateFormatItem-yyyyMEd": "Gy/M/d(E)", + "field-thu-relative+-1": "上週四", "dateFormatItem-Md": "M/d", + "dayPeriods-format-wide-noon": "中午", "field-era": "年代", "months-standAlone-wide": [ - "一月", - "二月", - "三月", - "四月", - "五月", - "六月", - "七月", - "八月", - "九月", - "十月", - "十一月", - "十二月" + "1月", + "2月", + "3月", + "4月", + "5月", + "6月", + "7月", + "8月", + "9月", + "10月", + "11月", + "12月" ], "timeFormat-short": "ah:mm", "quarters-format-wide": [ @@ -84,9 +92,13 @@ define( "11月", "12月" ], + "field-sat-relative+0": "本週六", + "field-sat-relative+1": "下週六", "timeFormat-full": "zzzzah時mm分ss秒", "field-day-relative+0": "今天", + "field-thu-relative+0": "本週四", "field-day-relative+1": "明天", + "field-thu-relative+1": "下週四", "dateFormatItem-GyMMMd": "Gy年M月d日", "field-day-relative+2": "後天", "dateFormatItem-H": "H時", @@ -111,10 +123,10 @@ define( "4季" ], "quarters-standAlone-wide": [ - "第一季度", - "第二季度", - "第三季度", - "第四季度" + "第1季", + "第2季", + "第3季", + "第4季" ], "dateFormatItem-Gy": "Gy年", "dateFormatItem-yyyyMMMEd": "Gy年M月d日E", @@ -131,12 +143,14 @@ define( "dateFormatItem-yyyyMMM": "Gy年M月", "dateFormatItem-yyyyMMMd": "Gy年M月d日", "timeFormat-medium": "ah:mm:ss", + "field-sun-relative+0": "本週日", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "下週日", "quarters-standAlone-abbr": [ - "1季度", - "2季度", - "3季度", - "4季度" + "1季", + "2季", + "3季", + "4季" ], "eraAbbr": [ "佛曆" @@ -144,23 +158,24 @@ define( "field-minute": "分鐘", "field-dayperiod": "上午/下午", "days-standAlone-abbr": [ - "周日", - "周一", - "周二", - "周三", - "周四", - "周五", - "周六" + "週日", + "週一", + "週二", + "週三", + "週四", + "週五", + "週六" ], "dateFormatItem-d": "d日", "field-day-relative+-1": "昨天", "dateFormatItem-h": "ah時", - "dateTimeFormat-long": "{1}{0}", "dayPeriods-format-narrow-am": "上午", "field-day-relative+-2": "前天", "dateFormatItem-MMMd": "M月d日", "dateFormatItem-MEd": "M/d(E)", "dateTimeFormat-full": "{1}{0}", + "field-fri-relative+0": "本週五", + "field-fri-relative+1": "下週五", "field-day": "日", "days-format-wide": [ "星期日", @@ -199,6 +214,7 @@ define( ], "dateFormatItem-yyyyMd": "Gy/M/d", "field-month": "月", + "dateFormatItem-MMM": "LLL", "days-standAlone-narrow": [ "日", "一", @@ -208,14 +224,21 @@ define( "五", "六" ], + "field-tue-relative+0": "本週二", + "field-tue-relative+1": "下週二", "dayPeriods-format-wide-am": "上午", + "field-mon-relative+0": "本週一", + "field-mon-relative+1": "下週一", "dateFormat-short": "Gy/M/d", + "dayPeriods-format-narrow-noon": "中午", "field-second": "秒", + "field-sat-relative+-1": "上週六", + "field-sun-relative+-1": "上週日", "field-month-relative+0": "本月", "field-month-relative+1": "下個月", "dateFormatItem-Ed": "d日(E)", "field-week": "週", - "dateFormat-medium": "Gy/M/d", + "dateFormat-medium": "Gy年M月d日", "field-year-relative+0": "今年", "field-week-relative+-1": "上週", "dateFormatItem-yyyyM": "Gy/M", @@ -225,6 +248,7 @@ define( "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "ah:mm:ss", "dateFormatItem-GyMMM": "Gy年M月", + "field-mon-relative+-1": "上週一", "dateFormatItem-yyyy": "Gy年", "field-week-relative+0": "本週", "field-week-relative+1": "下週" diff --git a/cldr/nls/zh-hant/chinese.js b/cldr/nls/zh-hant/chinese.js index 288d7b4928..b998210df7 100644 --- a/cldr/nls/zh-hant/chinese.js +++ b/cldr/nls/zh-hant/chinese.js @@ -1,14 +1,7 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "U年MMMd日E", - "field-dayperiod": "上午/下午", - "field-minute": "分鐘", - "dateFormatItem-MMMEd": "MMMd日E", - "field-day-relative+-1": "昨天", - "field-day-relative+-2": "前天", - "field-weekday": "週天", - "months-standAlone-narrow": [ + "months-format-narrow": [ "正", "二", "三", @@ -19,51 +12,79 @@ define( "八", "九", "十", - "十一", - "十二" + "冬", + "臘" + ], + "field-second-relative+0": "現在", + "field-weekday": "週天", + "field-wed-relative+0": "本週三", + "field-wed-relative+1": "下週三", + "dateFormatItem-GyMMMEd": "U年MMMd日E", + "dateFormatItem-MMMEd": "MMMd日E", + "field-tue-relative+-1": "上週二", + "dateFormat-long": "U年MMMd", + "field-fri-relative+-1": "上週五", + "field-wed-relative+-1": "上週三", + "months-format-wide": [ + "正月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "冬月", + "臘月" ], + "dateFormatItem-yyyyQQQ": "U年QQQQ", + "dateFormat-full": "U年MMMdEEEE", + "dateFormatItem-yyyyMEd": "U年MMMd日,E", + "field-thu-relative+-1": "上週四", + "dateFormatItem-Md": "M/d", + "dateFormatItem-yMd": "U年MMMd日", "field-era": "年代", - "dateFormatItem-Gy": "U年", + "months-standAlone-wide": [ + "正月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "冬月", + "臘月" + ], + "field-year": "年", "field-hour": "小時", - "dateFormatItem-y": "U年", - "dateFormatItem-yyyy": "U年", - "dateFormatItem-Ed": "d日E", + "months-format-abbr": [ + "正月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "冬月", + "臘月" + ], + "field-sat-relative+0": "本週六", + "field-sat-relative+1": "下週六", "field-day-relative+0": "今天", + "field-thu-relative+0": "本週四", "field-day-relative+1": "明天", - "field-day-relative+2": "後天", + "field-thu-relative+1": "下週四", "dateFormatItem-GyMMMd": "U年MMMd日", - "dateFormat-long": "U年MMMd日", - "field-zone": "時區", - "field-week-relative+-1": "上週", - "dateFormat-medium": "U年MMMd日", - "field-year-relative+0": "今年", - "field-year-relative+1": "明年", - "dateFormatItem-yMd": "U年M月d日", - "field-year-relative+-1": "去年", - "field-year": "年", - "dateFormatItem-yyyyQQQQ": "U年QQQQ", - "field-week": "週", - "dateFormatItem-yyyyMd": "U年M月d日", - "dateFormatItem-yyyyMMMd": "U年MMMd日", - "dateFormatItem-yyyyMEd": "U年M月d日,E", - "dateFormatItem-MMMd": "MMMd日", - "field-week-relative+0": "本週", - "field-week-relative+1": "下週", - "field-month-relative+0": "本月", - "field-month": "月", - "field-month-relative+1": "下個月", - "dateFormatItem-M": "MMM", - "field-second": "秒", - "dateFormatItem-GyMMMEd": "U年MMMd日E", - "dateFormatItem-GyMMM": "U年MMM", - "field-day": "日", - "dateFormatItem-yyyyQQQ": "U年QQQQ", - "dateFormatItem-MEd": "M/dE", - "dateFormat-short": "U/M/d", - "dateFormatItem-yyyyM": "U年M月", - "dateFormat-full": "U年MMMd日EEEE", - "dateFormatItem-Md": "M/d", - "months-format-wide": [ + "field-day-relative+2": "後天", + "months-standAlone-abbr": [ "正月", "二月", "三月", @@ -74,12 +95,69 @@ define( "八月", "九月", "十月", - "十一月", - "十二月" + "冬月", + "臘月" ], + "dateFormatItem-Gy": "U年", + "dateFormatItem-yyyyMMMEd": "U年MMMd日E", + "dateFormatItem-M": "MMM", "dateFormatItem-yyyyMMM": "U年MMM", + "dateFormatItem-yyyyMMMd": "U年MMMd日", + "field-sun-relative+0": "本週日", + "field-sun-relative+1": "下週日", + "field-minute": "分鐘", + "field-dayperiod": "上午/下午", "dateFormatItem-d": "d日", - "field-month-relative+-1": "上個月" + "field-day-relative+-1": "昨天", + "field-day-relative+-2": "前天", + "dateFormatItem-MMMd": "MMMd日", + "dateFormatItem-MEd": "M/dE", + "field-fri-relative+0": "本週五", + "field-fri-relative+1": "下週五", + "field-day": "日", + "field-zone": "時區", + "dateFormatItem-y": "U年", + "months-standAlone-narrow": [ + "正", + "二", + "三", + "四", + "五", + "六", + "七", + "八", + "九", + "十", + "冬", + "臘" + ], + "field-year-relative+-1": "去年", + "field-month-relative+-1": "上個月", + "dateFormatItem-yyyyMd": "U年MMMd日", + "field-month": "月", + "field-tue-relative+0": "本週二", + "field-tue-relative+1": "下週二", + "field-mon-relative+0": "本週一", + "field-mon-relative+1": "下週一", + "dateFormat-short": "U/M/d", + "field-second": "秒", + "field-sat-relative+-1": "上週六", + "field-sun-relative+-1": "上週日", + "field-month-relative+0": "本月", + "field-month-relative+1": "下個月", + "dateFormatItem-Ed": "d日E", + "field-week": "週", + "dateFormat-medium": "U年MMMd", + "field-year-relative+0": "今年", + "field-week-relative+-1": "上週", + "dateFormatItem-yyyyM": "U年MMM", + "field-year-relative+1": "明年", + "dateFormatItem-yyyyQQQQ": "U年QQQQ", + "dateFormatItem-GyMMM": "U年MMM", + "field-mon-relative+-1": "上週一", + "dateFormatItem-yyyy": "U年", + "field-week-relative+0": "本週", + "field-week-relative+1": "下週" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh-hant/coptic.js b/cldr/nls/zh-hant/coptic.js index c56dd46ce6..27ef564ce7 100644 --- a/cldr/nls/zh-hant/coptic.js +++ b/cldr/nls/zh-hant/coptic.js @@ -1,26 +1,14 @@ define( //begin v1.x content { - "field-second": "秒", - "field-year-relative+-1": "去年", - "field-week": "週", - "field-month-relative+-1": "上個月", + "field-sat-relative+0": "本週六", + "field-sat-relative+1": "下週六", + "field-dayperiod": "上午/下午", + "field-sun-relative+-1": "上週日", + "field-mon-relative+-1": "上週一", + "field-minute": "分鐘", "field-day-relative+-1": "昨天", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], + "field-weekday": "週天", "field-day-relative+-2": "前天", "months-standAlone-narrow": [ "1", @@ -37,7 +25,11 @@ define( "12", "13" ], - "months-standAlone-wide": [ + "field-era": "年代", + "field-hour": "小時", + "field-sun-relative+0": "本週日", + "field-sun-relative+1": "下週日", + "months-standAlone-abbr": [ "1月", "2月", "3月", @@ -52,9 +44,22 @@ define( "12月", "13月" ], + "field-wed-relative+-1": "上週三", + "field-day-relative+0": "今天", + "field-day-relative+1": "明天", + "field-day-relative+2": "後天", + "field-tue-relative+0": "本週二", + "field-zone": "時區", + "field-tue-relative+1": "下週二", + "field-week-relative+-1": "上週", + "field-year-relative+0": "今年", + "field-year-relative+1": "明年", + "field-sat-relative+-1": "上週六", + "field-year-relative+-1": "去年", "field-year": "年", - "field-week-relative+0": "本週", - "months-standAlone-abbr": [ + "field-fri-relative+0": "本週五", + "field-fri-relative+1": "下週五", + "months-standAlone-wide": [ "1月", "2月", "3月", @@ -69,19 +74,10 @@ define( "12月", "13月" ], + "field-week": "週", + "field-week-relative+0": "本週", "field-week-relative+1": "下週", - "field-minute": "分鐘", - "field-week-relative+-1": "上週", - "field-day-relative+0": "今天", - "field-hour": "小時", - "field-day-relative+1": "明天", - "field-day-relative+2": "後天", - "field-day": "日", - "field-month-relative+0": "本月", - "field-month-relative+1": "下個月", - "field-dayperiod": "上午/下午", - "field-month": "月", - "months-format-wide": [ + "months-format-abbr": [ "1月", "2月", "3月", @@ -96,10 +92,34 @@ define( "12月", "13月" ], - "field-era": "年代", - "field-year-relative+0": "今年", - "field-year-relative+1": "明年", - "months-format-abbr": [ + "field-month-relative+0": "本月", + "field-month": "月", + "field-month-relative+1": "下個月", + "field-fri-relative+-1": "上週五", + "field-second": "秒", + "field-tue-relative+-1": "上週二", + "field-day": "日", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "本週一", + "field-mon-relative+1": "下週一", + "field-thu-relative+0": "本週四", + "field-second-relative+0": "現在", + "field-thu-relative+1": "下週四", + "months-format-wide": [ "1月", "2月", "3月", @@ -114,8 +134,10 @@ define( "12月", "13月" ], - "field-weekday": "週天", - "field-zone": "時區" + "field-wed-relative+0": "本週三", + "field-wed-relative+1": "下週三", + "field-month-relative+-1": "上個月", + "field-thu-relative+-1": "上週四" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh-hant/currency.js b/cldr/nls/zh-hant/currency.js index 1d69cf66f5..85e736e982 100644 --- a/cldr/nls/zh-hant/currency.js +++ b/cldr/nls/zh-hant/currency.js @@ -11,9 +11,9 @@ define( "AUD_displayName": "澳幣", "JPY_displayName": "日圓", "CAD_symbol": "CA$", - "USD_displayName": "美金", + "USD_displayName": "美元", "EUR_symbol": "€", - "CNY_symbol": "¥", + "CNY_symbol": "CN¥", "GBP_displayName": "英鎊", "GBP_symbol": "£", "AUD_symbol": "AU$", diff --git a/cldr/nls/zh-hant/dangi.js b/cldr/nls/zh-hant/dangi.js new file mode 100644 index 0000000000..08f111278f --- /dev/null +++ b/cldr/nls/zh-hant/dangi.js @@ -0,0 +1,141 @@ +define( +//begin v1.x content +{ + "field-sat-relative+0": "本週六", + "field-sat-relative+1": "下週六", + "field-dayperiod": "上午/下午", + "field-sun-relative+-1": "上週日", + "field-mon-relative+-1": "上週一", + "field-minute": "分鐘", + "field-day-relative+-1": "昨天", + "field-weekday": "週天", + "field-day-relative+-2": "前天", + "months-standAlone-narrow": [ + "正", + "二", + "三", + "四", + "五", + "六", + "七", + "八", + "九", + "十", + "十一", + "十二" + ], + "field-era": "年代", + "field-hour": "小時", + "field-sun-relative+0": "本週日", + "field-sun-relative+1": "下週日", + "months-standAlone-abbr": [ + "正月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月" + ], + "field-wed-relative+-1": "上週三", + "field-day-relative+0": "今天", + "field-day-relative+1": "明天", + "field-day-relative+2": "後天", + "dateFormat-long": "U年MMMd日", + "field-tue-relative+0": "本週二", + "field-zone": "時區", + "field-tue-relative+1": "下週二", + "field-week-relative+-1": "上週", + "dateFormat-medium": "U年MMMd日", + "field-year-relative+0": "今年", + "field-year-relative+1": "明年", + "field-sat-relative+-1": "上週六", + "field-year-relative+-1": "去年", + "field-year": "年", + "field-fri-relative+0": "本週五", + "field-fri-relative+1": "下週五", + "months-standAlone-wide": [ + "正月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月" + ], + "field-week": "週", + "field-week-relative+0": "本週", + "field-week-relative+1": "下週", + "months-format-abbr": [ + "正月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月" + ], + "field-month-relative+0": "本月", + "field-month": "月", + "field-month-relative+1": "下個月", + "field-fri-relative+-1": "上週五", + "field-second": "秒", + "field-tue-relative+-1": "上週二", + "field-day": "日", + "months-format-narrow": [ + "正", + "二", + "三", + "四", + "五", + "六", + "七", + "八", + "九", + "十", + "十一", + "十二" + ], + "field-mon-relative+0": "本週一", + "field-mon-relative+1": "下週一", + "field-thu-relative+0": "本週四", + "field-second-relative+0": "現在", + "dateFormat-short": "U/M/d", + "field-thu-relative+1": "下週四", + "dateFormat-full": "U年MMMd日EEEE", + "months-format-wide": [ + "正月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月" + ], + "field-wed-relative+0": "本週三", + "field-wed-relative+1": "下週三", + "field-month-relative+-1": "上個月", + "field-thu-relative+-1": "上週四" +} +//end v1.x content +); \ No newline at end of file diff --git a/cldr/nls/zh-hant/ethiopic.js b/cldr/nls/zh-hant/ethiopic.js index c56dd46ce6..27ef564ce7 100644 --- a/cldr/nls/zh-hant/ethiopic.js +++ b/cldr/nls/zh-hant/ethiopic.js @@ -1,26 +1,14 @@ define( //begin v1.x content { - "field-second": "秒", - "field-year-relative+-1": "去年", - "field-week": "週", - "field-month-relative+-1": "上個月", + "field-sat-relative+0": "本週六", + "field-sat-relative+1": "下週六", + "field-dayperiod": "上午/下午", + "field-sun-relative+-1": "上週日", + "field-mon-relative+-1": "上週一", + "field-minute": "分鐘", "field-day-relative+-1": "昨天", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], + "field-weekday": "週天", "field-day-relative+-2": "前天", "months-standAlone-narrow": [ "1", @@ -37,7 +25,11 @@ define( "12", "13" ], - "months-standAlone-wide": [ + "field-era": "年代", + "field-hour": "小時", + "field-sun-relative+0": "本週日", + "field-sun-relative+1": "下週日", + "months-standAlone-abbr": [ "1月", "2月", "3月", @@ -52,9 +44,22 @@ define( "12月", "13月" ], + "field-wed-relative+-1": "上週三", + "field-day-relative+0": "今天", + "field-day-relative+1": "明天", + "field-day-relative+2": "後天", + "field-tue-relative+0": "本週二", + "field-zone": "時區", + "field-tue-relative+1": "下週二", + "field-week-relative+-1": "上週", + "field-year-relative+0": "今年", + "field-year-relative+1": "明年", + "field-sat-relative+-1": "上週六", + "field-year-relative+-1": "去年", "field-year": "年", - "field-week-relative+0": "本週", - "months-standAlone-abbr": [ + "field-fri-relative+0": "本週五", + "field-fri-relative+1": "下週五", + "months-standAlone-wide": [ "1月", "2月", "3月", @@ -69,19 +74,10 @@ define( "12月", "13月" ], + "field-week": "週", + "field-week-relative+0": "本週", "field-week-relative+1": "下週", - "field-minute": "分鐘", - "field-week-relative+-1": "上週", - "field-day-relative+0": "今天", - "field-hour": "小時", - "field-day-relative+1": "明天", - "field-day-relative+2": "後天", - "field-day": "日", - "field-month-relative+0": "本月", - "field-month-relative+1": "下個月", - "field-dayperiod": "上午/下午", - "field-month": "月", - "months-format-wide": [ + "months-format-abbr": [ "1月", "2月", "3月", @@ -96,10 +92,34 @@ define( "12月", "13月" ], - "field-era": "年代", - "field-year-relative+0": "今年", - "field-year-relative+1": "明年", - "months-format-abbr": [ + "field-month-relative+0": "本月", + "field-month": "月", + "field-month-relative+1": "下個月", + "field-fri-relative+-1": "上週五", + "field-second": "秒", + "field-tue-relative+-1": "上週二", + "field-day": "日", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "本週一", + "field-mon-relative+1": "下週一", + "field-thu-relative+0": "本週四", + "field-second-relative+0": "現在", + "field-thu-relative+1": "下週四", + "months-format-wide": [ "1月", "2月", "3月", @@ -114,8 +134,10 @@ define( "12月", "13月" ], - "field-weekday": "週天", - "field-zone": "時區" + "field-wed-relative+0": "本週三", + "field-wed-relative+1": "下週三", + "field-month-relative+-1": "上個月", + "field-thu-relative+-1": "上週四" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh-hant/generic.js b/cldr/nls/zh-hant/generic.js index 49d0139240..ed0b2b4421 100644 --- a/cldr/nls/zh-hant/generic.js +++ b/cldr/nls/zh-hant/generic.js @@ -1,68 +1,90 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "Gy年M月d日E", - "field-dayperiod": "上午/下午", - "field-minute": "分鐘", - "dateFormatItem-MMMEd": "M月d日E", - "dateTimeFormat-full": "{1}{0}", - "field-day-relative+-1": "昨天", - "dateFormatItem-hms": "ah:mm:ss", - "field-day-relative+-2": "前天", + "field-second-relative+0": "現在", "field-weekday": "週天", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "Gy年", + "field-wed-relative+0": "本週三", + "field-wed-relative+1": "下週三", + "dateFormatItem-GyMMMEd": "G y 年 M 月 d 日 E", + "dateFormatItem-MMMEd": "M 月 d 日E", + "field-tue-relative+-1": "上週二", + "dateFormat-long": "G y年M月d日", + "field-fri-relative+-1": "上週五", + "field-wed-relative+-1": "上週三", + "dateFormatItem-yyyyQQQ": "G y 年 QQQ", "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "G y 年 M 月 d 日 EEEE", + "dateFormatItem-yyyyMEd": "G y/M/d (E)", + "field-thu-relative+-1": "上週四", + "dateFormatItem-Md": "M/d", "field-era": "年代", + "field-year": "年", "field-hour": "小時", - "dateFormatItem-y": "Gy年", - "dateFormatItem-yyyy": "Gy年", - "dateFormatItem-Ed": "d日(E)", + "field-sat-relative+0": "本週六", + "field-sat-relative+1": "下週六", "field-day-relative+0": "今天", + "field-thu-relative+0": "本週四", "field-day-relative+1": "明天", + "dateFormatItem-GyMMMd": "G y 年 M 月 d 日", "field-day-relative+2": "後天", - "dateFormatItem-GyMMMd": "Gy年M月d日", - "dateFormat-long": "Gy年M月d日", - "field-zone": "時區", + "field-thu-relative+1": "下週四", + "dateFormatItem-H": "H時", + "dateFormatItem-Gy": "G y 年", + "dateFormatItem-yyyyMMMEd": "G y 年 M 月 d 日E", + "dateFormatItem-M": "M月", + "dateFormatItem-yyyyMMM": "G y 年 M 月", + "dateFormatItem-yyyyMMMd": "G y 年 M 月 d 日", + "field-sun-relative+0": "本週日", "dateFormatItem-Hm": "H:mm", - "field-week-relative+-1": "上週", - "dateFormat-medium": "Gy/M/d", - "dateFormatItem-Hms": "H:mm:ss", - "field-year-relative+0": "今年", - "field-year-relative+1": "明年", - "field-year-relative+-1": "去年", + "field-sun-relative+1": "下週日", + "field-minute": "分鐘", + "field-dayperiod": "上午/下午", + "dateFormatItem-d": "d日", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "Gy年QQQQ", - "field-year": "年", - "dateTimeFormat-long": "{1}{0}", - "field-week": "週", - "dateFormatItem-yyyyMd": "Gy/M/d", - "dateFormatItem-yyyyMMMd": "Gy年M月d日", - "dateFormatItem-yyyyMEd": "Gy/M/d(E)", + "field-day-relative+-1": "昨天", + "dateFormatItem-h": "ah時", + "dateTimeFormat-long": "{1} {0}", + "field-day-relative+-2": "前天", "dateFormatItem-MMMd": "M月d日", - "field-week-relative+0": "本週", - "field-week-relative+1": "下週", - "field-month-relative+0": "本月", - "dateFormatItem-H": "H時", + "dateFormatItem-MEd": "M/d (E)", + "dateTimeFormat-full": "{1}{0}", + "field-fri-relative+0": "本週五", + "field-fri-relative+1": "下週五", + "field-day": "日", + "field-zone": "時區", + "dateFormatItem-y": "G y 年", + "field-year-relative+-1": "去年", + "field-month-relative+-1": "上個月", + "dateFormatItem-hm": "ah:mm", + "dateFormatItem-yyyyMd": "G y/M/d", "field-month": "月", - "field-month-relative+1": "下個月", - "dateFormatItem-M": "M月", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "本週二", + "field-tue-relative+1": "下週二", + "field-mon-relative+0": "本週一", + "field-mon-relative+1": "下週一", + "dateFormat-short": "G y/M/d", "field-second": "秒", - "dateFormatItem-GyMMMEd": "Gy年M月d日E", + "field-sat-relative+-1": "上週六", + "field-sun-relative+-1": "上週日", + "field-month-relative+0": "本月", + "field-month-relative+1": "下個月", + "dateFormatItem-Ed": "d日(E)", + "field-week": "週", + "dateFormat-medium": "G y年M月d日", + "field-year-relative+0": "今年", + "field-week-relative+-1": "上週", + "dateFormatItem-yyyyM": "G y/M", + "field-year-relative+1": "明年", + "dateFormatItem-yyyyQQQQ": "G y 年 QQQQ", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "H:mm:ss", + "dateFormatItem-hms": "ah:mm:ss", "dateFormatItem-GyMMM": "Gy年M月", - "field-day": "日", - "dateFormatItem-MEd": "M/d(E)", - "dateFormatItem-yyyyQQQ": "Gy年QQQ", - "dateFormatItem-hm": "ah:mm", - "dateFormat-short": "Gy/M/d", - "dateFormatItem-yyyyM": "Gy/M", - "dateFormat-full": "Gy年M月d日EEEE", - "dateFormatItem-Md": "M/d", - "dateFormatItem-yyyyMMM": "Gy年M月", - "dateFormatItem-d": "d日", - "field-month-relative+-1": "上個月", - "dateFormatItem-h": "ah時" + "field-mon-relative+-1": "上週一", + "dateFormatItem-yyyy": "G y 年", + "field-week-relative+0": "本週", + "field-week-relative+1": "下週" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh-hant/gregorian.js b/cldr/nls/zh-hant/gregorian.js index 94ce4e1986..94469b7389 100644 --- a/cldr/nls/zh-hant/gregorian.js +++ b/cldr/nls/zh-hant/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "E a h:mm", "days-standAlone-short": [ "日", "一", @@ -10,6 +11,21 @@ define( "五", "六" ], + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-second-relative+0": "現在", "quarters-standAlone-narrow": [ "1", "2", @@ -19,14 +35,19 @@ define( "field-weekday": "週天", "dateFormatItem-yQQQ": "y年QQQ", "dateFormatItem-yMEd": "y/M/d(E)", - "dateFormatItem-GyMMMEd": "Gy年M月d日E", + "field-wed-relative+0": "本週三", + "dateFormatItem-GyMMMEd": "G y 年 M 月 d 日E", "dateFormatItem-MMMEd": "M月d日E", + "field-wed-relative+1": "下週三", "eraNarrow": [ "西元前", - "西元" + "公元前", + "西元", + "公元" ], "dateFormatItem-yMM": "y-MM", "dayPeriods-format-wide-earlyMorning": "清晨", + "field-tue-relative+-1": "上週二", "dayPeriods-format-wide-morning": "上午", "days-format-short": [ "日", @@ -38,6 +59,8 @@ define( "六" ], "dateFormat-long": "y年M月d日", + "field-fri-relative+-1": "上週五", + "field-wed-relative+-1": "上週三", "months-format-wide": [ "1月", "2月", @@ -55,12 +78,13 @@ define( "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "下午", "dateFormat-full": "y年M月d日EEEE", + "field-thu-relative+-1": "上週四", "dateFormatItem-Md": "M/d", "dayPeriods-format-narrow-midDay": "中午", "dayPeriods-format-wide-noon": "中午", "dateFormatItem-yMd": "y/M/d", - "field-era": "年代", "dateFormatItem-yM": "y/M", + "field-era": "年代", "months-standAlone-wide": [ "1月", "2月", @@ -82,12 +106,12 @@ define( "第3季", "第4季" ], - "dateFormatItem-yQQQQ": "y年QQQQ", "timeFormat-long": "zah時mm分ss秒", - "field-year": "年", "dateFormatItem-yMMM": "y年M月", - "field-hour": "小時", + "dateFormatItem-yQQQQ": "y年QQQQ", + "field-year": "年", "dateFormatItem-MMdd": "MM/dd", + "field-hour": "小時", "months-format-abbr": [ "1月", "2月", @@ -102,12 +126,16 @@ define( "11月", "12月" ], + "field-sat-relative+0": "本週六", + "field-sat-relative+1": "下週六", "timeFormat-full": "zzzzah時mm分ss秒", "dayPeriods-format-narrow-morning": "上午", "field-day-relative+0": "今天", "field-day-relative+1": "明天", - "dateFormatItem-GyMMMd": "Gy年M月d日", + "field-thu-relative+0": "本週四", + "dateFormatItem-GyMMMd": "G y 年 M 月 d 日", "field-day-relative+2": "後天", + "field-thu-relative+1": "下週四", "dateFormatItem-H": "H時", "months-standAlone-abbr": [ "1月", @@ -135,19 +163,32 @@ define( "第3季", "第4季" ], - "dateFormatItem-Gy": "Gy年", + "dateFormatItem-Gy": "G y 年", "dateFormatItem-M": "M月", + "days-standAlone-wide": [ + "星期日", + "星期一", + "星期二", + "星期三", + "星期四", + "星期五", + "星期六" + ], "timeFormat-medium": "ah:mm:ss", - "dateFormatItem-Hm": "H:mm", + "field-sun-relative+0": "本週日", + "dateFormatItem-Hm": "HH:mm", "quarters-standAlone-abbr": [ "1季", "2季", "3季", "4季" ], + "field-sun-relative+1": "下週日", "eraAbbr": [ "西元前", - "西元" + "公元前", + "西元", + "公元" ], "field-minute": "分鐘", "field-dayperiod": "上午/下午", @@ -171,14 +212,16 @@ define( ], "field-day-relative+-1": "昨天", "dateFormatItem-h": "ah時", - "dateTimeFormat-long": "{1}{0}", + "dateTimeFormat-long": "{1} {0}", "dayPeriods-format-narrow-am": "上午", "field-day-relative+-2": "前天", "dateFormatItem-MMMd": "M月d日", "dayPeriods-format-wide-midDay": "中午", "dateFormatItem-MEd": "M/d(E)", "dateTimeFormat-full": "{1}{0}", + "field-fri-relative+0": "本週五", "dateFormatItem-yMMMM": "y年M月", + "field-fri-relative+1": "下週五", "field-day": "日", "days-format-wide": [ "星期日", @@ -190,7 +233,6 @@ define( "星期六" ], "field-zone": "時區", - "dateFormatItem-y": "y年", "months-standAlone-narrow": [ "1", "2", @@ -205,6 +247,7 @@ define( "11", "12" ], + "dateFormatItem-y": "y年", "field-year-relative+-1": "去年", "dayPeriods-format-narrow-night": "晚上", "field-month-relative+-1": "上個月", @@ -219,10 +262,21 @@ define( "週五", "週六" ], - "dateFormatItem-yMMMd": "y年M月d日", "eraNames": [ "西元前", - "西元" + "公元前", + "西元", + "公元" + ], + "dateFormatItem-yMMMd": "y年M月d日", + "days-format-narrow": [ + "日", + "一", + "二", + "三", + "四", + "五", + "六" ], "dayPeriods-format-narrow-earlyMorning": "清晨", "days-standAlone-narrow": [ @@ -236,28 +290,39 @@ define( ], "dateFormatItem-MMM": "LLL", "field-month": "月", + "field-tue-relative+0": "本週二", + "field-tue-relative+1": "下週二", "dayPeriods-format-wide-am": "上午", - "dateFormatItem-MMMMdd": "M月dd日", + "dateFormatItem-EHm": "E HH:mm", "dayPeriods-format-wide-weeHours": "凌晨", + "dateFormatItem-MMMMdd": "M月dd日", + "field-mon-relative+0": "本週一", + "field-mon-relative+1": "下週一", "dateFormat-short": "y/M/d", "dayPeriods-format-wide-afternoon": "下午", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-Ehms": "E a h:mm:ss", "dayPeriods-format-narrow-afternoon": "下午", "dayPeriods-format-narrow-noon": "中午", "field-second": "秒", + "field-sat-relative+-1": "上週六", "dateFormatItem-yMMMEd": "y年M月d日E", + "field-sun-relative+-1": "上週日", "field-month-relative+0": "本月", "field-month-relative+1": "下個月", "dateFormatItem-Ed": "d日(E)", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", "field-week": "週", - "dateFormat-medium": "y/M/d", + "dateFormat-medium": "y年M月d日", "field-year-relative+0": "今年", "field-week-relative+-1": "上週", "field-year-relative+1": "明年", "dayPeriods-format-narrow-pm": "下午", "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Hms": "H:mm:ss", + "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "ah:mm:ss", - "dateFormatItem-GyMMM": "Gy年M月", + "dateFormatItem-GyMMM": "G y 年 M 月", + "field-mon-relative+-1": "上週一", "field-week-relative+0": "本週", "field-week-relative+1": "下週" } diff --git a/cldr/nls/zh-hant/hebrew.js b/cldr/nls/zh-hant/hebrew.js index 2eb4c6d45a..45b587b9e1 100644 --- a/cldr/nls/zh-hant/hebrew.js +++ b/cldr/nls/zh-hant/hebrew.js @@ -10,12 +10,16 @@ define( "五", "六" ], + "field-second-relative+0": "現在", "field-weekday": "週天", - "dateFormatItem-GyMMMEd": "Gy年M月d日E", - "dateFormatItem-MMMEd": "M月d日E", + "field-wed-relative+0": "本週三", + "field-wed-relative+1": "下週三", + "dateFormatItem-GyMMMEd": "G y 年 M 月 d 日 E", + "dateFormatItem-MMMEd": "M 月 d 日E", "eraNarrow": [ "創世紀元" ], + "field-tue-relative+-1": "上週二", "days-format-short": [ "日", "一", @@ -26,6 +30,8 @@ define( "六" ], "dateFormat-long": "Gy年M月d日", + "field-fri-relative+-1": "上週五", + "field-wed-relative+-1": "上週三", "months-format-wide": [ "提斯利月", "瑪西班月", @@ -41,11 +47,13 @@ define( "埃波月", "以祿月" ], - "dateFormatItem-yyyyQQQ": "Gy年QQQ", + "dateFormatItem-yyyyQQQ": "G y 年 QQQ", "dayPeriods-format-wide-pm": "下午", "dateFormat-full": "Gy年M月d日EEEE", - "dateFormatItem-yyyyMEd": "Gy/M/d(E)", + "dateFormatItem-yyyyMEd": "G y/M/d (E)", + "field-thu-relative+-1": "上週四", "dateFormatItem-Md": "M/d", + "dayPeriods-format-wide-noon": "中午", "field-era": "年代", "months-standAlone-wide": [ "提斯利月", @@ -88,10 +96,14 @@ define( "埃波月", "以祿月" ], + "field-sat-relative+0": "本週六", + "field-sat-relative+1": "下週六", "timeFormat-full": "zzzzah時mm分ss秒", "field-day-relative+0": "今天", + "field-thu-relative+0": "本週四", "field-day-relative+1": "明天", - "dateFormatItem-GyMMMd": "Gy年M月d日", + "field-thu-relative+1": "下週四", + "dateFormatItem-GyMMMd": "G y 年 M 月 d 日", "field-day-relative+2": "後天", "dateFormatItem-H": "H時", "months-standAlone-abbr": [ @@ -116,13 +128,13 @@ define( "4季" ], "quarters-standAlone-wide": [ - "第一季度", - "第二季度", - "第三季度", - "第四季度" + "第1季", + "第2季", + "第3季", + "第4季" ], - "dateFormatItem-Gy": "Gy年", - "dateFormatItem-yyyyMMMEd": "Gy年M月d日E", + "dateFormatItem-Gy": "G y 年", + "dateFormatItem-yyyyMMMEd": "G y 年 M 月 d 日E", "dateFormatItem-M": "M月", "days-standAlone-wide": [ "星期日", @@ -133,16 +145,18 @@ define( "星期五", "星期六" ], - "dateFormatItem-yyyyMMM": "Gy年M月", - "dateFormatItem-yyyyMMMd": "Gy年M月d日", + "dateFormatItem-yyyyMMM": "G y 年 M 月", + "dateFormatItem-yyyyMMMd": "G y 年 M 月 d 日", "months-standAlone-wide-leap": "亞達月 II", "timeFormat-medium": "ah:mm:ss", + "field-sun-relative+0": "本週日", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "下週日", "quarters-standAlone-abbr": [ - "1季度", - "2季度", - "3季度", - "4季度" + "1季", + "2季", + "3季", + "4季" ], "eraAbbr": [ "創世紀元" @@ -150,23 +164,24 @@ define( "field-minute": "分鐘", "field-dayperiod": "上午/下午", "days-standAlone-abbr": [ - "周日", - "周一", - "周二", - "周三", - "周四", - "周五", - "周六" + "週日", + "週一", + "週二", + "週三", + "週四", + "週五", + "週六" ], "dateFormatItem-d": "d日", "field-day-relative+-1": "昨天", "dateFormatItem-h": "ah時", - "dateTimeFormat-long": "{1}{0}", "dayPeriods-format-narrow-am": "上午", "field-day-relative+-2": "前天", "dateFormatItem-MMMd": "M月d日", - "dateFormatItem-MEd": "M/d(E)", + "dateFormatItem-MEd": "M/d (E)", "dateTimeFormat-full": "{1}{0}", + "field-fri-relative+0": "本週五", + "field-fri-relative+1": "下週五", "field-day": "日", "days-format-wide": [ "星期日", @@ -179,7 +194,7 @@ define( ], "field-zone": "時區", "months-standAlone-abbr-leap": "亞達月 II", - "dateFormatItem-y": "Gy年", + "dateFormatItem-y": "G y 年", "field-year-relative+-1": "去年", "field-month-relative+-1": "上個月", "dateFormatItem-hm": "ah:mm", @@ -204,7 +219,7 @@ define( "五", "六" ], - "dateFormatItem-yyyyMd": "Gy/M/d", + "dateFormatItem-yyyyMd": "G y/M/d", "field-month": "月", "days-standAlone-narrow": [ "日", @@ -215,25 +230,33 @@ define( "五", "六" ], + "field-tue-relative+0": "本週二", + "field-tue-relative+1": "下週二", "dayPeriods-format-wide-am": "上午", + "field-mon-relative+0": "本週一", + "field-mon-relative+1": "下週一", "dateFormat-short": "Gy/M/d", + "dayPeriods-format-narrow-noon": "中午", "field-second": "秒", + "field-sat-relative+-1": "上週六", + "field-sun-relative+-1": "上週日", "field-month-relative+0": "本月", "field-month-relative+1": "下個月", "dateFormatItem-Ed": "d日(E)", "field-week": "週", - "dateFormat-medium": "Gy/M/d", + "dateFormat-medium": "Gy年M月d日", "field-year-relative+0": "今年", "field-week-relative+-1": "上週", - "dateFormatItem-yyyyM": "Gy/M", + "dateFormatItem-yyyyM": "G y/M", "field-year-relative+1": "明年", "dayPeriods-format-narrow-pm": "下午", - "dateFormatItem-yyyyQQQQ": "Gy年QQQQ", + "dateFormatItem-yyyyQQQQ": "G y 年 QQQQ", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "ah:mm:ss", "months-format-wide-leap": "亞達月 II", "dateFormatItem-GyMMM": "Gy年M月", - "dateFormatItem-yyyy": "Gy年", + "field-mon-relative+-1": "上週一", + "dateFormatItem-yyyy": "G y 年", "field-week-relative+0": "本週", "field-week-relative+1": "下週" } diff --git a/cldr/nls/zh-hant/indian.js b/cldr/nls/zh-hant/indian.js index ef59c713c7..aff65e3654 100644 --- a/cldr/nls/zh-hant/indian.js +++ b/cldr/nls/zh-hant/indian.js @@ -1,25 +1,14 @@ define( //begin v1.x content { - "field-second": "秒", - "field-year-relative+-1": "去年", - "field-week": "週", - "field-month-relative+-1": "上個月", + "field-sat-relative+0": "本週六", + "field-sat-relative+1": "下週六", + "field-dayperiod": "上午/下午", + "field-sun-relative+-1": "上週日", + "field-mon-relative+-1": "上週一", + "field-minute": "分鐘", "field-day-relative+-1": "昨天", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12" - ], + "field-weekday": "週天", "field-day-relative+-2": "前天", "months-standAlone-narrow": [ "1", @@ -35,7 +24,11 @@ define( "11", "12" ], - "months-standAlone-wide": [ + "field-era": "年代", + "field-hour": "小時", + "field-sun-relative+0": "本週日", + "field-sun-relative+1": "下週日", + "months-standAlone-abbr": [ "制檀邏月", "吠舍佉月", "逝瑟吒月", @@ -49,9 +42,25 @@ define( "磨祛月", "頗勒窶拏月" ], + "field-wed-relative+-1": "上週三", + "field-day-relative+0": "今天", + "field-day-relative+1": "明天", + "eraAbbr": [ + "印度曆" + ], + "field-day-relative+2": "後天", + "field-tue-relative+0": "本週二", + "field-zone": "時區", + "field-tue-relative+1": "下週二", + "field-week-relative+-1": "上週", + "field-year-relative+0": "今年", + "field-year-relative+1": "明年", + "field-sat-relative+-1": "上週六", + "field-year-relative+-1": "去年", "field-year": "年", - "field-week-relative+0": "本週", - "months-standAlone-abbr": [ + "field-fri-relative+0": "本週五", + "field-fri-relative+1": "下週五", + "months-standAlone-wide": [ "制檀邏月", "吠舍佉月", "逝瑟吒月", @@ -65,19 +74,10 @@ define( "磨祛月", "頗勒窶拏月" ], + "field-week": "週", + "field-week-relative+0": "本週", "field-week-relative+1": "下週", - "field-minute": "分鐘", - "field-week-relative+-1": "上週", - "field-day-relative+0": "今天", - "field-hour": "小時", - "field-day-relative+1": "明天", - "field-day-relative+2": "後天", - "field-day": "日", - "field-month-relative+0": "本月", - "field-month-relative+1": "下個月", - "field-dayperiod": "上午/下午", - "field-month": "月", - "months-format-wide": [ + "months-format-abbr": [ "制檀邏月", "吠舍佉月", "逝瑟吒月", @@ -91,10 +91,33 @@ define( "磨祛月", "頗勒窶拏月" ], - "field-era": "年代", - "field-year-relative+0": "今年", - "field-year-relative+1": "明年", - "months-format-abbr": [ + "field-month-relative+0": "本月", + "field-month": "月", + "field-month-relative+1": "下個月", + "field-fri-relative+-1": "上週五", + "field-second": "秒", + "field-tue-relative+-1": "上週二", + "field-day": "日", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" + ], + "field-mon-relative+0": "本週一", + "field-mon-relative+1": "下週一", + "field-thu-relative+0": "本週四", + "field-second-relative+0": "現在", + "field-thu-relative+1": "下週四", + "months-format-wide": [ "制檀邏月", "吠舍佉月", "逝瑟吒月", @@ -108,11 +131,10 @@ define( "磨祛月", "頗勒窶拏月" ], - "eraAbbr": [ - "印度曆" - ], - "field-weekday": "週天", - "field-zone": "時區" + "field-wed-relative+0": "本週三", + "field-wed-relative+1": "下週三", + "field-month-relative+-1": "上個月", + "field-thu-relative+-1": "上週四" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh-hant/islamic.js b/cldr/nls/zh-hant/islamic.js index 6f4b7aad19..dcfd70418a 100644 --- a/cldr/nls/zh-hant/islamic.js +++ b/cldr/nls/zh-hant/islamic.js @@ -24,12 +24,16 @@ define( "11", "12" ], + "field-second-relative+0": "現在", "field-weekday": "週天", + "field-wed-relative+0": "本週三", + "field-wed-relative+1": "下週三", "dateFormatItem-GyMMMEd": "Gy年M月d日E", "dateFormatItem-MMMEd": "M月d日E", "eraNarrow": [ "伊斯蘭曆" ], + "field-tue-relative+-1": "上週二", "days-format-short": [ "日", "一", @@ -40,6 +44,8 @@ define( "六" ], "dateFormat-long": "Gy年M月d日", + "field-fri-relative+-1": "上週五", + "field-wed-relative+-1": "上週三", "months-format-wide": [ "穆哈蘭姆月", "色法爾月", @@ -58,7 +64,9 @@ define( "dayPeriods-format-wide-pm": "下午", "dateFormat-full": "Gy年M月d日EEEE", "dateFormatItem-yyyyMEd": "Gy/M/d(E)", + "field-thu-relative+-1": "上週四", "dateFormatItem-Md": "M/d", + "dayPeriods-format-wide-noon": "中午", "field-era": "年代", "months-standAlone-wide": [ "穆哈蘭姆月", @@ -98,9 +106,13 @@ define( "都爾喀爾德月", "都爾黑哲月" ], + "field-sat-relative+0": "本週六", + "field-sat-relative+1": "下週六", "timeFormat-full": "zzzzah時mm分ss秒", "field-day-relative+0": "今天", + "field-thu-relative+0": "本週四", "field-day-relative+1": "明天", + "field-thu-relative+1": "下週四", "dateFormatItem-GyMMMd": "Gy年M月d日", "field-day-relative+2": "後天", "dateFormatItem-H": "H時", @@ -125,10 +137,10 @@ define( "4季" ], "quarters-standAlone-wide": [ - "第一季度", - "第二季度", - "第三季度", - "第四季度" + "第1季", + "第2季", + "第3季", + "第4季" ], "dateFormatItem-Gy": "Gy年", "dateFormatItem-yyyyMMMEd": "Gy年M月d日E", @@ -145,12 +157,14 @@ define( "dateFormatItem-yyyyMMM": "Gy年M月", "dateFormatItem-yyyyMMMd": "Gy年M月d日", "timeFormat-medium": "ah:mm:ss", + "field-sun-relative+0": "本週日", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "下週日", "quarters-standAlone-abbr": [ - "1季度", - "2季度", - "3季度", - "4季度" + "1季", + "2季", + "3季", + "4季" ], "eraAbbr": [ "伊斯蘭曆" @@ -158,23 +172,24 @@ define( "field-minute": "分鐘", "field-dayperiod": "上午/下午", "days-standAlone-abbr": [ - "周日", - "周一", - "周二", - "周三", - "周四", - "周五", - "周六" + "週日", + "週一", + "週二", + "週三", + "週四", + "週五", + "週六" ], "dateFormatItem-d": "d日", "field-day-relative+-1": "昨天", "dateFormatItem-h": "ah時", - "dateTimeFormat-long": "{1}{0}", "dayPeriods-format-narrow-am": "上午", "field-day-relative+-2": "前天", "dateFormatItem-MMMd": "M月d日", "dateFormatItem-MEd": "M/d(E)", "dateTimeFormat-full": "{1}{0}", + "field-fri-relative+0": "本週五", + "field-fri-relative+1": "下週五", "field-day": "日", "days-format-wide": [ "星期日", @@ -227,6 +242,7 @@ define( ], "dateFormatItem-yyyyMd": "Gy/M/d", "field-month": "月", + "dateFormatItem-MMM": "LLL", "days-standAlone-narrow": [ "日", "一", @@ -236,14 +252,21 @@ define( "五", "六" ], + "field-tue-relative+0": "本週二", + "field-tue-relative+1": "下週二", "dayPeriods-format-wide-am": "上午", + "field-mon-relative+0": "本週一", + "field-mon-relative+1": "下週一", "dateFormat-short": "Gy/M/d", + "dayPeriods-format-narrow-noon": "中午", "field-second": "秒", + "field-sat-relative+-1": "上週六", + "field-sun-relative+-1": "上週日", "field-month-relative+0": "本月", "field-month-relative+1": "下個月", "dateFormatItem-Ed": "d日(E)", "field-week": "週", - "dateFormat-medium": "Gy/M/d", + "dateFormat-medium": "Gy年M月d日", "field-year-relative+0": "今年", "field-week-relative+-1": "上週", "dateFormatItem-yyyyM": "Gy/M", @@ -253,6 +276,7 @@ define( "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "ah:mm:ss", "dateFormatItem-GyMMM": "Gy年M月", + "field-mon-relative+-1": "上週一", "dateFormatItem-yyyy": "Gy年", "field-week-relative+0": "本週", "field-week-relative+1": "下週" diff --git a/cldr/nls/zh-hant/japanese.js b/cldr/nls/zh-hant/japanese.js index a781386eea..21ce466684 100644 --- a/cldr/nls/zh-hant/japanese.js +++ b/cldr/nls/zh-hant/japanese.js @@ -1,26 +1,42 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "Gy年M月d日E", - "field-dayperiod": "上午/下午", - "field-minute": "分鐘", - "dateFormatItem-MMMEd": "M月d日E", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "昨天", - "dateFormatItem-hms": "ah:mm:ss", - "field-day-relative+-2": "前天", + "field-second-relative+0": "現在", "field-weekday": "週天", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "field-era": "年代", - "dateFormatItem-Gy": "Gy年", + "field-wed-relative+0": "本週三", + "field-wed-relative+1": "下週三", + "dateFormatItem-GyMMMEd": "Gy年M月d日E", + "dateFormatItem-MMMEd": "M月d日E", + "field-tue-relative+-1": "上週二", + "dateFormat-long": "Gy年M月d日", + "field-fri-relative+-1": "上週五", + "field-wed-relative+-1": "上週三", + "dateFormatItem-yyyyQQQ": "Gy年QQQ", "dateTimeFormat-medium": "{1} {0}", + "dateFormat-full": "Gy年M月d日EEEE", + "dateFormatItem-yyyyMEd": "Gy/M/d(E)", + "field-thu-relative+-1": "上週四", + "dateFormatItem-Md": "M/d", + "field-era": "年代", + "field-year": "年", "field-hour": "小時", - "dateFormatItem-y": "Gy年", - "dateFormatItem-yyyy": "Gy年", - "dateFormatItem-Ed": "d日(E)", + "field-sat-relative+0": "本週六", + "field-sat-relative+1": "下週六", "field-day-relative+0": "今天", "field-day-relative+1": "明天", + "field-thu-relative+0": "本週四", + "dateFormatItem-GyMMMd": "Gy年M月d日", + "field-day-relative+2": "後天", + "field-thu-relative+1": "下週四", + "dateFormatItem-H": "H時", + "dateFormatItem-Gy": "Gy年", + "dateFormatItem-yyyyMMMEd": "Gy年M月d日E", + "dateFormatItem-M": "M月", + "dateFormatItem-yyyyMMM": "Gy年M月", + "dateFormatItem-yyyyMMMd": "Gy年M月d日", + "field-sun-relative+0": "本週日", + "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "下週日", "eraAbbr": [ "大化", "白雉", @@ -259,44 +275,54 @@ define( "昭和", "平成" ], - "field-day-relative+2": "後天", - "dateFormatItem-GyMMMd": "Gy年M月d日", - "field-zone": "時區", - "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "上週", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "今年", - "field-year-relative+1": "明年", - "field-year-relative+-1": "去年", + "field-minute": "分鐘", + "field-dayperiod": "上午/下午", + "dateFormatItem-d": "d日", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "Gy年QQQQ", - "field-year": "年", + "field-day-relative+-1": "昨天", + "dateFormatItem-h": "ah時", "dateTimeFormat-long": "{1} {0}", - "field-week": "週", - "dateFormatItem-yyyyMd": "Gy/M/d", - "dateFormatItem-yyyyMMMd": "Gy年M月d日", - "dateFormatItem-yyyyMEd": "Gy/M/d(E)", + "field-day-relative+-2": "前天", "dateFormatItem-MMMd": "MMM d", - "field-week-relative+0": "本週", - "field-week-relative+1": "下週", - "field-month-relative+0": "本月", - "dateFormatItem-H": "H時", - "field-month": "月", - "field-month-relative+1": "下個月", - "dateFormatItem-M": "M月", - "field-second": "秒", - "dateFormatItem-GyMMMEd": "Gy年M月d日E", - "dateFormatItem-GyMMM": "Gy年M月", - "field-day": "日", - "dateFormatItem-yyyyQQQ": "Gy年QQQ", "dateFormatItem-MEd": "M/d(E)", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "本週五", + "field-fri-relative+1": "下週五", + "field-day": "日", + "field-zone": "時區", + "dateFormatItem-y": "Gy年", + "field-year-relative+-1": "去年", + "field-month-relative+-1": "上個月", "dateFormatItem-hm": "ah:mm", + "dateFormatItem-yyyyMd": "Gy/M/d", + "field-month": "月", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "本週二", + "field-tue-relative+1": "下週二", + "field-mon-relative+0": "本週一", + "field-mon-relative+1": "下週一", + "dateFormat-short": "Gy/M/d", + "field-second": "秒", + "field-sat-relative+-1": "上週六", + "field-sun-relative+-1": "上週日", + "field-month-relative+0": "本月", + "field-month-relative+1": "下個月", + "dateFormatItem-Ed": "d日(E)", + "field-week": "週", + "dateFormat-medium": "Gy年M月d日", + "field-year-relative+0": "今年", + "field-week-relative+-1": "上週", "dateFormatItem-yyyyM": "Gy/M", - "dateFormatItem-Md": "M/d", - "dateFormatItem-yyyyMMM": "Gy年M月", - "dateFormatItem-d": "d日", - "field-month-relative+-1": "上個月", - "dateFormatItem-h": "ah時" + "field-year-relative+1": "明年", + "dateFormatItem-yyyyQQQQ": "Gy年QQQQ", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "ah:mm:ss", + "dateFormatItem-GyMMM": "Gy年M月", + "field-mon-relative+-1": "上週一", + "dateFormatItem-yyyy": "Gy年", + "field-week-relative+0": "本週", + "field-week-relative+1": "下週" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh-hant/number.js b/cldr/nls/zh-hant/number.js index 90f30785aa..f3ed7be869 100644 --- a/cldr/nls/zh-hant/number.js +++ b/cldr/nls/zh-hant/number.js @@ -10,10 +10,11 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ".", + "superscriptingExponent": "×", "nan": "非數值", "perMille": "‰", "decimalFormat": "#,##0.###", - "currencyFormat": "¤#,##0.00", + "currencyFormat": "¤#,##0.00;(¤#,##0.00)", "plusSign": "+", "decimalFormat-long": "000兆", "decimalFormat-short": "000T" diff --git a/cldr/nls/zh-hant/persian.js b/cldr/nls/zh-hant/persian.js index 477d2ac661..0a2207b96b 100644 --- a/cldr/nls/zh-hant/persian.js +++ b/cldr/nls/zh-hant/persian.js @@ -24,12 +24,16 @@ define( "11", "12" ], + "field-second-relative+0": "現在", "field-weekday": "週天", - "dateFormatItem-GyMMMEd": "Gy年M月d日E", - "dateFormatItem-MMMEd": "M月d日E", + "field-wed-relative+0": "本週三", + "field-wed-relative+1": "下週三", + "dateFormatItem-GyMMMEd": "G y 年 M 月 d 日 E", + "dateFormatItem-MMMEd": "M 月 d 日E", "eraNarrow": [ "伊朗曆" ], + "field-tue-relative+-1": "上週二", "days-format-short": [ "日", "一", @@ -39,7 +43,9 @@ define( "五", "六" ], - "dateFormat-long": "Gy年M月d日", + "dateFormat-long": "G y年M月d日", + "field-fri-relative+-1": "上週五", + "field-wed-relative+-1": "上週三", "months-format-wide": [ "1月", "2月", @@ -54,11 +60,13 @@ define( "11月", "12月" ], - "dateFormatItem-yyyyQQQ": "Gy年QQQ", + "dateFormatItem-yyyyQQQ": "G y 年 QQQ", "dayPeriods-format-wide-pm": "下午", - "dateFormat-full": "Gy年M月d日EEEE", - "dateFormatItem-yyyyMEd": "Gy/M/d(E)", + "dateFormat-full": "G y 年 M 月 d 日 EEEE", + "dateFormatItem-yyyyMEd": "G y/M/d (E)", + "field-thu-relative+-1": "上週四", "dateFormatItem-Md": "M/d", + "dayPeriods-format-wide-noon": "中午", "field-era": "年代", "months-standAlone-wide": [ "1月", @@ -98,10 +106,14 @@ define( "11月", "12月" ], + "field-sat-relative+0": "本週六", + "field-sat-relative+1": "下週六", "timeFormat-full": "zzzzah時mm分ss秒", "field-day-relative+0": "今天", + "field-thu-relative+0": "本週四", "field-day-relative+1": "明天", - "dateFormatItem-GyMMMd": "Gy年M月d日", + "field-thu-relative+1": "下週四", + "dateFormatItem-GyMMMd": "G y 年 M 月 d 日", "field-day-relative+2": "後天", "dateFormatItem-H": "H時", "months-standAlone-abbr": [ @@ -125,13 +137,13 @@ define( "4季" ], "quarters-standAlone-wide": [ - "第一季度", - "第二季度", - "第三季度", - "第四季度" + "第1季", + "第2季", + "第3季", + "第4季" ], - "dateFormatItem-Gy": "Gy年", - "dateFormatItem-yyyyMMMEd": "Gy年M月d日E", + "dateFormatItem-Gy": "G y 年", + "dateFormatItem-yyyyMMMEd": "G y 年 M 月 d 日E", "dateFormatItem-M": "M月", "days-standAlone-wide": [ "星期日", @@ -142,15 +154,17 @@ define( "星期五", "星期六" ], - "dateFormatItem-yyyyMMM": "Gy年M月", - "dateFormatItem-yyyyMMMd": "Gy年M月d日", + "dateFormatItem-yyyyMMM": "G y 年 M 月", + "dateFormatItem-yyyyMMMd": "G y 年 M 月 d 日", "timeFormat-medium": "ah:mm:ss", + "field-sun-relative+0": "本週日", "dateFormatItem-Hm": "H:mm", + "field-sun-relative+1": "下週日", "quarters-standAlone-abbr": [ - "1季度", - "2季度", - "3季度", - "4季度" + "1季", + "2季", + "3季", + "4季" ], "eraAbbr": [ "伊朗曆" @@ -158,23 +172,24 @@ define( "field-minute": "分鐘", "field-dayperiod": "上午/下午", "days-standAlone-abbr": [ - "周日", - "周一", - "周二", - "周三", - "周四", - "周五", - "周六" + "週日", + "週一", + "週二", + "週三", + "週四", + "週五", + "週六" ], "dateFormatItem-d": "d日", "field-day-relative+-1": "昨天", "dateFormatItem-h": "ah時", - "dateTimeFormat-long": "{1}{0}", "dayPeriods-format-narrow-am": "上午", "field-day-relative+-2": "前天", "dateFormatItem-MMMd": "M月d日", - "dateFormatItem-MEd": "M/d(E)", + "dateFormatItem-MEd": "M/d (E)", "dateTimeFormat-full": "{1}{0}", + "field-fri-relative+0": "本週五", + "field-fri-relative+1": "下週五", "field-day": "日", "days-format-wide": [ "星期日", @@ -186,7 +201,6 @@ define( "星期六" ], "field-zone": "時區", - "dateFormatItem-y": "Gy年", "months-standAlone-narrow": [ "1", "2", @@ -201,6 +215,7 @@ define( "11", "12" ], + "dateFormatItem-y": "G y 年", "field-year-relative+-1": "去年", "field-month-relative+-1": "上個月", "dateFormatItem-hm": "ah:mm", @@ -225,7 +240,7 @@ define( "五", "六" ], - "dateFormatItem-yyyyMd": "Gy/M/d", + "dateFormatItem-yyyyMd": "G y/M/d", "field-month": "月", "days-standAlone-narrow": [ "日", @@ -236,24 +251,32 @@ define( "五", "六" ], + "field-tue-relative+0": "本週二", + "field-tue-relative+1": "下週二", "dayPeriods-format-wide-am": "上午", - "dateFormat-short": "Gy/M/d", + "field-mon-relative+0": "本週一", + "field-mon-relative+1": "下週一", + "dateFormat-short": "G y/M/d", + "dayPeriods-format-narrow-noon": "中午", "field-second": "秒", + "field-sat-relative+-1": "上週六", + "field-sun-relative+-1": "上週日", "field-month-relative+0": "本月", "field-month-relative+1": "下個月", "dateFormatItem-Ed": "d日(E)", "field-week": "週", - "dateFormat-medium": "Gy/M/d", + "dateFormat-medium": "G y年M月d日", "field-year-relative+0": "今年", "field-week-relative+-1": "上週", - "dateFormatItem-yyyyM": "Gy/M", + "dateFormatItem-yyyyM": "G y/M", "field-year-relative+1": "明年", "dayPeriods-format-narrow-pm": "下午", - "dateFormatItem-yyyyQQQQ": "Gy年QQQQ", + "dateFormatItem-yyyyQQQQ": "G y 年 QQQQ", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-hms": "ah:mm:ss", "dateFormatItem-GyMMM": "Gy年M月", - "dateFormatItem-yyyy": "Gy年", + "field-mon-relative+-1": "上週一", + "dateFormatItem-yyyy": "G y 年", "field-week-relative+0": "本週", "field-week-relative+1": "下週" } diff --git a/cldr/nls/zh-hant/roc.js b/cldr/nls/zh-hant/roc.js index aef9b514c1..12d2a5d824 100644 --- a/cldr/nls/zh-hant/roc.js +++ b/cldr/nls/zh-hant/roc.js @@ -1,35 +1,83 @@ define( //begin v1.x content { - "field-second": "秒", - "field-year-relative+-1": "去年", - "field-week": "週", - "field-month-relative+-1": "上個月", - "field-day-relative+-1": "昨天", - "field-day-relative+-2": "前天", + "field-second-relative+0": "現在", + "field-weekday": "週天", + "field-wed-relative+0": "本週三", + "field-wed-relative+1": "下週三", + "dateFormatItem-GyMMMEd": "Gy年M月d日E", + "dateFormatItem-MMMEd": "M月d日E", + "field-tue-relative+-1": "上週二", + "dateFormat-long": "Gy年M月d日", + "field-fri-relative+-1": "上週五", + "field-wed-relative+-1": "上週三", + "dateFormatItem-yyyyQQQ": "Gy年QQQ", + "dateFormat-full": "Gy年M月d日EEEE", + "dateFormatItem-yyyyMEd": "Gy/M/d(E)", + "field-thu-relative+-1": "上週四", + "dateFormatItem-Md": "M/d", + "field-era": "年代", "field-year": "年", - "field-week-relative+0": "本週", - "field-week-relative+1": "下週", - "field-minute": "分鐘", - "field-week-relative+-1": "上週", - "field-day-relative+0": "今天", "field-hour": "小時", + "field-sat-relative+0": "本週六", + "field-sat-relative+1": "下週六", + "field-day-relative+0": "今天", + "field-thu-relative+0": "本週四", "field-day-relative+1": "明天", + "field-thu-relative+1": "下週四", + "dateFormatItem-GyMMMd": "Gy年M月d日", "field-day-relative+2": "後天", + "dateFormatItem-Gy": "Gy年", + "dateFormatItem-yyyyMMMEd": "Gy年M月d日E", + "dateFormatItem-M": "M月", + "dateFormatItem-yyyyMMM": "Gy年M月", + "dateFormatItem-yyyyMMMd": "Gy年M月d日", + "field-sun-relative+0": "本週日", + "field-sun-relative+1": "下週日", + "eraAbbr": [ + "民國前", + "民國" + ], + "field-minute": "分鐘", + "field-dayperiod": "上午/下午", + "dateFormatItem-d": "d日", + "field-day-relative+-1": "昨天", + "field-day-relative+-2": "前天", + "dateFormatItem-MMMd": "M月d日", + "dateFormatItem-MEd": "M/d(E)", + "field-fri-relative+0": "本週五", + "field-fri-relative+1": "下週五", "field-day": "日", + "field-zone": "時區", + "dateFormatItem-y": "Gy年", + "field-year-relative+-1": "去年", + "field-month-relative+-1": "上個月", + "dateFormatItem-yyyyMd": "Gy/M/d", + "field-month": "月", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "本週二", + "field-tue-relative+1": "下週二", + "field-mon-relative+0": "本週一", + "field-mon-relative+1": "下週一", + "dateFormat-short": "Gy/M/d", + "field-second": "秒", + "field-sat-relative+-1": "上週六", + "field-sun-relative+-1": "上週日", "field-month-relative+0": "本月", "field-month-relative+1": "下個月", - "field-dayperiod": "上午/下午", - "field-month": "月", - "field-era": "年代", + "dateFormatItem-Ed": "d日(E)", + "field-week": "週", + "dateFormat-medium": "Gy年M月d日", "field-year-relative+0": "今年", + "field-week-relative+-1": "上週", + "dateFormatItem-yyyyM": "Gy/M", "field-year-relative+1": "明年", - "eraAbbr": [ - "民國前", - "民國" - ], - "field-weekday": "週天", - "field-zone": "時區" + "dateFormatItem-yyyyQQQQ": "Gy年QQQQ", + "dateFormatItem-GyMMM": "Gy年M月", + "field-mon-relative+-1": "上週一", + "dateFormatItem-yyyy": "Gy年", + "field-week-relative+0": "本週", + "field-week-relative+1": "下週" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh-hk/currency.js b/cldr/nls/zh-hk/currency.js index 974545aede..afd2d257c4 100644 --- a/cldr/nls/zh-hk/currency.js +++ b/cldr/nls/zh-hk/currency.js @@ -9,7 +9,7 @@ define( "AUD_displayName": "澳幣", "JPY_displayName": "日圓", "$locale": "zh-hant-hk", - "USD_displayName": "美金", + "CNY_symbol": "CN¥", "GBP_displayName": "英鎊", "EUR_displayName": "歐元" } diff --git a/cldr/nls/zh-hk/gregorian.js b/cldr/nls/zh-hk/gregorian.js index b327180efb..b911efdce3 100644 --- a/cldr/nls/zh-hk/gregorian.js +++ b/cldr/nls/zh-hk/gregorian.js @@ -1,35 +1,59 @@ define( //begin v1.x content { - "quarters-standAlone-wide": [ - "第1季", - "第2季", - "第3季", - "第4季" + "field-sat-relative+0": "本週六", + "field-sat-relative+1": "下週六", + "field-sun-relative+-1": "上週日", + "field-mon-relative+-1": "上週一", + "field-minute": "分鐘", + "eraNames": [ + "西元前", + "公元前", + "西元", + "公元" ], - "quarters-format-abbr": [ + "dateTimeFormat-full": "{1}{0}", + "field-weekday": "週天", + "dateFormatItem-yQQQ": "y年QQQ", + "field-era": "年代", + "dateFormatItem-Gy": "G y 年", + "field-hour": "小時", + "quarters-standAlone-abbr": [ "第1季", "第2季", "第3季", "第4季" ], - "dateFormat-medium": "y/M/d", + "timeFormat-full": "zzzzah時mm分ss秒", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "dateFormatItem-yMM": "y-MM", + "field-sun-relative+0": "本週日", + "field-sun-relative+1": "下週日", + "field-wed-relative+-1": "上週三", + "dateFormatItem-Ed": "d日(E)", + "eraAbbr": [ + "西元前", + "公元前", + "西元", + "公元" + ], + "field-day-relative+2": "後天", + "dateFormatItem-GyMMMd": "G y 年 M 月 d 日", + "field-zone": "時區", + "field-tue-relative+0": "本週二", + "dateFormatItem-Ehm": "E a h:mm", + "field-tue-relative+1": "下週二", + "field-week-relative+-1": "上週", + "field-sat-relative+-1": "上週六", "$locale": "zh-hant-hk", - "quarters-standAlone-abbr": [ + "quarters-standAlone-wide": [ "第1季", "第2季", "第3季", "第4季" ], - "dateFormatItem-MEd": "M/d(E)", - "dateFormatItem-yMEd": "y/M/d(E)", - "dateFormatItem-Hm": "H:mm", - "dateFormatItem-H": "H時", - "eraNarrow": [ - "西元前", - "西元" - ], - "timeFormat-full": "zzzzah時mm分ss秒", + "field-fri-relative+0": "本週五", + "field-fri-relative+1": "下週五", "months-standAlone-wide": [ "1月", "2月", @@ -44,14 +68,36 @@ define( "11月", "12月" ], - "eraNames": [ - "西元前", - "西元" + "field-week": "週", + "field-week-relative+0": "本週", + "dateFormatItem-Ehms": "E a h:mm:ss", + "field-week-relative+1": "下週", + "timeFormat-long": "zah時mm分ss秒", + "dateFormatItem-yQQQQ": "y年QQQQ", + "field-month-relative+1": "下個月", + "dateFormatItem-H": "H時", + "field-fri-relative+-1": "上週五", + "quarters-format-abbr": [ + "第1季", + "第2季", + "第3季", + "第4季" ], - "dateFormatItem-yQQQ": "y年QQQ", - "dateFormatItem-yMM": "y-MM", - "dateFormatItem-Hms": "H:mm:ss", + "field-second": "秒", + "dateFormatItem-GyMMMEd": "G y 年 M 月 d 日E", + "field-tue-relative+-1": "上週二", + "dateFormatItem-GyMMM": "G y 年 M 月", + "dateFormatItem-MEd": "M/d(E)", + "field-mon-relative+0": "本週一", + "field-mon-relative+1": "下週一", + "field-second-relative+0": "現在", + "field-thu-relative+0": "本週四", "dateFormat-short": "y/M/d", + "field-thu-relative+1": "下週四", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-EHm": "E HH:mm", + "dateFormatItem-yMEd": "y/M/d(E)", + "field-wed-relative+0": "本週三", "months-format-wide": [ "1月", "2月", @@ -66,19 +112,22 @@ define( "11月", "12月" ], - "timeFormat-long": "zah時mm分ss秒", - "eraAbbr": [ - "西元前", - "西元" - ], - "dateFormatItem-h": "ah時", + "field-wed-relative+1": "下週三", + "field-month-relative+-1": "上個月", "quarters-format-wide": [ "第1季", "第2季", "第3季", "第4季" ], - "dateFormatItem-Ed": "d日(E)" + "eraNarrow": [ + "西元前", + "公元前", + "西元", + "公元" + ], + "dateFormatItem-h": "ah時", + "field-thu-relative+-1": "上週四" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh-hk/number.js b/cldr/nls/zh-hk/number.js index 1c80fd4607..364ec6e117 100644 --- a/cldr/nls/zh-hk/number.js +++ b/cldr/nls/zh-hk/number.js @@ -1,11 +1,9 @@ define( //begin v1.x content { - "decimalFormat-long": "000兆", - "nan": "非數值", - "currencyFormat": "¤#,##0.00", "$locale": "zh-hant-hk", - "decimalFormat-short": "000T" + "decimalFormat-short": "000T", + "nan": "非數值" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh-tw/currency.js b/cldr/nls/zh-tw/currency.js index a197b17e73..0ea6bf9758 100644 --- a/cldr/nls/zh-tw/currency.js +++ b/cldr/nls/zh-tw/currency.js @@ -9,7 +9,7 @@ define( "AUD_displayName": "澳幣", "JPY_displayName": "日圓", "$locale": "zh-hant-tw", - "USD_displayName": "美金", + "CNY_symbol": "CN¥", "GBP_displayName": "英鎊", "EUR_displayName": "歐元" } diff --git a/cldr/nls/zh-tw/gregorian.js b/cldr/nls/zh-tw/gregorian.js index 43405fdd95..b856f0e54c 100644 --- a/cldr/nls/zh-tw/gregorian.js +++ b/cldr/nls/zh-tw/gregorian.js @@ -1,35 +1,59 @@ define( //begin v1.x content { - "quarters-standAlone-wide": [ - "第1季", - "第2季", - "第3季", - "第4季" + "field-sat-relative+0": "本週六", + "field-sat-relative+1": "下週六", + "field-sun-relative+-1": "上週日", + "field-mon-relative+-1": "上週一", + "field-minute": "分鐘", + "eraNames": [ + "西元前", + "公元前", + "西元", + "公元" ], - "quarters-format-abbr": [ + "dateTimeFormat-full": "{1}{0}", + "field-weekday": "週天", + "dateFormatItem-yQQQ": "y年QQQ", + "field-era": "年代", + "dateFormatItem-Gy": "G y 年", + "field-hour": "小時", + "quarters-standAlone-abbr": [ "第1季", "第2季", "第3季", "第4季" ], - "dateFormat-medium": "y/M/d", + "timeFormat-full": "zzzzah時mm分ss秒", + "dateTimeFormats-appendItem-Timezone": "{0} {1}", + "dateFormatItem-yMM": "y-MM", + "field-sun-relative+0": "本週日", + "field-sun-relative+1": "下週日", + "field-wed-relative+-1": "上週三", + "dateFormatItem-Ed": "d日(E)", + "eraAbbr": [ + "西元前", + "公元前", + "西元", + "公元" + ], + "field-day-relative+2": "後天", + "dateFormatItem-GyMMMd": "G y 年 M 月 d 日", + "field-zone": "時區", + "field-tue-relative+0": "本週二", + "dateFormatItem-Ehm": "E a h:mm", + "field-tue-relative+1": "下週二", + "field-week-relative+-1": "上週", + "field-sat-relative+-1": "上週六", "$locale": "zh-hant-tw", - "quarters-standAlone-abbr": [ + "quarters-standAlone-wide": [ "第1季", "第2季", "第3季", "第4季" ], - "dateFormatItem-MEd": "M/d(E)", - "dateFormatItem-yMEd": "y/M/d(E)", - "dateFormatItem-Hm": "H:mm", - "dateFormatItem-H": "H時", - "eraNarrow": [ - "西元前", - "西元" - ], - "timeFormat-full": "zzzzah時mm分ss秒", + "field-fri-relative+0": "本週五", + "field-fri-relative+1": "下週五", "months-standAlone-wide": [ "1月", "2月", @@ -44,14 +68,36 @@ define( "11月", "12月" ], - "eraNames": [ - "西元前", - "西元" + "field-week": "週", + "field-week-relative+0": "本週", + "dateFormatItem-Ehms": "E a h:mm:ss", + "field-week-relative+1": "下週", + "timeFormat-long": "zah時mm分ss秒", + "dateFormatItem-yQQQQ": "y年QQQQ", + "field-month-relative+1": "下個月", + "dateFormatItem-H": "H時", + "field-fri-relative+-1": "上週五", + "quarters-format-abbr": [ + "第1季", + "第2季", + "第3季", + "第4季" ], - "dateFormatItem-yQQQ": "y年QQQ", - "dateFormatItem-yMM": "y-MM", - "dateFormatItem-Hms": "H:mm:ss", + "field-second": "秒", + "dateFormatItem-GyMMMEd": "G y 年 M 月 d 日E", + "field-tue-relative+-1": "上週二", + "dateFormatItem-GyMMM": "G y 年 M 月", + "dateFormatItem-MEd": "M/d(E)", + "field-mon-relative+0": "本週一", + "field-mon-relative+1": "下週一", + "field-second-relative+0": "現在", + "field-thu-relative+0": "本週四", "dateFormat-short": "y/M/d", + "field-thu-relative+1": "下週四", + "dateFormatItem-EHms": "E HH:mm:ss", + "dateFormatItem-EHm": "E HH:mm", + "dateFormatItem-yMEd": "y/M/d(E)", + "field-wed-relative+0": "本週三", "months-format-wide": [ "1月", "2月", @@ -66,19 +112,22 @@ define( "11月", "12月" ], - "timeFormat-long": "zah時mm分ss秒", - "eraAbbr": [ - "西元前", - "西元" - ], - "dateFormatItem-h": "ah時", + "field-wed-relative+1": "下週三", + "field-month-relative+-1": "上個月", "quarters-format-wide": [ "第1季", "第2季", "第3季", "第4季" ], - "dateFormatItem-Ed": "d日(E)" + "eraNarrow": [ + "西元前", + "公元前", + "西元", + "公元" + ], + "dateFormatItem-h": "ah時", + "field-thu-relative+-1": "上週四" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh-tw/number.js b/cldr/nls/zh-tw/number.js index 1c0ad32a5e..646b503094 100644 --- a/cldr/nls/zh-tw/number.js +++ b/cldr/nls/zh-tw/number.js @@ -1,11 +1,9 @@ define( //begin v1.x content { - "decimalFormat-long": "000兆", - "nan": "非數值", - "currencyFormat": "¤#,##0.00", "$locale": "zh-hant-tw", - "decimalFormat-short": "000T" + "decimalFormat-short": "000T", + "nan": "非數值" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh/buddhist.js b/cldr/nls/zh/buddhist.js index 649bbf552e..b3ff66039b 100644 --- a/cldr/nls/zh/buddhist.js +++ b/cldr/nls/zh/buddhist.js @@ -10,12 +10,16 @@ define( "周五", "周六" ], + "field-second-relative+0": "现在", "field-weekday": "星期", + "field-wed-relative+0": "本周三", + "field-wed-relative+1": "下周三", "dateFormatItem-GyMMMEd": "Gy年M月d日E", "dateFormatItem-MMMEd": "M月d日E", "eraNarrow": [ "佛历" ], + "field-tue-relative+-1": "上周二", "days-format-short": [ "周日", "周一", @@ -26,6 +30,8 @@ define( "周六" ], "dateFormat-long": "Gy年M月d日", + "field-fri-relative+-1": "上周五", + "field-wed-relative+-1": "上周三", "months-format-wide": [ "一月", "二月", @@ -44,8 +50,10 @@ define( "dayPeriods-format-wide-pm": "下午", "dateFormat-full": "Gy年M月d日EEEE", "dateFormatItem-yyyyMEd": "Gy-M-d(E)", + "field-thu-relative+-1": "上周四", "dateFormatItem-Md": "M-d", - "field-era": "时期", + "dayPeriods-format-wide-noon": "中午", + "field-era": "纪元", "months-standAlone-wide": [ "一月", "二月", @@ -69,6 +77,7 @@ define( ], "timeFormat-long": "zah:mm:ss", "field-year": "年", + "dateFormatItem-yyyyMMMM": "Gy年M月", "field-hour": "小时", "months-format-abbr": [ "1月", @@ -84,9 +93,13 @@ define( "11月", "12月" ], + "field-sat-relative+0": "本周六", + "field-sat-relative+1": "下周六", "timeFormat-full": "zzzzah:mm:ss", "field-day-relative+0": "今天", + "field-thu-relative+0": "本周四", "field-day-relative+1": "明天", + "field-thu-relative+1": "下周四", "dateFormatItem-GyMMMd": "Gy年M月d日", "field-day-relative+2": "后天", "dateFormatItem-H": "H时", @@ -131,6 +144,8 @@ define( "dateFormatItem-yyyyMMM": "Gy年M月", "dateFormatItem-yyyyMMMd": "Gy年M月d日", "timeFormat-medium": "ah:mm:ss", + "field-sun-relative+0": "本周日", + "field-sun-relative+1": "下周日", "quarters-standAlone-abbr": [ "1季度", "2季度", @@ -154,12 +169,12 @@ define( "dateFormatItem-d": "d日", "field-day-relative+-1": "昨天", "dateFormatItem-h": "ah时", - "dateTimeFormat-long": "{1}{0}", "dayPeriods-format-narrow-am": "上午", "field-day-relative+-2": "前天", "dateFormatItem-MMMd": "M月d日", "dateFormatItem-MEd": "M-dE", - "dateTimeFormat-full": "{1}{0}", + "field-fri-relative+0": "本周五", + "field-fri-relative+1": "下周五", "field-day": "日", "days-format-wide": [ "星期日", @@ -198,6 +213,7 @@ define( ], "dateFormatItem-yyyyMd": "Gy-M-d", "field-month": "月", + "dateFormatItem-MMM": "LLL", "days-standAlone-narrow": [ "日", "一", @@ -207,9 +223,16 @@ define( "五", "六" ], + "field-tue-relative+0": "本周二", + "field-tue-relative+1": "下周二", "dayPeriods-format-wide-am": "上午", + "field-mon-relative+0": "本周一", + "field-mon-relative+1": "下周一", "dateFormat-short": "Gy-M-d", + "dayPeriods-format-narrow-noon": "中午", "field-second": "秒钟", + "field-sat-relative+-1": "上周六", + "field-sun-relative+-1": "上周日", "field-month-relative+0": "本月", "field-month-relative+1": "下个月", "dateFormatItem-Ed": "d日E", @@ -222,6 +245,7 @@ define( "dayPeriods-format-narrow-pm": "下午", "dateFormatItem-yyyyQQQQ": "Gy年QQQQ", "dateFormatItem-hms": "ah:mm:ss", + "field-mon-relative+-1": "上周一", "dateFormatItem-GyMMM": "Gy年M月", "dateFormatItem-yyyy": "Gy年", "field-week-relative+0": "本周", diff --git a/cldr/nls/zh/chinese.js b/cldr/nls/zh/chinese.js index f72832a7fd..6668413749 100644 --- a/cldr/nls/zh/chinese.js +++ b/cldr/nls/zh/chinese.js @@ -1,14 +1,7 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "U年MMMd日E", - "field-dayperiod": "上午/下午", - "field-minute": "分钟", - "dateFormatItem-MMMEd": "MMMd日E", - "field-day-relative+-1": "昨天", - "field-day-relative+-2": "前天", - "field-weekday": "星期", - "months-standAlone-narrow": [ + "months-format-narrow": [ "正", "二", "三", @@ -19,15 +12,20 @@ define( "八", "九", "十", - "十一", - "十二" + "冬", + "腊" ], - "field-era": "时期", - "dateFormatItem-Gy": "U年", - "field-hour": "小时", - "dateFormatItem-y": "U年", - "dateFormatItem-yyyy": "U年", - "months-standAlone-abbr": [ + "field-second-relative+0": "现在", + "field-weekday": "星期", + "field-wed-relative+0": "本周三", + "field-wed-relative+1": "下周三", + "dateFormatItem-GyMMMEd": "U年MMMd日E", + "dateFormatItem-MMMEd": "MMMd日E", + "field-tue-relative+-1": "上周二", + "dateFormat-long": "U年MMMd", + "field-fri-relative+-1": "上周五", + "field-wed-relative+-1": "上周三", + "months-format-wide": [ "正月", "二月", "三月", @@ -38,24 +36,16 @@ define( "八月", "九月", "十月", - "十一月", - "十二月" + "冬月", + "腊月" ], - "dateFormatItem-Ed": "d日E", - "field-day-relative+0": "今天", - "field-day-relative+1": "明天", - "field-day-relative+2": "后天", - "dateFormatItem-GyMMMd": "U年MMMd日", - "dateFormat-long": "U年MMMd日", - "field-zone": "时区", - "field-week-relative+-1": "上周", - "dateFormat-medium": "U年MMMd日", - "field-year-relative+0": "今年", - "field-year-relative+1": "明年", - "dateFormatItem-yMd": "U年M月d日", - "field-year-relative+-1": "去年", - "field-year": "年", - "dateFormatItem-yyyyQQQQ": "U年QQQQ", + "dateFormatItem-yyyyQQQ": "U年QQQQ", + "dateFormat-full": "U年MMMdEEEE", + "dateFormatItem-yyyyMEd": "U年MMMd日,E", + "field-thu-relative+-1": "上周四", + "dateFormatItem-Md": "M-d", + "dateFormatItem-yMd": "U年MMMd日", + "field-era": "纪元", "months-standAlone-wide": [ "正月", "二月", @@ -67,16 +57,11 @@ define( "八月", "九月", "十月", - "十一月", - "十二月" + "冬月", + "腊月" ], - "field-week": "周", - "dateFormatItem-yyyyMd": "U年M月d日", - "dateFormatItem-yyyyMMMd": "U年MMMd日", - "dateFormatItem-yyyyMEd": "U年M月d日,E", - "dateFormatItem-MMMd": "MMMd日", - "field-week-relative+0": "本周", - "field-week-relative+1": "下周", + "field-year": "年", + "field-hour": "小时", "months-format-abbr": [ "正月", "二月", @@ -88,20 +73,51 @@ define( "八月", "九月", "十月", - "十一月", - "十二月" + "冬月", + "腊月" ], - "field-month-relative+0": "本月", - "field-month": "月", - "field-month-relative+1": "下个月", + "field-sat-relative+0": "本周六", + "field-sat-relative+1": "下周六", + "field-day-relative+0": "今天", + "field-thu-relative+0": "本周四", + "field-day-relative+1": "明天", + "field-thu-relative+1": "下周四", + "dateFormatItem-GyMMMd": "U年MMMd日", + "field-day-relative+2": "后天", + "months-standAlone-abbr": [ + "正月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "冬月", + "腊月" + ], + "dateFormatItem-Gy": "U年", + "dateFormatItem-yyyyMMMEd": "U年MMMd日E", "dateFormatItem-M": "MMM", - "field-second": "秒钟", - "dateFormatItem-GyMMMEd": "U年MMMd日E", - "dateFormatItem-GyMMM": "U年MMM", - "field-day": "日", - "dateFormatItem-yyyyQQQ": "U年QQQQ", + "dateFormatItem-yyyyMMM": "U年MMM", + "dateFormatItem-yyyyMMMd": "U年MMMd日", + "field-sun-relative+0": "本周日", + "field-sun-relative+1": "下周日", + "field-minute": "分钟", + "field-dayperiod": "上午/下午", + "dateFormatItem-d": "d日", + "field-day-relative+-1": "昨天", + "field-day-relative+-2": "前天", + "dateFormatItem-MMMd": "MMMd日", "dateFormatItem-MEd": "M-dE", - "months-format-narrow": [ + "field-fri-relative+0": "本周五", + "field-fri-relative+1": "下周五", + "field-day": "日", + "field-zone": "时区", + "dateFormatItem-y": "U年", + "months-standAlone-narrow": [ "正", "二", "三", @@ -112,30 +128,36 @@ define( "八", "九", "十", - "十一", - "十二" + "冬", + "腊" ], + "field-year-relative+-1": "去年", + "field-month-relative+-1": "上个月", + "dateFormatItem-yyyyMd": "U年MMMd日", + "field-month": "月", + "field-tue-relative+0": "本周二", + "field-tue-relative+1": "下周二", + "field-mon-relative+0": "本周一", + "field-mon-relative+1": "下周一", "dateFormat-short": "U-M-d", - "dateFormatItem-yyyyM": "U年M月", - "dateFormat-full": "U年MMMd日EEEE", - "dateFormatItem-Md": "M-d", - "months-format-wide": [ - "正月", - "二月", - "三月", - "四月", - "五月", - "六月", - "七月", - "八月", - "九月", - "十月", - "十一月", - "十二月" - ], - "dateFormatItem-yyyyMMM": "U年MMM", - "dateFormatItem-d": "d日", - "field-month-relative+-1": "上个月" + "field-second": "秒钟", + "field-sat-relative+-1": "上周六", + "field-sun-relative+-1": "上周日", + "field-month-relative+0": "本月", + "field-month-relative+1": "下个月", + "dateFormatItem-Ed": "d日E", + "field-week": "周", + "dateFormat-medium": "U年MMMd", + "field-year-relative+0": "今年", + "field-week-relative+-1": "上周", + "dateFormatItem-yyyyM": "U年MMM", + "field-year-relative+1": "明年", + "dateFormatItem-yyyyQQQQ": "U年QQQQ", + "dateFormatItem-GyMMM": "U年MMM", + "field-mon-relative+-1": "上周一", + "dateFormatItem-yyyy": "U年", + "field-week-relative+0": "本周", + "field-week-relative+1": "下周" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh/coptic.js b/cldr/nls/zh/coptic.js index 3a9d396d36..0396c73958 100644 --- a/cldr/nls/zh/coptic.js +++ b/cldr/nls/zh/coptic.js @@ -1,26 +1,14 @@ define( //begin v1.x content { - "field-second": "秒钟", - "field-year-relative+-1": "去年", - "field-week": "周", - "field-month-relative+-1": "上个月", + "field-sat-relative+0": "本周六", + "field-sat-relative+1": "下周六", + "field-dayperiod": "上午/下午", + "field-sun-relative+-1": "上周日", + "field-mon-relative+-1": "上周一", + "field-minute": "分钟", "field-day-relative+-1": "昨天", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], + "field-weekday": "星期", "field-day-relative+-2": "前天", "months-standAlone-narrow": [ "1", @@ -37,23 +25,10 @@ define( "12", "13" ], - "months-standAlone-wide": [ - "一月", - "二月", - "三月", - "四月", - "五月", - "六月", - "七月", - "八月", - "九月", - "十月", - "十一月", - "十二月", - "十三月" - ], - "field-year": "年", - "field-week-relative+0": "本周", + "field-era": "纪元", + "field-hour": "小时", + "field-sun-relative+0": "本周日", + "field-sun-relative+1": "下周日", "months-standAlone-abbr": [ "1月", "2月", @@ -69,19 +44,22 @@ define( "12月", "13月" ], - "field-week-relative+1": "下周", - "field-minute": "分钟", - "field-week-relative+-1": "上周", + "field-wed-relative+-1": "上周三", "field-day-relative+0": "今天", - "field-hour": "小时", "field-day-relative+1": "明天", "field-day-relative+2": "后天", - "field-day": "日", - "field-month-relative+0": "本月", - "field-month-relative+1": "下个月", - "field-dayperiod": "上午/下午", - "field-month": "月", - "months-format-wide": [ + "field-tue-relative+0": "本周二", + "field-zone": "时区", + "field-tue-relative+1": "下周二", + "field-week-relative+-1": "上周", + "field-year-relative+0": "今年", + "field-year-relative+1": "明年", + "field-sat-relative+-1": "上周六", + "field-year-relative+-1": "去年", + "field-year": "年", + "field-fri-relative+0": "本周五", + "field-fri-relative+1": "下周五", + "months-standAlone-wide": [ "一月", "二月", "三月", @@ -96,9 +74,9 @@ define( "十二月", "十三月" ], - "field-era": "时期", - "field-year-relative+0": "今年", - "field-year-relative+1": "明年", + "field-week": "周", + "field-week-relative+0": "本周", + "field-week-relative+1": "下周", "months-format-abbr": [ "1月", "2月", @@ -114,8 +92,52 @@ define( "12月", "13月" ], - "field-weekday": "星期", - "field-zone": "时区" + "field-month-relative+0": "本月", + "field-month": "月", + "field-month-relative+1": "下个月", + "field-fri-relative+-1": "上周五", + "field-second": "秒钟", + "field-tue-relative+-1": "上周二", + "field-day": "日", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "本周一", + "field-mon-relative+1": "下周一", + "field-thu-relative+0": "本周四", + "field-second-relative+0": "现在", + "field-thu-relative+1": "下周四", + "months-format-wide": [ + "一月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月", + "十三月" + ], + "field-wed-relative+0": "本周三", + "field-wed-relative+1": "下周三", + "field-month-relative+-1": "上个月", + "field-thu-relative+-1": "上周四" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh/ethiopic.js b/cldr/nls/zh/ethiopic.js index 3a9d396d36..0396c73958 100644 --- a/cldr/nls/zh/ethiopic.js +++ b/cldr/nls/zh/ethiopic.js @@ -1,26 +1,14 @@ define( //begin v1.x content { - "field-second": "秒钟", - "field-year-relative+-1": "去年", - "field-week": "周", - "field-month-relative+-1": "上个月", + "field-sat-relative+0": "本周六", + "field-sat-relative+1": "下周六", + "field-dayperiod": "上午/下午", + "field-sun-relative+-1": "上周日", + "field-mon-relative+-1": "上周一", + "field-minute": "分钟", "field-day-relative+-1": "昨天", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13" - ], + "field-weekday": "星期", "field-day-relative+-2": "前天", "months-standAlone-narrow": [ "1", @@ -37,23 +25,10 @@ define( "12", "13" ], - "months-standAlone-wide": [ - "一月", - "二月", - "三月", - "四月", - "五月", - "六月", - "七月", - "八月", - "九月", - "十月", - "十一月", - "十二月", - "十三月" - ], - "field-year": "年", - "field-week-relative+0": "本周", + "field-era": "纪元", + "field-hour": "小时", + "field-sun-relative+0": "本周日", + "field-sun-relative+1": "下周日", "months-standAlone-abbr": [ "1月", "2月", @@ -69,19 +44,22 @@ define( "12月", "13月" ], - "field-week-relative+1": "下周", - "field-minute": "分钟", - "field-week-relative+-1": "上周", + "field-wed-relative+-1": "上周三", "field-day-relative+0": "今天", - "field-hour": "小时", "field-day-relative+1": "明天", "field-day-relative+2": "后天", - "field-day": "日", - "field-month-relative+0": "本月", - "field-month-relative+1": "下个月", - "field-dayperiod": "上午/下午", - "field-month": "月", - "months-format-wide": [ + "field-tue-relative+0": "本周二", + "field-zone": "时区", + "field-tue-relative+1": "下周二", + "field-week-relative+-1": "上周", + "field-year-relative+0": "今年", + "field-year-relative+1": "明年", + "field-sat-relative+-1": "上周六", + "field-year-relative+-1": "去年", + "field-year": "年", + "field-fri-relative+0": "本周五", + "field-fri-relative+1": "下周五", + "months-standAlone-wide": [ "一月", "二月", "三月", @@ -96,9 +74,9 @@ define( "十二月", "十三月" ], - "field-era": "时期", - "field-year-relative+0": "今年", - "field-year-relative+1": "明年", + "field-week": "周", + "field-week-relative+0": "本周", + "field-week-relative+1": "下周", "months-format-abbr": [ "1月", "2月", @@ -114,8 +92,52 @@ define( "12月", "13月" ], - "field-weekday": "星期", - "field-zone": "时区" + "field-month-relative+0": "本月", + "field-month": "月", + "field-month-relative+1": "下个月", + "field-fri-relative+-1": "上周五", + "field-second": "秒钟", + "field-tue-relative+-1": "上周二", + "field-day": "日", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13" + ], + "field-mon-relative+0": "本周一", + "field-mon-relative+1": "下周一", + "field-thu-relative+0": "本周四", + "field-second-relative+0": "现在", + "field-thu-relative+1": "下周四", + "months-format-wide": [ + "一月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月", + "十三月" + ], + "field-wed-relative+0": "本周三", + "field-wed-relative+1": "下周三", + "field-month-relative+-1": "上个月", + "field-thu-relative+-1": "上周四" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh/generic.js b/cldr/nls/zh/generic.js index 7afffbf218..6ac3c72d9c 100644 --- a/cldr/nls/zh/generic.js +++ b/cldr/nls/zh/generic.js @@ -1,69 +1,91 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "Gy年M月d日E", - "field-dayperiod": "上午/下午", - "field-minute": "分钟", - "dateFormatItem-MMMEd": "M月d日E", - "dateTimeFormat-full": "{1}{0}", - "field-day-relative+-1": "昨天", - "dateFormatItem-hms": "ah:mm:ss", - "field-day-relative+-2": "前天", + "field-second-relative+0": "现在", "field-weekday": "星期", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "Gy年", + "field-wed-relative+0": "本周三", + "field-wed-relative+1": "下周三", + "dateFormatItem-GyMMMEd": "Gy年M月d日E", + "dateFormatItem-MMMEd": "M月d日E", + "field-tue-relative+-1": "上周二", + "dateFormat-long": "Gy年M月d日", + "field-fri-relative+-1": "上周五", + "field-wed-relative+-1": "上周三", + "dateFormatItem-yyyyQQQ": "Gy年第Q季度", "dateTimeFormat-medium": "{1} {0}", - "field-era": "时期", + "dateFormat-full": "Gy年M月d日EEEE", + "dateFormatItem-yyyyMEd": "Gy/M/dE", + "field-thu-relative+-1": "上周四", + "dateFormatItem-Md": "M/d", + "field-era": "纪元", + "field-year": "年", + "dateFormatItem-yyyyMMMM": "Gy年M月", "field-hour": "小时", - "dateFormatItem-y": "Gy年", - "dateFormatItem-yyyy": "Gy年", - "dateFormatItem-Ed": "d日E", + "field-sat-relative+0": "本周六", + "field-sat-relative+1": "下周六", "field-day-relative+0": "今天", "field-day-relative+1": "明天", - "field-day-relative+2": "后天", + "field-thu-relative+0": "本周四", "dateFormatItem-GyMMMd": "Gy年M月d日", - "dateFormatItem-yyyyMMMM": "Gy年M月", - "dateFormat-long": "Gy年M月d日", - "field-zone": "时区", + "field-day-relative+2": "后天", + "field-thu-relative+1": "下周四", + "dateFormatItem-H": "H时", + "dateFormatItem-Gy": "Gy年", + "dateFormatItem-yyyyMMMEd": "Gy年M月d日E", + "dateFormatItem-M": "M月", + "dateFormatItem-yyyyMMM": "Gy年M月", + "dateFormatItem-yyyyMMMd": "Gy年M月d日", + "field-sun-relative+0": "本周日", "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "上周", - "dateFormat-medium": "Gy年M月d日", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "今年", - "field-year-relative+1": "明年", - "field-year-relative+-1": "去年", + "field-sun-relative+1": "下周日", + "field-minute": "分钟", + "field-dayperiod": "上午/下午", + "dateFormatItem-d": "d日", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "Gy年QQQQ", - "field-year": "年", - "dateTimeFormat-long": "{1}{0}", - "field-week": "周", - "dateFormatItem-yyyyMd": "Gy-M-d", - "dateFormatItem-yyyyMMMd": "Gy年M月d日", - "dateFormatItem-yyyyMEd": "Gy-M-d(E)", + "field-day-relative+-1": "昨天", + "dateFormatItem-h": "ah时", + "dateTimeFormat-long": "{1} {0}", + "field-day-relative+-2": "前天", "dateFormatItem-MMMd": "M月d日", - "field-week-relative+0": "本周", - "field-week-relative+1": "下周", - "field-month-relative+0": "本月", - "dateFormatItem-H": "H时", + "dateFormatItem-MEd": "M/dE", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "本周五", + "field-fri-relative+1": "下周五", + "field-day": "日", + "field-zone": "时区", + "dateFormatItem-y": "Gy年", + "field-year-relative+-1": "去年", + "field-month-relative+-1": "上个月", + "dateFormatItem-hm": "ah:mm", + "dateFormatItem-yyyyMd": "Gy/M/d", "field-month": "月", - "field-month-relative+1": "下个月", - "dateFormatItem-M": "M月", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "本周二", + "field-tue-relative+1": "下周二", + "field-mon-relative+0": "本周一", + "field-mon-relative+1": "下周一", + "dateFormat-short": "Gy/M/d", "field-second": "秒钟", - "dateFormatItem-GyMMMEd": "Gy年M月d日E", + "field-sat-relative+-1": "上周六", + "field-sun-relative+-1": "上周日", + "field-month-relative+0": "本月", + "field-month-relative+1": "下个月", + "dateFormatItem-Ed": "d日E", + "field-week": "周", + "dateFormat-medium": "Gy年M月d日", + "field-year-relative+0": "今年", + "field-week-relative+-1": "上周", + "dateFormatItem-yyyyM": "Gy年M月", + "field-year-relative+1": "明年", + "dateFormatItem-yyyyQQQQ": "Gy年第Q季度", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "ah:mm:ss", "dateFormatItem-GyMMM": "Gy年M月", - "field-day": "日", - "dateFormatItem-MEd": "M-dE", - "dateFormatItem-yyyyQQQ": "Gy年第Q季度", - "dateFormatItem-hm": "ah:mm", - "dateFormat-short": "Gy-M-d", - "dateFormatItem-yyyyM": "Gy-M", - "dateFormat-full": "Gy年M月d日EEEE", - "dateFormatItem-Md": "M-d", - "dateFormatItem-yyyyMMM": "Gy年M月", - "dateFormatItem-d": "d日", - "field-month-relative+-1": "上个月", - "dateFormatItem-h": "ah时" + "field-mon-relative+-1": "上周一", + "dateFormatItem-yyyy": "Gy年", + "field-week-relative+0": "本周", + "field-week-relative+1": "下周" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh/gregorian.js b/cldr/nls/zh/gregorian.js index dbdd709f62..54a77188bc 100644 --- a/cldr/nls/zh/gregorian.js +++ b/cldr/nls/zh/gregorian.js @@ -1,6 +1,7 @@ define( //begin v1.x content { + "dateFormatItem-Ehm": "Eah:mm", "days-standAlone-short": [ "周日", "周一", @@ -24,6 +25,7 @@ define( "11", "12" ], + "field-second-relative+0": "现在", "quarters-standAlone-narrow": [ "1", "2", @@ -33,14 +35,17 @@ define( "field-weekday": "星期", "dateFormatItem-yQQQ": "y年第Q季度", "dateFormatItem-yMEd": "y/M/dE", + "field-wed-relative+0": "本周三", "dateFormatItem-GyMMMEd": "Gy年M月d日E", "dateFormatItem-MMMEd": "M月d日E", + "field-wed-relative+1": "下周三", "eraNarrow": [ "公元前", "公元" ], "dateFormatItem-yMM": "y年M月", "dayPeriods-format-wide-earlyMorning": "清晨", + "field-tue-relative+-1": "上周二", "dayPeriods-format-wide-morning": "上午", "days-format-short": [ "周日", @@ -52,6 +57,8 @@ define( "周六" ], "dateFormat-long": "y年M月d日", + "field-fri-relative+-1": "上周五", + "field-wed-relative+-1": "上周三", "months-format-wide": [ "一月", "二月", @@ -69,12 +76,13 @@ define( "dateTimeFormat-medium": "{1} {0}", "dayPeriods-format-wide-pm": "下午", "dateFormat-full": "y年M月d日EEEE", + "field-thu-relative+-1": "上周四", "dateFormatItem-Md": "M/d", "dayPeriods-format-narrow-midDay": "中午", "dayPeriods-format-wide-noon": "中午", "dateFormatItem-yMd": "y/M/d", "dateFormatItem-yM": "y/M", - "field-era": "时期", + "field-era": "纪元", "months-standAlone-wide": [ "一月", "二月", @@ -98,7 +106,7 @@ define( ], "timeFormat-long": "zah:mm:ss", "dateFormatItem-yMMM": "y年M月", - "dateFormatItem-yQQQQ": "y年QQQQ", + "dateFormatItem-yQQQQ": "y年第Q季度", "field-year": "年", "dateFormatItem-MMdd": "MM/dd", "field-hour": "小时", @@ -116,12 +124,16 @@ define( "11月", "12月" ], + "field-sat-relative+0": "本周六", + "field-sat-relative+1": "下周六", "timeFormat-full": "zzzzah:mm:ss", "dayPeriods-format-narrow-morning": "上午", "field-day-relative+0": "今天", "field-day-relative+1": "明天", + "field-thu-relative+0": "本周四", "dateFormatItem-GyMMMd": "Gy年M月d日", "field-day-relative+2": "后天", + "field-thu-relative+1": "下周四", "dateFormatItem-H": "H时", "months-standAlone-abbr": [ "1月", @@ -161,6 +173,7 @@ define( "星期六" ], "timeFormat-medium": "ah:mm:ss", + "field-sun-relative+0": "本周日", "dateFormatItem-Hm": "HH:mm", "quarters-standAlone-abbr": [ "1季度", @@ -168,6 +181,7 @@ define( "3季度", "4季度" ], + "field-sun-relative+1": "下周日", "eraAbbr": [ "公元前", "公元" @@ -194,14 +208,16 @@ define( ], "field-day-relative+-1": "昨天", "dateFormatItem-h": "ah时", - "dateTimeFormat-long": "{1}{0}", + "dateTimeFormat-long": "{1} {0}", "dayPeriods-format-narrow-am": "上午", "field-day-relative+-2": "前天", "dateFormatItem-MMMd": "M月d日", "dayPeriods-format-wide-midDay": "中午", "dateFormatItem-MEd": "M/dE", - "dateTimeFormat-full": "{1}{0}", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "本周五", "dateFormatItem-yMMMM": "y年M月", + "field-fri-relative+1": "下周五", "field-day": "日", "days-format-wide": [ "星期日", @@ -268,18 +284,28 @@ define( ], "dateFormatItem-MMM": "LLL", "field-month": "月", + "field-tue-relative+0": "本周二", + "field-tue-relative+1": "下周二", "dayPeriods-format-wide-am": "上午", + "dateFormatItem-EHm": "EHH:mm", "dayPeriods-format-wide-weeHours": "凌晨", "dateFormatItem-MMMMdd": "M月dd日", - "dateFormat-short": "yy-M-d", + "field-mon-relative+0": "本周一", + "field-mon-relative+1": "下周一", + "dateFormat-short": "yy/M/d", "dayPeriods-format-wide-afternoon": "下午", + "dateFormatItem-EHms": "EHH:mm:ss", + "dateFormatItem-Ehms": "Eah:mm:ss", "dayPeriods-format-narrow-afternoon": "下午", "dayPeriods-format-narrow-noon": "中午", "field-second": "秒钟", + "field-sat-relative+-1": "上周六", "dateFormatItem-yMMMEd": "y年M月d日E", + "field-sun-relative+-1": "上周日", "field-month-relative+0": "本月", "field-month-relative+1": "下个月", "dateFormatItem-Ed": "d日E", + "dateTimeFormats-appendItem-Timezone": "{1}{0}", "field-week": "周", "dateFormat-medium": "y年M月d日", "field-year-relative+0": "今年", @@ -290,6 +316,7 @@ define( "dateFormatItem-Hms": "HH:mm:ss", "dateFormatItem-hms": "ah:mm:ss", "dateFormatItem-GyMMM": "Gy年M月", + "field-mon-relative+-1": "上周一", "field-week-relative+0": "本周", "field-week-relative+1": "下周" } diff --git a/cldr/nls/zh/hebrew.js b/cldr/nls/zh/hebrew.js index 34e71c86bc..c6b4427e7f 100644 --- a/cldr/nls/zh/hebrew.js +++ b/cldr/nls/zh/hebrew.js @@ -10,12 +10,16 @@ define( "周五", "周六" ], + "field-second-relative+0": "现在", "field-weekday": "星期", + "field-wed-relative+0": "本周三", + "field-wed-relative+1": "下周三", "dateFormatItem-GyMMMEd": "Gy年M月d日E", "dateFormatItem-MMMEd": "M月d日E", "eraNarrow": [ "希伯来历" ], + "field-tue-relative+-1": "上周二", "days-format-short": [ "周日", "周一", @@ -26,6 +30,8 @@ define( "周六" ], "dateFormat-long": "Gy年M月d日", + "field-fri-relative+-1": "上周五", + "field-wed-relative+-1": "上周三", "months-format-wide": [ "一月", "二月", @@ -44,9 +50,11 @@ define( "dateFormatItem-yyyyQQQ": "Gy年第Q季度", "dayPeriods-format-wide-pm": "下午", "dateFormat-full": "Gy年M月d日EEEE", - "dateFormatItem-yyyyMEd": "Gy-M-d(E)", - "dateFormatItem-Md": "M-d", - "field-era": "时期", + "dateFormatItem-yyyyMEd": "Gy/M/dE", + "field-thu-relative+-1": "上周四", + "dateFormatItem-Md": "M/d", + "dayPeriods-format-wide-noon": "中午", + "field-era": "纪元", "months-standAlone-wide": [ "一月", "二月", @@ -88,9 +96,13 @@ define( "12月", "13月" ], + "field-sat-relative+0": "本周六", + "field-sat-relative+1": "下周六", "timeFormat-full": "zzzzah:mm:ss", "field-day-relative+0": "今天", + "field-thu-relative+0": "本周四", "field-day-relative+1": "明天", + "field-thu-relative+1": "下周四", "dateFormatItem-GyMMMd": "Gy年M月d日", "field-day-relative+2": "后天", "dateFormatItem-H": "H时", @@ -137,6 +149,8 @@ define( "dateFormatItem-yyyyMMMd": "Gy年M月d日", "months-standAlone-wide-leap": "闰七月", "timeFormat-medium": "ah:mm:ss", + "field-sun-relative+0": "本周日", + "field-sun-relative+1": "下周日", "quarters-standAlone-abbr": [ "1季度", "2季度", @@ -160,12 +174,12 @@ define( "dateFormatItem-d": "d日", "field-day-relative+-1": "昨天", "dateFormatItem-h": "ah时", - "dateTimeFormat-long": "{1}{0}", "dayPeriods-format-narrow-am": "上午", "field-day-relative+-2": "前天", "dateFormatItem-MMMd": "M月d日", - "dateFormatItem-MEd": "M-dE", - "dateTimeFormat-full": "{1}{0}", + "dateFormatItem-MEd": "M/dE", + "field-fri-relative+0": "本周五", + "field-fri-relative+1": "下周五", "field-day": "日", "days-format-wide": [ "星期日", @@ -203,7 +217,7 @@ define( "五", "六" ], - "dateFormatItem-yyyyMd": "Gy-M-d", + "dateFormatItem-yyyyMd": "Gy/M/d", "field-month": "月", "days-standAlone-narrow": [ "日", @@ -214,9 +228,16 @@ define( "五", "六" ], + "field-tue-relative+0": "本周二", + "field-tue-relative+1": "下周二", "dayPeriods-format-wide-am": "上午", + "field-mon-relative+0": "本周一", + "field-mon-relative+1": "下周一", "dateFormat-short": "Gy-M-d", + "dayPeriods-format-narrow-noon": "中午", "field-second": "秒钟", + "field-sat-relative+-1": "上周六", + "field-sun-relative+-1": "上周日", "field-month-relative+0": "本月", "field-month-relative+1": "下个月", "dateFormatItem-Ed": "d日E", @@ -224,13 +245,14 @@ define( "dateFormat-medium": "Gy年M月d日", "field-year-relative+0": "今年", "field-week-relative+-1": "上周", - "dateFormatItem-yyyyM": "Gy-M", + "dateFormatItem-yyyyM": "Gy年M月", "field-year-relative+1": "明年", "dayPeriods-format-narrow-pm": "下午", - "dateFormatItem-yyyyQQQQ": "Gy年QQQQ", + "dateFormatItem-yyyyQQQQ": "Gy年第Q季度", "dateFormatItem-hms": "ah:mm:ss", "months-format-wide-leap": "闰七月", "dateFormatItem-GyMMM": "Gy年M月", + "field-mon-relative+-1": "上周一", "dateFormatItem-yyyy": "Gy年", "field-week-relative+0": "本周", "field-week-relative+1": "下周" diff --git a/cldr/nls/zh/indian.js b/cldr/nls/zh/indian.js index 569283bbbe..feff1b131f 100644 --- a/cldr/nls/zh/indian.js +++ b/cldr/nls/zh/indian.js @@ -1,25 +1,14 @@ define( //begin v1.x content { - "field-second": "秒钟", - "field-year-relative+-1": "去年", - "field-week": "周", - "field-month-relative+-1": "上个月", + "field-sat-relative+0": "本周六", + "field-sat-relative+1": "下周六", + "field-dayperiod": "上午/下午", + "field-sun-relative+-1": "上周日", + "field-mon-relative+-1": "上周一", + "field-minute": "分钟", "field-day-relative+-1": "昨天", - "months-format-narrow": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12" - ], + "field-weekday": "星期", "field-day-relative+-2": "前天", "months-standAlone-narrow": [ "1", @@ -35,22 +24,10 @@ define( "11", "12" ], - "months-standAlone-wide": [ - "一月", - "二月", - "三月", - "四月", - "五月", - "六月", - "七月", - "八月", - "九月", - "十月", - "十一月", - "十二月" - ], - "field-year": "年", - "field-week-relative+0": "本周", + "field-era": "纪元", + "field-hour": "小时", + "field-sun-relative+0": "本周日", + "field-sun-relative+1": "下周日", "months-standAlone-abbr": [ "1月", "2月", @@ -65,19 +42,25 @@ define( "11月", "12月" ], - "field-week-relative+1": "下周", - "field-minute": "分钟", - "field-week-relative+-1": "上周", + "field-wed-relative+-1": "上周三", "field-day-relative+0": "今天", - "field-hour": "小时", "field-day-relative+1": "明天", + "eraAbbr": [ + "印度历" + ], "field-day-relative+2": "后天", - "field-day": "日", - "field-month-relative+0": "本月", - "field-month-relative+1": "下个月", - "field-dayperiod": "上午/下午", - "field-month": "月", - "months-format-wide": [ + "field-tue-relative+0": "本周二", + "field-zone": "时区", + "field-tue-relative+1": "下周二", + "field-week-relative+-1": "上周", + "field-year-relative+0": "今年", + "field-year-relative+1": "明年", + "field-sat-relative+-1": "上周六", + "field-year-relative+-1": "去年", + "field-year": "年", + "field-fri-relative+0": "本周五", + "field-fri-relative+1": "下周五", + "months-standAlone-wide": [ "一月", "二月", "三月", @@ -91,9 +74,9 @@ define( "十一月", "十二月" ], - "field-era": "时期", - "field-year-relative+0": "今年", - "field-year-relative+1": "明年", + "field-week": "周", + "field-week-relative+0": "本周", + "field-week-relative+1": "下周", "months-format-abbr": [ "1月", "2月", @@ -108,11 +91,50 @@ define( "11月", "12月" ], - "eraAbbr": [ - "印度历" + "field-month-relative+0": "本月", + "field-month": "月", + "field-month-relative+1": "下个月", + "field-fri-relative+-1": "上周五", + "field-second": "秒钟", + "field-tue-relative+-1": "上周二", + "field-day": "日", + "months-format-narrow": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12" ], - "field-weekday": "星期", - "field-zone": "时区" + "field-mon-relative+0": "本周一", + "field-mon-relative+1": "下周一", + "field-thu-relative+0": "本周四", + "field-second-relative+0": "现在", + "field-thu-relative+1": "下周四", + "months-format-wide": [ + "一月", + "二月", + "三月", + "四月", + "五月", + "六月", + "七月", + "八月", + "九月", + "十月", + "十一月", + "十二月" + ], + "field-wed-relative+0": "本周三", + "field-wed-relative+1": "下周三", + "field-month-relative+-1": "上个月", + "field-thu-relative+-1": "上周四" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh/islamic.js b/cldr/nls/zh/islamic.js index 0f60ba8fba..590b199ab1 100644 --- a/cldr/nls/zh/islamic.js +++ b/cldr/nls/zh/islamic.js @@ -24,12 +24,16 @@ define( "11", "12" ], + "field-second-relative+0": "现在", "field-weekday": "星期", + "field-wed-relative+0": "本周三", + "field-wed-relative+1": "下周三", "dateFormatItem-GyMMMEd": "Gy年M月d日E", "dateFormatItem-MMMEd": "M月d日E", "eraNarrow": [ "回历" ], + "field-tue-relative+-1": "上周二", "days-format-short": [ "周日", "周一", @@ -40,6 +44,8 @@ define( "周六" ], "dateFormat-long": "Gy年M月d日", + "field-fri-relative+-1": "上周五", + "field-wed-relative+-1": "上周三", "months-format-wide": [ "一月", "二月", @@ -57,9 +63,11 @@ define( "dateFormatItem-yyyyQQQ": "Gy年第Q季度", "dayPeriods-format-wide-pm": "下午", "dateFormat-full": "Gy年M月d日EEEE", - "dateFormatItem-yyyyMEd": "Gy-M-d(E)", + "dateFormatItem-yyyyMEd": "Gy/M/dE", + "field-thu-relative+-1": "上周四", "dateFormatItem-Md": "M-d", - "field-era": "时期", + "dayPeriods-format-wide-noon": "中午", + "field-era": "纪元", "months-standAlone-wide": [ "一月", "二月", @@ -98,9 +106,13 @@ define( "11月", "12月" ], + "field-sat-relative+0": "本周六", + "field-sat-relative+1": "下周六", "timeFormat-full": "zzzzah:mm:ss", "field-day-relative+0": "今天", + "field-thu-relative+0": "本周四", "field-day-relative+1": "明天", + "field-thu-relative+1": "下周四", "dateFormatItem-GyMMMd": "Gy年M月d日", "field-day-relative+2": "后天", "dateFormatItem-H": "H时", @@ -145,6 +157,8 @@ define( "dateFormatItem-yyyyMMM": "Gy年M月", "dateFormatItem-yyyyMMMd": "Gy年M月d日", "timeFormat-medium": "ah:mm:ss", + "field-sun-relative+0": "本周日", + "field-sun-relative+1": "下周日", "quarters-standAlone-abbr": [ "1季度", "2季度", @@ -168,12 +182,12 @@ define( "dateFormatItem-d": "d日", "field-day-relative+-1": "昨天", "dateFormatItem-h": "ah时", - "dateTimeFormat-long": "{1}{0}", "dayPeriods-format-narrow-am": "上午", "field-day-relative+-2": "前天", "dateFormatItem-MMMd": "M月d日", "dateFormatItem-MEd": "M-dE", - "dateTimeFormat-full": "{1}{0}", + "field-fri-relative+0": "本周五", + "field-fri-relative+1": "下周五", "field-day": "日", "days-format-wide": [ "星期日", @@ -224,8 +238,9 @@ define( "五", "六" ], - "dateFormatItem-yyyyMd": "Gy-M-d", + "dateFormatItem-yyyyMd": "Gy/M/d", "field-month": "月", + "dateFormatItem-MMM": "LLL", "days-standAlone-narrow": [ "日", "一", @@ -235,9 +250,16 @@ define( "五", "六" ], + "field-tue-relative+0": "本周二", + "field-tue-relative+1": "下周二", "dayPeriods-format-wide-am": "上午", - "dateFormat-short": "Gy-M-d", + "field-mon-relative+0": "本周一", + "field-mon-relative+1": "下周一", + "dateFormat-short": "Gy/M/d", + "dayPeriods-format-narrow-noon": "中午", "field-second": "秒钟", + "field-sat-relative+-1": "上周六", + "field-sun-relative+-1": "上周日", "field-month-relative+0": "本月", "field-month-relative+1": "下个月", "dateFormatItem-Ed": "d日E", @@ -245,11 +267,12 @@ define( "dateFormat-medium": "Gy年M月d日", "field-year-relative+0": "今年", "field-week-relative+-1": "上周", - "dateFormatItem-yyyyM": "Gy-M", "field-year-relative+1": "明年", + "dateFormatItem-yyyyM": "Gy年M月", "dayPeriods-format-narrow-pm": "下午", - "dateFormatItem-yyyyQQQQ": "Gy年QQQQ", + "dateFormatItem-yyyyQQQQ": "Gy年第Q季度", "dateFormatItem-hms": "ah:mm:ss", + "field-mon-relative+-1": "上周一", "dateFormatItem-GyMMM": "Gy年M月", "dateFormatItem-yyyy": "Gy年", "field-week-relative+0": "本周", diff --git a/cldr/nls/zh/japanese.js b/cldr/nls/zh/japanese.js index c0a64bf327..a6ed879bba 100644 --- a/cldr/nls/zh/japanese.js +++ b/cldr/nls/zh/japanese.js @@ -1,26 +1,42 @@ define( //begin v1.x content { - "dateFormatItem-yyyyMMMEd": "Gy年M月d日E", - "field-dayperiod": "上午/下午", - "field-minute": "分钟", - "dateFormatItem-MMMEd": "M月d日E", - "dateTimeFormat-full": "{1} {0}", - "field-day-relative+-1": "昨天", - "dateFormatItem-hms": "ah:mm:ss", - "field-day-relative+-2": "前天", + "field-second-relative+0": "现在", "field-weekday": "星期", - "dateFormatItem-MMM": "LLL", - "dateTimeFormat-short": "{1} {0}", - "dateFormatItem-Gy": "Gy年", + "field-wed-relative+0": "本周三", + "field-wed-relative+1": "下周三", + "dateFormatItem-GyMMMEd": "Gy年M月d日E", + "dateFormatItem-MMMEd": "M月d日E", + "field-tue-relative+-1": "上周二", + "dateFormat-long": "Gy年M月d日", + "field-fri-relative+-1": "上周五", + "field-wed-relative+-1": "上周三", + "dateFormatItem-yyyyQQQ": "Gy年第Q季度", "dateTimeFormat-medium": "{1} {0}", - "field-era": "时期", + "dateFormat-full": "Gy年M月d日EEEE", + "dateFormatItem-yyyyMEd": "Gy-M-d(E)", + "field-thu-relative+-1": "上周四", + "dateFormatItem-Md": "M-d", + "field-era": "纪元", + "field-year": "年", "field-hour": "小时", - "dateFormatItem-y": "Gy年", - "dateFormatItem-yyyy": "Gy年", - "dateFormatItem-Ed": "d日E", + "field-sat-relative+0": "本周六", + "field-sat-relative+1": "下周六", "field-day-relative+0": "今天", "field-day-relative+1": "明天", + "field-thu-relative+0": "本周四", + "dateFormatItem-GyMMMd": "Gy年M月d日", + "field-day-relative+2": "后天", + "field-thu-relative+1": "下周四", + "dateFormatItem-H": "H时", + "dateFormatItem-Gy": "Gy年", + "dateFormatItem-yyyyMMMEd": "Gy年M月d日E", + "dateFormatItem-M": "M月", + "dateFormatItem-yyyyMMM": "Gy年M月", + "dateFormatItem-yyyyMMMd": "Gy年M月d日", + "field-sun-relative+0": "本周日", + "dateFormatItem-Hm": "HH:mm", + "field-sun-relative+1": "下周日", "eraAbbr": [ "大化 (645–650)", "白雉 (650–671)", @@ -259,48 +275,54 @@ define( "昭和", "平成" ], - "field-day-relative+2": "后天", - "dateFormatItem-GyMMMd": "Gy年M月d日", - "dateFormat-long": "Gy年M月d日", - "field-zone": "时区", - "dateFormatItem-Hm": "HH:mm", - "field-week-relative+-1": "上周", - "dateFormat-medium": "Gy年M月d日", - "dateFormatItem-Hms": "HH:mm:ss", - "field-year-relative+0": "今年", - "field-year-relative+1": "明年", - "field-year-relative+-1": "去年", + "field-minute": "分钟", + "field-dayperiod": "上午/下午", + "dateFormatItem-d": "d日", "dateFormatItem-ms": "mm:ss", - "dateFormatItem-yyyyQQQQ": "Gy年QQQQ", - "field-year": "年", + "field-day-relative+-1": "昨天", + "dateFormatItem-h": "ah时", "dateTimeFormat-long": "{1} {0}", - "field-week": "周", - "dateFormatItem-yyyyMd": "Gy-MM-dd", - "dateFormatItem-yyyyMMMd": "Gy年M月d日", - "dateFormatItem-yyyyMEd": "Gy-M-d(E)", + "field-day-relative+-2": "前天", "dateFormatItem-MMMd": "M月d日", - "field-week-relative+0": "本周", - "field-week-relative+1": "下周", - "field-month-relative+0": "本月", - "dateFormatItem-H": "H时", - "field-month": "月", - "field-month-relative+1": "下个月", - "dateFormatItem-M": "M月", - "field-second": "秒钟", - "dateFormatItem-GyMMMEd": "Gy年M月d日E", - "dateFormatItem-GyMMM": "Gy年M月", - "field-day": "日", "dateFormatItem-MEd": "M-dE", - "dateFormatItem-yyyyQQQ": "Gy年第Q季度", + "dateTimeFormat-full": "{1} {0}", + "field-fri-relative+0": "本周五", + "field-fri-relative+1": "下周五", + "field-day": "日", + "field-zone": "时区", + "dateFormatItem-y": "Gy年", + "field-year-relative+-1": "去年", + "field-month-relative+-1": "上个月", "dateFormatItem-hm": "ah:mm", + "dateFormatItem-yyyyMd": "Gy-MM-dd", + "field-month": "月", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "本周二", + "field-tue-relative+1": "下周二", + "field-mon-relative+0": "本周一", + "field-mon-relative+1": "下周一", "dateFormat-short": "Gyy-MM-dd", + "field-second": "秒钟", + "field-sat-relative+-1": "上周六", + "field-sun-relative+-1": "上周日", + "field-month-relative+0": "本月", + "field-month-relative+1": "下个月", + "dateFormatItem-Ed": "d日E", + "field-week": "周", + "dateFormat-medium": "Gy年M月d日", + "field-year-relative+0": "今年", + "field-week-relative+-1": "上周", "dateFormatItem-yyyyM": "Gy-MM", - "dateFormat-full": "Gy年M月d日EEEE", - "dateFormatItem-Md": "M-d", - "dateFormatItem-yyyyMMM": "Gy年M月", - "dateFormatItem-d": "d日", - "field-month-relative+-1": "上个月", - "dateFormatItem-h": "ah时" + "field-year-relative+1": "明年", + "dateFormatItem-yyyyQQQQ": "Gy年QQQQ", + "dateTimeFormat-short": "{1} {0}", + "dateFormatItem-Hms": "HH:mm:ss", + "dateFormatItem-hms": "ah:mm:ss", + "dateFormatItem-GyMMM": "Gy年M月", + "field-mon-relative+-1": "上周一", + "dateFormatItem-yyyy": "Gy年", + "field-week-relative+0": "本周", + "field-week-relative+1": "下周" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh/number.js b/cldr/nls/zh/number.js index 90e14e7c6d..e2fc0149da 100644 --- a/cldr/nls/zh/number.js +++ b/cldr/nls/zh/number.js @@ -10,13 +10,14 @@ define( "infinity": "∞", "minusSign": "-", "decimal": ".", + "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", "currencyFormat": "¤#,##0.00;(¤#,##0.00)", "plusSign": "+", - "decimalFormat-long": "000万亿", - "decimalFormat-short": "000万亿" + "decimalFormat-long": "000兆", + "decimalFormat-short": "000兆" } //end v1.x content ); \ No newline at end of file diff --git a/cldr/nls/zh/persian.js b/cldr/nls/zh/persian.js index 9e81e2a9e3..beb3ba54f2 100644 --- a/cldr/nls/zh/persian.js +++ b/cldr/nls/zh/persian.js @@ -24,12 +24,16 @@ define( "11", "12" ], + "field-second-relative+0": "现在", "field-weekday": "星期", + "field-wed-relative+0": "本周三", + "field-wed-relative+1": "下周三", "dateFormatItem-GyMMMEd": "Gy年M月d日E", "dateFormatItem-MMMEd": "M月d日E", "eraNarrow": [ "波斯历" ], + "field-tue-relative+-1": "上周二", "days-format-short": [ "周日", "周一", @@ -40,6 +44,8 @@ define( "周六" ], "dateFormat-long": "Gy年M月d日", + "field-fri-relative+-1": "上周五", + "field-wed-relative+-1": "上周三", "months-format-wide": [ "一月", "二月", @@ -57,9 +63,11 @@ define( "dateFormatItem-yyyyQQQ": "Gy年第Q季度", "dayPeriods-format-wide-pm": "下午", "dateFormat-full": "Gy年M月d日EEEE", - "dateFormatItem-yyyyMEd": "Gy-M-d(E)", - "dateFormatItem-Md": "M-d", - "field-era": "时期", + "dateFormatItem-yyyyMEd": "Gy/M/dE", + "field-thu-relative+-1": "上周四", + "dateFormatItem-Md": "M/d", + "dayPeriods-format-wide-noon": "中午", + "field-era": "纪元", "months-standAlone-wide": [ "一月", "二月", @@ -98,9 +106,13 @@ define( "11月", "12月" ], + "field-sat-relative+0": "本周六", + "field-sat-relative+1": "下周六", "timeFormat-full": "zzzzah:mm:ss", "field-day-relative+0": "今天", + "field-thu-relative+0": "本周四", "field-day-relative+1": "明天", + "field-thu-relative+1": "下周四", "dateFormatItem-GyMMMd": "Gy年M月d日", "field-day-relative+2": "后天", "dateFormatItem-H": "H时", @@ -145,6 +157,8 @@ define( "dateFormatItem-yyyyMMM": "Gy年M月", "dateFormatItem-yyyyMMMd": "Gy年M月d日", "timeFormat-medium": "ah:mm:ss", + "field-sun-relative+0": "本周日", + "field-sun-relative+1": "下周日", "quarters-standAlone-abbr": [ "1季度", "2季度", @@ -168,12 +182,12 @@ define( "dateFormatItem-d": "d日", "field-day-relative+-1": "昨天", "dateFormatItem-h": "ah时", - "dateTimeFormat-long": "{1}{0}", "dayPeriods-format-narrow-am": "上午", "field-day-relative+-2": "前天", "dateFormatItem-MMMd": "M月d日", - "dateFormatItem-MEd": "M-dE", - "dateTimeFormat-full": "{1}{0}", + "dateFormatItem-MEd": "M/dE", + "field-fri-relative+0": "本周五", + "field-fri-relative+1": "下周五", "field-day": "日", "days-format-wide": [ "星期日", @@ -224,7 +238,7 @@ define( "五", "六" ], - "dateFormatItem-yyyyMd": "Gy-M-d", + "dateFormatItem-yyyyMd": "Gy/M/d", "field-month": "月", "days-standAlone-narrow": [ "日", @@ -235,9 +249,16 @@ define( "五", "六" ], + "field-tue-relative+0": "本周二", + "field-tue-relative+1": "下周二", "dayPeriods-format-wide-am": "上午", - "dateFormat-short": "Gy-M-d", + "field-mon-relative+0": "本周一", + "field-mon-relative+1": "下周一", + "dateFormat-short": "Gy/M/d", + "dayPeriods-format-narrow-noon": "中午", "field-second": "秒钟", + "field-sat-relative+-1": "上周六", + "field-sun-relative+-1": "上周日", "field-month-relative+0": "本月", "field-month-relative+1": "下个月", "dateFormatItem-Ed": "d日E", @@ -245,12 +266,13 @@ define( "dateFormat-medium": "Gy年M月d日", "field-year-relative+0": "今年", "field-week-relative+-1": "上周", - "dateFormatItem-yyyyM": "Gy-M", + "dateFormatItem-yyyyM": "Gy年M月", "field-year-relative+1": "明年", "dayPeriods-format-narrow-pm": "下午", - "dateFormatItem-yyyyQQQQ": "Gy年QQQQ", + "dateFormatItem-yyyyQQQQ": "Gy年第Q季度", "dateFormatItem-hms": "ah:mm:ss", "dateFormatItem-GyMMM": "Gy年M月", + "field-mon-relative+-1": "上周一", "dateFormatItem-yyyy": "Gy年", "field-week-relative+0": "本周", "field-week-relative+1": "下周" diff --git a/cldr/nls/zh/roc.js b/cldr/nls/zh/roc.js index 8fb5c4aa71..c44a1aae29 100644 --- a/cldr/nls/zh/roc.js +++ b/cldr/nls/zh/roc.js @@ -1,35 +1,84 @@ define( //begin v1.x content { - "field-second": "秒钟", - "field-year-relative+-1": "去年", - "field-week": "周", - "field-month-relative+-1": "上个月", - "field-day-relative+-1": "昨天", - "field-day-relative+-2": "前天", + "field-second-relative+0": "现在", + "field-weekday": "星期", + "field-wed-relative+0": "本周三", + "field-wed-relative+1": "下周三", + "dateFormatItem-GyMMMEd": "Gy年M月d日E", + "dateFormatItem-MMMEd": "M月d日E", + "field-tue-relative+-1": "上周二", + "dateFormat-long": "Gy年M月d日", + "field-fri-relative+-1": "上周五", + "field-wed-relative+-1": "上周三", + "dateFormatItem-yyyyQQQ": "Gy年第Q季度", + "dateFormat-full": "Gy年M月d日EEEE", + "dateFormatItem-yyyyMEd": "Gy/M/dE", + "field-thu-relative+-1": "上周四", + "dateFormatItem-Md": "M/d", + "field-era": "纪元", "field-year": "年", - "field-week-relative+0": "本周", - "field-week-relative+1": "下周", - "field-minute": "分钟", - "field-week-relative+-1": "上周", - "field-day-relative+0": "今天", + "dateFormatItem-yyyyMMMM": "Gy年M月", "field-hour": "小时", + "field-sat-relative+0": "本周六", + "field-sat-relative+1": "下周六", + "field-day-relative+0": "今天", + "field-thu-relative+0": "本周四", "field-day-relative+1": "明天", + "field-thu-relative+1": "下周四", + "dateFormatItem-GyMMMd": "Gy年M月d日", "field-day-relative+2": "后天", + "dateFormatItem-Gy": "Gy年", + "dateFormatItem-yyyyMMMEd": "Gy年M月d日E", + "dateFormatItem-M": "M月", + "dateFormatItem-yyyyMMM": "Gy年M月", + "dateFormatItem-yyyyMMMd": "Gy年M月d日", + "field-sun-relative+0": "本周日", + "field-sun-relative+1": "下周日", + "eraAbbr": [ + "民国前", + "民国" + ], + "field-minute": "分钟", + "field-dayperiod": "上午/下午", + "dateFormatItem-d": "d日", + "field-day-relative+-1": "昨天", + "field-day-relative+-2": "前天", + "dateFormatItem-MMMd": "M月d日", + "dateFormatItem-MEd": "M/dE", + "field-fri-relative+0": "本周五", + "field-fri-relative+1": "下周五", "field-day": "日", + "field-zone": "时区", + "dateFormatItem-y": "Gy年", + "field-year-relative+-1": "去年", + "field-month-relative+-1": "上个月", + "dateFormatItem-yyyyMd": "Gy/M/d", + "field-month": "月", + "dateFormatItem-MMM": "LLL", + "field-tue-relative+0": "本周二", + "field-tue-relative+1": "下周二", + "field-mon-relative+0": "本周一", + "field-mon-relative+1": "下周一", + "dateFormat-short": "Gyy/M/d", + "field-second": "秒钟", + "field-sat-relative+-1": "上周六", + "field-sun-relative+-1": "上周日", "field-month-relative+0": "本月", "field-month-relative+1": "下个月", - "field-dayperiod": "上午/下午", - "field-month": "月", - "field-era": "时期", + "dateFormatItem-Ed": "d日E", + "field-week": "周", + "dateFormat-medium": "Gy年M月d日", "field-year-relative+0": "今年", + "field-week-relative+-1": "上周", + "dateFormatItem-yyyyM": "Gy年M月", "field-year-relative+1": "明年", - "eraAbbr": [ - "民国前", - "民国" - ], - "field-weekday": "星期", - "field-zone": "时区" + "dateFormatItem-yyyyQQQQ": "Gy年第Q季度", + "dateFormatItem-GyMMM": "Gy年M月", + "field-mon-relative+-1": "上周一", + "dateFormatItem-yyyy": "Gy年", + "field-week-relative+0": "本周", + "field-week-relative+1": "下周" } //end v1.x content ); \ No newline at end of file From dd9512b09e1a79fb83de7fa1d8bd52038d7fd368 Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Fri, 4 Apr 2014 14:47:40 -0600 Subject: [PATCH 064/376] Compute existing id prior to put, when creating notifications, refs #17783 --- store/Observable.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/store/Observable.js b/store/Observable.js index ce9e07eb86..b33e72e0e9 100644 --- a/store/Observable.js +++ b/store/Observable.js @@ -150,6 +150,10 @@ var Observable = function(/*Store*/ store){ var original = store[method]; if(original){ store[method] = function(value){ + var originalId; + if(method === 'put'){ + originalId = store.getIdentity(value); + } if(inMethod){ // if one method calls another (like add() calling put()) we don't want two events return original.apply(this, arguments); @@ -158,7 +162,7 @@ var Observable = function(/*Store*/ store){ try{ var results = original.apply(this, arguments); when(results, function(results){ - action((typeof results == "object" && results) || value); + action((typeof results == "object" && results) || value, originalId); }); return results; }finally{ @@ -168,8 +172,8 @@ var Observable = function(/*Store*/ store){ } } // monitor for updates by listening to these methods - whenFinished("put", function(object){ - store.notify(object, store.getIdentity(object)); + whenFinished("put", function(object, originalId){ + store.notify(object, originalId); }); whenFinished("add", function(object){ store.notify(object); From 07cf82837a3a0bdbb0c0727ad8f41923804ceffd Mon Sep 17 00:00:00 2001 From: Dasa Paddock Date: Mon, 7 Apr 2014 10:02:36 -0700 Subject: [PATCH 065/376] fix typo, refs #17778 --- _base/lang.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_base/lang.js b/_base/lang.js index 48a9c43c72..89a6ec7e5d 100644 --- a/_base/lang.js +++ b/_base/lang.js @@ -330,7 +330,7 @@ define(["./kernel", "../has", "../sniff"], function(dojo, has){ hitch: function(scope, method){ // summary: - // Returns a function that will only ever execute in the a given scope. + // Returns a function that will only ever execute in the given scope. // This allows for easy use of object member functions // in callbacks and other places in which the "this" keyword may // otherwise not reference the expected scope. From 87facf31bae5f88822006126740c0e70da25b50b Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Wed, 9 Apr 2014 22:11:13 -0600 Subject: [PATCH 066/376] Add support for an array of event types/extensions, fixes #17023 --- on.js | 7 ++++++- tests/on/on.js | 17 +++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/on.js b/on.js index fa2a58920e..931c01679f 100644 --- a/on.js +++ b/on.js @@ -94,11 +94,16 @@ define(["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./sniff"], fu if(type.indexOf(",") > -1){ // we allow comma delimited event names, so you can register for multiple events at once var events = type.split(/\s*,\s*/); + }else if(type instanceof Array){ + // allow an array of event names (or event handler functions) + events = type; + } + if(events){ var handles = []; var i = 0; var eventName; while(eventName = events[i++]){ - handles.push(addListener(target, eventName, listener, dontFix, matchesTarget)); + handles.push(on.parse(target, eventName, listener, addListener, dontFix, matchesTarget)); } handles.remove = function(){ for(var i = 0; i < handles.length; i++){ diff --git a/tests/on/on.js b/tests/on/on.js index 46d80d49c8..8af86a02e4 100644 --- a/tests/on/on.js +++ b/tests/on/on.js @@ -44,6 +44,23 @@ define([ }); t.is(order, [0,0,3,0,3,3,3,3,6,0,3,7,4]); }, + function multipleHandlers(t){ + var div = document.body.appendChild(document.createElement("div")); + var order = []; + var customEvent = function(target, listener){ + return on(target, "custom", listener); + }; + on(div, "a,b", function(event){ + order.push(1 + event.type); + }); + on(div, ["a",customEvent], function(event){ + order.push(2 + event.type); + }); + on.emit(div, "a", {}); + on.emit(div, "b", {}); + on.emit(div, "custom", {}); + t.is(order, ["1a", "2a", "1b", "2custom"]); + }, function once(t){ var order = []; var obj = new Evented(); From 3ad07a0497649e266ba99a9e347eb9b41bd92dd6 Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Thu, 10 Apr 2014 07:23:36 -0600 Subject: [PATCH 067/376] Don't do an extraneous mixin on the data returned from a single arg call to data(), fixes #15503 --- NodeList-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NodeList-data.js b/NodeList-data.js index 29e9801452..903f07fb6a 100644 --- a/NodeList-data.js +++ b/NodeList-data.js @@ -54,7 +54,7 @@ define([ if(!dataCache[pid]){ dataCache[pid] = {}; } // API discrepency: calling with only a node returns the whole object. $.data throws - if(arguments.length == 1){ r = dataCache[pid]; } + if(arguments.length == 1){ return dataCache[pid]; } if(typeof key == "string"){ // either getter or setter, based on `value` presence if(arguments.length > 2){ From e5f099e8b6c9786cdd46d4e013772af0e102f61c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Sun, 9 Mar 2014 01:51:19 +0700 Subject: [PATCH 068/376] Use Element.matches if available Spec: http://dom.spec.whatwg.org/#dom-element-matches Support in Chromium: https://code.google.com/p/chromium/issues/detail?id=326652 Element.matchesSelector was never standardized and it is not available in the most recent versions of Blink, Gecko, Presto, Trident or WebKit. Remove the trailing comment since it had become stale. Opera 12.16 (Presto) did have oMatchesSelector and since Opera 14 (Blink) it has webkitMatchesSelector instead. --- selector/lite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selector/lite.js b/selector/lite.js index 50f1ed5e39..6dc41188d9 100644 --- a/selector/lite.js +++ b/selector/lite.js @@ -2,7 +2,7 @@ define(["../has", "../_base/kernel"], function(has, dojo){ "use strict"; var testDiv = document.createElement("div"); -var matchesSelector = testDiv.matchesSelector || testDiv.webkitMatchesSelector || testDiv.mozMatchesSelector || testDiv.msMatchesSelector || testDiv.oMatchesSelector; // IE9, WebKit, Firefox have this, but not Opera yet +var matchesSelector = testDiv.matches || testDiv.webkitMatchesSelector || testDiv.mozMatchesSelector || testDiv.msMatchesSelector || testDiv.oMatchesSelector; var querySelectorAll = testDiv.querySelectorAll; var unionSplit = /([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g; has.add("dom-matches-selector", !!matchesSelector); From a361d74ebec562ccc22e59ebfbc8bfd94e2008b4 Mon Sep 17 00:00:00 2001 From: Benjamin Santalucia Date: Fri, 11 Apr 2014 15:46:50 -0500 Subject: [PATCH 069/376] re-usable text escaping fixes #8995 --- string.js | 21 ++++++++++++++++++++- tests/string.js | 8 +++++++- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/string.js b/string.js index 5af2556fe2..e0f5966800 100644 --- a/string.js +++ b/string.js @@ -5,13 +5,32 @@ define([ // module: // dojo/string - +var ESCAPE_REGEXP = /[&<>'"\/]/g; +var ESCAPE_MAP = { + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''', + '/': '/' +}; var string = { // summary: // String utilities for Dojo }; lang.setObject("dojo.string", string); +string.escape = function(/*String*/str){ + // summary: + // Efficiently escape a string for insertion into HTML (innerHTML or attributes), replacing &, <, >, ", ', and / characters. + // str: + // the string to escape + if(!str){ return ""; } + return str.replace(ESCAPE_REGEXP, function(c) { + return ESCAPE_MAP[c]; + }); +}; + string.rep = function(/*String*/str, /*Integer*/num){ // summary: // Efficiently replicate a string `n` times. diff --git a/tests/string.js b/tests/string.js index 92217b1f6e..0d902e7054 100644 --- a/tests/string.js +++ b/tests/string.js @@ -85,8 +85,14 @@ doh.register("tests.string", t.is("abababab", string.rep("ab", 4)); t.is("", string.rep("ab", 0)); t.is("", string.rep("", 3)); + }, + + function test_string_escape(t){ + t.is("astoria", string.escape("astoria")); + t.is("&<>'/", string.escape("&<>'/")); + t.is('oh"oh"oh', string.escape('oh"oh"oh')); } ] ); -}); \ No newline at end of file +}); From 205416f41cc00d0391a019faac9f59c2aec51a87 Mon Sep 17 00:00:00 2001 From: Stephen Simpson Date: Fri, 11 Apr 2014 16:15:42 -0500 Subject: [PATCH 070/376] fixes #11750, added a WebWorker hostenvironment --- _base/config.js | 5 +- dojo.js | 34 +- request/default.js | 2 +- tests/_base/loader/hostenv_webworkers.js | 325 ++++++++++++++++++ .../loader/hostenv_webworkers/console.js | 30 ++ .../loader/hostenv_webworkers/strings.js | 5 + .../loader/hostenv_webworkers/worker1.js | 30 ++ .../loader/hostenv_webworkers/worker2.js | 27 ++ .../loader/hostenv_webworkers/worker3.js | 28 ++ .../loader/hostenv_webworkers/worker4-1.js | 28 ++ .../loader/hostenv_webworkers/worker4.js | 38 ++ .../loader/hostenv_webworkers/worker5.js | 46 +++ .../loader/hostenv_webworkers/worker5.json | 4 + .../loader/hostenv_webworkers/worker6.js | 42 +++ 14 files changed, 640 insertions(+), 4 deletions(-) create mode 100644 tests/_base/loader/hostenv_webworkers.js create mode 100644 tests/_base/loader/hostenv_webworkers/console.js create mode 100644 tests/_base/loader/hostenv_webworkers/strings.js create mode 100644 tests/_base/loader/hostenv_webworkers/worker1.js create mode 100644 tests/_base/loader/hostenv_webworkers/worker2.js create mode 100644 tests/_base/loader/hostenv_webworkers/worker3.js create mode 100644 tests/_base/loader/hostenv_webworkers/worker4-1.js create mode 100644 tests/_base/loader/hostenv_webworkers/worker4.js create mode 100644 tests/_base/loader/hostenv_webworkers/worker5.js create mode 100644 tests/_base/loader/hostenv_webworkers/worker5.json create mode 100644 tests/_base/loader/hostenv_webworkers/worker6.js diff --git a/_base/config.js b/_base/config.js index d94d9c8077..dc1a4b969d 100644 --- a/_base/config.js +++ b/_base/config.js @@ -185,7 +185,10 @@ return { if(!result.locale && typeof navigator != "undefined"){ // Default locale for browsers. - result.locale = (navigator.language || navigator.userLanguage).toLowerCase(); + var language = (navigator.language || navigator.userLanguage); + if(language){ + result.locale = language.toLowerCase(); + } } return result; diff --git a/dojo.js b/dojo.js index e87d3467db..5785a7b491 100644 --- a/dojo.js +++ b/dojo.js @@ -168,6 +168,36 @@ rhinoDojoConfig(defaultConfig, baseUrl, rhinoArgs); } + has.add("host-webworker", ((typeof WorkerGlobalScope !== 'undefined') && (self instanceof WorkerGlobalScope))); + if(has("host-webworker")){ + mix(defaultConfig.hasCache, { + "host-browser": 0, + "dom": 0, + "dojo-dom-ready-api": 0, + "dojo-sniff": 0, + "dojo-inject-api": 1, + "host-webworker": 1 + }); + + defaultConfig.loaderPatch = { + injectUrl: function(url, callback){ + // TODO: + // This is not async, nor can it be in Webworkers. It could be made better by passing + // the entire require array into importScripts at. This way the scripts are loaded in + // async mode; even if the callbacks are ran in sync. It is not a major issue as webworkers + // tend to be long running where initial startup is not a major factor. + + try{ + importScripts(url); + callback(); + }catch(e){ + console.info("failed to load resource (" + url + ")"); + console.error(e); + } + } + }; + } + // userConfig has tests override defaultConfig has tests; do this after the environment detection because // the environment detection usually sets some has feature values in the hasCache. for(var p in userConfig.has){ @@ -237,7 +267,7 @@ }; }; - if(has("dom")){ + if(has("dom") || has("host-webworker")){ // in legacy sync mode, the loader needs a minimal XHR library var locationProtocol = location.protocol, @@ -1606,7 +1636,7 @@ startTimer = function(){ clearTimer(); if(req.waitms){ - timerId = window.setTimeout(function(){ + timerId = global.setTimeout(function(){ clearTimer(); signal(error, makeError("timeout", waiting)); }, req.waitms); diff --git a/request/default.js b/request/default.js index b82aacf176..9943df0030 100644 --- a/request/default.js +++ b/request/default.js @@ -6,7 +6,7 @@ define([ var defId = has('config-requestProvider'), platformId; - if(has('host-browser')){ + if(has('host-browser') || has('host-webworker')){ platformId = './xhr'; }else if(has('host-node')){ platformId = './node'; diff --git a/tests/_base/loader/hostenv_webworkers.js b/tests/_base/loader/hostenv_webworkers.js new file mode 100644 index 0000000000..104f2ccce7 --- /dev/null +++ b/tests/_base/loader/hostenv_webworkers.js @@ -0,0 +1,325 @@ +define([ + "doh/main", + "dojo/has", + "dojo/sniff" +], function(doh, has, sniff){ + // summary: + // Test the loading of Dojo in the WebWorker environment. + + has.add("webworkers", (typeof Worker === 'function')); + if(has("webworkers")){ + // Tests will still pass when workers not available but warning issued. + + var fixtures = { + deferred: function(){ + this.deferred = new doh.Deferred(); + } + }; + + var tearDowns = { + killWorker: function(){ + var self = this; + this.deferred.then(function(){ + self.worker.terminate(); + }); + + }, + killBlobWorker: function(){ + var self = this; + this.deferred.then(function(){ + if(has("blobs") && has("convertObjectUrl")){ + self.worker.terminate(); + window.URL.revokeObjectURL(self.workerBlobURL); + } + }); + + } + }; + + function reflectConsole(message){ + if(message.data.consoleType in console){ + if(has("opera") && opera.postError){ + opera.postError(message.data.consoleType.toUpperCase() + ": Platform does not support Blobs"); + }else{ + console[message.data.consoleType](message.data.value); + } + }else{ + if(has("opera") && opera.postError){ + opera.postError("ERROR: Could not reflect console message type: " + message.data.consoleType); + }else{ + console.error("Could not reflect console message type: " + message.data.consoleType); + } + } + } + + doh.register("tests._base.hostenv_webworkers", [{ + name: "Loading Dojo core inside worker", + setUp: fixtures.deferred, + tearDown: tearDowns.killWorker, + timeout: 5000, + runTest: function(){ + // summary: + // Test whether dojo can be loaded in the worker + + var self = this; + this.worker = new Worker("../../dojo/tests/_base/loader/hostenv_webworkers/worker1.js"); + + this.worker.addEventListener("message", function (message){ + if(message.data.type === "testResult"){ + if(message.data.value){ + self.deferred.resolve(); + }else{ + self.deferred.reject(); + } + }else if(message.data.type === "console"){ + reflectConsole(message); + } + }, false); + + return this.deferred; + } + }, { + name: "Load a dojo script via require", + setUp: fixtures.deferred, + tearDown: tearDowns.killWorker, + timeout: 5000, + runTest: function(){ + // summary: + // Test whether require works in the worker. + + var self = this; + this.worker = new Worker("../../dojo/tests/_base/loader/hostenv_webworkers/worker2.js"); + + this.worker.addEventListener("message", function (message){ + if(message.data.type === "testResult"){ + if(message.data.value){ + self.deferred.resolve(); + }else{ + self.deferred.reject(); + } + }else if(message.data.type === "console"){ + reflectConsole(message); + } + }, false); + + return this.deferred; + } + }, { + name: "Load a dojo script via require in async mode", + setUp: fixtures.deferred, + tearDown: tearDowns.killWorker, + timeout: 5000, + runTest: function(){ + // summary: + // Test whether require works in the worker when in async mode. + + var self = this; + this.worker = new Worker("../../dojo/tests/_base/loader/hostenv_webworkers/worker3.js"); + + this.worker.addEventListener("message", function(message){ + if(message.data.type === "testResult"){ + if(message.data.value){ + self.deferred.resolve(); + }else{ + self.deferred.reject(); + } + }else if(message.data.type === "console"){ + reflectConsole(message); + } + }, false); + + return this.deferred; + } + }, { + name: "Load a dojo script via require in a subworker", + setUp: fixtures.deferred, + tearDown: tearDowns.killWorker, + timeout: 5000, + runTest: function(){ + // summary: + // Test whether Dojo will load in a subworker. + // description: + // This is more complex as two workers are created. The first acts as a + // middleman between this function and the subworker. Some browsers do not + // support subworkers at writing (eg. Chrome - see: + // https://code.google.com/p/chromium/issues/detail?id=31666 for current status). + // Test issues a warning if subworks not available but passes the test. + + var self = this; + this.worker = new Worker("../../dojo/tests/_base/loader/hostenv_webworkers/worker4.js"); + + this.worker.addEventListener("message", function(message){ + if(message.data.type === "testResult"){ + if(message.data.value){ + self.deferred.resolve(); + }else{ + self.deferred.reject(); + } + }else if(message.data.type === "console"){ + reflectConsole(message); + } + }, false); + + return this.deferred; + } + }, { + name: "Test for loading in a blob worker", + setUp: fixtures.deferred, + tearDown: tearDowns.killBlobWorker, + timeout: 5000, + runTest: function(){ + // summary: + // Test for loading dojo and using require in a blob worker + has.add("blobs", (typeof Blob === 'function')); + has.add("convertObjectUrl", function(){ + var URL = window.URL || window.webkitURL; + if(URL !== undefined){ + return (typeof URL.createObjectURL === 'function'); + } + + return false; + }); + + if(has("blobs") && has("convertObjectUrl")){ + function getBaseAbsoluteUrl(){ + // summary: + // Blobs need absolute urls to be used within them as relative is relative + // to blob://. + // TODO: + // Is there a better way of calculating the absolute url base path? + + var baseUrl = require.rawConfig.baseUrl.split("/"); + var absoluteUrl = location.pathname.split("/"); + absoluteUrl.pop(); + absoluteUrl.pop(); + baseUrl.pop(); + + return location.protocol + "//" + location.host + absoluteUrl.join("/") + "/" + baseUrl.join("/") + "/"; + } + + var workerBlob = new Blob([ + 'var dojoConfig = {' + + '"baseUrl":"' + getBaseAbsoluteUrl() + '",' + + '"packages":[{"name":"dojo", "location":"dojo"}]' + + '};' + + + 'importScripts(' + + 'dojoConfig.baseUrl+"dojo/dojo.js",' + + 'dojoConfig.baseUrl+"dojo/tests/_base/loader/hostenv_webworkers/console.js"' + + ');' + + + 'try{' + + 'require(["dojo/tests/_base/loader/hostenv_webworkers/strings"], function(strings){' + + 'this.postMessage({type:"testResult", "test":"require is working", "value":true});' + + '});' + + '}catch(e){' + + 'this.postMessage({' + + 'type:"testResult", "test":"require is working", "value":false' + + '});' + + '}'], {type: "text/javascript"}); + + var self = this; + var URL = window.URL || window.webkitURL; + self.workerBlobURL = URL.createObjectURL(workerBlob); + + try{ + this.worker = new Worker(self.workerBlobURL); + this.worker.addEventListener("message", function(message){ + if(message.data.type === "testResult"){ + if(message.data.value){ + self.deferred.resolve(); + }else{ + self.deferred.reject(); + } + }else if(message.data.type === "console"){ + reflectConsole(message); + } + }, false); + }catch(e){ + if(e.message.toLowerCase() === "securityerror"){ + // IE does not support Webworkers from Blobs at present + + console.warn("Blob workers are not supported"); + self.deferred.resolve(); + }else{ + throw e; + } + } + + return this.deferred; + }else{ + if(window.opera){ + opera.postError("WARN: Platform does not support Blobs"); + }else{ + console.log("Platform does not support Blobs"); + } + } + } + }, { + name: "Test making a XHR request inside a worker using dojo/request", + setUp: fixtures.deferred, + tearDown: tearDowns.killWorker, + timeout: 5000, + runTest: function(){ + // summary: + // Test using dojo/request in a worker + // description: + // This is a more advanced test to ensure Dojo's implementation of + // XHR works in the webworker. It is also a general test of loading + // components via require and then using them. + + var self = this; + this.worker = new Worker("../../dojo/tests/_base/loader/hostenv_webworkers/worker5.js?v=4"); + + this.worker.addEventListener("message", function(message){ + if(message.data.type === "testResult"){ + if(message.data.value){ + self.deferred.resolve(); + }else{ + self.deferred.reject(); + } + }else if(message.data.type === "console"){ + reflectConsole(message); + } + }, false); + + return this.deferred; + } + }, { + name: "Test using dojo/on in a worker", + setUp: fixtures.deferred, + tearDown: tearDowns.killWorker, + timeout: 5000, + runTest: function(){ + // summary: + // Test using dojo/on in a worker. + // description: + // Another advanced test to see if dojo/on works in workers where there is no DOM. + // Test waits for the worker to request a message and then send one. Worker uses + // dojo/on to listen for messages on the worker global. It responds with a + // pass for the test if it receives it correctly. + + var self = this; + this.worker = new Worker("../../dojo/tests/_base/loader/hostenv_webworkers/worker6.js"); + + this.worker.addEventListener("message", function (message){ + if(message.data.type === "testResult"){ + if(message.data.value){ + self.deferred.resolve(); + }else{ + self.deferred.reject(); + } + }else if(message.data.type === "requestMessage"){ + self.worker.postMessage({type: "gotMessage"}) + }else if(message.data.type === "console"){ + reflectConsole(message); + } + }, false); + + return this.deferred; + } + }]); + }else{ + console.warno("Platform does not support webworkers") + } +}); diff --git a/tests/_base/loader/hostenv_webworkers/console.js b/tests/_base/loader/hostenv_webworkers/console.js new file mode 100644 index 0000000000..91032084c1 --- /dev/null +++ b/tests/_base/loader/hostenv_webworkers/console.js @@ -0,0 +1,30 @@ +// summary: +// Console polyfill for webworkers. +// description: +// Webworkers do not have access to the console as of writing (except in Chrome). This polyfills +// the console by passing messages back to the browser window for it to reflect to the console. +// This should make debugging of test failure a bit easier. + +if(!self.console){ + console = { + _sendMessage: function(type, message){ + self.postMessage({ + type: "console", + consoleType: type, + value: message + }); + }, + log: function(message){ + console._sendMessage("log", message); + }, + error: function(message){ + console._sendMessage("error", message); + }, + warn: function(message){ + console._sendMessage("warn", message); + }, + info: function(message){ + console._sendMessage("info", message); + } + } +} \ No newline at end of file diff --git a/tests/_base/loader/hostenv_webworkers/strings.js b/tests/_base/loader/hostenv_webworkers/strings.js new file mode 100644 index 0000000000..53be273bb4 --- /dev/null +++ b/tests/_base/loader/hostenv_webworkers/strings.js @@ -0,0 +1,5 @@ +define({ + root: ({ + foo: "bar" + }) +}); \ No newline at end of file diff --git a/tests/_base/loader/hostenv_webworkers/worker1.js b/tests/_base/loader/hostenv_webworkers/worker1.js new file mode 100644 index 0000000000..6531e56fe4 --- /dev/null +++ b/tests/_base/loader/hostenv_webworkers/worker1.js @@ -0,0 +1,30 @@ +// summary: +// Test whether Dojo will load inside the webworker. + +var dojoConfig = { + baseUrl: "../../../../../", + packages: [{ + name: "dojo", location: "dojo" + }] +}; + +try{ + importScripts("../../../../dojo.js", "console.js"); + + self.postMessage({ + type: "testResult", + test: "dojo loaded", + value: true + }); +}catch(e){ + self.postMessage({ + type: "testResult", + test: "dojo loaded", + value: false + }); +} + + + + + diff --git a/tests/_base/loader/hostenv_webworkers/worker2.js b/tests/_base/loader/hostenv_webworkers/worker2.js new file mode 100644 index 0000000000..fef1de82ac --- /dev/null +++ b/tests/_base/loader/hostenv_webworkers/worker2.js @@ -0,0 +1,27 @@ +// summary: +// Test whether the require function loads modules as it should. + +var dojoConfig = { + baseUrl: "../../../../../", + packages: [{ + name: "dojo", location: "dojo" + }] +}; + +importScripts("../../../../dojo.js", "console.js"); + +try{ + require(["dojo/tests/_base/loader/hostenv_webworkers/strings"], function(strings){ + self.postMessage({ + type: "testResult", + test: "require is working", + value: true + }); + }); +}catch(e){ + self.postMessage({ + type: "testResult", + test: "require is working", + value: false + }); +} diff --git a/tests/_base/loader/hostenv_webworkers/worker3.js b/tests/_base/loader/hostenv_webworkers/worker3.js new file mode 100644 index 0000000000..1b9437516a --- /dev/null +++ b/tests/_base/loader/hostenv_webworkers/worker3.js @@ -0,0 +1,28 @@ +// summary: +// Test whether the require function loads modules as it should in async mode. + +var dojoConfig = { + baseUrl: "../../../../../", + async: true, + packages: [{ + name: "dojo", location: "dojo" + }] +}; + +importScripts("../../../../dojo.js", "console.js"); + +try{ + require(["dojo/tests/_base/loader/hostenv_webworkers/strings"], function(strings){ + self.postMessage({ + type: "testResult", + test: "require is working", + value: true + }); + }); +}catch(e){ + self.postMessage({ + type: "testResult", + test: "require is working", + value: false + }); +} diff --git a/tests/_base/loader/hostenv_webworkers/worker4-1.js b/tests/_base/loader/hostenv_webworkers/worker4-1.js new file mode 100644 index 0000000000..4aeb1ca4d9 --- /dev/null +++ b/tests/_base/loader/hostenv_webworkers/worker4-1.js @@ -0,0 +1,28 @@ +// summary: +// Test whether subworkers work. + +var dojoConfig = { + baseUrl: "../../../../../", + async: true, + packages: [{ + name: "dojo", location: "dojo" + }] +}; + +importScripts("../../../../dojo.js", "console.js"); + +try{ + require(["dojo/tests/_base/loader/hostenv_webworkers/strings"], function(strings){ + self.postMessage({ + type: "testResult", + test: "subworkers are working", + value: true + }); + }); +}catch(e){ + self.postMessage({ + type: "testResult", + test: "subworkers are working", + value: false + }); +} diff --git a/tests/_base/loader/hostenv_webworkers/worker4.js b/tests/_base/loader/hostenv_webworkers/worker4.js new file mode 100644 index 0000000000..a30813b07d --- /dev/null +++ b/tests/_base/loader/hostenv_webworkers/worker4.js @@ -0,0 +1,38 @@ +// summary: +// Test subworkers, this is the worker in the middle, that spawns the subworker and passes +// messages between them. + +var dojoConfig = { + baseUrl: "../../../../../", + async: true, + packages: [{ + name: "dojo", location: "dojo" + }] +}; + +importScripts("../../../../dojo.js", "console.js"); + +require(["dojo/has"], function(has){ + // Test for workers, currently chrome does not support subworkers. + + has.add("webworkers", (typeof Worker === 'function')); + if(has("webworkers")){ + var worker = new Worker("worker4-1.js"); + worker.addEventListener("message", function(message){ + self.postMessage(message.data); + worker.terminate(); + }, false); + }else{ + // Chrome does not support webworkers of writing this test + // (see: http://code.google.com/p/chromium/issues/detail?id=31666) + + console.warn("Platform does not support subworkers"); + self.postMessage({ + type: "testResult", + test: "subworkers are working", + value: true + }); + } +}); + + diff --git a/tests/_base/loader/hostenv_webworkers/worker5.js b/tests/_base/loader/hostenv_webworkers/worker5.js new file mode 100644 index 0000000000..b40bfa73f9 --- /dev/null +++ b/tests/_base/loader/hostenv_webworkers/worker5.js @@ -0,0 +1,46 @@ +// summary: +// Test loading json via dojo/request in a worker. + +var dojoConfig = { + baseUrl: "../../../../../", + async: true, + packages: [{ + name: "dojo", location: "dojo" + }] +}; + +importScripts("../../../../dojo.js", "console.js"); + +try{ + require(["dojo/request"], function(request){ + request("../../../../tests/_base/loader/hostenv_webworkers/worker5.json", { + handleAs: "json" + }).then(function(data) { + if(data.foo && !data.bar){ + self.postMessage({ + type: "testResult", + test: data, + value: true + }); + }else{ + self.postMessage({ + type: "testResult", + test: "require is working", + value: false + }); + } + }, function(){ + self.postMessage({ + type: "testResult", + test: "request in a worker is working", + value: false + }); + }); + }); +}catch(e){ + self.postMessage({ + type: "testResult", + test: "request in a worker is working", + value: false + }); +} diff --git a/tests/_base/loader/hostenv_webworkers/worker5.json b/tests/_base/loader/hostenv_webworkers/worker5.json new file mode 100644 index 0000000000..523b21867e --- /dev/null +++ b/tests/_base/loader/hostenv_webworkers/worker5.json @@ -0,0 +1,4 @@ +{ + "foo": true, + "bar": false +} \ No newline at end of file diff --git a/tests/_base/loader/hostenv_webworkers/worker6.js b/tests/_base/loader/hostenv_webworkers/worker6.js new file mode 100644 index 0000000000..fd1eeab5b1 --- /dev/null +++ b/tests/_base/loader/hostenv_webworkers/worker6.js @@ -0,0 +1,42 @@ +// summary: +// Test the use of dojo/on without access to dom in a webworker. + +var dojoConfig = { + baseUrl: "../../../../../", + async: true, + packages: [{ + name: "dojo", location: "dojo" + }] +}; + +importScripts("../../../../dojo.js", "console.js"); + +try{ + require(["dojo/on"], function(on){ + on(self, "message", function(message){ + if(message.data.type === "gotMessage"){ + self.postMessage({ + type: "testResult", + test: "dojo/on in a worker is working", + value: true + }); + }else{ + self.postMessage({ + type: "testResult", + test: "dojo/on in a worker is working", + value: false + }); + } + }); + + self.postMessage({ + type: "requestMessage" + }); + }); +}catch(e){ + self.postMessage({ + type: "testResult", + test: "dojo/on in a worker is working", + value: false + }); +} From 7cf1dbb57765232ad95b9d4f3ed5a0a7177f3440 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Fri, 11 Apr 2014 16:24:21 -0500 Subject: [PATCH 071/376] Prevent `baseUrl` global variable creation. fixes #17798 --- dojo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo.js b/dojo.js index 5785a7b491..7eaf1d9d31 100644 --- a/dojo.js +++ b/dojo.js @@ -609,7 +609,7 @@ // for each packagePath found in any packagePaths config item, augment the packageConfig // packagePaths is deprecated; remove in 2.0 - for(baseUrl in config.packagePaths){ + for(var baseUrl in config.packagePaths){ forEach(config.packagePaths[baseUrl], function(packageInfo){ var location = baseUrl + "/" + packageInfo; if(isString(packageInfo)){ From a776e1ec8117dccfce8c8ad88e571a50e89db82a Mon Sep 17 00:00:00 2001 From: Bill Keese Date: Tue, 15 Apr 2014 11:22:28 +0900 Subject: [PATCH 072/376] Avoid double-click event when onclick handler shows confirm()/alert(). Fixes #17815, refs #15878. --- touch.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/touch.js b/touch.js index 1acd475fcb..28ebd79ac0 100644 --- a/touch.js +++ b/touch.js @@ -155,6 +155,9 @@ function(dojo, aspect, dom, domClass, lang, on, has, mouse, domReady, win){ ); setTimeout(function(){ on.emit(target, "click", clickEvt); + + // refresh clickTime in case app-defined click handler took a long time to run + clickTime = (new Date()).getTime(); }, 0); } }, true); From 23a297a605051c6bcfa0fd91ee163c69d2f21fda Mon Sep 17 00:00:00 2001 From: Bill Keese Date: Tue, 15 Apr 2014 11:25:25 +0900 Subject: [PATCH 073/376] cleanup variable names etc., refs #17815. --- touch.js | 199 +++++++++++++++++++++++++++---------------------------- 1 file changed, 98 insertions(+), 101 deletions(-) diff --git a/touch.js b/touch.js index 28ebd79ac0..c8a8ee3d86 100644 --- a/touch.js +++ b/touch.js @@ -4,11 +4,10 @@ function(dojo, aspect, dom, domClass, lang, on, has, mouse, domReady, win){ // module: // dojo/touch - var hasTouch = has("touch"); - var ios4 = has("ios") < 5; - - var msPointer = navigator.pointerEnabled || navigator.msPointerEnabled, + + // Detect if platform supports Pointer Events, and if so, the names of the events (pointerdown vs. MSPointerDown). + var hasPointer = navigator.pointerEnabled || navigator.msPointerEnabled, pointer = (function () { var pointer = {}; for (var type in { down: 1, move: 1, up: 1, cancel: 1, over: 1, out: 1 }) { @@ -19,20 +18,20 @@ function(dojo, aspect, dom, domClass, lang, on, has, mouse, domReady, win){ return pointer; })(); + // Detect if platform supports either Pointer Events or the webkit touchstart/touchend/... events + var hasTouch = has("touch"); + // Click generation variables var clicksInited, clickTracker, clickTarget, clickX, clickY, clickDx, clickDy, clickTime; - // Time of most recent touchstart, touchmove, or touchend event - var lastTouch; - - function dualEvent(mouseType, touchType, msPointerType){ + function dualEvent(mouseType, touchType, pointerType){ // Returns synthetic event that listens for both the specified mouse event and specified touch event. // But ignore fake mouse events that were generated due to the user touching the screen. - if(msPointer && msPointerType){ + if(hasPointer && pointerType){ // IE10+: MSPointer* events are designed to handle both mouse and touch in a uniform way, // so just use that regardless of hasTouch. return function(node, listener){ - return on(node, msPointerType, listener); + return on(node, pointerType, listener); } }else if(hasTouch){ return function(node, listener){ @@ -171,7 +170,7 @@ function(dojo, aspect, dom, domClass, lang, on, has, mouse, domReady, win){ // sent shortly after ours, similar to what is done in dualEvent. // The INPUT.dijitOffScreen test is for offscreen inputs used in dijit/form/Button, on which // we call click() explicitly, we don't want to stop this event. - if(!e._dojo_click && + if(!e._dojo_click && (new Date()).getTime() <= clickTime + 1000 && !(e.target.tagName == "INPUT" && domClass.contains(e.target, "dijitOffScreen"))){ e.stopPropagation(); @@ -199,109 +198,107 @@ function(dojo, aspect, dom, domClass, lang, on, has, mouse, domReady, win){ var hoveredNode; - if(hasTouch){ - if(msPointer){ - // MSPointer (IE10+) already has support for over and out, so we just need to init click support - domReady(function(){ - win.doc.addEventListener(pointer.down, function(evt){ - doClicks(evt, pointer.move, pointer.up); - }, true); - }); - }else{ - domReady(function(){ - // Keep track of currently hovered node - hoveredNode = win.body(); // currently hovered node - - win.doc.addEventListener("touchstart", function(evt){ + if(hasPointer){ + // MSPointer (IE10+) already has support for over and out, so we just need to init click support + domReady(function(){ + win.doc.addEventListener(pointer.down, function(evt){ + doClicks(evt, pointer.move, pointer.up); + }, true); + }); + }else if(hasTouch){ + domReady(function(){ + // Keep track of currently hovered node + hoveredNode = win.body(); // currently hovered node + + win.doc.addEventListener("touchstart", function(evt){ lastTouch = (new Date()).getTime(); - // Precede touchstart event with touch.over event. DnD depends on this. - // Use addEventListener(cb, true) to run cb before any touchstart handlers on node run, - // and to ensure this code runs even if the listener on the node does event.stop(). - var oldNode = hoveredNode; - hoveredNode = evt.target; - on.emit(oldNode, "dojotouchout", { - relatedTarget: hoveredNode, - bubbles: true - }); - on.emit(hoveredNode, "dojotouchover", { - relatedTarget: oldNode, - bubbles: true - }); - - doClicks(evt, "touchmove", "touchend"); // init click generation - }, true); + // Precede touchstart event with touch.over event. DnD depends on this. + // Use addEventListener(cb, true) to run cb before any touchstart handlers on node run, + // and to ensure this code runs even if the listener on the node does event.stop(). + var oldNode = hoveredNode; + hoveredNode = evt.target; + on.emit(oldNode, "dojotouchout", { + relatedTarget: hoveredNode, + bubbles: true + }); + on.emit(hoveredNode, "dojotouchover", { + relatedTarget: oldNode, + bubbles: true + }); - function copyEventProps(evt){ - // Make copy of event object and also set bubbles:true. Used when calling on.emit(). - var props = lang.delegate(evt, { - bubbles: true - }); + doClicks(evt, "touchmove", "touchend"); // init click generation + }, true); - if(has("ios") >= 6){ - // On iOS6 "touches" became a non-enumerable property, which - // is not hit by for...in. Ditto for the other properties below. - props.touches = evt.touches; - props.altKey = evt.altKey; - props.changedTouches = evt.changedTouches; - props.ctrlKey = evt.ctrlKey; - props.metaKey = evt.metaKey; - props.shiftKey = evt.shiftKey; - props.targetTouches = evt.targetTouches; - } + function copyEventProps(evt){ + // Make copy of event object and also set bubbles:true. Used when calling on.emit(). + var props = lang.delegate(evt, { + bubbles: true + }); - return props; + if(has("ios") >= 6){ + // On iOS6 "touches" became a non-enumerable property, which + // is not hit by for...in. Ditto for the other properties below. + props.touches = evt.touches; + props.altKey = evt.altKey; + props.changedTouches = evt.changedTouches; + props.ctrlKey = evt.ctrlKey; + props.metaKey = evt.metaKey; + props.shiftKey = evt.shiftKey; + props.targetTouches = evt.targetTouches; } - - on(win.doc, "touchmove", function(evt){ - lastTouch = (new Date()).getTime(); - var newNode = win.doc.elementFromPoint( - evt.pageX - (ios4 ? 0 : win.global.pageXOffset), // iOS 4 expects page coords - evt.pageY - (ios4 ? 0 : win.global.pageYOffset) - ); - - if(newNode){ - // Fire synthetic touchover and touchout events on nodes since the browser won't do it natively. - if(hoveredNode !== newNode){ - // touch out on the old node - on.emit(hoveredNode, "dojotouchout", { - relatedTarget: newNode, - bubbles: true - }); - - // touchover on the new node - on.emit(newNode, "dojotouchover", { - relatedTarget: hoveredNode, - bubbles: true - }); - - hoveredNode = newNode; - } + return props; + } - // Unlike a listener on "touchmove", on(node, "dojotouchmove", listener) fires when the finger - // drags over the specified node, regardless of which node the touch started on. - if(!on.emit(newNode, "dojotouchmove", copyEventProps(evt))){ - // emit returns false when synthetic event "dojotouchmove" is cancelled, so we prevent the - // default behavior of the underlying native event "touchmove". - evt.preventDefault(); - } + on(win.doc, "touchmove", function(evt){ + lastTouch = (new Date()).getTime(); + + var newNode = win.doc.elementFromPoint( + evt.pageX - (ios4 ? 0 : win.global.pageXOffset), // iOS 4 expects page coords + evt.pageY - (ios4 ? 0 : win.global.pageYOffset) + ); + + if(newNode){ + // Fire synthetic touchover and touchout events on nodes since the browser won't do it natively. + if(hoveredNode !== newNode){ + // touch out on the old node + on.emit(hoveredNode, "dojotouchout", { + relatedTarget: newNode, + bubbles: true + }); + + // touchover on the new node + on.emit(newNode, "dojotouchover", { + relatedTarget: hoveredNode, + bubbles: true + }); + + hoveredNode = newNode; } - }); - // Fire a dojotouchend event on the node where the finger was before it was removed from the screen. - // This is different than the native touchend, which fires on the node where the drag started. - on(win.doc, "touchend", function(evt){ + // Unlike a listener on "touchmove", on(node, "dojotouchmove", listener) fires when the finger + // drags over the specified node, regardless of which node the touch started on. + if(!on.emit(newNode, "dojotouchmove", copyEventProps(evt))){ + // emit returns false when synthetic event "dojotouchmove" is cancelled, so we prevent the + // default behavior of the underlying native event "touchmove". + evt.preventDefault(); + } + } + }); + + // Fire a dojotouchend event on the node where the finger was before it was removed from the screen. + // This is different than the native touchend, which fires on the node where the drag started. + on(win.doc, "touchend", function(evt){ lastTouch = (new Date()).getTime(); - var node = win.doc.elementFromPoint( - evt.pageX - (ios4 ? 0 : win.global.pageXOffset), // iOS 4 expects page coords - evt.pageY - (ios4 ? 0 : win.global.pageYOffset) - ) || win.body(); // if out of the screen + var node = win.doc.elementFromPoint( + evt.pageX - (ios4 ? 0 : win.global.pageXOffset), // iOS 4 expects page coords + evt.pageY - (ios4 ? 0 : win.global.pageYOffset) + ) || win.body(); // if out of the screen - on.emit(node, "dojotouchend", copyEventProps(evt)); - }); + on.emit(node, "dojotouchend", copyEventProps(evt)); }); - } + }); } //device neutral events - touch.press|move|release|cancel/over/out From 9a3b839c665ac66f5e28de1acec5bbebbcbaf75e Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Tue, 15 Apr 2014 18:15:17 -0600 Subject: [PATCH 074/376] Implement better conformance to the dojo object store API, fixes #17866 --- store/DataStore.js | 75 +++++++++++++++++++++++++++++++++++----- tests/store/DataStore.js | 42 ++++++++++++++++++++++ 2 files changed, 108 insertions(+), 9 deletions(-) diff --git a/store/DataStore.js b/store/DataStore.js index c16a8d86c6..79407b4fa0 100644 --- a/store/DataStore.js +++ b/store/DataStore.js @@ -87,7 +87,7 @@ return declare("dojo.store.DataStore", base, { return object; } return function(item){ - return callback(convert(item)); + return callback(item && convert(item)); }; }, get: function(id, options){ @@ -106,9 +106,9 @@ return declare("dojo.store.DataStore", base, { deferred.reject(returnedError = error); } }); - if(returnedObject){ + if(returnedObject !== undefined){ // if it was returned synchronously - return returnedObject; + return returnedObject == null ? undefined : returnedObject; } if(returnedError){ throw returnedError; @@ -123,30 +123,70 @@ return declare("dojo.store.DataStore", base, { // options: Object? // Additional metadata for storing the data. Includes a reference to an id // that the object may be stored with (i.e. { id: "foo" }). - var id = options && typeof options.id != "undefined" || this.getIdentity(object); + options = options || {}; + var id = typeof options.id != "undefined" ? options.id : this.getIdentity(object); var store = this.store; var idProperty = this.idProperty; + var deferred = new Deferred(); if(typeof id == "undefined"){ store.newItem(object); - store.save(); + store.save({ + onComplete: function(){ + deferred.resolve(object); + }, + onError: function(error){ + deferred.reject(error); + } + }); }else{ store.fetchItemByIdentity({ identity: id, onItem: function(item){ if(item){ + if(options.overwrite === false){ + return deferred.reject(new Error("Overwriting existing object not allowed")); + } for(var i in object){ - if(i != idProperty && // don't copy id properties since they are immutable and should be omitted for implicit ids + if(i != idProperty && // don't copy id properties since they are immutable and should be omitted for implicit ids + object.hasOwnProperty(i) && // don't want to copy methods and inherited properties store.getValue(item, i) != object[i]){ store.setValue(item, i, object[i]); } } }else{ + if(options.overwrite === true){ + return deferred.reject(new Error("Creating new object not allowed")); + } store.newItem(object); } - store.save(); + store.save({ + onComplete: function(){ + deferred.resolve(object); + }, + onError: function(error){ + deferred.reject(error); + } + }); + }, + onError: function(error){ + deferred.reject(error); } }); } + return deferred.promise; + }, + add: function(object, options){ + // summary: + // Creates an object, throws an error if the object already exists + // object: Object + // The object to store. + // options: dojo/store/api/Store.PutDirectives? + // Additional metadata for storing the data. Includes an "id" + // property if a specific id is to be used. + // returns: Number + (options = options || {}).overwrite = false; + // call put with overwrite being false + return this.put(object, options); }, remove: function(id){ // summary: @@ -154,13 +194,30 @@ return declare("dojo.store.DataStore", base, { // id: Object // The identity to use to delete the object var store = this.store; + var deferred = new Deferred(); + this.store.fetchItemByIdentity({ identity: id, onItem: function(item){ - store.deleteItem(item); - store.save(); + try{ + if(item == null){ + // no item found, return false + deferred.resolve(false); + }else{ + // delete and save the change + store.deleteItem(item); + store.save(); + deferred.resolve(true); + } + }catch(error){ + deferred.reject(error); + } + }, + onError: function(error){ + deferred.reject(error); } }); + return deferred.promise; }, query: function(query, options){ // summary: diff --git a/tests/store/DataStore.js b/tests/store/DataStore.js index 789f787e1c..d69d802718 100644 --- a/tests/store/DataStore.js +++ b/tests/store/DataStore.js @@ -25,6 +25,9 @@ define(["doh", "dojo/store/DataStore", "dojo/data/ItemFileReadStore", "dojo/data t.t(store.get(5).prime); t.is(store.get(5).children[1].name, "two"); }, + function testGetNonExistent(t){ + t.is(store.get(10), undefined); + }, function testQuery1(t){ var d = new doh.Deferred(); store.query({prime: true}).then(d.getTestCallback(function(results){ @@ -60,6 +63,45 @@ define(["doh", "dojo/store/DataStore", "dojo/data/ItemFileReadStore", "dojo/data }); t.t(store.get(6).perfect); }, + function testAdd(t){ + store.add({ + id: 7, + name: "seven" + }); + t.is(store.get(7).name, "seven"); + }, + function testAddExisting(t){ + return store.add({ + id: 7, + name: "seven" + }).then(function(){ + t.error("Add existing did not fail"); + }, function(){ + console.log("Add existing failed, as expected"); + }); + }, + function testOverwriteNew(t){ + return store.put({ + id: 8, + name: "eight" + }, { + overwrite: true + }).then(function(){ + t.error("Updating new did not fail"); + }, function(){ + console.log("Updating new failed, as expected"); + }); + }, + function testRemove(t){ + return store.remove(7).then(function(result){ + t.t(result); + }).then(function(result){ + // second time should return false + return store.remove(7); + }).then(function(result){ + t.f(result); + }); + }, function testNoWriteFeature(t){ var readOnlyStore = new DataStore({store:new ItemFileReadStore({})}); t.f(readOnlyStore.put); From 318d91e36776ac9c6ca80c67f69b20720b5ecb65 Mon Sep 17 00:00:00 2001 From: Bill Keese Date: Mon, 14 Apr 2014 11:00:09 +0900 Subject: [PATCH 075/376] escape dash in regexp.escapeString, fixes #17861 --- regexp.js | 2 +- tests/regexp.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/regexp.js b/regexp.js index f2b6cb664c..a89c99165f 100644 --- a/regexp.js +++ b/regexp.js @@ -15,7 +15,7 @@ regexp.escapeString = function(/*String*/str, /*String?*/except){ // except: // a String with special characters to be left unescaped - return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, function(ch){ + return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g, function(ch){ if(except && except.indexOf(ch) != -1){ return ch; } diff --git a/tests/regexp.js b/tests/regexp.js index e0428b75c7..cd088cc9db 100644 --- a/tests/regexp.js +++ b/tests/regexp.js @@ -4,6 +4,7 @@ doh.register("tests.regexp", function test_regexp_escape(t){ t.assertTrue(new RegExp(regexp.escapeString("\f\b\n\t\r+.$?*|{}()[]\\/^")).test("TEST\f\b\n\t\r+.$?*|{}()[]\\/^TEST")); t.assertTrue(new RegExp(regexp.escapeString("\f\b\n\t\r+.$?*|{}()[]\\/^", ".")).test("TEST\f\b\n\t\r+X$?*|{}()[]\\/^TEST")); + t.is("a\\-z", regexp.escapeString("a-z")); } ); From 5c63d92f3c63f6d75cbe88d554bc2eb2c9a452fb Mon Sep 17 00:00:00 2001 From: Bill Keese Date: Fri, 18 Apr 2014 12:10:45 +0900 Subject: [PATCH 076/376] oops, restore declaration accidentally deleted in 23a297a, refs #17815 --- touch.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/touch.js b/touch.js index c8a8ee3d86..d050adacd8 100644 --- a/touch.js +++ b/touch.js @@ -24,6 +24,9 @@ function(dojo, aspect, dom, domClass, lang, on, has, mouse, domReady, win){ // Click generation variables var clicksInited, clickTracker, clickTarget, clickX, clickY, clickDx, clickDy, clickTime; + // Time of most recent touchstart, touchmove, or touchend event + var lastTouch; + function dualEvent(mouseType, touchType, pointerType){ // Returns synthetic event that listens for both the specified mouse event and specified touch event. // But ignore fake mouse events that were generated due to the user touching the screen. From 661e31da8bf1588679fcf1fe24b36704eb736006 Mon Sep 17 00:00:00 2001 From: Mustafa Celik Date: Wed, 2 Oct 2013 22:28:20 +0100 Subject: [PATCH 077/376] Update dojo/_base/unload examples to AMD syntax, refs #17468 Clarified the example for addUnload. Converted addWindowUnload example to AMD syntax. --- _base/unload.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/_base/unload.js b/_base/unload.js index 064b5613e6..aff9b0c63a 100644 --- a/_base/unload.js +++ b/_base/unload.js @@ -25,9 +25,14 @@ var unload = { // heavy JavaScript work since it fires at the equivalent of // the page's "onbeforeunload" event. // example: - // | unload.addOnWindowUnload(functionPointer) - // | unload.addOnWindowUnload(object, "functionName"); - // | unload.addOnWindowUnload(object, function(){ /* ... */}); + // | var afunc = function() {console.log("global function");}; + // | require(["dojo/_base/unload"], function(unload) { + // | var foo = {bar: function(){ console.log("bar unloading...");}, + // | data: "mydata"}; + // | unload.addOnWindowUnload(afunc); + // | unload.addOnWindowUnload(foo, "bar"); + // | unload.addOnWindowUnload(foo, function(){console.log("", this.data);}); + // | }); if (!dojo.windowUnloaded){ on(win, "unload", (dojo.windowUnloaded = function(){ @@ -68,9 +73,10 @@ var unload = { // example: // | var afunc = function() {console.log("global function");}; // | require(["dojo/_base/unload"], function(unload) { - // | var foo = {unload: function(){ console.log("unloading...");}, data: "mydata"}; + // | var foo = {bar: function(){ console.log("bar unloading...");}, + // | data: "mydata"}; // | unload.addOnUnload(afunc); - // | unload.addOnUnload(foo, "unload"); + // | unload.addOnUnload(foo, "bar"); // | unload.addOnUnload(foo, function(){console.log("", this.data);}); // | }); From 56703ec1fa0bd1901b259dc83404f3db5d92c9e4 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Tue, 22 Apr 2014 02:17:09 +0000 Subject: [PATCH 078/376] Ensure dojo/text does not cause preflight requests Fixes #17493. --- tests/module.js | 1 + tests/text.html | 20 ++++++++++++++++++++ tests/text.js | 5 +++++ tests/text.php | 11 +++++++++++ text.js | 2 +- 5 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 tests/text.html create mode 100644 tests/text.js create mode 100644 tests/text.php diff --git a/tests/module.js b/tests/module.js index effbca9366..2fffd09e54 100644 --- a/tests/module.js +++ b/tests/module.js @@ -24,6 +24,7 @@ define([ "dojo/tests/DeferredList", "dojo/tests/Stateful", "dojo/tests/errors", + "dojo/tests/text", "dojo/has!host-node?dojo/tests/node", "dojo/has!host-browser?dojo/tests/dom-prop", "dojo/has!host-browser?dojo/tests/dom-construct", diff --git a/tests/text.html b/tests/text.html new file mode 100644 index 0000000000..53c16e4d99 --- /dev/null +++ b/tests/text.html @@ -0,0 +1,20 @@ + + + + dojo/text + + + + + + + diff --git a/tests/text.js b/tests/text.js new file mode 100644 index 0000000000..9c85681123 --- /dev/null +++ b/tests/text.js @@ -0,0 +1,5 @@ +define([ "doh", "dojo/has", "require" ], function (doh, has, require) { + if(has("host-browser")){ + doh.registerUrl("tests.text", require.toUrl("./text.html"), 30000); + } +}); diff --git a/tests/text.php b/tests/text.php new file mode 100644 index 0000000000..df8e085778 --- /dev/null +++ b/tests/text.php @@ -0,0 +1,11 @@ + $value) { + if (strpos($key, 'HTTP_') === 0) { + $headers[strtolower(str_replace('_', '-', substr($key, 5)))] = $value; + } +} + +header('Content-Type: application/json'); +echo json_encode($headers); diff --git a/text.js b/text.js index e7714de6c6..9a4839ed6f 100644 --- a/text.js +++ b/text.js @@ -5,7 +5,7 @@ define(["./_base/kernel", "require", "./has", "./has!host-browser?./request"], f var getText; if(has("host-browser")){ getText= function(url, sync, load){ - request(url, {sync:!!sync}).then(load); + request(url, {sync:!!sync, headers: { 'X-Requested-With': null } }).then(load); }; }else{ // Path for node.js and rhino, to load from local file system. From ffbb6d4d9718aac1e8df5e7b4d3aac6351404e2c Mon Sep 17 00:00:00 2001 From: Bill Keese Date: Mon, 21 Apr 2014 10:22:40 +0900 Subject: [PATCH 079/376] Refactor empty() to work better on non-IE browsers. 1. Test node.innerHTML rather than node.canHaveChildren(), since the latter only works on IE. 2. Limit empty(parent) to orphaning parent's children, rather than orphaning parent's grandchildren. Fixes #17869. --- dom-construct.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dom-construct.js b/dom-construct.js index 0b3f8db022..d1f96fa298 100644 --- a/dom-construct.js +++ b/dom-construct.js @@ -302,7 +302,7 @@ define(["exports", "./_base/kernel", "./sniff", "./_base/window", "./dom", "./do }; function _empty(/*DomNode*/ node){ - if(node.canHaveChildren){ + if("innerHTML" in node){ try{ // fast path node.innerHTML = ""; @@ -312,9 +312,10 @@ define(["exports", "./_base/kernel", "./sniff", "./_base/window", "./dom", "./do // Fall through (saves bytes) } } - // SVG/strict elements don't support innerHTML/canHaveChildren, and OBJECT/APPLET elements in quirks node have canHaveChildren=false + + // SVG/strict elements don't support innerHTML for(var c; c = node.lastChild;){ // intentional assignment - _destroy(c, node); // destroy is better than removeChild so TABLE subelements are removed in proper order + node.removeChild(c); } } From a0e7890339b6e40a343859f42012bd80d76d6299 Mon Sep 17 00:00:00 2001 From: Bill Keese Date: Thu, 24 Apr 2014 07:41:19 +0900 Subject: [PATCH 080/376] Document addOnUnload() and add addOnWindowUnload() as deprecated, refs #17870. --- _base/unload.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/_base/unload.js b/_base/unload.js index aff9b0c63a..37a0b78d8e 100644 --- a/_base/unload.js +++ b/_base/unload.js @@ -8,11 +8,13 @@ var win = window; var unload = { // summary: // This module contains the document and window unload detection API. + // This module is deprecated. Use on(window, "unload", func) + // and on(window, "beforeunload", func) instead. addOnWindowUnload: function(/*Object|Function?*/ obj, /*String|Function?*/ functionName){ // summary: - // registers a function to be triggered when window.onunload - // fires. + // Registers a function to be triggered when window.onunload fires. + // Deprecated, use on(window, "unload", lang.hitch(obj, functionName)) instead. // description: // The first time that addOnWindowUnload is called Dojo // will register a page listener to trigger your unload @@ -52,7 +54,8 @@ var unload = { addOnUnload: function(/*Object?|Function?*/ obj, /*String|Function?*/ functionName){ // summary: - // registers a function to be triggered when the page unloads. + // Registers a function to be triggered when the page unloads. + // Deprecated, use on(window, "beforeunload", lang.hitch(obj, functionName)) instead. // description: // The first time that addOnUnload is called Dojo will // register a page listener to trigger your unload handler From 9b974ae1d7c53879676d818025b16b7a8d2874fd Mon Sep 17 00:00:00 2001 From: Allen S Date: Wed, 20 Nov 2013 15:36:29 +1100 Subject: [PATCH 081/376] Check for objects with a truthy clause to avoid nulls, fixes #16158 --- store/Cache.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/Cache.js b/store/Cache.js index 66de169b15..b0e9915877 100644 --- a/store/Cache.js +++ b/store/Cache.js @@ -31,7 +31,7 @@ var Cache = function(masterStore, cachingStore, options){ add: function(object, directives){ return when(masterStore.add(object, directives), function(result){ // now put result in cache - cachingStore.add(object && typeof result == "object" ? result : object, directives); + cachingStore.add(result && typeof result == "object" ? result : object, directives); return result; // the result from the add should be dictated by the masterStore and be unaffected by the cachingStore }); }, @@ -40,7 +40,7 @@ var Cache = function(masterStore, cachingStore, options){ cachingStore.remove((directives && directives.id) || this.getIdentity(object)); return when(masterStore.put(object, directives), function(result){ // now put result in cache - cachingStore.put(object && typeof result == "object" ? result : object, directives); + cachingStore.put(result && typeof result == "object" ? result : object, directives); return result; // the result from the put should be dictated by the masterStore and be unaffected by the cachingStore }); }, From 677d3cf13fab8825aff532783fe86073674134ab Mon Sep 17 00:00:00 2001 From: Benjamin Santalucia Date: Sat, 26 Apr 2014 12:49:27 -0700 Subject: [PATCH 082/376] Support custom fixupUrl function; fixes #17643 --- dojo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo.js b/dojo.js index 7eaf1d9d31..46184947cc 100644 --- a/dojo.js +++ b/dojo.js @@ -1324,7 +1324,7 @@ has.add("dojo-loader-eval-hint-url", 1); } - var fixupUrl= function(url){ + var fixupUrl= typeof userConfig.fixupUrl == "function" ? userConfig.fixupUrl : function(url){ url += ""; // make sure url is a Javascript string (some paths may be a Java string) return url + (cacheBust ? ((/\?/.test(url) ? "&" : "?") + cacheBust) : ""); }, From 4870048a8a88133e145c89250781e64b3275b757 Mon Sep 17 00:00:00 2001 From: Bill Keese Date: Sun, 27 Apr 2014 09:58:09 +0900 Subject: [PATCH 083/376] Add commented out test case for when #16957 is fixed. Refs #16957. --- dom-construct.js | 4 ++++ tests/_base/html.html | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/dom-construct.js b/dom-construct.js index d1f96fa298..213eacfc0f 100644 --- a/dom-construct.js +++ b/dom-construct.js @@ -302,6 +302,10 @@ define(["exports", "./_base/kernel", "./sniff", "./_base/window", "./dom", "./do }; function _empty(/*DomNode*/ node){ + // TODO: remove this if() block in 2.0 when we no longer have to worry about IE memory leaks, + // and then uncomment the emptyGrandchildren() test case from html.html. + // Note that besides fixing #16957, using removeChild() is actually faster than setting node.innerHTML, + // see http://jsperf.com/clear-dom-node. if("innerHTML" in node){ try{ // fast path diff --git a/tests/_base/html.html b/tests/_base/html.html index 46ec8d6421..d774bc3e68 100644 --- a/tests/_base/html.html +++ b/tests/_base/html.html @@ -665,6 +665,19 @@ dojo.destroy(p); doh.t(true, "no exception thrown"); } +/* + // Make sure empty() doesn't disconnect grandchildren from children. + // Uncomment when http://bugs.dojotoolkit.org/ticket/16957 is fixed. + function emptyGrandchildren(){ + var parent = dojo.byId("emptyParent"), + child = dojo.byId("emptyChild"); + + dojo.empty("emptyParent"); + + doh.f(!!parent.firstChild, "parent's children removed"); + doh.t(!!child.firstChild, "child's children remain"); + } +*/ ] ); @@ -915,6 +928,13 @@

testing Core HTML/DOM/CSS/Style utils

>
+ +
+
+
hello world
+
+
+ ", dojo.body()); - setTimeout(function(){ - dojo.destroy(iframe); - }, 1000); - } - if(location.search == "?inframe"){ - - dojo.ready(function(){ - var a = []; - for(var i = 0; i < 100000;i++){ - a.push({a:4}); - } - dojo.connect(document.body, "unload", function(){ - a.push(4); - parent.console.log("a " + a.length); - }); - }); - } - - - - -

Memory leak tests

-

Monitor memory usage in IE6/7 (or any browser) before/after pressing buttons below

- - - - - -
- - - \ No newline at end of file diff --git a/tests/_base/declare.js b/tests/_base/declare.js deleted file mode 100644 index 140f7b371c..0000000000 --- a/tests/_base/declare.js +++ /dev/null @@ -1,543 +0,0 @@ -// FIXME: this test assumes the existence of the global object "tests" -tests= typeof tests=="undefined" ? {} : tests; - -define([ - "doh/main", "dojo/aspect", "dojo/_base/declare", "dojo/_base/kernel", "dojo/_base/lang" -], function(doh, aspect, declare, kernel, lang){ - doh.register("tests._base.declare", [ - function smokeTest(t){ - declare("tests._base.declare.tmp", null); - var tmp = new tests._base.declare.tmp(); - declare("testsFoo", null); - tmp = new testsFoo(); - }, - function smokeTest2(t){ - declare("tests._base.declare.foo", null, { - foo: "thonk" - }); - var tmp = new tests._base.declare.foo(); - t.is("thonk", tmp.foo); - - declare("testsFoo2", null, { - foo: "thonk" - }); - var tmp2 = new testsFoo2(); - t.is("thonk", tmp2.foo); - }, - function smokeTestWithCtor(t){ - declare("tests._base.declare.fooBar", null, { - constructor: function(){ - this.foo = "blah"; - }, - foo: "thonk" - }); - var tmp = new tests._base.declare.fooBar(); - t.is("blah", tmp.foo); - }, - function smokeTestCompactArgs(t){ - declare("tests._base.declare.fooBar2", null, { - foo: "thonk" - }); - var tmp = new tests._base.declare.fooBar2(); - t.is("thonk", tmp.foo); - }, - function subclass(t){ - declare("tests._base.declare.tmp3", null, { - foo: "thonk" - }); - declare("tests._base.declare.tmp4", tests._base.declare.tmp3); - var tmp = new tests._base.declare.tmp4(); - t.is("thonk", tmp.foo); - }, - function subclassWithCtor(t){ - declare("tests._base.declare.tmp5", null, { - constructor: function(){ - this.foo = "blah"; - }, - foo: "thonk" - }); - declare("tests._base.declare.tmp6", tests._base.declare.tmp5); - var tmp = new tests._base.declare.tmp6(); - t.is("blah", tmp.foo); - }, - function mixinSubclass(t){ - declare("tests._base.declare.tmp7", null, { - foo: "thonk" - }); - declare("tests._base.declare.tmp8", null, { - constructor: function(){ - this.foo = "blah"; - } - }); - var tmp = new tests._base.declare.tmp8(); - t.is("blah", tmp.foo); - declare("tests._base.declare.tmp9", - [ - tests._base.declare.tmp7, // prototypal - tests._base.declare.tmp8 // mixin - ]); - var tmp2 = new tests._base.declare.tmp9(); - t.is("blah", tmp2.foo); - }, - function superclassRef(t){ - declare("tests._base.declare.tmp10", null, { - foo: "thonk" - }); - declare("tests._base.declare.tmp11", tests._base.declare.tmp10, { - constructor: function(){ - this.foo = "blah"; - } - }); - var tmp = new tests._base.declare.tmp11(); - t.is("blah", tmp.foo); - t.is("thonk", tests._base.declare.tmp11.superclass.foo); - }, - function inheritedCall(t){ - var foo = "xyzzy"; - declare("tests._base.declare.tmp12", null, { - foo: "thonk", - bar: function(arg1, arg2){ - if(arg1){ - this.foo = arg1; - } - if(arg2){ - foo = arg2; - } - } - }); - declare("tests._base.declare.tmp13", tests._base.declare.tmp12, { - constructor: function(){ - this.foo = "blah"; - } - }); - var tmp = new tests._base.declare.tmp13(); - t.is("blah", tmp.foo); - t.is("xyzzy", foo); - tmp.bar("zot"); - t.is("zot", tmp.foo); - t.is("xyzzy", foo); - tmp.bar("trousers", "squiggle"); - t.is("trousers", tmp.foo); - t.is("squiggle", foo); - }, - function inheritedExplicitCall(t){ - var foo = "xyzzy"; - declare("tests._base.declare.tmp14", null, { - foo: "thonk", - bar: function(arg1, arg2){ - if(arg1){ - this.foo = arg1; - } - if(arg2){ - foo = arg2; - } - } - }); - declare("tests._base.declare.tmp15", tests._base.declare.tmp14, { - constructor: function(){ - this.foo = "blah"; - }, - bar: function(arg1, arg2){ - this.inherited("bar", arguments, [arg2, arg1]); - }, - baz: function(arg1, arg2){ - tests._base.declare.tmp15.superclass.bar.apply(this, arguments); - } - }); - var tmp = new tests._base.declare.tmp15(); - t.is("blah", tmp.foo); - t.is("xyzzy", foo); - tmp.baz("zot"); - t.is("zot", tmp.foo); - t.is("xyzzy", foo); - tmp.bar("trousers", "squiggle"); - t.is("squiggle", tmp.foo); - t.is("trousers", foo); - }, - function inheritedMixinCalls(t){ - declare("tests._base.declare.tmp16", null, { - foo: "", - bar: function(){ - this.foo += "tmp16"; - } - }); - declare("tests._base.declare.mixin16", null, { - bar: function(){ - this.inherited(arguments); - this.foo += ".mixin16"; - } - }); - declare("tests._base.declare.mixin17", tests._base.declare.mixin16, { - bar: function(){ - this.inherited(arguments); - this.foo += ".mixin17"; - } - }); - declare("tests._base.declare.tmp17", [tests._base.declare.tmp16, tests._base.declare.mixin17], { - bar: function(){ - this.inherited(arguments); - this.foo += ".tmp17"; - } - }); - var tmp = new tests._base.declare.tmp17(); - tmp.bar(); - t.is("tmp16.mixin16.mixin17.tmp17", tmp.foo); - }, - function mixinPreamble(t){ - var passed = false; - declare("tests._base.declare.tmp16", null); - new tests._base.declare.tmp16({ preamble: function(){ passed = true; } }); - t.t(passed); - }, - - function basicMixin(t){ - // testing if a plain Class-like object can be inherited - // by declare - var d = new doh.Deferred; - - var Thing = function(args){ - lang.mixin(this, args); - }; - Thing.prototype.method = function(){ - t.t(true); - d.callback(true); - }; - - declare("Thinger", Thing, { - method: function(){ - this.inherited(arguments); - } - }); - - var it = new Thinger(); - it.method(); - - return d; - }, - - function mutatedMethods(t){ - // testing if methods can be mutated (within a reason) - declare("tests._base.declare.tmp18", null, { - constructor: function(){ this.clear(); }, - clear: function(){ this.flag = 0; }, - foo: function(){ ++this.flag; }, - bar: function(){ ++this.flag; }, - baz: function(){ ++this.flag; } - }); - declare("tests._base.declare.tmp19", tests._base.declare.tmp18, { - foo: function(){ ++this.flag; this.inherited(arguments); }, - bar: function(){ ++this.flag; this.inherited(arguments); }, - baz: function(){ ++this.flag; this.inherited(arguments); } - }); - var x = new tests._base.declare.tmp19(); - // smoke tests - t.is(0, x.flag); - x.foo(); - t.is(2, x.flag); - x.clear(); - t.is(0, x.flag); - var a = 0; - // aspect.after() on a prototype method - aspect.after(tests._base.declare.tmp19.prototype, "foo", function(){ a = 1; }); - x.foo(); - t.is(2, x.flag); - t.is(1, a); - x.clear(); - a = 0; - // extra chaining - var old = tests._base.declare.tmp19.prototype.bar; - tests._base.declare.tmp19.prototype.bar = function(){ - a = 1; - ++this.flag; - old.call(this); - }; - x.bar(); - t.is(3, x.flag); - t.is(1, a); - x.clear(); - a = 0; - // replacement - tests._base.declare.tmp19.prototype.baz = function(){ - a = 1; - ++this.flag; - this.inherited("baz", arguments); - }; - x.baz(); - t.is(2, x.flag); - t.is(1, a); - }, - - function modifiedInstance(t){ - var stack; - declare("tests._base.declare.tmp20", null, { - foo: function(){ stack.push(20); } - }); - declare("tests._base.declare.tmp21", null, { - foo: function(){ - this.inherited(arguments); - stack.push(21); - } - }); - declare("tests._base.declare.tmp22", tests._base.declare.tmp20, { - foo: function(){ - this.inherited(arguments); - stack.push(22); - } - }); - declare("tests._base.declare.tmp23", - [tests._base.declare.tmp20, tests._base.declare.tmp21], { - foo: function(){ - this.inherited(arguments); - stack.push(22); - } - }); - var a = new tests._base.declare.tmp22(); - var b = new tests._base.declare.tmp23(); - var c = { - foo: function(){ - this.inherited("foo", arguments); - stack.push("INSIDE C"); - } - }; - stack = []; - a.foo(); - t.is([20, 22], stack); - - stack = []; - b.foo(); - t.is([20, 21, 22], stack); - - lang.mixin(a, c); - lang.mixin(b, c); - - stack = []; - a.foo(); - t.is([20, 22, "INSIDE C"], stack); - - stack = []; - b.foo(); - t.is([20, 21, 22, "INSIDE C"], stack); - }, - - function duplicatedBase(t){ - var stack; - var A = declare(null, { - constructor: function(){ - stack.push(1); - } - }); - var B = declare([A, A, A], { - constructor: function(){ - stack.push(2); - } - }); - stack = []; - new A; - t.is([1], stack); - stack = []; - new B; - t.is([1, 2], stack); - }, - - function indirectlyDuplicatedBase(t){ - var stack; - var A = declare(null, { - constructor: function(){ - stack.push(1); - } - }); - var B = declare(A, { - constructor: function(){ - stack.push(2); - } - }); - var C = declare([A, B], { - constructor: function(){ - stack.push(3); - } - }); - var D = declare([B, A], { - constructor: function(){ - stack.push(4); - } - }); - stack = []; - new C; - t.is([1, 2, 3], stack); - stack = []; - new D; - t.is([1, 2, 4], stack); - }, - - function wrongMultipleInheritance(t){ - var stack; - var A = declare([], { - constructor: function(){ - stack.push(1); - } - }); - var B = declare([A], { - constructor: function(){ - stack.push(2); - } - }); - stack = []; - new A; - t.is([1], stack); - stack = []; - new B; - t.is([1, 2], stack); - }, - - function impossibleBases(t){ - var A = declare(null); - var B = declare(null); - var C = declare([A, B]); - var D = declare([B, A]); - - var flag = false; - try{ - var E = declare([C, D]); - }catch(e){ - flag = true; - } - t.t(flag); - }, - - function noNew(t){ - // all of the classes I create will use this as their - // pseudo-constructor function - function noNewConstructor(){ - this.noNew_Value = 'instance value'; - } - - var g = kernel.global; - // this value will remain unchanged if the code for - // calling a constructor without 'new' works correctly. - g.noNew_Value = 'global value'; - - // perform the actual test - function noNewTest(cls){ - // call class function without new - var obj = cls('instance value'); - t.is(obj.noNew_Value, 'instance value'); - t.is(g.noNew_Value, 'global value'); - } - - // There are three different functions that might be - // created by declare(), so I need to test all - // three. - - // 1. Class with manual-chained constructor - noNewTest( - declare(null, { - constructor: noNewConstructor, - '-chains-': {constructor: 'manual'} - }) - ); - - // 2. Class with no superclasses - var A = declare(null, { - constructor: noNewConstructor - }); - noNewTest(A); - - // 3. Class with at least one superclass - noNewTest(declare(A)); - - // Make sure multiple inheritance call works - var B = declare(A); - var C = declare(null, { ctest: function(){return true;} }); - var D = declare([A, B, C], { dtest: function(){return true;} }); - noNewTest(D); - // make sure I get the test functions from - // all superclasses - var d = D(); - t.t(d.ctest()); - t.t(d.dtest()); - - // Make sure call through an object works - var noNewClasses = { - D: D, - noNew_Value: 'unchanged' - }; - var obj = noNewClasses.D(); - t.is(obj.noNew_Value, 'instance value'); - t.is(noNewClasses.noNew_Value, 'unchanged'); - }, - - function createSubclass(t){ - var A = dojo.declare(null, { - foo: "thonk" - }); - var B = dojo.declare(null, { - }); - var C = dojo.declare(null, { - bar: "thonk" - }); - - // Both 'mixins' and 'props' parameters are provided - var D1 = A.createSubclass([B, C], { - constructor: function(){ - this.foo = "blah"; - } - }); - - // Only 'mixins' parameters is provided - var D2 = A.createSubclass([B, C]); - - // The 'props' parameter is provided as first instead of second parameter - var D3 = A.createSubclass({ - constructor: function(){ - this.foo = "blah"; - } - }); - - // No arguments at all provided - var D4 = A.createSubclass(); - - // Single Mixin - var D5 = A.createSubclass(C); - - var d1 = new D1(); - var d2 = new D2(); - var d3 = new D3(); - var d4 = new D4(); - var d5 = new D5(); - t.is("blah", d1.foo); - t.is("thonk", d2.foo); - t.is("thonk", d1.bar); - t.is("thonk", d2.bar); - t.is("blah", d3.foo); - t.is("thonk", d4.foo); - t.is("thonk", d5.bar); - }, - - function safeMixin(t){ - var fooCalled; - var subFooCalled; - var C = declare(null, { - foo: function(){ - fooCalled = true; - } - }); - var c = new C(); - // make sure we can mixin foo - declare.safeMixin(c, { - foo: function(){ - subFooCalled = true; - this.inherited(arguments); - } - }); - // make sure this doesn't throw an error - declare.safeMixin(c); - c.foo(); - t.t(fooCalled); - t.t(subFooCalled); - } - - // FIXME: there are still some permutations to test like: - // - ctor arguments - // - multi-level inheritance + L/R conflict checks - ]); -}); diff --git a/tests/_base/fx.html b/tests/_base/fx.html deleted file mode 100644 index 0f07e12af7..0000000000 --- a/tests/_base/fx.html +++ /dev/null @@ -1,577 +0,0 @@ - - - testing Core FX - - - - - - -

testing Core FX

-
- - -
-
-

- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean - semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. - Proin porta rutrum lacus. Etiam consequat scelerisque quam. Nulla - facilisi. Maecenas luctus venenatis nulla. In sit amet dui non mi - semper iaculis. Sed molestie tortor at ipsum. Morbi dictum rutrum - magna. Sed vitae risus. -

-

- Aliquam vitae enim. Duis scelerisque metus auctor est venenatis - imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer - lorem nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean - id mi in massa bibendum suscipit. Integer eros. Nullam suscipit - mauris. In pellentesque. Mauris ipsum est, pharetra semper, - pharetra in, viverra quis, tellus. Etiam purus. Quisque egestas, - tortor ac cursus lacinia, felis leo adipiscing nisi, et rhoncus - elit dolor eget eros. Fusce ut quam. Suspendisse eleifend leo vitae - ligula. Nulla facilisi. Nulla rutrum, erat vitae lacinia dictum, - pede purus imperdiet lacus, ut semper velit ante id metus. Praesent - massa dolor, porttitor sed, pulvinar in, consequat ut, leo. Nullam - nec est. Aenean id risus blandit tortor pharetra congue. - Suspendisse pulvinar. -

-
- - - - - - diff --git a/tests/_base/fx.js b/tests/_base/fx.js deleted file mode 100644 index 78fdd86606..0000000000 --- a/tests/_base/fx.js +++ /dev/null @@ -1,5 +0,0 @@ -define(["doh/main", "require"], function(doh, require){ - if(doh.isBrowser){ - doh.register("tests._base.fx", require.toUrl("./fx.html"), 15000); - } -}); diff --git a/tests/_base/fx_delay.html b/tests/_base/fx_delay.html deleted file mode 100644 index fd2c58c07b..0000000000 --- a/tests/_base/fx_delay.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - -
- - diff --git a/tests/_base/html.js b/tests/_base/html.js deleted file mode 100644 index 623ccc34a8..0000000000 --- a/tests/_base/html.js +++ /dev/null @@ -1,14 +0,0 @@ -define(["dojo/sniff", "doh/main", "require"], function(has, doh, require){ - if(doh.isBrowser){ - doh.register("tests._base.html", require.toUrl("./html.html"), 15000); - doh.register("tests._base.html_id", require.toUrl("./html_id.html"), 15000); - doh.register("tests._base.html_element", require.toUrl("./html_element.html"), 15000); - doh.register("tests._base.html_rtl", require.toUrl("./html_rtl.html"), 15000); - // IE9+ cannot handle loading quirks mode documents inside the test runner, see #14321 - has("ie") >= 9 || doh.register("tests._base.html_quirks", require.toUrl("./html_quirks.html"), 15000); - doh.register("tests._base.html_box", require.toUrl("./html_box.html"), 35000); - has("ie") >= 9 || doh.register("tests._base.html_box_quirks", require.toUrl("./html_box_quirks.html"), 35000); - doh.register("tests._base.html_isBodyLtr", require.toUrl("./html_isBodyLtr.html"), 35000); - doh.register("tests._base.html_docScroll", require.toUrl("./html_docScroll.html"), 35000); - } -}); diff --git a/tests/_base/json.js b/tests/_base/json.js deleted file mode 100644 index 99edec71e5..0000000000 --- a/tests/_base/json.js +++ /dev/null @@ -1,60 +0,0 @@ -dojo.provide("dojo.tests._base.json"); - -tests.register("tests._base.json", - [ - //Not testing dojo.toJson() on its own since Rhino will output the object properties in a different order. - //Still valid json, but just in a different order than the source string. - - // take a json-compatible object, convert it to a json string, then put it back into json. - function toAndFromJson(t){ - var testObj = {a:"a", b:1, c:"c", d:"d", e:{e1:"e1", e2:2}, f:[1,2,3], g:"g",h:{h1:{h2:{h3:"h3"}}},i:[[0,1,2],[3],[4]]}; - - var mirrorObj = dojo.fromJson(dojo.toJson(testObj)); - t.assertEqual("a", mirrorObj.a); - t.assertEqual(1, mirrorObj.b); - t.assertEqual("c", mirrorObj.c); - t.assertEqual("d", mirrorObj.d); - t.assertEqual("e1", mirrorObj.e.e1); - t.assertEqual(2, mirrorObj.e.e2); - t.assertEqual(1, mirrorObj.f[0]); - t.assertEqual(2, mirrorObj.f[1]); - t.assertEqual(3, mirrorObj.f[2]); - t.assertEqual("g", mirrorObj.g); - t.assertEqual("h3", mirrorObj.h.h1.h2.h3); - var badJson; - try{ - badJson = dojo.fromJson("bad json"); // this should throw an exception, and not set badJson - }catch(e){ - } - t.assertEqual(undefined,badJson); - t.assertEqual(3, mirrorObj.i[0].length); - t.assertEqual(1, mirrorObj.i[1].length); - t.assertEqual(1, mirrorObj.i[2].length); - }, - // tricky json, using our JSON extensions - function dojoExtendedJson(t){ - var testObj = {ex1:{b:3, json:function(){return "json" + this.b;}}, ex2: {b:4, __json__:function(){return "__json__" + this.b;}}}; - var testStr = dojo.toJson(testObj); - t.assertEqual('{"ex1":"json3","ex2":"__json__4"}', testStr); - }, - // pretty print - function prettyPrintJson(t){ - if(typeof JSON == "undefined"){ // only test our JSON stringifier - var testObj = {array:[1,2,{a:4,b:4}]}; - var testStr = dojo.toJson(testObj, true); - t.assertEqual('{\n\t\"array\": [\n\t\t1,\n\t\t2,\n\t\t{\n\t\t\t\"a\": 4,\n\t\t\t\"b\": 4\n\t\t}\n\t]\n}', testStr); - } - }, - // have to verify that we still support any JS expression - function evalJson(t){ - var testStr = '{func: function(){}, number: Infinity}'; - var testObj = dojo.fromJson(testStr); - t.is("function", typeof testObj.func); - t.is("number", typeof testObj.number); - }, - function toJsonStringObject(t){ - t.is('"hello"', dojo.toJson(new String("hello"))); - } - ] -); - diff --git a/tests/_base/lang.js b/tests/_base/lang.js deleted file mode 100644 index 2f47fc1464..0000000000 --- a/tests/_base/lang.js +++ /dev/null @@ -1,362 +0,0 @@ -define(["doh/main", "dojo/_base/array", "dojo/_base/lang", "dojo/_base/kernel" -], function(doh, array, lang, kernel){ - - doh.register("tests._base.lang", [ - function exists(t){ - var test = { - foo : 0 - }; - t.assertTrue(lang.exists("foo", test), 'lang.exists("foo", test)'); - t.assertFalse(lang.exists("foo.bar", test), 'lang.exists("foo.bar", test)'); - - // global tests - t.assertFalse(lang.exists("_existsTest"), 'lang.exists("_existsTest") #1'); - kernel.global._existsTest = false; - t.assertTrue(lang.exists("_existsTest"), 'lang.exists("_existsTest") #2'); - t.assertFalse(lang.exists("_existsTest.bar"), 'lang.exists("_existsTest.bar")'); - - // scopeMap tests - t.assertTrue(lang.exists("dojo.dijit"), 'lang.exists("dojo.dijit")'); - t.assertFalse(lang.exists("dojo.foo"), 'lang.exists("dojo.foo")'); - }, - - function getObject(t){ - var test = { - foo : {} - }; - t.assertEqual(test.foo, lang.getObject("foo", false, test), 'lang.getObject("foo", false, test)'); - t.assertEqual("undefined", typeof lang.getObject("foo.bar", false, test), // don't create - 'typeof lang.getObject("foo.bar", false, test)'); - t.assertEqual({}, lang.getObject("foo.bar", true, test), // do create - 'lang.getObject("foo.bar", true, test)'); - test.foo.bar.baz = "test"; - t.assertEqual(test.foo.bar, lang.getObject("foo.bar", false, test), - 'lang.getObject("foo.bar", false, test)'); - - // global tests - t.assertEqual("undefined", typeof lang.getObject("_getObjectTest.bar", false), // don't create - 'typeof lang.getObject("_getObjectTest.bar", false)'); - kernel.global._getObjectTest = {}; - t.assertEqual(kernel.global._getObjectTest, lang.getObject("_getObjectTest", false), // don't create - 'lang.getObject("_getObjectTest", false)'); - t.assertEqual({}, lang.getObject("_getObjectTest.bar", true), 'lang.getObject("_getObjectTest.bar", true)'); // do create - - // strangely, parser does this - t.assertEqual("undefined", typeof lang.getObject("./TestWidget"), 'typeof lang.getObject("./TestWidget")'); - - // empty path should return the same object - t.assertEqual(test, lang.getObject("", false, test)); - t.assertEqual(kernel.global, lang.getObject("")); - }, - - function setObject(t){ - var test = { - foo : 0 - }; - t.assertTrue(lang.setObject("foo", {bar : "test"}, test)); - t.assertEqual({bar : "test"}, lang.getObject("foo", false, test)); - }, - - function mixin(t){ - t.assertEqual("object", typeof lang.mixin()); - t.assertEqual("object", typeof lang.mixin(undefined)); - t.assertEqual("object", typeof lang.mixin(null)); - var src = { - foo: function(){ - t.debug("foo"); - }, - bar: "bar" - }; - var dest = {}; - lang.mixin(dest, src); - t.assertEqual("function", typeof dest["foo"]); - t.assertEqual("string", typeof dest["bar"]); - }, - - function extend(t){ - var src = { - foo: function(){ - t.debug("foo"); - }, - bar: "bar" - }; - function dest(){} - lang.extend(dest, src); - var test = new dest(); - t.assertEqual("function", typeof test["foo"]); - t.assertEqual("string", typeof test["bar"]); - }, - - function isFunction(t){ - t.assertTrue(lang.isFunction(new Function())); - t.assertTrue(lang.isFunction(isFunction)); - if(lang.isBrowser){ // test the Safari workaround for NodeList - t.assertFalse(lang.isFunction(lang.doc.getElementsByName("html"))); - t.assertFalse(lang.isFunction(lang.doc.createElement("object"))); - } - }, - - function isObject(t){ - t.assertFalse(lang.isObject(true)); - t.assertFalse(lang.isObject(false)); - t.assertFalse(lang.isObject("foo")); - t.assertTrue(lang.isObject(new String("foo"))); - t.assertTrue(lang.isObject(null)); - t.assertTrue(lang.isObject({})); - t.assertTrue(lang.isObject([])); - t.assertTrue(lang.isObject(new Array())); - }, - - function isArray(t){ - t.assertTrue(lang.isArray([])); - t.assertTrue(lang.isArray(new Array())); - t.assertFalse(lang.isArray({})); - t.assertFalse(lang.isArray('')); - t.assertFalse(lang.isArray(0)); - t.assertFalse(lang.isArray(NaN)); - t.assertFalse(lang.isArray(null)); - t.assertFalse(lang.isArray(undefined)); - if(typeof window != "undefined"){ - t.assertFalse(lang.isArray(window)); - } - t.assertFalse(lang.isArray(Function)); - - function Tricky() {} - Tricky.prototype = []; - t.assertFalse(lang.isArray(new Tricky)); - }, - - function isArrayLike(t){ - t.assertFalse(lang.isArrayLike("thinger")); - t.assertTrue(lang.isArrayLike(new Array())); - t.assertFalse(lang.isArrayLike({})); - t.assertTrue(lang.isArrayLike(arguments)); - t.assertFalse(lang.isArrayLike("")); - t.assertFalse(lang.isArrayLike(false)); - t.assertFalse(lang.isArrayLike(NaN)); - t.assertFalse(lang.isArrayLike(undefined)); - t.assertFalse(lang.isArrayLike(null)); - if(typeof window != "undefined"){ - t.assertTrue(lang.isArrayLike(window)); - } - t.assertFalse(lang.isArrayLike(Function)); - - t.assertTrue(lang.isArrayLike({0: 1, 1: 2, length: 2})); - function Tricky() {} - Tricky.prototype = []; - t.assertTrue(lang.isArrayLike(new Tricky)); - }, - - function isString(t){ - t.assertFalse(lang.isString(true)); - t.assertFalse(lang.isString(false)); - t.assertTrue(lang.isString("foo")); - t.assertTrue(lang.isString(new String("foo"))); - t.assertFalse(lang.isString(null)); - t.assertFalse(lang.isString({})); - t.assertFalse(lang.isString([])); - }, - - function partial(t){ - var scope = { foo: "bar" }; - var scope2 = { foo: "baz" }; - function thinger(arg1, arg2){ - return [this.foo, arg1, arg2]; - } - - var st1 = lang.partial(thinger); - t.assertEqual("bar", st1.call(scope)[0]); - t.assertEqual(undefined, st1()[0]); - var st2 = lang.partial(thinger, "foo", "bar"); - t.assertEqual("bar", st2()[2]); - var st3 = lang.partial(thinger, "foo", "bar"); - }, - - function nestedPartial(t){ - function thinger(arg1, arg2){ - return [arg1, arg2]; - } - - var st1 = lang.partial(thinger, "foo"); - t.assertEqual(undefined, st1()[1]); - t.assertEqual("bar", st1("bar")[1]); - - // partials can accumulate - var st2 = lang.partial(st1, "thud"); - t.assertEqual("foo", st2()[0]); - t.assertEqual("thud", st2()[1]); - }, - - function hitch(t){ - var scope = { foo: "bar" }; - var scope2 = { foo: "baz" }; - function thinger(){ - return [this.foo, arguments.length]; - } - - var st1 = lang.hitch(scope, thinger); - t.assertEqual("bar", st1()[0]); - t.assertEqual(0, st1()[1]); - - var st2 = lang.hitch(scope2, thinger); - t.assertEqual("baz", st2()[0]); - t.assertEqual(0, st1()[1]); - t.assertEqual(1, st1("blah")[1]); - - // st2 should be "scope proof" - t.assertEqual("baz", st2.call(scope)[0]); - }, - - function hitchWithArgs(t){ - var scope = { foo: "bar" }; - var scope2 = { foo: "baz" }; - function thinger(){ - return [this.foo, arguments.length]; - } - - var st1 = lang.hitch(scope, thinger, "foo", "bar"); - t.assertEqual("bar", st1()[0]); - t.assertEqual(2, st1()[1]); - var st2 = lang.hitch(scope2, thinger, "foo", "bar"); - t.assertEqual("baz", st2()[0]); - t.assertEqual(2, st2()[1]); - }, - - function hitchAsPartial(t){ - var scope = { foo: "bar" }; - var scope2 = { foo: "baz" }; - function thinger(arg1, arg2){ - return [this.foo, arg1, arg2]; - } - - var st1 = lang.hitch(null, thinger); - t.assertEqual("bar", st1.call(scope)[0]); - t.assertEqual(undefined, st1()[0]); - var st2 = lang.hitch(null, thinger, "foo", "bar"); - t.assertEqual("bar", st2()[2]); - var st3 = lang.hitch(null, thinger, "foo", "bar"); - }, - - function _toArray(t){ - var obj1 = [ 'foo', 'bar', 'spam', 'ham' ]; - - function thinger(){ - return lang._toArray(arguments); - } - var obj2 = thinger.apply(this, obj1); - t.assertEqual(obj1[0], obj2[0]); - - if(lang.isBrowser){ - //test DomCollection - var div = document.createElement('div'); - div.innerHTML="linktext"; - var r=lang._toArray(div.childNodes); - t.is(2,r.length); - } - }, - - function clone(t){ - var obj1 = { - foo: 'bar', - answer: 42, - jan102007: new Date(2007, 0, 10), - baz: { - a: null, - b: [1, "b", 2.3, true, false], - c: { - d: undefined, - e: 99, - f: function(){ console.log(42); return 42; }, - g: /\d+/gm - } - }, - toString: function(){ return "meow"; } - }; - var obj2 = lang.clone(obj1); - t.assertEqual(obj1.foo, obj2.foo); - t.assertEqual(obj1.answer, obj2.answer); - t.assertEqual(obj1.jan102007, obj2.jan102007); - t.assertEqual(obj1.baz.a, obj2.baz.a); - for(var i = 0; i < obj1.baz.b.length; ++i){ - t.assertEqual(obj1.baz.b[i], obj2.baz.b[i]); - } - t.assertEqual(obj1.baz.c.d, obj2.baz.c.d); - t.assertEqual(obj1.baz.c.e, obj2.baz.c.e); - t.assertEqual(obj1.baz.c.f, obj2.baz.c.f); - t.assertEqual(obj1.baz.c.f(), obj2.baz.c.f()); - t.assertEqual(obj1.baz.c.g, obj2.baz.c.g); - t.assertEqual(obj1.toString, obj2.toString); - t.assertEqual(obj1.toString(), obj2.toString()); - }, - - function delegate(t){ - var a = { - x: 1, - y: function(){ return 2; }, - z1: 99 - }; - var b = { - x: 11, - y: function(){ return 12; }, - z2: 33, - toString: function(){ return "bark!"; }, - toLocaleString: function(){ return "le bark-s!"; } - }; - t.is(1, a.x); - t.is(2, a.y()); - t.is(99, a.z1); - var c = lang.delegate(a, b); - t.is(1, a.x); - t.is(2, a.y()); - t.is(99, a.z1); - t.is(11, c.x); - t.is(12, c.y()); - t.is("bark!", c.toString()); - t.is("le bark-s!", c.toLocaleString()); - t.is(99, c.z1); - t.is(33, c.z2); - }, - - function replace(t){ - var s1 = lang.replace("Hello, {name.first} {name.last} AKA {nick}!", - { - nick: "Bob", - name: { - first: "Robert", - middle: "X", - last: "Cringely" - } - }); - t.is("Hello, Robert Cringely AKA Bob!", s1); - - var s2 = lang.replace("Hello, {0} {2}!", ["Robert", "X", "Cringely"]); - t.is("Hello, Robert Cringely!", s2); - - function sum(a){ - var t = 0; - array.forEach(a, function(x){ t += x; }); - return t; - } - var s3 = lang.replace( - "{count} payments averaging {avg} USD per payment.", - lang.hitch( - { payments: [11, 16, 12] }, - function(_, key){ - switch(key){ - case "count": return this.payments.length; - case "min": return Math.min.apply(Math, this.payments); - case "max": return Math.max.apply(Math, this.payments); - case "sum": return sum(this.payments); - case "avg": return sum(this.payments) / this.payments.length; - } - return ""; - } - )); - t.is("3 payments averaging 13 USD per payment.", s3); - - var s4 = lang.replace("Hello, ${0} ${2}!", ["Robert", "X", "Cringely"], /\$\{([^\}]+)\}/g); - t.is("Hello, Robert Cringely!", s4); - } - ] - ); -}); \ No newline at end of file diff --git a/tests/_base/loader.js b/tests/_base/loader.js deleted file mode 100644 index 6fb0881cb9..0000000000 --- a/tests/_base/loader.js +++ /dev/null @@ -1,147 +0,0 @@ -define([ - "dojo", - "doh", - "require", - "dojo/sniff", - "dojo/has!dojo-publish-privates?./loader/core", - "dojo/has!dojo-amd-factory-scan?./loader/modules", - "dojo/has!dojo-publish-privates?./loader/moduleIds", - "./loader/bootstrap"], function(dojo, doh, require, has){ - if(doh.isBrowser){ - doh.register("tests._base.loader.asyncWithDojoRequire", require.toUrl("./loader/asyncWithDojoRequire.html")); - - doh.register("tests._base.loader.config?dojoConfig-djConfig-require", require.toUrl("./loader/config.html")+"?dojoConfig-djConfig-require"); - doh.register("tests._base.loader.config?dojoConfig-require", require.toUrl("./loader/config.html")+"?dojoConfig-require"); - doh.register("tests._base.loader.config?dojoConfig-djConfig", require.toUrl("./loader/config.html")+"?dojoConfig-djConfig"); - doh.register("tests._base.loader.config?dojoConfig", require.toUrl("./loader/config.html")+"?dojoConfig"); - doh.register("tests._base.loader.config?djConfig-require", require.toUrl("./loader/config.html")+"?djConfig-require"); - doh.register("tests._base.loader.config?djConfig", require.toUrl("./loader/config.html")+"?djConfig"); - doh.register("tests._base.loader.config?require", require.toUrl("./loader/config.html")+"?require"); - if(has("dojo-publish-privates")){ - doh.register("tests._base.loader.config?configApi.html", require.toUrl("./loader/configApi.html")); - } - doh.register("tests._base.loader.config?config-sniff.html", require.toUrl("./loader/config-sniff.html")); - doh.register("tests._base.loader.config?config-sniff-djConfig.html", require.toUrl("./loader/config-sniff-djConfig.html")); - doh.register("tests._base.loader.config?config-has.html", require.toUrl("./loader/config-has.html")); - //TODO: doh.register("tests._base.loader.cdn-load", require.toUrl("./loader/cdnTest.html")); - doh.register("tests._base.loader.loader-declareStepsOnProvide", require.toUrl("./loader/declareStepsOnProvide.html")); - - doh.register("tests._base.loader.publish-require-result", require.toUrl("./loader/publishRequireResult.html")); - doh.register("tests._base.loader.no-publish-require-result", require.toUrl("./loader/publishRequireResult.html")+"?do-not-publish"); - - doh.register("tests._base.loader.top-level-module-by-paths", require.toUrl("./loader/paths.html")); - doh.register("tests._base.loader.xdomin-sync-1", require.toUrl("./loader/xdomain/xdomain.html"), {async:0, variation:1}); - doh.register("tests._base.loader.xdomin-sync-2", require.toUrl("./loader/xdomain/xdomain.html"), {async:0, variation:2}); - doh.register("tests._base.loader.xdomin-async-1", require.toUrl("./loader/xdomain/xdomain.html"), {async:"legacyAsync", variation:1}); - doh.register("tests._base.loader.xdomin-async-2", require.toUrl("./loader/xdomain/xdomain.html"), {async:"legacyAsync", variation:2}); - // the requirejs test suite. The following tests are not used: - // - // * baseUrl: dojo's baseUrl is different--it defaults to the dojo tree. See TODO - // * layers: dojo's build system does things differently - // * afterload: is not constructed in a way that works with doh - // * plugin/sync: this test seems like it will always fail in async mode; TODO check with James - // - doh.register("tests._base.loader.requirejs-simple-sync", require.toUrl("./loader/requirejs/simple.html"), {async:0}); - doh.register("tests._base.loader.requirejs-simple-async", require.toUrl("./loader/requirejs/simple.html"), {async:1}); - - doh.register("tests._base.loader.requirejs-config-sync", require.toUrl("./loader/requirejs/config.html"), {async:0}); - doh.register("tests._base.loader.requirejs-config-async", require.toUrl("./loader/requirejs/config.html"), {async:1}); - - if(has("dojo-requirejs-api")){ - doh.register("tests._base.loader.requirejs-dataMain-sync", require.toUrl("./loader/requirejs/dataMain.html"), {async:0}); - doh.register("tests._base.loader.requirejs-dataMain-async", require.toUrl("./loader/requirejs/dataMain.html"), {async:1}); - } - doh.register("tests._base.loader.requirejs-simple-nohead-sync", require.toUrl("./loader/requirejs/simple-nohead.html"), {async:0}); - doh.register("tests._base.loader.requirejs-simple-nohead-async", require.toUrl("./loader/requirejs/simple-nohead.html"), {async:1}); - - function compactPath(path){ - var - result= [], - segment, lastSegment; - path= path.split("/"); - while(path.length){ - segment= path.shift(); - if(segment==".." && result.length && lastSegment!=".."){ - result.pop(); - }else if(segment!="."){ - result.push(lastSegment= segment); - } // else ignore "." - } - return result.join("/"); - } - var - qstart= location.href.indexOf(location.search), - root= qstart!=-1 ? location.href.substring(0, qstart) : location.href, - setup= compactPath(root + "/../" + require.toUrl("./loader/requirejs/requirejs-setup.js")), - baseUrl= setup.substring(0, setup.length - "/requirejs-setup.js".length); - if(has("ie")>6){ - doh.register("tests._base.loader.requirejs-simple-badbase-sync", require.toUrl("./loader/requirejs/simple-badbase.html"), { - async:0, - baseUrl:baseUrl, - setup:setup, - dojo:compactPath(root + "/../" + require.toUrl("../../dojo.js")) - }); - } - doh.register("tests._base.loader.requirejs-simple-badbase-async", require.toUrl("./loader/requirejs/simple-badbase.html"), { - async:1, - baseUrl:baseUrl, - setup:setup, - dojo:compactPath(root + "/../" + require.toUrl("../../dojo.js")) - }); - - //doh.register("tests._base.loader.requirejs-circular-sync", require.toUrl("./loader/requirejs/circular.html"), {async:0}); - doh.register("tests._base.loader.requirejs-circular-async", require.toUrl("./loader/requirejs/circular.html"), {async:1}); - - if(has("dojo-requirejs-api")){ - doh.register("tests._base.loader.requirejs-depoverlap-sync", require.toUrl("./loader/requirejs/depoverlap.html"), {async:0}); - doh.register("tests._base.loader.requirejs-depoverlap-async", require.toUrl("./loader/requirejs/depoverlap.html"), {async:1}); - } - - doh.register("tests._base.loader.requirejs-urlfetch-sync", require.toUrl("./loader/requirejs/urlfetch/urlfetch.html"), {async:0}); - doh.register("tests._base.loader.requirejs-urlfetch-async", require.toUrl("./loader/requirejs/urlfetch/urlfetch.html"), {async:1}); - - if(has("dojo-amd-factory-scan")){ - doh.register("tests._base.loader.requirejs-uniques-sync", require.toUrl("./loader/requirejs/uniques/uniques.html"), {async:0}); - doh.register("tests._base.loader.requirejs-uniques-async", require.toUrl("./loader/requirejs/uniques/uniques.html"), {async:1}); - } -//>>excludeStart("requireJSI18nTests", kwArgs.insertAbsMids); - doh.register("tests._base.loader.requirejs-i18nlocaleunknown-sync", require.toUrl("./loader/requirejs/i18n/i18n.html")+"?bundle=i18n!nls/fr-fr/colors", {async:0}); - doh.register("tests._base.loader.requirejs-i18nlocaleunknown-async", require.toUrl("./loader/requirejs/i18n/i18n.html")+"?bundle=i18n!nls/fr-fr/colors", {async:1}); - - doh.register("tests._base.loader.requirejs-i18n-sync", require.toUrl("./loader/requirejs/i18n/i18n.html"), {async:0}); - doh.register("tests._base.loader.requirejs-i18n-async", require.toUrl("./loader/requirejs/i18n/i18n.html"), {async:1}); - - doh.register("tests._base.loader.requirejs-i18nlocale-sync", require.toUrl("./loader/requirejs/i18n/i18n.html")+"?locale=en-us-surfer", {async:0}); - doh.register("tests._base.loader.requirejs-i18nlocale-async", require.toUrl("./loader/requirejs/i18n/i18n.html")+"?locale=en-us-surfer", {async:1}); - - doh.register("tests._base.loader.requirejs-i18nbundle-sync", require.toUrl("./loader/requirejs/i18n/i18n.html")+"?bundle=i18n!nls/en-us-surfer/colors", {async:0}); - doh.register("tests._base.loader.requirejs-i18nbundle-async", require.toUrl("./loader/requirejs/i18n/i18n.html")+"?bundle=i18n!nls/en-us-surfer/colors", {async:1}); - - doh.register("tests._base.loader.requirejs-i18ncommon-sync", require.toUrl("./loader/requirejs/i18n/common.html"), {async:0}); - doh.register("tests._base.loader.requirejs-i18ncommon-async", require.toUrl("./loader/requirejs/i18n/common.html"), {async:1}); - - doh.register("tests._base.loader.requirejs-i18ncommonlocale-sync", require.toUrl("./loader/requirejs/i18n/common.html")+"?locale=en-us-surfer", {async:0}); - doh.register("tests._base.loader.requirejs-i18ncommonlocale-async", require.toUrl("./loader/requirejs/i18n/common.html")+"?locale=en-us-surfer", {async:1}); -//>>excludeEnd("requireJSI18nTests"); - doh.register("tests._base.loader.requirejs-paths-sync", require.toUrl("./loader/requirejs/paths/paths.html"), {async:0}); - doh.register("tests._base.loader.requirejs-paths-async", require.toUrl("./loader/requirejs/paths/paths.html"), {async:1}); - - doh.register("tests._base.loader.requirejs-relative-sync", require.toUrl("./loader/requirejs/relative/relative.html"), {async:0}); - doh.register("tests._base.loader.requirejs-relative-async", require.toUrl("./loader/requirejs/relative/relative.html"), {async:1}); - - doh.register("tests._base.loader.requirejs-text-sync", require.toUrl("./loader/requirejs/text/text.html"), {async:0}); - doh.register("tests._base.loader.requirejs-text-async", require.toUrl("./loader/requirejs/text/text.html"), {async:1}); - doh.register("tests._base.loader.requirejs-text-sync", require.toUrl("./loader/requirejs/text/text.html"), {async:0, aliasTest:1}); - doh.register("tests._base.loader.requirejs-text-async", require.toUrl("./loader/requirejs/text/text.html"), {async:1, aliasTest:1}); - - doh.register("tests._base.loader.requirejs-textOnly-sync", require.toUrl("./loader/requirejs/text/textOnly.html"), {async:0}); - doh.register("tests._base.loader.requirejs-textOnly-async", require.toUrl("./loader/requirejs/text/textOnly.html"), {async:1}); - - doh.register("tests._base.loader.requirejs-exports-sync", require.toUrl("./loader/requirejs/exports/exports.html"), {async:0}); - doh.register("tests._base.loader.requirejs-exports-async", require.toUrl("./loader/requirejs/exports/exports.html"), {async:1}); - - doh.register("tests._base.loader.require-config", require.toUrl("./loader/config/test.html"), {async:1}); - doh.register("tests._base.loader.mapping", require.toUrl("./loader/mapping.html"), {async:1}); - } -}); - diff --git a/tests/_base/loader/amdModule.js b/tests/_base/loader/amdModule.js deleted file mode 100644 index 93ae6eb11d..0000000000 --- a/tests/_base/loader/amdModule.js +++ /dev/null @@ -1,5 +0,0 @@ -dojoCdnTestLog.push("defining-dojo.tests._base.loader.amdModule"); -define(["./amdModuleDep"], function(){ - dojoCdnTestLog.push("factory-dojo.tests._base.loader.amdModule"); - return {status:"OK"}; -}); diff --git a/tests/_base/loader/amdModule1.js b/tests/_base/loader/amdModule1.js deleted file mode 100644 index 80fe36712d..0000000000 --- a/tests/_base/loader/amdModule1.js +++ /dev/null @@ -1,5 +0,0 @@ -dojoCdnTestLog.push("defining-dojo.tests._base.loader.amdModule1"); -define(["./amdModuleDep1"], function(){ - dojoCdnTestLog.push("factory-dojo.tests._base.loader.amdModule1"); - return {status:"OK"}; -}); diff --git a/tests/_base/loader/amdModule2.js b/tests/_base/loader/amdModule2.js deleted file mode 100644 index 696e246550..0000000000 --- a/tests/_base/loader/amdModule2.js +++ /dev/null @@ -1,5 +0,0 @@ -dojoCdnTestLog.push("defining-dojo.tests._base.loader.amdModule2"); -define(["./amdModuleDep"], function(){ - dojoCdnTestLog.push("factory-dojo.tests._base.loader.amdModule2"); - return {status:"OK"}; -}); diff --git a/tests/_base/loader/amdModuleDep.js b/tests/_base/loader/amdModuleDep.js deleted file mode 100644 index ed1b33c1b5..0000000000 --- a/tests/_base/loader/amdModuleDep.js +++ /dev/null @@ -1,5 +0,0 @@ -dojoCdnTestLog.push("defining-dojo.tests._base.loader.amdModuleDep"); -define([], function(){ - dojoCdnTestLog.push("factory-dojo.tests._base.loader.amdModuleDep"); - return {status:"OK"}; -}); diff --git a/tests/_base/loader/amdModuleDep1.js b/tests/_base/loader/amdModuleDep1.js deleted file mode 100644 index 14ec771fda..0000000000 --- a/tests/_base/loader/amdModuleDep1.js +++ /dev/null @@ -1,5 +0,0 @@ -dojoCdnTestLog.push("defining-dojo.tests._base.loader.amdModuleDep1"); -define([], function(){ - dojoCdnTestLog.push("factory-dojo.tests._base.loader.amdModuleDep1"); - return {status:"OK"}; -}); diff --git a/tests/_base/loader/amdModuleDep2.js b/tests/_base/loader/amdModuleDep2.js deleted file mode 100644 index b19c27931f..0000000000 --- a/tests/_base/loader/amdModuleDep2.js +++ /dev/null @@ -1,5 +0,0 @@ -dojoCdnTestLog.push("defining-dojo.tests._base.loader.amdModuleDep2"); -define([], function(){ - dojoCdnTestLog.push("factory-dojo.tests._base.loader.amdModuleDep2"); - return {status:"OK"}; -}); diff --git a/tests/_base/loader/asyncWithDojoRequire.html b/tests/_base/loader/asyncWithDojoRequire.html deleted file mode 100644 index 1a36904e38..0000000000 --- a/tests/_base/loader/asyncWithDojoRequire.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - loader-only - - - - - -

Description: Async Dojo loading 1.6 module

- - diff --git a/tests/_base/loader/boot-sniffConfig.html b/tests/_base/loader/boot-sniffConfig.html deleted file mode 100644 index 9d82b94abc..0000000000 --- a/tests/_base/loader/boot-sniffConfig.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - diff --git a/tests/_base/loader/boot-userConfig.html b/tests/_base/loader/boot-userConfig.html deleted file mode 100644 index bb23a669e4..0000000000 --- a/tests/_base/loader/boot-userConfig.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - diff --git a/tests/_base/loader/cdnTest.html b/tests/_base/loader/cdnTest.html deleted file mode 100644 index 5a5abe8842..0000000000 --- a/tests/_base/loader/cdnTest.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - -
- - diff --git a/tests/_base/loader/cdnTest.js b/tests/_base/loader/cdnTest.js deleted file mode 100644 index 706cdfea84..0000000000 --- a/tests/_base/loader/cdnTest.js +++ /dev/null @@ -1,39 +0,0 @@ -dojo.loadInit(function(){ - // this function is evaluated first and only once - dojoCdnTestLog.push("loadInit in cdnTest"); - // define a global variable - dojoCdnTest= 1; -}); - -dojoCdnTestLog.push("in-dojo.tests._base.loader.cdnTest"); -dojo.provide("dojo.tests._base.loader.cdnTest"); -dojo.provide("dojo.tests._base.loader.cdnTest2"); -dojo.tests._base.loader.cdnTest.status= "OK"; -dojo.tests._base.loader.cdnTest2.status= "OK"; -dojo.require("dojo.tests._base.loader.syncModule"); -dojo.require("dojo.tests._base.loader.amdModule"); -dojo.requireLocalization("dojo.tests._base.loader", "syncBundle", "ab-cd-ef"); -dojo.requireLocalization("dojo.tests._base.loader", "amdBundle", "ab-cd-ef"); - -(function(){ -var t1= dojo.i18n.getLocalization("dojo.tests._base.loader", "syncBundle"); -var t2= dojo.i18n.getLocalization("dojo.tests._base.loader", "syncBundle", "ab-cd-ef"); -var t3= dojo.i18n.getLocalization("dojo.tests._base.loader", "amdBundle"); -var t4= dojo.i18n.getLocalization("dojo.tests._base.loader", "amdBundle", "ab-cd-ef"); - -require(["doh"], function(doh){ - doh.register("test-i18n-inline", function(t){ - t.is(t1.syncBundle, "syncBundle"); - t.is(t2.syncBundle, "syncBundle-ab-cd-ef"); - t.is(t3.amdBundle, "amdBundle"); - t.is(t4.amdBundle, "amdBundle-ab-cd-ef"); - }); -}); -})(); - - -dojo.requireIf(dojoCdnTest==1, "dojo.tests._base.loader.syncModule1"); -dojo.requireAfterIf(dojoCdnTest==1, "dojo.tests._base.loader.amdModule1"); -dojo.requireIf(dojoCdnTest==2, "dojo.tests._base.loader.syncModule2"); -dojo.requireAfterIf(dojoCdnTest==2, "dojo.tests._base.loader.amdModule2"); -dojoCdnTestLog.push("out-dojo.tests._base.loader.cdnTest"); diff --git a/tests/_base/loader/config-has.html b/tests/_base/loader/config-has.html deleted file mode 100644 index 179eada4ef..0000000000 --- a/tests/_base/loader/config-has.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - diff --git a/tests/_base/loader/config-sniff-djConfig.html b/tests/_base/loader/config-sniff-djConfig.html deleted file mode 100644 index b99a7458d6..0000000000 --- a/tests/_base/loader/config-sniff-djConfig.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - diff --git a/tests/_base/loader/config-sniff.html b/tests/_base/loader/config-sniff.html deleted file mode 100644 index 06b1244cb4..0000000000 --- a/tests/_base/loader/config-sniff.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - diff --git a/tests/_base/loader/config.html b/tests/_base/loader/config.html deleted file mode 100644 index d4fae3b964..0000000000 --- a/tests/_base/loader/config.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - - - - diff --git a/tests/_base/loader/config/pkg/m1.js b/tests/_base/loader/config/pkg/m1.js deleted file mode 100644 index ae75fb3a52..0000000000 --- a/tests/_base/loader/config/pkg/m1.js +++ /dev/null @@ -1,20 +0,0 @@ - -define(["./m2", "module", "require"], function(m2, module, require){ - // m2 just configs one of it's dependents in several ways - - var config = {}; - if(!module.config().isMapped){ - require({config:{"pkg/m2":{config1:"config1"}}}); - require({config:{"./m2":{config2:"config2"}}}); - config[module.id + "/../m2"]= {config3:"config3"}; - require({config:config}); - }else{ - require({config:{"pkg/m2":{config1:"mapped-config1"}}}); - require({config:{"./m2":{config2:"mapped-config2"}}}); - config[module.id + "/../m2"]= {config3:"mapped-config3"}; - require({config:config}); - } - return {getConfig:function(){ return module.config();}}; -}); - - diff --git a/tests/_base/loader/config/pkg/m2.js b/tests/_base/loader/config/pkg/m2.js deleted file mode 100644 index 9a934ac979..0000000000 --- a/tests/_base/loader/config/pkg/m2.js +++ /dev/null @@ -1,4 +0,0 @@ -define(["module"], function(module){ - return {getConfig:function(){ return module.config();}}; -}); - diff --git a/tests/_base/loader/config/someModule.js b/tests/_base/loader/config/someModule.js deleted file mode 100644 index f97a42b660..0000000000 --- a/tests/_base/loader/config/someModule.js +++ /dev/null @@ -1,11 +0,0 @@ -define(["pkg/m1", "pkg/m2", "require", "module"], function(m1, m2, require, module){ - require({config:{ - "pkg/m1":{configThroughMappedRefForM1:"configThroughMappedRefForM1"}, - "pkg/m2":{configThroughMappedRefForM1:"configThroughMappedRefForM1"} - }}); - return { - getConfig:function(){return module.config();}, - m1:m1, - m2:m2 - }; -}); diff --git a/tests/_base/loader/config/someModuleConfiggedPriorToBoot.js b/tests/_base/loader/config/someModuleConfiggedPriorToBoot.js deleted file mode 100644 index 4fcde73d32..0000000000 --- a/tests/_base/loader/config/someModuleConfiggedPriorToBoot.js +++ /dev/null @@ -1,5 +0,0 @@ -define(["module"], function(module){ - return { - getConfig:function(){return module.config();} - }; -}); diff --git a/tests/_base/loader/config/test.html b/tests/_base/loader/config/test.html deleted file mode 100644 index 793d7f6cf0..0000000000 --- a/tests/_base/loader/config/test.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - diff --git a/tests/_base/loader/configApi.html b/tests/_base/loader/configApi.html deleted file mode 100644 index f6b9e9544c..0000000000 --- a/tests/_base/loader/configApi.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - diff --git a/tests/_base/loader/core.js b/tests/_base/loader/core.js deleted file mode 100644 index cea3b8b033..0000000000 --- a/tests/_base/loader/core.js +++ /dev/null @@ -1,18 +0,0 @@ -define(["doh"], function(doh){ - doh.register("dojo.tests._base._loader.internals", [ - function compactPath(t){ - var compactPath = require.compactPath; - t.is(compactPath("../../dojo/../../mytests"), "../../../mytests"); - t.is(compactPath("module"), "module"); - t.is(compactPath("a/./b"), "a/b"); - t.is(compactPath("a/../b"), "b"); - t.is(compactPath("a/./b/./c/./d"), "a/b/c/d"); - t.is(compactPath("a/../b/../c/../d"), "d"); - t.is(compactPath("a/b/c/../../d"), "a/d"); - t.is(compactPath("a/b/c/././d"), "a/b/c/d"); - t.is(compactPath("./a/b"), "a/b"); - t.is(compactPath("../a/b"), "../a/b"); - t.is(compactPath(""), ""); - } - ]); -}); diff --git a/tests/_base/loader/declareStepsOnProvide.html b/tests/_base/loader/declareStepsOnProvide.html deleted file mode 100644 index 1d43c5d297..0000000000 --- a/tests/_base/loader/declareStepsOnProvide.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - -

check console

-

This tests a legacy module that has two dojo.provides and both are stepped on by dojo.declare.

- - diff --git a/tests/_base/loader/declareStepsOnProvide.js b/tests/_base/loader/declareStepsOnProvide.js deleted file mode 100644 index fbbd885355..0000000000 --- a/tests/_base/loader/declareStepsOnProvide.js +++ /dev/null @@ -1,14 +0,0 @@ -dojo.provide("dojo.tests._base.loader.declareStepsOnProvide"); -dojo.provide("dojo.tests._base.loader.declareStepsOnProvide1"); - -dojo.declare("dojo.tests._base.loader.declareStepsOnProvide", [], { - status:function(){ - return "OK"; - } -}); - -dojo.declare("dojo.tests._base.loader.declareStepsOnProvide1", [], { - status:function(){ - return "OK-1"; - } -}); diff --git a/tests/_base/loader/declareStepsOnProvideAmd.js b/tests/_base/loader/declareStepsOnProvideAmd.js deleted file mode 100644 index ecce6028bc..0000000000 --- a/tests/_base/loader/declareStepsOnProvideAmd.js +++ /dev/null @@ -1,3 +0,0 @@ -define(["./declareStepsOnProvide"], function(result){ - return result; -}); diff --git a/tests/_base/loader/hostenv_spidermonkey.js b/tests/_base/loader/hostenv_spidermonkey.js deleted file mode 100644 index 8ff7670d4e..0000000000 --- a/tests/_base/loader/hostenv_spidermonkey.js +++ /dev/null @@ -1,11 +0,0 @@ -dojo.provide("dojo.tests._base._loader.hostenv_spidermonkey"); - -tests.register("tests._base._loader.hostenv_spidermonkey", - [ - function getText(t){ - var filePath = dojo.moduleUrl("tests._base._loader", "getText.txt"); - var text = readText(filePath); - t.assertEqual("dojo._getText() test data", text); - } - ] -); diff --git a/tests/_base/loader/moduleIds.js b/tests/_base/loader/moduleIds.js deleted file mode 100644 index 45b6ff108a..0000000000 --- a/tests/_base/loader/moduleIds.js +++ /dev/null @@ -1,210 +0,0 @@ -define(["doh", "dojo", "dojo/_base/url"], function(doh, dojo){ - - var compactPath = function(path){ - var - result= [], - segment, lastSegment; - path= path.split("/"); - while(path.length){ - segment= path.shift(); - if(segment==".." && result.length && lastSegment!=".."){ - result.pop(); - }else if(segment!="."){ - result.push(lastSegment= segment); - } // else ignore "." - } - return result.join("/"); - }; - - doh.register("dojo.tests._base._loader.modulesIds", [ - function compactPath(t){ - var compactPath = require.compactPath; - t.is(compactPath("../../dojo/../../mytests"), "../../../mytests"); - t.is(compactPath("module"), "module"); - t.is(compactPath("a/./b"), "a/b"); - t.is(compactPath("a/../b"), "b"); - t.is(compactPath("a/./b/./c/./d"), "a/b/c/d"); - t.is(compactPath("a/../b/../c/../d"), "d"); - t.is(compactPath("a/b/c/../../d"), "a/d"); - t.is(compactPath("a/b/c/././d"), "a/b/c/d"); - t.is(compactPath("./a/b"), "a/b"); - t.is(compactPath("../a/b"), "../a/b"); - t.is(compactPath(""), ""); - }, - - function testModuleIds(t){ - require({ - packages:[{ - // canonical... - name:"pack1", - location:"../packages/pack1Root" - }, { - // nonstandard main - name:"pack2", - main:"pack2Main", - location:"/pack2Root" - }, { - // nonstandard main - name:"pack3", - main:"public/main", - location:"/pack3Root" - }] - }); - - function get(mid, refmod){ - return require.getModuleInfo(mid, refmod, require.packs, require.modules, "../../dojo/", require.mapProgs, require.pathsMapProg, 1); - } - - function check(result, expectedPid, expectedMidSansPid, expectedUrl){ - t.is(result.pid, expectedPid); - t.is(result.mid, expectedPid + "/" + expectedMidSansPid); - t.is(result.url, expectedUrl + ".js"); - } - - // non-relative module id resolution... - - var pack1Root= "../../packages/pack1Root/"; - - // the various mains... - check(get("pack1"), "pack1", "main", pack1Root + "main"); - check(get("pack2"), "pack2", "pack2Main", "/pack2Root/pack2Main"); - check(get("pack3"), "pack3", "public/main", "/pack3Root/public/main"); - - // modules... - check(get("pack1/myModule"), "pack1", "myModule", pack1Root + "myModule"); - check(get("pack2/myModule"), "pack2", "myModule", "/pack2Root/myModule"); - check(get("pack3/myModule"), "pack3", "myModule", "/pack3Root/myModule"); - - // relative module id resolution; relative to module in top-level - var refmod= {mid:"pack1/main", pack:require.packs.pack1}; - check(get(".", refmod), "pack1", "main", pack1Root + "main"); - check(get("./myModule", refmod), "pack1", "myModule", pack1Root + "myModule"); - check(get("./myModule/mySubmodule", refmod), "pack1", "myModule/mySubmodule", pack1Root + "myModule/mySubmodule"); - - // relative module id resolution; relative to module - refmod= {mid:"pack1/sub/publicModule", pack:require.packs.pack1}; - check(get(".", refmod), "pack1", "sub", pack1Root + "sub"); - check(get("./myModule", refmod), "pack1", "sub/myModule", pack1Root + "sub/myModule"); - check(get("..", refmod), "pack1", "main", pack1Root + "main"); - check(get("../myModule", refmod), "pack1", "myModule", pack1Root + "myModule"); - check(get("../util/myModule", refmod), "pack1", "util/myModule", pack1Root + "util/myModule"); - }, - - function baseUrl(t){ - var originalBaseUrl = dojo.config["baseUrl"] || "./"; - - t.assertEqual(originalBaseUrl, dojo.baseUrl); - }, - - function moduleUrl(t){ - var expected = require.toUrl("dojo/tests/myTest.html"); - t.is(null, dojo.moduleUrl()); - t.is(null, dojo.moduleUrl(null)); - t.is(null, dojo.moduleUrl(null, "myTest.html")); - // note we expect a trailing slash - t.is(expected.substring(0, expected.length - 11), dojo.moduleUrl("dojo.tests")); - t.is(expected, dojo.moduleUrl("dojo.tests", "myTest.html")); - }, - - function modulePaths(t){ - dojo.registerModulePath("mycoolmod", "../some/path/mycoolpath"); - dojo.registerModulePath("mycoolmod.widget", "http://some.domain.com/another/path/mycoolpath/widget"); - - t.assertEqual(compactPath(require.baseUrl + "../some/path/mycoolpath/util/"), dojo.moduleUrl("mycoolmod.util")); - t.assertEqual("http://some.domain.com/another/path/mycoolpath/widget/", dojo.moduleUrl("mycoolmod.widget")); - t.assertEqual("http://some.domain.com/another/path/mycoolpath/widget/thingy/", dojo.moduleUrl("mycoolmod.widget.thingy")); - }, - - function moduleUrls(t){ - dojo.registerModulePath("mycoolmod", "some/path/mycoolpath"); - dojo.registerModulePath("mycoolmod2", "/some/path/mycoolpath2"); - dojo.registerModulePath("mycoolmod.widget", "http://some.domain.com/another/path/mycoolpath/widget"); - dojo.registerModulePath("ipv4.widget", "http://ipv4user:ipv4passwd@some.domain.com:2357/another/path/ipv4/widget"); - dojo.registerModulePath("ipv6.widget", "ftp://ipv6user:ipv6passwd@[::2001:0db8:3c4d:0015:0:0:abcd:ef12]:1113/another/path/ipv6/widget"); - dojo.registerModulePath("ipv6.widget2", "https://[0:0:0:0:0:1]/another/path/ipv6/widget2"); - - - var basePrefix = require.baseUrl; - - t.assertEqual(compactPath(basePrefix + "some/path/mycoolpath/my/favorite.html"), - dojo.moduleUrl("mycoolmod", "my/favorite.html")); - t.assertEqual(compactPath(basePrefix + "some/path/mycoolpath/my/favorite.html"), - dojo.moduleUrl("mycoolmod.my", "favorite.html")); - - t.assertEqual("/some/path/mycoolpath2/my/favorite.html", - dojo.moduleUrl("mycoolmod2", "my/favorite.html")); - t.assertEqual("/some/path/mycoolpath2/my/favorite.html", - dojo.moduleUrl("mycoolmod2.my", "favorite.html")); - - t.assertEqual("http://some.domain.com/another/path/mycoolpath/widget/my/favorite.html", - dojo.moduleUrl("mycoolmod.widget", "my/favorite.html")); - t.assertEqual("http://some.domain.com/another/path/mycoolpath/widget/my/favorite.html", - dojo.moduleUrl("mycoolmod.widget.my", "favorite.html")); - - // individual component testing - t.assertEqual("http://ipv4user:ipv4passwd@some.domain.com:2357/another/path/ipv4/widget/components.html", - (new dojo._Url(dojo.moduleUrl("ipv4.widget", "components.html"))).uri); - t.assertEqual("http", - (new dojo._Url(dojo.moduleUrl("ipv4.widget", "components.html"))).scheme); - t.assertEqual("ipv4user:ipv4passwd@some.domain.com:2357", - (new dojo._Url(dojo.moduleUrl("ipv4.widget", "components.html"))).authority); - t.assertEqual("ipv4user", - (new dojo._Url(dojo.moduleUrl("ipv4.widget", "components.html"))).user); - t.assertEqual("ipv4passwd", - (new dojo._Url(dojo.moduleUrl("ipv4.widget", "components.html"))).password); - t.assertEqual("some.domain.com", - (new dojo._Url(dojo.moduleUrl("ipv4.widget", "components.html"))).host); - t.assertEqual("2357", - (new dojo._Url(dojo.moduleUrl("ipv4.widget", "components.html"))).port); - t.assertEqual("/another/path/ipv4/widget/components.html", - (new dojo._Url(dojo.moduleUrl("ipv4.widget", "components.html?query"))).path); - t.assertEqual("q=somequery", - (new dojo._Url(dojo.moduleUrl("ipv4.widget", "components.html?q=somequery"))).query); - t.assertEqual("fragment", - (new dojo._Url(dojo.moduleUrl("ipv4.widget", "components.html#fragment"))).fragment); - - t.assertEqual("ftp://ipv6user:ipv6passwd@[::2001:0db8:3c4d:0015:0:0:abcd:ef12]:1113/another/path/ipv6/widget/components.html", - (new dojo._Url(dojo.moduleUrl("ipv6.widget", "components.html"))).uri); - t.assertEqual("ftp", - (new dojo._Url(dojo.moduleUrl("ipv6.widget", "components.html"))).scheme); - t.assertEqual("ipv6user:ipv6passwd@[::2001:0db8:3c4d:0015:0:0:abcd:ef12]:1113", - (new dojo._Url(dojo.moduleUrl("ipv6.widget", "components.html"))).authority); - t.assertEqual("ipv6user", - (new dojo._Url(dojo.moduleUrl("ipv6.widget", "components.html"))).user); - t.assertEqual("ipv6passwd", - (new dojo._Url(dojo.moduleUrl("ipv6.widget", "components.html"))).password); - t.assertEqual("::2001:0db8:3c4d:0015:0:0:abcd:ef12", - (new dojo._Url(dojo.moduleUrl("ipv6.widget", "components.html"))).host); - t.assertEqual("1113", - (new dojo._Url(dojo.moduleUrl("ipv6.widget", "components.html"))).port); - t.assertEqual("/another/path/ipv6/widget/components.html", - (new dojo._Url(dojo.moduleUrl("ipv6.widget", "components.html?query"))).path); - t.assertEqual("somequery", - (new dojo._Url(dojo.moduleUrl("ipv6.widget", "components.html?somequery"))).query); - t.assertEqual("somefragment", - (new dojo._Url(dojo.moduleUrl("ipv6.widget", "components.html?somequery#somefragment"))).fragment); - - t.assertEqual("https://[0:0:0:0:0:1]/another/path/ipv6/widget2/components.html", - (new dojo._Url(dojo.moduleUrl("ipv6.widget2", "components.html"))).uri); - t.assertEqual("https", - (new dojo._Url(dojo.moduleUrl("ipv6.widget2", "components.html"))).scheme); - t.assertEqual("[0:0:0:0:0:1]", - (new dojo._Url(dojo.moduleUrl("ipv6.widget2", "components.html"))).authority); - t.assertEqual(null, - (new dojo._Url(dojo.moduleUrl("ipv6.widget2", "components.html"))).user); - t.assertEqual(null, - (new dojo._Url(dojo.moduleUrl("ipv6.widget2", "components.html"))).password); - t.assertEqual("0:0:0:0:0:1", - (new dojo._Url(dojo.moduleUrl("ipv6.widget2", "components.html"))).host); - t.assertEqual(null, - (new dojo._Url(dojo.moduleUrl("ipv6.widget2", "components.html"))).port); - t.assertEqual("/another/path/ipv6/widget2/components.html", - (new dojo._Url(dojo.moduleUrl("ipv6.widget2", "components.html"))).path); - t.assertEqual(null, - (new dojo._Url(dojo.moduleUrl("ipv6.widget2", "components.html"))).query); - t.assertEqual(null, - (new dojo._Url(dojo.moduleUrl("ipv6.widget2", "components.html"))).fragment); - } - ]); -}); - diff --git a/tests/_base/loader/modules.js b/tests/_base/loader/modules.js deleted file mode 100644 index a4ceb54cca..0000000000 --- a/tests/_base/loader/modules.js +++ /dev/null @@ -1,43 +0,0 @@ -define([ - "doh", - "dojo", - "require", - "./modules/anon", - "./modules/wrapped", - "dojo/tests/_base/loader/modules/full", - "./modules/data", - "./modules/factoryArity", - "./modules/factoryArityExports", - "./modules/idFactoryArity", - "./modules/idFactoryArityExports" -], function(doh, dojo, require, anon, wrapped){ - - doh.register("dojo.tests._base._loader.modules", [ - function testAMD(t){ - // test AMD module API - t.is(anon.theAnswer, 42); - t.is(require('./modules/anon').five, 5); - t.is(wrapped.five, 5); - t.is(dojo.require('dojo.tests._base.loader.modules.wrapped'), require('./modules/wrapped')); - t.is(require('./modules/full').twiceTheAnswer, 84); - t.is(require('./modules/data').five, 5); - - t.is(require('./modules/factoryArity').module.id, "dojo/tests/_base/loader/modules/factoryArity"); - t.is(require('./modules/factoryArity').id, "factoryArity"); - t.is(require('./modules/factoryArity').impliedDep, "impliedDep1"); - - t.is(require('./modules/factoryArityExports').module.id, "dojo/tests/_base/loader/modules/factoryArityExports"); - t.is(require('./modules/factoryArityExports').id, "factoryArityExports"); - t.is(require('./modules/factoryArityExports').impliedDep, "impliedDep2"); - - t.is(require('./modules/idFactoryArity').module.id, "dojo/tests/_base/loader/modules/idFactoryArity"); - t.is(require('./modules/idFactoryArity').id, "idFactoryArity"); - t.is(require('./modules/idFactoryArity').impliedDep, "impliedDep3"); - - t.is(require('./modules/idFactoryArityExports').module.id, "dojo/tests/_base/loader/modules/idFactoryArityExports"); - t.is(require('./modules/idFactoryArityExports').id, "idFactoryArityExports"); - t.is(require('./modules/idFactoryArityExports').impliedDep, "impliedDep4"); - } - ]); -}); - diff --git a/tests/_base/loader/modules/full.js b/tests/_base/loader/modules/full.js deleted file mode 100644 index 3ebc20c183..0000000000 --- a/tests/_base/loader/modules/full.js +++ /dev/null @@ -1,5 +0,0 @@ -define("dojo/tests/_base/loader/modules/full", ["./anon", "../a", "./wrapped", "require"], function(anon, a, wrapped, require){ - return { - twiceTheAnswer: a.number + require("../a").number - }; -}); \ No newline at end of file diff --git a/tests/_base/loader/package.html b/tests/_base/loader/package.html deleted file mode 100644 index 8b5363742c..0000000000 --- a/tests/_base/loader/package.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - diff --git a/tests/_base/loader/publishRequireResult.html b/tests/_base/loader/publishRequireResult.html deleted file mode 100644 index ac3601e535..0000000000 --- a/tests/_base/loader/publishRequireResult.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - diff --git a/tests/_base/loader/require/m1.js b/tests/_base/loader/require/m1.js deleted file mode 100644 index aff1a91bc7..0000000000 --- a/tests/_base/loader/require/m1.js +++ /dev/null @@ -1,13 +0,0 @@ -define(["dojo", "dojo/require!dojo/hash,dojo/tests/_base/loader/require/m2"], function(dojo){ - console.log("m1, a plain-old-style synch module wrapped in dojo/require!, evaluate start"); - dojo.provide("dojo.tests._base.loader.require.m1"); - dojo.require("dojo.tests._base.loader.require.m2"); - console.log("the value of m2 in m1 is: " + dojo.tests._base.loader.require.m2); - dojo.tests._base.loader.require.m1 = "this is the value of m1"; - - dojo.ready(function(){ - console.log("ready in m1 called"); - }); - console.log("m1 evaluate end"); -}); - diff --git a/tests/_base/loader/require/m2.js b/tests/_base/loader/require/m2.js deleted file mode 100644 index ec8e048825..0000000000 --- a/tests/_base/loader/require/m2.js +++ /dev/null @@ -1,5 +0,0 @@ -dojo.provide("dojo.tests._base.loader.require.m2"); -console.log("m2, a plain-old-style synch module, evaluated OK"); - -dojo.tests._base.loader.require.m2 = "this is the value of m2"; - diff --git a/tests/_base/loader/requirejs/circular-tests.js b/tests/_base/loader/requirejs/circular-tests.js deleted file mode 100644 index feba2b6b29..0000000000 --- a/tests/_base/loader/requirejs/circular-tests.js +++ /dev/null @@ -1,29 +0,0 @@ -require( - ["require", "two", "funcTwo", "funcThree", "doh"], - function(require, two, funcTwo, funcThree, doh){ - var args = two.doSomething(); - var twoInst = new funcTwo("TWO"); - doh.register( - "circular", - [ - function circular(t){ - t.is("small", args.size); - t.is("redtwo", args.color); - } - ] - ); - doh.run(); - - doh.register( - "circularFunc", - [ - function circularFunc(t){ - t.is("TWO", twoInst.name); - t.is("ONE-NESTED", twoInst.oneName()); - t.is("THREE-THREE_SUFFIX", funcThree("THREE")); - } - ] - ); - doh.run(); - } -); diff --git a/tests/_base/loader/requirejs/circular.html b/tests/_base/loader/requirejs/circular.html deleted file mode 100644 index da171f2e1a..0000000000 --- a/tests/_base/loader/requirejs/circular.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - require.js: Circular Test - - - - - -

require.js: Circular Test

-

Check console for messages

- - diff --git a/tests/_base/loader/requirejs/config.html b/tests/_base/loader/requirejs/config.html deleted file mode 100644 index dcca116b31..0000000000 --- a/tests/_base/loader/requirejs/config.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - require.js: Config Test - - - - - -

require.js: Config Test

-

Tests require being defined as an object with init and ready configuration.

-

Check console for messages.

- - diff --git a/tests/_base/loader/requirejs/dataMain.js b/tests/_base/loader/requirejs/dataMain.js deleted file mode 100644 index b4ef86e126..0000000000 --- a/tests/_base/loader/requirejs/dataMain.js +++ /dev/null @@ -1,16 +0,0 @@ -require({ - baseUrl: "./" - }, - ["require", "simple", "doh"], - function(require, simple, doh){ - doh.register( - "dataMain", - [ - function dataMain(t){ - t.is("blue", simple.color); - } - ] - ); - doh.run(); - } -); diff --git a/tests/_base/loader/requirejs/depoverlap.js b/tests/_base/loader/requirejs/depoverlap.js deleted file mode 100644 index a84ad9f465..0000000000 --- a/tests/_base/loader/requirejs/depoverlap.js +++ /dev/null @@ -1,34 +0,0 @@ -require(["require", "uno", "doh"], -function(require, uno, doh){ - doh.register( - "depoverlap", - [ - function depoverlap(t){ - //First confirm there is only one script tag for each module: - var scripts = document.getElementsByTagName("script"), - i, counts = {}, modName, props, something; - for (var i = scripts.length - 1; i > -1; i--){ - modName = scripts[i].getAttribute("data-requiremodule"); - if (modName){ - if (!(modName in counts)){ - counts[modName] = 0; - } - counts[modName] += 1; - } - } - - //Now that we counted all the modules make sure count - //is always one. - for (prop in counts){ - t.is(1, counts[prop]); - } - - t.is("uno", uno.name); - something = uno.doSomething(); - t.is("dos", something.dosName); - t.is("tres", something.tresName); - } - ] - ); - doh.run(); -}); diff --git a/tests/_base/loader/requirejs/dimple.js b/tests/_base/loader/requirejs/dimple.js deleted file mode 100644 index 9ab8f2ca6d..0000000000 --- a/tests/_base/loader/requirejs/dimple.js +++ /dev/null @@ -1,5 +0,0 @@ -define("dimple", - { - color: "dimple-blue" - } -); diff --git a/tests/_base/loader/requirejs/dos.js b/tests/_base/loader/requirejs/dos.js deleted file mode 100644 index bd33a525c0..0000000000 --- a/tests/_base/loader/requirejs/dos.js +++ /dev/null @@ -1,13 +0,0 @@ -define("dos", - ["tres"], - function(tres){ - return { - name: "dos", - doSomething: function(){ - return { - tresName: tres.name - }; - } - }; - } -); diff --git a/tests/_base/loader/requirejs/exports/assign.js b/tests/_base/loader/requirejs/exports/assign.js deleted file mode 100644 index 144e7ed006..0000000000 --- a/tests/_base/loader/requirejs/exports/assign.js +++ /dev/null @@ -1,5 +0,0 @@ -define("assign", - ["require", "exports", "module"], - function(require, exports, module){ - module.exports = "assign"; -}); diff --git a/tests/_base/loader/requirejs/exports/assign2.js b/tests/_base/loader/requirejs/exports/assign2.js deleted file mode 100644 index 7048b94421..0000000000 --- a/tests/_base/loader/requirejs/exports/assign2.js +++ /dev/null @@ -1,4 +0,0 @@ -define(["module", "exports", "require"], - function(module, exports, require){ - module.exports = "assign2"; -}); diff --git a/tests/_base/loader/requirejs/exports/exports-tests.js b/tests/_base/loader/requirejs/exports/exports-tests.js deleted file mode 100644 index 1e66753e21..0000000000 --- a/tests/_base/loader/requirejs/exports/exports-tests.js +++ /dev/null @@ -1,24 +0,0 @@ -require({ - baseUrl: require.has("host-browser") ? "./" : "./exports/" - }, - ["require", "vanilla", "funcSet", "assign", "assign2", "usethis", - "implicitModule", "simpleReturn", "doh"], - function(require, vanilla, funcSet, assign, assign2, usethis, - implicitModule, simpleReturn, doh){ - doh.register( - "exports", - [ - function exports(t){ - t.is("vanilla", vanilla.name); - t.is("funcSet", funcSet); - t.is("assign", assign); - t.is("assign2", assign2); - //TODO: not implemented in dojo t.is("usethis", usethis.name); - t.is("implicitModule", implicitModule()); - t.is("simpleReturn", simpleReturn()); - } - ] - ); - doh.run(); - } -); diff --git a/tests/_base/loader/requirejs/exports/exports.html b/tests/_base/loader/requirejs/exports/exports.html deleted file mode 100644 index 8b935a1fe6..0000000000 --- a/tests/_base/loader/requirejs/exports/exports.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - require.js: Exports Test - - - - - - -

require.js: Exports Test

-

Check console for messages

- - diff --git a/tests/_base/loader/requirejs/exports/funcSet.js b/tests/_base/loader/requirejs/exports/funcSet.js deleted file mode 100644 index 31e030adf2..0000000000 --- a/tests/_base/loader/requirejs/exports/funcSet.js +++ /dev/null @@ -1,5 +0,0 @@ -define("funcSet", - ["require", "exports", "module"], - function(require, exports, module){ - module.setExports("funcSet"); -}); diff --git a/tests/_base/loader/requirejs/exports/implicitModule.js b/tests/_base/loader/requirejs/exports/implicitModule.js deleted file mode 100644 index c10ed1dfb2..0000000000 --- a/tests/_base/loader/requirejs/exports/implicitModule.js +++ /dev/null @@ -1,7 +0,0 @@ -define(function(require, exports, module){ - if (module.exports){ - module.exports = function(){ - return 'implicitModule'; - }; - } -}); diff --git a/tests/_base/loader/requirejs/exports/usethis.js b/tests/_base/loader/requirejs/exports/usethis.js deleted file mode 100644 index 6f55b75880..0000000000 --- a/tests/_base/loader/requirejs/exports/usethis.js +++ /dev/null @@ -1,3 +0,0 @@ -define(function(require, exports){ - this.name = 'usethis'; -}); diff --git a/tests/_base/loader/requirejs/exports/vanilla.js b/tests/_base/loader/requirejs/exports/vanilla.js deleted file mode 100644 index 1ba1e8a78d..0000000000 --- a/tests/_base/loader/requirejs/exports/vanilla.js +++ /dev/null @@ -1,5 +0,0 @@ -define("vanilla", - ["require", "exports", "module"], - function(require, exports, module){ - exports.name = "vanilla"; -}); diff --git a/tests/_base/loader/requirejs/func.js b/tests/_base/loader/requirejs/func.js deleted file mode 100644 index 11b9396518..0000000000 --- a/tests/_base/loader/requirejs/func.js +++ /dev/null @@ -1,7 +0,0 @@ -define("func", - function(){ - return function(){ - return "You called a function"; - }; - } -); diff --git a/tests/_base/loader/requirejs/funcFour.js b/tests/_base/loader/requirejs/funcFour.js deleted file mode 100644 index e8f71dd392..0000000000 --- a/tests/_base/loader/requirejs/funcFour.js +++ /dev/null @@ -1,14 +0,0 @@ -define("funcFour", - ["require", "funcThree"], - function(require){ - var four = function(arg){ - return "FOUR called with " + arg; - }; - - four.suffix = function(){ - return require("funcThree").suffix(); - }; - - return four; - } -); diff --git a/tests/_base/loader/requirejs/funcOne.js b/tests/_base/loader/requirejs/funcOne.js deleted file mode 100644 index c222045d13..0000000000 --- a/tests/_base/loader/requirejs/funcOne.js +++ /dev/null @@ -1,15 +0,0 @@ -define("funcOne", - ["require", "funcTwo"], - function(require){ - var one = function(name){ - this.name = name; - }; - - one.prototype.getName = function(){ - var inst = new (require("funcTwo"))("-NESTED"); - return this.name + inst.name; - }; - - return one; - } -); diff --git a/tests/_base/loader/requirejs/funcThree.js b/tests/_base/loader/requirejs/funcThree.js deleted file mode 100644 index 18a9314568..0000000000 --- a/tests/_base/loader/requirejs/funcThree.js +++ /dev/null @@ -1,14 +0,0 @@ -define("funcThree", - ["funcFour"], - function(four){ - var three = function(arg){ - return arg + "-" + require("funcFour").suffix(); - }; - - three.suffix = function(){ - return "THREE_SUFFIX"; - }; - - return three; - } -); diff --git a/tests/_base/loader/requirejs/funcTwo.js b/tests/_base/loader/requirejs/funcTwo.js deleted file mode 100644 index 7480511cf1..0000000000 --- a/tests/_base/loader/requirejs/funcTwo.js +++ /dev/null @@ -1,15 +0,0 @@ -define("funcTwo", - ["require", "funcOne"], - function(require){ - var two = function(name){ - this.name = name; - this.one = new (require("funcOne"))("ONE"); - }; - - two.prototype.oneName = function(){ - return this.one.getName(); - }; - - return two; - } -); diff --git a/tests/_base/loader/requirejs/i18n/common.html b/tests/_base/loader/requirejs/i18n/common.html deleted file mode 100644 index b394c6d22a..0000000000 --- a/tests/_base/loader/requirejs/i18n/common.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - require.js: Common I18N Test - - - - - - -

Common i18n bundle test

-

This page tests for an i18n plugin resource that is specified by two different modules.

- - diff --git a/tests/_base/loader/requirejs/i18n/commonA.js b/tests/_base/loader/requirejs/i18n/commonA.js deleted file mode 100644 index 63d8ec6450..0000000000 --- a/tests/_base/loader/requirejs/i18n/commonA.js +++ /dev/null @@ -1,3 +0,0 @@ -define(['i18n!nls/colors'], function(colors){ - return colors.red; -}); diff --git a/tests/_base/loader/requirejs/i18n/commonB.js b/tests/_base/loader/requirejs/i18n/commonB.js deleted file mode 100644 index 334f577614..0000000000 --- a/tests/_base/loader/requirejs/i18n/commonB.js +++ /dev/null @@ -1,3 +0,0 @@ -define(['i18n!nls/colors'], function(colors){ - return colors.blue; -}); diff --git a/tests/_base/loader/requirejs/i18n/i18n.html b/tests/_base/loader/requirejs/i18n/i18n.html deleted file mode 100644 index 128b90d465..0000000000 --- a/tests/_base/loader/requirejs/i18n/i18n.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - require.js: I18N Test - - - - - - -

i18n bundle test

-

This page tests the i18n bundling in require.js. You can change the locale to use by passing locale= or bundle=

- - diff --git a/tests/_base/loader/requirejs/i18n/i18n.js b/tests/_base/loader/requirejs/i18n/i18n.js deleted file mode 100644 index 637089cb50..0000000000 --- a/tests/_base/loader/requirejs/i18n/i18n.js +++ /dev/null @@ -1,4 +0,0 @@ -// alias i18n to dojo/i18n -define(["dojo/i18n"], function(i18n){ - return i18n; -}); \ No newline at end of file diff --git a/tests/_base/loader/requirejs/i18n/nls/colors.js b/tests/_base/loader/requirejs/i18n/nls/colors.js deleted file mode 100644 index 8021cd51d0..0000000000 --- a/tests/_base/loader/requirejs/i18n/nls/colors.js +++ /dev/null @@ -1,9 +0,0 @@ -define({ - "root": { - red: "red", - blue: "blue", - green: "green" - }, - "en-us-surfer": true, - "fr": true -}); diff --git a/tests/_base/loader/requirejs/i18n/nls/en-us-surfer/colors.js b/tests/_base/loader/requirejs/i18n/nls/en-us-surfer/colors.js deleted file mode 100644 index e122d28c10..0000000000 --- a/tests/_base/loader/requirejs/i18n/nls/en-us-surfer/colors.js +++ /dev/null @@ -1,3 +0,0 @@ -define({ - red: "red, dude" -}); diff --git a/tests/_base/loader/requirejs/i18n/nls/fr/colors.js b/tests/_base/loader/requirejs/i18n/nls/fr/colors.js deleted file mode 100644 index c5392fc80a..0000000000 --- a/tests/_base/loader/requirejs/i18n/nls/fr/colors.js +++ /dev/null @@ -1,4 +0,0 @@ -define({ - red: "rouge", - blue: "bleu" -}); diff --git a/tests/_base/loader/requirejs/i18n/testModule.js b/tests/_base/loader/requirejs/i18n/testModule.js deleted file mode 100644 index cbbd7792ec..0000000000 --- a/tests/_base/loader/requirejs/i18n/testModule.js +++ /dev/null @@ -1,4 +0,0 @@ -//A sample module to use in the i18n build test. -define(["i18n!nls/colors"], function(colors){ - var red = colors.red; -}); \ No newline at end of file diff --git a/tests/_base/loader/requirejs/layers/allplugins-text.html b/tests/_base/loader/requirejs/layers/allplugins-text.html deleted file mode 100644 index 2379a7d474..0000000000 --- a/tests/_base/loader/requirejs/layers/allplugins-text.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - require.js: allplugins-text Test - - - - - - -

require.js: allplugins-text Test

-

REQUIRES a built allplugins-require.js file built from build.sh in this directory

-

Check console for messages

- - diff --git a/tests/_base/loader/requirejs/layers/epsilon.js b/tests/_base/loader/requirejs/layers/epsilon.js deleted file mode 100644 index 7a66e57fb5..0000000000 --- a/tests/_base/loader/requirejs/layers/epsilon.js +++ /dev/null @@ -1,5 +0,0 @@ -define("epsilon", - { - name: "epsilon" - } -); diff --git a/tests/_base/loader/requirejs/layers/layer1.js b/tests/_base/loader/requirejs/layers/layer1.js deleted file mode 100644 index 3a70a64bdb..0000000000 --- a/tests/_base/loader/requirejs/layers/layer1.js +++ /dev/null @@ -1,31 +0,0 @@ -//Example layer file. - -define("alpha", - ["beta", "gamma"], - function(beta, gamma){ - return { - name: "alpha", - betaName: beta.name - }; - } -); - -define("beta", - ["gamma"], - function(gamma){ - return { - name: "beta", - gammaName: gamma.name - }; - } -); - -define("gamma", - ["epsilon"], - function(epsilon){ - return { - name: "gamma", - epsilonName: epsilon.name - }; - } -); diff --git a/tests/_base/loader/requirejs/layers/layers.html b/tests/_base/loader/requirejs/layers/layers.html deleted file mode 100644 index a621a7d1c5..0000000000 --- a/tests/_base/loader/requirejs/layers/layers.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - require.js: Layers Test - - - - - - -

require.js: Layers Test

-

Check console for messages

- - diff --git a/tests/_base/loader/requirejs/map.js b/tests/_base/loader/requirejs/map.js deleted file mode 100644 index e33f962e5e..0000000000 --- a/tests/_base/loader/requirejs/map.js +++ /dev/null @@ -1,7 +0,0 @@ -define("map", - function(){ - return { - name: "map" - }; - } -); diff --git a/tests/_base/loader/requirejs/one.js b/tests/_base/loader/requirejs/one.js deleted file mode 100644 index b02ecee39d..0000000000 --- a/tests/_base/loader/requirejs/one.js +++ /dev/null @@ -1,13 +0,0 @@ -define("one", - ["require", "two"], - function(require){ - var one = { - size: "large", - doSomething: function(){ - return require("two"); - } - }; - - return one; - } -); diff --git a/tests/_base/loader/requirejs/paths/first.js/first.js b/tests/_base/loader/requirejs/paths/first.js/first.js deleted file mode 100644 index 2d9ed69554..0000000000 --- a/tests/_base/loader/requirejs/paths/first.js/first.js +++ /dev/null @@ -1,8 +0,0 @@ -globalCounter += 1; - -define(['./second'], function(second){ - globalCounter += 1; - return { - load: second - }; -}); diff --git a/tests/_base/loader/requirejs/paths/first.js/second.js b/tests/_base/loader/requirejs/paths/first.js/second.js deleted file mode 100644 index c3fdb16019..0000000000 --- a/tests/_base/loader/requirejs/paths/first.js/second.js +++ /dev/null @@ -1,8 +0,0 @@ -define(['./first'], function(){ - return function(id, parentRequire, loaded){ - loaded({ - name: 'first', - secondName: 'second' - }); - }; -}); diff --git a/tests/_base/loader/requirejs/paths/paths.html b/tests/_base/loader/requirejs/paths/paths.html deleted file mode 100644 index 03cd742633..0000000000 --- a/tests/_base/loader/requirejs/paths/paths.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - require.js: paths Test - - - - - - -

require.js: paths Test

-

Check console for messages

- - diff --git a/tests/_base/loader/requirejs/relative/foo/bar/one.js b/tests/_base/loader/requirejs/relative/foo/bar/one.js deleted file mode 100644 index 88ee163cc8..0000000000 --- a/tests/_base/loader/requirejs/relative/foo/bar/one.js +++ /dev/null @@ -1,10 +0,0 @@ -define("foo/bar/one", - ["require", "./two", "../three", "text!./message.txt"], - function(require, two, three, message){ - return { - name: "one", - twoName: two.name, - threeName: three.name, - message: message - }; -}); diff --git a/tests/_base/loader/requirejs/relative/foo/bar/two.js b/tests/_base/loader/requirejs/relative/foo/bar/two.js deleted file mode 100644 index 521822a16c..0000000000 --- a/tests/_base/loader/requirejs/relative/foo/bar/two.js +++ /dev/null @@ -1,3 +0,0 @@ -define("foo/bar/two", { - name: "two" -}); diff --git a/tests/_base/loader/requirejs/relative/foo/three.js b/tests/_base/loader/requirejs/relative/foo/three.js deleted file mode 100644 index 36aa2fcb2b..0000000000 --- a/tests/_base/loader/requirejs/relative/foo/three.js +++ /dev/null @@ -1,3 +0,0 @@ -define("foo/three", { - name: "three" -}); diff --git a/tests/_base/loader/requirejs/relative/relative-tests.js b/tests/_base/loader/requirejs/relative/relative-tests.js deleted file mode 100644 index 773dc55f9e..0000000000 --- a/tests/_base/loader/requirejs/relative/relative-tests.js +++ /dev/null @@ -1,23 +0,0 @@ -require({ - baseUrl: require.has("host-browser") ? "./" : "./relative/", - paths: { - text: "../../text" - } - }, - ["require", "foo/bar/one", "doh"], - function(require, one, doh){ - doh.register( - "relative", - [ - function relative(t){ - t.is("one", one.name); - t.is("two", one.twoName); - t.is("three", one.threeName); - t.is("hello world", one.message.replace(/\r|\n/g, "")); - } - ] - ); - - doh.run(); - } -); diff --git a/tests/_base/loader/requirejs/relative/relative.html b/tests/_base/loader/requirejs/relative/relative.html deleted file mode 100644 index e232440288..0000000000 --- a/tests/_base/loader/requirejs/relative/relative.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - require.js: Relative Module Names Test - - - - - - - -

require.js: Relative Module Names Test

-

Check console for messages

- - diff --git a/tests/_base/loader/requirejs/requirejs-setup.js b/tests/_base/loader/requirejs/requirejs-setup.js deleted file mode 100644 index d4fb1ff3bf..0000000000 --- a/tests/_base/loader/requirejs/requirejs-setup.js +++ /dev/null @@ -1,32 +0,0 @@ -var dohArgs= (window.parent.doh && window.parent.doh.dohArgs) || dohArgs || { - async:1, - baseUrl:"." -}; -var requirejsArgs= requirejsArgs || { - dojoLocation:"../../../.." -}; -var dojoConfig= { - async:dohArgs.async, - baseUrl:dohArgs.baseUrl || ".", - packages:[{ - name:'dojo', - location:requirejsArgs.dojoLocation - },{ - name:'doh', - location:requirejsArgs.dojoLocation + '/../util/doh' - },{ - name:'dojox', - location:requirejsArgs.dojoLocation + '/../dojox' - }], - has:{ - "dojo-requirejs-api":1, - "config-tlmSiblingOfDojo":0 - } -}; -if(typeof require!="undefined"){ - (function(){ - for(var p in require){ - dojoConfig[p]= require[p]; - } - })(); -} diff --git a/tests/_base/loader/requirejs/simple-badbase.html b/tests/_base/loader/requirejs/simple-badbase.html deleted file mode 100644 index 8cf08e2f56..0000000000 --- a/tests/_base/loader/requirejs/simple-badbase.html +++ /dev/null @@ -1,55 +0,0 @@ - - - require.js: Simple Bad Base Test - - - - - - -

require.js: Simple Test

-

You may need to change the IP address used for this test for it to work correctly.

-

Check console for messages

- - diff --git a/tests/_base/loader/requirejs/simple-nohead.html b/tests/_base/loader/requirejs/simple-nohead.html deleted file mode 100644 index 1772e7846c..0000000000 --- a/tests/_base/loader/requirejs/simple-nohead.html +++ /dev/null @@ -1,24 +0,0 @@ - - -

require.js: Simple Test, no head tag

-

Check console for messages

- - - - diff --git a/tests/_base/loader/requirejs/simple-tests.js b/tests/_base/loader/requirejs/simple-tests.js deleted file mode 100644 index 0b8bd647f7..0000000000 --- a/tests/_base/loader/requirejs/simple-tests.js +++ /dev/null @@ -1,23 +0,0 @@ -require({ - baseUrl: "./" - }, - ["require", "map", "simple", "dimple", "func", "doh"], - function(require, map, simple, dimple, func, doh){ - doh.register( - "simple", - [ - function colors(t){ - t.is("map", map.name); - t.is("blue", simple.color); - t.is("dimple-blue", dimple.color); - t.is("You called a function", func()); - } - ] - ); - - //In rhino there is no more simple tests, but in web browser there is. - if (typeof moreSimpleTests === 'undefined'){ - doh.run(); - } - } -); diff --git a/tests/_base/loader/requirejs/simple.html b/tests/_base/loader/requirejs/simple.html deleted file mode 100644 index 07e1b501f6..0000000000 --- a/tests/_base/loader/requirejs/simple.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - require.js: Simple Test - - - - - - - -

require.js: Simple Test

-

Check console for messages

- - diff --git a/tests/_base/loader/requirejs/simple.js b/tests/_base/loader/requirejs/simple.js deleted file mode 100644 index 2236cd9546..0000000000 --- a/tests/_base/loader/requirejs/simple.js +++ /dev/null @@ -1,7 +0,0 @@ -define("simple", - function(){ - return { - color: "blue" - }; - } -); diff --git a/tests/_base/loader/requirejs/text/local.js b/tests/_base/loader/requirejs/text/local.js deleted file mode 100644 index 2a39306721..0000000000 --- a/tests/_base/loader/requirejs/text/local.js +++ /dev/null @@ -1,5 +0,0 @@ -define(['text!./resources/local.html'], function(localHtml){ - return { - localHtml: localHtml - }; -}); diff --git a/tests/_base/loader/requirejs/text/subwidget.js b/tests/_base/loader/requirejs/text/subwidget.js deleted file mode 100644 index 12e0fe708e..0000000000 --- a/tests/_base/loader/requirejs/text/subwidget.js +++ /dev/null @@ -1,10 +0,0 @@ -define("subwidget", - ["text!subwidget.html!strip", "text!subwidget2.html"], - function(template, template2){ - return { - name: "subwidget", - template: template, - template2: template2 - }; - } -); diff --git a/tests/_base/loader/requirejs/text/text.html b/tests/_base/loader/requirejs/text/text.html deleted file mode 100644 index a217649fed..0000000000 --- a/tests/_base/loader/requirejs/text/text.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - require.js: Text Test - - - - - - -

require.js: Text Test

-

Test for usage of text! require plugin. -

Check console for messages

- - diff --git a/tests/_base/loader/requirejs/text/textOnly.html b/tests/_base/loader/requirejs/text/textOnly.html deleted file mode 100644 index 6ab65d18a9..0000000000 --- a/tests/_base/loader/requirejs/text/textOnly.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - require.js: Text Test - - - - - - -

require.js: Text Test

-

Test for usage of text! require plugin. -

Check console for messages

- - diff --git a/tests/_base/loader/requirejs/text/widget.html b/tests/_base/loader/requirejs/text/widget.html deleted file mode 100644 index f0e2820a41..0000000000 --- a/tests/_base/loader/requirejs/text/widget.html +++ /dev/null @@ -1 +0,0 @@ -

This is a widget!

I am in a widget

diff --git a/tests/_base/loader/requirejs/text/widget.js b/tests/_base/loader/requirejs/text/widget.js deleted file mode 100644 index d57208bef0..0000000000 --- a/tests/_base/loader/requirejs/text/widget.js +++ /dev/null @@ -1,11 +0,0 @@ -define("widget", - ["subwidget", "text!widget.html"], - function(subwidget, template){ - return { - subWidgetName: subwidget.name, - subWidgetTemplate: subwidget.template, - subWidgetTemplate2: subwidget.template2, - template: template - }; - } -); diff --git a/tests/_base/loader/requirejs/tres.js b/tests/_base/loader/requirejs/tres.js deleted file mode 100644 index cefcc81ef9..0000000000 --- a/tests/_base/loader/requirejs/tres.js +++ /dev/null @@ -1,7 +0,0 @@ -define("tres", - function(){ - return { - name: "tres" - }; - } -); diff --git a/tests/_base/loader/requirejs/two.js b/tests/_base/loader/requirejs/two.js deleted file mode 100644 index 57b499188a..0000000000 --- a/tests/_base/loader/requirejs/two.js +++ /dev/null @@ -1,12 +0,0 @@ -define("two", - ["require", "one"], - function(require, one){ - return { - size: "small", - color: "redtwo", - doSomething: function(){ - return require("one").doSomething(); - } - }; - } -); diff --git a/tests/_base/loader/requirejs/uniques/one.js b/tests/_base/loader/requirejs/uniques/one.js deleted file mode 100644 index b6a9cda60c..0000000000 --- a/tests/_base/loader/requirejs/uniques/one.js +++ /dev/null @@ -1,8 +0,0 @@ -define(function(require){ - return { - name: "one", - threeName: require("three").name, - threeName2: require("three").name - }; -}); - diff --git a/tests/_base/loader/requirejs/uniques/three.js b/tests/_base/loader/requirejs/uniques/three.js deleted file mode 100644 index 3d52f9e1a1..0000000000 --- a/tests/_base/loader/requirejs/uniques/three.js +++ /dev/null @@ -1,3 +0,0 @@ -define("three", { - name: "three" -}); diff --git a/tests/_base/loader/requirejs/uniques/two.js b/tests/_base/loader/requirejs/uniques/two.js deleted file mode 100644 index c21bce6ed3..0000000000 --- a/tests/_base/loader/requirejs/uniques/two.js +++ /dev/null @@ -1,8 +0,0 @@ -define("two", ["one", "three", "one"], function(one, three, one2){ - return { - name: "two", - oneName: one.name, - oneName2: one2.name, - threeName: three.name - }; -}); diff --git a/tests/_base/loader/requirejs/uniques/uniques.html b/tests/_base/loader/requirejs/uniques/uniques.html deleted file mode 100644 index 70999000a7..0000000000 --- a/tests/_base/loader/requirejs/uniques/uniques.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - require.js: Unique Dependency Test - - - - - - -

require.js: Unique Dependency Test

-

Make sure if a dependency is listed more than once code still operates correctly.

-

Check console for messages

- - diff --git a/tests/_base/loader/requirejs/uno.js b/tests/_base/loader/requirejs/uno.js deleted file mode 100644 index 93681b8257..0000000000 --- a/tests/_base/loader/requirejs/uno.js +++ /dev/null @@ -1,14 +0,0 @@ -define("uno", - ["dos", "tres"], - function(dos, tres){ - return { - name: "uno", - doSomething: function(){ - return { - dosName: dos.name, - tresName: tres.name - }; - } - }; - } -); diff --git a/tests/_base/loader/requirejs/urlfetch/one.js b/tests/_base/loader/requirejs/urlfetch/one.js deleted file mode 100644 index 92184aeb58..0000000000 --- a/tests/_base/loader/requirejs/urlfetch/one.js +++ /dev/null @@ -1,3 +0,0 @@ -var one = { - name: "one" -}; diff --git a/tests/_base/loader/requirejs/urlfetch/three.js b/tests/_base/loader/requirejs/urlfetch/three.js deleted file mode 100644 index a7ca140e99..0000000000 --- a/tests/_base/loader/requirejs/urlfetch/three.js +++ /dev/null @@ -1,10 +0,0 @@ -define("three", { - name: "three" -}); - -define("four", ["three"], function(three){ - return { - name: "four", - threeName: "three" - }; -}); diff --git a/tests/_base/loader/requirejs/urlfetch/two.js b/tests/_base/loader/requirejs/urlfetch/two.js deleted file mode 100644 index 309b20bc30..0000000000 --- a/tests/_base/loader/requirejs/urlfetch/two.js +++ /dev/null @@ -1,10 +0,0 @@ -define("one", { - name: "one" -}); - -define("two", ["one"], function(one){ - return { - name: "two", - oneName: "one" - }; -}); diff --git a/tests/_base/loader/requirejs/urlfetch/urlfetch.html b/tests/_base/loader/requirejs/urlfetch/urlfetch.html deleted file mode 100644 index 328c843dad..0000000000 --- a/tests/_base/loader/requirejs/urlfetch/urlfetch.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - require.js: urlFetch Mapping Test - - - - - - -

require.js: urlFetch Mapping Test

-

Make sure that multiple modules mapped to the same URL only get - the URL fetched once.

-

Check console for messages

- - diff --git a/tests/_base/loader/syncModule.js b/tests/_base/loader/syncModule.js deleted file mode 100644 index bf3212dbac..0000000000 --- a/tests/_base/loader/syncModule.js +++ /dev/null @@ -1,9 +0,0 @@ -if (typeof dojoCdnTestLog=="undefined"){ - dojoCdnTestLog= []; -} -dojoCdnTestLog.push("in-dojo.tests._base.loader.syncModule"); -dojo.provide("dojo.tests._base.loader.syncModule"); -dojo.declare("dojo.tests._base.loader.syncModule", null, {}); -dojo.tests._base.loader.syncModule.status= "OK"; -dojo.require("dojo.tests._base.loader.syncModuleDep"); -dojoCdnTestLog.push("out-dojo.tests._base.loader.syncModule"); diff --git a/tests/_base/loader/syncModule1.js b/tests/_base/loader/syncModule1.js deleted file mode 100644 index 39e8ce73e0..0000000000 --- a/tests/_base/loader/syncModule1.js +++ /dev/null @@ -1,5 +0,0 @@ -dojoCdnTestLog.push("in-dojo.tests._base.loader.syncModule1"); -dojo.provide("dojo.tests._base.loader.syncModule1"); -dojo.tests._base.loader.syncModule1.status= "OK"; -dojo.require("dojo.tests._base.loader.syncModuleDep1"); -dojoCdnTestLog.push("out-dojo.tests._base.loader.syncModule1"); diff --git a/tests/_base/loader/syncModule2.js b/tests/_base/loader/syncModule2.js deleted file mode 100644 index b2e1430fa4..0000000000 --- a/tests/_base/loader/syncModule2.js +++ /dev/null @@ -1,5 +0,0 @@ -dojoCdnTestLog.push("in-dojo.tests._base.loader.syncModule2"); -dojo.provide("dojo.tests._base.loader.syncModule"); -dojo.tests._base.loader.syncModule.status= "OK"; -dojo.require("dojo.tests._base.loader.syncModuleDep"); -dojoCdnTestLog.push("out-dojo.tests._base.loader.syncModule2"); diff --git a/tests/_base/loader/syncModuleDep.js b/tests/_base/loader/syncModuleDep.js deleted file mode 100644 index 496041a6be..0000000000 --- a/tests/_base/loader/syncModuleDep.js +++ /dev/null @@ -1,4 +0,0 @@ -dojoCdnTestLog.push("in-dojo.tests._base.loader.syncModuleDep"); -dojo.provide("dojo.tests._base.loader.syncModuleDep"); -dojo.tests._base.loader.syncModuleDep.status= "OK"; -dojoCdnTestLog.push("out-dojo.tests._base.loader.syncModuleDep"); diff --git a/tests/_base/loader/syncModuleDep1.js b/tests/_base/loader/syncModuleDep1.js deleted file mode 100644 index 82d11e7008..0000000000 --- a/tests/_base/loader/syncModuleDep1.js +++ /dev/null @@ -1,4 +0,0 @@ -dojoCdnTestLog.push("in-dojo.tests._base.loader.syncModuleDep1"); -dojo.provide("dojo.tests._base.loader.syncModuleDep1"); -dojo.tests._base.loader.syncModuleDep1.status= "OK"; -dojoCdnTestLog.push("out-dojo.tests._base.loader.syncModuleDep1"); diff --git a/tests/_base/loader/syncModuleDep2.js b/tests/_base/loader/syncModuleDep2.js deleted file mode 100644 index 0d7f6b6c30..0000000000 --- a/tests/_base/loader/syncModuleDep2.js +++ /dev/null @@ -1,4 +0,0 @@ -dojoCdnTestLog.push("in-dojo.tests._base.loader.syncModuleDep2"); -dojo.provide("dojo.tests._base.loader.syncModuleDep"); -dojo.tests._base.loader.syncModuleDep.status= "OK"; -dojoCdnTestLog.push("out-dojo.tests._base.loader.syncModuleDep2"); diff --git a/tests/_base/loader/xdomain/local1-browser-skip.js b/tests/_base/loader/xdomain/local1-browser-skip.js deleted file mode 100644 index 32cb335568..0000000000 --- a/tests/_base/loader/xdomain/local1-browser-skip.js +++ /dev/null @@ -1 +0,0 @@ -xdomainExecSequence.push("dojo.tests._base.loader.xdomain.local1-browser-skip-1"); diff --git a/tests/_base/loader/xdomain/local1-browser.js b/tests/_base/loader/xdomain/local1-browser.js deleted file mode 100644 index bb1fd4b726..0000000000 --- a/tests/_base/loader/xdomain/local1-browser.js +++ /dev/null @@ -1,4 +0,0 @@ -xdomainExecSequence.push("dojo.tests._base.loader.xdomain.local1-browser-1"); -var x1= dojo.provide("dojo.tests._base.loader.xdomain.local1-browser"); -dojo.getObject("dojo.tests._base.loader.xdomain.local1-browser").status= "dojo.tests._base.loader.xdomain.local1-browser-ok"; -xdomainExecSequence.push("dojo.tests._base.loader.xdomain.local1-browser-2"); diff --git a/tests/_base/loader/xdomain/local1-dep.js b/tests/_base/loader/xdomain/local1-dep.js deleted file mode 100644 index 08a2b034e9..0000000000 --- a/tests/_base/loader/xdomain/local1-dep.js +++ /dev/null @@ -1,4 +0,0 @@ -xdomainExecSequence.push("local1-dep-1"); -var x1= dojo.provide("dojo.tests._base.loader.xdomain.local1-dep"); -dojo.getObject("dojo.tests._base.loader.xdomain.local1-dep").status= "dojo.tests._base.loader.xdomain.local1-dep-ok"; -xdomainExecSequence.push("local1-dep-2"); diff --git a/tests/_base/loader/xdomain/local1-runtimeDependent1.js b/tests/_base/loader/xdomain/local1-runtimeDependent1.js deleted file mode 100644 index d52720d5c3..0000000000 --- a/tests/_base/loader/xdomain/local1-runtimeDependent1.js +++ /dev/null @@ -1,4 +0,0 @@ -xdomainExecSequence.push("dojo.tests._base.loader.xdomain.local1-runtimeDependent1-1"); -var x1= dojo.provide("dojo.tests._base.loader.xdomain.local1-runtimeDependent1"); -dojo.getObject("dojo.tests._base.loader.xdomain.local1-runtimeDependent1").status= "dojo.tests._base.loader.xdomain.local1-runtimeDependent1-ok"; -xdomainExecSequence.push("dojo.tests._base.loader.xdomain.local1-runtimeDependent1-2"); diff --git a/tests/_base/loader/xdomain/local1.js b/tests/_base/loader/xdomain/local1.js deleted file mode 100644 index a0a31683d1..0000000000 --- a/tests/_base/loader/xdomain/local1.js +++ /dev/null @@ -1,82 +0,0 @@ -xdomainExecSequence.push("local1-1"); - -// multiple dojo.provides should define multiple modules -var x1= dojo.provide("dojo.tests._base.loader.xdomain.local1"); -var x2= dojo.provide("dojo.tests._base.loader.xdomain.local1SteppedOn"); -var x3= dojo.provide("dojo.tests._base.loader.xdomain.local1NotSteppedOn"); -xdomainExecSequence.push("local1-2"); - -// this puts the loader in xd loading mode -dojo.require("dojo.cookie"); -xdomainExecSequence.push("local1-3"); - -// load a not xd module while in xd loading mode -dojo.require("dojo.tests._base.loader.xdomain.local1-dep"); -xdomainExecSequence.push("local1-4"); - -// a loadInit that makes a calculation a later requireIf depends upon -dojo.loadInit(function(){ - xdomainExecSequence.push("local1-5"); - var dependentModule= dojo.getObject("dojo.tests._base.loader.xdomain.local1-runtimeDependent", true); - dependentModule.choice = 1; -}); -xdomainExecSequence.push("local1-6"); - -// a couple of requireIf's, only one of which should result in a module being loaded -dojo.requireIf(dojo.getObject("dojo.tests._base.loader.xdomain.local1-runtimeDependent").choice==1, "dojo.tests._base.loader.xdomain.local1-runtimeDependent1"); -xdomainExecSequence.push("local1-7"); -dojo.requireIf(dojo.getObject("dojo.tests._base.loader.xdomain.local1-runtimeDependent").choice==2, "dojo.tests._base.loader.xdomain.local1-runtimeDependent2"); -xdomainExecSequence.push("local1-8"); - -// platformRequire test -dojo.platformRequire({ - browser:[ - "dojo.tests._base.loader.xdomain.local1-browser", - ["dojo.tests._base.loader.xdomain.local1-browser-skip", true] - ] -}); - -// these are xd bundles which should be loaded async -xdomainExecSequence.push("local1-9"); -dojo.requireLocalization("dojo", "colors"); -xdomainExecSequence.push("local1-10"); -dojo.requireLocalization("dojo", "colors", "fr"); -xdomainExecSequence.push("local1-11"); -dojo.requireLocalization("dojo", "colors"); -xdomainExecSequence.push("local1-12"); - -// these are not xd bundles which should be loaded sync -dojo.requireLocalization("dojo.tests._base.loader", "amdBundle"); -xdomainExecSequence.push("local1-13"); -dojo.requireLocalization("dojo.tests._base.loader", "amdBundle", "ab"); -xdomainExecSequence.push("local1-14"); -dojo.requireLocalization("dojo.tests._base.loader", "syncBundle"); -xdomainExecSequence.push("local1-15"); -dojo.requireLocalization("dojo.tests._base.loader", "syncBundle", "ab"); -xdomainExecSequence.push("local1-16"); - -// another loadInit; it should be executed immediately after the first load init -dojo.loadInit(function(){ - xdomainExecSequence.push("local1-17"); - var dependentModule= dojo.getObject("dojo.tests._base.loader.xdomain.local1-runtimeDependent"); - dependentModule.status = "ok"; -}); -xdomainExecSequence.push("local1-18"); - -xdomainLog.push( -1, (x1===dojo.tests._base.loader.xdomain.local1), -2, (x1===dojo.getObject("dojo.tests._base.loader.xdomain.local1")), -3, (x2===dojo.tests._base.loader.xdomain.local1SteppedOn), -4, (x2===dojo.getObject("dojo.tests._base.loader.xdomain.local1SteppedOn")), -5, (x3===dojo.tests._base.loader.xdomain.local1NotSteppedOn), -6, (x3===dojo.getObject("dojo.tests._base.loader.xdomain.local1NotSteppedOn"))); - -x3.status = "local1NotSteppedOn"; -dojo.tests._base.loader.xdomain.local1= "stepOnLocal1"; -dojo.tests._base.loader.xdomain.local1SteppedOn= "stepOn1SteppedOn"; - -xdomainLog.push( -7, ("stepOnLocal1"===dojo.tests._base.loader.xdomain.local1), -8, ("stepOnLocal1"===dojo.getObject("dojo.tests._base.loader.xdomain.local1")), -9, ("stepOn1SteppedOn"===dojo.tests._base.loader.xdomain.local1SteppedOn), -10, ("stepOn1SteppedOn"===dojo.getObject("dojo.tests._base.loader.xdomain.local1SteppedOn"))); diff --git a/tests/_base/loader/xdomain/local2.js b/tests/_base/loader/xdomain/local2.js deleted file mode 100644 index 7b8770c011..0000000000 --- a/tests/_base/loader/xdomain/local2.js +++ /dev/null @@ -1,13 +0,0 @@ -xdomainExecSequence.push("local2-1"); -dojo.provide("dojo.tests._base.loader.xdomain.local2"); -xdomainExecSequence.push("local2-2"); - -// put the loader in xdomain loading mode -dojo.require("dojo.hash"); -xdomainExecSequence.push("local2-3"); - -// load a local module that will have to be transformed -dojo.require("dojo.tests._base.loader.xdomain.local3"); -xdomainExecSequence.push("local2-4"); - -dojo.tests._base.loader.xdomain.local2.status = "local2-loaded"; \ No newline at end of file diff --git a/tests/_base/loader/xdomain/local3.js b/tests/_base/loader/xdomain/local3.js deleted file mode 100644 index 940aaf5812..0000000000 --- a/tests/_base/loader/xdomain/local3.js +++ /dev/null @@ -1,10 +0,0 @@ -xdomainExecSequence.push("local3-1"); -dojo.provide("dojo.tests._base.loader.xdomain.local3"); -xdomainExecSequence.push("local3-2"); - -// load a local module that will have to be transformed -//debugger; -dojo.require("dojo.tests._base.loader.xdomain.local1"); -xdomainExecSequence.push("local3-3"); - -dojo.tests._base.loader.xdomain.local3.status = "local3-loaded"; diff --git a/tests/_base/loader/xdomain/xdomain.html b/tests/_base/loader/xdomain/xdomain.html deleted file mode 100644 index 9ca77a6e8e..0000000000 --- a/tests/_base/loader/xdomain/xdomain.html +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - - -

check console

-

This test loads a not-xdomain module that contains a xdomain and a not-xdomain module

- - diff --git a/tests/_base/query.js b/tests/_base/query.js deleted file mode 100644 index d50c391061..0000000000 --- a/tests/_base/query.js +++ /dev/null @@ -1,6 +0,0 @@ -define(["doh/main", "require"], function(doh, require){ - if(doh.isBrowser){ - doh.register("tests._base.query", require.toUrl("./query.html"), 60000); // tests dojo.query() back-compat shim - doh.register("tests._base.NodeList", require.toUrl("./NodeList.html"), 60000); - } -}); diff --git a/tests/_base/window.html b/tests/_base/window.html deleted file mode 100644 index 86a49e726e..0000000000 --- a/tests/_base/window.html +++ /dev/null @@ -1,106 +0,0 @@ - - - withDoc test - - - - - - diff --git a/tests/_base/window.js b/tests/_base/window.js deleted file mode 100644 index 25d9dd7542..0000000000 --- a/tests/_base/window.js +++ /dev/null @@ -1,5 +0,0 @@ -define(["doh/main", "require"], function(doh, require){ - if(doh.isBrowser){ - doh.register("tests._base.window", require.toUrl("./window.html"), 15000); - } -}); diff --git a/tests/_base/window_iframe_quirks.html b/tests/_base/window_iframe_quirks.html deleted file mode 100644 index 3d5ea5c6f6..0000000000 --- a/tests/_base/window_iframe_quirks.html +++ /dev/null @@ -1,11 +0,0 @@ - - - Quirks mode frame - - diff --git a/tests/_base/window_iframe_standards.html b/tests/_base/window_iframe_standards.html deleted file mode 100644 index 88abebc4e1..0000000000 --- a/tests/_base/window_iframe_standards.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - Standards mode frame - - - - Standards mode frame - - diff --git a/tests/_base/xhr.html b/tests/_base/xhr.html deleted file mode 100644 index 6eff09ebdd..0000000000 --- a/tests/_base/xhr.html +++ /dev/null @@ -1,544 +0,0 @@ - - - - testing form and xhr utils - - - - - - -
- - - -
-
- - - - - - - File input should not show up in formToObject. -
-
- -
-
- -
-
- - - -
-
- - - - -
- - - diff --git a/tests/_base/xhr.js b/tests/_base/xhr.js deleted file mode 100644 index b7049c238b..0000000000 --- a/tests/_base/xhr.js +++ /dev/null @@ -1,5 +0,0 @@ -define(["doh/main", "require"], function(doh, require){ - if(doh.isBrowser){ - doh.register("tests._base.xhr", require.toUrl("./xhr.html"), 60000); - } -}); diff --git a/tests/_base/xhr.xml b/tests/_base/xhr.xml deleted file mode 100644 index 9f86784bb7..0000000000 --- a/tests/_base/xhr.xml +++ /dev/null @@ -1,2 +0,0 @@ - -blarg diff --git a/tests/_base/xhrDummyMethod.php b/tests/_base/xhrDummyMethod.php deleted file mode 100644 index c9206fe89a..0000000000 --- a/tests/_base/xhrDummyMethod.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/tests/aspect.js b/tests/aspect.js deleted file mode 100644 index 460d558417..0000000000 --- a/tests/aspect.js +++ /dev/null @@ -1,211 +0,0 @@ -define(["dojo/aspect"], function(aspect){ - -doh.register("tests.aspect", - [ - function before(t){ - var order = []; - var obj = { - method: function(a){ - order.push(a); - } - }; - var signal = aspect.before(obj, "method", function(a){ - order.push(a); - return [a+1]; - }); - obj.method(0); - obj.method(2); - var signal2 = aspect.before(obj, "method", function(a){ - order.push(a); - return [a+1]; - }); - obj.method(4); - signal.remove(); - obj.method(7); - signal2.remove(); - obj.method(9); - t.is(order, [0,1,2,3,4,5,6,7,8,9]); - }, - - function after(t){ - var order = []; - var obj = { - method: function(a){ - order.push(a); - return a+1; - } - }; - var signal = aspect.after(obj, "method", function(a){ - order.push(0); - return a+1; - }); - obj.method(0); // 0, 0 - var signal2 = aspect.after(obj, "method", function(a){ - order.push(a); - }); - obj.method(3); // 3, 0, 5 - var signal3 = aspect.after(obj, "method", function(a){ - order.push(3); - }, true); - obj.method(3); // 3, 0, 5, 3 - signal2.remove(); - obj.method(6); // 6, 0, 3 - signal3.remove(); - var signal4 = aspect.after(obj, "method", function(a){ - order.push(4); - }, true); - signal.remove(); - obj.method(7); // 7, 4 - signal4.remove(); - var signal5 = aspect.after(obj, "method", function(a){ - order.push(a); - aspect.after(obj, "method", function(a){ - order.push(a); - }); - aspect.after(obj, "method", function(a){ - order.push(a); - }).remove(); - return a+1; - }); - var signal6 = aspect.after(obj, "method", function(a){ - order.push(a); - return a+2; - }); - obj.method(8); // 8, 9, 10 - obj.method(8); // 8, 9, 10, 12 - t.is([0, 0, 3, 0, 5, 3, 0, 5, 3, 6, 0, 3, 7, 4, 8, 9, 10, 8, 9, 10, 12], order); - obj = {method: function(){}}; - aspect.after(obj, "method", function(){ - return false; - }, true); - t.t(obj.method() === false); - }, - function afterMultiple(t){ - var order = []; - obj = { - foo: function(){} - }; - aspect.after(obj, "foo", function(){order.push(1)}); - aspect.after(obj, "foo", function(){order.push(2)}); - aspect.after(obj, "foo", function(){order.push(3)}); - obj.foo(); - t.is([1,2,3], order); - }, - function around(t){ - var order = []; - var obj = { - method: function(a){ - order.push(a); - return a+1; - } - }; - var beforeSignal = aspect.before(obj, "method", function(a){ - order.push(a); - }); - var signal = aspect.around(obj, "method", function(original){ - return function(a){ - a= a + 1; - a = original(a); - order.push(a); - return a+1; - }; - }); - order.push(obj.method(0)); - obj.method(4); - t.is(order, [0,1,2,3,4,5,6]); - }, - function around2(t){ - var order = []; - var obj = { - method: function(a){ - order.push(1); - } - }; - var signal1 = aspect.around(obj, "method", function(original){ - return function(a){ - original(); - order.push(2); - }; - }); - var signal2 = aspect.around(obj, "method", function(original){ - return function(a){ - original(); - order.push(3); - }; - }); - var signal3 = aspect.around(obj, "method", function(original){ - return function(a){ - original(); - order.push(4); - }; - }); - signal2.remove(); - obj.method(); - t.is(order, [1,2,4]); - }, - function multipleRemove(t){ - var foo = {bar: function(){}}; - var order = []; - var signal1 = aspect.after(foo, "bar", function() { - order.push(1); - }); - - var signal2 = aspect.after(foo, "bar", function() { - order.push(2); - }); - - var signal3 = aspect.after(foo, "bar", function() { - order.push(3); - }); - - // This should execute all 3 callbacks - foo.bar(); - - signal2.remove(); - signal3.remove(); - - // Ideally signal2 should not be removed again, but can happen if the app - // fails to clear its state. - signal2.remove(); - - // This should execute only the first callback, but notice that the third callback - // is executed as well - foo.bar(); - t.is(order, [1,2,3,1]); - }, - function delegation(t){ - var order = []; - var proto = { - foo: function(x){ - order.push(x); - return x; - }, - bar: function(){ - } - }; - aspect.after(proto, "foo", function(x){ - order.push(x + 1); - return x; - }); - aspect.after(proto, "bar", function(x){ - t.t(this.isInstance); - }); - proto.foo(0); - function Class(){ - } - Class.prototype = proto; - var instance = new Class(); - instance.isInstance = true; - aspect.after(instance, "foo", function(x){ - order.push(x + 2); - return x; - }); - instance.bar(); - instance.foo(2); - proto.foo(5); - t.is(order, [0,1,2,3,4,5,6]); - } - ] -); - -}); diff --git a/tests/back-hash.js b/tests/back-hash.js deleted file mode 100644 index 2fe7ab6238..0000000000 --- a/tests/back-hash.js +++ /dev/null @@ -1,24 +0,0 @@ -define(["doh/main", "../back", "dojo/_base/array"], function(doh, back, array){ - doh.register("tests.back.hash", [ - function getAndSet(t){ - var cases = [ - "test", - "test with spaces", - "test%20with%20encoded", - "test+with+pluses", - " leading", - "trailing ", - "under_score", - "extra#mark", - "extra?instring", - "extra&instring", - "#leadinghash" - ]; - function verify(s){ - back.setHash(s); - t.is(s, back.getHash(s)); - } - array.forEach(cases, verify); - } - ]); -}); diff --git a/tests/back.html b/tests/back.html deleted file mode 100644 index a671d1d17d..0000000000 --- a/tests/back.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - - - -
-

dojo.back test

- - -

This page tests the dojo.back back/forward code.

- -

The buttons that start with "Link" on them don't use any dojo.xhr* calls, - just JS data already in the page.

- -
    -
  • Don't test this page using local disk for MSIE. MSIE will not - create a history list for iframe_history.html if served from a file: - URL. Serve the test pages from a web server to test in that browser.
  • -
  • Safari 2.0.3+ (and probably 1.3.2+): Only the back button works OK - (not the forward button).
  • -
  • Opera 8.5.3: Does not work.
  • -
  • Konqueror: Unknown. The latest may have Safari's behavior.
  • -
-
-
-
-
-
-
-
-
-
-
-
-
-
- Data Output:
-
-
- Back/Forward Info:
-
-
- - diff --git a/tests/back.js b/tests/back.js deleted file mode 100644 index f9c72fbd71..0000000000 --- a/tests/back.js +++ /dev/null @@ -1,5 +0,0 @@ -define(["doh/main", "require"], function(doh, require){ - if(doh.isBrowser){ - doh.register("tests.back", require.toUrl("./back.html"), 30000); - } -}); diff --git a/tests/behavior.html b/tests/behavior.html deleted file mode 100644 index 1f4eb6dad1..0000000000 --- a/tests/behavior.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - Testing dojo.behavior - - - - - -
- .foo > span -
- .foo > .bar > span -
-
- - - - - - diff --git a/tests/behavior.js b/tests/behavior.js deleted file mode 100644 index 428ba2572c..0000000000 --- a/tests/behavior.js +++ /dev/null @@ -1,5 +0,0 @@ -define(["doh/main", "require"], function(doh, require){ - if(doh.isBrowser){ - doh.register("tests.behavior", require.toUrl("./behavior.html")); - } -}); diff --git a/tests/cache.js b/tests/cache.js deleted file mode 100644 index b85776eb47..0000000000 --- a/tests/cache.js +++ /dev/null @@ -1,29 +0,0 @@ -define(["../main", "doh/main", "require", "../cache", "../_base/url"], function(dojo, doh, require){ - doh.register("tests.cache", [{ - name: "dojo.cache", - runTest: function(t){ - var expected = "

Hello World

"; - - t.is(expected, dojo.trim(dojo.cache("dojo.tests.cache", "regular.html"))); - t.is(expected, dojo.trim(dojo.cache("dojo.tests.cache", "sanitized.html", {sanitize: true}))); - - //Test object variant for module. - var objPath = require.toUrl("dojo/tests/cache/object.html"); - t.is(expected, dojo.trim(dojo.cache(new dojo._Url(objPath), {sanitize: true}))); - - //Just a couple of other passes just to make sure on manual inspection that the - //files are loaded over the network only once. - t.is(expected, dojo.trim(dojo.cache("dojo.tests.cache", "regular.html"))); - t.is(expected, dojo.trim(dojo.cache("dojo.tests.cache", "sanitized.html", {sanitize: true}))); - t.is(expected, dojo.trim(dojo.cache(new dojo._Url(objPath), {sanitize: true}))); - - //Make sure unset cache does not throw errors - t.is(null, dojo.cache("dojo.tests.cache", "regular.html", null)); - - //Set empty string as value - t.is("", dojo.cache("dojo.tests.cache", "regular.html", "")); - t.is("", dojo.cache("dojo.tests.cache", "regular.html")); - } - } - ]); -}); diff --git a/tests/changes.diff b/tests/changes.diff new file mode 100644 index 0000000000..3728d9c3d0 --- /dev/null +++ b/tests/changes.diff @@ -0,0 +1,1402 @@ +diff --git a/tests/TODO b/tests/TODO +index 4f66fa8..30ef027 100644 +--- a/tests/TODO ++++ b/tests/TODO +@@ -1,10 +1,6 @@ + This file lists tests that need to be implemented or expanded. See ticket #3121 + for changes related to things listed here. + +-Tests to add: +-------------- +- * add tests for dojo.place() +- + Tests to improve: + ----------------- + * NodeList isn't testing several of its public methods (place, orphan, adopt, etc.) +diff --git a/tests/_base/html.html b/tests/_base/html.html +index 02ce9ad..d774bc3 100644 +--- a/tests/_base/html.html ++++ b/tests/_base/html.html +@@ -43,7 +43,7 @@ + + doh.register("t", + [ +- "doh.is(null, dojo.byId('nonExistantId'));", ++ "doh.is(null, dojo.byId('nonExistentId'));", + "doh.is(null, dojo.byId(null));", + "doh.is(null, dojo.byId(''));", + "doh.is(undefined, dojo.byId(undefined));", +@@ -665,6 +665,19 @@ + dojo.destroy(p); + doh.t(true, "no exception thrown"); + } ++/* ++ // Make sure empty() doesn't disconnect grandchildren from children. ++ // Uncomment when http://bugs.dojotoolkit.org/ticket/16957 is fixed. ++ function emptyGrandchildren(){ ++ var parent = dojo.byId("emptyParent"), ++ child = dojo.byId("emptyChild"); ++ ++ dojo.empty("emptyParent"); ++ ++ doh.f(!!parent.firstChild, "parent's children removed"); ++ doh.t(!!child.firstChild, "child's children remain"); ++ } ++*/ + ] + ); + +@@ -915,6 +928,13 @@ + > + ++ ++
++
++
hello world
++
++
++ + + ', document.body); - var globalObjects = [document, window, iframe.contentWindow, iframe.contentDocument || iframe.contentWindow.document]; - for(var i = 0, len = globalObjects.length; i < len; i++) { - eventEmitted = false; - on(globalObjects[i], 'custom-test-event', function () { - eventEmitted = true; - }); - on.emit(globalObjects[i], 'custom-test-event', {}); - t.is(true, eventEmitted); - } - - // test out event delegation - if(query){ - // if dojo.query is loaded, test event delegation - - // check text node target is properly handled by event delegation - var textnodespan = div.appendChild(document.createElement("span")); - textnodespan.className = "textnode"; - textnodespan.innerHTML = "text"; - on(document.body, ".textnode:click", function(){ - order.push(8); - }); - on.emit(textnodespan.firstChild, "click", {bubbles: true, cancelable: true}); - - on(div, "button:click", function(){ - order.push(9); - }); - on(document, "button:click", function(){ - }); // just make sure this doesn't throw an error - - }else{//just pass then - order.push(8, 9); - } - // test out event delegation using a custom selector - on(div, on.selector(function(node){ - return node.tagName == "BUTTON"; - }, "click"), function(){ - order.push(10); - }); - button.click(); - t.is([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], order); - on(span, "propertychange", function(){}); // make sure it doesn't throw an error - }, - /* - This only works if the test page has the focus, so you can enable if you want to test focus functionality and allow the test page to have focus - function focus(t){ - var div = document.body.appendChild(document.createElement("div")); - var input = div.appendChild(document.createElement("input")); - var order = []; - var signal = on(div,"input:focusin", function(event){ - order.push('in'); - }); - var signal = on(div,"input:focusout", function(event){ - order.push('out'); - }); - var otherInput = document.body.appendChild(document.createElement("input")); - input.focus(); - otherInput.focus(); - d = new doh.Deferred(); - setTimeout(function(){ - t.is(['in', 'out'], order); - d.callback(true); - }, 1); - return d; - },*/ - function extensionEvent(t){ - var div = document.body.appendChild(document.createElement("div")); - var span = div.appendChild(document.createElement("span")); - span.setAttribute("foo", 2); - var order = []; - var customEvent = function(target, listener){ - return on(target, "custom", listener); - }; - on(div, customEvent, function(event){ - order.push(event.a); - }); - on(div, on.selector("span", customEvent), function(event){ - order.push(+this.getAttribute("foo")); - }); - on.emit(div, "custom", { - a: 0 - }); - // should trigger selector - t.t(on.emit(span, "custom", { - a: 1, - bubbles: true, - cancelable: true - })); - // shouldn't trigger selector - t.t(on.emit(div, "custom", { - a: 3, - bubbles: true, - cancelable: true - })); - t.is(order, [0, 1, 2, 3]); - }, - function testEvented(t){ - var MyClass = declare([Evented],{ - - }); - var order = []; - myObject = new MyClass; - myObject.on("custom", function(event){ - order.push(event.a); - }); - myObject.emit("custom", {a:0}); - t.is(order, [0]); - }, - function pubsub(t){ - var fooCount = 0; - topic.subscribe("/test/foo", function(event, secondArg){ - t.is("value", event.foo); - t.is("second", secondArg); - fooCount++; - }); - topic.publish("/test/foo", {foo: "value"}, "second"); - t.is(1, fooCount); - }, - function touch(t){ - console.log("has", has); - if(has("touch")){ - var div = document.body.appendChild(document.createElement("div")); - on(div, "touchstart", function(event){ - t.t("rotation" in event); - t.t("pageX" in event); - }); - on.emit(div, "touchstart", {changedTouches: [{pageX:100}]}); - } - }, - function stopImmediatePropagation(t){ - var button = document.body.appendChild(document.createElement("button")); - on(button, "click", function(event){ - event.stopImmediatePropagation(); - }); - var afterStop = false; - on(button, "click", function(event){ - afterStop = true; - }); - button.click(); - t.f(afterStop); - }, - function eventAugmentation(t){ - var div = document.body.appendChild(document.createElement("div")); - var button = div.appendChild(document.createElement("button")); - on(button, "click", function(event){ - event.modified = true; - event.test = 3; - }); - var testValue; - on(div, "click", function(event){ - testValue = event.test; - }); - button.click(); - t.is(testValue, 3); - }, - function delegatePreventDefault(t){ - var div = document.createElement("div"); - div.innerHTML = ''; - var cb = div.childNodes[0]; - document.body.appendChild(div); - on(div, '.matchesNothing:click', function () {}); - cb.click(); - t.t(cb.checked); - } - ]); - - if(has("host-browser")){ - doh.registerUrl("tests.on.event-focusin", require.toUrl("./event-focusin.html"), 30000); - } -}); diff --git a/tests/parser.js b/tests/parser.js deleted file mode 100644 index 302e32bf48..0000000000 --- a/tests/parser.js +++ /dev/null @@ -1,9 +0,0 @@ -define(["doh/main", "require"], function(doh, require){ - if(doh.isBrowser){ - doh.register("parser", require.toUrl("./parser/parser.html"), 30000); - doh.register("parseOnLoad-auto-require", require.toUrl("./parser/parseOnLoadAutoRequire.html"), 30000); - doh.register("parseOnLoad-declarative-require", require.toUrl("./parser/parseOnLoadDeclarativeRequire.html"), 30000); - doh.register("parser-args", require.toUrl("./parser/parser-args.html"), 30000); - doh.register("parser-async", require.toUrl("./parser/parserAsync.html"), 30000); - } -}); diff --git a/tests/parser/bench.html b/tests/parser/bench.html deleted file mode 100644 index 43833f61ea..0000000000 --- a/tests/parser/bench.html +++ /dev/null @@ -1,311 +0,0 @@ - - - - Parser scan() Performance Test - - - - - -

Parser Performance Test

- - -

- - -
- - - - - - - - diff --git a/tests/parser/parseOnLoadAutoRequire.html b/tests/parser/parseOnLoadAutoRequire.html deleted file mode 100644 index 5d5643d4f8..0000000000 --- a/tests/parser/parseOnLoadAutoRequire.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - parser auto-require unit test - - - - - -

parseOnLoad:true, async: true, auto-require unit test

- -

This page tests that:

-
    -
  1. parseOnLoad: true parses the page on load
  2. -
  3. auto-require of modules
  4. -
  5. the parse happens before the ready() callback happens, including loading of auto-required modules
  6. -
-

See console for test results.

- -
-
-
- - - diff --git a/tests/parser/parser-args.html b/tests/parser/parser-args.html deleted file mode 100644 index e812727dd3..0000000000 --- a/tests/parser/parser-args.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - Parser args Unit Test - - - - - -

Parser args Unit Test

- -
-
-
-
- - diff --git a/tests/parser/parser.html b/tests/parser/parser.html deleted file mode 100644 index 4e72236f6d..0000000000 --- a/tests/parser/parser.html +++ /dev/null @@ -1,1164 +0,0 @@ - - - - Parser Unit Test - - - - - -

Parser Unit Test

- -
- -
- - - - -
-
-
-
-
- - - -
-
- - -
-
- - - - -
-
-
-
-
-
- -
-
- - - - -
-
-
-
-
-
- - -
-
-
- -
- - -
-
- -
- -
-
-

Some random markup

- - - -
- - - - -
-
-
- - -
-
- - -
-
- - -
-
-
-
- - -
-
- - -
-
- - -
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
- - - - - - -
- checked ToggleButton as div -
-
- unchecked ToggleButton as div -
-
-
- -
- - -
- -
- - -
- -
- - -
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
- - -
-
-
-
-
- - -
-
click me
-
- - -
- -
-
- -
- -
-
- -
-
- - - -
- -
-
-
-
-
- - -
-
-
-
-
-
- - diff --git a/tests/parser/parserAsync.html b/tests/parser/parserAsync.html deleted file mode 100644 index 98b43fe8e5..0000000000 --- a/tests/parser/parserAsync.html +++ /dev/null @@ -1,85 +0,0 @@ - - - -Parser Asynchronous Widget Creation Unit Test - - - - - -

Parser Asynchronous Widget Creation Unit Test

- -
- hi - there -
- - - diff --git a/tests/parser/runTests.html b/tests/parser/runTests.html deleted file mode 100644 index 1e47011720..0000000000 --- a/tests/parser/runTests.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - Dojo Parser D.O.H. Unit Test Runner - - - - Redirecting to D.O.H runner. - - diff --git a/tests/promise.js b/tests/promise.js deleted file mode 100644 index 130f179632..0000000000 --- a/tests/promise.js +++ /dev/null @@ -1,8 +0,0 @@ -define([ - "dojo/tests/Deferred", - "dojo/tests/promise/Promise", - "dojo/tests/when", - "dojo/tests/promise/all", - "dojo/tests/promise/first", - "dojo/tests/promise/tracer" -], 1); diff --git a/tests/promise/Promise.js b/tests/promise/Promise.js deleted file mode 100644 index 97189720ac..0000000000 --- a/tests/promise/Promise.js +++ /dev/null @@ -1,60 +0,0 @@ -define([ - "doh/main", - "dojo/Deferred" -], function(doh, Deferred){ - var tests = { - "always() will be invoked for resolution and rejection": function(t){ - var obj = {}; - var deferred1 = new Deferred(); - var thenResult, alwaysResult; - deferred1.promise.then(function(result){ thenResult = result; }); - deferred1.promise.always(function(result){ alwaysResult = result; }); - deferred1.resolve(obj); - t.t(alwaysResult === obj); - t.t(alwaysResult === thenResult); - - var deferred2 = new Deferred(); - var thenResult2, alwaysResult2; - deferred2.promise.then(null, function(result){ thenResult2 = result; }); - deferred2.promise.always(function(result){ alwaysResult2 = result; }); - deferred2.reject(obj); - t.t(alwaysResult2 === obj); - t.t(alwaysResult2 === thenResult2); - }, - - "otherwise(…) is equivalent to then(null, …)": function(t){ - var obj = {}; - var thenResult, otherwiseResult; - this.deferred.then(null, function(result){ thenResult = result; }); - this.deferred.promise.otherwise(function(result){ otherwiseResult = result; }); - this.deferred.reject(obj); - t.t(otherwiseResult === obj); - t.t(otherwiseResult === thenResult); - }, - - "trace() returns the same promise": function(t){ - var promise = this.deferred.promise.trace(); - t.t(promise === this.deferred.promise); - }, - - "traceRejected() returns the same promise": function(t){ - var promise = this.deferred.promise.traceRejected(); - t.t(promise === this.deferred.promise); - } - }; - - var wrapped = []; - for(var name in tests){ - wrapped.push({ - name: name, - setUp: setUp, - runTest: tests[name] - }); - } - - function setUp(){ - this.deferred = new Deferred; - } - - doh.register("tests.promise.Promise", wrapped); -}); diff --git a/tests/promise/all.js b/tests/promise/all.js deleted file mode 100644 index 21695774b9..0000000000 --- a/tests/promise/all.js +++ /dev/null @@ -1,104 +0,0 @@ -define([ - "doh/main", - "dojo/Deferred", - "dojo/promise/all" -], function(doh, Deferred, all){ - var tests = { - "all() with array argument": function(t){ - var obj1 = {}, obj2 = {}, obj3 = {}; - var received; - all([this.deferred, new Deferred().resolve(obj2), obj3]).then(function(result){ received = result; }); - this.deferred.resolve(obj1); - t.t(received[0] === obj1); - t.t(received[1] === obj2); - t.t(received[2] === obj3); - }, - - "all() with object argument": function(t){ - var obj1 = {}, obj2 = {}, obj3 = {}; - var received; - all({ a: this.deferred, b: new Deferred().resolve(obj2), c: obj3 }).then(function(result){ received = result; }); - this.deferred.resolve(obj1); - t.t(received.a === obj1); - t.t(received.b === obj2); - t.t(received.c === obj3); - }, - - "all() without arguments": function(t){ - var received; - all().then(function(){ received = arguments; }); - t.is(received.length, 1); - t.t(typeof received[0] === "undefined"); - }, - - "all() with single non-object argument": function(t){ - var received; - all(null).then(function(){ received = arguments; }); - t.is(received.length, 1); - t.t(typeof received[0] === "undefined"); - }, - - "all() with empty array": function(t){ - var received; - all([]).then(function(result){ received = result; }); - t.is(received, []); - }, - - "all() with empty object": function(t){ - var received; - all({}).then(function(result){ received = result; }); - t.is(received, {}); - }, - - "all() with one rejected promise": function(t){ - var obj = {}; - var received; - all([this.deferred, new Deferred().reject(obj), {}]).then(null, function(result){ received = result; }); - t.t(received === obj); - }, - - "all() with one promise rejected later": function(t){ - var obj = {}; - var received; - all([this.deferred, new Deferred(), new Deferred()]).then(null, function(result){ received = result; }); - this.deferred.reject(obj); - t.t(received === obj); - }, - - "all() with multiple promises rejected later": function(t){ - var obj = {}; - var deferred2 = new Deferred(); - var received; - all([this.deferred, deferred2, new Deferred()]).then(null, function(result){ received = result; }); - this.deferred.reject(obj); - deferred2.reject({}); - t.t(received === obj); - }, - - "all() cancel only affects returned promise, not those we're waiting for": function(t){ - var obj = {}; - var canceled = false; - var deferred2 = new Deferred(function(){ canceled = true; }); - var received; - var promise = all([this.deferred, deferred2, new Deferred()]).then(null, function(result){ received = result; }); - promise.cancel(obj); - t.t(received === obj); - t.f(canceled); - } - }; - - var wrapped = []; - for(var name in tests){ - wrapped.push({ - name: name, - setUp: setUp, - runTest: tests[name] - }); - } - - function setUp(){ - this.deferred = new Deferred; - } - - doh.register("tests.promise.all", wrapped); -}); diff --git a/tests/promise/first.js b/tests/promise/first.js deleted file mode 100644 index ce7600740c..0000000000 --- a/tests/promise/first.js +++ /dev/null @@ -1,100 +0,0 @@ -define([ - "doh/main", - "dojo/Deferred", - "dojo/promise/first" -], function(doh, Deferred, first){ - var tests = { - "first() with array argument": function(t){ - var obj = {}; - var received; - first([this.deferred, new Deferred().resolve(obj), {}]).then(function(result){ received = result; }); - this.deferred.resolve({}); - t.t(received === obj); - }, - - "with object argument": function(t){ - var obj = {}; - var received; - first({ a: this.deferred, b: new Deferred().resolve(obj), c: {} }).then(function(result){ received = result; }); - this.deferred.resolve({}); - t.t(received === obj); - }, - - "first() without arguments": function(t){ - var received; - first().then(function(){ received = arguments; }); - t.is(received.length, 1); - t.t(typeof received[0] === "undefined"); - }, - - "first() with single non-object argument": function(t){ - var received; - first(null).then(function(){ received = arguments; }); - t.is(received.length, 1); - t.t(typeof received[0] === "undefined"); - }, - - "first() with empty array": function(t){ - var received = false; - first([]).then(function(result){ received = result; }); - t.t(typeof received === "undefined"); - }, - - "first() with empty object": function(t){ - var received = false; - first({}).then(function(result){ received = result; }); - t.t(typeof received === "undefined"); - }, - - "first() with one rejected promise": function(t){ - var obj = {}; - var received; - first([this.deferred, new Deferred().reject(obj), {}]).then(null, function(result){ received = result; }); - t.t(received === obj); - }, - - "first() with one promise rejected later": function(t){ - var obj = {}; - var received; - first([this.deferred, new Deferred(), new Deferred()]).then(null, function(result){ received = result; }); - this.deferred.reject(obj); - t.t(received === obj); - }, - - "first() with multiple promises rejected later": function(t){ - var obj = {}; - var deferred2 = new Deferred(); - var received; - first([this.deferred, deferred2, new Deferred()]).then(null, function(result){ received = result; }); - this.deferred.reject(obj); - deferred2.reject({}); - t.t(received === obj); - }, - - "first() cancel only affects returned promise, not those we're waiting for": function(t){ - var obj = {}; - var canceled = false; - var deferred2 = new Deferred(function(){ canceled = true; }); - var received; - var promise = first([this.deferred, deferred2, new Deferred()]).then(null, function(result){ received = result; }); - promise.cancel(obj); - t.t(received === obj); - t.f(canceled); - } - }; - - var wrapped = []; - for(var name in tests){ - wrapped.push({ - name: name, - setUp: setUp, - runTest: tests[name] - }); - } - - function setUp(){ - this.deferred = new Deferred; - } - - doh.register("tests.promise.first", wrapped); -}); diff --git a/tests/promise/tracer.js b/tests/promise/tracer.js deleted file mode 100644 index 26f0440d42..0000000000 --- a/tests/promise/tracer.js +++ /dev/null @@ -1,106 +0,0 @@ -define([ - "doh/main", - "dojo/Deferred", - "dojo/promise/tracer" -], function(doh, Deferred, tracer){ - var tests = { - "trace() resolved": function(t){ - var td = new doh.Deferred; - var obj = {}; - this.handles.push(tracer.on("resolved", function(value){ - t.t(value === obj); - td.callback(true); - })); - this.deferred.promise.trace(); - this.deferred.resolve(obj); - return td; - }, - - "trace() rejected": function(t){ - var td = new doh.Deferred; - var obj = {}; - this.handles.push(tracer.on("rejected", function(error){ - t.t(error === obj); - td.callback(true); - })); - this.deferred.promise.trace(); - this.deferred.reject(obj); - return td; - }, - - "trace() progress": function(t){ - var td = new doh.Deferred; - var obj = {}; - this.handles.push(tracer.on("progress", function(update){ - t.t(update === obj); - td.callback(true); - })); - this.deferred.promise.trace(); - this.deferred.progress(obj); - return td; - }, - - "passing extra arguments to trace()": function(t){ - var td = new doh.Deferred; - var obj = {}; - this.handles.push(tracer.on("resolved", function(value, arg1, arg2){ - t.t(value === obj); - t.is(arg1, "test"); - t.t(arg2 === obj); - td.callback(true); - })); - this.deferred.promise.trace("test", obj); - this.deferred.resolve(obj); - return td; - }, - - "traceRejected()": function(t){ - var td = new doh.Deferred; - var obj = {}; - this.handles.push(tracer.on("rejected", function(error){ - t.t(error === obj); - td.callback(true); - })); - this.deferred.promise.traceRejected(); - this.deferred.reject(obj); - return td; - }, - - "passing extra arguments": function(t){ - var td = new doh.Deferred; - var obj = {}; - this.handles.push(tracer.on("rejected", function(error, arg1, arg2){ - t.t(error === obj); - t.is(arg1, "test"); - t.t(arg2 === obj); - td.callback(true); - })); - this.deferred.promise.traceRejected("test", obj); - this.deferred.reject(obj); - return td; - } - }; - - var wrapped = []; - for(var name in tests){ - wrapped.push({ - name: name, - setUp: setUp, - tearDown: tearDown, - runTest: tests[name] - }); - } - - function setUp(){ - this.handles = []; - this.deferred = new Deferred; - } - - function tearDown(){ - while(this.handles.length){ - this.handles.pop().remove(); - } - } - - doh.register("tests.promise.tracer", wrapped); -}); diff --git a/tests/query.js b/tests/query.js deleted file mode 100644 index 2eb84edb67..0000000000 --- a/tests/query.js +++ /dev/null @@ -1,27 +0,0 @@ -define(["doh/main", "dojo/sniff", "require"], function(doh, has, require){ - if(doh.isBrowser){ - // Test dojo/query with every query engine/CSS level setting, plus with nothing specified - doh.register("tests.query-lite", require.toUrl("./query/query.html?selector=lite"), 30000); - doh.register("tests.query-css2", require.toUrl("./query/query.html?selector=css2"), 30000); - doh.register("tests.query-css2.1", require.toUrl("./query/query.html?selector=css2.1"), 30000); - doh.register("tests.query-css3", require.toUrl("./query/query.html?selector=css3"), 30000); - doh.register("tests.query-acme", require.toUrl("./query/query.html?selector=acme"), 30000); - doh.register("tests.query-unspecified", require.toUrl("./query/query.html"), 30000); - - // Test quirks mode too, except on IE9+ because of the IE problem where the iframe gets confused about its - // mode when the iframe is quirks but the parent is standards. - if(!(has("ie") >= 9)){ - doh.register("tests.query-lite-quirks", require.toUrl("./query/queryQuirks.html?selector=lite"), 30000); - doh.register("tests.query-css2-quirks", require.toUrl("./query/queryQuirks.html?selector=css2"), 30000); - doh.register("tests.query-css2.1-quirks", require.toUrl("./query/queryQuirks.html?selector=css2.1"), 30000); - doh.register("tests.query-css3-quirks", require.toUrl("./query/queryQuirks.html?selector=css3"), 30000); - doh.register("tests.query-acme-quirks", require.toUrl("./query/queryQuirks.html?selector=acme"), 30000); - doh.register("tests.query-unspecified-quirks", require.toUrl("./query/queryQuirks.html"), 30000); - } - - // Test loading XHTML document. Commented out on IE since it causes a warning dialog - if(!has("ie")){ - doh.register("tests.query-xml", require.toUrl("./query/xml.xhtml"), 30000); - } - } -}); diff --git a/tests/regexp.js b/tests/regexp.js deleted file mode 100644 index cd088cc9db..0000000000 --- a/tests/regexp.js +++ /dev/null @@ -1,12 +0,0 @@ -define(["doh/main", "../regexp"], function(doh, regexp){ - -doh.register("tests.regexp", - function test_regexp_escape(t){ - t.assertTrue(new RegExp(regexp.escapeString("\f\b\n\t\r+.$?*|{}()[]\\/^")).test("TEST\f\b\n\t\r+.$?*|{}()[]\\/^TEST")); - t.assertTrue(new RegExp(regexp.escapeString("\f\b\n\t\r+.$?*|{}()[]\\/^", ".")).test("TEST\f\b\n\t\r+X$?*|{}()[]\\/^TEST")); - t.is("a\\-z", regexp.escapeString("a-z")); - } -); - - -}); diff --git a/tests/request.js b/tests/request.js deleted file mode 100644 index 8debc02e82..0000000000 --- a/tests/request.js +++ /dev/null @@ -1,14 +0,0 @@ -define([ - "require", - "doh/main", - "./request/handlers", - "../has!host-node?./request/node" -], function(require, doh){ - if(doh.isBrowser){ - doh.register("tests.request.xhr", require.toUrl("./request/xhr.html"), 60000); - doh.register("tests.request.script", require.toUrl("./request/script.html"), 60000); - doh.register("tests.request.iframe", require.toUrl("./request/iframe.html"), 60000); - doh.register("tests.request.registry", require.toUrl("./request/registry.html"), 60000); - doh.register("tests.request.notify", require.toUrl("./request/notify.html"), 60000); - } -}); diff --git a/tests/request/handlers.js b/tests/request/handlers.js deleted file mode 100644 index eca3686f06..0000000000 --- a/tests/request/handlers.js +++ /dev/null @@ -1,87 +0,0 @@ -define([ - "doh/main", - "dojo/request/handlers", - "dojo/has", - "dojo/_base/kernel", - "dojo/json" -], function(doh, handlers, has, kernel, JSON){ - var tests = [ - function textContentHandler(t){ - var response = handlers({ - text: "foo bar baz ", - options: {} - }); - - t.is("foo bar baz ", response.data); - }, - function jsonContentHandler(t){ - var jsonObj = { - foo: "bar", - baz: [ - { thonk: "blarg" }, - "xyzzy!" - ] - }; - var responseData = handlers({ - text: JSON.stringify(jsonObj), - options: { - handleAs: "json" - } - }); - t.is(jsonObj, responseData.data); - }, - function jsContentHandler(t){ - var jsonObj = { - foo: "bar", - baz: [ - { thonk: "blarg" }, - "xyzzy!" - ] - }; - var responseData = handlers({ - text: "("+JSON.stringify(jsonObj)+")", - options: { - handleAs: "javascript" - } - }); - t.is(jsonObj, responseData.data); - - responseData = handlers({ - text: "true;", - options: { - handleAs: "javascript" - } - }); - t.t(responseData.data); - - responseData = handlers({ - text: "false;", - options: { - handleAs: "javascript" - } - }); - t.f(responseData.data); - } - ]; - - if(has("host-browser")){ - tests.push( - function xmlContentHandler(t){ - var responseData = { - text: "blarg", - options: { - handleAs: "xml" - } - }; - if("DOMParser" in kernel.global){ - var parser = new DOMParser(); - responseData.data = parser.parseFromString(responseData.text, "text/xml"); - } - - responseData = handlers(responseData); - t.is("foo", responseData.data.documentElement.tagName); - } - ); - } - doh.register("tests.request.handlers", tests); -}); diff --git a/tests/request/iframe.html b/tests/request/iframe.html deleted file mode 100644 index b23cc61def..0000000000 --- a/tests/request/iframe.html +++ /dev/null @@ -1,205 +0,0 @@ - - - - Testing dojo/request/iframe - - - - - - -
- -
- - diff --git a/tests/request/iframeDummyMethod.php b/tests/request/iframeDummyMethod.php deleted file mode 100644 index 21f566aaa5..0000000000 --- a/tests/request/iframeDummyMethod.php +++ /dev/null @@ -1,109 +0,0 @@ - $_SERVER['REQUEST_METHOD'], - "query" => $q, - "post" => $p - ); - echo json_encode($result); - }else if($type == 'javascript'){ - echo "window.iframeTestingFunction = function(){ return 42; };"; - }else if(array_key_exists('text', $q)){ - echo $q['text']; - }else{ - echo "iframe succeeded"; - } -} - -$query = null; -if (!empty($_SERVER['QUERY_STRING'])) { - $query = fix_raw_data($_SERVER['QUERY_STRING']); -} - -$post = null; -if ($_SERVER['REQUEST_METHOD'] == 'POST') { - $post = file_get_contents('php://input'); - if(empty($post)){ - $post = $_POST; - }else{ - $post = fix_raw_data($post); - } -} - -if((!empty($query) && array_key_exists('delay', $query))){ - sleep((int)$query['delay']); -}else if((!empty($post) && array_key_exists('delay', $post))){ - sleep((int)$post['delay']); -} - -header("HTTP/1.1 200 OK"); -header("Expires: " . gmdate("D, d M Y H:i:s") . "GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); -header("Cache-Control: no-cache, must-revalidate"); -header("Pragma: no-cache"); - -if($query['type'] == 'xml'){ - header("Content-type: text/xml"); - echo ''; -?> - - - FOO - BAR - BAZ - BAT - - bar){ /* whatever */ } - } - } - ]]> - something else - - - - - - -

SUCCESSFUL HTML response

- - - - - diff --git a/tests/request/node.js b/tests/request/node.js deleted file mode 100644 index be45938bb3..0000000000 --- a/tests/request/node.js +++ /dev/null @@ -1,78 +0,0 @@ -require([ - 'require', - 'doh/main', - 'dojo/request', - 'dojo/node!http', - 'dojo/node!url', - 'dojo/Deferred' -], function(require, doh, request, http, url, Deferred){ - var serverPort = 8142, - serverUrl = 'http://localhost:8124'; - - var responseDataMap = { - 'fooBar': '{ "foo": "bar" }', - 'invalidJson': 'JSON' - }; - function getRequestUrl(dataKey){ - return serverUrl + '?dataKey=' + dataKey; - } - function getResponseData(request){ - var parseQueryString = true; - var urlInfo = url.parse(request.url, parseQueryString); - return responseDataMap[urlInfo.query.dataKey]; - } - - var server = http.createServer(function(request, response){ - var body = getResponseData(request); - - response.writeHead(200, { - 'Content-Length': body.length, - 'Content-Type': 'application/json' - }); - response.write(body); - response.end(); - }); - - function setUp(){ /* Do nothing */ } - function tearDown(){ server.close(); } - server.on('listening', function(){ - var tests = [ - { - name: 'test', - runTest: function(t){ - var d = new doh.Deferred(); - - request.get(getRequestUrl('fooBar'), { - handleAs: 'json' - }).then(d.getTestCallback(function(data){ - t.is({ foo: 'bar' }, data); - }), function(err){ - d.errback(err); - }); - - return d; - } - }, - { - name: 'test-handler-exception', - runTest: function(t){ - var d = new doh.Deferred(); - - request.get(getRequestUrl('invalidJson'), { - handleAs: 'json' - }).then(function(){ - d.errback(new Error('Expected a handler exception.')); - }, d.getTestCallback(function(err){ - doh.assertTrue(err instanceof SyntaxError); - })); - - return d; - } - } - ]; - - doh.register('tests.request.node', tests, setUp, tearDown); - doh.run(); - }); - server.listen(8124); -}); diff --git a/tests/request/notify.html b/tests/request/notify.html deleted file mode 100644 index dca94bfa4f..0000000000 --- a/tests/request/notify.html +++ /dev/null @@ -1,191 +0,0 @@ - - - - - dojo/request/notify test - - - - - - - - diff --git a/tests/request/registry.html b/tests/request/registry.html deleted file mode 100644 index f83c43b3b7..0000000000 --- a/tests/request/registry.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - Registry Test - - - - - - - - diff --git a/tests/request/script.html b/tests/request/script.html deleted file mode 100644 index 68e3459d67..0000000000 --- a/tests/request/script.html +++ /dev/null @@ -1,92 +0,0 @@ - - - dojo/request/script - - - - - - -

dojo/request/script test

- - diff --git a/tests/request/scriptDummyMethod.php b/tests/request/scriptDummyMethod.php deleted file mode 100644 index 03ea4d4856..0000000000 --- a/tests/request/scriptDummyMethod.php +++ /dev/null @@ -1,21 +0,0 @@ - diff --git a/tests/request/xhr.html b/tests/request/xhr.html deleted file mode 100644 index 5219949617..0000000000 --- a/tests/request/xhr.html +++ /dev/null @@ -1,411 +0,0 @@ - - - - dojo/request/xhr - - - - - - - - - - diff --git a/tests/request/xhrDummyMethod.php b/tests/request/xhrDummyMethod.php deleted file mode 100644 index d824b20844..0000000000 --- a/tests/request/xhrDummyMethod.php +++ /dev/null @@ -1,72 +0,0 @@ - $_SERVER['REQUEST_METHOD'], - "query" => $query, - "post" => $post, - "put" => $put, - "del" => $del -); - -header("HTTP/1.1 200 OK"); -header("Expires: " . gmdate("D, d M Y H:i:s") . "GMT"); -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); -header("Cache-Control: no-cache, must-revalidate"); -header("Pragma: no-cache"); -header("Content-type: application/json"); - -echo json_encode($result); -?> diff --git a/tests/request/xhrEchoContentTypeHeader.php b/tests/request/xhrEchoContentTypeHeader.php deleted file mode 100644 index 6e119067a3..0000000000 --- a/tests/request/xhrEchoContentTypeHeader.php +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/tests/request/xhrXml.php b/tests/request/xhrXml.php deleted file mode 100644 index 2ca3589d31..0000000000 --- a/tests/request/xhrXml.php +++ /dev/null @@ -1,9 +0,0 @@ -'; ?> -blargblah diff --git a/tests/router.js b/tests/router.js deleted file mode 100644 index 2e7c9bfcd1..0000000000 --- a/tests/router.js +++ /dev/null @@ -1,379 +0,0 @@ -define([ - "../_base/array", - "../hash", - "../router/RouterBase", - "doh" -], function(arrayUtil, hash, RouterBase, doh){ - // This test uses RouterBase so that I can test a few different behaviors of the router - // which require re-initializing a new router - var count = 0, - router = new RouterBase(), - handle, foo; - - // Simple helper to make tearDown simpler - function removeAll(handles) { - arrayUtil.forEach(handles, function(handle){ - handle.remove(); - }); - } - - doh.register("tests.router", [ - { - name: "Router API", - setUp: function(t){ - // Reset the hash to make sure we get a clean test - hash("", true); - }, - runTest: function(t){ - t.t(router.register, "Router has a register"); - t.t(router.go, "Router has a go"); - t.t(router.startup, "Router has a startup"); - t.t(router.destroy, "Router has a destroy"); - } - }, - { - name: "Registering a route by string", - runTest: function(t){ - handle = router.register("/foo", function(){ - count++; - console.log("/foo fired! New count:", count); - }); - - // Make sure it looks right - t.t(handle.remove, "Handle has a remove"); - t.t(handle.register, "Handle has a register"); - } - }, - { - name: "Ensuring routes don't fire before startup", - setUp: function(){ - count = 0; - }, - runTest: function(t){ - hash("/foo"); - t.t(count === 0, "Count should have been 0, was " + count); - } - }, - { - name: "Ensuring routes do fire after startup", - runTest: function(t){ - router.startup(); - t.t(count === 1, "Count should have been 1, was " + count); - } - }, - { - name: "Ensuring that hash changes fire routes", - runTest: function(t){ - // Due to the nature of the hashchange event, - // this test is going to be async - but we have to nest it, - // sadly. - - var d = new doh.Deferred(); - - // Reset the hash - hash(""); - - setTimeout(function(){ - // As soon as possible, set it back to our test... - hash("/foo"); - console.log("Setting hash"); - - // ... and then check to make sure the events fired - setTimeout(d.getTestCallback(function(){ - console.log("Checking count, current hash:", hash()); - t.t(count === 2, "Count should have been 2, was " + count); - }), 50); - }, 0); - - return d; - } - }, - { - name: "Ensuring that router.go fires changes", - runTest: function(t){ - var d = new doh.Deferred(); - - // Since router.go fires off routes immediately, this should - // kick off changes! - router.go(""); - router.go("/foo"); - - t.t(count === 3, "Count should have been 3, was " + count); - } - }, - { - name: "Ensuring route doesn't fire after removal", - runTest: function(t){ - handle.remove(); - router.go(""); - router.go("/foo"); - - t.t(count === 3, "Count should have been 3, was " + count); - } - }, - { - name: "Registering a route by regexp", - runTest: function(t){ - handle = router.register(/^\/bar$/, function(){ - count++; - }); - router.go("/bar"); - - t.t(count === 4, "Count should have been 4, was " + count); - }, - tearDown: function(){ - handle.remove(); - } - }, - { - name: "Checking event object", - runTest: function(t){ - var oldPath, newPath, params, stopImmediatePropagation, preventDefault; - - router.go(""); - - handle = router.register("/checkEventObject/:foo", function(event){ - oldPath = event.oldPath; - newPath = event.newPath; - params = event.params; - stopImmediatePropagation = typeof event.stopImmediatePropagation; - preventDefault = typeof event.preventDefault; - }); - - router.go("/checkEventObject/bar"); - - t.t(oldPath === "", "oldPath should be empty string, was " + oldPath); - t.t(newPath === "/checkEventObject/bar", "newPath should be '/checkEventObject/bar', was " + newPath); - t.t(params, "params should be a truthy value, was " + params); - t.t(params.hasOwnProperty("foo"), "params should have a .foo property"); - t.t(params.foo === "bar", "params.foo should be bar, was " + params.foo); - t.t(stopImmediatePropagation === "function", "stopImmediatePropagation should be a function, was " + stopImmediatePropagation); - t.t(preventDefault === "function", "preventDefault should be a function, was " + preventDefault); - }, - tearDown: function(){ - handle.remove(); - } - }, - { - name: "Checking extra arguments - string route", - runTest: function(t){ - var a, b; - - handle = router.register("/stringtest/:applied/:arg", function(event, applied, arg){ - a = applied; - b = arg; - }); - - router.go("/stringtest/extra/args"); - - t.t(a === "extra", "a should have been 'extra', was " + a); - t.t(b === "args", "b should have been 'args', was " + b); - }, - tearDown: function(){ - handle.remove(); - } - }, - { - name: "Checking extra arguments - regex route", - runTest: function(t){ - var a, b; - - handle = router.register(/\/regextest\/(\w+)\/(\w+)/, function(event, applied, arg){ - a = applied; - b = arg; - }); - - router.go("/regextest/extra/args"); - - t.t(a === "extra", "a should have been 'extra', was " + a); - t.t(b === "args", "b should have been 'args', was " + b); - }, - tearDown: function(){ - handle.remove(); - } - }, - { - name: "Registering long routes with placeholders", - runTest: function(t){ - var testObject; - - handle = router.register("/path/:to/:some/:long/*thing", function(event){ - testObject = event.params; - }); - - router.go("/path/to/some/long/thing/this/is/in/splat"); - - t.t(testObject instanceof Object, "testObject should have been an object, but wasn't"); - t.t(testObject.to === "to", "testObject.to should have been 'to', was " + testObject.to); - t.t(testObject.some === "some", "testObject.some should have been 'some', was " + testObject.some); - t.t(testObject["long"] === "long", "testObject.long should have been 'long', was " + testObject["long"]); - t.t(testObject.thing === "thing/this/is/in/splat", "testObject.thing should have been 'thing/this/is/in/splat', was " + testObject.thing); - - testObject = null; - - router.go("/path/1/2/3/4/5/6"); - - t.t(testObject instanceof Object, "testObject should have been an object, but wasn't"); - t.t(testObject.to === "1", "testObject.to should have been '1', was " + testObject.to); - t.t(testObject.some === "2", "testObject.some should have been '2', was " + testObject.some); - t.t(testObject["long"] === "3", "testObject.long should have been '3', was " + testObject["long"]); - t.t(testObject.thing === "4/5/6", "testObject.thing should have been '4/5/6', was " + testObject.thing); - }, - tearDown: function(){ - handle.remove(); - } - }, - { - name: "Using capture groups in a regex route", - runTest: function(t){ - var testObject; - - handle = router.register(/^\/path\/(\w+)\/(\d+)$/, function(event){ - testObject = event.params; - }); - - router.go("/path/abcdef/1234"); - - t.t(testObject instanceof Array, "testObject should have been an array, but wasn't"); - t.t(testObject[0] === "abcdef", "testObject[0] should have been 'abcdef', was " + testObject[0]); - t.t(testObject[1] === "1234", "testObject[1] should have been '1234', was " + testObject[1]); - - testObject = null; - - router.go("/path/abc/def"); - - t.t(testObject === null, "testObject should have been null, but wasn't"); - - router.go("/path/abc123/456def"); - - t.t(testObject === null, "testObject should have been null, but wasn't"); - - router.go("/path/abc123/456"); - - t.t(testObject instanceof Array, "testObject should have been an array, but wasn't"); - t.t(testObject[0] === "abc123", "testObject[0] should have been 'abc123', was " + testObject[0]); - t.t(testObject[1] === "456", "testObject[1] should have been '456', was " + testObject[1]); - }, - tearDown: function(){ - handle.remove(); - } - }, - { - name: "Testing registerBefore", - runTest: function(t){ - var test = ""; - - handle = []; - - handle.push(router.register("/isBefore", function(){ - test += "1"; - })); - - handle.push(router.registerBefore("/isBefore", function(){ - test += "2"; - })); - - handle.push(router.register("/isBefore", function(){ - test += "3"; - })); - - handle.push(router.registerBefore("/isBefore", function(){ - test += "4"; - })); - - handle.push(router.register("/isBefore", function(){ - test += "5"; - })); - - router.go("/isBefore"); - - t.t(test === "42135", "test should have been '42135', was " + test); - }, - tearDown: function(){ - removeAll(handle); - } - }, - { - name: "Stopping propagation", - runTest: function(t){ - var test = ""; - - handle = []; - - handle.push(router.register("/stopImmediatePropagation", function(){ test += "A"; })); - handle.push(router.register("/stopImmediatePropagation", function(){ test += "B"; })); - - handle.push(router.register("/stopImmediatePropagation", function(event){ - event.stopImmediatePropagation(); - test += "C"; - })); - - handle.push(router.register("/stopImmediatePropagation", function(){ test += "D"; })); - handle.push(router.register("/stopImmediatePropagation", function(){ test += "E"; })); - - router.go("/stopImmediatePropagation"); - - t.t(test === "ABC", "test should have been 'ABC', was " + test); - }, - tearDown: function(){ - removeAll(handle); - } - }, - { - name: "Preventing default (change)", - runTest: function(t){ - var prevented = false, goResult; - - hash(""); - - t.t(hash() === "", "hash should be empty"); - - handle.push(router.register("/preventDefault", function(event){ - event.preventDefault(); - })); - - goResult = router.go("/preventDefault"); - - t.t(hash() === "", "hash should still be empty"); - t.t(goResult === false, "goResult should be false"); - - goResult = router.go("/someOtherPath"); - - t.t(hash() === "/someOtherPath", "hash should be '/someOtherPath'"); - t.t(goResult === true, "goResult should be true"); - - handle.push(router.register("/allowDefault", function(event){ - console.log("Doing something here without explicitly stopping"); - })); - }, - tearDown: function(){ - removeAll(handle); - } - }, - { - name: "Default router path", - setUp: function(){ - // Set up a new router for use in this test - router.destroy(); - router = new RouterBase(); - - // Start with a clean hash - hash(""); - }, - runTest: function(t){ - var routeHit = false; - - handle = router.register("/default", function(event){ - routeHit = true; - }); - - router.startup("/default"); - - t.t(routeHit, "Our route was not hit, but should have been"); - }, - tearDown: function(){ - handle.remove(); - } - } - ]); -}); diff --git a/tests/rpc.js b/tests/rpc.js deleted file mode 100644 index 5a678ffa99..0000000000 --- a/tests/rpc.js +++ /dev/null @@ -1,107 +0,0 @@ -define(["doh/main", "require", "../rpc/RpcService", "../rpc/JsonService", "../rpc/JsonpService"], - function(doh, require, RpcService, JsonService, JsonpService){ - - doh.register("tests.rpc", [ - { - name: "JsonRPC-EchoTest", - timeout: 2000, - setUp: function(){ - - var testSmd = { - serviceURL:"../../dojo/tests/resources/test_JsonRPCMediator.php", - methods:[ - { - name:"myecho", - parameters:[ - { - name:"somestring", - type:"STRING" - } - ] - } - ] - }; - - this.svc = new JsonService(testSmd); - }, - runTest: function(){ - var d = new doh.Deferred(); - var td = this.svc.myecho("RPC TEST"); - - if (window.location.protocol=="file:"){ - var err= new Error("This Test requires a webserver and PHP and will fail intentionally if loaded from file://"); - d.errback(err); - return d; - } - - td.addCallbacks(function(result){ - if(result=="

RPC TEST

"){ - return true; - }else{ - return new Error("JsonRpc-EchoTest test failed, resultant content didn't match"); - } - }, function(result){ - return new Error(result); - }); - - td.addBoth(d, "callback"); - - return d; - } - - }, - - { - name: "JsonRPC-EmptyParamTest", - timeout: 2000, - setUp: function(){ - var testSmd={ - serviceURL:"../../dojo/tests/resources/test_JsonRPCMediator.php", - methods:[ { name:"contentB" } ] - }; - - this.svc = new JsonService(testSmd); - }, - runTest: function(){ - var d = new doh.Deferred(); - var td = this.svc.contentB(); - - if (window.location.protocol=="file:"){ - var err= new Error("This Test requires a webserver and PHP and will fail intentionally if loaded from file://"); - d.errback(err); - return d; - } - - td.addCallbacks(function(result){ - if(result=="

Content B

"){ - return true; - }else{ - return new Error("JsonRpc-EmpytParamTest test failed, resultant content didn't match"); - } - }, function(result){ - return new Error(result); - }); - - td.addBoth(d, "callback"); - - return d; - } - }, - - { - name: "JsonRPC_SMD_Loading_test", - setUp: function(){ - this.svc = new JsonService("../../dojo/tests/resources/testClass.smd"); - }, - runTest: function(){ - - if (this.svc.objectName=="testClass"){ - return true; - }else{ - return new Error("Error loading and/or parsing an smd file"); - } - } - } - ]); - -}); diff --git a/tests/services/main.js b/tests/services/main.js new file mode 100644 index 0000000000..ac5cf78e7e --- /dev/null +++ b/tests/services/main.js @@ -0,0 +1,139 @@ +define([ + 'require', + 'exports', + './util', + 'intern/dojo/errors/CancelError', + 'intern/dojo/node!http', + 'intern/dojo/node!url', + 'intern/dojo/node!querystring', + 'intern/dojo/node!glob', + 'intern/dojo/node!http-proxy', + 'intern/dojo/node!jsgi-node', + 'intern/dojo/node!jsgi-node/jsgi/node', + 'intern/dojo/node!formidable' +], function (require, exports, util, CancelError, http, url, qs, glob, httpProxy, jsgi, node, formidable) { + var nodeWrapper = node.Node, + proxy = new httpProxy.RoutingProxy(); + + require = (function (require) { + return function (dep) { + return new util.Promise(function (resolve) { + require([ dep ], function (module) { + resolve(module); + }); + }); + }; + })(require); + + function Multipart(nextApp) { + // summary: + // Returns JSGI middleware for handling multi-part forms. + // If a multi-part request is detected, a promise will be added + // to the request object at the "data" property. It will resolve + // to the fields sent in the multi-part request. + var multipartRE = /^multipart\/form-data;/; + + return function (request) { + var headers = request.headers; + if (headers['content-type'] && multipartRE.test(headers['content-type'])) { + request.data = new util.Promise(function (resolve, reject) { + nodeWrapper(function (nodeRequest) { + var parser = new formidable.IncomingForm(); + parser.parse(nodeRequest, function (err, fields, files) { + if (err) { + reject(err); + } + for (var key in files) { + fields[key] = files[key]; + } + resolve(fields); + }); + })(request); + }); + } + + return nextApp(request); + }; + } + + exports.start = function (port) { + return util.call(glob, '**/*.service.js', { + cwd: './tests/services' + }).then(function (files) { + return util.map(files, function (filename) { + return require('./' + filename.slice(0, -3)).then(function (module) { + var name = filename.slice(0, -11); + return { + regexp: new RegExp('^\/' + name.replace(/\//g, '\\/') + '(\\/.*)?$'), + module: module + }; + }); + }); + }).then(function (services) { + var serviceRE = /^\/__services(\/.*)$/, + servicesHandler = new jsgi.Listener(new Multipart(function (request) { + var urlInfo = url.parse(request.pathInfo, true), + query = qs.parse(request.queryString), + pathInfo = urlInfo.pathname.match(serviceRE), + serviceURL = pathInfo && pathInfo[1], + response; + + if (serviceURL) { + request.urlInfo = urlInfo; + request.query = query; + request.serviceURL = serviceURL; + + services.some(function (service) { + var match = serviceURL.match(service.regexp); + if (match) { + request.urlInfo.pathname = match[1]; + response = service.module.call(null, request); + return true; + } + }); + } + + if (!response) { + return { + status: 500, + headers: { + 'Content-Type': 'text/html;charset=utf-8' + }, + body: [ + 'No services' + + 'No services' + ] + }; + } + else if (typeof response.then === 'function') { + return response.then(function (data) { + return data; + }, function (error) { + if (error instanceof CancelError) { + // Handle any canceled promises, like from a canceled request + return { + body: [ '' ] + }; + } + throw error; + }); + } + return response; + })); + var server = http.createServer(function (request, response) { + if (request.url.indexOf('/__services/') === 0) { + servicesHandler(request, response); + } + else { + proxy.proxyRequest(request, response, { + host: 'localhost', + port: 9000 + }); + } + }); + server.listen(port || 9001); + + return server; + }); + }; +}); diff --git a/tests/services/request/iframe.service.js b/tests/services/request/iframe.service.js new file mode 100644 index 0000000000..e864781300 --- /dev/null +++ b/tests/services/request/iframe.service.js @@ -0,0 +1,111 @@ +define([ + '../util', + 'intern/dojo/node!querystring' +], function (util, qs) { + function xml() { + return { + status: 200, + headers: { + 'Content-Type': 'text/xml' + }, + body: [ + '\n', + '\n', + '\n', + 'FOO\n', + 'BAR\n', + 'BAZ\n', + 'BAT\n', + '\n', + 'bar){ /* whatever */ }\n', + '}\n', + '}\n', + ']]>\n', + 'something else\n', + '' + ] + }; + } + + function html(data) { + return { + status: 200, + headers: { + 'Content-Type': 'text/html' + }, + body: [ + '', + '', + '', + data, + '', + '' + ] + }; + } + + function textarea(data) { + return ''; + } + + return function (request) { + var promise = new util.Promise(function (resolve) { + function respond(data) { + if (request.query.type === 'html') { + data = '

SUCCESSFUL HTML response

'; + } + else { + if (request.query.type === 'json') { + data = JSON.stringify({ + method: request.method, + query: request.query, + payload: data + }); + } + else if (request.query.type === 'javascript') { + data = 'window.iframeTestingFunction = function(){ return 42; };'; + } + else if (request.query.text) { + data = request.query.text; + } + else { + data = 'iframe succeeded'; + } + data = textarea(data); + } + resolve(html(data)); + } + + if (request.query.type === 'xml') { + resolve(xml()); + return; + } + + if (request.data) { + request.data.then(respond); + return; + } + + if (request.method !== 'GET') { + request.body.join().then(function (data) { + data = qs.parse(data); + respond(data); + }); + return; + } + + respond(); + }); + + var milliseconds = request.query.delay; + if (milliseconds) { + milliseconds = parseInt(milliseconds, 10); + promise = util.delay(promise, milliseconds); + } + + return promise; + }; +}); diff --git a/tests/services/request/script.service.js b/tests/services/request/script.service.js new file mode 100644 index 0000000000..440bd647b3 --- /dev/null +++ b/tests/services/request/script.service.js @@ -0,0 +1,49 @@ +define([ + '../util' +], function (util) { + function JSONP(callback, data) { + return callback + '(' + JSON.stringify(data) + ');'; + } + + function checkString(variable, data) { + return 'var ' + variable + ' = ' + JSON.stringify(data) + ';'; + } + + function scriptVar(variable) { + return 'var ' + variable + ' = "loaded";'; + } + + return function (request) { + var promise = new util.Promise(function (resolve) { + var data = ''; + + if (request.query.callback) { + data = JSONP(request.query.callback, { animalType: 'mammal' }); + } + else if (request.query.checkString) { + data = checkString(request.query.checkString, [ 'Take out trash.', 'Do dishes.', 'Brush teeth.' ]); + } + else if (request.query.scriptVar) { + data = scriptVar(request.query.scriptVar); + } + + resolve({ + status: 200, + headers: { + 'Content-Type': 'application/x-javascript' + }, + body: [ + data + ] + }); + }); + + var milliseconds = request.query.delay; + if (milliseconds) { + milliseconds = parseInt(milliseconds, 10); + promise = util.delay(promise, milliseconds); + } + + return promise; + }; +}); diff --git a/tests/request/blob.gif b/tests/services/request/support/blob.gif similarity index 100% rename from tests/request/blob.gif rename to tests/services/request/support/blob.gif diff --git a/tests/request/document.html b/tests/services/request/support/document.html similarity index 100% rename from tests/request/document.html rename to tests/services/request/support/document.html diff --git a/tests/services/request/xhr.service.js b/tests/services/request/xhr.service.js new file mode 100644 index 0000000000..4c7abce4ca --- /dev/null +++ b/tests/services/request/xhr.service.js @@ -0,0 +1,100 @@ +define([ + 'require', + '../util', + 'intern/dojo/node!querystring', + 'intern/dojo/node!fs' +], function (require, util, qs, fs) { + function xml() { + return { + status: 200, + headers: { + 'Content-Type': 'application/xml' + }, + body: [ + '', + 'blarghblah' + ] + }; + } + + function responseType(filename, mimeType) { + return util.call(fs.readFile, filename).then(function (buffer) { + return { + status: 200, + headers: { + 'Content-Type': mimeType + }, + body: [ + buffer.toString() + ] + }; + }); + } + + return function (request) { + var promise = new util.Promise(function (resolve) { + function respond(data) { + resolve({ + status: 200, + headers: { + 'Content-Type': 'application/json' + }, + body: [ + JSON.stringify({ + method: request.method, + query: request.query, + headers: request.headers, + payload: data || null + }) + ] + }); + } + + if (request.serviceURL.indexOf('/xml') > -1) { + resolve(xml(request)); + return; + } + + if (request.serviceURL.indexOf('/responseTypeGif') > -1) { + resolve(responseType(require.toUrl('./support/blob.gif'), 'image/gif')); + return; + } + if (request.serviceURL.indexOf('/responseTypeDoc') > -1) { + resolve(responseType(require.toUrl('./support/document.html'), 'text/html')); + return; + } + + if (request.data) { + resolve(request.data.then(function (data) { + return { + status: 200, + headers: { + 'Content-Type': 'application/json' + }, + body: [ + JSON.stringify(data) + ] + }; + })); + return; + } + + if (request.method !== 'GET') { + request.body.join().then(function (data) { + respond(qs.parse(data)); + }); + } + else { + respond(); + } + }); + + var milliseconds = request.query.delay; + if (milliseconds) { + milliseconds = parseInt(milliseconds, 10); + promise = util.delay(promise, milliseconds); + } + + return promise; + }; +}); diff --git a/tests/services/rpc/json.service.js b/tests/services/rpc/json.service.js new file mode 100644 index 0000000000..f8c40a4b37 --- /dev/null +++ b/tests/services/rpc/json.service.js @@ -0,0 +1,57 @@ +define([], function () { + var handlers = { + myecho: function (params) { + return '

' + params[0] + '

'; + }, + contentB: function () { + return '

Content B

'; + }, + contentC: function () { + return '

Content C

'; + }, + add: function (params) { + return params[0] + params[1]; + } + }; + + return function (request) { + var input = ''; + return request.body.forEach(function (string) { + input += string; + }).then(function () { + if (!input) { + return { + status: 400, + headers: { 'Content-Type': 'application/json' }, + body: [ JSON.stringify({ error: 'No data provided' }) ] + }; + } + + try { + var data = JSON.parse(input); + var response = { id: data.id, error: null }; + + if (data.method === 'triggerRpcError') { + response.error = 'Triggered RPC Error test'; + } + else { + response.result = handlers[data.method](data.params); + } + return { + status: 200, + headers: { + 'Content-Type': 'application/json' + }, + body: [ JSON.stringify(response) ] + }; + } + catch (error) { + return { + status: 400, + headers: { 'Content-Type': 'application/json' }, + body: [ JSON.stringify({ error: 'Bad data: ' + input }) ] + }; + } + }); + }; +}); diff --git a/tests/services/rpc/jsonp.service.js b/tests/services/rpc/jsonp.service.js new file mode 100644 index 0000000000..857dfd7fbb --- /dev/null +++ b/tests/services/rpc/jsonp.service.js @@ -0,0 +1,16 @@ +define([], function () { + return function (request) { + var response = {}; + + if (request.query.query === 'dojotoolkit') { + response.url = 'dojotoolkit.org/'; + } + return { + status: 200, + headers: { + 'Content-Type': 'application/json' + }, + body: [ request.query.callback + '(' + JSON.stringify(response) + ');' ] + }; + }; +}); diff --git a/tests/services/util.js b/tests/services/util.js new file mode 100644 index 0000000000..63e7249e8f --- /dev/null +++ b/tests/services/util.js @@ -0,0 +1,99 @@ +define([ + 'exports', + 'intern/dojo/_base/lang', + 'intern/dojo/_base/array', + 'intern/dojo/Deferred', + 'intern/dojo/errors/CancelError', + 'intern/dojo/promise/Promise', + 'intern/dojo/promise/all' +], function (exports, lang, array, Deferred, CancelError, DojoPromise, all) { + exports.Promise = function Promise(executor) { + var canceler; + var dfd = new Deferred(function (reason) { + if (canceler) { + return canceler(reason); + } + else { + return new CancelError('canceled'); + } + }); + + try { + executor( + lang.hitch(dfd, 'resolve'), + lang.hitch(dfd, 'reject'), + lang.hitch(dfd, 'progress'), + function (_canceler) { + canceler = _canceler; + } + ); + } + catch (e) { + dfd.reject(e); + } + + return dfd.promise; + }; + + exports.Promise.reject = function (error) { + var dfd = new Deferred(); + dfd.reject(error); + return dfd.promise; + }; + + exports.Promise.resolve = function (value) { + if (value instanceof DojoPromise) { + return value; + } + if (value instanceof Deferred) { + return value.promise; + } + + var dfd = new Deferred(); + if (value && typeof value.then === 'function') { + value.then( + lang.hitch(dfd, 'resolve'), + lang.hitch(dfd, 'reject'), + lang.hitch(dfd, 'progress') + ); + } + else { + dfd.resolve(value); + } + return dfd.promise; + }; + + exports.map = function (values, callback) { + return all( + array.map(values, function (value, index) { + return exports.Promise.resolve(value).then(function (value) { + return callback(value, index); + }); + }) + ); + }; + + exports.delay = function (value, milliseconds) { + var promise = exports.Promise.resolve(value); + return new exports.Promise(function (resolve, reject, progress) { + setTimeout(function () { + promise.then(resolve, reject, progress); + }, milliseconds); + }); + }; + + exports.call = function (func) { + var args = Array.prototype.slice.call(arguments, 1); + return exports.Promise(function (resolve, reject) { + args.push(function (err, value) { + if (err) { + reject(err); + } + else { + resolve(value); + } + }); + func.apply(this, args); + }); + }; +}); diff --git a/tests/store.js b/tests/store.js deleted file mode 100644 index b5f23d95b8..0000000000 --- a/tests/store.js +++ /dev/null @@ -1,8 +0,0 @@ -define([ - "dojo/tests/store/Memory", - "dojo/tests/store/DataStore", - "dojo/tests/store/Observable", - "dojo/tests/store/Cache", - "dojo/has!host-browser?dojo/tests/store/JsonRest"], 1); - - diff --git a/tests/store/Cache.js b/tests/store/Cache.js deleted file mode 100644 index 8d18c8fc7c..0000000000 --- a/tests/store/Cache.js +++ /dev/null @@ -1,94 +0,0 @@ -define(["doh", "dojo/store/Memory", "dojo/store/Cache"], function(doh, Memory, Cache){ - - var masterStore = new Memory({ - data: [ - {id: 1, name: "one", prime: false}, - {id: 2, name: "two", even: true, prime: true}, - {id: 3, name: "three", prime: true}, - {id: 4, name: "four", even: true, prime: false}, - {id: 5, name: "five", prime: true} - ] - }); - var cachingStore = new Memory(); - var options = {}; - var store = Cache(masterStore, cachingStore, options); - doh.register("dojo.tests.store.Cache", - [ - function testGet(t){ - t.is(store.get(1).name, "one"); - t.is(cachingStore.get(1).name, "one"); // second one should be cached - t.is(store.get(1).name, "one"); - t.is(store.get(4).name, "four"); - t.is(cachingStore.get(4).name, "four"); - t.is(store.get(4).name, "four"); - }, - function testQuery(t){ - options.isLoaded = function(){ return false;}; - t.is(store.query({prime: true}).length, 3); - t.is(store.query({even: true})[1].name, "four"); - t.is(cachingStore.get(3), undefined); - options.isLoaded = function(){ return true;}; - t.is(store.query({prime: true}).length, 3); - t.is(cachingStore.get(3).name, "three"); - }, - function testQueryWithSort(t){ - t.is(store.query({prime: true}, {sort:[{attribute:"name"}]}).length, 3); - t.is(store.query({even: true}, {sort:[{attribute:"name"}]})[1].name, "two"); - }, - function testPutUpdate(t){ - var four = store.get(4); - four.square = true; - store.put(four); - four = store.get(4); - t.t(four.square); - four = cachingStore.get(4); - t.t(four.square); - four = masterStore.get(4); - t.t(four.square); - }, - function testPutNew(t){ - store.put({ - id: 6, - perfect: true - }); - t.t(store.get(6).perfect); - t.t(cachingStore.get(6).perfect); - t.t(masterStore.get(6).perfect); - }, - function testAddDuplicate(t){ - var threw; - try{ - store.add({ - id: 6, - perfect: true - }); - }catch(e){ - threw = true; - } - t.t(threw); - }, - function testAddNew(t){ - store.add({ - id: 7, - prime: true - }); - t.t(store.get(7).prime); - t.t(cachingStore.get(7).prime); - t.t(masterStore.get(7).prime); - }, - function testResultsFromMaster(t){ - var originalAdd = masterStore.add; - masterStore.add = function(object){ - return { - test: "value" - }; - }; - t.is(store.add({ - id: 7, - prop: "doesn't matter" - }).test, "value"); - masterStore.add = originalAdd; - } - ] - ); -}); diff --git a/tests/store/DataStore.js b/tests/store/DataStore.js deleted file mode 100644 index d69d802718..0000000000 --- a/tests/store/DataStore.js +++ /dev/null @@ -1,111 +0,0 @@ -define(["doh", "dojo/store/DataStore", "dojo/data/ItemFileReadStore", "dojo/data/ItemFileWriteStore"], - function(doh, DataStore, ItemFileReadStore, ItemFileWriteStore){ - - var two = {id: 2, name: "two", even: true, prime: true}, - four = {id: 4, name: "four", even: true, prime: false}; - - var dataStore = new ItemFileWriteStore({data:{ - items: [ - {id: 1, name: "one", prime: false}, - {id: 2, name: "two", even: true, prime: true}, - {id: 3, name: "three", prime: true}, - {id: 4, name: "four", even: true, prime: false}, - {id: 5, name: "five", prime: true, - children:[{_reference:1}, {_reference:2}, {_reference:3}]} - ], - identifier:"id" - }}); - dataStore.fetchItemByIdentity({identity:null}); - var store = new DataStore({store:dataStore}); - doh.register("dojo.tests.store.DataStore", - [ - function testGet(t){ - t.is(store.get(1).name, "one"); - t.is(store.get(4).name, "four"); - t.t(store.get(5).prime); - t.is(store.get(5).children[1].name, "two"); - }, - function testGetNonExistent(t){ - t.is(store.get(10), undefined); - }, - function testQuery1(t){ - var d = new doh.Deferred(); - store.query({prime: true}).then(d.getTestCallback(function(results){ - t.is(results.length, 3); - t.is(results[2].children[2].name, "three"); - })); - return d; - }, - function testQuery2(t){ - var d = new doh.Deferred(); - var result = store.query({even: true}); - result.map(d.getTestErrback(function(object){ - for(var i in object){ - t.is(object[i], (object.id == 2 ? two : four)[i], "map of " + i); - } - })); - result.then(d.getTestCallback(function(results){ - t.is("four", results[1].name, "then"); - })); - return d; - }, - function testPutUpdate(t){ - var four = store.get(4); - four.square = true; - store.put(four); - four = store.get(4); - t.t(four.square); - }, - function testPutNew(t){ - store.put({ - id: 6, - perfect: true - }); - t.t(store.get(6).perfect); - }, - function testAdd(t){ - store.add({ - id: 7, - name: "seven" - }); - t.is(store.get(7).name, "seven"); - }, - function testAddExisting(t){ - return store.add({ - id: 7, - name: "seven" - }).then(function(){ - t.error("Add existing did not fail"); - }, function(){ - console.log("Add existing failed, as expected"); - }); - }, - function testOverwriteNew(t){ - return store.put({ - id: 8, - name: "eight" - }, { - overwrite: true - }).then(function(){ - t.error("Updating new did not fail"); - }, function(){ - console.log("Updating new failed, as expected"); - }); - }, - function testRemove(t){ - return store.remove(7).then(function(result){ - t.t(result); - }).then(function(result){ - // second time should return false - return store.remove(7); - }).then(function(result){ - t.f(result); - }); - }, - function testNoWriteFeature(t){ - var readOnlyStore = new DataStore({store:new ItemFileReadStore({})}); - t.f(readOnlyStore.put); - } - ] - ); -}); diff --git a/tests/store/JsonRest.js b/tests/store/JsonRest.js deleted file mode 100644 index ed2c18c48c..0000000000 --- a/tests/store/JsonRest.js +++ /dev/null @@ -1,110 +0,0 @@ -define(["doh/main", "require", "dojo/_base/lang", "dojo/store/JsonRest"], function(doh, require, lang, JsonRest){ - var globalHeaders = { - "test-global-header-a": true, - "test-global-header-b": "yes" - }, - requestHeaders = { - "test-local-header-a": true, - "test-local-header-b": "yes", - "test-override": "overridden" - }, - store = new JsonRest({ - target: require.toUrl("dojo/tests/store/x.y").match(/(.+)x\.y$/)[1], - headers: lang.mixin({ "test-override": false }, globalHeaders) - }); - - doh.register("tests.store.JsonRest", - [ - function testGet(t){ - var d = new doh.Deferred(); - store.get("node1.1").then(function(object){ - t.is(object.name, "node1.1"); - t.is(object.someProperty, "somePropertyA1"); - d.callback(true); - }); - return d; - }, - function testQuery(t){ - var d = new doh.Deferred(); - store.query("treeTestRoot").then(function(results){ - var object = results[0]; - t.is(object.name, "node1"); - t.is(object.someProperty, "somePropertyA"); - d.callback(true); - }); - return d; - }, - function _getTarget(t){ - // make sure it works without the trailing slash - store.target = store.target.slice(0, -1); - t.is(store.target + "/foo", store._getTarget("foo")); - // and with the slash - store.target = store.target + '/'; - t.is(store.target + "foo", store._getTarget("foo")); - }, - function testQueryIterative(t){ - var d = new doh.Deferred(); - var i = 0; - store.query("treeTestRoot").forEach(function(object){ - i++; - console.log(i); - t.is(object.name, "node" + i); - }).then(function(){ - d.callback(true); - }); - return d; - }, - function testHeaders(t){ - var d = new doh.Deferred(), - error, - expected = 0, - received = 0; - - // NOTE: Because HTTP headers are case-insensitive they should always be provided as all-lowercase - // strings to simplify testing. - function runTest(method, args){ - expected++; - - store[method].apply(store, args).then(function(result){ - received++; - - if(error){ - return; - } - - var k; - - for(k in requestHeaders){ - if(!result.headers.hasOwnProperty(k) || "" + result.headers[k] !== "" + requestHeaders[k]){ - error = true; - d.errback(new Error("Header mismatch in " + method + ": " + k)); - return; - } - } - - for(k in globalHeaders){ - if(!result.headers.hasOwnProperty(k) || "" + result.headers[k] !== "" + globalHeaders[k]){ - error = true; - d.errback(new Error("Global header mismatch in " + method + ": " + k)); - return; - } - } - - if(expected === received){ - d.callback(true); - } - }); - } - - runTest("get", [ "index.php", requestHeaders ]); - runTest("get", [ "index.php", { headers: requestHeaders } ]); - runTest("remove", [ "index.php", { headers: requestHeaders } ]); - runTest("query", [ {}, { headers: requestHeaders, start: 20, count: 42 } ]); - runTest("put", [ {}, { headers: requestHeaders } ]); - runTest("add", [ {}, { headers: requestHeaders } ]); - - return d; - } - ] - ); -}); diff --git a/tests/store/Memory.js b/tests/store/Memory.js deleted file mode 100644 index 1a1ee56263..0000000000 --- a/tests/store/Memory.js +++ /dev/null @@ -1,121 +0,0 @@ -define(["doh", "dojo/store/Memory"], function(doh, Memory){ - var store = new Memory({ - data: [ - {id: 1, name: "one", prime: false, mappedTo: "E", date: new Date(1970, 0, 1) }, - {id: 2, name: "two", even: true, prime: true, mappedTo: "D", date: new Date(1980, 1, 2) }, - {id: 3, name: "three", prime: true, mappedTo: "C", date: new Date(1990, 2, 3) }, - {id: 4, name: "four", even: true, prime: false, mappedTo: null, date: new Date(1972, 3, 6, 12, 1) }, - {id: 5, name: "five", prime: true, mappedTo: "A", date: new Date(1972, 3, 6, 6, 2) } - ] - }); - doh.register("dojo.tests.store.Memory", - [ - function testGet(t){ - t.is(store.get(1).name, "one"); - t.is(store.get(4).name, "four"); - t.t(store.get(5).prime); - }, - function testQuery(t){ - t.is(store.query({prime: true}).length, 3); - t.is(store.query({even: true})[1].name, "four"); - }, - function testQueryWithString(t){ - t.is(store.query({name: "two"}).length, 1); - t.is(store.query({name: "two"})[0].name, "two"); - }, - function testQueryWithRegExp(t){ - t.is(store.query({name: /^t/}).length, 2); - t.is(store.query({name: /^t/})[1].name, "three"); - t.is(store.query({name: /^o/}).length, 1); - t.is(store.query({name: /o/}).length, 3); - }, - function testQueryWithTestFunction(t){ - t.is(store.query({id: {test: function(id){ return id < 4;}}}).length, 3); - t.is(store.query({even: {test: function(even, object){ return even && object.id > 2;}}}).length, 1); - }, - function testQueryWithSort(t){ - t.is(store.query({prime: true}, {sort:[{attribute:"name"}]}).length, 3); - t.is(store.query({even: true}, {sort:[{attribute:"name"}]})[1].name, "two"); - t.is(store.query({even: true}, {sort:function(a, b){ - return a.name < b.name ? -1 : 1; - }})[1].name, "two"); - t.is(store.query(null, {sort:[{attribute:"mappedTo"}]})[4].name, "four"); - - t.is([ 1, 5, 4, 2, 3 ], store.query({}, { sort: [ { attribute: "date", descending: false } ] }).map(function (item) { - return item.id; - })); - }, - function testQueryWithPaging(t){ - t.is(store.query({prime: true}, {start: 1, count: 1}).length, 1); - t.is(store.query({even: true}, {start: 1, count: 1})[0].name, "four"); - }, - function testPutUpdate(t){ - var four = store.get(4); - four.square = true; - store.put(four); - four = store.get(4); - t.t(four.square); - }, - function testPutNew(t){ - store.put({ - id: 6, - perfect: true - }); - t.t(store.get(6).perfect); - }, - function testAddDuplicate(t){ - var threw; - try{ - store.add({ - id: 6, - perfect: true - }); - }catch(e){ - threw = true; - } - t.t(threw); - }, - function testAddNew(t){ - store.add({ - id: 7, - prime: true - }); - t.t(store.get(7).prime); - }, - function testRemove(t){ - t.t(store.remove(7)); - t.is(store.get(7), undefined); - }, - function testRemoveMissing(t){ - t.f(store.remove(77)); - // make sure nothing changed - t.is(store.get(1).id, 1); - }, - function testQueryAfterChanges(t){ - t.is(store.query({prime: true}).length, 3); - t.is(store.query({perfect: true}).length, 1); - }, - function testIFRSStyleData(t){ - var anotherStore = new Memory({ - data: { - items:[ - {name: "one", prime: false}, - {name: "two", even: true, prime: true}, - {name: "three", prime: true} - ], - identifier: "name" - } - }); - t.is(anotherStore.get("one").name,"one"); - t.is(anotherStore.query({name:"one"})[0].name,"one"); - }, - function testAddNewIdAssignment(t){ - var object = { - random: true - }; - store.add(object); - t.t(!!object.id); - } - ] - ); -}); diff --git a/tests/store/Observable.js b/tests/store/Observable.js deleted file mode 100644 index 38a8b641a0..0000000000 --- a/tests/store/Observable.js +++ /dev/null @@ -1,156 +0,0 @@ -define([ - "doh", - "dojo/_base/array", "dojo/_base/declare", "dojo/_base/lang", - "dojo/store/Memory", "dojo/store/Observable" -], function(doh, array, declare, lang, Memory, Observable){ - - var MyStore = declare([Memory], { - get: function(){ - // need to make sure that this.inherited still works with Observable - return this.inherited(arguments); - } - }); - var memoryStore, store = new Observable(memoryStore = new MyStore({ /*dojo.store.Memory*/ - data: [ - {id: 0, name: "zero", even: true, prime: false}, - {id: 1, name: "one", prime: false}, - {id: 2, name: "two", even: true, prime: true}, - {id: 3, name: "three", prime: true}, - {id: 4, name: "four", even: true, prime: false}, - {id: 5, name: "five", prime: true} - ] - })); - var data = [], i; - for(i = 1; i <= 100; i++){ - data.push({id: i, name: "item " + i, order: i}); - } - var bigStore = Observable(new Memory({data:data})); - doh.register("dojo.tests.store.Observable", - [ - function testGet(t){ - t.is(store.get(1).name, "one"); - t.is(store.get(4).name, "four"); - t.t(store.get(5).prime); - }, - function testQuery(t){ - var results = store.query({prime: true}); - t.is(results.length, 3); - var changes = [], secondChanges = []; - var observer = results.observe(function(object, previousIndex, newIndex){ - changes.push({previousIndex:previousIndex, newIndex:newIndex, object:object}); - }); - var secondObserver = results.observe(function(object, previousIndex, newIndex){ - secondChanges.push({previousIndex:previousIndex, newIndex:newIndex, object:object}); - }); - var expectedChanges = [], - expectedSecondChanges = []; - var two = results[0]; - two.prime = false; - store.put(two); // should remove it from the array - t.is(results.length, 2); - expectedChanges.push({ - previousIndex: 0, - newIndex: -1, - object:{ - id: 2, - name: "two", - even: true, - prime: false - } - }); - expectedSecondChanges.push(expectedChanges[expectedChanges.length - 1]); - secondObserver.cancel(); - var one = store.get(1); - one.prime = true; - store.put(one); // should add it - expectedChanges.push({ - previousIndex: -1, - "newIndex":2, - object:{ - id: 1, - name: "one", - prime: true - } - }); - t.is(results.length, 3); - store.add({// shouldn't be added - id:6, name:"six" - }); - t.is(results.length, 3); - store.add({// should be added - id:7, name:"seven", prime:true - }); - t.is(results.length, 4); - - expectedChanges.push({ - previousIndex: -1, - "newIndex":3, - "object":{ - id:7, name:"seven", prime:true - } - }); - store.remove(3); - expectedChanges.push({ - "previousIndex":0, - newIndex: -1, - object: {id: 3, name: "three", prime: true} - }); - t.is(results.length, 3); - - observer.remove(); // shouldn't get any more calls - store.add({// should not be added - id:11, name:"eleven", prime:true - }); - t.is(secondChanges, expectedSecondChanges); - t.is(changes, expectedChanges); - }, - function testQueryWithZeroId(t){ - var results = store.query({}); - t.is(results.length, 8); - var observer = results.observe(function(object, previousIndex, newIndex){ - // we only do puts so previous & new indices must always been the same - // unfortunately if id = 0, the previousIndex - console.log("called with: "+previousIndex+", "+newIndex); - t.is(previousIndex, newIndex); - }, true); - store.put({id: 5, name: "-FIVE-", prime: true}); - store.put({id: 0, name: "-ZERO-", prime: false}); - }, - function testPaging(t){ - var results, opts = {count: 25, sort: [{attribute: "order"}]}; - results = window.results = [ - bigStore.query({}, lang.delegate(opts, {start: 0})), - bigStore.query({}, lang.delegate(opts, {start: 25})), - bigStore.query({}, lang.delegate(opts, {start: 50})), - bigStore.query({}, lang.delegate(opts, {start: 75})) - ]; - var observations = []; - array.forEach(results, function(r, i){ - r.observe(function(obj, from, to){ - observations.push({from: from, to: to}); - console.log(i, " observed: ", obj, from, to); - }, true); - }); - bigStore.add({id: 101, name: "one oh one", order: 2.5}); - t.is(results[0].length, 26); - t.is(results[1].length, 25); - t.is(results[2].length, 25); - t.is(results[3].length, 25); - t.is(observations.length, 1); - bigStore.remove(101); - t.is(observations.length, 2); - t.is(results[0].length, 25); - bigStore.add({id: 102, name: "one oh two", order: 26.5}); - t.is(results[0].length, 25); - t.is(results[1].length, 26); - t.is(results[2].length, 25); - t.is(observations.length, 3); - }, - function testType(t){ - t.f(memoryStore == store); - // TODO: use store.instanceOf() -// t.t(store instanceof Observable); - } - ] - ); -}); diff --git a/tests/store/index.php b/tests/store/index.php deleted file mode 100644 index 45d792def1..0000000000 --- a/tests/store/index.php +++ /dev/null @@ -1,23 +0,0 @@ - strtoupper($_SERVER["REQUEST_METHOD"]), - "headers" => array(), - "content" => null -); - -foreach($_SERVER as $key => $value){ - if(strpos($key, "HTTP_") === 0){ - $data["headers"][strtr(strtolower(substr($key, 5)), "_", "-")] = $value; - } -} - -if($data["method"] === "GET"){ - $data["content"] = $_GET; -}elseif($data["method"] === "PUT" || $data["method"] === "POST"){ - $data["content"] = json_decode(file_get_contents("php://input"), true); -} - -header("Content-Type: application/json"); -header("Cache-Control: no-cache"); -echo json_encode($data); \ No newline at end of file diff --git a/tests/store/runTests.html b/tests/store/runTests.html deleted file mode 100644 index 7fd9d51c55..0000000000 --- a/tests/store/runTests.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - Dojo Store D.O.H. Unit Test Runner - - - Redirecting to D.O.H runner. - - diff --git a/tests/string.js b/tests/string.js deleted file mode 100644 index 0d902e7054..0000000000 --- a/tests/string.js +++ /dev/null @@ -1,98 +0,0 @@ -define(["doh/main", "../string"], function(doh, string){ - -doh.register("tests.string", - [ - function test_string_pad(t){ - t.is("00001", string.pad("1", 5)); - t.is("000001", string.pad("000001", 5)); - t.is("10000", string.pad("1", 5, null, true)); - }, - - function test_string_substitute(t){ - t.is("File 'foo.html' is not found in directory '/temp'.", - string.substitute( - "File '${0}' is not found in directory '${1}'.", - ["foo.html","/temp"] - ) - ); - t.is("File 'foo.html' is not found in directory '/temp'.", - string.substitute( - "File '${name}' is not found in directory '${info.dir}'.", - { - name: "foo.html", - info: { dir: "/temp" } - } - ) - ); - // Verify that an error is thrown! - t.assertError(Error, string, "substitute", ["${x}", {y:1}]); - }, - - function test_string_substitute_transform(t){ - var getPrefix = function(str){ - // try to figure out the type - var prefix = (str.charAt(0) == "/") ? "directory": "file"; - if(this.____prefix){ - prefix = this.____prefix + prefix; - } - return prefix + " '" + str + "'"; - }; - - var obj = { - ____prefix: "...", - getPrefix: getPrefix - }; - - t.is("file 'foo.html' is not found in directory '/temp'.", - string.substitute( - "${0} is not found in ${1}.", - ["foo.html","/temp"], - getPrefix - ) - ); - - t.is("...file 'foo.html' is not found in ...directory '/temp'.", - string.substitute( - "${0} is not found in ${1}.", - ["foo.html","/temp"], - obj.getPrefix, obj - ) - ); - }, - - function test_string_substitute_formatter(t){ - t.is("thinger -- howdy", - string.substitute( - "${0:postfix}", ["thinger"], null, { - postfix: function(value, key){ - return value + " -- howdy"; - } - } - ) - ); - }, - - function test_string_trim(t){ - t.is("astoria", string.trim(" \f\n\r\t astoria ")); - t.is("astoria", string.trim("astoria ")); - t.is("astoria", string.trim(" astoria")); - t.is("astoria", string.trim("astoria")); - t.is("a", string.trim(" a ")); - }, - - function test_string_rep(t){ - t.is("aaaaa", string.rep("a", 5)); - t.is("abababab", string.rep("ab", 4)); - t.is("", string.rep("ab", 0)); - t.is("", string.rep("", 3)); - }, - - function test_string_escape(t){ - t.is("astoria", string.escape("astoria")); - t.is("&<>'/", string.escape("&<>'/")); - t.is('oh"oh"oh', string.escape('oh"oh"oh')); - } - ] -); - -}); diff --git a/tests/support/prerun.bat b/tests/support/prerun.bat new file mode 100644 index 0000000000..b0c972992d --- /dev/null +++ b/tests/support/prerun.bat @@ -0,0 +1,7 @@ +@ECHO OFF +REM The following command updates the local intranet, trusted sites, and +REM internet zones to disable cross-domain requests. By default, SauceLabs +REM enables the option for these zones. +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /v 1406 /t REG_DWORD /d 3 /f +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v 1406 /t REG_DWORD /d 3 /f +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /v 1406 /t REG_DWORD /d 3 /f diff --git a/tests/support/ready.js b/tests/support/ready.js new file mode 100644 index 0000000000..b8d1b27973 --- /dev/null +++ b/tests/support/ready.js @@ -0,0 +1,15 @@ +define([ + 'intern/dojo/node!leadfoot/helpers/pollUntil' +], function (pollUntil) { + function ready(remote, url, timeout) { + return remote + .get(url) + .then(pollUntil( + 'return typeof ready !== "undefined" ? ready : null;', + [], + typeof timeout === 'undefined' ? 5000 : timeout + )); + } + + return ready; +}); diff --git a/tests/support/undef.js b/tests/support/undef.js new file mode 100644 index 0000000000..5e8b8343e9 --- /dev/null +++ b/tests/support/undef.js @@ -0,0 +1,16 @@ +define([ + 'require', + 'intern!object', + 'intern/chai!assert' +], function (require, registerSuite, assert) { + var global = this; + + registerSuite({ + name: 'undef', + + 'test': function () { + assert.ok(global.require.undef); + assert.ok(require.undef); + } + }); +}); diff --git a/tests/test_touch.html b/tests/test_touch.html deleted file mode 100644 index d25daa12f5..0000000000 --- a/tests/test_touch.html +++ /dev/null @@ -1,463 +0,0 @@ - - - - - - Dojo Touch Testing - - - - - -
- test -
- inner test -
-
-
- touch.move -
-
- On touch devices, synthetic clicks are enabled in this area. -
- On touch devices, synthetic clicks disabled in this area. -
-
-
doh
-
-
-
- - diff --git a/tests/text.html b/tests/text.html deleted file mode 100644 index 53c16e4d99..0000000000 --- a/tests/text.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - dojo/text - - - - - - - diff --git a/tests/text.js b/tests/text.js deleted file mode 100644 index 9c85681123..0000000000 --- a/tests/text.js +++ /dev/null @@ -1,5 +0,0 @@ -define([ "doh", "dojo/has", "require" ], function (doh, has, require) { - if(has("host-browser")){ - doh.registerUrl("tests.text", require.toUrl("./text.html"), 30000); - } -}); diff --git a/tests/text.php b/tests/text.php deleted file mode 100644 index df8e085778..0000000000 --- a/tests/text.php +++ /dev/null @@ -1,11 +0,0 @@ - $value) { - if (strpos($key, 'HTTP_') === 0) { - $headers[strtolower(str_replace('_', '-', substr($key, 5)))] = $value; - } -} - -header('Content-Type: application/json'); -echo json_encode($headers); diff --git a/tests/throttle.js b/tests/throttle.js deleted file mode 100644 index 4195ad3571..0000000000 --- a/tests/throttle.js +++ /dev/null @@ -1,50 +0,0 @@ -define([ - "doh", "require", - "dojo/throttle" -], function(doh, require, throttle){ - doh.register("tests.throttle", [ - function throttleTest(){ - var throttledCount = {}, - throttleTest1 = throttle(function() { - throttledCount['test1'] = throttledCount['test1'] || 0; - throttledCount['test1']++; - }, 100), - throttleTest2 = throttle(function() { - throttledCount['test2'] = throttledCount['test2'] || 0; - throttledCount['test2']++; - }, 100); - - throttleTest1(); - throttleTest1(); - throttleTest1(); - - throttleTest2(); - setTimeout(function() { - throttleTest2(); - }, 40); - setTimeout(function() { - throttleTest2(); - }, 80); - setTimeout(function() { - throttleTest2(); - }, 120); - setTimeout(function() { - throttleTest2(); - }, 180); - setTimeout(function() { - throttleTest2(); - }, 220); - setTimeout(function() { - throttleTest2(); - }, 350); - - var deferred = new doh.Deferred(); - setTimeout(deferred.getTestCallback(function(){ - doh.is(1, throttledCount['test1']); - doh.is(3, throttledCount['test2']); - }), 500); - return deferred; - - } - ]); -}); diff --git a/tests/touch.js b/tests/touch.js deleted file mode 100644 index b03ba9af41..0000000000 --- a/tests/touch.js +++ /dev/null @@ -1,6 +0,0 @@ -define(["doh/main", "require"], function(doh, require){ - if(doh.isBrowser){ - doh.register("tests.touch", require.toUrl("./test_touch.html")); - } -}); - diff --git a/tests/uacss.js b/tests/uacss.js deleted file mode 100644 index 650811a0c8..0000000000 --- a/tests/uacss.js +++ /dev/null @@ -1,8 +0,0 @@ -define(["dojo/sniff", "doh", "require"], function(has, doh, require){ - - // IE9+ cannot handle quirks mode in test runner, see #14321 - has("ie") >= 9 || doh.register("tests.uacss.sniffQuirks", require.toUrl("./uacss/sniffQuirks.html")); - doh.register("tests.uacss.sniffStandards", require.toUrl("./uacss/sniffStandards.html")); - -}); - diff --git a/tests/unit/AdapterRegistry.js b/tests/unit/AdapterRegistry.js new file mode 100644 index 0000000000..1867d1598e --- /dev/null +++ b/tests/unit/AdapterRegistry.js @@ -0,0 +1,65 @@ +define([ + 'intern!object', + 'intern/chai!assert', + "../../AdapterRegistry" +], function (registerSuite, assert, AdapterRegistry) { + + registerSuite({ + name: 'dojo/AdapterRegistry', + + 'constructor': function () { + var registry = new AdapterRegistry(); + assert.strictEqual(registry.pairs.length, 0); + assert.isFalse(registry.returnWrappers); + + var registry = new AdapterRegistry(true); + assert.isTrue(registry.returnWrappers); + }, + '.register': function () { + var registry = new AdapterRegistry(); + registry.register("blah", + function(str){ return str == "blah"; }, + function(){ return "blah"; } + ); + assert.strictEqual(registry.pairs.length, 1); + assert.strictEqual(registry.pairs[0][0], "blah"); + + registry.register("thinger"); + registry.register("prepend", null, null, true, true); + assert.strictEqual(registry.pairs[0][0], "prepend"); + assert.isTrue(registry.pairs[0][3]); + }, + '.match' : { + 'no match': function () { + var registry = new AdapterRegistry(); + assert.throws(function() { + registry.match("blah"); + }); + }, + 'returnWrappers': function () { + var registry = new AdapterRegistry(); + registry.register("blah", + function(str){ return str == "blah"; }, + function(){ return "blah"; } + ); + assert.strictEqual(registry.match("blah"), "blah"); + + registry.returnWrappers = true; + assert.strictEqual(registry.match("blah")(), "blah"); + } + }, + '.unregister': function () { + var registry = new AdapterRegistry(); + registry.register("blah", + function(str){ return str == "blah"; }, + function(){ return "blah"; } + ); + registry.register("thinger"); + registry.register("prepend", null, null, true, true); + registry.unregister("prepend"); + assert.strictEqual(registry.pairs.length, 2); + assert.strictEqual(registry.pairs[0][0], "blah"); + } + }); + +}); diff --git a/tests/unit/Deferred.js b/tests/unit/Deferred.js new file mode 100644 index 0000000000..71683b000f --- /dev/null +++ b/tests/unit/Deferred.js @@ -0,0 +1,558 @@ +define([ + 'intern!object', + 'intern/chai!assert', + 'sinon', + '../../Deferred', + '../../promise/Promise', + '../../errors/CancelError' +], function (registerSuite, assert, sinon, Deferred, Promise, CancelError) { + registerSuite(function () { + var canceler; + var deferred; + + return { + name: 'dojo/Deferred', + + 'beforeEach': function () { + canceler = sinon.stub(); + deferred = new Deferred(canceler); + }, + + '.resolve': { + 'deferred receives result after resolving': function () { + var expected = {}; + + deferred.resolve(expected); + return deferred.then(function (result) { + assert.equal(result, expected); + }); + }, + + 'promise receives result after resolving': function () { + var expected = {}; + + deferred.resolve(expected); + return deferred.promise.then(function (result) { + assert.equal(result, expected); + }); + }, + + 'resolve() returns promise': function () { + var obj = {}; + var returnedPromise = deferred.resolve(obj); + + assert.instanceOf(returnedPromise, Promise); + assert.equal(returnedPromise, deferred.promise); + }, + + 'isResolved() returns true after resolving': function () { + assert.isFalse(deferred.isResolved()); + deferred.resolve(); + assert.isTrue(deferred.isResolved()); + }, + + 'isFulfilled() returns true after resolving': function () { + assert.isFalse(deferred.isFulfilled()); + deferred.resolve(); + assert.isTrue(deferred.isFulfilled()); + }, + + 'resolve() is ignored after having been fulfilled': function () { + assert.doesNotThrow(function () { + deferred.resolve(); + deferred.resolve(); + }); + }, + + 'resolve() throws error after having been fulfilled and strict': function () { + deferred.resolve(); + assert.throws(function () { + deferred.resolve({}, true); + }, Error); + }, + + 'resolve() watching success handlers are notified': function () { + var expected = {}; + var successHandler = sinon.spy(function (result) { + assert.equal(result, expected); + }); + + deferred.then(successHandler); + assert.isFalse(successHandler.called); + deferred.resolve(expected); + assert.isTrue(successHandler.called); + }, + + 'resolve() is already bound to the deferred': function () { + var expected = {}; + var resolve = deferred.resolve; + + resolve(expected); + return deferred.then(function (result) { + assert.equal(result, expected); + }); + } + }, + + '.reject': { + 'deferred receives result after rejecting': function () { + var expected = {}; + + deferred.reject(expected); + return deferred.then(null, function (result) { + assert.equal(result, expected); + }); + }, + + 'promise receives result after rejecting': function () { + var expected = {}; + + deferred.reject(expected); + return deferred.promise.then(null, function (result) { + assert.equal(result, expected); + + }); + }, + + 'reject() returns promise': function () { + var returnedPromise = deferred.reject({}); + + assert.instanceOf(returnedPromise, Promise); + assert.equal(returnedPromise, deferred.promise); + }, + + 'isRejected() returns true after rejecting': function () { + assert.isFalse(deferred.isRejected()); + deferred.reject(); + assert.isTrue(deferred.isRejected()); + }, + + 'isFulfilled() returns true after rejecting': function () { + assert.isFalse(deferred.isFulfilled()); + deferred.reject(); + assert.isTrue(deferred.isFulfilled()); + }, + + 'reject() is ignored after having been fulfilled': function () { + assert.doesNotThrow(function () { + deferred.reject(); + deferred.reject(); + }); + }, + + 'reject() throws error after having been fulfilled and strict': function () { + deferred.reject(); + assert.throws(function () { + deferred.reject({}, true); + }, Error); + }, + + 'reject() watching failure handlers are notified': function () { + var expected = {}; + var failureHandler = sinon.spy(function (result) { + assert.equal(result, expected); + }); + + deferred.then(null, failureHandler); + assert.isFalse(failureHandler.called); + deferred.reject(expected); + assert.isTrue(failureHandler.called); + }, + + 'reject() is already bound to the deferred': function () { + var expected = {}; + var reject = deferred.reject; + + reject(expected); + return deferred.then(null, function (result) { + assert.equal(result, expected); + }); + } + }, + '.progress': { + 'deferred receives result after progress': function () { + var expected = {}; + var progressStub = sinon.stub(); + + deferred.then(null, null, progressStub); + deferred.progress(expected); + assert.isTrue(progressStub.calledOnce); + assert.equal(progressStub.lastCall.args[0], expected); + }, + + 'promise receives result after progres': function () { + var expected = {}; + var progressStub = sinon.stub(); + + deferred.promise.then(null, null, progressStub); + deferred.progress(expected); + assert.isTrue(progressStub.calledOnce); + assert.equal(progressStub.lastCall.args[0], expected); + }, + + 'progress() returns promise': function () { + var returnedPromise = deferred.progress({}); + + assert.instanceOf(returnedPromise, Promise); + assert.equal(returnedPromise, deferred.promise); + }, + + 'isResolved() returns false after progress': function () { + assert.isFalse(deferred.isResolved()); + deferred.progress(); + assert.isFalse(deferred.isResolved()); + }, + + 'isRejected() returns false after progress': function () { + assert.isFalse(deferred.isRejected()); + deferred.progress(); + assert.isFalse(deferred.isRejected()); + }, + + 'isFulfilled() returns false after progress': function () { + assert.isFalse(deferred.isFulfilled()); + deferred.progress(); + assert.isFalse(deferred.isFulfilled()); + }, + + 'progress() is ignored after having been fulfilled': function () { + var progressStub = sinon.stub(); + + deferred.promise.then(null, null, progressStub); + deferred.resolve(); + deferred.progress(); + assert.isFalse(progressStub.called); + }, + + 'progress() throws error after having been fulfilled and strict': function () { + deferred.resolve(); + assert.throws(function () { + deferred.progress({}, true); + }, Error); + }, + + 'progress() results are not cached': function () { + var firstProgressData = {}; + var secondProgressData = {}; + var progressStub = sinon.stub(); + + deferred.progress(firstProgressData); + deferred.then(null, null, progressStub); + deferred.progress(secondProgressData); + assert.isTrue(progressStub.calledOnce); + assert.equal(progressStub.lastCall.args[0], secondProgressData); + }, + + 'progress() with chaining': function () { + var expected = {}; + var innerDfd = new Deferred(); + var progressStub = sinon.stub(); + + deferred + .then(function () { + return innerDfd; + }) + .then(null, null, progressStub); + + deferred.resolve(); + assert.isFalse(progressStub.called); + innerDfd.progress(expected); + assert.isTrue(progressStub.calledOnce); + assert.equal(progressStub.lastCall.args[0], expected); + }, + + 'after progress(), the progback return value is emitted on the returned promise': function () { + var promise = deferred.then(null, null, function (n) { + return n * n; + }); + var promiseStub = sinon.stub(); + + promise.then(null, null, promiseStub); + deferred.progress(2); + assert.equal(promiseStub.lastCall.args[0], 4); + }, + + 'progress() is already bound to the deferred': function () { + var progress = deferred.progress; + var progressStub = sinon.stub(); + + deferred.then(null, null, progressStub); + progress({}); + assert.isTrue(progressStub.called); + } + }, + '.cancel': { + 'cancel() invokes a canceler': function () { + deferred.cancel(); + assert.isTrue(canceler.called); + }, + + 'isCanceled() returns true after canceling': function () { + assert.isFalse(deferred.isCanceled()); + deferred.cancel(); + assert.isTrue(deferred.isCanceled()); + }, + + 'isResolved() returns false after canceling': function () { + assert.isFalse(deferred.isResolved()); + deferred.cancel(); + assert.isFalse(deferred.isResolved()); + }, + + 'isRejected() returns true after canceling': function () { + assert.isFalse(deferred.isRejected()); + deferred.cancel(); + assert.isTrue(deferred.isRejected()); + }, + + 'isFulfilled() returns true after canceling': function () { + assert.isFalse(deferred.isFulfilled()); + deferred.cancel(); + assert.isTrue(deferred.isFulfilled()); + }, + + 'cancel() is ignored after having been fulfilled': function () { + deferred.resolve(); + deferred.cancel(); + assert.isFalse(canceler.called); + }, + + 'cancel() throws error after having been fulfilled and strict': function () { + deferred.resolve(); + assert.throws(function () { + deferred.cancel(null, true); + }, Error); + }, + + 'cancel() without reason results in CancelError': function () { + var reason = deferred.cancel(); + + return deferred.then(null, function (result) { + assert.equal(result, reason); + assert.instanceOf(result, CancelError); + }); + }, + + 'cancel() returns default reason': function () { + assert.instanceOf(deferred.cancel(), CancelError); + }, + + 'reason is passed to canceler': function () { + var expected = {}; + + deferred.cancel(expected); + assert.equal(canceler.lastCall.args[0], expected); + }, + + 'cancels with reason returned from canceler': function () { + var expected = {}; + var reason = deferred.cancel(expected); + + assert.equal(reason, expected); + return deferred.then(null, function (result) { + assert.equal(result, expected); + }); + }, + + 'cancel() returns reason from canceler': function () { + var expected = {}; + + canceler.returns(expected); + assert.equal(deferred.cancel(), expected); + }, + + 'cancel() returns reason from canceler, if canceler rejects with reason': function () { + var expected = {}; + var canceler = function () { + deferred.reject(expected); + return expected; + }; + var deferred = new Deferred(canceler); + var reason = deferred.cancel(); + + assert.equal(reason, expected); + }, + + 'with canceler not returning anything, returns default CancelError': function () { + var canceler = function () { }; + var deferred = new Deferred(canceler); + var reason = deferred.cancel(); + + return deferred.then(null, function (result) { + assert.equal(result, reason); + assert.instanceOf(result, CancelError); + }); + }, + + 'with canceler not returning anything, still returns passed reason': function () { + var canceler = function () { }; + var deferred = new Deferred(canceler); + var expected = {}; + var reason = deferred.cancel(expected); + + assert.equal(reason, expected); + return deferred.then(null, function (result) { + assert.equal(result, expected); + }); + }, + + 'cancel() does not reject promise if canceler resolves deferred': function () { + var canceler = function () { + deferred.resolve(expected); + }; + var deferred = new Deferred(canceler); + var expected = {}; + + deferred.cancel(); + return deferred.then(function (result) { + assert.equal(result, expected); + }); + }, + + 'cancel() does not reject promise if canceler resolves a chain of promises': function () { + var canceler = function () { + deferred.resolve(expected); + }; + var deferred = new Deferred(canceler); + var expected = {}; + var lastPromise = deferred.then().then().then(); + + lastPromise.cancel(); + assert.isTrue(deferred.isCanceled()); + assert.isTrue(lastPromise.isCanceled()); + + return lastPromise.then(function (result) { + assert.equal(result, expected); + }); + }, + + 'cancel() returns undefined if canceler resolves deferred': function () { + var canceler = function() { + deferred.resolve({}); + }; + var deferred = new Deferred(canceler); + + assert.isUndefined(deferred.cancel()); + }, + + 'cancel() does not change rejection value if canceler rejects deferred': function () { + var canceler = function () { + deferred.reject(expected); + }; + var deferred = new Deferred(canceler); + var expected = {}; + + deferred.cancel(); + return deferred.then(null, function (result) { + assert.equal(result, expected); + }); + }, + + 'cancel() does not change rejection value if canceler rejects a chain of promises': function () { + var canceler = function () { + deferred.reject(expected); + }; + var deferred = new Deferred(canceler); + var expected = {}; + var lastPromise = deferred.then().then().then(); + + lastPromise.cancel(); + assert.isTrue(deferred.isCanceled()); + assert.isTrue(lastPromise.isCanceled()); + return lastPromise.then(null, function (result) { + assert.equal(result, expected); + }); + }, + + 'cancel() returns undefined if canceler rejects deferred': function () { + var canceler = function () { + deferred.reject({}); + }; + var deferred = new Deferred(canceler); + + assert.isUndefined(deferred.cancel()); + }, + + 'cancel() a promise chain': function () { + var cancelerStub = sinon.stub(); + var deferred = new Deferred(cancelerStub); + var expected = {}; + + deferred.then().then().then().cancel(expected); + assert.isTrue(cancelerStub.called); + assert.equal(cancelerStub.lastCall.args[0], expected); + }, + + 'cancel() a returned promise': function () { + var obj = {}; + var cancelerStub = sinon.stub(); + var inner = new Deferred(cancelerStub); + var chain = deferred.then(function () { + return inner; + }); + + deferred.resolve(); + chain.cancel(obj, true); + assert.isTrue(cancelerStub.calledOnce); + assert.equal(cancelerStub.lastCall.args[0], obj); + }, + + 'cancel() is already bound to the deferred': function () { + var cancel = deferred.cancel; + + cancel(); + return deferred.then(null, function (result) { + assert.instanceOf(result, CancelError); + }); + } + }, + + '.then': { + 'chained then()': function () { + function square(n) { + return n * n; + } + + deferred.resolve(2); + return deferred.then(square).then(square).then(function (n) { + assert.equal(n, 16); + }); + }, + + 'asynchronously chained then()': function () { + function asyncSquare(n) { + var inner = new Deferred(); + setTimeout(function () { + inner.resolve(n * n); + }, 0); + return inner.promise; + } + + deferred.resolve(2); + return deferred.then(asyncSquare).then(asyncSquare).then(function (n) { + assert.equal(n, 16); + }); + }, + + 'then() is already bound to the deferred': function () { + var expected = {}; + var then = deferred.then; + + deferred.resolve(expected); + return then(function (result) { + assert.equal(result, expected); + }); + }, + + 'then() with progback: returned promise is not fulfilled when progress is emitted': function () { + var progressStub = sinon.stub(); + var promise = deferred.then(null, null, progressStub); + + deferred.progress(); + assert.isTrue(progressStub.called, 'Progress was received.'); + assert.isFalse(promise.isFulfilled(), 'Promise is not fulfilled.'); + } + } + }; + }); +}); diff --git a/tests/unit/Evented.js b/tests/unit/Evented.js new file mode 100644 index 0000000000..67ed194443 --- /dev/null +++ b/tests/unit/Evented.js @@ -0,0 +1,75 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../Evented' +], function (registerSuite, assert, Evented) { + registerSuite({ + name: 'dojo/Evented', + + '.on and .emit': function () { + var evented = new Evented(), + emittedEvent, + listenerCallCount = 0; + + evented.on('test', function (actualEvent) { + listenerCallCount++; + assert.strictEqual(actualEvent.value, emittedEvent.value); + }); + + emittedEvent = { value: 'foo' }; + evented.emit('test', emittedEvent); + assert.strictEqual(listenerCallCount, 1); + + emittedEvent = { value: 'bar' }; + evented.emit('test', emittedEvent); + assert.strictEqual(listenerCallCount, 2); + }, + + 'on methods': function () { + var evented = new Evented(), + expectedEvent, + actualEvent; + + assert.notProperty(evented, 'ontestevent'); + evented.on('testevent', function (event) { + actualEvent = event; + }); + assert.property(evented, 'ontestevent'); + + expectedEvent = { value: 'test' }; + evented.ontestevent(expectedEvent); + assert.deepEqual(actualEvent, expectedEvent); + }, + + 'removing a listener': function () { + var evented = new Evented(), + listenerCalled = false; + + var handle = evented.on('test', function () { + listenerCalled = true; + }); + handle.remove(); + + evented.emit('test', { value: 'foo' }); + assert.isFalse(listenerCalled); + }, + + 'listener order': function () { + var evented = new Evented(); + var order = []; + + evented.ontestevent = function () { + order.push(1); + }; + evented.on('testevent', function () { + order.push(2); + }); + evented.on('testevent', function () { + order.push(3); + }); + + evented.emit('testevent', {}); + assert.deepEqual(order, [ 1, 2, 3 ]); + } + }); +}); diff --git a/tests/unit/NodeList-html.js b/tests/unit/NodeList-html.js new file mode 100644 index 0000000000..55d20c2eae --- /dev/null +++ b/tests/unit/NodeList-html.js @@ -0,0 +1,100 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../query', + '../../_base/kernel', + 'dojo/dom-construct', + 'dojo/_base/declare', + 'dojo/text!./support/html.template.html', + '../../NodeList-html', + '../../NodeList-dom' +], function (registerSuite, assert, query, dojo, domConstruct, declare, template) { + function deleteGlobal(name) { + window[name] = undefined; + try { + delete window[name]; + } catch(e) { /* ie is special */ } + } + + registerSuite(function () { + var container; + + return { + name: 'dojo/NodeList-html', + + 'before': function () { + declare('SimpleThing', null, { + constructor: function(params, node) { + node.setAttribute('test', 'ok'); + } + }); + }, + + 'beforeEach': function () { + container = domConstruct.place(template, document.body); + }, + + 'afterEach': function () { + document.body.removeChild(container); + container = null; + }, + + 'after': function () { + deleteGlobal('SimpleThing'); + }, + + 'simple query usage': function () { + var markup = '

expected

'; + var options = { onEnd: onEnd }; + + query('#container').html(markup, options); + + function onEnd() { + var node = query('#container p'); + assert.lengthOf(node, 1); + assert.strictEqual(node[0].innerHTML, 'expected'); + } + }, + + 'nodelist html': function () { + var options = { parseContent: true, onBegin: onBegin }; + var markup = '
  • 1
  • ' + + '
  • 2
  • ' + + '
  • 3
  • '; + var liNodes; + + query('.zork').html(markup, options).removeClass('notdone').addClass('done'); + + liNodes = query('.zork > li'); + + assert.lengthOf(liNodes, 9); + assert.isTrue(textReplacementHappened(liNodes)); + assert.isTrue(doneIsAddedToEveryNode(query('.zork'))); + assert.isTrue(hasATestAttribute(liNodes)); + + function onBegin() { + this.content = this.content.replace(/([0-9])/g, 'MOOO'); + this.inherited('onBegin', arguments); + } + + function doneIsAddedToEveryNode(nodes) { + return nodes.every(function (node) { + return node.className.indexOf('zork') >= 0 && node.className.indexOf('done') >= 0; + }); + } + + function textReplacementHappened(nodes) { + return nodes.every(function(node) { + return node.innerHTML.match(/MOOO/); + }); + } + + function hasATestAttribute(nodes) { + return nodes.every(function (node) { + return node.getAttribute('test') === 'ok'; + }); + } + } + }; + }); +}); diff --git a/tests/unit/NodeList-manipulate.js b/tests/unit/NodeList-manipulate.js new file mode 100644 index 0000000000..a5a32164a8 --- /dev/null +++ b/tests/unit/NodeList-manipulate.js @@ -0,0 +1,12 @@ +define([ + 'intern!object', + 'intern/chai!assert' +], function (registerSuite, assert) { + registerSuite({ + name: 'dojo/NodeList-manipulate', + + 'TODO: convert tests': function () { + assert.fail(); + } + }); +}); diff --git a/tests/unit/NodeList-traverse.js b/tests/unit/NodeList-traverse.js new file mode 100644 index 0000000000..b09d3106cf --- /dev/null +++ b/tests/unit/NodeList-traverse.js @@ -0,0 +1,12 @@ +define([ + 'intern!object', + 'intern/chai!assert' +], function (registerSuite, assert) { + registerSuite({ + name: 'dojo/NodeList-traverse', + + 'TODO: convert tests': function () { + assert.fail(); + } + }); +}); diff --git a/tests/unit/Stateful.js b/tests/unit/Stateful.js new file mode 100644 index 0000000000..155586d7e6 --- /dev/null +++ b/tests/unit/Stateful.js @@ -0,0 +1,206 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../Stateful', + 'sinon', + 'dojo/_base/declare' +], function (registerSuite, assert, Stateful, sinon, declare) { + registerSuite({ + name: 'dojo/Stateful', + + '.watch': { + 'notifies watcher when .set()': function () { + var name = 'foo'; + var stateObj = new Stateful({ foo: 3 }); + var onValueChange = sinon.stub(); + + stateObj.watch(name, onValueChange); + assert.equal(stateObj.get(name), 3); + + stateObj.set(name, 4); + assert.isTrue(onValueChange.calledOnce); + assert.deepEqual([name, 3, 4], onValueChange.firstCall.args); + assert.equal(stateObj.get(name), 4); + }, + + 'handle.remove() stops notifications': function () { + var name = 'foo'; + var stateObj = new Stateful({ foo: 3 }); + var onValueChange = sinon.stub(); + var handle = stateObj.watch(name, onValueChange); + + stateObj.set(name, 4); + assert.isTrue(onValueChange.calledOnce); + + handle.remove(); + stateObj.set(name, 5); + assert.isTrue(onValueChange.calledOnce); + }, + + 'handle.remove() is reentrant and works correctly with another watch': function () { + var name = 'foo'; + var stateObj = new Stateful({ foo: 3 }); + var onValueChange1 = sinon.stub(); + var onValueChange2 = sinon.stub(); + var handle = stateObj.watch(name, onValueChange1); + + stateObj.watch(name, onValueChange2); + stateObj.set(name, 4); + handle.remove(); + handle.remove(); + stateObj.set(name, 5); + + assert.isTrue(onValueChange1.calledOnce); + assert.isTrue(onValueChange2.calledTwice); + }, + + 'wildcard watcher': function () { + var stateObj = new Stateful(); + var onAnyValueChange = sinon.stub(); + var onFooValueChange = sinon.stub(); + + stateObj.set({ foo: 3, bar: 5 }); + stateObj.watch(onAnyValueChange); + stateObj.watch('foo', onFooValueChange); + + stateObj.set('foo', 4); + stateObj.set('bar', 6); + + assert.isTrue(onAnyValueChange.calledTwice); + assert.isTrue(onFooValueChange.calledOnce); + } + }, + + '.set': { + 'hashed value': function () { + var stateObj1 = new Stateful(); + var onValueChange = sinon.stub(); + var handle = stateObj1.watch('foo', onValueChange); + var stateObj2; + + stateObj1.set({ foo: 3, bar: 5 }); + assert.equal(stateObj1.get('foo'), 3); + assert.equal(stateObj1.get('bar'), 5); + assert.isTrue(onValueChange.calledOnce); + + stateObj2 = new Stateful(); + stateObj2.set(stateObj1); + assert.equal(stateObj2.get('foo'), 3); + assert.equal(stateObj2.get('bar'), 5); + // stateObj1 watchers should not be copied to stateObj2 + assert.isTrue(onValueChange.calledOnce); + handle.unwatch(); + } + }, + + 'functional getters and setters': { + 'accessor usage': function () { + var ExtendedStateful = declare([Stateful], { + foo: '', + bar: 0, + baz: '', + + _fooSetter: function (value) { + this.foo = value; + }, + + _fooGetter: function () { + return 'bar'; + }, + + _barSetter: function (value) { + this.bar = value; + } + }); + var stateObj = new ExtendedStateful(); + + stateObj.set('foo', 'nothing'); + stateObj.set('bar', 2); + stateObj.set('baz', 'bar'); + + assert.equal(stateObj.foo, 'nothing', 'attribute set properly'); + assert.equal(stateObj.get('foo'), 'bar', 'getter working properly'); + assert.equal(stateObj.bar, 2, 'attribute set properly'); + assert.equal(stateObj.get('bar'), 2, 'getter working properly'); + assert.equal(stateObj.baz, 'bar', 'property set properly'); + assert.equal(stateObj.get('baz'), 'bar', 'getter working properly'); + }, + + 'parameter handling': function () { + var ExtendedStateful = declare([Stateful], { + foo: null, + bar: 5, + + _fooSetter: function (value) { + this.foo = value; + }, + + _barSetter: function (value) { + this.bar = value; + } + }); + var stateObj = new ExtendedStateful({ + foo: function () { + return 'baz'; + }, + bar: 4 + }); + + assert.typeOf(stateObj.foo, 'function'); + assert.equal(stateObj.foo(), 'baz'); + assert.equal(stateObj.get('bar'), 4); + }, + + '_changeAttrValue() inside a setter': function () { + var onFooValueChange = sinon.stub(); + var onBarValueChange = sinon.stub(); + var ExtendedStateful = declare([Stateful], { + foo: null, + bar: null, + + _fooSetter: function (value) { + this._changeAttrValue('bar', value); + this.foo = value; + }, + + _barSetter: function (value) { + this._changeAttrValue('foo', value); + this.bar = value; + } + }); + var stateObj = new ExtendedStateful(); + + stateObj.watch('foo', onFooValueChange); + stateObj.watch('bar', onBarValueChange); + + stateObj.set('foo', 3); + assert.equal(stateObj.get('bar'), 3); + + stateObj.set('bar', 4); + assert.equal(stateObj.get('foo'), 4); + + assert.isTrue(onFooValueChange.calledTwice); + assert.isTrue(onBarValueChange.calledTwice); + assert.deepEqual(['bar', null, 3], onBarValueChange.firstCall.args); + assert.deepEqual(['foo', null, 3], onFooValueChange.firstCall.args); + assert.deepEqual(['foo', 3, 4], onFooValueChange.secondCall.args); + assert.deepEqual(['bar', 3, 4], onBarValueChange.secondCall.args); + }, + + 'serialize correctly with setters': function () { + var ExtendedStateful = declare([Stateful], { + foo: null, + + _fooSetter: function (value) { + this.foo = value + 'baz'; + } + }); + var stateObj = new ExtendedStateful({ + foo: 'bar' + }); + + assert.equal(JSON.stringify(stateObj), '{"foo":"barbaz"}'); + } + } + }); +}); diff --git a/tests/unit/_base.js b/tests/unit/_base.js new file mode 100644 index 0000000000..9e3852cd99 --- /dev/null +++ b/tests/unit/_base.js @@ -0,0 +1,18 @@ +define([ + './_base/Color', + './_base/Deferred', + './_base/array', + './_base/connect', + './_base/declare', + './_base/json', + './_base/lang', + './_base/sniff', + + 'dojo/has!host-browser?./_base/NodeList', + 'dojo/has!host-browser?./_base/browser', + 'dojo/has!host-browser?./_base/html', + 'dojo/has!host-browser?./_base/query', + 'dojo/has!host-browser?./_base/window', + 'dojo/has!host-browser?./_base/xhr' +], function () { +}); diff --git a/tests/unit/_base/Color.js b/tests/unit/_base/Color.js new file mode 100644 index 0000000000..586fdfde49 --- /dev/null +++ b/tests/unit/_base/Color.js @@ -0,0 +1,69 @@ +define([ + 'intern!object', + 'intern/chai!assert', + 'dojo/_base/array', + '../../../_base/Color', + 'dojo/has!host-browser?dojo/domReady!' +], function (registerSuite, assert, array, Color) { + var white = Color.fromString('white').toRgba(); + var maroon = Color.fromString('maroon').toRgba(); + var verifyColor = function(source, expected){ + var color = new Color(source); + assert.deepEqual(color.toRgba(), expected); + array.forEach(color.toRgba(), function(n){ + assert.typeOf(n, 'number'); + }); + }; + + registerSuite({ + name: 'dojo/_base/Color', + + 'maroon string': function () { + verifyColor('maroon', maroon); + }, + + 'white string': function () { + verifyColor('white', white); + }, + + 'white hex short': function () { + verifyColor('#fff', white); + }, + + 'white hex': function () { + verifyColor('#ffffff', white); + }, + + 'white rgb': function () { + verifyColor('rgb(255,255,255)', white); + }, + + 'maroon hex': function () { + verifyColor('#800000', maroon); + }, + + 'maroon rgb': function () { + verifyColor('rgb(128, 0, 0)', maroon); + }, + + 'aliceblue rgba': function () { + verifyColor('rgba(128, 0, 0, 0.5)', [128, 0, 0, 0.5]); + }, + + 'maroon rgba == rgba': function () { + verifyColor(maroon, maroon); + }, + + 'rgb alpha': function () { + verifyColor([1, 2, 3], [1, 2, 3, 1]); + }, + + 'array': function () { + verifyColor([1, 2, 3, 0.5], [1, 2, 3, 0.5]); + }, + + 'blend black and white': function () { + verifyColor(Color.blendColors(new Color('black'), new Color('white'), 0.5), [128, 128, 128, 1]); + } + }); +}); diff --git a/tests/unit/_base/Deferred.js b/tests/unit/_base/Deferred.js new file mode 100644 index 0000000000..27366b132a --- /dev/null +++ b/tests/unit/_base/Deferred.js @@ -0,0 +1,284 @@ +define([ + 'intern!object', + 'intern/chai!assert', + 'intern/dojo/_base/kernel', + 'dojo/when', + 'dojo/_base/Deferred' +], function ( + registerSuite, + assert, + kernel, + when, + Deferred +) { + function delay(ms) { + var d = new Deferred(); + ms = ms || 20; + setTimeout(function () { + d.progress(0.5); + }, ms / 2); + setTimeout(function () { + d.resolve(); + }, ms); + return d.promise; + } + + registerSuite({ + name: 'dojo/_base/Deferred', + + '.callback()': function () { + var dfd = new Deferred(); + dfd.addCallback(this.async().callback(function (res) { + assert.equal(res, 5); + })); + dfd.callback(5); + }, + + '.callback() with args': function () { + var dfd = new Deferred(); + dfd.addCallback(kernel.global, this.async().callback(function (base, res) { + assert.equal(base + res, 35); + }), 30); + dfd.callback(5); + }, + + '.errBack()': function () { + var dfd = new Deferred(); + dfd.addErrback(this.async().callback(function () { + assert.ok(true); + })); + dfd.errback(); + }, + + '.callback() twice': function () { + var dfd = new Deferred(); + var cnt = 0; + var thrown = false; + dfd.addCallback(function () { + return ++cnt; + }); + dfd.callback(); + assert.equal(cnt, 1); + try { + dfd.callback(); + } catch (e) { + thrown = true; + } + assert.isTrue(thrown); + }, + + '.addBoth()': function () { + var dfd = new Deferred(); + dfd.addBoth(this.async().callback(function () { + assert.ok(true); + })); + dfd.callback(); + }, + + '.addCallback() nested': function () { + var dfd = new Deferred(); + dfd.addCallback(function () { + dfd.addCallback(this.async().callback(function (res2) { + assert.equal('blue', res2); + })); + return 'blue'; + }); + dfd.callback('red'); + }, + + '.then() simple': function () { + delay().then(this.async().callback(function () { + assert.ok(true); + })); + }, + + '.then() chaining': function () { + var p = delay(); + var p2 = p.then(function () { + return 1; + }); + var p3 = p2.then(function () { + return 2; + }); + p3.then(function () { + p2.then(function (v1) { + p3.then(this.async().callback(function (v2) { + assert.equal(v1, 1); + assert.equal(v2, 2); + })); + }); + }); + }, + + 'when() simple': function () { + when(delay(), this.async().callback(function () { + assert.ok(true); + })); + }, + + 'progress': function () { + var percentDone; + when(delay(), this.async().callback(function () { + assert.equal(percentDone, 0.5); + }), function () {}, + function (completed) { + percentDone = completed; + }); + }, + + '.cancel() then derivative': function () { + var def = new Deferred(); + var def2 = def.then(); + var hasThrown = false; + try { + def2.cancel(); + } catch (e) { + hasThrown = true; + } + + assert.isFalse(hasThrown); + }, + + '.cancel() promise value': function () { + var cancelledDef; + var def = new Deferred(function (_def) { + cancelledDef = _def; + }); + def.promise.cancel(); + assert.equal(def, cancelledDef); + }, + + '.error() result': function () { + var def = new Deferred(); + var result = new Error('rejected'); + def.reject(result); + assert.equal(def.fired, 1); + assert.equal(def.results[1], result); + }, + + 'global leak': function () { + var def = new Deferred(); + def.then(this.async().callback(function () { + assert.isUndefined(kernel.global.results, 'results is leaking into global'); + assert.isUndefined(kernel.global.fired, 'fired is leaking into global'); + })); + def.resolve(true); + }, + + 'back and forth process': function () { + var def = new Deferred(); + + def.addErrback(function () { + return 'ignore error and throw this good string'; + }).addCallback(function () { + throw new Error('error1'); + }).addErrback(function () { + return 'ignore second error and make it good again'; + }).addCallback(this.async().callback(function () { + assert.ok(true); + })); + + def.errback(''); + }, + + 'back and forth process then': function () { + var def = new Deferred(); + + def.then(null, function () { + return 'ignore error and throw this good string'; + }).then(function () { + throw 'error1'; + }).then(null, function () { + return 'ignore second error and make it good again'; + }).then(this.async().callback(function () { + assert.ok(true); + })); + + def.reject(''); + }, + + 'return error object': function () { + var def = new Deferred(); + + def.addCallback(function () { + return new Error('returning an error should work same as throwing'); + }).addErrback(this.async().callback(function () { + assert.ok(true); + })); + + def.callback(); + }, + + 'return error object then': function () { + var def = new Deferred(); + + def.then(function () { + return new Error('returning an error should NOT work same as throwing'); + }).then(this.async().callback(function () { + assert.ok(true); + })); + + def.resolve(); + }, + + 'errBack with promise': function () { + var def = new Deferred(); + + def.addCallbacks(function () {}, function (err) { + return err; + }); + def.promise.then(null, this.async().callback(function () { + assert.ok(true); + })); + def.errback(new Error()); + }, + + 'test dojo promise progress basic': function () { + var a = new Deferred(); + var b = new Deferred(); + var called = false; + + a.then(function () { + b.then(function () { + if (!called) { + console.log('Boo. ProgressBasic not called'); + } + }, function () { + console.log('Unexpected'); + }, this.async().callback(function () { + called = true; + assert.ok(called); + })); + }); + + a.resolve(); + b.progress(); + b.resolve(); + }, + + 'test dojo promise progress chain': function () { + var a = new Deferred(); + var b = new Deferred(); + var called = false; + + a.then(function () { + return b; + }).then(function () { + if (!called) { + console.log('Boo. ProgressChain not called'); + } + }, function () { + console.log('Unexpected'); + }, this.async().callback(function () { + called = true; + assert.ok(called); + })); + + a.resolve(); + b.progress(); + b.resolve(); + } + + }); +}); + diff --git a/tests/unit/_base/NodeList.js b/tests/unit/_base/NodeList.js new file mode 100644 index 0000000000..8825b6b867 --- /dev/null +++ b/tests/unit/_base/NodeList.js @@ -0,0 +1,12 @@ +define([ + 'intern!object', + 'intern/chai!assert' +], function (registerSuite, assert) { + registerSuite({ + name: 'dojo/_base/NodeList', + + 'TODO: convert tests': function () { + assert.fail(); + } + }); +}); diff --git a/tests/unit/_base/array.js b/tests/unit/_base/array.js new file mode 100644 index 0000000000..55503ce810 --- /dev/null +++ b/tests/unit/_base/array.js @@ -0,0 +1,319 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../_base/array' +], function (registerSuite, assert, array) { + registerSuite({ + name: 'dojo/_base/array', + + '.indexOf': { + 'no index' : function () { + var foo = [128, 256, 512]; + var bar = ['aaa', 'bbb', 'ccc']; + assert.strictEqual(array.indexOf([45, 56, 85], 56), 1); + assert.strictEqual(array.indexOf([Number, String, Date], String), 1); + assert.strictEqual(array.indexOf(foo, foo[1]), 1); + assert.strictEqual(array.indexOf(foo, foo[2]), 2); + assert.strictEqual(array.indexOf(bar, bar[1]), 1); + assert.strictEqual(array.indexOf(bar, bar[2]), 2); + assert.strictEqual(array.indexOf({a:1}, 'a'), -1); + + foo.push(bar); + assert.strictEqual(array.indexOf(foo, bar), 3); + }, + + 'from index': function () { + assert.strictEqual(array.indexOf([45, 56, 85], 56, 2), -1); + assert.strictEqual(array.indexOf([45, 56, 85], 56, 1), 1); + assert.strictEqual(array.indexOf([45, 56, 85], 56, -3), 1); + // Make sure going out of bounds doesn't throw us in an infinite loop + assert.strictEqual(array.indexOf([45, 56, 85], 56, 3), -1); + } + }, + + '.lastIndexOf': { + 'no index': function () { + var foo = [128, 256, 512]; + var bar = ['aaa', 'bbb', 'aaa', 'ccc']; + + assert.strictEqual(array.indexOf([45, 56, 85], 56), 1); + assert.strictEqual(array.indexOf([Number, String, Date], String), 1); + assert.strictEqual(array.lastIndexOf(foo, foo[1]), 1); + assert.strictEqual(array.lastIndexOf(foo, foo[2]), 2); + assert.strictEqual(array.lastIndexOf(bar, bar[1]), 1); + assert.strictEqual(array.lastIndexOf(bar, bar[2]), 2); + assert.strictEqual(array.lastIndexOf(bar, bar[0]), 2); + }, + + 'from index': function () { + assert.strictEqual(array.lastIndexOf([45, 56, 85], 56, 1), 1); + assert.strictEqual(array.lastIndexOf([45, 56, 85], 85, 1), -1); + assert.strictEqual(array.lastIndexOf([45, 56, 85], 85, -2), -1); + assert.strictEqual(array.lastIndexOf([45, 56, 45], 45, 0), 0); + } + }, + + '.forEach': { + 'no exception': function () { + var foo = [128, 'bbb', 512]; + array.forEach(foo, function (item, index) { + switch (index) { + case 0: assert.strictEqual(item, 128); break; + case 1: assert.strictEqual(item, 'bbb'); break; + case 2: assert.strictEqual(item, 512); break; + default: assert.ok(false); + } + }); + assert.doesNotThrow(function () { + array.forEach(undefined, function () {}); + }, /.*/, 'forEach on undefined'); + }, + + string: function () { + var bar = 'abc'; + array.forEach(bar, function (item, index) { + switch (index) { + case 0: assert.strictEqual(item, 'a'); break; + case 1: assert.strictEqual(item, 'b'); break; + case 2: assert.strictEqual(item, 'c'); break; + default: assert.ok(false); + } + }); + }, + + // FIXME: test forEach w/ a NodeList()? + 'string callback': function () { + // Test using strings as callback", which accept the parameters with + // the names "item", "index" and "array"! + var foo = [128, 'bbb', 512]; + + // Test that the variable "item" contains the value of each item. + var obj = { + _res: '' + }; + array.forEach(foo, 'this._res += item', obj); + assert.strictEqual(obj._res, '128bbb512'); + + // Test that the variable "index" contains each index. + obj._res = []; + array.forEach(foo, 'this._res.push(index)', obj); + assert.deepEqual(obj._res, [0,1,2]); + + // Test that the variable "array" always contains the entire array. + obj._res = []; + array.forEach(foo, 'this._res.push(array)', obj); + assert.deepEqual(obj._res, [ + [128, 'bbb', 512], + [128, 'bbb', 512], + [128, 'bbb', 512] + ]); + + // Catch undefined variable usage (I used to use "i" :-)). + assert.throws(function () { + array.forEach(foo, 'this._res += arr[i];', obj); + }, /.*/, 'forEach on undefined variable'); + } + }, + + '.every': { + // FIXME: test forEach w/ a NodeList()? + array: function () { + var foo = [128, 'bbb', 512]; + + assert.ok( + array.every(foo, function (item, index, array) { + assert.strictEqual(array.constructor, Array); + assert.typeOf(array, 'array'); + assert.typeOf(index, 'number'); + if(index === 1) { assert.strictEqual(item, 'bbb'); } + return true; + }) + ); + + assert.ok( + array.every(foo, function (item, index) { + switch (index) { + case 0: assert.strictEqual(item, 128); return true; + case 1: assert.strictEqual(item, 'bbb'); return true; + case 2: assert.strictEqual(item, 512); return true; + default: return false; + } + }) + ); + + assert.ok( // intern chai has no assert.notOk + !array.every(foo, function (item, index) { + switch (index) { + case 0: assert.strictEqual(item, 128); return true; + case 1: assert.strictEqual(item, 'bbb'); return true; + case 2: assert.strictEqual(item, 512); return false; + default: return true; + } + }) + ); + + }, + + string: function () { + var bar = 'abc'; + assert.ok( + array.every(bar, function (item, index) { + switch (index) { + case 0: assert.strictEqual(item, 'a'); return true; + case 1: assert.strictEqual(item, 'b'); return true; + case 2: assert.strictEqual(item, 'c'); return true; + default: return false; + } + }) + ); + + assert.ok( // intern chai has no assert.notOk + !array.every(bar, function (item, index) { + switch (index) { + case 0: assert.strictEqual(item, 'a'); return true; + case 1: assert.strictEqual(item, 'b'); return true; + case 2: assert.strictEqual(item, 'c'); return false; + default: return true; + } + }) + ); + } + }, + + '.some': { + // FIXME: test NodeList for every()? + array: function () { + var foo = [128, 'bbb', 512]; + assert.ok( + array.some(foo, function (item, index, array) { + assert.strictEqual(array.length, 3); + return true; + }) + ); + + assert.ok( + array.some(foo, function (item, index) { + return index < 1; + + }) + ); + + assert.ok( + !array.some(foo, function () { + return false; + }) + ); + + assert.ok( + array.some(foo, function (item, index, array) { + assert.strictEqual(array.constructor, Array); + assert.typeOf(array, 'array'); + assert.typeOf(index, 'number'); + if(index === 1) { assert.strictEqual(item, 'bbb'); } + return true; + }) + ); + }, + + string: function () { + var bar = 'abc'; + assert.ok( + array.some(bar, function (item, index, array) { + assert.strictEqual(array.length, 3); + switch (index) { + case 0: assert.strictEqual(item, 'a'); return true; + case 1: assert.strictEqual(item, 'b'); return true; + case 2: assert.strictEqual(item, 'c'); return true; + default: return false; + } + }) + ); + + assert.ok( + array.some(bar, function (item, index) { + switch (index) { + case 0: assert.strictEqual(item, 'a'); return true; + case 1: assert.strictEqual(item, 'b'); return true; + case 2: assert.strictEqual(item, 'c'); return false; + default: return true; + } + }) + ); + + assert.ok( + !array.some(bar, function () { + return false; + }) + ); + } + }, + + '.filter': { + // FIXME: need to add scoping tests for all of these!!! + array: function () { + var foo = ['foo', 'bar', 10]; + + assert.deepEqual( + array.filter(foo, function (item, index) { + return index < 1; + }), + ['foo'], + 'index < 1' + ); + + assert.deepEqual( + array.filter(foo, function (item) { + return item === 'foo'; + }), + ['foo'], + 'item == "foo"' + ); + + assert.deepEqual( + array.filter(foo, function () { + return false; + }), + [] + ); + + assert.deepEqual( + array.filter(foo, function (item) { + return typeof item === 'number'; + }), + [10] + ); + }, + + string: function () { + var foo = 'thinger blah blah blah'; + assert.deepEqual( + array.filter(foo, function (item, index) { + return index < 3; + }), + ['t', 'h', 'i'] + ); + + assert.deepEqual( + array.filter(foo, function () { + return false; + }), + [] + ); + } + }, + + '.map': function () { + assert.deepEqual( + array.map(function () { return true; }, []), + [] + ); + + assert.deepEqual( + array.map(['cat', 'dog', 'mouse'], function (item, index) { + return index+1; + }), + [1, 2, 3] + ); + } + }); +}); diff --git a/tests/unit/_base/browser.js b/tests/unit/_base/browser.js new file mode 100644 index 0000000000..53a9ae237f --- /dev/null +++ b/tests/unit/_base/browser.js @@ -0,0 +1,21 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../_base/browser', + '../../../ready' +], function ( + registerSuite, + assert, + browser, + ready +) { + + registerSuite({ + name: 'dojo/_base/browser', + + 'is a dojo/ready function': function () { + assert.strictEqual(ready, browser); + } + }); + +}); diff --git a/tests/unit/_base/connect.js b/tests/unit/_base/connect.js new file mode 100644 index 0000000000..a8e36e7b9f --- /dev/null +++ b/tests/unit/_base/connect.js @@ -0,0 +1,326 @@ +define([ + 'intern!object', + 'intern/chai!assert', + 'testing' +], function ( + registerSuite, + assert, + dojo +) { + // make 'iterations' connections to hub + // roughly half of which will be to 'good' and + // half to 'bad' + // all connections to 'bad' are disconnected + // test can then be performed on the values + // 'failures' and 'successes' + function markAndSweepTest(iterations) { + var hub = function () {}; + var failures = 0; + var good = function () {}; + var bad = function () { + failures++; + }; + var marked = []; + var m; + + // connections + for (var i = 0; i < iterations; i++) { + if (Math.random() < 0.5) { + marked.push(dojo.connect('hub', bad)); + } else { + dojo.connect('hub', good); + } + } + + // Randomize markers (only if the count isn't very high) + if (i < Math.pow(10, 4)) { + var rm = [ ]; + while (marked.length) { + m = Math.floor(Math.random() * marked.length); + rm.push(marked[m]); + marked.splice(m, 1); + } + marked = rm; + } + + for (m = 0; m < marked.length; m++) { + dojo.disconnect(marked[m]); + } + + // test + failures = 0; + hub(); + + // return number of disconnected functions that fired (should be 0) + return failures; + } + + function markAndSweepSubscribersTest(iterations) { + var failures = 0; + var good = function () {}; + var bad = function () { + failures++; + }; + var topic = 'hubbins'; + var marked = []; + var m; + + // connections + for (var i = 0; i < iterations; i++) { + if (Math.random() < 0.5) { + marked.push(dojo.subscribe(topic, bad)); + } else { + dojo.subscribe(topic, good); + } + } + + // Randomize markers (only if the count isn't very high) + if (i < Math.pow(10, 4)) { + var rm = []; + while (marked.length) { + m = Math.floor(Math.random() * marked.length); + rm.push(marked[m]); + marked.splice(m, 1); + } + marked = rm; + } + + for (m = 0; m < marked.length; m++) { + dojo.unsubscribe(marked[m]); + } + + // test + failures = 0; + dojo.publish(topic); + // return number of unsubscribed functions that fired (should be 0) + return failures; + } + + registerSuite({ + name: 'dojo/_base/connect', + + afterEach: function () { + dojo.global.gFoo = undefined; + dojo.global.gOk = undefined; + }, + + 'smoke test': function () { + var ok; + var test = { 'foo': function () { ok = false; } }; + + test.foo(); + assert.isFalse(ok); + + dojo.connect(test, 'foo', null, function () { ok = true; }); + + test.foo(); + assert.isTrue(ok); + }, + + 'basic test': function () { + var out = ''; + var obj = { + foo: function () { + out += 'foo'; + }, + bar: function () { + out += 'bar'; + }, + baz: function () { + out += 'baz'; + } + }; + + var handle = dojo.connect(obj, 'foo', obj, 'bar'); + dojo.connect(obj, 'bar', obj, 'baz'); + + out = ''; + obj.foo(); + assert.equal(out, 'foobarbaz'); + + out = ''; + obj.bar(); + assert.equal(out, 'barbaz'); + + out = ''; + obj.baz(); + assert.equal(out, 'baz'); + + dojo.connect(obj, 'foo', obj, 'baz'); + dojo.disconnect(handle); + + out = ''; + obj.foo(); + assert.equal(out, 'foobaz'); + + out = ''; + obj.bar(); + assert.equal(out, 'barbaz'); + + out = ''; + obj.baz(); + assert.equal(out, 'baz'); + }, + + 'hub connect disconnect 1000': function () { + assert.equal(markAndSweepTest(1000), 0); + }, + + 'test with four arguments': function () { + var ok; + var obj = { + foo: function () { + ok = false; + }, + bar: function () { + ok = true; + } + }; + + dojo.connect(obj, 'foo', obj, 'bar'); + obj.foo(); + assert.isTrue(ok); + }, + + 'test with three arguments': function () { + var ok; + var link; + + dojo.global.gFoo = function () { + ok = false; + }; + dojo.global.gOk = function () { + ok = true; + }; + + // 3 arg shorthand for globals (a) + link = dojo.connect('gFoo', null, 'gOk'); + dojo.global.gFoo(); + dojo.disconnect(link); + assert.isTrue(ok); + + // 3 arg shorthand for globals (b) + link = dojo.connect(null, 'gFoo', 'gOk'); + dojo.global.gFoo(); + dojo.disconnect(link); + assert.isTrue(ok); + + // verify disconnections + dojo.global.gFoo(); + assert.isFalse(ok); + }, + + 'test with two arguments': function () { + var ok; + var link; + + dojo.global.gFoo = function () { + ok = false; + }; + dojo.global.gOk = function () { + ok = true; + }; + + // 2 arg shorthand for globals + link = dojo.connect('gFoo', 'gOk'); + dojo.global.gFoo(); + dojo.disconnect(link); + assert.isTrue(ok); + + // 2 arg shorthand for globals, alternate scoping + link = dojo.connect('gFoo', dojo.global.gOk); + dojo.global.gFoo(); + dojo.disconnect(link); + assert.isTrue(ok); + }, + + 'scope test one': function () { + var foo = { + ok: true, + foo: function () { + this.ok = false; + } + }; + var bar = { + ok: false, + bar: function () { + this.ok = true; + } + }; + + // link foo.foo to bar.bar with natural scope + dojo.connect(foo, 'foo', bar, 'bar'); + foo.foo(); + assert.isFalse(foo.ok); + assert.isTrue(bar.ok); + }, + + 'scope test two': function () { + var foo = { + ok: true, + foo: function () { + this.ok = false; + } + }; + var bar = { + ok: false, + bar: function () { + this.ok = true; + } + }; + + // link foo.foo to bar.bar such that scope is always 'foo' + dojo.connect(foo, 'foo', bar.bar); + foo.foo(); + assert.isTrue(foo.ok); + assert.isFalse(bar.ok); + }, + + 'pubsub': function () { + var count = 0; + dojo.subscribe('/test/blah', function (first, second) { + assert.equal(first, 'first'); + assert.equal(second, 'second'); + count++; + }); + dojo.publish('/test/blah', ['first', 'second']); + assert.equal(count, 1); + }, + + 'connect publisher': function () { + var foo = { + inc: 0, + foo: function () { + this.inc++; + } + }; + var bar = { + inc: 0, + bar: function () { + this.inc++; + } + }; + var c1h = dojo.connectPublisher('/blah', foo, 'foo'); + var c2h = dojo.connectPublisher('/blah', foo, 'foo'); + + dojo.subscribe('/blah', bar, 'bar'); + foo.foo(); + assert.equal(foo.inc, 1); + assert.equal(bar.inc, 2); + + dojo.disconnect(c1h); + foo.foo(); + assert.equal(foo.inc, 2); + assert.equal(bar.inc, 3); + + dojo.disconnect(c2h); + foo.foo(); + assert.equal(foo.inc, 3); + assert.equal(bar.inc, 3); + }, + + 'publish subscribe 1000': function () { + assert.equal(markAndSweepSubscribersTest(1000), 0); + } + }); +}); diff --git a/tests/unit/_base/declare.js b/tests/unit/_base/declare.js new file mode 100644 index 0000000000..3c5af3f6be --- /dev/null +++ b/tests/unit/_base/declare.js @@ -0,0 +1,662 @@ +/* globals global */ +(function (global) { + define([ + 'intern!object', + 'intern/chai!assert', + 'dojo/aspect', + 'dojo/_base/lang', + 'dojo/_base/kernel', + '../../../_base/declare', + 'sinon' + ], function ( + registerSuite, + assert, + aspect, + lang, + kernel, + declare, + sinon + ) { + registerSuite({ + name: 'dojo/_base/declare', + + // There is a bug in lang.setObject() which prevents declare from extending a + // global which has been set to undefined. To work around this problem we + // are setting global.tests to an empty object before each test and once all + // the tests have completed we set it to undefined. + beforeEach: function () { + global.tests = {}; + }, + + teardown: function () { + global.tests = undefined; + }, + + afterEach: function () { + global.testsFoo = undefined; + }, + + 'smoke test 1': function () { + declare('tests._base.declare.tmp', null); + declare('testsFoo', null); + assert.isFunction(global.tests._base.declare.tmp); + assert.isFunction(global.testsFoo); + }, + + 'smoke test 2': function () { + var test; + + declare('tests._base.declare.foo', null, { + foo: 'thonk' + }); + + test = new global.tests._base.declare.foo(); + assert.equal(test.foo, 'thonk'); + + declare('testsFoo', null, { + foo: 'thonk' + }); + + test = new global.testsFoo(); + assert.equal(test.foo, 'thonk'); + }, + + 'smoke test with Ctor': function () { + var test; + + declare('tests._base.declare.fooBar', null, { + constructor: function () { + this.foo = 'blah'; + }, + foo: 'thonk' + }); + + test = new global.tests._base.declare.fooBar(); + assert.equal(test.foo, 'blah'); + }, + + 'smoke test compact args': function () { + var test; + + declare('tests._base.declare.fooBar2', null, { + foo: 'thonk' + }); + + test = new global.tests._base.declare.fooBar2(); + assert.equal(test.foo, 'thonk'); + }, + + 'subclass': function () { + var test; + + declare('tests._base.declare.tmp3', null, { + foo: 'thonk' + }); + + declare('tests._base.declare.tmp4', global.tests._base.declare.tmp3); + + test = new global.tests._base.declare.tmp4(); + assert.equal(test.foo, 'thonk'); + }, + + 'subclass with Ctor': function () { + var test; + + declare('tests._base.declare.tmp5', null, { + constructor: function () { + this.foo = 'blah'; + }, + foo: 'thonk' + }); + + declare('tests._base.declare.tmp6', global.tests._base.declare.tmp5); + + test = new global.tests._base.declare.tmp6(); + assert.instanceOf(test, global.tests._base.declare.tmp5); + }, + + 'mixin subclass': function () { + var test; + + declare('tests._base.declare.tmp7', null, { + foo: 'thonk' + }); + + declare('tests._base.declare.tmp8', null, { + constructor: function () { + this.foo = 'blah'; + } + }); + + test = new global.tests._base.declare.tmp8(); + assert.equal(test.foo, 'blah'); + + declare('tests._base.declare.tmp9', [ + global.tests._base.declare.tmp7, // prototypal + global.tests._base.declare.tmp8 // mixin + ]); + + test = new global.tests._base.declare.tmp9(); + assert.equal(test.foo, 'blah'); + assert.instanceOf(test, global.tests._base.declare.tmp7); + }, + + 'super class ref': function () { + var test; + + declare('tests._base.declare.tmp10', null, { + foo: 'thonk' + }); + + declare('tests._base.declare.tmp11', global.tests._base.declare.tmp10, { + constructor: function () { + this.foo = 'blah'; + } + }); + + test = new global.tests._base.declare.tmp11(); + assert.equal(test.foo, 'blah'); + assert.equal(global.tests._base.declare.tmp11.superclass.foo, 'thonk'); + }, + + 'inherited call': function () { + var foo = 'xyzzy'; + var test; + + declare('tests._base.declare.tmp12', null, { + foo: 'thonk', + bar: function (arg1, arg2) { + if (arg1) { + this.foo = arg1; + } + if (arg2) { + foo = arg2; + } + } + }); + + declare('tests._base.declare.tmp13', global.tests._base.declare.tmp12, { + constructor: function () { + this.foo = 'blah'; + } + }); + + test = new global.tests._base.declare.tmp13(); + assert.equal(test.foo, 'blah'); + assert.equal(foo, 'xyzzy'); + + test.bar('zot'); + assert.equal(test.foo, 'zot'); + assert.equal(foo, 'xyzzy'); + + test.bar('trousers', 'squiggle'); + assert.equal(test.foo, 'trousers'); + assert.equal(foo, 'squiggle'); + }, + + 'inherited explicit call': function () { + var foo = 'xyzzy'; + var test; + + declare('tests._base.declare.tmp14', null, { + foo: 'thonk', + bar: function (arg1, arg2) { + if (arg1) { + this.foo = arg1; + } + if (arg2) { + foo = arg2; + } + } + }); + + declare('tests._base.declare.tmp15', global.tests._base.declare.tmp14, { + constructor: function () { + this.foo = 'blah'; + }, + bar: function (arg1, arg2) { + this.inherited('bar', arguments, [arg2, arg1]); + }, + baz: function () { + global.tests._base.declare.tmp15.superclass.bar.apply(this, arguments); + } + }); + + test = new global.tests._base.declare.tmp15(); + assert.equal(test.foo, 'blah'); + assert.equal(foo, 'xyzzy'); + + test.baz('zot'); + assert.equal(test.foo, 'zot'); + assert.equal(foo, 'xyzzy'); + + test.bar('trousers', 'squiggle'); + assert.equal(test.foo, 'squiggle'); + assert.equal(foo, 'trousers'); + }, + + 'inherited with mixin calls': function () { + var test; + + declare('tests._base.declare.tmp16', null, { + foo: '', + bar: function () { + this.foo += 'tmp16'; + } + }); + + declare('tests._base.declare.mixin16', null, { + bar: function () { + this.inherited(arguments); + this.foo += '.mixin16'; + } + }); + + declare('tests._base.declare.mixin17', global.tests._base.declare.mixin16, { + bar: function () { + this.inherited(arguments); + this.foo += '.mixin17'; + } + }); + + declare('tests._base.declare.tmp17', [ + global.tests._base.declare.tmp16, + global.tests._base.declare.mixin17 + ], { + bar: function () { + this.inherited(arguments); + this.foo += '.tmp17'; + } + }); + + test = new global.tests._base.declare.tmp17(); + test.bar(); + assert.equal(test.foo, 'tmp16.mixin16.mixin17.tmp17'); + }, + + 'mixin preamble': function () { + var passed = false; + var test; + declare('tests._base.declare.tmp16', null); + test = new global.tests._base.declare.tmp16({ + preamble: function () { + passed = true; + } + }); + assert.isTrue(passed); + }, + + 'basic mixin': function () { + // testing if a plain Class-like object can be inherited + // by declare + var test; + + function Thing() { } + + Thing.prototype.method = sinon.spy(); + + declare('tests.Thinger', Thing, { + method: function () { + this.inherited(arguments); + } + }); + + test = new global.tests.Thinger(); + test.method(); + assert.isTrue(Thing.prototype.method.called, 'expected method to be called'); + }, + + 'mutated methods': function () { + // testing if methods can be mutated (within a reason) + declare('tests._base.declare.tmp18', null, { + constructor: function () { this.clear(); }, + clear: function () { this.flag = 0; }, + foo: function () { ++this.flag; }, + bar: function () { ++this.flag; }, + baz: function () { ++this.flag; } + }); + + declare('tests._base.declare.tmp19', global.tests._base.declare.tmp18, { + foo: function () { ++this.flag; this.inherited(arguments); }, + bar: function () { ++this.flag; this.inherited(arguments); }, + baz: function () { ++this.flag; this.inherited(arguments); } + }); + + var x = new global.tests._base.declare.tmp19(); + // smoke tests + assert.equal(x.flag, 0); + + x.foo(); + assert.equal(x.flag, 2); + + x.clear(); + assert.equal(x.flag, 0); + + var a = 0; + + // aspect.after() on a prototype method + aspect.after(global.tests._base.declare.tmp19.prototype, 'foo', function () { a = 1; }); + x.foo(); + assert.equal(x.flag, 2); + assert.equal(a, 1); + x.clear(); + a = 0; + + // extra chaining + var old = global.tests._base.declare.tmp19.prototype.bar; + global.tests._base.declare.tmp19.prototype.bar = function () { + a = 1; + ++this.flag; + old.call(this); + }; + + x.bar(); + assert.equal(x.flag, 3); + assert.equal(a, 1); + x.clear(); + a = 0; + + // replacement + global.tests._base.declare.tmp19.prototype.baz = function () { + a = 1; + ++this.flag; + this.inherited('baz', arguments); + }; + + x.baz(); + assert.equal(x.flag, 2); + assert.equal(a, 1); + }, + + 'modified instance': function () { + var stack; + + declare('tests._base.declare.tmp20', null, { + foo: function () { stack.push(20); } + }); + + declare('tests._base.declare.tmp21', null, { + foo: function () { + this.inherited(arguments); + stack.push(21); + } + }); + + declare('tests._base.declare.tmp22', global.tests._base.declare.tmp20, { + foo: function () { + this.inherited(arguments); + stack.push(22); + } + }); + + declare('tests._base.declare.tmp23', [ + global.tests._base.declare.tmp20, + global.tests._base.declare.tmp21 + ], { + foo: function () { + this.inherited(arguments); + stack.push(22); + } + }); + + var a = new global.tests._base.declare.tmp22(); + var b = new global.tests._base.declare.tmp23(); + var c = { + foo: function () { + this.inherited('foo', arguments); + stack.push('INSIDE C'); + } + }; + + stack = []; + a.foo(); + assert.deepEqual(stack, [20, 22]); + + stack = []; + b.foo(); + assert.deepEqual(stack, [20, 21, 22]); + + lang.mixin(a, c); + lang.mixin(b, c); + + stack = []; + a.foo(); + assert.deepEqual(stack, [20, 22, 'INSIDE C']); + + stack = []; + b.foo(); + assert.deepEqual(stack, [20, 21, 22, 'INSIDE C']); + }, + + 'duplicated base': function () { + var stack; + var tmp; + var A = declare(null, { + constructor: function () { + stack.push(1); + } + }); + var B = declare([A, A, A], { + constructor: function () { + stack.push(2); + } + }); + + stack = []; + tmp = new A(); + assert.deepEqual(stack, [1]); + + stack = []; + tmp = new B(); + assert.deepEqual(stack, [1, 2]); + }, + + 'indirectly duplicated base': function () { + var stack; + var tmp; + var A = declare(null, { + constructor: function () { + stack.push(1); + } + }); + var B = declare(A, { + constructor: function () { + stack.push(2); + } + }); + var C = declare([A, B], { + constructor: function () { + stack.push(3); + } + }); + var D = declare([B, A], { + constructor: function () { + stack.push(4); + } + }); + + stack = []; + tmp = new C(); + assert.deepEqual(stack, [1, 2, 3]); + + stack = []; + tmp = new D(); + assert.deepEqual(stack, [1, 2, 4]); + }, + + 'wrong multiple inheritance': function () { + var stack; + var tmp; + var A = declare([], { + constructor: function () { + stack.push(1); + } + }); + var B = declare([A], { + constructor: function () { + stack.push(2); + } + }); + + stack = []; + tmp = new A(); + assert.deepEqual(stack, [1]); + + stack = []; + tmp = new B(); + assert.deepEqual(stack, [1, 2]); + }, + + 'impossible bases': function () { + var A = declare(null); + var B = declare(null); + var C = declare([A, B]); + var D = declare([B, A]); + var E; + + var flag = false; + try { + E = declare([C, D]); + } catch (e) { + flag = true; + } + assert.isTrue(flag); + }, + + 'no new': function () { + /*jshint camelcase: false */ + // all of the classes I create will use this as their + // pseudo-constructor function + function noNewConstructor() { + this.noNew_Value = 'instance value'; + } + + var g = kernel.global; + // this value will remain unchanged if the code for + // calling a constructor without 'new' works correctly. + g.noNew_Value = 'global value'; + + // perform the actual test + function noNewTest(cls) { + // call class function without new + var obj = cls('instance value'); + assert.equal(obj.noNew_Value, 'instance value'); + assert.equal(g.noNew_Value, 'global value'); + } + + // There are three different functions that might be + // created by declare(), so I need to test all + // three. + + // 1. Class with manual-chained constructor + noNewTest( + declare(null, { + constructor: noNewConstructor, + '-chains-': {constructor: 'manual'} + }) + ); + + // 2. Class with no superclasses + var A = declare(null, { + constructor: noNewConstructor + }); + noNewTest(A); + + // 3. Class with at least one superclass + noNewTest(declare(A)); + + // Make sure multiple inheritance call works + var B = declare(A); + var C = declare(null, { ctest: function () { return true; } }); + var D = declare([A, B, C], { dtest: function () { return true; } }); + noNewTest(D); + // make sure I get the test functions from + // all superclasses + var d = D(); + assert.isTrue(d.ctest()); + assert.isTrue(d.dtest()); + + // Make sure call through an object works + var noNewClasses = { + D: D, + noNew_Value: 'unchanged' + }; + var obj = noNewClasses.D(); + assert.equal(obj.noNew_Value, 'instance value'); + assert.equal(noNewClasses.noNew_Value, 'unchanged'); + }, + + 'create subclass': function () { + var A = declare(null, { + foo: 'thonk' + }); + var B = declare(null, { + }); + var C = declare(null, { + bar: 'thonk' + }); + + // Both 'mixins' and 'props' parameters are provided + var D1 = A.createSubclass([B, C], { + constructor: function () { + this.foo = 'blah'; + } + }); + + // Only 'mixins' parameters is provided + var D2 = A.createSubclass([B, C]); + + // The 'props' parameter is provided as first instead of second parameter + var D3 = A.createSubclass({ + constructor: function () { + this.foo = 'blah'; + } + }); + + // No arguments at all provided + var D4 = A.createSubclass(); + + // Single Mixin + var D5 = A.createSubclass(C); + + var d1 = new D1(); + var d2 = new D2(); + var d3 = new D3(); + var d4 = new D4(); + var d5 = new D5(); + + assert.equal(d1.foo, 'blah'); + assert.equal(d2.foo, 'thonk'); + assert.equal(d1.bar, 'thonk'); + assert.equal(d2.bar, 'thonk'); + assert.equal(d3.foo, 'blah'); + assert.equal(d4.foo, 'thonk'); + assert.equal(d5.bar, 'thonk'); + }, + + safeMixin: function () { + var C = declare(null, { + foo: sinon.spy() + }); + var c = new C(); + // make sure we can mixin foo + declare.safeMixin(c, { + foo: function () { + this.inherited(arguments); + } + }); + sinon.spy(c, 'foo'); + c.foo(); + + assert.isTrue(C.prototype.foo.called); + assert.isTrue(c.foo.called); + assert.doesNotThrow(function () { + declare.safeMixin(c); + }); + } + // TODO: there are still some permutations to test like: + // - ctor arguments + // - multi-level inheritance + L/R conflict checks + }); + }); +})(typeof global !== 'undefined' ? global : this); diff --git a/tests/unit/_base/html.js b/tests/unit/_base/html.js new file mode 100644 index 0000000000..1c63613286 --- /dev/null +++ b/tests/unit/_base/html.js @@ -0,0 +1,12 @@ +define([ + 'intern!object', + 'intern/chai!assert' +], function (registerSuite, assert) { + registerSuite({ + name: 'dojo/_base/html', + + 'TODO: convert tests': function () { + assert.fail(); + } + }); +}); diff --git a/tests/unit/_base/json.js b/tests/unit/_base/json.js new file mode 100644 index 0000000000..569c4bb940 --- /dev/null +++ b/tests/unit/_base/json.js @@ -0,0 +1,80 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../_base/json' +], function (registerSuite, assert, json) { + registerSuite({ + name: 'dojo/_base/json', + 'toJson and fromJson': function () { + // Not testing dojo.toJson() on its own since Rhino will output the object properties in a different order. + // Still valid json, but just in a different order than the source string. + + // take a json-compatible object, convert it to a json string, then put it back into json. + var testObj = { + a: 'a', + b: 1, + c: 'c', + d: 'd', + e: { + e1: 'e1', + e2: 2 + }, + f: [1, 2, 3], + g: 'g', + h: { + h1: { h2: { h3: 'h3' }} + }, + i: [[0, 1, 2], [3], [4]] + }, + obj = json.fromJson(json.toJson(testObj)); + + assert.deepEqual(obj, testObj); + + var badJson; + assert.throws(function () { + badJson = json.fromJson('bad json'); // should throw an exception, and not set badJson + }); + + assert.isUndefined(badJson); + }, + + 'dojo extended json': function () { + var testObj = { + ex1: { + b: 3, + json: function () { + return 'json' + this.b; + } + }, + ex2: { + b: 4, + __json__: function () { + return '__json__' + this.b; + } + } + }, + testStr = json.toJson(testObj); + assert.equal('{"ex1":"json3","ex2":"__json__4"}', testStr); + }, + + 'pretty print json': function () { + if (typeof JSON === 'undefined') { // only test our JSON stringifier + var testObj = {array: [1, 2, { a: 4, b: 4 }]}; + var testStr = json.toJson(testObj, true); + assert.equal('{\n\t\"array\": [\n\t\t1,\n\t\t2,\n\t\t{\n\t\t\t\"a\": 4,\n\t\t\t\"b\": 4\n\t\t}\n\t]\n}', testStr); + } + }, + + 'eval json': function () { + var testStr = '{func: function(){}, number: Infinity}'; + var testObj = json.fromJson(testStr); + + assert.isFunction(testObj.func); + assert.isNumber(testObj.number); + }, + + 'toJson called on string': function () { + assert.equal('"hello"', json.toJson('hello')); + } + }); +}); diff --git a/tests/unit/_base/lang.js b/tests/unit/_base/lang.js new file mode 100644 index 0000000000..01da2aae21 --- /dev/null +++ b/tests/unit/_base/lang.js @@ -0,0 +1,396 @@ +define([ + 'intern!object', + 'intern/chai!assert', + 'dojo/_base/array', + '../../../_base/lang', + '../../../_base/kernel', + 'dojo/has', + 'dojo/has!host-browser?dojo/domReady!' +], function (registerSuite, assert, array, lang, kernel, has) { + registerSuite({ + name: 'dojo/_base/lang', + + '.exists': function () { + var test = { + foo: 0 + }; + assert.isTrue(lang.exists('foo', test), 'test.foo should exist'); + assert.isFalse(lang.exists('foo.bar', test), 'test.foo.bar should not exist'); + + // global tests + assert.isFalse(lang.exists('_existsTest'), '_existsTest should not exist'); + kernel.global._existsTest = false; + assert.isTrue(lang.exists('_existsTest'), '_existsTest should exist'); + assert.isFalse(lang.exists('_existsTest.bar'), '_existsTest.bar should not exist'); + + // scopeMap tests + assert.isTrue(lang.exists('dojo.dijit'), 'dojo.dijit should exist'); + assert.isFalse(lang.exists('dojo.foo'), 'dojo.foo should not exist'); + }, + + '.getObject': function () { + var test = { + foo: {} + }; + + assert.strictEqual(lang.getObject('foo', false, test), test.foo); + assert.strictEqual(typeof lang.getObject('foo.bar', false, test), 'undefined'); + assert.strictEqual(typeof lang.getObject('foo.bar', true, test), 'object'); + + test.foo.bar.baz = 'test'; + assert.strictEqual(lang.getObject('foo.bar', false, test), test.foo.bar); + + // global tests + assert.strictEqual(typeof lang.getObject('_getObjectTest.bar', false), 'undefined'); + kernel.global._getObjectTest = {}; + assert.strictEqual(lang.getObject('_getObjectTest', false), kernel.global._getObjectTest); + assert.strictEqual(typeof lang.getObject('_getObjectTest.bar', true), 'object'); + + // strangely, parser does this + assert.strictEqual(typeof lang.getObject('./TestWidget'), 'undefined'); + + // empty path should return the same object + assert.strictEqual(lang.getObject('', false, test), test); + assert.strictEqual(lang.getObject(''), kernel.global); + }, + + '.setObject': function () { + var test = { + foo: 0 + }; + + lang.setObject('foo', { bar: 'test' }, test); + assert.deepEqual(test, { foo: { bar: 'test' } }); + }, + + '.mixin': function () { + var src = { + foo: function () { + console.debug('foo'); + }, + bar: 'bar' + }; + var dest = {}; + lang.mixin(dest, src); + + assert.typeOf(lang.mixin(), 'object'); + assert.typeOf(lang.mixin(undefined), 'object'); + assert.typeOf(lang.mixin(null), 'object'); + assert.typeOf(dest.foo, 'function'); + assert.typeOf(dest.bar, 'string'); + }, + + '.extend': function () { + var src = { + foo: function () { + console.debug('foo'); + }, + bar: 'bar' + }; + var test; + function Dest() {} + + lang.extend(Dest, src); + test = new Dest(); + + assert.typeOf(test.foo, 'function'); + assert.typeOf(test.bar, 'string'); + }, + + '.isFunction': function () { + function test() {} + + assert.isTrue(lang.isFunction(new Function())); + assert.isTrue(lang.isFunction(test)); + + if (has('host-browser')) { // test the Safari workaround for NodeList + assert.isFalse(lang.isFunction(document.getElementsByName('html'))); + assert.isFalse(lang.isFunction(document.createElement('object'))); + } + }, + + '.isObject': function () { + assert.isFalse(lang.isObject(true)); + assert.isFalse(lang.isObject(false)); + assert.isFalse(lang.isObject('foo')); + /*jshint -W053 */ + assert.isTrue(lang.isObject(new String('foo'))); + assert.isTrue(lang.isObject(null)); + assert.isTrue(lang.isObject({})); + assert.isTrue(lang.isObject([])); + /*jshint -W009 */ + assert.isTrue(lang.isObject(new Array())); + }, + + '.isArray': function () { + /*jshint -W009 */ + assert.isTrue(lang.isArray([])); + assert.isTrue(lang.isArray(new Array())); + assert.isFalse(lang.isArray({})); + assert.isFalse(lang.isArray('')); + assert.isFalse(lang.isArray(0)); + assert.isFalse(lang.isArray(NaN)); + assert.isFalse(lang.isArray(null)); + assert.isFalse(lang.isArray(undefined)); + if (typeof window !== 'undefined') { + assert.isFalse(lang.isArray(window)); + } + assert.isFalse(lang.isArray(Function)); + function Tricky() {} + Tricky.prototype = []; + assert.isFalse(lang.isArray(new Tricky())); + }, + + '.isArrayLike': function () { + /*jshint -W009 */ + assert.isFalse(lang.isArrayLike('thinger')); + assert.isTrue(lang.isArrayLike(new Array())); + assert.isFalse(lang.isArrayLike({})); + assert.isTrue(lang.isArrayLike(arguments)); + assert.isFalse(lang.isArrayLike('')); + assert.isFalse(lang.isArrayLike(false)); + assert.isFalse(lang.isArrayLike(NaN)); + assert.isFalse(lang.isArrayLike(undefined)); + assert.isFalse(lang.isArrayLike(null)); + if(typeof window !== 'undefined'){ + assert.isTrue(lang.isArrayLike(window)); + } + assert.isFalse(lang.isArrayLike(Function)); + + assert.isTrue(lang.isArrayLike({0: 1, 1: 2, length: 2})); + function Tricky() {} + Tricky.prototype = []; + assert.isTrue(lang.isArrayLike(new Tricky())); + }, + + '.isString': function () { + /*jshint -W053 */ + assert.isFalse(lang.isString(true)); + assert.isFalse(lang.isString(false)); + assert.isTrue(lang.isString('foo')); + assert.isTrue(lang.isString(new String('foo'))); + assert.isFalse(lang.isString(null)); + assert.isFalse(lang.isString({})); + assert.isFalse(lang.isString([])); + }, + + '.partial': function () { + var scope = { foo: 'bar' }; + var st1; + var st2; + var st3; + + function thinger(arg1, arg2) { + return [this.foo, arg1, arg2]; + } + + st1 = lang.partial(thinger); + assert.equal('bar', st1.call(scope)[0]); + assert.equal(undefined, st1()[0]); + + st2 = lang.partial(thinger, 'foo', 'bar'); + assert.equal('bar', st2()[2]); + st3 = lang.partial(thinger, 'foo', 'bar'); + }, + + '.partial nested': function () { + var st1; + var st2; + + function thinger(arg1, arg2) { + return [arg1, arg2]; + } + + st1 = lang.partial(thinger, 'foo'); + assert.equal(undefined, st1()[1]); + assert.equal('bar', st1('bar')[1]); + + // partials can accumulate + st2 = lang.partial(st1, 'thud'); + assert.equal('foo', st2()[0]); + assert.equal('thud', st2()[1]); + }, + + '.hitch': function () { + var scope = { foo: 'bar' }; + var scope2 = { foo: 'baz' }; + var st1; + var st2; + + function thinger() { + return [this.foo, arguments.length]; + } + + st1 = lang.hitch(scope, thinger); + assert.equal('bar', st1()[0]); + assert.equal(0, st1()[1]); + + st2 = lang.hitch(scope2, thinger); + assert.equal('baz', st2()[0]); + assert.equal(0, st1()[1]); + assert.equal(1, st1('blah')[1]); + + // st2 should be "scope proof" + assert.equal('baz', st2.call(scope)[0]); + }, + + '.hitch with args': function () { + var scope = { foo: 'bar' }; + var scope2 = { foo: 'baz' }; + var st1; + var st2; + + function thinger() { + return [this.foo, arguments.length]; + } + + st1 = lang.hitch(scope, thinger, 'foo', 'bar'); + assert.equal('bar', st1()[0]); + assert.equal(2, st1()[1]); + + st2 = lang.hitch(scope2, thinger, 'foo', 'bar'); + assert.equal('baz', st2()[0]); + assert.equal(2, st2()[1]); + }, + + '.hitch as partial': function () { + var scope = { foo: 'bar' }; + var st1; + var st2; + + function thinger(arg1, arg2) { + return [this.foo, arg1, arg2]; + } + + st1 = lang.hitch(null, thinger); + assert.equal('bar', st1.call(scope)[0]); + assert.equal(undefined, st1()[0]); + + st2 = lang.hitch(null, thinger, 'foo', 'bar'); + assert.equal('bar', st2()[2]); + }, + + '.toArray': function () { + var obj1 = [ 'foo', 'bar', 'spam', 'ham' ]; + var obj2; + var div; + var result; + + function thinger() { + return lang._toArray(arguments); + } + + obj2 = thinger.apply(this, obj1); + assert.equal(obj1[0], obj2[0]); + + if (has('host-browser')) { + // test DomCollection + div = document.createElement('div'); + div.innerHTML = 'linktext'; + result = lang._toArray(div.childNodes); + assert.equal(2, result.length); + } + }, + + '.clone': function () { + var obj1 = { + foo: 'bar', + answer: 42, + jan102007: new Date(2007, 0, 10), + baz: { + a: null, + b: [1, 'b', 2.3, true, false], + c: { + d: undefined, + e: 99, + f: function () { console.log(42); return 42; }, + g: /\d+/gm + } + }, + toString: function () { return 'meow'; } + }; + + assert.deepEqual(obj1, lang.clone(obj1)); + }, + + '.delegate': function () { + var a = { + x: 1, + y: function () { return 2; }, + z1: 99 + }; + var b = { + x: 11, + y: function () { return 12; }, + z2: 33, + toString: function () { return 'bark!'; }, + toLocaleString: function () { return 'le bark-s!'; } + }; + var c; + + assert.strictEqual(1, a.x); + assert.strictEqual(2, a.y()); + assert.strictEqual(99, a.z1); + + c = lang.delegate(a, b); + + assert.strictEqual(1, a.x); + assert.strictEqual(2, a.y()); + assert.strictEqual(99, a.z1); + assert.strictEqual(11, c.x); + assert.strictEqual(12, c.y()); + assert.strictEqual('bark!', c.toString()); + assert.strictEqual('le bark-s!', c.toLocaleString()); + assert.strictEqual(99, c.z1); + assert.strictEqual(33, c.z2); + }, + + '.replace with object': function () { + var objectContext = { + nick: 'Bob', + name: { + first: 'Robert', + middle: 'X', + last: 'Cringely' + } + }; + var s1 = lang.replace('Hello, {name.first} {name.last} AKA {nick}!', objectContext); + assert.equal('Hello, Robert Cringely AKA Bob!', s1); + }, + + '.replace with array context': function () { + var arrayContext = ['Robert', 'X', 'Cringely']; + var s2 = lang.replace('Hello, {0} {2}!', arrayContext); + assert.equal('Hello, Robert Cringely!', s2); + }, + + '.replace with function': function () { + function sum(a) { + var t = 0; + array.forEach(a, function (x) { t += x; }); + return t; + } + + var s1 = lang.replace( + '{count} payments averaging {avg} USD per payment.', + lang.hitch( + { payments: [11, 16, 12] }, + function (_, key) { + switch (key) { + case 'count': + return this.payments.length; + case 'avg': + return sum(this.payments) / this.payments.length; + } + return ''; + } + )); + assert.equal('3 payments averaging 13 USD per payment.', s1); + }, + + '.replace with regex': function () { + var s4 = lang.replace('Hello, ${0} ${2}!', ['Robert', 'X', 'Cringely'], /\$\{([^\}]+)\}/g); + assert.equal('Hello, Robert Cringely!', s4); + } + }); +}); diff --git a/tests/unit/_base/query.js b/tests/unit/_base/query.js new file mode 100644 index 0000000000..8ce3365597 --- /dev/null +++ b/tests/unit/_base/query.js @@ -0,0 +1,12 @@ +define([ + 'intern!object', + 'intern/chai!assert' +], function (registerSuite, assert) { + registerSuite({ + name: 'dojo/_base/query', + + 'TODO: convert tests': function () { + assert.fail(); + } + }); +}); diff --git a/tests/unit/_base/sniff.js b/tests/unit/_base/sniff.js new file mode 100644 index 0000000000..075a958452 --- /dev/null +++ b/tests/unit/_base/sniff.js @@ -0,0 +1,12 @@ +define([ + 'intern!object', + 'intern/chai!assert' +], function (registerSuite, assert) { + registerSuite({ + name: 'dojo/_base/sniff', + + 'TODO: convert tests': function () { + assert.fail(); + } + }); +}); diff --git a/tests/unit/_base/window.js b/tests/unit/_base/window.js new file mode 100644 index 0000000000..b6bb2a6eb7 --- /dev/null +++ b/tests/unit/_base/window.js @@ -0,0 +1,12 @@ +define([ + 'intern!object', + 'intern/chai!assert' +], function (registerSuite, assert) { + registerSuite({ + name: 'dojo/_base/window', + + 'TODO: convert tests': function () { + assert.fail(); + } + }); +}); diff --git a/tests/unit/_base/xhr.js b/tests/unit/_base/xhr.js new file mode 100644 index 0000000000..e1f88fa32c --- /dev/null +++ b/tests/unit/_base/xhr.js @@ -0,0 +1,404 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../_base/kernel', + '../../../_base/xhr', + '../../../_base/Deferred', + '../../../topic', + 'dojo/_base/array', + 'dojo/query', + 'dojo/json', + 'dojo/dom-construct', + 'dojo/Deferred', + 'dojo/promise/all', + 'dojo/domReady!' +], function (registerSuite, assert, dojo, xhr, baseDeferred, topic, + array, query, JSON, domConstruct, Deferred, all) { + var form, topicCount, remover; + registerSuite({ + name: 'dojo/_base/xhr', + + 'text content handler': function () { + assert.strictEqual( + dojo._contentHandlers.text({ + responseText: 'foo bar baz ' + }), + 'foo bar baz ' + ); + }, + + 'json content handler': function () { + var object = { + foo: 'bar', + baz: [ + { thonk: 'blarg' }, + 'xyzzy!' + ] + }; + assert.deepEqual( + dojo._contentHandlers.json({ + responseText: JSON.stringify(object) + }), + object + ); + }, + + 'json-comment-filtered handler': function () { + var object = { + foo: 'bar', + baz: [ + { thonk: 'blarg' }, + 'xyzzy!' + ] + }; + + assert.throws(function () { + dojo._contentHandlers['json-comment-filtered']({ + responseText: JSON.stringify(object) + }); + }); + assert.deepEqual( + dojo._contentHandlers['json-comment-filtered']({ + responseText: '\tblag\n/*' + JSON.stringify(object) + '*/\n\r\t\r' + }), + object + ); + assert.deepEqual( + dojo._contentHandlers['json-comment-optional']({ + responseText: '\tblag\n/*' + JSON.stringify(object) + '*/\n\r\t\r' + }), + object + ); + }, + + 'javascript content handler': function () { + var object = { + foo: 'bar', + baz: [ + { thonk: 'blarg' }, + 'xyzzy!' + ] + }; + + assert.deepEqual( + dojo._contentHandlers['javascript']({ + responseText: '(' + JSON.stringify(object) + ')' + }), + object + ); + assert.ok( + dojo._contentHandlers['javascript']({ + responseText: 'true;' + }) + ); + assert.ok( + !dojo._contentHandlers['javascript']({ + responseText: 'false;' + }) + ); + }, + + 'xml content handler': function () { + var fakeXHR = { + responseText: 'blarg' + }; + + if ('DOMParser' in dojo.global) { + var parser = new DOMParser(); + fakeXHR.responseXML = parser.parseFromString(fakeXHR.responseText, 'text/xml'); + } + + var xmlDoc = dojo._contentHandlers['xml'](fakeXHR); + assert.strictEqual(xmlDoc.documentElement.tagName, 'foo'); + }, + + '.get': { + success: function () { + var dfd = this.async(30000, 2), + xdfd = xhr.get({ + url: '/__services/request/xhr', + preventCache: true, + handleAs: 'json', + load: dfd.callback(function (data, ioArgs) { + assert.strictEqual(ioArgs.xhr.readyState, 4); + return data; + }) + }); + + assert.instanceOf(xdfd, baseDeferred); + + xdfd.addCallback(dfd.callback(function (data) { + assert.strictEqual(data.method, 'GET'); + })); + xdfd.addErrback(dfd.reject); + }, + + '404 status': function () { + var dfd = this.async(30000, 2), + xdfd = xhr.get({ + url: 'xhr_blarg.html', + error: dfd.callback(function (err, ioArgs) { + assert.strictEqual(ioArgs.xhr.status, 404); + return err; + }) + }); + + xdfd.addCallback(dfd.reject); + xdfd.addErrback(dfd.resolve); + }, + + content: function () { + var dfd = this.async(), + xdfd = xhr.get({ + url: '/__services/request/xhr?color=blue', + content: { + foo: [ 'bar', 'baz' ], + thud: 'thonk', + xyzzy: 3 + } + }); + + xdfd.addCallback(dfd.callback(function () { + assert.strictEqual( + xdfd.ioArgs.url, + '/__services/request/xhr?color=blue&foo=bar&foo=baz&thud=thonk&xyzzy=3' + ); + })); + }, + + form: { + setup: function () { + form = domConstruct.place('
    ', document.body); + }, + + teardown: function () { + domConstruct.destroy(form); + form = null; + }, + + 'serialize': function () { + var dfd = this.async(), + xdfd = xhr.get({ + url: '/__services/request/xhr', + form: 'f3' + }); + + xdfd.addCallback(dfd.callback(function () { + assert.strictEqual( + xdfd.ioArgs.url, + '/__services/request/xhr?spaces=string%20with%20spaces' + ); + })); + }, + + 'with content': function () { + var dfd = this.async(), + xdfd = xhr.get({ + url: '/__services/request/xhr', + form: 'f3', + content: { spaces: 'blah' } + }); + + xdfd.addCallback(dfd.callback(function () { + assert.strictEqual( + xdfd.ioArgs.url, + '/__services/request/xhr?spaces=blah' + ); + })); + } + } + }, + + '.post': { + success: function () { + var dfd = this.async(); + + xhr.post({ + url: '/__services/request/xhr?foo=bar', + content: { color: 'blue' }, + handleAs: 'json', + handle: dfd.callback(function (data) { + assert.strictEqual(data.method, 'POST'); + assert.deepEqual(data.query, { foo: 'bar' }); + assert.deepEqual(data.payload, { color: 'blue' }); + }) + }); + }, + + 'with content': function () { + var dfd = this.async(), + xdfd = xhr.post({ + url: '/__services/request/xhr', + content: { + foo: [ 'bar', 'baz' ], + thud: 'thonk', + xyzzy: 3 + } + }); + + xdfd.addCallback(dfd.callback(function () { + assert.strictEqual(xdfd.ioArgs.query, 'foo=bar&foo=baz&thud=thonk&xyzzy=3'); + })); + xdfd.addErrback(dfd.reject); + }, + + form: { + setup: function () { + form = domConstruct.place('
    ', document.body); + }, + + teardown: function () { + domConstruct.destroy(form); + form = null; + }, + + 'serialize': function () { + var dfd = this.async(), + xdfd = xhr.post({ + form: 'f4' + }); + + xdfd.addCallback(dfd.resolve); + xdfd.addErrback(dfd.reject); + } + }, + + raw: function () { + var dfd = this.async(), + xdfd = xhr.post({ + url: '/__services/request/xhr', + postData: 'foo=bar&color=blue&height=average', + handleAs: 'json' + }); + + xdfd.addCallback(dfd.callback(function (data) { + assert.deepEqual(data.payload, { + foo: 'bar', + color: 'blue', + height: 'average' + }); + })); + xdfd.addErrback(dfd.reject); + } + }, + + '.put': function () { + var dfd = this.async(), + xdfd = xhr.put({ + url: '/__services/request/xhr?foo=bar', + content: { color: 'blue' }, + handleAs: 'json' + }); + + xdfd.addCallback(dfd.callback(function (data) { + assert.strictEqual(data.method, 'PUT'); + assert.deepEqual(data.query, { foo: 'bar' }); + assert.deepEqual(data.payload, { color: 'blue' }); + })); + xdfd.addErrback(dfd.reject); + }, + + '.del': function () { + var dfd = this.async(), + xdfd = xhr.del({ + url: '/__services/request/xhr', + preventCache: true, + handleAs: 'json' + }); + + xdfd.addCallback(dfd.callback(function (data) { + assert.strictEqual(data.method, 'DELETE'); + })); + xdfd.addErrback(dfd.reject); + }, + + cancel: function () { + var dfd = this.async(), + xdfd = xhr.post({ + url: '/__services/request/xhr?delay=3000' + }); + + xdfd.addCallback(dfd.reject); + xdfd.addErrback(dfd.callback(function (error) { + assert.instanceOf(error, Error); + assert.strictEqual(error.dojoType, 'cancel'); + })); + + xdfd.cancel(); + }, + + 'xml queryable': function () { + var dfd = this.async(), + xdfd = xhr.get({ + url: '/__services/request/xhr/xml', + handleAs: 'xml' + }); + + xdfd.addCallback(dfd.callback(function (xmlDoc) { + var results = query('bar', xmlDoc); + assert.strictEqual(results.length, 2); + })); + xdfd.addErrback(dfd.reject); + }, + + ioPublish: { + setup: function () { + dojo.config.ioPublish = true; + topicCount = {}; + + var handles = []; + remover = function () { + array.forEach(handles, function (handle) { + handle.remove(); + }); + handles = null; + }; + + array.forEach( + [ 'start', 'send', 'load', 'error', 'done' ], + function (name) { + topicCount[name] = 0; + handles.push( + topic.subscribe('/dojo/io/' + name, function () { + topicCount[name] += 1; + }) + ); + } + ); + }, + + teardown: function () { + dojo.config.ioPublish = false; + remover(); + }, + + counts: function () { + var dfd = this.async(), + dfd1 = new Deferred(), + xdfd1 = xhr.get({ url: '/__services/request/xhr?delay=1000' }), + dfd2 = new Deferred(), + xdfd2 = xhr.get({ url: '/__services/request/xhr?delay=1000' }); + + xdfd1.addCallback(dfd1.resolve); + xdfd1.addErrback(dfd1.reject); + xdfd2.addCallback(dfd2.resolve); + xdfd2.addErrback(dfd2.reject); + + all([dfd1, dfd2]).then( + function () { + setTimeout(dfd.callback(function () { + assert.deepEqual(topicCount, { + start: 1, + send: 2, + load: 2, + error: 0, + done: 2 + }); + }), 100); + }, + dfd.reject + ); + } + } + }); +}); diff --git a/tests/unit/all.js b/tests/unit/all.js new file mode 100644 index 0000000000..d64714086f --- /dev/null +++ b/tests/unit/all.js @@ -0,0 +1,59 @@ +define([ + './AdapterRegistry', + './Deferred', + './Evented', + './Stateful', + './_base', + './aspect', + './cache', + './cldr/monetary', + './cldr/supplemental', + './colors', + './currency', + './date', + './date/locale', + './date/stamp', + './debounce', + './errors', + './fx/easing', + './i18n', + './io-query', + './json', + './keys', + './loadInit', + './number', + './on', + './on/throttle', + './promise', + './regexp', + './request', + './store', + './string', + './throttle', + './topic', + './when', + + // host-specific tests + 'dojo/has!host-browser?./NodeList-html', + 'dojo/has!host-browser?./NodeList-manipulate', + 'dojo/has!host-browser?./NodeList-traverse', + 'dojo/has!host-browser?./back', + 'dojo/has!host-browser?./dom-attr', + 'dojo/has!host-browser?./dom-construct', + 'dojo/has!host-browser?./dom-form', + 'dojo/has!host-browser?./dom-prop', + 'dojo/has!host-browser?./dom-style', + 'dojo/has!host-browser?./hash', + 'dojo/has!host-browser?./html', + 'dojo/has!host-browser?./io/iframe', + 'dojo/has!host-browser?./mouse', + // TODO: this should work in node as well, but it uses dom-construct + 'dojo/has!host-browser?./on/debounce', + 'dojo/has!host-browser?./parser', + 'dojo/has!host-browser?./query', + 'dojo/has!host-browser?./require/require', + 'dojo/has!host-browser?./router', + 'dojo/has!host-browser?./rpc', + 'dojo/has!host-browser?./text', + 'dojo/has!host-node?./node' +], function () {}); diff --git a/tests/unit/aspect.js b/tests/unit/aspect.js new file mode 100644 index 0000000000..7594b531aa --- /dev/null +++ b/tests/unit/aspect.js @@ -0,0 +1,180 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../aspect', + 'sinon' +], function (registerSuite, assert, aspect, sinon) { + var slice = Array.prototype.slice; + + function createBeforeSpy() { + return sinon.spy(function (a) { + return [a + 1]; + }); + } + + registerSuite(function () { + var obj; + var methodSpy; + + return { + name: 'dojo/aspect', + + 'beforeEach': function () { + methodSpy = sinon.spy(function (a) { + return a + 1; + }); + obj = { method: methodSpy }; + }, + + '.before': { + 'return value passed as arguments': function () { + var aspectSpy = createBeforeSpy(); + + aspect.before(obj, 'method', aspectSpy); + + obj.method(0); + assert.isTrue(aspectSpy.calledBefore(methodSpy)); + assert.isTrue(aspectSpy.calledOnce); + assert.isTrue(methodSpy.calledOnce); + assert.equal(aspectSpy.lastCall.args[0], 0); + assert.equal(methodSpy.lastCall.args[0], 1); + assert.equal(methodSpy.returnValues[0], 2); + }, + + 'multiple aspect.before()': function () { + var aspectSpy1 = createBeforeSpy(); + var aspectSpy2 = createBeforeSpy(); + + aspect.before(obj, 'method', aspectSpy1); + aspect.before(obj, 'method', aspectSpy2); + + obj.method(5); + assert.isTrue(aspectSpy2.calledBefore(aspectSpy1)); + assert.isTrue(aspectSpy1.calledBefore(methodSpy)); + assert.equal(aspectSpy2.lastCall.args[0], 5); + assert.equal(aspectSpy1.lastCall.args[0], 6); + assert.equal(methodSpy.lastCall.args[0], 7); + assert.equal(methodSpy.returnValues[0], 8); + } + }, + + '.after': { + 'overriding return value from original method': function () { + var expected = 'override!'; + var aspectSpy = sinon.stub().returns(expected); + + aspect.after(obj, 'method', aspectSpy); + assert.equal(obj.method(0), expected); + assert.isTrue(aspectSpy.calledAfter(methodSpy)); + }, + + 'multiple aspect.after()': function () { + var aspectStub1 = sinon.stub(); + var aspectStub2 = sinon.stub(); + + aspect.after(obj, 'method', aspectStub1); + aspect.after(obj, 'method', aspectStub2); + + obj.method(0); + assert.isTrue(aspectStub1.calledAfter(methodSpy)); + assert.isTrue(aspectStub2.calledAfter(aspectStub1)); + }, + + 'recieveArguments is true': { + 'provides the original arguments to the aspect method': function () { + var expected = 'expected'; + var aspectStub = sinon.stub().returns(expected); + + aspect.after(obj, 'method', aspectStub); + assert.equal(obj.method(0), expected); + assert.isTrue(aspectStub.calledAfter(methodSpy)); + assert.equal(aspectStub.lastCall.args[0], 1); + assert.deepEqual(slice.call(aspectStub.lastCall.args[1]), methodSpy.lastCall.args); + }, + + 'not overriding return value': function () { + var aspectStub = sinon.stub().returns(undefined); + + aspect.after(obj, 'method', aspectStub, true); + assert.equal(obj.method(0), 1); + assert.isTrue(aspectStub.calledAfter(methodSpy)); + } + } + }, + + '.around': { + 'single around': function () { + var expected = 5; + var aroundFunction = sinon.stub().returns(expected); + var aspectStub = sinon.stub().returns(aroundFunction); + + aspect.around(obj, 'method', aspectStub); + + assert.equal(obj.method(0), expected); + assert.isTrue(aspectStub.calledOnce); + assert.isTrue(aroundFunction.calledOnce); + assert.equal(aroundFunction.firstCall.args[0], 0); + assert.isFalse(methodSpy.called); + + // test that the original method was provided + aspectStub.callArgWith(0, 10); + assert.isTrue(methodSpy.calledOnce); + assert.equal(methodSpy.firstCall.args[0], 10); + } + }, + + 'handle.remove()': { + 'prevents aspect from being called': function () { + var aspectSpy = createBeforeSpy(); + var handle = aspect.before(obj, 'method', aspectSpy); + + obj.method(0); + assert.notEqual(obj.method, methodSpy); + + handle.remove(); + obj.method(1); + assert.notEqual(obj.method, methodSpy); + assert.isTrue(methodSpy.calledTwice); + assert.isTrue(aspectSpy.calledOnce); + }, + + 'can remove an aspect from the middle of a list': function () { + var aspectSpy1 = createBeforeSpy(); + var aspectSpy2 = createBeforeSpy(); + var handle = aspect.before(obj, 'method', aspectSpy1); + + aspect.before(obj, 'method', aspectSpy2); + handle.remove(); + + obj.method(0); + assert.isTrue(methodSpy.called); + assert.isTrue(aspectSpy2.called); + assert.isFalse(aspectSpy1.called); + }, + + 'removing a aspect stub': function () { + var obj = {}; + var aspectSpy = sinon.stub(); + aspect.before(obj, 'method', sinon.stub()); + var handle = aspect.before(obj, 'method', aspectSpy); + + handle.remove(); + obj.method(0); + assert.isFalse(aspectSpy.called); + }, + + 'removing the first of multiple aspects': function () { + var aroundFunction = sinon.stub(); + var aspectStub = sinon.stub().returns(aroundFunction); + var handle = aspect.around(obj, 'method', aspectStub); + + handle.remove(); + obj.method(0); + assert.isTrue(aspectStub.calledOnce); + assert.isTrue(methodSpy.calledOnce); + assert.isFalse(aroundFunction.called); + } + } + }; + }); +}); diff --git a/tests/unit/back.js b/tests/unit/back.js new file mode 100644 index 0000000000..ebceb7563d --- /dev/null +++ b/tests/unit/back.js @@ -0,0 +1,32 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../back' +], function (registerSuite, assert, back) { + registerSuite({ + name: 'dojo/back', + + 'getHash and setHash': function () { + var cases = [ + 'test', + 'test with spaces', + 'test%20with%20encoded', + 'test+with+pluses', + ' leading', + 'trailing ', + 'under_score', + 'extra#mark', + 'extra?instring', + 'extra&instring', + '#leadinghash' + ]; + var str; + + for (var i = cases.length; i--;) { + str = cases[i]; + back.setHash(str); + assert.strictEqual(str, back.getHash()); + } + } + }); +}); diff --git a/tests/unit/cache.js b/tests/unit/cache.js new file mode 100644 index 0000000000..63ccfee60f --- /dev/null +++ b/tests/unit/cache.js @@ -0,0 +1,44 @@ +define([ + 'require', + 'intern!object', + 'intern/chai!assert', + 'sinon', + '../../cache', + 'dojo/_base/url', + 'dojo/_base/lang' +], function (require, module, registerSuite, assert, sinon, cache, Url, lang) { + var expected = '

    Hello World

    '; + var cacheNamespace = require.toAbsMid('./support/cache').replace(/\//g, '.'); + var cacheSanitizeOptions = { sanitize: true }; + + registerSuite(function () { + return { + name: 'dojo/cache', + + 'caches xhr request': function () { + var actual = lang.trim(cache(cacheNamespace, 'regular.html')); + assert.equal(actual, expected); + }, + + 'sanatizes request': function () { + var actual = lang.trim(cache(cacheNamespace, 'sanitized.html', cacheSanitizeOptions)); + assert.equal(actual, expected); + }, + + 'object variant passed as module': function () { + var objPath = require.toUrl('./__support/cache/object.html'); + var actual = lang.trim(cache(new Url(objPath), cacheSanitizeOptions)); + assert.equal(actual, expected); + }, + + 'unset cache returns null and does not throw': function () { + assert.isNull(cache(cacheNamespace, 'regular.html', null)); + }, + + 'set value': function () { + assert.equal('', cache(cacheNamespace, 'regular.html', '')); + assert.equal('', cache(cacheNamespace, 'regular.html')); + } + }; + }); +}); diff --git a/tests/unit/cldr/monetary.js b/tests/unit/cldr/monetary.js new file mode 100644 index 0000000000..6426d568f2 --- /dev/null +++ b/tests/unit/cldr/monetary.js @@ -0,0 +1,25 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../cldr/monetary' +], function (registerSuite, assert, monetary) { + registerSuite({ + name: 'dojo/cldr/monetary', + + '.getData': { + 'known special case': function () { + var actual = monetary.getData('ITL'); + + assert.equal(actual.places, 0); + assert.equal(actual.round, 0); + }, + + 'defaults for cases not specifically defined': function () { + var actual = monetary.getData('USD'); + + assert.equal(actual.places, 2); + assert.equal(actual.round, 0); + } + } + }); +}); diff --git a/tests/unit/cldr/supplemental.js b/tests/unit/cldr/supplemental.js new file mode 100644 index 0000000000..86c8341811 --- /dev/null +++ b/tests/unit/cldr/supplemental.js @@ -0,0 +1,22 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../cldr/supplemental' +], function (registerSuite, assert, supplemental) { + registerSuite({ + name: 'dojo/cldr/supplemental', + + '.getFirstDayOfWeek': function () { + assert.strictEqual(supplemental.getFirstDayOfWeek('en-us'), 0); + assert.strictEqual(supplemental.getFirstDayOfWeek('en-gb'), 1); + assert.strictEqual(supplemental.getFirstDayOfWeek('es'), 1); + }, + + '.getWeekend': function () { + assert.strictEqual(supplemental.getWeekend('en-us').start, 6); + assert.strictEqual(supplemental.getWeekend('en').end, 0); + assert.strictEqual(supplemental.getWeekend('he-il').start, 5); + assert.strictEqual(supplemental.getWeekend('he').end, 6); + } + }); +}); diff --git a/tests/unit/colors.js b/tests/unit/colors.js new file mode 100644 index 0000000000..492250028a --- /dev/null +++ b/tests/unit/colors.js @@ -0,0 +1,62 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../_base/Color', + '../../colors' +], function (registerSuite, assert, Color, colors) { + + /** + * array or arrays to add for tests - actual and expected indexes + * @type {Array} + */ + var testColorsObject = [ + [ 'black', [0, 0, 0] ], + [ 'white', [255, 255, 255] ], + [ 'maroon', [128, 0, 0] ], + [ 'olive', [128, 128, 0] ], + [ '#f00', 'red' ], + [ '#ff0000', 'red' ], + [ 'rgb(255, 0, 0)', 'red' ], + [ 'rgb(100%, 0%, 0%)', 'red' ], + [ 'rgb(300, 0, 0)', 'red' ], + [ 'rgb(255, -10, 0)', 'red' ], + [ 'rgb(110%, 0%, 0%)', 'red' ], + [ 'rgba(255, 0, 0, 1)', 'red' ], + [ 'rgba(100%, 0%, 0%, 1)', 'red' ], + [ 'rgba(0, 0, 255, 0.5)', [0, 0, 255, 0.5] ], + [ 'rgba(100%, 50%, 0%, 0.1)', [255, 128, 0, 0.1] ], + [ 'hsl(0, 100%, 50%)', 'red' ], + [ 'hsl(120, 100%, 50%)', 'lime' ], + [ 'hsl(120, 100%, 25%)', 'green' ], + [ 'hsl(120, 100%, 75%)', '#80ff80' ], + [ 'hsl(120, 50%, 50%)', '#40c040' ], + [ 'hsla(120, 100%, 50%, 1)', 'lime' ], + [ 'hsla(240, 100%, 50%, 0.5)', [0, 0, 255, 0.5] ], + [ 'hsla(30, 100%, 50%, 0.1)', [255, 128, 0, 0.1] ], + [ 'transparent', [0, 0, 0, 0] ], + [ colors.makeGrey(5), [5, 5, 5, 1] ], + [ colors.makeGrey(2, 0.3), [2, 2, 2, 0.3] ] + ]; + + registerSuite({ + name: 'dojo/colors', + + 'test colors': function () { + var i, + k, + actual, + expected; + + for (i = 0; i < testColorsObject.length; i += 1) { + actual = new Color(testColorsObject[i][0]); + expected = new Color(testColorsObject[i][1]); + + assert.deepEqual(actual.toRgba(), expected.toRgba()); + + for (k = 0; k < actual.length; k += 1) { + assert.isNumber(actual[k]); + } + } + } + }); +}); diff --git a/tests/unit/currency.js b/tests/unit/currency.js new file mode 100644 index 0000000000..741b0836cc --- /dev/null +++ b/tests/unit/currency.js @@ -0,0 +1,109 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../currency', + 'dojo/i18n' +], function (registerSuite, assert, currency) { + registerSuite({ + name: 'dojo/currency', + + '.format': { + 'en-us locale': { + 'EUR currency': function () { + assert.equal(currency.format(123.45, {currency: 'EUR', locale: 'en-us'}), '\u20ac123.45'); + }, + + 'USD currency': { + 'hundreds': function () { + assert.equal(currency.format(123.45, {currency: 'USD', locale: 'en-us'}), '$123.45'); + }, + + 'thousands separator': function () { + assert.equal(currency.format(1234.56, {currency: 'USD', locale: 'en-us'}), '$1,234.56'); + }, + + 'fractional is false': function () { + var options = {currency: 'USD', fractional: false, locale: 'en-us'}; + assert.equal(currency.format(1234, options), '$1,234'); + } + }, + + 'CAD currency': function () { + assert.equal(currency.format(123.45, {currency: 'CAD', locale: 'en-us'}), 'CA$123.45'); + }, + + 'unknown currency': function () { + // There is no special currency symbol for ADP, so expect the ISO code instead + assert.equal(currency.format(123, {currency: 'ADP', locale: 'en-us'}), 'ADP123'); + } + }, + + 'en-ca locale': { + 'USD currency': function () { + assert.equal(currency.format(123.45, {currency: 'USD', locale: 'en-ca'}), 'US$123.45'); + }, + + 'CAD currency': function () { + assert.equal(currency.format(123.45, {currency: 'CAD', locale: 'en-ca'}), '$123.45'); + } + }, + + 'de-de locale': { + 'EUR currency': { + 'hundreds': function () { + assert.equal(currency.format(123.45, {currency: 'EUR', locale: 'de-de'}), '123,45\xa0\u20ac'); + }, + + 'thousands': function () { + var expected = '1.234,56\xa0\u20ac'; + assert.equal(currency.format(1234.56, {currency: 'EUR', locale: 'de-de'}), expected); + } + } + } + }, + + '.parse': { + 'en-us locale': { + 'USD currency': { + 'hundreds': function () { + assert.equal(currency.parse('$123.45', {currency: 'USD', locale: 'en-us'}), 123.45); + }, + + 'thousands': function () { + assert.equal(currency.parse('$1,234.56', {currency: 'USD', locale: 'en-us'}), 1234.56); + }, + + 'no cents': { + 'default use case': function () { + assert.equal(currency.parse('$1,234', {currency: 'USD', locale: 'en-us'}), 1234); + }, + + 'fractional false': function () { + var options = {currency: 'USD', fractional: false, locale: 'en-us'}; + assert.equal(currency.parse('$1,234', options), 1234); + }, + + 'fractional true - fails': function () { + var options = {currency: 'USD', fractional: true, locale: 'en-us'}; + assert.isTrue(isNaN(currency.parse('$1,234', options))); + } + } + } + }, + + 'de-de locale': { + 'EUR currency': { + 'hundreds': function () { + assert.equal(currency.parse('123,45 \u20ac', {currency: 'EUR', locale: 'de-de'}), 123.45); + assert.equal(currency.parse('123,45\xa0\u20ac', {currency: 'EUR', locale: 'de-de'}), 123.45); + }, + + 'thousands': function () { + assert.equal(currency.parse('1.234,56 \u20ac', {currency: 'EUR', locale: 'de-de'}), 1234.56); + assert.equal(currency.parse('1.234,56\u20ac', {currency: 'EUR', locale: 'de-de'}), 1234.56); + } + } + } + } + }); +}); diff --git a/tests/unit/date.js b/tests/unit/date.js new file mode 100644 index 0000000000..4fd62efb8b --- /dev/null +++ b/tests/unit/date.js @@ -0,0 +1,590 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../date' +], function (registerSuite, assert, date) { + function assertDateEqual(date1, date2) { + assert.instanceOf(date1, Date); + assert.instanceOf(date2, Date); + assert.strictEqual(date1.getTime(), date2.getTime()); + } + + registerSuite({ + name: 'dojo/date', + + '.getDaysInMonth': { + 'not February': function () { + assert.strictEqual(date.getDaysInMonth(new Date(2014, 0, 1)), 31); + assert.strictEqual(date.getDaysInMonth(new Date(2014, 2, 1)), 31); + assert.strictEqual(date.getDaysInMonth(new Date(2014, 3, 1)), 30); + assert.strictEqual(date.getDaysInMonth(new Date(2014, 4, 1)), 31); + assert.strictEqual(date.getDaysInMonth(new Date(2014, 5, 1)), 30); + assert.strictEqual(date.getDaysInMonth(new Date(2014, 6, 1)), 31); + assert.strictEqual(date.getDaysInMonth(new Date(2014, 7, 1)), 31); + assert.strictEqual(date.getDaysInMonth(new Date(2014, 8, 1)), 30); + assert.strictEqual(date.getDaysInMonth(new Date(2014, 9, 1)), 31); + assert.strictEqual(date.getDaysInMonth(new Date(2014, 10, 1)), 30); + assert.strictEqual(date.getDaysInMonth(new Date(2014, 11, 1)), 31); + }, + 'Februarys': function () { + assert.strictEqual(date.getDaysInMonth(new Date(2014, 1, 1)), 28); + assert.strictEqual(date.getDaysInMonth(new Date(2004, 1, 1)), 29); + assert.strictEqual(date.getDaysInMonth(new Date(2000, 1, 1)), 29); + assert.strictEqual(date.getDaysInMonth(new Date(1900, 1, 1)), 28); + assert.strictEqual(date.getDaysInMonth(new Date(1800, 1, 1)), 28); + assert.strictEqual(date.getDaysInMonth(new Date(1700, 1, 1)), 28); + assert.strictEqual(date.getDaysInMonth(new Date(1600, 1, 1)), 29); + } + }, + + '.isLeapYear': { + 'leap years': function () { + assert.isFalse(date.isLeapYear(new Date(2014, 0, 1))); + assert.isTrue(date.isLeapYear(new Date(2012, 0, 1))); + assert.isTrue(date.isLeapYear(new Date(2000, 0, 1))); + assert.isFalse(date.isLeapYear(new Date(1900, 0, 1))); + assert.isFalse(date.isLeapYear(new Date(1800, 0, 1))); + assert.isFalse(date.isLeapYear(new Date(1700, 0, 1))); + assert.isTrue(date.isLeapYear(new Date(1600, 0, 1))); + } + }, + + // The getTimezone function pulls from either the date's toString or + // toLocaleString method -- it's really just a string-processing + // function (assuming the Date obj passed in supporting both toString + // and toLocaleString) and as such can be tested for multiple browsers + // by manually settting up fake Date objects with the actual strings + // produced by various browser/OS combinations. + // FIXME: the function and tests are not localized. + '.getTimezoneName': (function () { + var dt; + + // Create a fake Date object with toString and toLocaleString + // results manually set to simulate tests for multiple browsers + function FakeDate(str, strLocale) { + this.str = str || ''; + this.strLocale = strLocale || ''; + this.toString = function () { + return this.str; + }; + this.toLocaleString = function () { + return this.strLocale; + }; + } + + return { + setup: function () { + dt = new FakeDate(); + }, + + 'FF 1.5 Ubuntu Linux (Breezy)': function () { + dt.str = 'Sun Sep 17 2006 22:25:51 GMT-0500 (CDT)'; + dt.strLocale = 'Sun 17 Sep 2006 10:25:51 PM CDT'; + assert.strictEqual(date.getTimezoneName(dt), 'CDT'); + }, + + 'Safari 2.0 Mac OS X 10.4': function () { + dt.str = 'Sun Sep 17 2006 22:55:01 GMT-0500'; + dt.strLocale = 'September 17, 2006 10:55:01 PM CDT'; + assert.strictEqual(date.getTimezoneName(dt), 'CDT'); + }, + + 'FF 1.5 Mac OS X 10.4': function () { + dt.str = 'Sun Sep 17 2006 22:57:18 GMT-0500 (CDT)'; + dt.strLocale = 'Sun Sep 17 22:57:18 2006'; + assert.strictEqual(date.getTimezoneName(dt), 'CDT'); + }, + + 'Opera 9 Mac OS X 10.4': function () { + // no TZ data expect empty string return + dt.str = 'Sun, 17 Sep 2006 22:58:06 GMT-0500'; + dt.strLocale = 'Sunday September 17, 22:58:06 GMT-0500 2006'; + assert.strictEqual(date.getTimezoneName(dt), ''); + }, + + 'IE 6 Windows XP': function () { + dt.str = 'Mon Sep 18 11:21:07 CDT 2006'; + dt.strLocale = 'Monday, September 18, 2006 11:21:07 AM'; + assert.strictEqual(date.getTimezoneName(dt), 'CDT'); + }, + + 'Opera 9 Ubuntu Linux (Breezy)': function () { + // no TZ data expect empty string return + dt.str = 'Mon, 18 Sep 2006 13:30:32 GMT-0500'; + dt.strLocale = 'Monday September 18, 13:30:32 GMT-0500 2006'; + assert.strictEqual(date.getTimezoneName(dt), ''); + }, + + 'IE 5.5 Windows 2000': function () { + dt.str = 'Mon Sep 18 13:49:22 CDT 2006'; + dt.strLocale = 'Monday, September 18, 2006 1:49:22 PM'; + assert.strictEqual(date.getTimezoneName(dt), 'CDT'); + } + }; + })(), + + '.compare': function () { + var d1 = new Date(); + d1.setHours(0); + var d2 = new Date(); + d2.setFullYear(2005); + d2.setHours(12); + + assert.strictEqual(date.compare(d1, d1), 0); + assert.strictEqual(date.compare(d1, d2, 'date'), 1); + assert.strictEqual(date.compare(d2, d1, 'date'), -1); + assert.strictEqual(date.compare(d1, d2, 'time'), -1); + assert.strictEqual(date.compare(d1, d2, 'datetime'), 1); + }, + + '.add': { + 'year': function () { + var interval = 'year'; + var dateA; + var dateB; + + dateA = new Date(2005, 11, 27); + dateB = new Date(2006, 11, 27); + assertDateEqual(date.add(dateA, interval, 1), dateB); + + dateA = new Date(2005, 11, 27); + dateB = new Date(2004, 11, 27); + assertDateEqual(date.add(dateA, interval, -1), dateB); + + dateA = new Date(2000, 1, 29); + dateB = new Date(2001, 1, 28); + assertDateEqual(date.add(dateA, interval, 1), dateB); + + dateA = new Date(2000, 1, 29); + dateB = new Date(2005, 1, 28); + assertDateEqual(date.add(dateA, interval, 5), dateB); + + dateA = new Date(1900, 11, 31); + dateB = new Date(1930, 11, 31); + assertDateEqual(date.add(dateA, interval, 30), dateB); + + dateA = new Date(1995, 11, 31); + dateB = new Date(2030, 11, 31); + assertDateEqual(date.add(dateA, interval, 35), dateB); + }, + + 'quarter': function () { + var interval = 'quarter'; + var dateA; + var dateB; + + dateA = new Date(2000, 0, 1); + dateB = new Date(2000, 3, 1); + assertDateEqual(date.add(dateA, interval, 1), dateB); + + dateA = new Date(2000, 1, 29); + dateB = new Date(2000, 7, 29); + assertDateEqual(date.add(dateA, interval, 2), dateB); + + dateA = new Date(2000, 1, 29); + dateB = new Date(2001, 1, 28); + assertDateEqual(date.add(dateA, interval, 4), dateB); + }, + + 'month': function () { + var interval = 'month'; + var dateA; + var dateB; + + dateA = new Date(2000, 0, 1); + dateB = new Date(2000, 1, 1); + assertDateEqual(date.add(dateA, interval, 1), dateB); + + dateA = new Date(2000, 0, 31); + dateB = new Date(2000, 1, 29); + assertDateEqual(date.add(dateA, interval, 1), dateB); + + dateA = new Date(2000, 1, 29); + dateB = new Date(2001, 1, 28); + assertDateEqual(date.add(dateA, interval, 12), dateB); + }, + + 'week': function () { + var interval = 'week'; + var dateA; + var dateB; + + dateA = new Date(2000, 0, 1); + dateB = new Date(2000, 0, 8); + assertDateEqual(date.add(dateA, interval, 1), dateB); + }, + + 'day': function () { + var interval = 'day'; + var dateA; + var dateB; + + dateA = new Date(2000, 0, 1); + dateB = new Date(2000, 0, 2); + assertDateEqual(date.add(dateA, interval, 1), dateB); + + dateA = new Date(2001, 0, 1); + dateB = new Date(2002, 0, 1); + assertDateEqual(date.add(dateA, interval, 365), dateB); + + dateA = new Date(2000, 0, 1); + dateB = new Date(2001, 0, 1); + assertDateEqual(date.add(dateA, interval, 366), dateB); + + dateA = new Date(2000, 1, 28); + dateB = new Date(2000, 1, 29); + assertDateEqual(date.add(dateA, interval, 1), dateB); + + dateA = new Date(2001, 1, 28); + dateB = new Date(2001, 2, 1); + assertDateEqual(date.add(dateA, interval, 1), dateB); + + dateA = new Date(2000, 2, 1); + dateB = new Date(2000, 1, 29); + assertDateEqual(date.add(dateA, interval, -1), dateB); + + dateA = new Date(2001, 2, 1); + dateB = new Date(2001, 1, 28); + assertDateEqual(date.add(dateA, interval, -1), dateB); + + dateA = new Date(2000, 0, 1); + dateB = new Date(1999, 11, 31); + assertDateEqual(date.add(dateA, interval, -1), dateB); + }, + + 'weekday': function () { + var interval = 'weekday'; + var dateA; + var dateB; + + // Sat, Jan 1 + dateA = new Date(2000, 0, 1); + // Should be Mon, Jan 3 + dateB = new Date(2000, 0, 3); + assertDateEqual(date.add(dateA, interval, 1), dateB); + + // Sun, Jan 2 + dateA = new Date(2000, 0, 2); + // Should be Mon, Jan 3 + dateB = new Date(2000, 0, 3); + assertDateEqual(date.add(dateA, interval, 1), dateB); + + // Sun, Jan 2 + dateA = new Date(2000, 0, 2); + // Should be Fri, Jan 7 + dateB = new Date(2000, 0, 7); + assertDateEqual(date.add(dateA, interval, 5), dateB); + + // Sun, Jan 2 + dateA = new Date(2000, 0, 2); + // Should be Mon, Jan 10 + dateB = new Date(2000, 0, 10); + assertDateEqual(date.add(dateA, interval, 6), dateB); + + // Mon, Jan 3 + dateA = new Date(2000, 0, 3); + // Should be Mon, Jan 17 + dateB = new Date(2000, 0, 17); + assertDateEqual(date.add(dateA, interval, 10), dateB); + + // Sat, Jan 8 + dateA = new Date(2000, 0, 8); + // Should be Mon, Jan 3 + dateB = new Date(2000, 0, 3); + assertDateEqual(date.add(dateA, interval, -5), dateB); + + // Sun, Jan 9 + dateA = new Date(2000, 0, 9); + // Should be Wed, Jan 5 + dateB = new Date(2000, 0, 5); + assertDateEqual(date.add(dateA, interval, -3), dateB); + + // Sun, Jan 23 + dateA = new Date(2000, 0, 23); + // Should be Fri, Jan 7 + dateB = new Date(2000, 0, 7); + assertDateEqual(date.add(dateA, interval, -11), dateB); + }, + + 'hour': function () { + var interval = 'hour'; + var dateA; + var dateB; + + dateA = new Date(2000, 0, 1, 11); + dateB = new Date(2000, 0, 1, 12); + assertDateEqual(date.add(dateA, interval, 1), dateB); + + dateA = new Date(2001, 9, 28, 0); + dateB = new Date(dateA.getTime() + (60 * 60 * 1000)); + assertDateEqual(date.add(dateA, interval, 1), dateB); + + dateA = new Date(2001, 9, 28, 23); + dateB = new Date(2001, 9, 29, 0); + assertDateEqual(date.add(dateA, interval, 1), dateB); + + dateA = new Date(2001, 11, 31, 23); + dateB = new Date(2002, 0, 1, 0); + assertDateEqual(date.add(dateA, interval, 1), dateB); + }, + + 'minute': function () { + var interval = 'minute'; + var dateA; + var dateB; + + dateA = new Date(2000, 11, 31, 23, 59); + dateB = new Date(2001, 0, 1, 0, 0); + assertDateEqual(date.add(dateA, interval, 1), dateB); + + dateA = new Date(2000, 11, 27, 12, 2); + dateB = new Date(2000, 11, 27, 13, 2); + assertDateEqual(date.add(dateA, interval, 60), dateB); + }, + + 'second': function () { + var interval = 'second'; + var dateA; + var dateB; + + dateA = new Date(2000, 11, 31, 23, 59, 59); + dateB = new Date(2001, 0, 1, 0, 0, 0); + assertDateEqual(date.add(dateA, interval, 1), dateB); + + dateA = new Date(2000, 11, 27, 8, 10, 59); + dateB = new Date(2000, 11, 27, 8, 11, 59); + assertDateEqual(date.add(dateA, interval, 60), dateB); + } + }, + + '.difference': { + 'year': function () { + var interval = 'year'; + var dateA; + var dateB; + + dateA = new Date(2005, 11, 27); + dateB = new Date(2006, 11, 27); + assert.strictEqual(date.difference(dateA, dateB, interval), 1); + + dateA = new Date(2000, 11, 31); + dateB = new Date(2001, 0, 1); + assert.strictEqual(date.difference(dateA, dateB, interval), 1); + }, + + 'quarter': function () { + var interval = 'quarter'; + var dateA; + var dateB; + + dateA = new Date(2000, 1, 29); + dateB = new Date(2001, 2, 1); + assert.strictEqual(date.difference(dateA, dateB, interval), 4); + + dateA = new Date(2000, 11, 1); + dateB = new Date(2001, 0, 1); + assert.strictEqual(date.difference(dateA, dateB, interval), 1); + }, + + 'month': function () { + var interval = 'month'; + var dateA; + var dateB; + + dateA = new Date(2000, 1, 29); + dateB = new Date(2001, 2, 1); + assert.strictEqual(date.difference(dateA, dateB, interval), 13); + + dateA = new Date(2000, 11, 1); + dateB = new Date(2001, 0, 1); + assert.strictEqual(date.difference(dateA, dateB, interval), 1); + }, + + 'week': function () { + var interval = 'week'; + var dateA; + var dateB; + + dateA = new Date(2000, 1, 1); + dateB = new Date(2000, 1, 8); + assert.strictEqual(date.difference(dateA, dateB, interval), 1); + + dateA = new Date(2000, 1, 28); + dateB = new Date(2000, 2, 6); + assert.strictEqual(date.difference(dateA, dateB, interval), 1); + + dateA = new Date(2000, 2, 6); + dateB = new Date(2000, 1, 28); + assert.strictEqual(date.difference(dateA, dateB, interval), -1); + }, + + 'day': function () { + var interval = 'day'; + var dateA; + var dateB; + + dateA = new Date(2000, 1, 29); + dateB = new Date(2000, 2, 1); + assert.strictEqual(date.difference(dateA, dateB, interval), 1); + + dateA = new Date(2000, 11, 31); + dateB = new Date(2001, 0, 1); + assert.strictEqual(date.difference(dateA, dateB, interval), 1); + + // DST leap -- check for rounding err + // This is dependent on US calendar, but + // shouldn't break in other locales + dateA = new Date(2005, 3, 3); + dateB = new Date(2005, 3, 4); + assert.strictEqual(date.difference(dateA, dateB, interval), 1); + }, + + 'weekday': function () { + var interval = 'weekday'; + var dateA; + var dateB; + + dateA = new Date(2006, 7, 3); + dateB = new Date(2006, 7, 11); + assert.strictEqual(date.difference(dateA, dateB, interval), 6); + + // Positive diffs + dateA = new Date(2006, 7, 4); + dateB = new Date(2006, 7, 11); + assert.strictEqual(date.difference(dateA, dateB, interval), 5); + + dateA = new Date(2006, 7, 5); + dateB = new Date(2006, 7, 11); + assert.strictEqual(date.difference(dateA, dateB, interval), 5); + + dateA = new Date(2006, 7, 6); + dateB = new Date(2006, 7, 11); + assert.strictEqual(date.difference(dateA, dateB, interval), 5); + + dateA = new Date(2006, 7, 7); + dateB = new Date(2006, 7, 11); + assert.strictEqual(date.difference(dateA, dateB, interval), 4); + + dateA = new Date(2006, 7, 7); + dateB = new Date(2006, 7, 13); + assert.strictEqual(date.difference(dateA, dateB, interval), 4); + + dateA = new Date(2006, 7, 7); + dateB = new Date(2006, 7, 14); + assert.strictEqual(date.difference(dateA, dateB, interval), 5); + + dateA = new Date(2006, 7, 7); + dateB = new Date(2006, 7, 15); + assert.strictEqual(date.difference(dateA, dateB, interval), 6); + + dateA = new Date(2006, 7, 7); + dateB = new Date(2006, 7, 28); + assert.strictEqual(date.difference(dateA, dateB, interval), 15); + + dateA = new Date(2006, 2, 2); + dateB = new Date(2006, 2, 28); + assert.strictEqual(date.difference(dateA, dateB, interval), 18); + + // Negative diffs + dateA = new Date(2006, 7, 11); + dateB = new Date(2006, 7, 4); + assert.strictEqual(date.difference(dateA, dateB, interval), -5); + + dateA = new Date(2006, 7, 11); + dateB = new Date(2006, 7, 5); + assert.strictEqual(date.difference(dateA, dateB, interval), -4); + + dateA = new Date(2006, 7, 11); + dateB = new Date(2006, 7, 6); + assert.strictEqual(date.difference(dateA, dateB, interval), -4); + + dateA = new Date(2006, 7, 11); + dateB = new Date(2006, 7, 7); + assert.strictEqual(date.difference(dateA, dateB, interval), -4); + + dateA = new Date(2006, 7, 13); + dateB = new Date(2006, 7, 7); + assert.strictEqual(date.difference(dateA, dateB, interval), -5); + + dateA = new Date(2006, 7, 14); + dateB = new Date(2006, 7, 7); + assert.strictEqual(date.difference(dateA, dateB, interval), -5); + + dateA = new Date(2006, 7, 15); + dateB = new Date(2006, 7, 7); + assert.strictEqual(date.difference(dateA, dateB, interval), -6); + + dateA = new Date(2006, 7, 28); + dateB = new Date(2006, 7, 7); + assert.strictEqual(date.difference(dateA, dateB, interval), -15); + + dateA = new Date(2006, 2, 28); + dateB = new Date(2006, 2, 2); + assert.strictEqual(date.difference(dateA, dateB, interval), -18); + + // Sat, Jan 8 + // Range starts on a Saturday with negative days + dateA = new Date(2000, 0, 8); + dateB = new Date(2000, 0, 3); + assert.strictEqual(date.difference(dateA, dateB, interval), -5); + + // Two days on the same weekend -- no weekday diff + dateA = new Date(2006, 7, 5); + dateB = new Date(2006, 7, 6); + assert.strictEqual(date.difference(dateA, dateB, interval), 0); + }, + + 'hour': function () { + var interval = 'hour'; + var dateA; + var dateB; + + dateA = new Date(2000, 11, 31, 23); + dateB = new Date(2001, 0, 1, 0); + assert.strictEqual(date.difference(dateA, dateB, interval), 1); + + dateA = new Date(2000, 11, 31, 12); + dateB = new Date(2001, 0, 1, 0); + assert.strictEqual(date.difference(dateA, dateB, interval), 12); + }, + + 'minute': function () { + var interval = 'minute'; + var dateA; + var dateB; + + dateA = new Date(2000, 11, 31, 23, 59); + dateB = new Date(2001, 0, 1, 0, 0); + assert.strictEqual(date.difference(dateA, dateB, interval), 1); + + dateA = new Date(2000, 1, 28, 23, 59); + dateB = new Date(2000, 1, 29, 0, 0); + assert.strictEqual(date.difference(dateA, dateB, interval), 1); + }, + + 'second': function () { + var interval = 'second'; + var dateA; + var dateB; + + dateA = new Date(2000, 11, 31, 23, 59, 59); + dateB = new Date(2001, 0, 1, 0, 0, 0); + assert.strictEqual(date.difference(dateA, dateB, interval), 1); + }, + + 'millisecond': function () { + var interval = 'millisecond'; + var dateA; + var dateB; + + dateA = new Date(2000, 11, 31, 23, 59, 59, 999); + dateB = new Date(2001, 0, 1, 0, 0, 0, 0); + assert.strictEqual(date.difference(dateA, dateB, interval), 1); + + dateA = new Date(2000, 11, 31, 23, 59, 59, 0); + dateB = new Date(2001, 0, 1, 0, 0, 0, 0); + assert.strictEqual(date.difference(dateA, dateB, interval), 1000); + } + } + }); +}); diff --git a/tests/unit/date/locale.js b/tests/unit/date/locale.js new file mode 100644 index 0000000000..a5fc1b86ba --- /dev/null +++ b/tests/unit/date/locale.js @@ -0,0 +1,376 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../date/locale', + 'dojo/_base/kernel', + 'dojo/_base/array', + 'dojo/i18n', + 'dojo/Deferred' +], function (registerSuite, assert, locale, kernel, array, i18n, Deferred) { + /* jshint maxlen: false */ + + function assertDates(date1, date2) { + assert.instanceOf(date1, Date); + assert.instanceOf(date2, Date); + assert.equal(date1.getTime(), date2.getTime()); + } + + registerSuite({ + name: 'dojo/date/locale', + + setup: (function () { + function loadAsync(partLocaleList) { + var dfd = new Deferred(); + var deps = array.map(partLocaleList, function (locale) { + return i18n.getL10nName('dojo/cldr', 'gregorian', locale); + }); + require(deps, dfd.resolve); + } + + function loadSync(partLocaleList) { + array.forEach(partLocaleList, function (locale) { + /* global dojo */ + dojo.requireLocalization('dojo.cldr', 'gregorian', locale); + }); + } + + return function () { + var partLocaleList = ['en-us', 'fr-fr', 'es', 'de-at', 'ja-jp', 'zh-cn']; + if (kernel.isAsync) { + return loadAsync(partLocaleList); + } else { // tests for the v1.x loader/i18n machinery + loadSync(partLocaleList); + } + }; + })(), + + '.isWeekend': function () { + var thursday = new Date(2006, 8, 21); + var friday = new Date(2006, 8, 22); + var saturday = new Date(2006, 8, 23); + var sunday = new Date(2006, 8, 24); + var monday = new Date(2006, 8, 25); + + assert.isFalse(locale.isWeekend(thursday, 'en-us')); + assert.isFalse(locale.isWeekend(friday, 'en-us')); + assert.isTrue(locale.isWeekend(saturday, 'en-us')); + assert.isTrue(locale.isWeekend(sunday, 'en-us')); + assert.isFalse(locale.isWeekend(monday, 'en-us')); + }, + + '.format': (function () { + var date = new Date(2006, 7, 11, 0, 55, 12, 345); + + return { + 'full': function () { + assert.equal(locale.format(date, {formatLength: 'full', selector: 'date', locale: 'en-us'}), 'Friday, August 11, 2006'); + assert.equal(locale.format(date, {formatLength: 'full', selector: 'date', locale: 'fr-fr'}), 'vendredi 11 ao\xFBt 2006'); + assert.equal(locale.format(date, {formatLength: 'full', selector: 'date', locale: 'de-at'}), 'Freitag, 11. August 2006'); + assert.equal(locale.format(date, {formatLength: 'full', selector: 'date', locale: 'ja-jp'}), '2006\u5E748\u670811\u65E5\u91D1\u66DC\u65E5'); + }, + + 'short': function () { + assert.equal(locale.format(date, {formatLength: 'short', selector: 'date', locale: 'en-us'}), '8/11/06'); + assert.equal(locale.format(date, {formatLength: 'short', selector: 'date', locale: 'fr-fr'}), '11/08/2006'); + assert.equal(locale.format(date, {formatLength: 'short', selector: 'date', locale: 'de-at'}), '11.08.06'); + assert.equal(locale.format(date, {formatLength: 'short', selector: 'date', locale: 'ja-jp'}), '2006/08/11'); + }, + + 'time': function () { + assert.equal(locale.format(date, {datePattern: 'E', selector: 'date'}), '6'); + assert.equal(locale.format(date, {selector: 'date', datePattern: 'EEE, MMM d, yyyy G', locale:'en-us' }), 'Fri, Aug 11, 2006 AD'); + assert.equal(locale.format(date, {formatLength: 'short', selector: 'time', locale: 'en-us'}), '12:55 AM'); + assert.equal(locale.format(date, {timePattern: 'h:m:s', selector: 'time'}), '12:55:12'); + assert.equal(locale.format(date, {timePattern: 'h:m:s.SS', selector: 'time'}), '12:55:12.35'); + assert.equal(locale.format(date, {timePattern: 'k:m:s.SS', selector: 'time'}), '24:55:12.35'); + assert.equal(locale.format(date, {timePattern: 'H:m:s.SS', selector: 'time'}), '0:55:12.35'); + assert.equal(locale.format(date, {timePattern: 'K:m:s.SS', selector: 'time'}), '0:55:12.35'); + assert.equal(locale.format(date, {formatLength: 'full', selector: 'time', locale: 'zh-cn'}).replace(/^.*(\u4e0a\u5348.*)/, '$1'), '\u4e0a\u534812:55:12'); + }, + + 'date': function () { + var options = {datePattern: 'ddMMyyyy', selector: 'date'}; + assert.equal(locale.format(date, options), '11082006'); + + options = {datePattern: 'hh \'o\'\'clock\' a', selector: 'date', locale: 'en'}; + assert.equal(locale.format(date, options), '12 o\'clock AM'); + + options = {datePattern: 'dd/MM/yyyy', timePattern: 'hh:mma', locale: 'en', am: 'am', pm: 'pm'}; + assert.equal(locale.format(date, options), '11/08/2006, 12:55am'); + } + }; + }()), + + '.parse': (function () { + var AUG_11_2006 = new Date(2006, 7, 11, 0); + var AUG_11_2006_12_30_AM = new Date(2006, 7, 11, 0, 30); + var AUG_11_2006_12_30_PM = new Date(2006, 7, 11, 12, 30); + + return { + // in the en locale the date format is M/d/yy + // the time format is M/d/yy h:mm a + 'short format': { + 'leading zero month': function () { + assertDates(locale.parse('08/11/06', {formatLength: 'short', selector: 'date', locale: 'en'}), AUG_11_2006); + }, + + 'single digit month': function () { + assertDates(locale.parse('8/11/06', {formatLength: 'short', selector: 'date', locale: 'en'}), AUG_11_2006); + }, + + 'tolerate four digit year': function () { + assertDates(locale.parse('8/11/2006', {formatLength: 'short', selector: 'date', locale: 'en'}), AUG_11_2006); + }, + + 'four digit year in strict mode returns null': function () { + assert.isNull(locale.parse('8/11/2006', {formatLength: 'short', selector: 'date', locale: 'en', strict: true})); + }, + + 'upper case PM in time': function () { + assertDates(locale.parse('08/11/06, 12:30 PM', {formatLength: 'short', locale: 'en'}, 'PM'), AUG_11_2006_12_30_PM); + }, + + 'lower case pm in time': function () { + assertDates(locale.parse('08/11/06, 12:30 pm', {formatLength: 'short', locale: 'en'}, 'pm'), AUG_11_2006_12_30_PM); + }, + + 'lower case pm fails in strict mode': function () { + assert.isNull(locale.parse('8/11/06, 12:30 pm', {formatLength: 'short', locale: 'en', strict: true})); + }, + + 'upper case PM passes in strict mode': function () { + assert.ok(locale.parse('8/11/06, 12:30 PM', {formatLength: 'short', locale: 'en', strict: true})); + }, + + 'upper case AM in time': function () { + assertDates(locale.parse('08/11/06, 12:30 AM', {formatLength: 'short', locale: 'en'}, 'AM'), AUG_11_2006_12_30_AM); + } + }, + + // in the en locale the format is MMM d, yyyy + 'medium format': { + 'basic usage': function () { + assertDates(locale.parse('Aug 11, 2006', {formatLength: 'medium', selector: 'date', locale: 'en'}), AUG_11_2006); + }, + + 'tolerate peroid in month abbreviation': function () { + assertDates(locale.parse('Aug. 11, 2006', {formatLength: 'medium', selector: 'date', locale: 'en'}), AUG_11_2006); + }, + + 'period in month abbreviation returns null in strict mode': function () { + assert.isNull(locale.parse('Aug. 11, 2006', {formatLength: 'medium', selector: 'date', locale: 'en', strict: true})); + } + }, + + // in the en locale the format is MMMM d, yyyy + 'long format': { + 'basic usage': function () { + assertDates(locale.parse('August 11, 2006', {formatLength: 'long', selector: 'date', locale: 'en'}), AUG_11_2006); + } + }, + + // in the en locale the format is EEEE, MMMM d, yyyy + 'full format': { + 'basic usage': function () { + assertDates(locale.parse('Friday, August 11, 2006', {formatLength: 'full', selector: 'date', locale: 'en'}), AUG_11_2006); + } + }, + + 'date pattern': { + 'ddMMyyyy': function () { + assertDates(locale.parse('11082006', {datePattern: 'ddMMyyyy', selector: 'date'}), new Date(2006, 7, 11)); + }, + + 'ddMMMyyyy': function () { + assertDates(locale.parse('31Aug2006', {datePattern: 'ddMMMyyyy', selector: 'date', locale: 'en'}), new Date(2006, 7, 31)); + }, + + 'DDD': function () { + assertDates(locale.parse('007', {datePattern: 'DDD', selector: 'date'}), new Date(1970, 0, 7)); + assertDates(locale.parse('031', {datePattern: 'DDD', selector: 'date'}), new Date(1970, 0, 31)); + assertDates(locale.parse('100', {datePattern: 'DDD', selector: 'date'}), new Date(1970, 3, 10)); + } + }, + + 'de locale': function () { + assertDates(locale.parse('11.08.06', {formatLength: 'short', selector: 'date', locale: 'de'}), AUG_11_2006); + assert.isNull(locale.parse('11.8/06', {formatLength: 'short', selector: 'date', locale: 'de'})); + assert.isNull(locale.parse('11.8x06', {formatLength: 'short', selector: 'date', locale: 'de'})); + assert.isNull(locale.parse('11.0.06', {formatLength: 'short', selector: 'date', locale: 'de'})); + assert.isNull(locale.parse('11.13.06', {formatLength: 'short', selector: 'date', locale: 'de'})); + assert.isNull(locale.parse('32.08.06', {formatLength: 'short', selector: 'date', locale: 'de'})); + }, + + 'es locale': { + 'short format': { + 'leading zero month': function () { + assertDates(locale.parse('11/08/06', {formatLength: 'short', selector: 'date', locale: 'es'}), AUG_11_2006); + }, + + 'single digit month': function () { + assertDates(locale.parse('11/8/06', {formatLength: 'short', selector: 'date', locale: 'es'}), AUG_11_2006); + }, + + 'tolerate four digit year': function () { + assertDates(locale.parse('11/8/2006', {formatLength: 'short', selector: 'date', locale: 'es'}), AUG_11_2006); + }, + + 'four digit year in strict mode returns null': function () { + assert.isNull(locale.parse('11/8/2006', {formatLength: 'short', selector: 'date', locale: 'es', strict: true})); + } + }, + + 'long format': { + 'basic usage': function () { + assertDates(locale.parse('11 de agosto de 2006', {formatLength: 'long', selector: 'date', locale: 'es'}), AUG_11_2006); + }, + + 'case-insensitive month': function () { + assertDates(locale.parse('11 de Agosto de 2006', {formatLength: 'long', selector: 'date', locale: 'es'}), AUG_11_2006); + }, + + 'case-insensitive month fails in strict mode': function () { + assert.isNull(locale.parse('Viernes, 11 de agosto de 2006', {formatLength: 'full', selector: 'date', locale: 'es', strict: true})); + } + } + }, + + //Japanese (ja) + //note: to avoid garbling from non-utf8-aware editors that may touch this file, using the \uNNNN format + //for expressing double-byte chars. + //toshi (year): \u5e74 + //getsu (month): \u6708 + //nichi (day): \u65e5 + //kinyoubi (Friday): \u91d1\u66dc\u65e5 + //zenkaku space: \u3000 + 'ja locale': { + 'short format': { + 'leading zero month': function () { + assertDates(locale.parse('06/08/11', {formatLength: 'short', selector: 'date', locale: 'ja'}), AUG_11_2006); + }, + + 'single digit month': function () { + assertDates(locale.parse('06/8/11', {formatLength: 'short', selector: 'date', locale: 'ja'}), AUG_11_2006); + }, + + 'tolerate four digit year': function () { + assertDates(locale.parse('2006/8/11', {formatLength: 'short', selector: 'date', locale: 'ja'}), AUG_11_2006); + }, + + 'four digit year in strict mode returns null': function () { + assert.isNull(locale.parse('2006/8/11', {formatLength: 'short', selector: 'date', locale: 'ja', strict: true})); + } + }, + + 'medium format': { + 'leading zero month': function () { + assertDates(locale.parse('2006/08/11', {formatLength: 'medium', selector: 'date', locale: 'ja'}), AUG_11_2006); + }, + + 'single digit month': function () { + assertDates(locale.parse('2006/8/11', {formatLength: 'medium', selector: 'date', locale: 'ja'}), AUG_11_2006); + } + }, + + 'long format': { + 'basic usage': function () { + assertDates(locale.parse('2006\u5e748\u670811\u65e5', {formatLength: 'long', selector: 'date', locale: 'ja'}), AUG_11_2006); + } + }, + + 'full format': { + 'basic usage': function () { + assertDates(locale.parse('2006\u5e748\u670811\u65e5\u91d1\u66dc\u65e5', {formatLength: 'full', selector: 'date', locale: 'ja'}), AUG_11_2006); + } + } + }, + + 'fr-fr locale': { + 'medium format': { + 'tolerance for abbreviations': function () { + assertDates(locale.parse('11 avr 06', { formatLength: 'medium', selector: 'date', locale: 'fr-fr' }), new Date(2006, 3, 11, 0)); + }, + + 'round trip': function () { + var options = { formatLength: 'medium', selector: 'date', locale: 'fr-fr' }; + assertDates(locale.parse(locale.format(AUG_11_2006, options), options), AUG_11_2006); + } + } + }, + + 'he locale': { + 'basic usage via roundtrip': function () { + var options = {locale: 'he', formatLength: 'full', selector: 'date'}; + assert.ok(locale.parse(locale.format(new Date(), options), options)); + } + }, + + 'times': function () { + var time = new Date(2006, 7, 11, 12, 30); + var tformat = {selector: 'time', strict: true, timePattern: 'h:mm a', locale: 'en'}; + + assert.equal(locale.parse('12:30 PM', tformat).getHours(), time.getHours()); + assert.equal(locale.parse('12:30 PM', tformat).getMinutes(), time.getMinutes()); + }, + + 'format patterns': function () { + var time = new Date(2006, 7, 11, 12, 30); + var tformat; + + tformat = {selector: 'time', strict: true, timePattern: 'h \'o\'\'clock\'', locale: 'en'}; + assert.equal(locale.parse('12 o\'clock', tformat).getHours(), time.getHours()); + + tformat = {selector: 'time', strict: true, timePattern: ' \'Hour is\' h', locale: 'en'}; + assert.equal(locale.parse(' Hour is 12', tformat).getHours(), time.getHours()); + + tformat = {selector: 'time', strict: true, timePattern: '\'Hour is\' h', locale: 'en'}; + assert.equal(locale.parse('Hour is 12', tformat).getHours(), time.getHours()); + }, + + 'invalid dates fail': function () { + assert.isNull(locale.parse('2/29/2007', {formatLength: 'short', selector: 'date', locale: 'en'})); + assert.isNull(locale.parse('4/31/2007', {formatLength: 'short', selector: 'date', locale: 'en'})); + assert.isNull(locale.parse('Decemb 30, 2007', {formatLength: 'long', selector: 'date', locale: 'en'})); + }, + + 'month > 12 fails': function () { + assert.isNull(locale.parse('15/1/2005', {formatLength: 'short', selector: 'date', locale: 'en'})); + }, + + 'day of month > number days in month fails': function () { + assert.isNull(locale.parse('Aug 32, 2006', {formatLength: 'medium', selector: 'date', locale: 'en'})); + }, + + 'pre-epoch date': function () { + var AUG_11_06CE = new Date(2006, 7, 11, 0); + + AUG_11_06CE.setFullYear(6); // literally the year 6 C.E. + assertDates(locale.parse('Aug 11, 06', {selector: 'date', datePattern: 'MMM dd, yyyy', locale: 'en', strict: true}), AUG_11_06CE); + }, + + 'dates with no spaces': function () { + assertDates(locale.parse('11Aug2006', {selector: 'date', datePattern: 'ddMMMyyyy', locale: 'en'}), AUG_11_2006); + assertDates(locale.parse('Aug2006', {selector: 'date', datePattern: 'MMMyyyy', locale: 'en'}), new Date(2006, 7, 1)); + assertDates(locale.parse('111910', {fullyear: false, datePattern: 'MMddyy', selector: 'date'}), new Date(2010, 10, 19)); + } + }; + })(), + + '._getDayOfYear': function () { + assert.equal(locale._getDayOfYear(new Date(2006, 0, 1)), 1); + assert.equal(locale._getDayOfYear(new Date(2006, 1, 1)), 32); + assert.equal(locale._getDayOfYear(new Date(2007, 2, 13, 0, 13)), 72); + assert.equal(locale._getDayOfYear(new Date(2007, 2, 13, 1, 13)), 72); + }, + + '._getWeekOfYear': function () { + assert.equal(locale._getWeekOfYear(new Date(2000, 0, 1)), 0); + assert.equal(locale._getWeekOfYear(new Date(2000, 0, 2)), 1); + assert.equal(locale._getWeekOfYear(new Date(2000, 0, 2), 1), 0); + assert.equal(locale._getWeekOfYear(new Date(2007, 0, 1)), 0); + assert.equal(locale._getWeekOfYear(new Date(2007, 0, 1), 1), 1); + assert.equal(locale._getWeekOfYear(new Date(2007, 6, 14)), 27); + assert.equal(locale._getWeekOfYear(new Date(2007, 6, 14), 1), 28); + } + }); +}); diff --git a/tests/unit/date/stamp.js b/tests/unit/date/stamp.js new file mode 100644 index 0000000000..e610a49c82 --- /dev/null +++ b/tests/unit/date/stamp.js @@ -0,0 +1,121 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../date/stamp' +], function (registerSuite, assert, stamp) { + registerSuite({ + name: 'dojo/date/stamp', + + '.fromISOString': { + // Accepts a string formatted according to a profile of ISO8601 as defined by + // [RFC3339](http://www.ietf.org/rfc/rfc3339.txt), except that partial input is allowed. + 'ISO8601 & RFC3339': { + 'date and time with timezone offset': function () { + var rfc = '2005-06-29T08:05:00-07:00'; + var date = stamp.fromISOString(rfc); + assert.equal(2005, date.getFullYear()); + assert.equal(5, date.getMonth()); + assert.equal(29, date.getUTCDate()); + assert.equal(15, date.getUTCHours()); + assert.equal(5, date.getUTCMinutes()); + assert.equal(0, date.getSeconds()); + }, + + 'date only': function () { + var rfc = '2004-02-29'; + var date = stamp.fromISOString(rfc); + assert.equal(2004, date.getFullYear()); + assert.equal(1, date.getMonth()); + assert.equal(29, date.getDate()); + }, + + 'year and month only': function () { + var rfc = '2004-01'; + var date = stamp.fromISOString(rfc); + assert.equal(2004, date.getFullYear()); + assert.equal(0, date.getMonth()); + assert.equal(1, date.getDate()); + }, + + 'date and time without timezone': function () { + // No TZ info means local time + var rfc = '2004-02-29T01:23:45'; + var date = stamp.fromISOString(rfc); + assert.equal(2004, date.getFullYear()); + assert.equal(1, date.getMonth()); + assert.equal(29, date.getDate()); + assert.equal(1, date.getHours()); + }, + + 'pre-epoch date': function () { + var rfc = '0101-01-01'; + var date = stamp.fromISOString(rfc); + assert.equal(101, date.getFullYear()); + assert.equal(0, date.getMonth()); + assert.equal(1, date.getDate()); + }, + + 'pre-epoch date and time': function () { + var rfc = '0001-01T00:00:00'; + var date = stamp.fromISOString(rfc); + assert.equal(1, date.getFullYear()); + }, + + 'time only': function () { + var date = stamp.fromISOString('T18:46:39'); + assert.equal(18, date.getHours()); + assert.equal(46, date.getMinutes()); + assert.equal(39, date.getSeconds()); + } + }, + + // process dates as specified [by the W3C](http://www.w3.org/TR/NOTE-datetime) + 'w3 date-time': { + 'timestamp only with timezone offset': function() { + var date = stamp.fromISOString('T18:46:39+07:00'); + assert.equal(11, date.getUTCHours()); + }, + + 'timestamp only with 0 timezone offset and + designator': function () { + var date = stamp.fromISOString('T18:46:39+00:00'); + assert.equal(18, date.getUTCHours()); + }, + + 'timestamp only with timezone desiginator and no offset': function () { + var date = stamp.fromISOString('T18:46:39Z'); + assert.equal(18, date.getUTCHours()); + }, + + 'timestamp only with timzone offset with - designator': function () { + var date = stamp.fromISOString('T16:46:39-07:00'); + assert.equal(23, date.getUTCHours()); + }, + + 'GMT timestamp only with timezone designator, no offset': function () { + var date = stamp.fromISOString('T00:00:00Z', new Date(2010,3,1)); + assert.equal(0, date.getUTCHours()); + assert.equal(2010, date.getFullYear()); + } + } + }, + + '.toISOString': { + 'year': function () { + var date = new Date(2005, 5, 29, 8, 5, 0); + var rfc = stamp.toISOString(date); + //truncate for comparison + assert.equal('2005-06', rfc.substring(0, 7)); + }, + + 'pre-epoch year': function () { + var date = new Date(101, 0, 2); + var rfc; + + date.setFullYear(101); + rfc = stamp.toISOString(date); + //truncate for comparison + assert.equal('0101-01', rfc.substring(0, 7)); + } + } + }); +}); diff --git a/tests/unit/debounce.js b/tests/unit/debounce.js new file mode 100644 index 0000000000..b45883ed11 --- /dev/null +++ b/tests/unit/debounce.js @@ -0,0 +1,52 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../debounce', + 'sinon' +], function (registerSuite, assert, debounce, sinon) { + registerSuite({ + name: 'dojo/debounce', + + sync: function () { + var spy = sinon.spy(); + var debouncer = debounce(spy, 100); + + debouncer(); + debouncer(); + debouncer(); + + setTimeout(this.async().callback(function () { + assert.equal(spy.callCount, 1); + }), 1000); + }, + + async: function () { + var spy = sinon.spy(); + var debouncer = sinon.spy(debounce(spy, 100)); + + debouncer(); + setTimeout(function () { + debouncer(); + }, 40); + setTimeout(function () { + debouncer(); + }, 80); + setTimeout(function () { + debouncer(); + }, 120); + setTimeout(function () { + debouncer(); + }, 180); + setTimeout(function () { + debouncer(); + }, 220); + setTimeout(function () { + debouncer(); + }, 350); + + setTimeout(this.async().callback(function () { + assert.ok(spy.callCount < debouncer.callCount); + }), 2000); + } + }); +}); diff --git a/tests/unit/dom-attr.js b/tests/unit/dom-attr.js new file mode 100644 index 0000000000..35b2ddfc59 --- /dev/null +++ b/tests/unit/dom-attr.js @@ -0,0 +1,12 @@ +define([ + 'intern!object', + 'intern/chai!assert' +], function (registerSuite, assert) { + registerSuite({ + name: 'dojo/dom-attr', + + 'TODO: convert tests': function () { + assert.fail(); + } + }); +}); diff --git a/tests/unit/dom-construct.js b/tests/unit/dom-construct.js new file mode 100644 index 0000000000..3524e432f7 --- /dev/null +++ b/tests/unit/dom-construct.js @@ -0,0 +1,12 @@ +define([ + 'intern!object', + 'intern/chai!assert' +], function (registerSuite, assert) { + registerSuite({ + name: 'dojo/dom-construct', + + 'TODO: convert tests': function () { + assert.fail(); + } + }); +}); diff --git a/tests/unit/dom-form.js b/tests/unit/dom-form.js new file mode 100644 index 0000000000..4fac996670 --- /dev/null +++ b/tests/unit/dom-form.js @@ -0,0 +1,162 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../dom-form', + 'dojo/dom', + 'dojo/dom-construct', + 'dojo/json' +], function (registerSuite, assert, domForm, dom, domConstruct, JSON) { + var formContainer; + + var f1 = { + blah: 'blah' + }; + var f1_query = 'blah=blah'; + var f2 = { + blah: 'blah', + multi: [ 'thud', 'thonk' ], + textarea: 'textarea_value' + }; + var f2_query = 'blah=blah&multi=thud&multi=thonk&textarea=textarea_value'; + var f3 = { + spaces: 'string with spaces' + }; + var f3_query = 'spaces=string%20with%20spaces'; + var f4 = { + action: 'Form with input named action' + }; + var f4_query = 'action=Form%20with%20input%20named%20action'; + var f5 = { + 'blåh': 'bláh' + }; + var f5_query = 'bl%C3%A5h=bl%C3%A1h'; + var f6 = { + cb_group: 'foo', + radio_group: 'bam' + }; + var f6_query = 'cb_group=foo&radio_group=bam'; + var f6_1 = { + cb_group: 'boo', + radio_group: 'baz' + }; + var f6_2 = { + cb_group: ['foo', 'boo'], + radio_group: 'baz' + }; + registerSuite({ + name: 'dojo/dom-form', + + setup: function () { + formContainer = domConstruct.place('
    ' + + '
    ' + + '' + + '' + + '' + + '
    ' + + '
    ' + + '' + + '' + + '' + + '' + + '' + + '' + + ' File input should not show up in formToObject.' + + '
    ' + + '
    ' + + '' + + '
    ' + + '
    ' + + '' + + '
    ' + + '
    ' + + '' + + '' + + '' + + '
    ' + + '
    ' + + '' + + '' + + '' + + '' + + '
    ' + + '
    ', document.body); + }, + + teardown: function () { + domConstruct.destroy(formContainer); + formContainer = null; + }, + + '.fieldToObject': { + 'ids': function () { + assert.strictEqual(domForm.fieldToObject('f1_no_value'), null); + assert.strictEqual(domForm.fieldToObject('f1_no_value2'), 'blah'); + assert.deepEqual(domForm.fieldToObject('f2_multi'), f2.multi); + assert.strictEqual(domForm.fieldToObject('f2_textarea'), f2.textarea); + assert.strictEqual(domForm.fieldToObject('f2_fileParam1'), ''); + assert.strictEqual(domForm.fieldToObject('f4_action'), f4.action); + assert.strictEqual(domForm.fieldToObject('f6_checkbox1'), 'foo'); + assert.strictEqual(domForm.fieldToObject('f6_checkbox2'), null); + assert.strictEqual(domForm.fieldToObject('f6_radio1'), null); + assert.strictEqual(domForm.fieldToObject('f6_radio2'), 'bam'); + }, + + 'nodes': function () { + assert.strictEqual(domForm.fieldToObject(dom.byId('f1_no_value')), null); + assert.strictEqual(domForm.fieldToObject(dom.byId('f1_no_value2')), 'blah'); + assert.deepEqual(domForm.fieldToObject(dom.byId('f2_multi')), f2.multi); + assert.strictEqual(domForm.fieldToObject(dom.byId('f2_textarea')), f2.textarea); + assert.strictEqual(domForm.fieldToObject(dom.byId('f2_fileParam1')), ''); + assert.strictEqual(domForm.fieldToObject(dom.byId('f4_action')), f4.action); + assert.strictEqual(domForm.fieldToObject(dom.byId('f6_checkbox1')), 'foo'); + assert.strictEqual(domForm.fieldToObject(dom.byId('f6_checkbox2')), null); + assert.strictEqual(domForm.fieldToObject(dom.byId('f6_radio1')), null); + assert.strictEqual(domForm.fieldToObject(dom.byId('f6_radio2')), 'bam'); + } + }, + + '.toObject': function () { + assert.deepEqual(domForm.toObject('f1'), f1); + assert.deepEqual(domForm.toObject('f2'), f2); + assert.deepEqual(domForm.toObject('f3'), f3); + assert.deepEqual(domForm.toObject('f4'), f4); + assert.deepEqual(domForm.toObject('f5'), f5); + assert.deepEqual(domForm.toObject('f6'), f6); + + dom.byId('f6_checkbox1').checked = false; + dom.byId('f6_checkbox2').checked = true; + dom.byId('f6_radio1').checked = true; + assert.deepEqual(domForm.toObject('f6'), f6_1); + + dom.byId('f6_checkbox1').checked = true; + assert.deepEqual(domForm.toObject('f6'), f6_2); + + // reset to defaults + dom.byId('f6_checkbox1').checked = true; + dom.byId('f6_checkbox2').checked = false; + dom.byId('f6_radio2').checked = true; + }, + + '.toQuery': function () { + assert.strictEqual(domForm.toQuery('f1'), f1_query); + assert.strictEqual(domForm.toQuery('f2'), f2_query); + assert.strictEqual(domForm.toQuery('f3'), f3_query); + assert.strictEqual(domForm.toQuery('f4'), f4_query); + assert.strictEqual(domForm.toQuery('f5'), f5_query); + assert.strictEqual(domForm.toQuery('f6'), f6_query); + }, + + '.toJson': function () { + assert.deepEqual(JSON.parse(domForm.toJson('f1')), f1); + assert.deepEqual(JSON.parse(domForm.toJson('f2')), f2); + assert.deepEqual(JSON.parse(domForm.toJson('f3')), f3); + assert.deepEqual(JSON.parse(domForm.toJson('f4')), f4); + assert.deepEqual(JSON.parse(domForm.toJson('f5')), f5); + assert.deepEqual(JSON.parse(domForm.toJson('f6')), f6); + } + }); +}); diff --git a/tests/unit/dom-prop.js b/tests/unit/dom-prop.js new file mode 100644 index 0000000000..b56b746c40 --- /dev/null +++ b/tests/unit/dom-prop.js @@ -0,0 +1,12 @@ +define([ + 'intern!object', + 'intern/chai!assert' +], function (registerSuite, assert) { + registerSuite({ + name: 'dojo/dom-prop', + + 'TODO: convert tests': function () { + assert.fail(); + } + }); +}); diff --git a/tests/unit/dom-style.js b/tests/unit/dom-style.js new file mode 100644 index 0000000000..895b23aae5 --- /dev/null +++ b/tests/unit/dom-style.js @@ -0,0 +1,12 @@ +define([ + 'intern!object', + 'intern/chai!assert' +], function (registerSuite, assert) { + registerSuite({ + name: 'dojo/dom-style', + + 'TODO: convert tests': function () { + assert.fail(); + } + }); +}); diff --git a/tests/unit/errors.js b/tests/unit/errors.js new file mode 100644 index 0000000000..4035557c8b --- /dev/null +++ b/tests/unit/errors.js @@ -0,0 +1,12 @@ +define([ + 'intern!object', + 'intern/chai!assert' +], function (registerSuite, assert) { + registerSuite({ + name: 'dojo/errors', + + 'TODO: convert tests': function () { + assert.fail(); + } + }); +}); diff --git a/tests/unit/fx/easing.js b/tests/unit/fx/easing.js new file mode 100644 index 0000000000..c448cb42cd --- /dev/null +++ b/tests/unit/fx/easing.js @@ -0,0 +1,23 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../fx/easing' +], function (registerSuite, assert, easing) { + registerSuite({ + name: 'dojo/fx/easing', + + 'module': { + 'full of functions': function () { + for(var i in easing){ + assert.isFunction(easing[i]); + } + } + }, + + 'performs some calculation': function () { + for(var i in easing){ + assert.isFalse(isNaN(easing[i](0.5))); + } + } + }); +}); diff --git a/tests/unit/hash.js b/tests/unit/hash.js new file mode 100644 index 0000000000..a3d5e92103 --- /dev/null +++ b/tests/unit/hash.js @@ -0,0 +1,154 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../hash', + '../../topic' +], function (registerSuite, assert, hash, topic) { + + var _subscriber = null; + // utilities for the tests: + function setHash(h) { + h = h || ''; + location.replace('#'+h); + } + + function getHash() { + var h = location.href, i = h.indexOf('#'); + return (i >= 0) ? h.substring(i + 1) : ''; + } + + registerSuite({ + name: 'dojo/hash', + + 'get hash': { + beforeEach: function () { + setHash(''); + }, + afterEach: function () { + setHash(''); + }, + 'empty': function () { + assert.strictEqual(hash(), ''); + }, + 'text': function () { + setHash('text'); + assert.strictEqual(hash(), 'text'); + }, + 'text%20with%20spaces': function () { + setHash('text%20with%20spaces'); + assert.strictEqual(hash(), 'text%20with%20spaces'); + }, + 'text%23with%23encoded%23hashes': function () { + setHash('text%23with%23encoded%23hashes'); + assert.strictEqual(hash(), 'text%23with%23encoded%23hashes'); + }, + 'text+with+pluses': function () { + setHash('text+with+pluses'); + assert.strictEqual(hash(), 'text+with+pluses'); + }, + '%20leadingSpace': function () { + setHash('%20leadingSpace'); + assert.strictEqual(hash(), '%20leadingSpace'); + }, + 'trailingSpace%20': function () { + setHash('trailingSpace%20'); + assert.strictEqual(hash(), 'trailingSpace%20'); + }, + 'under_score': function () { + setHash('under_score'); + assert.strictEqual(hash(), 'under_score'); + }, + 'extra&instring': function () { + setHash('extra&instring'); + assert.strictEqual(hash(), 'extra&instring'); + }, + 'extra?instring': function () { + setHash('extra?instring'); + assert.strictEqual(hash(), 'extra?instring'); + }, + '?testa=3&testb=test': function () { + setHash('?testa=3&testb=test'); + assert.strictEqual(hash(), '?testa=3&testb=test'); + } + }, + + 'set hash': { + beforeEach: function () { + setHash(''); + }, + afterEach: function () { + setHash(''); + }, + 'empty': function () { + hash(''); + assert.strictEqual(getHash(), ''); + }, + 'text': function () { + hash('text'); + assert.strictEqual(getHash(), 'text'); + }, + 'text%20with%20spaces': function () { + hash('text%20with%20spaces'); + assert.strictEqual(getHash(), 'text%20with%20spaces'); + }, + 'text%23with%23encoded%23hashes': function () { + hash('text%23with%23encoded%23hashes'); + assert.strictEqual(getHash(), 'text%23with%23encoded%23hashes'); + }, + 'text+with+pluses': function () { + hash('text+with+pluses'); + assert.strictEqual(getHash(), 'text+with+pluses'); + }, + '%20leadingSpace': function () { + hash('%20leadingSpace'); + assert.strictEqual(getHash(), '%20leadingSpace'); + }, + 'trailingSpace%20': function () { + hash('trailingSpace%20'); + assert.strictEqual(getHash(), 'trailingSpace%20'); + }, + 'under_score': function () { + hash('under_score'); + assert.strictEqual(getHash(), 'under_score'); + }, + 'extra&instring': function () { + hash('extra&instring'); + assert.strictEqual(getHash(), 'extra&instring'); + }, + 'extra?instring': function () { + hash('extra?instring'); + assert.strictEqual(getHash(), 'extra?instring'); + }, + '?testa=3&testb=test': function () { + hash('?testa=3&testb=test'); + assert.strictEqual(getHash(), '?testa=3&testb=test'); + }, + '#leadingHash': function () { + hash('#leadingHash'); + assert.strictEqual(getHash(), 'leadingHash'); + } + }, + + 'topic publish': { + before: function () { + _subscriber = null; + setHash(''); + }, + after: function () { + _subscriber && _subscriber.remove(); + setHash(''); + }, + 'text': function () { + var dfd = this.async(); + _subscriber = topic.subscribe('/dojo/hashchange', + dfd.callback(function (value) { + assert.strictEqual(value, 'text'); + return value; + }) + ); + hash('text'); + return dfd; + } + } + }); +}); diff --git a/tests/unit/html.js b/tests/unit/html.js new file mode 100644 index 0000000000..a97f63288a --- /dev/null +++ b/tests/unit/html.js @@ -0,0 +1,258 @@ +define([ + 'intern!object', + 'intern/chai!assert', + 'sinon', + '../../html', + '../../parser', + '../../_base/kernel', + 'dojo/_base/declare', + 'dojo/Deferred', + 'dojo/dom-construct', + 'dojo/query', + 'dojo/_base/array', + 'dojo/text!./support/html.template.html' +], function (registerSuite, assert, sinon, html, parser, dojo, declare, Deferred, domConstruct, query, + arrayUtil, template) { + /* globals ifrs, id00, id01 */ + + function ieTrimSpaceBetweenTags (str){ + return str.replace(/(<[a-z]*[^>]*>)\s*/ig, '$1'); + } + + function deleteGlobal(name) { + window[name] = undefined; + try { + delete window[name]; + } catch(e) { /* ie is special */ } + } + + registerSuite(function () { + var container; + + function testHtmlSet(node, markup) { + if(typeof node === 'string') { + node = query(node, container)[0]; + } + html.set(node, markup); + assert.strictEqual(ieTrimSpaceBetweenTags(node.innerHTML), markup); + return node; + } + + return { + name: 'dojo/html', + + 'before': function () { + declare('SimpleThing', null, { + constructor: function(params, node) { + node.setAttribute('test', 'ok'); + } + }); + }, + + beforeEach: function () { + container = domConstruct.place(template, document.body); + }, + + afterEach: function () { + document.body.removeChild(container); + container = null; + + deleteGlobal('ifrs'); + deleteGlobal('id00'); + deleteGlobal('id01'); + }, + + 'after': function () { + deleteGlobal('SimpleThing'); + }, + + '.set': { + 'basic usage': function () { + var markup = 'expected'; + + testHtmlSet(container, markup); + }, + + 'attach onEnd handler': function () { + var msg = 'expected'; + var handler = sinon.stub(); + + html.set(container, msg, { onEnd: handler }); + assert.isTrue(handler.calledOnce); + }, + + 'parseContent: true': function () { + var dfd = new Deferred(); + /* jshint maxlen: 130 */ // splitting this line doesn't make it more readable + var content = '
    '; + var options = { + parseContent: true, + postscript: function () { + this.set(); + + assert.isDefined(ifrs); + assert.strictEqual(ifrs.declaredClass, 'SimpleThing'); + assert.lengthOf(this.parseResults, 1); + dfd.resolve(); + } + }; + + html.set(container, content, options); + return dfd; + }, + + 'change content of tr in thead': function () { + var query = '#tableTest > thead > tr'; + var markup = '
    This
    ShouldWork'; + + testHtmlSet(query, markup); + }, + + 'change content of th in thead': function () { + var query = '#tableTest > thead'; + var markup = '
    This
    ShouldWork'; + + testHtmlSet(query, markup); + }, + + 'change content of tr in tbody': function () { + var query = '#tableTest > tbody > tr'; + var markup = '
    This
    ShouldWork'; + + testHtmlSet(query, markup); + }, + + 'change content of tbody': function () { + var query = '#tableTest > tbody'; + var markup = '
    This
    ShouldWork'; + + testHtmlSet(query, markup); + }, + + 'change content of table': function () { + var query = '#tableTest'; + var markup = '
    This
    ShouldWork'; + + testHtmlSet(query, markup); + }, + + 'basic NodeList': function () { + var tmpUL = domConstruct.create('ul'); + domConstruct.create('li', { innerHTML: 'item 1' }, tmpUL); + domConstruct.create('li', { innerHTML: 'item 2' }, tmpUL); + + html.set(container, tmpUL.childNodes); + assert.lengthOf(query('li', container), 2); + }, + + 'mixed content': function () { + var markup = '

    See Jane

    Look at her Run!'; + + testHtmlSet(container, markup); + }, + + 'extractContent: true': function () { + var markup = '' + + '' + + ' ' + + ' ' + + ' ' + + ' the title ' + + ' ' + + ' ' + + ' ' + + '

    ' + + ' This is the Good Stuff
    ' + + '

    ' + + ' ' + + ' '; + + html.set(container, markup, { extractContent: true }); + assert.strictEqual(container.innerHTML.indexOf('title'), -1); + assert.lengthOf(query('*', container), 3); + }, + + 'inheritance': (function() { + var parseSpy; + + function runTest(options) { + /* jshint maxlen: 130 */ // splitting this line doesn't make it more readable + var markup = '
    '; + + html.set(container, markup, options); + return parseSpy.lastCall.args[0].inherited; + } + + return { + 'beforeEach': function () { + parseSpy = sinon.spy(parser, 'parse'); + }, + + 'afterEach': function () { + parseSpy.restore(); + delete window.ifrs; + }, + + 'dir, lang, textDir are not specified': function () { + var options = { parseContent: true }; + var inherited = runTest(options); + + assert.isTrue(parseSpy.called); + assert.isUndefined(inherited.dir, 'dir should not exist'); + assert.isUndefined(inherited.lang, 'lang should not exist'); + assert.isUndefined(inherited.textDir, 'textDir should not exist'); + }, + + 'dir, lang, textDir are specified': function () { + var options = { + parseContent: true, + dir: 'expectedDir', + lang: 'expectedLang', + textDir: 'expectedTextDir' + }; + var inherited = runTest(options); + + assert.isTrue(parseSpy.called); + assert.strictEqual(inherited.dir, options.dir); + assert.strictEqual(inherited.lang, options.lang); + assert.strictEqual(inherited.textDir, options.textDir); + } + }; + }()), + + '_emptyNode': function () { + container.innerHTML = '
    justsome test
    text'; + html._emptyNode(container); + assert.lengthOf(container.childNodes, 0); + assert.strictEqual(container.innerHTML, ''); + }, + + '_ContentSetter': function () { + /* jshint maxlen: 130 */ // splitting these lines doesn't make it more readable + var args = [ + [ 'simple' ], + [ + '
    parsed content
    ', + { parseContent: true } + ], + [ + '
    parsed content
    ', + { parseContent: true } + ] + ]; + var setter = new html._ContentSetter({ node: container }); + + arrayUtil.forEach(args, function (applyArgs) { + setter.node = container; + setter.set.apply(setter, applyArgs); + setter.tearDown(); + }); + + assert.isDefined(id00); + assert.isDefined(id01); + assert.isUndefined(setter.parseResults); + } + } + }; + }); +}); diff --git a/tests/unit/i18n.js b/tests/unit/i18n.js new file mode 100644 index 0000000000..add1760700 --- /dev/null +++ b/tests/unit/i18n.js @@ -0,0 +1,76 @@ +define([ + 'require', + 'intern!object', + 'intern/chai!assert', + '../../i18n', + 'dojo/_base/array', + 'dojo/Deferred', + 'dojo/_base/lang' +], function (require, registerSuite, assert, i18n, array, Deferred, lang) { + var bundlePath = require.toAbsMid('./support/i18n'); + + function localePluginTest(locale, expected) { + return function () { + var dfd = new Deferred(); + var modulePath = i18n.getL10nName(bundlePath, 'salutations', locale); + + require([modulePath], function (bundle) { + dfd.resolve(bundle); + }); + + return dfd.then(function (bundle) { + assert.equal(bundle.hello, expected); + }); + }; + } + + function getLocalizationTest(locale, expected) { + return function() { + var actual = i18n.getLocalization(bundlePath, 'salutations', locale).hello; + assert.equal(actual, expected); + }; + } + + function buildParameterizedTests(testData, testFn) { + var tests = {}; + + // Parameterized tests + array.forEach(testData, function (parameters) { + tests[parameters[0]] = testFn(parameters[1], parameters[2]); + }); + + return tests; + } + + registerSuite(function () { + var PARAMS = [ + ['Locale which overrides root translation', 'de', 'Hallo'], + ['Locale which does not override root translation', 'en', 'Hello'], + ['Locale which overrides its parent', 'en-au', 'G\'day'], + ['Locale which does not override its parent', 'en-us', 'Hello'], + ['Locale which overrides its parent and ancestor', 'en-us-texas', 'Howdy'], + ['3rd level variant which overrides its parent', 'en-us-new_york', 'Hello'], + ['Locale which overrides its grandparent', 'en-us-new_york-brooklyn', 'Yo'], + ['Locale which does not have any translation available', 'xx', 'Hello'], + ['A double-byte string should be read in as UTF-8 and treated as unicode', 'zh-cn', '\u4f60\u597d'] + ]; + + return { + name: 'dojo/i18n', + + 'construction': function () { + assert.isDefined(i18n.getLocalization); + }, + + 'plugin .load()': buildParameterizedTests(PARAMS, localePluginTest), + + '.getLocalization': lang.mixin(buildParameterizedTests(PARAMS, getLocalizationTest), { + 'missing bundle throws': function () { + assert.throws(function () { + getLocalizationTest('lolipop-guild', undefined)(); + }); + } + }) + }; + }); +}); diff --git a/tests/unit/io-query.js b/tests/unit/io-query.js new file mode 100644 index 0000000000..f1337ac962 --- /dev/null +++ b/tests/unit/io-query.js @@ -0,0 +1,46 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../io-query' +], function (registerSuite, assert, ioQuery) { + var object1 = { + 'blah': 'blah' + }; + var query1 = 'blah=blah'; + var object2 = { + 'blåh': 'bláh' + }; + var query2 = 'bl%C3%A5h=bl%C3%A1h'; + var object3 = { + blah: 'blah', + multi: [ + 'thud', + 'thonk' + ], + textarea: 'textarea_value' + }; + var query3 = 'blah=blah&multi=thud&multi=thonk&textarea=textarea_value'; + var object4 = { + spaces: 'string with spaces' + }; + var query4 = 'spaces=string%20with%20spaces'; + var query4_extra = query4 + '&'; + + registerSuite({ + name: 'dojo/io-query', + + '.objectToQuery': function () { + assert.strictEqual(ioQuery.objectToQuery(object1), query1); + assert.strictEqual(ioQuery.objectToQuery(object2), query2); + assert.strictEqual(ioQuery.objectToQuery(object3), query3); + assert.strictEqual(ioQuery.objectToQuery(object4), query4); + }, + '.queryToObject': function () { + assert.deepEqual(ioQuery.queryToObject(query1), object1); + assert.deepEqual(ioQuery.queryToObject(query2), object2); + assert.deepEqual(ioQuery.queryToObject(query3), object3); + assert.deepEqual(ioQuery.queryToObject(query4), object4); + assert.deepEqual(ioQuery.queryToObject(query4_extra), object4); + } + }); +}); diff --git a/tests/unit/io/iframe.js b/tests/unit/io/iframe.js new file mode 100644 index 0000000000..0279d5cc59 --- /dev/null +++ b/tests/unit/io/iframe.js @@ -0,0 +1,249 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../io/iframe', + '../../../_base/kernel', + '../../../topic', + 'dojo/dom', + 'dojo/dom-construct', + 'dojo/domReady!' +], function (registerSuite, assert, iframe, kernel, topic, dom, domConstruct) { + function form(method, test) { + return { + setup: function () { + domConstruct.place('
    ', document.body); + }, + + test: test, + + teardown: function () { + domConstruct.destroy('postTest'); + } + }; + } + + registerSuite({ + name: 'dojo/io/iframe', + + GET: { + text: function () { + var dfd = this.async(), + fdfd = iframe.send({ + url: '/__services/request/iframe?type=text', + method: 'GET', + timeout: 5000, + preventCache: true, + handle: dfd.callback(function (response) { + assert.strictEqual(response, 'iframe succeeded'); + }) + }); + + fdfd.addErrback(dfd.reject); + }, + + 'JSON with form': form('GET', function () { + var dfd = this.async(), + fdfd = iframe.send({ + url: '/__services/request/iframe', + form: 'postTest', + content: { + type: 'json', + color: 'blue', + size: 42 + }, + timeout: 5000, + preventCache: true, + handleAs: 'json', + handle: dfd.callback(function (response) { + assert.strictEqual(response.query.color, 'blue'); + assert.strictEqual(response.query.size, '42'); + }) + }); + + fdfd.addErrback(dfd.reject); + }), + + 'JSON': function () { + var dfd = this.async(), + fdfd = iframe.send({ + url: '/__services/request/iframe', + content: { + type: 'json', + color: 'blue', + size: 42 + }, + timeout: 5000, + preventCache: true, + handleAs: 'json', + handle: dfd.callback(function (response) { + assert.strictEqual(response.query.color, 'blue'); + assert.strictEqual(response.query.size, '42'); + }) + }); + + fdfd.addErrback(dfd.reject); + }, + + 'JSON without POST': function () { + var dfd = this.async(), + fdfd = iframe.send({ + url: '/__services/request/iframe', + method: 'POST', + content: { + type: 'json', + color: 'blue', + size: 42 + }, + timeout: 5000, + preventCache: true, + handleAs: 'json', + handle: dfd.callback(function (response) { + assert.strictEqual(response.method, 'GET'); + assert.strictEqual(response.query.color, 'blue'); + assert.strictEqual(response.query.size, '42'); + }) + }); + + fdfd.addErrback(dfd.reject); + }, + + 'JavaScript': function () { + var dfd = this.async(), + fdfd = iframe.send({ + url: '/__services/request/iframe', + content: { + type: 'javascript' + }, + timeout: 5000, + preventCache: true, + handleAs: 'javascript', + handle: dfd.callback(function () { + assert.strictEqual(window.iframeTestingFunction(), 42); + }) + }); + + fdfd.addErrback(dfd.reject); + }, + + 'HTML': function () { + var dfd = this.async(), + fdfd = iframe.send({ + url: '/__services/request/iframe', + content: { + type: 'html' + }, + timeout: 5000, + preventCache: true, + handleAs: 'html', + handle: dfd.callback(function (response) { + assert.strictEqual(response.getElementsByTagName('h1')[0].innerHTML, 'SUCCESSFUL HTML response'); + }) + }); + + fdfd.addErrback(dfd.reject); + }, + 'XML': function () { + var dfd = this.async(), + fdfd = iframe.send({ + url: '/__services/request/iframe', + content: { + type: 'xml' + }, + timeout: 5000, + preventCache: true, + handleAs: 'xml', + handle: dfd.callback(function (response) { + assert.strictEqual(response.documentElement.getElementsByTagName('child').length, 4); + }) + }); + + fdfd.addErrback(dfd.reject); + }, + 'content array': function () { + var dfd = this.async(), + fdfd = iframe.send({ + url: '/__services/request/iframe', + content: { + type: 'text', + tag: [ 'value1', 'value2' ] + }, + timeout: 5000, + preventCache: true, + handle: dfd.callback(function (response) { + assert.notInstanceOf(response, Error); + }) + }); + + fdfd.addErrback(dfd.reject); + } + }, + + POST: form('POST', function () { + var dfd = this.async(), + fdfd = iframe.send({ + url: '/__services/request/iframe?type=json', + method: 'post', + form: 'postTest', + content: { + color: 'blue', + size: 42 + }, + timeout: 5000, + preventCache: true, + handleAs: 'json', + handle: dfd.callback(function (response) { + assert.strictEqual(response.method, 'POST'); + assert.strictEqual(response.payload.color, 'blue'); + assert.strictEqual(response.payload.size, '42'); + }) + }); + + fdfd.addErrback(dfd.reject); + }), + + 'ioPublish': { + before: function () { + kernel.config.ioPublish = true; + + this._testTopicCount = 0; + var self = this; + function increment() { + self._testTopicCount++; + } + var handles = [ + topic.subscribe('/dojo/io/start', increment), + topic.subscribe('/dojo/io/send', increment), + topic.subscribe('/dojo/io/load', increment), + topic.subscribe('/dojo/io/done', increment) + ]; + + this._remover = function () { + for (var i = 0; i < handles.length; i++) { + handles[i].remove(); + } + }; + }, + + test: function () { + var dfd = this.async(); + var self = this; + + topic.subscribe('/dojo/io/stop', dfd.callback(function () { + self.parent._testTopicCount++; + assert.strictEqual(self.parent._testTopicCount, 5); + })); + + iframe.send({ + url: '/__services/request/iframe', + timeout: 5000, + preventCache: true + }); + }, + + after: function () { + this._remover(); + kernel.config.ioPublish = false; + } + } + }); +}); diff --git a/tests/unit/json.js b/tests/unit/json.js new file mode 100644 index 0000000000..83182808dc --- /dev/null +++ b/tests/unit/json.js @@ -0,0 +1,162 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../json' +], function (registerSuite, assert, json) { + registerSuite({ + name: 'dojo/json', + + '.parse': { + 'simple string': function () { + assert.deepEqual(json.parse('{"foo":"bar"}'), { foo: 'bar' }); + }, + + 'simple true': function () { + assert.deepEqual(json.parse('{"foo":true}'), { foo: true }); + }, + + 'simple false': function () { + assert.deepEqual(json.parse('{"foo":false}'), { foo: false }); + }, + + 'simple null': function () { + assert.deepEqual(json.parse('{"foo":null}'), { foo: null }); + }, + + 'simple number': function () { + assert.deepEqual(json.parse('{"foo":3.3}'), { foo: 3.3 }); + }, + + 'strict string': function () { + assert.deepEqual(json.parse('{"foo":"bar"}', true), { foo: 'bar' }); + }, + + 'strict empty string': function () { + assert.deepEqual(json.parse('{"foo":""}', true), { foo: '' }); + }, + + 'strict escaped string': function () { + assert.deepEqual(json.parse('{"foo":"b\\n\\t\\"ar()"}', true), { foo: 'b\n\t\"ar()' }); + }, + + 'strict true': function () { + assert.deepEqual(json.parse('{"foo":true}', true), { foo: true }); + }, + + 'strict false': function () { + assert.deepEqual(json.parse('{"foo":false}', true), { foo: false }); + }, + + 'strict null': function () { + assert.deepEqual(json.parse('{"foo":null}', true), { foo: null }); + }, + + 'strict number': function () { + assert.deepEqual(json.parse('{"foo":3.3}', true), { foo: 3.3 }); + }, + + 'strict negative number': function () { + assert.deepEqual(json.parse('{"foo":-3.3}', true), { foo: -3.3 }); + }, + + 'strict negative exponent': function () { + assert.deepEqual(json.parse('{"foo":3.3e-33}', true), { foo: 3.3e-33 }); + }, + + 'strict exponent': function () { + assert.deepEqual(json.parse('{"foo":3.3e33}', true), { foo: 3.3e33 }); + }, + + 'strict array': function () { + assert.deepEqual(json.parse('{"foo":[3,true,[]]}', true), { foo: [3, true, []] }); + }, + + 'bad call throws': function () { + assert.throws(function () { + json.parse('{"foo":alert()}', true); + }); + }, + + 'bad math throws': function () { + assert.throws(function () { + json.parse('{"foo":3+4}', true); + }); + }, + + 'bad array index throws': function () { + assert.throws(function () { + json.parse('{"foo":"bar"}[3]', true); + }); + }, + + 'unquoted object key throws': function () { + assert.throws(function () { + json.parse('{foo:"bar"}', true); + }); + }, + + 'unclosed array throws': function () { + assert.throws(function () { + json.parse('[', true); + }); + }, + + 'closing an unopened object literal throws': function () { + assert.throws(function () { + json.parse('}', true); + }); + }, + + 'malformed array throws': function () { + assert.throws(function () { + json.parse('["foo":"bar"]'); + }); + } + }, + + '.stringify': { + 'string': function () { + assert.equal(json.stringify({'foo': 'bar'}), '{"foo":"bar"}'); + }, + + 'null': function () { + assert.equal(json.stringify({'foo': null}), '{"foo":null}'); + }, + + 'function': function () { + assert.equal(json.stringify({'foo': function () {}}), '{}'); + }, + + 'NaN': function () { + assert.equal(json.stringify({'foo': NaN}), '{"foo":null}'); + }, + + 'Infinity': function () { + assert.equal(json.stringify({'foo': Infinity}), '{"foo":null}'); + }, + + 'date': function () { + // there is differences in how many decimals of accuracies in seconds in how Dates + // are serialized between browsers + assert.match(json.parse(json.stringify({'foo': new Date(1)})).foo, /1970-01-01T00:00:00.*Z/); + }, + + 'inherited object': function () { + function FooBar() { + this.foo = 'foo'; + } + + FooBar.prototype.bar = 'bar'; + assert.equal(json.stringify(new FooBar()), '{"foo":"foo"}'); + }, + + 'toJson': function () { + /* jshint unused:false */ + var obj = {foo: {toJSON: function () { + return {name: 'value'}; + }}}; + assert.equal(json.stringify(obj), '{"foo":{"name":"value"}}'); + } + } + }); +}); diff --git a/tests/unit/keys.js b/tests/unit/keys.js new file mode 100644 index 0000000000..678cb6a902 --- /dev/null +++ b/tests/unit/keys.js @@ -0,0 +1,106 @@ +define([ + 'require', + 'intern!object', + 'intern/chai!assert', + '../../keys', + '../../_base/kernel', + 'dojo/has', + 'dojo/Deferred', + 'dojo/_base/array' +], function (require, registerSuite, assert, keys, dojo, has, Deferred, array) { + var keysMid = require.toAbsMid('../../keys'); + + /** + * Handles the process of redefining dojo/keys with an altered state + * @param hasStates a collection of dojo/has states to alter for the test + * @returns {Deferred.promise|*} provides a handle to restore the previous state + */ + function mockKeys(hasStates) { + var dfd = new Deferred(); + var handle = { restore: restore }; + var oldStates = {}; + var hasName, hasValue; + + for(hasName in hasStates) { + if(hasStates.hasOwnProperty(hasName)) { + hasValue = hasStates[hasName]; + oldStates[hasName] = has(hasName); + has.add(hasName, hasValue, undefined, true); + } + } + require.undef(keysMid); + require([keysMid], function (_keys) { + keys = _keys; + dfd.resolve(handle); + }); + + return dfd.promise; + + function restore() { + var hasName, hasValue; + + require.undef(keysMid); + delete dojo.keys; + for(hasName in oldStates) { + if(oldStates.hasOwnProperty(hasName)) { + hasValue = oldStates[hasName]; + has.add(hasName, hasValue, undefined, true); + } + } + } + } + + registerSuite(function () { + var suite = { + name: 'dojo/keys', + + 'construction': function () { + assert.isDefined(keys); + assert.equal(keys, dojo.keys); + } + }; + + // Parameterized Tests + array.forEach([ + // name states expectations + ['Webkit browser', { webkit: true }, [{ 'META': 91 }]], + ['Non-Webkit browser', { webkit: false }, [{ 'META': 224 }]], + ['Non-Mac', { mac: false }, [{ 'copyKey': 17 }]], + ['Safari browser', { mac: true, air: false, safari: true }, [{ 'copyKey': 91 }]], + ['Not Safari', { mac: true, air: false, safari: false }, [{ 'copyKey': 224 }]], + ['Air on Mac', { mac: true, air: true }, [{ 'copyKey': 17 }]] + ], parameterizedKeyTest); + + return suite; + + function parameterizedKeyTest(parameters) { + var name = parameters[0]; + var hasStates = parameters[1]; + + suite[name] = (function() { + var restoreHandle; + + return { + before: function () { + return mockKeys(hasStates).then(function (handle) { + restoreHandle = handle; + }); + }, + + 'after': function () { + restoreHandle.restore(); + } + }; + }()); + array.forEach(parameters[2], function (keymap) { + for (var key in keymap) { + if(keymap.hasOwnProperty(key)) { + suite[name][key] = function() { + assert.equal(keys[key], keymap[key]); + }; + } + } + }); + } + }); +}); diff --git a/tests/unit/loadInit.js b/tests/unit/loadInit.js new file mode 100644 index 0000000000..f02e6a3beb --- /dev/null +++ b/tests/unit/loadInit.js @@ -0,0 +1,21 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../loadInit', + '../../_base/loader' +], function (registerSuite, assert, loadInit, loader) { + registerSuite({ + name: 'dojo/loadInit', + + 'construction': function () { + assert.equal(loadInit.dynamic, 0); + assert.isDefined(loadInit.normalize); + assert.equal(loadInit.load, loader.loadInit); + }, + + '.normalize': function () { + var id = Math.random(); + assert.equal(loadInit.normalize(id), id); + } + }); +}); diff --git a/tests/unit/mouse.js b/tests/unit/mouse.js new file mode 100644 index 0000000000..9e50d79a64 --- /dev/null +++ b/tests/unit/mouse.js @@ -0,0 +1,82 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../mouse', + '../../on', + '../../query' +], function (registerSuite, assert, mouse, on) { + var order, + div, + div2, + div3, + div4; + + registerSuite({ + name: 'dojo/mouse', + + setup: function() { + order = []; + div = document.body.appendChild(document.createElement('div')); + + div2 = div.appendChild(document.createElement('div')); + div2.className = 'item two'; + div2.id = 2; + + div3 = div.appendChild(document.createElement('div')), + div3.className = 'item three'; + div3.id = 3; + + div4 = div2.appendChild(document.createElement('div')); + + on(div, on.selector('.item', mouse.enter), function(){ + order.push(this.id); + }); + }, + + 'mouseenter': function() { + on.emit(div, 'mouseover', { + bubbles: true, + relatedTarget: document.body + }); + + on.emit(div3, 'mouseover', { + bubbles: true, + relatedTarget: div + }); + + on.emit(div3, 'mouseover', { + bubbles: true, + relatedTarget: div3 + }); + + on.emit(div2, 'mouseover', { + bubbles: true, + relatedTarget: div3 + }); + + on.emit(div4, 'mouseover', { + bubbles: true, + relatedTarget: div2 + }); + + on.emit(div2, 'mouseover', { + bubbles: true, + relatedTarget: div4 + }); + + on.emit(div, 'mouseover', { + bubbles: true, + relatedTarget: div2 + }); + + on.emit(div4, 'mouseover', { + bubbles: true, + relatedTarget: div + }); + + assert.equal(order[0], 3); + assert.equal(order[1], 2); + assert.equal(order[2], 2); + } + }); +}); diff --git a/tests/unit/node.js b/tests/unit/node.js new file mode 100644 index 0000000000..d6f7e2eb41 --- /dev/null +++ b/tests/unit/node.js @@ -0,0 +1,54 @@ +define([ + 'intern!object', + 'intern/chai!assert', + 'require' +], function (registerSuite, assert, require) { + var dfd; + registerSuite({ + name: 'dojo/node', + + '!util': function () { + dfd = this.async(); + require(['../../node!util'], dfd.callback(function (util) { + assert('puts' in util, 'this is the built in node module'); + })); + }, + + '!missing': function () { + assert.throws(function () { + require(['../../node!missing']); + }, /Cannot find module 'missing'/); + }, + + 'nodemodule': function () { + dfd = this.async(); + require(['../../node!./resources/nodemodule'], dfd.callback(function (nodemodule) { + assert('test' in nodemodule, 'module loaded'); + assert.strictEqual(nodemodule.test, 'value', 'object has expected value'); + })); + }, + + 'noderequire': function () { + dfd = this.async(); + require(['../../node!./resources/noderequire'], dfd.callback(function (noderequire) { + assert('test' in noderequire, 'module loaded'); + assert.strictEqual(noderequire.test, 'value', 'object has expected value'); + })); + }, + + 'nodemod': function () { + dfd = this.async(); + require(['../../node!./resources/nodemod'], dfd.callback(function (nodemod) { + assert('test' in nodemod, 'module loaded'); + assert.strictEqual(nodemod.test, 'value', 'object has expected value'); + })); + }, + + 'noderequireamd': function () { + dfd = this.async(); + require(['../../node!./resources/noderequireamd'], dfd.callback(function (noderequireamd) { + assert.strictEqual(noderequireamd.nodeamd.test, 'foo', 'module loaded'); + })); + } + }); +}); diff --git a/tests/unit/number.js b/tests/unit/number.js new file mode 100644 index 0000000000..2c9884103b --- /dev/null +++ b/tests/unit/number.js @@ -0,0 +1,435 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../number', + '../../i18n' +], function (registerSuite, assert, number) { + + var defaultLocale = 'en-us'; + + function assertStrictNaN(value) { + // reliable test for NaN (not subject to coersion) + assert.notStrictEqual(value, value); + } + + function decimalNumberDiff(num1, num2) { + //TODO: should be more accurate when dojo/number finish rounding in the future + var diffBound = 1e-3; + var diff = num1 - num2; + + if (Math.abs(diff) < diffBound) { + return true; + } + else if (isNaN(Math.abs(diff))) { + var s = num1.toString().split(num2)[1]; + s = s.replace(',', '0').replace('\u066b', '0'); + return (Number(s) < diffBound); + } + return false; + } + + function checkFormatParseCycle(options, sourceInput, expected, backwardCheck) { + // backwardCheck is a boolean indicating whether test needs a roundtrip, e.g. format->parse->format + if (options == null) { + var pattern = options.pattern; + var locale = options.locale; + //TODO: add more fields + } + + var str = pattern == null ? 'default' : pattern; + var result = number.format(sourceInput, options); + if (expected == null) { + assert.strictEqual(result, expected); + } + if (backwardCheck) { + var resultParsed = number.parse(result,options); + if (!decimalNumberDiff(resultParsed, sourceInput)) { + assert.strictEqual(resultParsed, sourceInput); + } + var resultParsedReformatted = number.format(resultParsed, options); + if (!decimalNumberDiff(result, resultParsedReformatted)) { + assert.strictEqual(resultParsedReformatted, result); + } + } + } + + function checkParse(options, sourceInput, expected) { + var str = 'default'; + if (options && options.pattern != null) { + str = options.pattern; + } + //print('input:' + sourceInput); + var result = number.parse(sourceInput, options); + //print('result :' + result); + if (expected != null){ + assert.strictEqual(result, expected); + } + } + + function checkRounding(num, maxFractionDigits, expected, locale) { + var pattern = '#0.'; + for (var i = 0; i < maxFractionDigits; i++) { + pattern += '#'; + } + var result = number.format(num,{locale: locale || defaultLocale, pattern:pattern}); + assert.strictEqual(result, expected); + } + + registerSuite({ + name: 'dojo/number', + + // TODO: setup function to load locales? + + '.invalid': function () { + assert.isNull(number.format(NaN)); + assert.isNull(number.format(Number.NaN)); + assert.isNull(number.format(Infinity)); + assert.isNull(number.format(-Infinity)); + }, + + '.round': { + basic: function () { + assert.strictEqual(number.round(0), 0); + assert.strictEqual(number.round(0.5), 1); + assert.strictEqual(number.round(-0.5), -1); + assert.strictEqual(number.round(0.05, 1), 0.1); + assert.strictEqual(number.round(0.09, 1), 0.1); + assert.strictEqual(number.round(0.04999999, 1), 0.0); + assert.strictEqual(number.round(0.09499999, 1), 0.1); + assert.strictEqual(number.round(0.095, 1), 0.1); + assert.strictEqual(number.round(0.09999999, 1), 0.1); + assert.strictEqual(number.round(-0.05, 1), -0.1); + assert.strictEqual(number.round(1.05, 1), 1.1); + assert.strictEqual(number.round(-1.05, 1), -1.1); + // assert.strictEqual(number.round(-162.295, 2), -162.29); // see ticket #7930, dojox.math.round + // assert.strictEqual(number.round(162.295, 2), 162.29); // ibid + }, + + multiple: function() { + assert.strictEqual(number.round(123.4525, 2, 5), 123.455); + assert.strictEqual(number.round(123.452, 2, 5), 123.45); + assert.strictEqual(number.round(123.454, 2, 5), 123.455); + assert.strictEqual(number.round(123.456, 2, 5), 123.455); + assert.strictEqual(number.round(-123.452, 2, 5), -123.45); + assert.strictEqual(number.round(-123.4525, 2, 5), -123.455); + assert.strictEqual(number.round(-123.454, 2, 5), -123.455); + assert.strictEqual(number.round(-123.456, 2, 5), -123.455); + }, + + speleotrove: function() { + // submitted Mike Cowlishaw (IBM, CCLA), see http://speleotrove.com/decimal/#testcases + assert.strictEqual(number.round(12345 + -0.1), 12345, 'radx200'); + assert.strictEqual(number.round(12345 + -0.01), 12345, 'radx201'); + assert.strictEqual(number.round(12345 + -0.001), 12345, 'radx202'); + assert.strictEqual(number.round(12345 + -0.00001), 12345, 'radx203'); + assert.strictEqual(number.round(12345 + -0.000001), 12345, 'radx204'); + assert.strictEqual(number.round(12345 + -0.0000001), 12345, 'radx205'); + assert.strictEqual(number.round(12345 + 0), 12345, 'radx206'); + assert.strictEqual(number.round(12345 + 0.0000001), 12345, 'radx207'); + assert.strictEqual(number.round(12345 + 0.000001), 12345, 'radx208'); + assert.strictEqual(number.round(12345 + 0.00001), 12345, 'radx209'); + assert.strictEqual(number.round(12345 + 0.0001), 12345, 'radx210'); + assert.strictEqual(number.round(12345 + 0.001), 12345, 'radx211'); + assert.strictEqual(number.round(12345 + 0.01), 12345, 'radx212'); + assert.strictEqual(number.round(12345 + 0.1), 12345, 'radx213'); + + assert.strictEqual(number.round(12346 + 0.49999), 12346, 'radx215'); + assert.strictEqual(number.round(12346 + 0.5), 12347, 'radx216'); + assert.strictEqual(number.round(12346 + 0.50001), 12347, 'radx217'); + + assert.strictEqual(number.round(12345 + 0.4), 12345, 'radx220'); + assert.strictEqual(number.round(12345 + 0.49), 12345, 'radx221'); + assert.strictEqual(number.round(12345 + 0.499), 12345, 'radx222'); + assert.strictEqual(number.round(12345 + 0.49999), 12345, 'radx223'); + assert.strictEqual(number.round(12345 + 0.5), 12346, 'radx224'); + assert.strictEqual(number.round(12345 + 0.50001), 12346, 'radx225'); + assert.strictEqual(number.round(12345 + 0.5001), 12346, 'radx226'); + assert.strictEqual(number.round(12345 + 0.501), 12346, 'radx227'); + assert.strictEqual(number.round(12345 + 0.51), 12346, 'radx228'); + assert.strictEqual(number.round(12345 + 0.6), 12346, 'radx229'); + + //negatives + assert.strictEqual(number.round(-12345 + -0.1), -12345, 'rsux200'); + assert.strictEqual(number.round(-12345 + -0.01), -12345, 'rsux201'); + assert.strictEqual(number.round(-12345 + -0.001), -12345, 'rsux202'); + assert.strictEqual(number.round(-12345 + -0.00001), -12345, 'rsux203'); + assert.strictEqual(number.round(-12345 + -0.000001), -12345, 'rsux204'); + assert.strictEqual(number.round(-12345 + -0.0000001), -12345, 'rsux205'); + assert.strictEqual(number.round(-12345 + 0), -12345, 'rsux206'); + assert.strictEqual(number.round(-12345 + 0.0000001), -12345, 'rsux207'); + assert.strictEqual(number.round(-12345 + 0.000001), -12345, 'rsux208'); + assert.strictEqual(number.round(-12345 + 0.00001), -12345, 'rsux209'); + assert.strictEqual(number.round(-12345 + 0.0001), -12345, 'rsux210'); + assert.strictEqual(number.round(-12345 + 0.001), -12345, 'rsux211'); + assert.strictEqual(number.round(-12345 + 0.01), -12345, 'rsux212'); + assert.strictEqual(number.round(-12345 + 0.1), -12345, 'rsux213'); + + assert.strictEqual(number.round(-12346 + 0.49999), -12346, 'rsux215'); + assert.strictEqual(number.round(-12346 + 0.5), -12346, 'rsux216'); + assert.strictEqual(number.round(-12346 + 0.50001 ), -12345, 'rsux217'); + + assert.strictEqual(number.round(-12345 + 0.4), -12345, 'rsux220'); + assert.strictEqual(number.round(-12345 + 0.49), -12345, 'rsux221'); + assert.strictEqual(number.round(-12345 + 0.499), -12345, 'rsux222'); + assert.strictEqual(number.round(-12345 + 0.49999), -12345, 'rsux223'); + assert.strictEqual(number.round(-12345 + 0.5), -12345, 'rsux224'); + assert.strictEqual(number.round(-12345 + 0.50001), -12344, 'rsux225'); + assert.strictEqual(number.round(-12345 + 0.5001), -12344, 'rsux226'); + assert.strictEqual(number.round(-12345 + 0.501), -12344, 'rsux227'); + assert.strictEqual(number.round(-12345 + 0.51), -12344, 'rsux228'); + assert.strictEqual(number.round(-12345 + 0.6), -12344, 'rsux229'); + + assert.strictEqual(number.round(12345 / 1), 12345, 'rdvx401'); + assert.strictEqual(number.round(12345 / 1.0001), 12344, 'rdvx402'); + assert.strictEqual(number.round(12345 / 1.001), 12333, 'rdvx403'); + assert.strictEqual(number.round(12345 / 1.01), 12223, 'rdvx404'); + assert.strictEqual(number.round(12345 / 1.1), 11223, 'rdvx405'); + + assert.strictEqual(number.round(12355 / 4, 1), 3088.8, 'rdvx406'); + assert.strictEqual(number.round(12345 / 4, 1), 3086.3, 'rdvx407'); + assert.strictEqual(number.round(12355 / 4.0001, 1), 3088.7, 'rdvx408'); + assert.strictEqual(number.round(12345 / 4.0001, 1), 3086.2, 'rdvx409'); + assert.strictEqual(number.round(12345 / 4.9, 1), 2519.4, 'rdvx410'); + assert.strictEqual(number.round(12345 / 4.99, 1), 2473.9, 'rdvx411'); + assert.strictEqual(number.round(12345 / 4.999, 1), 2469.5, 'rdvx412'); + assert.strictEqual(number.round(12345 / 4.9999, 1), 2469.0, 'rdvx413'); + assert.strictEqual(number.round(12345 / 5, 1), 2469, 'rdvx414'); + assert.strictEqual(number.round(12345 / 5.0001, 1), 2469.0, 'rdvx415'); + assert.strictEqual(number.round(12345 / 5.001, 1), 2468.5, 'rdvx416'); + assert.strictEqual(number.round(12345 / 5.01, 1), 2464.1, 'rdvx417'); + assert.strictEqual(number.round(12345 / 5.1, 1), 2420.6, 'rdvx418'); + + assert.strictEqual(number.round(12345 * 1), 12345, 'rmux401'); + assert.strictEqual(number.round(12345 * 1.0001), 12346, 'rmux402'); + assert.strictEqual(number.round(12345 * 1.001), 12357, 'rmux403'); + assert.strictEqual(number.round(12345 * 1.01), 12468, 'rmux404'); + assert.strictEqual(number.round(12345 * 1.1), 13580, 'rmux405'); + assert.strictEqual(number.round(12345 * 4), 49380, 'rmux406'); + assert.strictEqual(number.round(12345 * 4.0001), 49381, 'rmux407'); + assert.strictEqual(number.round(12345 * 4.9), 60491, 'rmux408'); + assert.strictEqual(number.round(12345 * 4.99), 61602, 'rmux409'); + assert.strictEqual(number.round(12345 * 4.999), 61713, 'rmux410'); + assert.strictEqual(number.round(12345 * 4.9999), 61724, 'rmux411'); + assert.strictEqual(number.round(12345 * 5), 61725, 'rmux412'); + assert.strictEqual(number.round(12345 * 5.0001), 61726, 'rmux413'); + assert.strictEqual(number.round(12345 * 5.001), 61737, 'rmux414'); + assert.strictEqual(number.round(12345 * 5.01), 61848, 'rmux415'); + + // assert.strictEqual(number.round(12345 * 12), 1.4814E+5, 'rmux416'); + // assert.strictEqual(number.round(12345 * 13), 1.6049E+5, 'rmux417'); + // assert.strictEqual(number.round(12355 * 12), 1.4826E+5, 'rmux418'); + // assert.strictEqual(number.round(12355 * 13), 1.6062E+5, 'rmux419'); + } + }, + + '.format': { + 'old tests': function () { + assert.strictEqual(number.format(123, {pattern: '0000'}), '0123'); + assert.strictEqual(number.format(-1234567.89, {pattern: '#,##,##0.000##', locale: 'en-us'}), '-12,34,567.890'); + assert.strictEqual(number.format(-1234567.890123, {pattern: '#,##,##0.000##', locale: 'en-us'}), '-12,34,567.89012'); + assert.strictEqual(number.format(-1234567.890123, {pattern: '#,##0.000##;(#,##0.000##)', locale: 'en-us'}), '(1,234,567.89012)'); + assert.strictEqual(number.format(-1234567.890123, {pattern: '#,##0.000##;(#)', locale: 'en-us'}), '(1,234,567.89012)'); + assert.strictEqual(number.format(0.501, {pattern: '#0.#%', locale: 'en-us'}), '50.1%'); + assert.strictEqual(number.format(1998, {pattern: '00'}), '98'); + assert.strictEqual(number.format(1998, {pattern: '00000'}), '01998'); + assert.strictEqual(number.format(0.125, {pattern: '0.##', locale: 'en-us'}), '0.13'); //NOTE: expects round_half_up, not round_half_even + assert.strictEqual(number.format(0.125, {pattern: '0.0000', locale: 'en-us'}), '0.1250'); + assert.strictEqual(number.format(0.100004, {pattern: '0.####', locale: 'en-us'}), '0.1'); + + assert.strictEqual(number.format(-12.3, {places:0, locale: 'en-us'}), '-12'); + assert.strictEqual(number.format(-1234567.89, {locale: 'en-us'}), '-1,234,567.89'); + // assert.strictEqual(number.format(-1234567.89, {locale: 'en-in'}), '-12,34,567.89'); + assert.strictEqual(number.format(-1234567.89, {places:0, locale: 'en-us'}), '-1,234,568'); + // assert.strictEqual(number.format(-1234567.89, {places:0, locale: 'en-in'}), '-12,34,568'); + assert.strictEqual(number.format(-1000.1, {places:2, locale: 'fr-fr'}), '-1\xa0000,10'); + assert.strictEqual(number.format(-1000.1, {places:2, locale: 'en-us'}), '-1,000.10'); + assert.strictEqual(number.format(-1000.1, {places:2, locale: 'fr-fr'}), '-1\xa0000,10'); + assert.strictEqual(number.format(-1234.56, {places:2, locale: 'de-de'}), '-1.234,56'); + assert.strictEqual(number.format(-1000.1, {places:2, locale: 'en-us'}), '-1,000.10'); + assert.strictEqual(number.format(1.23456, {places:2, locale: 'en-us', type: 'percent'}), '123.46%'); + assert.strictEqual(number.format(123.4, {places:'1,3', locale: 'en-us'}), '123.4'); + assert.strictEqual(number.format(123.45, {places:'1,3', locale: 'en-us'}), '123.45'); + assert.strictEqual(number.format(123.456, {places:'1,3', locale: 'en-us'}), '123.456'); + + // rounding + assert.strictEqual(number.format(-1234567.89, {places:0, locale: 'en-us'}), '-1,234,568'); + // assert.strictEqual(number.format(-1234567.89, {places:0, locale: 'en-in'}), '-12,34,568'); + assert.strictEqual(number.format(-1000.114, {places:2, locale: 'en-us'}), '-1,000.11'); + assert.strictEqual(number.format(-1000.115, {places:2, locale: 'en-us'}), '-1,000.12'); + assert.strictEqual(number.format(-1000.116, {places:2, locale: 'en-us'}), '-1,000.12'); + assert.strictEqual(number.format(-0.0001, {places:2, locale: 'en-us'}), '-0.00'); + assert.strictEqual(number.format(0, {places:2, locale: 'en-us'}), '0.00'); + + // change decimal places + assert.strictEqual(number.format(-1000.1, {places:3, locale: 'fr-fr'}), '-1\xa0000,100'); + assert.strictEqual(number.format(-1000.1, {places:3, locale: 'en-us'}), '-1,000.100'); + }, + + patterns: function() { + var patterns = ([ '#0.#', '#0.', '#.0', '#' ]); + var patternsLength = patterns.length; + var num = ([ '0', '0', '0.0', '0' ]); + var options; + //icu4j result seems doesn't work as: + //var num = (['0','0.', '.0', '0']); + for (var i=0; i 12,34,56,789 + //step2:12,34,56,789 parsed=> 123456789 => formated => 12,34,56,789 + checkFormatParseCycle(options, 123456789, '12,34,56,789', true); + } + }, + + '.parse': { + 'old tests': function() { + assert.strictEqual(number.parse('1000', {locale: 'en-us'}), 1000); + assert.strictEqual(number.parse('1000.123', {locale: 'en-us'}), 1000.123); + assert.strictEqual(number.parse('1,000', {locale: 'en-us'}), 1000); + assert.strictEqual(number.parse('-1000', {locale: 'en-us'}), -1000); + assert.strictEqual(number.parse('-1000.123', {locale: 'en-us'}), -1000.123); + assert.strictEqual(number.parse('-1,234,567.89', {locale: 'en-us'}), -1234567.89); + assert.strictEqual(number.parse('-1 234 567,89', {locale: 'fr-fr'}), -1234567.89); + assertStrictNaN(number.parse('-1 234 567,89', {locale: 'en-us'})); + + assert.strictEqual(number.parse('0123', {pattern: '0000'}), 123); + + assertStrictNaN(number.parse('10,00', {locale: 'en-us'})); + assertStrictNaN(number.parse('1000.1', {locale: 'fr-fr'})); + + assertStrictNaN(number.parse('')); + assertStrictNaN(number.parse('abcd')); + + // should allow unlimited precision, by default + assert.strictEqual(number.parse('1.23456789', {locale: 'en-us'}), 1.23456789); + + // test whitespace + // assert.strictEqual(-1234567, number.parse(' -1,234,567 ', {locale: 'en-us'})); + + // assert.ok(number.parse('9.1093826E-31')); + assert.strictEqual(number.parse('123%', {locale: 'en-us', type: 'percent'}), 1.23); + assert.strictEqual(number.parse('123%', {places:0, locale: 'en-us', type: 'percent'}), 1.23); + assertStrictNaN(number.parse('123.46%', {places:0, locale: 'en-us', type: 'percent'})); + assert.strictEqual(number.parse('123.46%', {places:2, locale: 'en-us', type: 'percent'}), 1.2346); + assert.strictEqual(number.parse('50.1%', {pattern: '#0.#%', locale: 'en-us'}), 0.501); + + assert.strictEqual(number.parse('123.4', {pattern: '#0.#', locale: 'en-us'}), 123.4); + assert.strictEqual(number.parse('-123.4', {pattern: '#0.#', locale: 'en-us'}), -123.4); + assert.strictEqual(number.parse('123.4', {pattern: '#0.#;(#0.#)', locale: 'en-us'}), 123.4); + assert.strictEqual(number.parse('(123.4)', {pattern: '#0.#;(#0.#)', locale: 'en-us'}), -123.4); + + assert.isNull(number.format('abcd', {pattern: '0000'})); + + assert.strictEqual(number.parse('123', {places: 0}), 123); + assert.strictEqual(number.parse('123', {places:'0'}), 123); + assert.strictEqual(number.parse('123.4', {places:1, locale: 'en-us'}), 123.4); + assert.strictEqual(number.parse('123.45', {places:'1,3', locale: 'en-us'}), 123.45); + assert.strictEqual(number.parse('123.45', {places:'0,2', locale: 'en-us'}), 123.45); + } + }, + + // These tests refer to specific tests in ICU4J + 'ICU4J Regressions': function () { + + // NumberFormatRegressionTest.Test4161100 + checkFormatParseCycle({ pattern: '#0.#', locale: 'en-us' }, -0.09, '-0.1', false); + + + // NumberRegression.Test4087535, NumberRegression.Test4243108 + checkFormatParseCycle({ places: 0 }, 0, '0', false); + // TODO: in icu4j,0.1 should be formatted to '.1' when minimumIntegerDigits=0 + checkFormatParseCycle({ places: 0 }, 0.1, '0', false); + checkParse({ pattern: '#0.#####', locale: 'en-us'}, 123.55456,123.55456); + //!! fails because default pattern only has 3 decimal places + // checkParse(null, 123.55456, 123.55456); + + // See whether it fails first format 0.0 ,parse '99.99',and then reformat 0.0 + checkFormatParseCycle({ pattern: '#.#' }, 0.0, '0', false); + checkParse({ locale: 'en-us' }, '99.99', 99.99); + checkFormatParseCycle({ pattern: '#.#' }, 0.0, '0', false); + + + // NumberRegression.Test4088503, NumberRegression.Test4106658 + checkFormatParseCycle({ places: 0 }, 123, '123', false); + + // TODO: differernt from ICU where -0.0 is formatted to '-0' + checkFormatParseCycle({ locale: 'en-us' }, -0.0, '0', false); + + // TODO: differernt from ICU where -0.0001 is formatted to '-0' + checkFormatParseCycle({ locale: 'en-us', places: 6 }, -0.0001, '-0.000100', false); + + + // NumberRegression.Test4086575 + var locale = 'fr'; + var pattern = '###.00;(###.00)'; + var options = { pattern:pattern,locale: locale }; + + // no group separator + checkFormatParseCycle(options, 1234, '1234,00', false); + checkFormatParseCycle(options, -1234, '(1234,00)', false); + + // space as group separator + pattern = '#,###.00;(#,###.00)'; + options = { pattern: pattern, locale: locale }; + checkFormatParseCycle(options, 1234, '1\u00a0234,00', false); // Expect 1 234,00 + checkFormatParseCycle(options, -1234, '(1\u00a0234,00)', false); // Expect (1 234,00) + + + // NumberRegression.Test4092480, NumberRegression.Test4074454 + var patterns = ([ '#0000', '#000', '#00', '#0', '#' ]); + var expected = ([ '0042', '042', '42', '42', '42' ]); + + for (var i = 0; i < patterns.length; i ++) { + checkFormatParseCycle({ pattern: patterns[i] }, 42, expected[i], false); + checkFormatParseCycle({ pattern: patterns[i] }, -42, '-' + expected[i], false); + } + + checkFormatParseCycle({ pattern : '#,#00.00;-#.#', locale: 'en-us' },3456.78,'3,456.78',false); + //!!Failed case + // checkFormatParseCycle({pattern:'#,#00.00 p''ieces;-#,#00.00 p''ieces'},3456.78,'3,456.78 p'ieces',false); + // checkFormatParseCycle({pattern:'000.0#0'},3456.78,null,false); + // checkFormatParseCycle({pattern:'0#0.000'},3456.78,null,false); + + + // NumberRegression.Test4052223 + checkParse({ pattern: '#,#00.00' }, 'abc3'); + + //TODO: got NaN instead of 1.222, is it ok? + //checkParse({pattern:'#,##0.###',locale:'en-us'},'1.222,111',1.222); + //checkParse({pattern:'#,##0.###',locale:'en-us'},'1.222x111',1.222); + + //got NaN for illegal input, ok + checkParse(null,'hello: ,.#$@^&**10x'); + + + // NumberRegression.Test4125885 + checkFormatParseCycle({ pattern: '000.00', locale: 'en-us' }, 12.34, '012.34', false); + checkFormatParseCycle({ pattern: '+000.00%;-000.00%', locale: 'en-us' }, 0.1234, '+012.34%', false); + checkFormatParseCycle({ pattern: '##,###,###.00', locale: 'en-us'}, 9.02, '9.02', false); + + var patterns = ([ '#.00', '0.00', '00.00', '#0.0#', '#0.00' ]); + var expected = ([ '1.20', '1.20', '01.20', '1.2', '1.20' ]); + for (var i = 0; i < patterns.length; i++){ + checkFormatParseCycle({ pattern: patterns[i], locale: 'en-us' }, 1.2, expected[i], false); + } + } + }); +}); diff --git a/tests/unit/on.js b/tests/unit/on.js new file mode 100644 index 0000000000..4857cec040 --- /dev/null +++ b/tests/unit/on.js @@ -0,0 +1,557 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../on', + '../../Evented', + 'dojo/_base/lang', + 'dojo/_base/array', + 'dojo/has', + 'dojo/has!host-browser?dojo/dom-construct', + + // Included to test on.selector + 'dojo/has!host-browser?../../query', + 'dojo/has!host-browser?dojo/domReady!' +], function (registerSuite, assert, on, Evented, lang, arrayUtil, has, domConstruct) { + + var handles = []; + + var originalOn = on; + on = function () { + var handle = originalOn.apply(null, arguments); + handles.push(handle); + return handle; + }; + for (var key in originalOn) { + on[key] = originalOn[key]; + } + + function cleanUpListeners() { + while (handles.length > 0) { + handles.pop().remove(); + } + } + + function createCommonTests(args) { + var target, + testEventName = args.eventName; + return { + beforeEach: function () { + target = args.createTarget(); + }, + afterEach: function () { + // This would ideally be specified in a suite-wide afterEach, + // but Safari throws exceptions if listener clean-up occurs after DOM nodes are destroyed + cleanUpListeners(); + + args.destroyTarget && args.destroyTarget(target); + }, + + 'on and on.emit': function () { + var listenerCallCount = 0, + emittedEvent; + + on(target, testEventName, function (actualEvent) { + listenerCallCount++; + assert.strictEqual(actualEvent.value, emittedEvent.value); + }); + + emittedEvent = { value: 'foo' }; + on.emit(target, testEventName, emittedEvent); + assert.strictEqual(listenerCallCount, 1); + + emittedEvent = { value: 'bar' }; + on.emit(target, testEventName, emittedEvent); + assert.strictEqual(listenerCallCount, 2); + }, + + '.emit return value': function () { + var returnValue = on.emit(target, testEventName, { cancelable: false }); + assert.ok(returnValue); + assert.propertyVal(returnValue, 'cancelable', false); + + returnValue = on.emit(target, testEventName, { cancelable: true }); + assert.ok(returnValue); + assert.propertyVal(returnValue, 'cancelable', true); + + on(target, testEventName, function (event) { + if ('preventDefault' in event) { + event.preventDefault(); + } + else { + event.cancelable = false; + } + }); + assert.isFalse(on.emit(target, testEventName, { cancelable: true })); + }, + + 'on - multiple event names': function () { + var listenerCallCount = 0, + emittedEventType, + emittedEvent; + + on(target, 'test1, test2', function (actualEvent) { + listenerCallCount++; + if (emittedEventType in actualEvent) { + assert.strictEqual(actualEvent.type, emittedEventType); + } + assert.strictEqual(actualEvent.value, emittedEvent.value); + }); + + emittedEventType = 'test1'; + emittedEvent = { value: 'foo' }; + on.emit(target, emittedEventType, emittedEvent); + assert.strictEqual(listenerCallCount, 1); + + emittedEventType = 'test2'; + emittedEvent = { value: 'bar' }; + on.emit(target, emittedEventType, emittedEvent); + assert.strictEqual(listenerCallCount, 2); + }, + + 'on - multiple handlers': function () { + var order = []; + var customEvent = function (target, listener) { + return on(target, 'custom', listener); + }; + on(target, 'a, b', function (event) { + order.push(1 + event.type); + }); + on(target, [ 'a', customEvent ], function (event) { + order.push(2 + event.type); + }); + on.emit(target, 'a', { type: 'a' }); + on.emit(target, 'b', { type: 'b' }); + on.emit(target, 'custom', { type: 'custom' }); + assert.deepEqual(order, [ '1a', '2a', '1b', '2custom' ]); + }, + + 'on - extension events': function () { + var listenerCallCount = 0, + emittedEvent, + extensionEvent = function (target, listener) { + return on(target, testEventName, listener); + }; + + on(target, extensionEvent, function (actualEvent) { + listenerCallCount++; + assert.strictEqual(actualEvent.value, emittedEvent.value); + }); + + emittedEvent = { value: 'foo' }; + on.emit(target, testEventName, emittedEvent); + assert.strictEqual(listenerCallCount, 1); + + emittedEvent = { value: 'bar' }; + on.emit(target, testEventName, emittedEvent); + assert.strictEqual(listenerCallCount, 2); + }, + + '.pausable': function () { + var listenerCallCount = 0, + handle = on.pausable(target, testEventName, function () { + listenerCallCount++; + }); + + on.emit(target, testEventName, {}); + assert.strictEqual(listenerCallCount, 1); + + handle.pause(); + on.emit(target, testEventName, {}); + assert.strictEqual(listenerCallCount, 1); + + handle.resume(); + on.emit(target, testEventName, {}); + assert.strictEqual(listenerCallCount, 2); + }, + + '.once': function () { + var listenerCallCount = 0; + + on.once(target, testEventName, function () { + ++listenerCallCount; + }); + + assert.strictEqual(listenerCallCount, 0); + on.emit(target, testEventName, {}); + assert.strictEqual(listenerCallCount, 1); + on.emit(target, testEventName, {}); + assert.strictEqual(listenerCallCount, 1); + }, + + 'listener call order': function () { + var order = [], + onMethodName = 'on' + testEventName; + + target[onMethodName] = function (event) { + order.push(event.a); + }; + var signal = on.pausable(target, testEventName, function () { + order.push(1); + }); + var signal2 = on(target, testEventName + ', foo', function (event) { + order.push(event.a); + }); + on.emit(target, testEventName, { + a: 3 + }); + signal.pause(); + var signal3 = on(target, testEventName, function () { + order.push(3); + }, true); + on.emit(target, testEventName, { + a: 3 + }); + signal2.remove(); + signal.resume(); + on.emit(target, testEventName, { + a: 6 + }); + signal3.remove(); + on(target, 'foo, ' + testEventName, function () { + order.push(4); + }, true); + signal.remove(); + on.emit(target, testEventName, { + a: 7 + }); + assert.deepEqual(order, [ 3, 1, 3, 3, 3, 3, 6, 1, 3, 7, 4 ]); + } + }; + } + + var suite = { + name: 'dojo/on', + + common: { + 'object events': createCommonTests({ + eventName: 'test', + createTarget: function () { + return new Evented(); + } + }) + }, + + 'cannot target non-emitter': function () { + var threwError = false; + try { + var nonEmitter = {}; + on(nonEmitter, 'test', function () {}); + } + catch (err) { + threwError = true; + } + assert.isTrue(threwError); + } + }; + + if (has('host-browser')) { + suite.common['DOM events'] = createCommonTests({ + eventName: 'click', + createTarget: function () { + return domConstruct.create('div', null, document.body); + }, + destroyTarget: function (target) { + domConstruct.destroy(target); + } + }); + + // TODO: Add test to cover syntheticStopPropagation + // TODO: Add tests to cover functionality of _fixEvent + var containerDiv, + childSpan; + suite['DOM-specific'] = { + + 'beforeEach': function () { + containerDiv = domConstruct.create('div', null, document.body); + childSpan = domConstruct.create('span', null, containerDiv); + }, + 'afterEach': function () { + cleanUpListeners(); + + domConstruct.destroy(containerDiv); + containerDiv = childSpan = null; + }, + + 'event.preventDefault': { + 'native event': function () { + var defaultPrevented = false; + + on(childSpan, 'click', function (event) { + event.preventDefault(); + defaultPrevented = event.defaultPrevented; + }); + + childSpan.click(); + assert.isTrue(defaultPrevented); + }, + 'synthetic event': function () { + var secondListenerCalled = false, + defaultPrevented = false; + on(childSpan, 'click', function (event) { + event.preventDefault(); + }); + on(containerDiv, 'click', function (event) { + secondListenerCalled = true; + defaultPrevented = event.defaultPrevented; + }); + on.emit(childSpan, 'click', {bubbles: true, cancelable: true}); + assert.isTrue(secondListenerCalled, 'bubbled synthetic event on div'); + assert.isTrue(defaultPrevented, 'defaultPrevented set for synthetic event on div'); + } + }, + + 'event bubbling': function () { + var eventBubbled = false; + + on(containerDiv, 'click', function () { + eventBubbled = true; + }); + + childSpan.click(); + assert.isTrue(eventBubbled, 'expected event to bubble'); + }, + + 'event.stopPropagation': function () { + var eventBubbled; + + on(containerDiv, 'click', function () { + eventBubbled = true; + }); + on(childSpan, 'click', function (event) { + event.stopPropagation(); + }); + + // Testing with both Element#click and on.emit because they exercise different + // code paths, most notably with the browsers that require synthetic dispatch and stopPropagation + eventBubbled = false; + childSpan.click(); + assert.isFalse(eventBubbled); + + eventBubbled = false; + on.emit(childSpan, 'click', {}); + assert.isFalse(eventBubbled); + }, + + + 'event.stopImmediatePropagation': function () { + on(childSpan, 'click', function (event) { + event.stopImmediatePropagation(); + }); + + var afterStop = false; + on(childSpan, 'click', function () { + afterStop = true; + }); + + childSpan.click(); + assert.isFalse(afterStop, 'expected no other listener to be called'); + }, + + 'emitting events from document and window': function () { + // make sure 'document' and 'window' can also emit events + var eventEmitted; + var iframe = domConstruct.place('', containerDiv); + var globalObjects = [ + document, window, iframe.contentWindow, iframe.contentDocument || iframe.contentWindow.document + ]; + for (var i = 0, len = globalObjects.length; i < len; i++) { + eventEmitted = false; + on(globalObjects[i], 'custom-test-event', function () { + eventEmitted = true; + }); + on.emit(globalObjects[i], 'custom-test-event', {}); + assert.isTrue(eventEmitted); + } + }, + + 'event delegation': { + 'CSS selector': function () { + var button = domConstruct.create('button', null, childSpan); + + var listenerCalled = false; + on(containerDiv, 'button:click', function () { + listenerCalled = true; + }); + button.click(); + assert.isTrue(listenerCalled); + }, + + 'listening on document': function () { + var button = domConstruct.create('button', null, childSpan); + + var listenerCalled = false; + on(document, 'button:click', function () { + listenerCalled = true; + }); + button.click(); + assert.isTrue(listenerCalled); + }, + + 'CSS selector and text node target': function () { + childSpan.className = 'textnode-parent'; + childSpan.innerHTML = 'text'; + + var listenerCalled; + on(containerDiv, '.textnode-parent:click', function () { + listenerCalled = true; + }); + + on.emit(childSpan.firstChild, 'click', { bubbles: true, cancelable: true }); + assert.isTrue(listenerCalled); + }, + + 'custom selector': function () { + var button = domConstruct.create('button', null, childSpan); + + var listenerCalled = false; + on(containerDiv, on.selector(function (node) { + return node.tagName === 'BUTTON'; + }, 'click'), function () { + listenerCalled = true; + }); + + button.click(); + assert.isTrue(listenerCalled); + }, + + 'on.selector and extension events': { + 'basic extension events': function () { + childSpan.setAttribute('foo', 2); + var order = []; + var customEvent = function (node, listener) { + return on(node, 'custom', listener); + }; + on(containerDiv, customEvent, function (event) { + order.push(event.a); + }); + on(containerDiv, on.selector('span', customEvent), function () { + order.push(+this.getAttribute('foo')); + }); + on.emit(containerDiv, 'custom', { + a: 0 + }); + // should trigger selector + on.emit(childSpan, 'custom', { + a: 1, + bubbles: true, + cancelable: true + }); + // shouldn't trigger selector + on.emit(containerDiv, 'custom', { + a: 3, + bubbles: true, + cancelable: true + }); + assert.deepEqual(order, [0, 1, 2, 3]); + }, + + 'extension events with bubbling forms': function () { + var listenerCalled = false, + bubbleListenerCalled = false; + + var customEvent = function (node, listener) { + return on(node, 'custom', listener); + }; + // simply test that an extension event's bubble method is applied if it exists + customEvent.bubble = function (select) { + return function (node, listener) { + return customEvent(node, function (event) { + bubbleListenerCalled = true; + + if (select(event.target)) { + listener(event); + } + }); + }; + }; + + on(containerDiv, on.selector('span', customEvent), function () { + listenerCalled = true; + }); + on.emit(childSpan, 'custom', { bubbles: true }); + assert.isTrue(listenerCalled); + assert.isTrue(bubbleListenerCalled); + } + }, + + 'only call listener when matching': function () { + containerDiv.innerHTML = ''; + on(containerDiv, '.matchesNothing:click', function (event) { + event.preventDefault(); + }); + containerDiv.firstChild.click(); + assert.isTrue(containerDiv.firstChild.checked); + } + }, + + 'event augmentation': function () { + var button = domConstruct.create('button', null, containerDiv); + on(button, 'click', function (event) { + event.modified = true; + event.test = 3; + }); + var testValue; + on(containerDiv, 'click', function (event) { + testValue = event.test; + }); + button.click(); + assert.strictEqual(testValue, 3); + } + }; + + suite['.matches'] = (function () { + var containerDiv2; + + return { + beforeEach: function () { + containerDiv = domConstruct.create('div', null, document.body); + containerDiv2 = domConstruct.create('div', null, containerDiv); + childSpan = domConstruct.create('span', null, containerDiv2); + }, + + afterEach: function () { + cleanUpListeners(); + + domConstruct.destroy(containerDiv); + containerDiv = containerDiv2 = childSpan = null; + }, + + 'inner-most child click': function () { + on(containerDiv, 'click', function (event) { + assert.ok(on.matches(event.target, 'span:click', this)); + assert.ok(on.matches(event.target, 'div:click', this)); + assert.ok(!on.matches(event.target, 'div:click', this, false)); + assert.ok(!on.matches(event.target, 'body:click', this)); + }); + childSpan.click(); + }, + + 'inner-most container click': function () { + on(containerDiv, 'click', function (event) { + assert.ok(!on.matches(event.target, 'span:click', this)); + assert.ok(on.matches(event.target, 'div:click', this)); + }); + containerDiv2.click(); + } + }; + })(); + + // TODO: Add tests to improve touch-related code coverage + has('touch') && (suite['DOM-specific']['touch event normalization'] = function () { + var div = document.body.appendChild(document.createElement('div')); + + var lastEvent; + on(div, 'touchstart', function (event) { + // Copying event properties to an object because certain versions of Firefox + // threw insecure operation errors when saving an event to a closure-bound variable. + lastEvent = lang.mixin({}, event); + }); + on.emit(div, 'touchstart', { changedTouches: [{ pageX: 100 }] }); + + assert.property(lastEvent, 'rotation'); + assert.property(lastEvent, 'pageX'); + }); + } + + registerSuite(suite); +}); diff --git a/tests/unit/on/debounce.js b/tests/unit/on/debounce.js new file mode 100644 index 0000000000..6f225a7f0f --- /dev/null +++ b/tests/unit/on/debounce.js @@ -0,0 +1,120 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../on', + '../../../on/debounce', + '../../../Evented', + 'sinon', + 'dojo/has!host-browser?dojo/dom-construct', + 'dojo/has!host-browser?../../../query', + 'dojo/has!host-browser?dojo/domReady!' +], function (registerSuite, assert, on, debounce, Evented, sinon, domConstruct) { + var handles = []; + var originalOn = on; + on = function () { + var handle = originalOn.apply(null, arguments); + handles.push(handle); + return handle; + }; + for (var key in originalOn) { + on[key] = originalOn[key]; + } + + function cleanUpListeners() { + while (handles.length > 0) { + handles.pop().remove(); + } + } + + var testObject; + var suite = { + name: 'dojo/on/debounce', + + common: { + beforeEach: function () { + testObject = new Evented(); + }, + + debounces: function () { + var spy = sinon.spy(); + on(testObject, debounce('custom', 100), spy); + + testObject.emit('custom'); + testObject.emit('custom'); + testObject.emit('custom'); + testObject.emit('custom'); + + setTimeout(this.async().callback(function () { + assert.equal(spy.callCount, 1); + }), 500); + }, + + afterEach: function () { + cleanUpListeners(); + testObject = null; + } + } + }; + + var containerDiv; + var containerDiv2; + var anchor; + var button; + + suite.DOM = { + beforeEach: function () { + if (!domConstruct) { + return; + } + containerDiv = domConstruct.create('div', null, document.body); + containerDiv2 = domConstruct.create('div', null, containerDiv); + anchor = domConstruct.create('a', null, containerDiv2); + button = domConstruct.create('button', null, anchor); + }, + + bubbling: function () { + if (!domConstruct) { + this.skip('Not running browser-only tests'); + } + var spy1 = sinon.spy(function (event) { + assert.ok(Boolean(event)); + assert.ok(Boolean(event.target)); + assert.equal(event.target.nodeType, 1); + }); + var spy2 = sinon.spy(); + var spy3 = sinon.spy(); + var spy4 = sinon.spy(); + + on(containerDiv, debounce('a:click', 100), spy1); + on(containerDiv2, debounce('click', 100), spy2); + on(containerDiv, debounce('click, a:click', 100), spy3); + on(containerDiv, 'a:click', spy4); + + try { + button.click(); + button.click(); + button.click(); + button.click(); + } + catch (e) {} + + setTimeout(this.async().callback(function () { + assert.equal(spy1.callCount, 1); + assert.equal(spy2.callCount, 1); + assert.equal(spy3.callCount, 1); + assert.equal(spy4.callCount, 4); + }), 500); + }, + + afterEach: function () { + if (!domConstruct) { + return; + } + cleanUpListeners(); + + domConstruct.destroy(containerDiv); + containerDiv = containerDiv2 = anchor = button = null; + } + }; + registerSuite(suite); +}); diff --git a/tests/unit/on/throttle.js b/tests/unit/on/throttle.js new file mode 100644 index 0000000000..a9654c24b2 --- /dev/null +++ b/tests/unit/on/throttle.js @@ -0,0 +1,124 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../on', + '../../../on/throttle', + '../../../Evented', + 'sinon', + 'dojo/has!host-browser?dojo/dom-construct', + 'dojo/has!host-browser?../../../query', + 'dojo/has!host-browser?dojo/domReady!' +], function (registerSuite, assert, on, throttle, Evented, sinon, domConstruct) { + var handles = []; + var originalOn = on; + on = function () { + var handle = originalOn.apply(null, arguments); + handles.push(handle); + return handle; + }; + for (var key in originalOn) { + on[key] = originalOn[key]; + } + + function cleanUpListeners() { + while (handles.length > 0) { + handles.pop().remove(); + } + } + + var testObject; + var suite = { + name: 'dojo/on/throttle', + + common: { + beforeEach: function () { + testObject = new Evented(); + }, + + throttles: function () { + var spy = sinon.spy(); + on(testObject, throttle('custom', 200), spy); + + var emitter = sinon.spy(function () { + if (!testObject) { + // clearInterval() will not clear an already + // scheduled interval, so this checks if afterEach + // has cleaned up already + return; + } + testObject.emit('custom'); + }); + var interval = setInterval(emitter, 50); + + var dfd = this.async(); + setTimeout(dfd.callback(function () { + clearInterval(interval); + assert.ok(spy.callCount < emitter.callCount); + }), 1000); + }, + + afterEach: function () { + cleanUpListeners(); + testObject = null; + } + } + }; + + var containerDiv; + var containerDiv2; + var anchor; + var button; + + suite.DOM = { + beforeEach: function () { + if (!domConstruct) { + return; + } + containerDiv = domConstruct.create('div', null, document.body); + containerDiv2 = domConstruct.create('div', null, containerDiv); + anchor = domConstruct.create('a', null, containerDiv2); + button = domConstruct.create('button', { + type: 'button' + }, anchor); + }, + + throttles: function () { + if (!domConstruct) { + this.skip('Not running browser-only tests'); + } + var throttleSpy = sinon.spy(); + var clickSpy = sinon.spy(); + + on(containerDiv, throttle('a:click', 200), throttleSpy); + on(containerDiv2, 'a:click', clickSpy); + + var clicker = sinon.spy(function () { + if (!button) { + // clearInterval() will not clear an already + // scheduled interval, so this checks if afterEach + // has cleaned up already + return; + } + button.click(); + }); + var interval = setInterval(clicker, 50); + + var dfd = this.async(); + setTimeout(dfd.callback(function () { + clearInterval(interval); + assert.ok(throttleSpy.callCount < clickSpy.callCount); + }), 1000); + }, + + afterEach: function () { + if (!domConstruct) { + return; + } + cleanUpListeners(); + + domConstruct.destroy(containerDiv); + containerDiv = containerDiv2 = anchor = button = null; + } + }; + registerSuite(suite); +}); diff --git a/tests/unit/parser.js b/tests/unit/parser.js new file mode 100644 index 0000000000..b7e8739dee --- /dev/null +++ b/tests/unit/parser.js @@ -0,0 +1,3 @@ +define([ + './parser/parser' +], function () {}); diff --git a/tests/unit/parser/parser.html b/tests/unit/parser/parser.html new file mode 100644 index 0000000000..90a59febe7 --- /dev/null +++ b/tests/unit/parser/parser.html @@ -0,0 +1,372 @@ +
    +

    Parser Unit Test

    + +
    + +
    + + + + +
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    + + + + +
    +
    +
    +
    +
    +
    + +
    +
    + + + + +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    + + +
    +
    + +
    + +
    +
    +

    Some random markup

    + + + +
    + + + + +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + +
    + + + + + + +
    + checked ToggleButton as div +
    +
    + unchecked ToggleButton as div +
    +
    +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + +
    +
    click me
    +
    + + +
    + +
    +
    + +
    + +
    +
    + +
    +
    + + + +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    diff --git a/tests/unit/parser/parser.js b/tests/unit/parser/parser.js new file mode 100644 index 0000000000..4bcac53b85 --- /dev/null +++ b/tests/unit/parser/parser.js @@ -0,0 +1,965 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../parser', + 'dojo/dom-construct', + 'dojo/_base/array', + 'dojo/aspect', + 'dojo/_base/declare', + 'dojo/dom', + 'dojo/dom-attr', + 'dojo/_base/lang', + 'dojo/on', + 'dojo/_base/window', + 'dojo/date/stamp', + 'dojo/Stateful', + 'dojo/Evented', + 'dojo/text!./parser.html', + './support/util' +], function ( + registerSuite, + assert, + parser, + domConstruct, + array, + aspect, + declare, + dom, + domAttr, + lang, + on, + win, + dstamp, + Stateful, + Evented, + template, + util +) { + var container; + + /* global tests */ + function setup(id, shouldReturn) { + return function () { + var MyNonDojoClass = window.MyNonDojoClass = function () {}; + MyNonDojoClass.extend = function () { + var args = arguments; + return function () { + this.expectedClass = true; + this.params = args; + }; + }; + + declare('tests.parser.Widget', null, { + constructor: function (args) { + this.params = args; + } + }); + + declare('tests.parser.Class1', null, { + constructor: function (args) { + this.params = args; + lang.mixin(this, args); + }, + preambleTestProp: 1, + preamble: function () { + this.preambleTestProp++; + }, + intProp: 1, + callCount: 0, // for connect testing + callInc: function () { this.callCount++; }, + callCount2: 0, // for assignment testing + strProp1: 'original1', + strProp2: 'original2', + arrProp: [], + arrProp2: ['foo'], + boolProp1: false, + boolProp2: true, + boolProp3: false, + boolProp4: true, + dateProp1: dstamp.fromISOString('2007-01-01'), + dateProp2: dstamp.fromISOString('2007-01-01'), + dateProp3: dstamp.fromISOString('2007-01-01'), + funcProp: function () {}, + funcProp2: function () {}, + funcProp3: function () {}, + onclick: function () { this.prototypeOnclick = true; } + // FIXME: have to test dates!! + // FIXME: need to test the args property!! + }); + + declare('tests.parser.Class2', null, { + constructor: function () { + this.fromMarkup = false; + }, + fromMarkup: false, + markupFactory: function () { + var i = new tests.parser.Class2(); + i.fromMarkup = true; + return i; + } + }); + + declare('tests.parser.Class3', tests.parser.Class2, { + fromMarkup: false, + markupFactory: function (args, node, ClassCtor) { + var i = new ClassCtor(); + i.classCtor = ClassCtor; + i.params = args; + return i; + } + }); + + declare('tests.parser.InputClass', null, { + constructor: function (args) { + this.params = args; + lang.mixin(this, args); + }, + + // these attributes are special in HTML, they don't have a value specified + disabled: false, + readonly: false, + checked: false, + + // other attributes native to HTML + value: 'default value', + title: 'default title', + tabIndex: '0', // special because mixed case + + // custom widget attributes that don't match a native HTML attributes + custom1: 123, + custom2: 456 + }); + + // Test that dir, lang, etc. attributes can be inherited from ancestor node + declare('tests.parser.BidiClass', tests.parser.Widget, { + constructor: function (args) { lang.mixin(this, args); }, + dir: '', + lang: '', + textdir: '', + name: '' + }); + + // For testing that parser recurses correctly, except when the prototype has a + // stopParser flag + declare('tests.parser.NormalContainer', null, { + constructor: function (args) { lang.mixin(this, args); } + }); + declare('tests.parser.ShieldedContainer', null, { + constructor: function (args) { lang.mixin(this, args); }, + + // flag to tell parser not to instantiate nodes inside of me + stopParser: true + }); + + declare('tests.parser.HTML5Props', null, { + constructor: function (args) { lang.mixin(this, args); }, + simple: false, + a: 2, + b: null, + c: null, + d: null, + e: null, + f: null, + afn: function () { + return this.a * 2; + } + }); + + // not on .prototype: + tests.parser.HTML5Props._aDefaultObj = { + a: 1, + b: 2, + simple: true + }; + + declare('tests.parser.HTML5withMethod', null, { + constructor: function (args) { lang.mixin(this, args); }, + baseValue: 10, + someMethod: function () { + return this.baseValue; + }, + diffMethod: function () { + this._ran = true; + } + }); + + declare('tests.parser.StatefulClass', [Evented, Stateful], { + strProp1: '', + objProp1: {}, + boolProp1: false, + prototypeOnclick: false, + onclick: function () { this.prototypeOnclick = true; } + }); + + declare('tests.parser.MethodClass', null, { + method1ran: false, + method1after: false, + method2ran: false, + method2before: false, + method2after: false, + method3result: '', + method4ran: false, + method4after: false, + method1: function () { this.method1ran = true; }, + method2: function () { this.method2ran = true; }, + method3: function (result) { this.method3result = result; }, + method4: function () { this.method4ran = true; } + }); + + declare('tests.parser.ClassForMixins', null, { + classDone: true + }); + + declare('tests.parser.Mixin1', null, { + mixin1Done: true + }); + + declare('tests.parser.Mixin2', null, { + mixin2Done: true + }); + + declare('tests.resources.AMDWidget', null, { + constructor: function (args) { + this.params = args; + } + }); + + declare('tests.resources.AMDWidget2', null, { + constructor: function (args) { + this.params = args; + }, + + method1: function (value) { + value++; + return value; + } + }); + + declare('tests.resources.AMDWidget3', null, { + constructor: function (args) { + this.params = args; + } + }); + + window.deepTestProp = { + blah: { + thinger: 1 + } + }; + + tests.parser.FormClass = declare(tests.parser.Widget, { + encType: '' + }); + + window.foo = function () { + this.fooCalled = true; + }; + + container = domConstruct.place(util.fixScope(template), document.body); + var el = id ? dom.byId(id) : null, + ret = parser.parse(el); + + return shouldReturn && ret; + }; + } + + function teardown() { + domConstruct.destroy(container); + container = null; + window.foo = undefined; + } + + registerSuite({ + name: 'dojo/parser basic tests', + setup: setup('main', true), + + teardown: teardown, + + /* global obj */ + 'data-dojo-id': function () { + assert.isObject(obj); + }, + + /* global obj3 */ + 'JsId': function () { + assert.isObject(obj3); + }, + + 'string property': function () { + assert.isString(obj.strProp1); + assert.equal(obj.strProp1, 'text'); + }, + + 'int property': function () { + assert.isNumber(obj.intProp); + assert.equal(obj.intProp, 5); + }, + + 'array property': function () { + assert.lengthOf(obj.arrProp, 3); + assert.lengthOf(obj.arrProp[1], 3); + assert.equal(obj.arrProp[1], 'bar'); + }, + + 'boolean property': function () { + // boolProp1 + assert.isBoolean(obj.boolProp1); + assert.isTrue(obj.boolProp1); + + // boolProp2 + assert.isBoolean(obj.boolProp2); + assert.isFalse(obj.boolProp2); + + // boolProp3 not specified (prototype says false) + assert.isBoolean(obj.boolProp3); + // assert.isFalse(obj.boolprop3); + + // boolProp4 not specified (prototype says true) + // assert.isBoolean(obj.boolProp4); + // assert.isTrue(obj.boolProp4); + }, + + 'date property': function () { + assert.equal(dstamp.toISOString(obj.dateProp1, { selector: 'date' }), '2006-01-01'); + // dateProp2='', should map to NaN (a blank value on DateTextBox) + assert.ok(isNaN(obj.dateProp2)); + + // dateProp3='now', should map to current date + assert.equal(dstamp.toISOString(obj.dateProp3, { selector: 'date' }), + dstamp.toISOString(new Date(), { selector: 'date' })); + }, + + 'unwanted params': function () { + // Make sure that parser doesn't pass any unwanted parameters to + // widget constructor, especially 'toString' or 'constructor'. + // Make exception for dir/lang which parser gleans from document itself. + // + // TODO: File a bug about ${scope}[Tt]ype being left in the params in + // dojo/parser.js. Line 282 in parser.js should alias "dojotype", rather + // than "dojoType", to "${scope}type"; this would prevent ${scope}[Tt]ype + // from ending up in the object params. + for (var param in obj.params) { + assert.ok(array.indexOf( + [ + 'strProp1', 'strProp2', + 'intProp', + 'arrProp', 'arrProp2', + 'boolProp1', 'boolProp2', + 'dateProp1', 'dateProp2', 'dateProp3', + 'funcProp2', 'funcProp3', + 'preamble', + 'callInc1', 'callInc2', 'dir', 'lang', 'textDir' + ], + param) >= 0, param + ' should not be in the parameters passed to the widget constructor'); + } + }, + + 'disabled flag': function () { + /* global disabledObj */ + assert.isBoolean(disabledObj.disabled); + assert.isTrue(disabledObj.disabled); + assert.isFalse(disabledObj.checked); + }, + + 'checked flag': function () { + /* global checkedObj */ + assert.isBoolean(checkedObj.checked); + assert.isFalse(checkedObj.disabled); + assert.isTrue(checkedObj.checked); + }, + + 'function property': function () { + // make sure that unspecified functions (even with common names) + // don't get overridden (bug #3074) + obj.onclick(); + assert.isTrue(obj.prototypeOnclick, 'prototypeOnClick'); + + // funcProp2='foo' + obj.funcProp2(); + assert.isTrue(obj.fooCalled, 'fooCalled'); + + // funcProp3='this.func3Called=true;' + obj.funcProp3(); + assert.isTrue(obj.func3Called, 'func3Called'); + }, + + 'connect': function () { + obj.callInc(); + assert.equal(obj.callCount, 2); + }, + + 'function assignment': function () { + obj.callInc2(); + assert.equal(obj.callCount2, 1); + }, + + 'subnode parse': function () { + assert.isFalse(lang.exists('obj2'), 'exists before parse'); + var toParse = dom.byId('toParse'); + parser.parse(toParse.parentNode); + assert.isTrue(lang.exists('obj2'), 'exists after parse'); + assert.equal(obj.declaredClass, 'tests.parser.Class1'); + }, + + 'markup factory': function () { + assert.isTrue(lang.exists('obj3'), 'obj3 exists'); + assert.isTrue(obj3.fromMarkup); + }, + + /* global obj4 */ + 'markup factory class': function () { + assert.isTrue(lang.exists('obj4'), 'obj4 exists'); + assert.equal(obj4.classCtor, tests.parser.Class3); + assert.instanceOf(obj4, tests.parser.Class3); + assert.instanceOf(obj4, tests.parser.Class2); + }, + + 'no start': function () { + var started = false; + declare('SampleThinger', null, { + startup: function () { + started = true; + } + }); + + domConstruct.create('div', { + dojoType: 'SampleThinger' + }, 'parsertest'); + + parser.parse('parsertest', { noStart: true }); + assert.isFalse(started, 'first started check'); + + domConstruct.empty('parsertest'); + + started = false; + + domConstruct.create('div', { + dojoType: 'SampleThinger' + }, 'parsertest'); + + parser.parse('parsertest', { noStart: true, rootNode: 'parserTest' }); + assert.isFalse(started, 'second started check'); + }, + + // test the varios iterations of parser test + // TODO: the following test doesn't acutally test anything because + // the parser is calling dojo/query's function instead of dojo.query + // This also causes other tests to fail because the aspect call replaces + // dojo.query which has functions on it (like dojo.query.matches) + /*'root test': function () { + var tmp = aspect.after(dojo, 'query', function (sel, root) { + assert.equal(root, 'parsertest2'); + }); + + parser.parse('parsertest2'); + parser.parse({ rootNode: 'parsertest2' }); + parser.parse('parsertest2', { noStart: true }); + tmp.remove(); + },*/ + + // Test that when BorderContainer etc. extends _Widget, + // parser is aware of the new parameters added (to _Widget + // and all of it's subclasses) + 'cache refresh': function () { + // Add new node to be parsed, referencing a widget that the parser has already + // dealt with (and thus cached) + var wrapper = domConstruct.place( + util.fixScope('
    hi
    '), + win.body(), 'last'); + + try { + // Modify Class3's superclass widget to have new parameter (thus Class3 inherits it) + lang.extend(tests.parser.Class2, { + newParam: 0 + }); + + // Run the parser and see if it reads in newParam + var widgets = parser.parse({ rootNode: wrapper }); + assert.lengthOf(widgets, 1); + assert.equal(widgets[0].params.newparam || widgets[0].params.newParam, 12345); + } + finally { + domConstruct.destroy(wrapper); + } + }, + + // Test that parser recurses correctly, except when there's a stopParser flag not to + /* global container1, contained1, container2, contained2 */ + 'recurse': function () { + assert.isDefined(container1, 'normal container created'); + assert.isDefined(container1.incr, 'script tag works too'); + assert.isDefined(contained1, 'child widget also created'); + assert.isDefined(contained2, 'child widget 2 also created'); + + assert.isDefined(container2, 'shielded container created'); + assert.isDefined(container2.incr, 'script tag works too'); + assert.isUndefined(window.contained3, 'child widget not created'); + assert.isUndefined(window.contained4, 'child widget 2 not created'); + }, + + /* global html5simple, html5simple2 */ + 'simple HTML5': function () { + assert.isObject(html5simple, 'data-dojo-id export'); + assert.isObject(html5simple2, 'data-dojo-id export'); + + assert.isTrue(html5simple.simple, 'default respecified in props=""'); + assert.isFalse(html5simple2.simple, 'default overridden by props=""'); + + // test data-dojo-props='simple:false, a:1, b:'two', c:[1,2,3], d:function(){ return this; }, e:{ f:'g' }' + var it = html5simple2; + assert.equal(it.a, 1, 'number in param'); + assert.equal(it.b, 'two', 'string in param'); + assert.isArray(it.c, 'array in param'); + assert.lengthOf(it.c, 3, 'array sanity'); + assert.equal(it.e.f, 'g', 'nested object with string'); + + // test the function + assert.equal(it.d(), it, 'simple \'return this\' function'); + }, + + /* global html5simple3 */ + 'HTML5 inherited': function () { + assert.isObject(html5simple3); + var val = html5simple3.afn(); + assert.equal(val, html5simple3.a * 2, 'afn() overrides default but calls inherited'); + }, + + /* global htmldojomethod */ + 'HTML5 with method': function () { + // testing data-dojo-event and data-dojo-args support for dojo/method and dojo/connect + assert.isObject(htmldojomethod); + assert.isTrue(htmldojomethod._methodRan, 'plain dojo/method ran'); + + var x = htmldojomethod.someMethod(2, 2); + assert.equal(x, 14, 'overridden dojo/method'); + + htmldojomethod.diffMethod(2); + assert.isTrue(htmldojomethod._ran, 'ensures original was called first'); + assert.equal(htmldojomethod._fromvalue, 2, 'ensures connected was executed in scope'); + }, + + /* global objOnWatch */ + 'test watch': function () { + // testing script-type dojo/watch and dojo/on + assert.isObject(objOnWatch); + objOnWatch.set('strProp1', 'newValue1'); + assert.equal(objOnWatch.arrProp.newValue, 'newValue1', 'ensures watch executed'); + + objOnWatch.onclick(); + assert.isTrue(objOnWatch.prototypeOnclick, 'ensures original was called'); + assert.isTrue(objOnWatch.boolProp1, 'ensure on executed in scope'); + }, + + /* global on_form */ + 'on': function () { + /*jshint camelcase:false*/ + // testing script-type dojo/on, when script comes after another element + parser.parse('on'); + assert.property(window, 'on_form', 'widget created'); + on_form.emit('click'); + assert.isTrue(on_form.clicked, 'on callback fired'); + }, + + + /* global objAspect */ + 'aspect': function () { + // testing script-type dojo/aspect + assert.isObject(objAspect); + assert.isFalse(objAspect.method1ran, 'ensures method unfired'); + assert.isFalse(objAspect.method2ran, 'ensures method unfired'); + assert.equal(objAspect.method3result, '', 'ensures method unfired'); + assert.isFalse(objAspect.method4ran, 'ensures method unfired'); + + objAspect.method1(); + objAspect.method2(); + objAspect.method3('something'); + objAspect.method4(); + + assert.isTrue(objAspect.method1ran, 'method fired'); + assert.isTrue(objAspect.method1after, 'after advice fired'); + assert.isTrue(objAspect.method2ran, 'method fired'); + assert.isTrue(objAspect.method2before, 'around before advice fired'); + assert.isTrue(objAspect.method2after, 'around after advice fired'); + assert.equal(objAspect.method3result, 'before', 'before argument passed'); + assert.isTrue(objAspect.method4ran, 'method fired'); + assert.isTrue(objAspect.method4after, 'after advice fired'); + }, + + /* global objAMDWidget */ + 'mid': function () { + // testing specifying data-dojo-type as mid + assert.isObject(objAMDWidget); + assert.equal(objAMDWidget.params.value, 'Value1', 'ensure object was properly parsed using MID'); + } + }); + + registerSuite({ + name: 'bidi', + + setup: setup('main'), + + teardown: teardown, + + // Test that dir=rtl or dir=ltr setting trickles down from root node + /* global setRtl, inheritRtl, inheritRtl2, inheritLtr, setLtr */ + 'dir attribute': function () { + parser.parse('dirSection1'); + parser.parse('dirSection2'); + assert.equal(setRtl.dir, 'rtl', 'direct setting of dir=rtl works'); + assert.equal(inheritRtl.dir, 'rtl', 'inherited rtl works'); + assert.equal(inheritLtr.dir, 'ltr', 'inherited ltr works (closest ancestor wins)'); + assert.equal(inheritRtl2.dir, 'rtl', 'inherited rtl works, from grandparent'); + assert.equal(setLtr.dir, 'ltr', 'direct setting of dir=ltr overrides inherited RTL'); + }, + + /* global noLang, inheritedLang, specifiedLang */ + 'lang attribute': function () { + parser.parse('langSection'); + assert.notProperty(noLang.params, 'lang', 'no lang'); + assert.equal(inheritedLang.lang, 'it_it', 'inherited lang works'); + assert.equal(specifiedLang.lang, 'en_us', 'direct setting of lang overrides inherited'); + }, + + /* global noTextdir, inheritedTextdir, specifiedTextdir */ + 'textDir attribute': function () { + parser.parse('textDirSection'); + assert.notProperty(noTextdir.params, 'textDir', 'no textdir'); + assert.equal(inheritedTextdir.textDir, 'rtl', 'inherited textdir works'); + assert.equal(specifiedTextdir.textDir, 'ltr', 'direct setting of textdir overrides inherited'); + }, + + 'inheritance from HTML': function () { + // Test that calling parser.parse(nodeX) will inherit dir/lang/etc. settings + // even from + + var textdirAttr = util.fixScope('data-${dojo}-textdir'); + var attrs = { dir: 'rtl', lang: 'ja-jp' }; + attrs[textdirAttr] = 'auto'; + domAttr.set(win.doc.documentElement, attrs); + parser.parse('bidiInheritanceFromHtml'); + + /* global inheritedFromHtml */ + assert.equal(inheritedFromHtml.params.dir, 'rtl', 'dir'); + assert.equal(inheritedFromHtml.params.lang, 'ja-jp', 'lang'); + assert.equal(inheritedFromHtml.params.textDir, 'auto', 'textDir'); + + // teardown + array.forEach(['dir', 'lang', textdirAttr], function (attr) { + win.doc.documentElement.removeAttribute(attr); + }); + } + }); + + registerSuite({ + name: 'IE Attribute Detection', + + setup: setup('main'), + + teardown: teardown, + + 'input1': function () { + var widgets = parser.instantiate([dom.byId('ieInput1')]); + var params = widgets[0].params; + + assert.equal(params.type, 'checkbox', 'type'); + assert.isTrue(params.disabled, 'disabled'); + assert.isTrue(params.checked, 'checked'); + assert.isTrue(params.readonly, 'readonly'); + assert.equal(params.foo, 'bar', 'foo'); + assert.equal(params.bar, 'zaz', 'bar'); + assert.equal(params.bob, 'escaped\"dq', 'bob'); + assert.equal(params.frank, 'escaped\'sq', 'frank'); + //assert.isFalse('value' in params, 'value not specified'); // fails in IE8, thinks value=='on' + }, + + 'input2': function () { + var widgets = parser.instantiate([dom.byId('ieInput2')]); + var params = widgets[0].params; + + assert.notProperty(params, 'type', 'type'); + assert.notProperty(params, 'name', 'name'); + assert.notProperty(params, 'value', 'value'); + assert.notProperty(params, 'data-dojo-type', 'data-dojo-type'); + assert.notProperty(params, 'data-dojo-props', 'data-dojo-props'); + assert.equal(params.foo, 'hi', 'foo'); + assert.notProperty(params, 'value', 'value not specified'); + }, + + 'input3': function () { + var widgets = parser.instantiate([dom.byId('ieInput3')]); + var params = widgets[0].params; + + assert.equal(params.type, 'password', 'type'); + assert.equal(params.name, 'test', 'name'); + assert.equal(params.value, '123', 'value'); + assert.equal(params['class'], 'myClass', 'class'); + assert.equal(params.style.replace(/[ ;]/g, '').toLowerCase(), 'display:block', 'style'); + assert.equal(params.tabIndex, '3', 'tabIndex'); + }, + + 'textarea': function () { + var widgets = parser.instantiate([dom.byId('ieTextarea')]); + var params = widgets[0].params; + + assert.equal(params.value, 'attrVal', 'value'); + }, + + 'button1': function () { + var widgets = parser.instantiate([dom.byId('ieButton1')]); + var params = widgets[0].params; + + assert.isTrue(params.checked, 'checked'); + assert.equal(params.value, 'button1val', 'value'); + }, + + 'button2': function () { + var widgets = parser.instantiate([dom.byId('ieButton2')]); + var params = widgets[0].params; + assert.notProperty(params, 'checked', 'checked'); + assert.notProperty(params, 'value', 'value'); + }, + + 'button3': function () { + var widgets = parser.instantiate([dom.byId('ieButton3')]); + var params = widgets[0].params; + assert.isTrue(params.checked, 'checked'); + }, + + 'button4': function () { + var widgets = parser.instantiate([dom.byId('ieButton4')]); + var params = widgets[0].params; + assert.notProperty(params, 'checked'); + }, + + 'form1': function () { + var widgets = parser.instantiate([dom.byId('ieForm1')]); + var params = widgets[0].params; + + assert.equal(params.encType, 'foo', 'encType is specified'); + }, + + 'form2': function () { + var widgets = parser.instantiate([dom.byId('ieForm2')]); + var params = widgets[0].params; + + assert.notProperty(params, 'encType', 'encType not specified'); + }, + + 'li': function () { + var widgets = parser.instantiate([dom.byId('li')]); + var params = widgets[0].params; + assert.equal(params.value, 'home'); + } + }); + + registerSuite({ + name: 'mixed attribute specification', + + setup: setup('main'), + + teardown: teardown, + + /* global mixedObj */ + 'mixed': function () { + parser.parse(dom.byId('mixedContainer')); + assert.isObject(mixedObj, 'widget created'); + assert.equal(mixedObj.value, 'mixedValue', 'native attribute'); + assert.equal(mixedObj.custom1, 999, 'data-dojo-props attribute'); + assert.equal(mixedObj.title, 'custom title', 'data-dojo-props overrides native'); + } + }); + + registerSuite({ + name: 'functions', + + setup: setup('main'), + + teardown: teardown, + + 'onclick': function () { + declare('tests.parser.Button', null, { + onClick: function () { + console.log('prototype click'); + }, + constructor: function (args, node) { + lang.mixin(this, args); + this.domNode = node; + aspect.after(this.domNode, 'onclick', lang.hitch(this, 'onClick')); + } + }); + + buttonClicked = function () { + console.log('markup click'); + }; // markup says onClick='buttonClicked' + + // Parse markup inside 'functions' div + parser.parse('functions'); + + // Should have created an instance called 'button' where button.onClick == buttonClicked + /* global button, buttonClicked */ + assert.isObject(button, 'widget created'); + assert.isFunction(button.onClick, 'created as function'); + assert.isTrue(buttonClicked === button.onClick, 'points to specified function'); + } + }); + + registerSuite({ + name: 'parser.construct()', + + setup: setup('main'), + + teardown: teardown, + + /* global objC1, objC2 */ + 'construct1': function () { + // var nodes = [dom.byId('objC1'), dom.byId('objC2')]; + + parser.construct(tests.parser.Class1, dom.byId('objC1')); + assert.isObject(objC1, 'widget 1 created'); + assert.equal(objC1.intProp, 5, 'objC1.intProp'); + + parser.construct(tests.parser.Class1, dom.byId('objC2')); + assert.isObject(objC2, 'widget 2 created'); + assert.equal(objC2.intProp, 5, 'objC2.intProp'); + } + }); + + registerSuite({ + name: 'data-dojo-mixins support', + + setup: setup('mixins', true), + + teardown: teardown, + + 'mixins': function () { + /* global resultMixins1, resultMixins2 */ + assert.ok(resultMixins1, 'object using data-dojo-mixins created from an already parsed type'); + assert.isTrue(resultMixins1.mixin1Done, 'mixin1 correctly mixed in'); + assert.isTrue(resultMixins1.mixin2Done, 'mixin2 correctly mixed in'); + assert.isTrue(resultMixins1.amdMixinDone, 'amd mixin correctly mixed in'); + assert.ok(resultMixins2, 'object using data-dojo-mixins created from a non parsed type'); + assert.isTrue(resultMixins2.classDone, 'class correctly created'); + assert.isTrue(resultMixins2.mixin1Done, 'mixin1 correctly mixed in'); + assert.isTrue(resultMixins2.mixin2Done, 'mixin2 correctly mixed in'); + assert.isTrue(resultMixins2.amdMixinDone, 'amd mixin correctly mixed in'); + + /* global resultNonDojoMixin */ + assert.isTrue(resultNonDojoMixin.expectedClass, 'correct class is returned for composeJS mixin'); + assert.equal(resultNonDojoMixin.params.length, 2, 'correct # of params were passed to compose JS'); + assert.equal(resultNonDojoMixin.params[0], tests.parser.Mixin1, 'correct param 1'); + assert.equal(resultNonDojoMixin.params[1], tests.parser.Mixin2, 'correct param 2'); + } + }); + + registerSuite({ + name: 'behavorial', + + setup: setup('main'), + + teardown: teardown, + + 'doubleConnect': function () { + // Class used in 'behavioral'
    + /* global Behavioral1:true */ + Behavioral1 = declare(null, { + constructor: function (params, node) { + on(node, 'click', lang.hitch(this, 'onClick')); + if (typeof params.onClick !== 'function') { + throw new Error('onClick not passed to constructor'); + } + lang.mixin(this, params); + }, + onClick: function () { + console.log('original onnClick handler'); + }, + foo: '' + }); + + parser.parse('behavioral'); + + // Setup global accessed by Behavioral1.onclick handler + behavioralClickCounter = 0; + + // Trigger click event, and make sure that handler was only called once. + on.emit(dom.byId('bh1'), 'click', {bubbles: true, cancelable: true}); + + /* global behavioralClickCounter */ + assert.equal(behavioralClickCounter, 1, 'one click event processed'); + + assert.equal(dom.byId('bh1').getAttribute('foo'), 'bar', 'foo attribute not removed from widget DOMNode'); + } + }); + + registerSuite({ + name: 'script type=dojo/require support', + + setup: setup('main'), + + teardown: teardown, + + 'declarativeRequire': function () { + var td = this.async(); + + parser.parse('declarativeRequire').then(td.callback(function () { + /* global dr1, dr2, dr3, dr4, dr5 */ + assert.isObject(dr1, 'object using MID mapped to return var'); + assert.equal(dr1.params.foo, 'bar', 'parameters set on instantiation'); + assert.isObject(dr2, 'object using MID mapped to return var'); + assert.equal(dr2.params.foo, 'bar', 'parameters set on instantiation'); + assert.isObject(dr3, 'object using fully required'); + assert.equal(dr3.params.foo, 'bar', 'parameters set on instantiation'); + assert.equal(dr4.params.foo, 2, 'module loaded and executed'); + assert.equal(dr5.method1(1), 3, 'declarative script has access to parser scope'); + })); + }, + + 'contextRequire': function () { + var td = this.async(); + + parser.parse('contextRequire', { + contextRequire: require + }).then(td.callback(function () { + /* global cr1, cr2, cr3, cr4 */ + assert.isObject(cr1, 'object using relative MID mapped to return var'); + assert.equal(cr1.params.foo, 'bar', 'parameters set on instantiation'); + assert.isObject(cr2, 'object using relative MID mapped to return var'); + assert.equal(cr2.params.foo, 'bar', 'parameters set on instantiation'); + assert.isObject(cr3, 'object using relative MID mapped to return var'); + assert.equal(cr3.params.foo, 'bar', 'parameters set on instantiation'); + assert.isObject(cr4, 'object using relative MID mapped to return var'); + assert.equal(cr4.params.foo, 'bar', 'parameters set on instantiation'); + })); + } + }); + + registerSuite({ + name: 'promise error handling support', + + setup: setup('main'), + + teardown: teardown, + + 'asyncError': function () { + var td = this.async(); + + parser.parse('errorHandling').then(td.rejectOnError(function () { + throw new Error('shouldn\'t get here'); + }), td.callback(function (e) { + assert.equal(typeof e, 'object', 'error object returned'); + })); + }, + + 'missingCtor': function () { + var td = this.async(); + + parser.parse('missingCtor').then(td.rejectOnError(function () { + throw new Error('shouldn\'t get here'); + }), td.callback(function (e) { + assert.equal(typeof e, 'object', 'error object returned'); + assert.equal(e.toString(), + 'Error: Unable to resolve constructor for: \'some.type\'', 'proper error value returned'); + })); + } + }); +}); + diff --git a/tests/unit/parser/support/AMDMixin.js b/tests/unit/parser/support/AMDMixin.js new file mode 100644 index 0000000000..cb96deefbb --- /dev/null +++ b/tests/unit/parser/support/AMDMixin.js @@ -0,0 +1,10 @@ +define(["dojo/_base/declare"], function(declare){ + + return declare(null, { + amdMixinDone: true, + constructor: function(args, node){ + this.params = args; + } + }); + +}); diff --git a/tests/unit/parser/support/AMDWidget.js b/tests/unit/parser/support/AMDWidget.js new file mode 100644 index 0000000000..56861258b4 --- /dev/null +++ b/tests/unit/parser/support/AMDWidget.js @@ -0,0 +1,9 @@ +define(["dojo/_base/declare"], function(declare){ + + return declare(null, { + constructor: function(args, node){ + this.params = args; + } + }); + +}); diff --git a/tests/unit/parser/support/AMDWidget2.js b/tests/unit/parser/support/AMDWidget2.js new file mode 100644 index 0000000000..07f52b57f3 --- /dev/null +++ b/tests/unit/parser/support/AMDWidget2.js @@ -0,0 +1,14 @@ +define(["dojo/_base/declare"], function(declare){ + + return declare(null, { + constructor: function(args, node){ + this.params = args; + }, + + method1: function(value){ + value++; + return value; + } + }); + +}); diff --git a/tests/unit/parser/support/AMDWidget3.js b/tests/unit/parser/support/AMDWidget3.js new file mode 100644 index 0000000000..56861258b4 --- /dev/null +++ b/tests/unit/parser/support/AMDWidget3.js @@ -0,0 +1,9 @@ +define(["dojo/_base/declare"], function(declare){ + + return declare(null, { + constructor: function(args, node){ + this.params = args; + } + }); + +}); diff --git a/tests/unit/parser/support/amdmodule.js b/tests/unit/parser/support/amdmodule.js new file mode 100644 index 0000000000..96b74d5a80 --- /dev/null +++ b/tests/unit/parser/support/amdmodule.js @@ -0,0 +1,8 @@ +define([], function(){ + + return function(value){ + value++; + return value; + }; + +}); diff --git a/tests/unit/parser/support/util.js b/tests/unit/parser/support/util.js new file mode 100644 index 0000000000..6707823d5c --- /dev/null +++ b/tests/unit/parser/support/util.js @@ -0,0 +1,12 @@ +define([ + '../../../../_base/kernel', + 'dojo/string' +], function (dojo, string) { + return { + fixScope: function (snippet) { + return string.substitute(snippet, { + dojo: dojo._scopeName + }); + } + }; +}); diff --git a/tests/unit/promise.js b/tests/unit/promise.js new file mode 100644 index 0000000000..2867a46f0f --- /dev/null +++ b/tests/unit/promise.js @@ -0,0 +1,6 @@ +define([ + './promise/all', + './promise/first', + './promise/Promise', + './promise/tracer' +], function () {}); diff --git a/tests/unit/promise/Promise.js b/tests/unit/promise/Promise.js new file mode 100644 index 0000000000..691226dead --- /dev/null +++ b/tests/unit/promise/Promise.js @@ -0,0 +1,79 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../Deferred' +], function (registerSuite, assert, Deferred) { + // NOTE: At the time of this writing, Dojo promises can call resolve and reject handlers + // on the same turn `then` is called, but these tests are written as if the handlers + // are always called on the next turn so that they will not break if Dojo promises are made Promises/A+ compliant. + // Any tests added to this suite should be written in this way. + + registerSuite({ + name: 'dojo/promise/Promise', + + '.always will be invoked for resolution and rejection': function () { + var deferredToResolve = new Deferred(); + var expectedResolvedResult = {}; + var resolvedResult; + var resolvedAlwaysResult; + var deferredToReject = new Deferred(); + var expectedRejectedResult = {}; + var rejectedResult; + + deferredToResolve.promise.then(function (result) { + resolvedResult = result; + }); + + deferredToResolve.promise.always(function (result) { + resolvedAlwaysResult = result; + + // Nest the rejected tests here to avoid chaining the promises under test + deferredToReject.promise.then(null, function (result) { + rejectedResult = result; + }); + + // Use this.async so we don't rely on the promise implementation under test + deferredToReject.promise.always(this.async().callback(function (rejectedAlwaysResult) { + assert.strictEqual(resolvedResult, expectedResolvedResult); + assert.strictEqual(resolvedAlwaysResult, resolvedResult); + assert.strictEqual(rejectedResult, expectedRejectedResult); + assert.strictEqual(rejectedAlwaysResult, rejectedResult); + })); + + deferredToReject.reject(expectedRejectedResult); + }); + + deferredToResolve.resolve(expectedResolvedResult); + }, + + '.otherwise() is equivalent to .then(null, ...)': function () { + var deferred = new Deferred(); + var expectedResult = {}; + var rejectedResult; + + deferred.promise.then(null, function (result) { + rejectedResult = result; + }); + + // Use this.async so we don't rely on the promise implementation under test + deferred.promise.otherwise(this.async().callback(function (otherwiseResult) { + assert.strictEqual(rejectedResult, expectedResult); + assert.strictEqual(otherwiseResult, rejectedResult); + })); + + deferred.reject(expectedResult); + }, + + '.trace() returns the same promise': function () { + var deferred = new Deferred(); + var expectedPromise = deferred.promise; + assert.strictEqual(expectedPromise.trace(), expectedPromise); + }, + + '.traceRejected() returns the same promise': function () { + var deferred = new Deferred(); + var expectedPromise = deferred.promise; + assert.strictEqual(expectedPromise.traceRejected(), expectedPromise); + } + }); +}); diff --git a/tests/unit/promise/all.js b/tests/unit/promise/all.js new file mode 100644 index 0000000000..8adff7dc87 --- /dev/null +++ b/tests/unit/promise/all.js @@ -0,0 +1,121 @@ +define([ + 'intern!object', + 'intern/chai!assert', + 'dojo/Deferred', + '../../../promise/all' +], function (registerSuite, assert, Deferred, all) { + registerSuite({ + name: 'dojo/promise/all', + + 'array argument': function () { + var expectedResults = [ + 'foo', + 'bar', + 'baz' + ], + deferreds = [ + new Deferred(), + new Deferred(), + expectedResults[2] + ]; + + deferreds[1].resolve(expectedResults[1]); + all(deferreds).then(this.async().callback(function (results) { + assert.deepEqual(results, expectedResults); + })); + deferreds[0].resolve(expectedResults[0]); + }, + + 'object argument': function () { + var expectedResultHash = { + a: 'foo', + b: 'bar', + c: 'baz' + }, + deferredHash = { + a: new Deferred(), + b: new Deferred(), + c: expectedResultHash.c + }; + + deferredHash.a.resolve(expectedResultHash.a); + all(deferredHash).then(this.async().callback(function (resultHash) { + assert.deepEqual(resultHash, expectedResultHash); + })); + deferredHash.b.resolve(expectedResultHash.b); + }, + + 'without arguments': function () { + all().then(this.async().callback(function (result) { + assert.isTrue(typeof result === 'undefined'); + })); + }, + + 'with single non-object argument': function () { + all(null).then(this.async().callback(function (result) { + assert.isTrue(typeof result === 'undefined'); + })); + }, + + 'with empty array': function () { + all([]).then(this.async().callback(function (result) { + assert.deepEqual(result, []); + })); + }, + + 'with empty object': function () { + all({}).then(this.async().callback(function (result) { + assert.deepEqual(result, {}); + })); + }, + + 'with one rejected promise': function () { + var expectedRejectedResult = {}; + var argument = [ new Deferred(), new Deferred(), {} ]; + + argument[1].reject(expectedRejectedResult); + all(argument).then(null, this.async().callback(function (result) { + assert.strictEqual(result, expectedRejectedResult); + })); + }, + + 'with one promise rejected later': function () { + var expectedRejectedResult = {}; + var argument = [ new Deferred(), new Deferred(), {} ]; + + all(argument).then(null, this.async().callback(function (result) { + assert.strictEqual(result, expectedRejectedResult); + })); + argument[1].reject(expectedRejectedResult); + }, + + 'with multiple promises rejected later': function () { + var expectedRejectedResult = {}; + var actualResult; + var argument = [ new Deferred(), new Deferred(), {} ]; + + all(argument).then(null, function (result) { + actualResult = result; + }); + + argument[0].reject(expectedRejectedResult); + argument[1].reject({}); + + // ensure reject is only called once + setTimeout(this.async().callback(function () { + assert.strictEqual(actualResult, expectedRejectedResult); + }), 0); + }, + + 'cancel only affects returned promise, not those we\'re waiting for': function () { + var expectedCancelResult = {}; + var deferredCanceled = false; + var secondDeferred = new Deferred(function () { deferredCanceled = true; }); + + all([ new Deferred(), secondDeferred, new Deferred() ]).then(null, this.async().callback(function (result) { + assert.strictEqual(result, expectedCancelResult); + assert.isFalse(deferredCanceled); + })).cancel(expectedCancelResult); + } + }); +}); diff --git a/tests/unit/promise/first.js b/tests/unit/promise/first.js new file mode 100644 index 0000000000..32beb0e103 --- /dev/null +++ b/tests/unit/promise/first.js @@ -0,0 +1,128 @@ +define([ + 'intern!object', + 'intern/chai!assert', + 'dojo/Deferred', + '../../../promise/first' +], function ( + registerSuite, + assert, + Deferred, + first +) { + var expectedResult = { a: 1, b: 'two' }; + + registerSuite({ + name: 'dojo/promise/first', + + 'with array argument': function () { + var deferreds = [ + new Deferred(), + new Deferred().resolve(expectedResult), + {} + ]; + + first(deferreds).then(this.async().callback(function (actualResult) { + assert.deepEqual(actualResult, expectedResult); + })); + }, + + 'with object argument': function () { + var deferreds = { + a: new Deferred(), + b: new Deferred().resolve(expectedResult), + c: {} + }; + + first(deferreds).then(this.async().callback(function (actualResult) { + assert.deepEqual(actualResult, expectedResult); + })); + }, + + 'without arguments': function () { + first().then(this.async().callback(function () { + assert.equal(arguments.length, 1); + assert.isTrue(typeof arguments[0] === 'undefined'); + })); + }, + + 'with single non-object argument': function () { + first(null).then(this.async().callback(function () { + assert.equal(arguments.length, 1); + assert.isTrue(typeof arguments[0] === 'undefined'); + })); + }, + + 'with empty array': function () { + first([]).then(this.async().callback(function (received) { + assert.isTrue(typeof received === 'undefined'); + })); + }, + + 'with empty object': function () { + first({}).then(this.async().callback(function (received) { + assert.isTrue(typeof received === 'undefined'); + })); + }, + + 'with one rejected promise': function () { + var deferreds = [ + new Deferred(), + new Deferred().reject(expectedResult), + {} + ]; + + first(deferreds).then(null, this.async().callback(function (actualResult) { + assert.deepEqual(actualResult, expectedResult); + })); + }, + + 'with one promise rejected later': function () { + var deferreds = [ + new Deferred(), + new Deferred(), + new Deferred() + ]; + + first(deferreds).then(null, this.async().callback(function (actualResult) { + assert.deepEqual(actualResult, expectedResult); + })); + + deferreds[1].reject(expectedResult); + }, + + 'with multiple promises rejected later': function () { + var actualResult; + var deferreds = [ + new Deferred(), + new Deferred(), + new Deferred() + ]; + + first(deferreds).then(null, function (result) { + actualResult = result; + }); + + deferreds[1].reject(expectedResult); + deferreds[0].reject({}); + + setTimeout(this.async().callback(function () { + assert.deepEqual(actualResult, expectedResult); + }), 0); + }, + + 'cancel only affects returned promise, not those we\'re waiting for': function () { + var othersCancelled = false; + var onCancel = function () { othersCancelled = true; }; + var deferreds = [ + new Deferred(onCancel), + new Deferred(onCancel), + new Deferred(onCancel) + ]; + + first(deferreds).then(null, this.async().callback(function (actualResult) { + assert.deepEqual(actualResult, expectedResult); + })).cancel(expectedResult); + } + + }); +}); diff --git a/tests/unit/promise/tracer.js b/tests/unit/promise/tracer.js new file mode 100644 index 0000000000..a0e1f44ab1 --- /dev/null +++ b/tests/unit/promise/tracer.js @@ -0,0 +1,86 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../Deferred', + '../../../promise/tracer' +], function ( + registerSuite, + assert, + Deferred, + tracer +) { + var handle; + var expectedResult = { a: 1, b: 'two' }; + var testDeferred; + + registerSuite({ + name: 'dojo/promise/tracer', + + beforeEach: function () { + testDeferred = new Deferred(); + }, + + afterEach: function () { + handle && handle.remove(); + handle = undefined; + }, + + '.trace() resolved': function () { + handle = tracer.on('resolved', this.async().callback(function (actualResult) { + assert.deepEqual(actualResult, expectedResult); + })); + + testDeferred.promise.trace(); + testDeferred.resolve(expectedResult); + }, + + '.trace() rejected': function () { + handle = tracer.on('rejected', this.async().callback(function (actualResult) { + assert.deepEqual(actualResult, expectedResult); + })); + + testDeferred.promise.trace(); + testDeferred.reject(expectedResult); + }, + + '.trace() progress': function () { + handle = tracer.on('progress', this.async().callback(function (actualResult) { + assert.deepEqual(actualResult, expectedResult); + })); + + testDeferred.promise.trace(); + testDeferred.progress(expectedResult); + }, + + '.trace() passing extra arguments': function () { + handle = tracer.on('resolved', this.async().callback(function (actualResult, arg1, arg2) { + assert.deepEqual(actualResult, expectedResult); + assert.equal(arg1, 'test'); + assert.deepEqual(arg2, expectedResult); + })); + + testDeferred.promise.trace('test', expectedResult); + testDeferred.resolve(expectedResult); + }, + + '.traceRejected()': function () { + handle = tracer.on('rejected', this.async().callback(function (actualResult) { + assert.deepEqual(actualResult, expectedResult); + })); + + testDeferred.promise.traceRejected(); + testDeferred.reject(expectedResult); + }, + + '.traceRejected() passing extra arguments': function () { + handle = tracer.on('rejected', this.async().callback(function (actualResult, arg1, arg2) { + assert.deepEqual(actualResult, expectedResult); + assert.equal(arg1, 'test'); + assert.deepEqual(arg2, expectedResult); + })); + + testDeferred.promise.traceRejected('test', expectedResult); + testDeferred.reject(expectedResult); + } + }); +}); diff --git a/tests/unit/query.js b/tests/unit/query.js new file mode 100644 index 0000000000..88f3440c72 --- /dev/null +++ b/tests/unit/query.js @@ -0,0 +1,12 @@ +define([ + 'intern!object', + 'intern/chai!assert' +], function (registerSuite, assert) { + registerSuite({ + name: 'dojo/query', + + 'TODO: convert tests': function () { + assert.fail(); + } + }); +}); diff --git a/tests/unit/regexp.js b/tests/unit/regexp.js new file mode 100644 index 0000000000..1f724bbb1d --- /dev/null +++ b/tests/unit/regexp.js @@ -0,0 +1,20 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../regexp' +], function (registerSuite, assert, regexp) { + var regexpString = '\f\b\n\t\r+.$?*|{}()[]\\/^'; + + registerSuite({ + name: 'dojo/regexp', + + 'escape': function () { + var re1 = new RegExp(regexp.escapeString(regexpString)); + var re2 = new RegExp(regexp.escapeString(regexpString, '.')); + + assert.match('TEST\f\b\n\t\r+.$?*|{}()[]\\/^TEST', re1); + assert.match('TEST\f\b\n\t\r+X$?*|{}()[]\\/^TEST', re2); + assert.equal('a\\-z', regexp.escapeString('a-z')); + } + }); +}); diff --git a/tests/unit/request.js b/tests/unit/request.js new file mode 100644 index 0000000000..0fd6f3117d --- /dev/null +++ b/tests/unit/request.js @@ -0,0 +1,9 @@ +define([ + './request/handlers', + './request/registry', + 'dojo/has!host-browser?./request/xhr', + 'dojo/has!host-browser?./request/iframe', + 'dojo/has!host-browser?./request/script', + 'dojo/has!host-browser?./request/notify', + 'intern/dojo/has!host-node?./request/node' +], function(){}); diff --git a/tests/unit/request/handlers.js b/tests/unit/request/handlers.js new file mode 100644 index 0000000000..23bc6d76cc --- /dev/null +++ b/tests/unit/request/handlers.js @@ -0,0 +1,114 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../request/handlers', + 'dojo/has', + 'dojo/json', + 'dojo/has!host-browser?dojo/domReady!' +], function (registerSuite, assert, handlers, has, JSON) { + var global = this; + + registerSuite({ + name: 'dojo/request/handlers', + + 'text': function () { + var response = handlers({ + text: 'foo bar baz ', + options: {} + }); + + assert.strictEqual(response.data, 'foo bar baz '); + }, + + 'json': function () { + var object = { + foo: 'bar', + baz: [ + { thonk: 'blarg' }, + 'xyzzy!' + ] + }; + + var response = handlers({ + text: JSON.stringify(object), + options: { + handleAs: 'json' + } + }); + + assert.deepEqual(response.data, object); + }, + + 'javascript': function () { + var object = { + foo: 'bar', + baz: [ + { thonk: 'blarg' }, + 'xyzzy!' + ] + }; + var response = handlers({ + text: '(' + JSON.stringify(object) + ')', + options: { + handleAs: 'javascript' + } + }); + + assert.deepEqual(response.data, object); + + response = handlers({ + text: 'true;', + options: { + handleAs: 'javascript' + } + }); + assert.ok(response.data); + + response = handlers({ + text: 'false;', + options: { + handleAs: 'javascript' + } + }); + assert.ok(!response.data); + }, + + 'xml': function () { + if (!has('host-browser')) { + return; + } + + var response = { + text: 'blarg', + options: { + handleAs: 'xml' + } + }; + + if ('DOMParser' in global) { + var parser = new DOMParser(); + response.data = parser.parseFromString(response.text, 'text/xml'); + } + + response = handlers(response); + assert.strictEqual(response.data.documentElement.tagName, 'foo'); + }, + + 'register': { + 'custom handler': function () { + handlers.register('custom', function () { + return 'custom response'; + }); + + var response = handlers({ + text: 'foo bar baz', + options: { + handleAs: 'custom' + } + }); + + assert.strictEqual(response.data, 'custom response'); + } + } + }); +}); diff --git a/tests/unit/request/iframe.js b/tests/unit/request/iframe.js new file mode 100644 index 0000000000..7a45843748 --- /dev/null +++ b/tests/unit/request/iframe.js @@ -0,0 +1,249 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../request/iframe', + 'dojo/dom-construct', + 'dojo/dom', + 'dojo/domReady!' +], function (registerSuite, assert, iframe, domConstruct, dom) { + var form; + registerSuite({ + name: 'dojo/request/iframe', + + beforeEach: function () { + form = domConstruct.place('
    ', document.body); + }, + + afterEach: function () { + domConstruct.destroy(form); + form = null; + }, + + '.get text': function () { + var def = this.async(); + + iframe.get('/__services/request/iframe', { + query: { + type: 'text' + }, + preventCache: true + }).response.then( + def.callback(function (response) { + assert.strictEqual(response.data, 'iframe succeeded'); + }), + def.reject + ); + }, + + '.post json': function () { + var def = this.async(); + + iframe.post('/__services/request/iframe', { + form: 'contentArrayTest', + query: { + type: 'json' + }, + data: { + color: 'blue' + }, + handleAs: 'json', + preventCache: true + }).then( + def.callback(function (data) { + assert.strictEqual(data.query.type, 'json'); + assert.strictEqual(data.payload.color, 'blue'); + assert.strictEqual(data.payload.size, '42'); + }), + def.reject + ); + }, + + '.post no form': function () { + var def = this.async(); + + iframe.post('/__services/request/iframe', { + query: { + type: 'json' + }, + data: { + color: 'blue' + }, + handleAs: 'json', + preventCache: true + }).then( + def.callback(function (data) { + assert.strictEqual(data.query.type, 'json'); + assert.strictEqual(data.payload.color, 'blue'); + }), + def.reject + ); + }, + + '.get json': function () { + var def = this.async(); + + iframe.get('/__services/request/iframe', { + query: { + type: 'json' + }, + data: { + color: 'blue' + }, + handleAs: 'json', + preventCache: true + }).then( + def.callback(function (data) { + assert.strictEqual(data.query.type, 'json'); + assert.strictEqual(data.query.color, 'blue'); + }), + def.reject + ); + }, + + '.get with form': function () { + var def = this.async(); + + iframe.get('/__services/request/iframe', { + form: 'contentArrayTest', + query: { + type: 'json' + }, + data: { + color: 'blue' + }, + handleAs: 'json', + preventCache: true + }).then( + def.callback(function (data) { + assert.strictEqual(data.query.type, 'json'); + assert.strictEqual(data.query.color, 'blue'); + assert.strictEqual(data.query.size, '42'); + }), + def.reject + ); + }, + + '.get javascript': function () { + var def = this.async(); + + iframe.get('/__services/request/iframe', { + query: { + type: 'javascript' + }, + handleAs: 'javascript', + preventCache: true + }).then( + def.callback(function () { + assert.strictEqual(window.iframeTestingFunction(), 42); + }), + def.reject + ); + }, + + '.get html': function () { + var def = this.async(); + + iframe.get('/__services/request/iframe', { + query: { + type: 'html' + }, + handleAs: 'html', + preventCache: true + }).then( + def.callback(function (data) { + var element = data.getElementsByTagName('h1')[0]; + assert.strictEqual(element.innerHTML, 'SUCCESSFUL HTML response'); + }), + def.reject + ); + }, + + '.get xml': function () { + var def = this.async(); + + iframe.get('/__services/request/iframe', { + query: { + type: 'xml' + }, + handleAs: 'xml', + preventCache: true + }).then( + def.callback(function (data) { + var elements = data.documentElement.getElementsByTagName('child'); + assert.strictEqual(elements.length, 4); + }), + def.reject + ); + }, + + 'data array': function () { + var def = this.async(); + + iframe.post('/__services/request/iframe', { + query: { + type: 'json' + }, + form: 'contentArrayTest', + data: { + tag: [ 'value1', 'value2' ] + }, + handleAs: 'json' + }).then( + def.callback(function (data) { + assert.strictEqual(data.query.type, 'json'); + assert.strictEqual(data.payload.tag, 'value2'); + assert.strictEqual(data.payload.size, '42'); + + /* Make sure the form is still in the DOM and hasn't moved */ + var form = dom.byId('contentArrayTest'); + assert.ok(form); + assert.notStrictEqual(form.style.position, 'absolute'); + }), + def.reject + ); + }, + + queue: function () { + var def = this.async(); + + iframe.get('/__services/request/iframe', { + query: { + type: 'text', + delay: 2000, + text: 'one' + } + }).then( + def.rejectOnError(function (data) { + assert.strictEqual(data, 'one'); + }), + def.reject + ); + + iframe.get('/__services/request/iframe', { + query: { + type: 'text', + text: 'two' + } + }).then( + def.rejectOnError(function (data) { + assert.strictEqual(data, 'two'); + }), + def.reject + ); + + iframe.get('/__services/request/iframe', { + query: { + type: 'text', + text: 'three' + } + }).then( + def.callback(function (data) { + assert.strictEqual(data, 'three'); + }), + def.reject + ); + + //assert.strictEqual(iframe._dfdQueue.length, 3); + } + }); +}); diff --git a/tests/unit/request/node.js b/tests/unit/request/node.js new file mode 100644 index 0000000000..2ade748f06 --- /dev/null +++ b/tests/unit/request/node.js @@ -0,0 +1,78 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../request/node', + 'intern/dojo/node!http', + 'intern/dojo/node!url', + 'intern/dojo/Deferred' +], function (registerSuite, assert, request, http, url, Deferred) { + var serverPort = 8124; + var serverUrl = 'http://localhost:' + serverPort; + var server; + + function getRequestUrl(dataKey){ + return serverUrl + '?dataKey=' + dataKey; + } + + registerSuite({ + name: 'dojo/request/node', + + 'before': function () { + var dfd = new Deferred(); + var responseDataMap = { + 'fooBar': '{ "foo": "bar" }', + 'invalidJson': 'JSON' + }; + + function getResponseData(request){ + var parseQueryString = true; + var urlInfo = url.parse(request.url, parseQueryString); + return responseDataMap[urlInfo.query.dataKey]; + } + + server = http.createServer(function(request, response){ + var body = getResponseData(request); + + response.writeHead(200, { + 'Content-Length': body.length, + 'Content-Type': 'application/json' + }); + response.write(body); + response.end(); + }); + + server.on('listening', dfd.resolve); + server.listen(serverPort); + + return dfd.promise; + }, + + 'after': function () { + server.close(); + }, + + '.get': { + 'successfully get a record': function () { + var dfd = this.async(); + + request.get(getRequestUrl('fooBar'), { + handleAs: 'json' + }).then(dfd.callback(function(data){ + assert.deepEqual(data, {foo: 'bar'}); + }), dfd.reject.bind(dfd)); + }, + + 'invalid json response throws': function () { + var dfd = this.async(); + + request.get(getRequestUrl('invalidJson'), { + handleAs: 'json' + }).then( + dfd.reject.bind(dfd), + dfd.callback(function(err){ + assert.instanceOf(err, SyntaxError); + })); + } + } + }); +}); diff --git a/tests/unit/request/notify.js b/tests/unit/request/notify.js new file mode 100644 index 0000000000..12cfc4f4cb --- /dev/null +++ b/tests/unit/request/notify.js @@ -0,0 +1,144 @@ +define([ + 'intern!object', + 'intern/chai!assert', + 'dojo/promise/all', + '../../../request/xhr', + '../../../request/notify', + '../../../errors/CancelError' +], function (registerSuite, assert, all, xhr, notify, CancelError) { + function remover() { + var args = arguments; + + return function () { + for (var i=0; iRPC TEST

    '); + }); + }, + + 'empty param': function () { + var testSmd = { + serviceURL: '/__services/rpc/json', + methods: [{ name: 'contentB' }] + }; + + var svc = new JsonService(testSmd); + return svc.contentB().then(function (result) { + assert.strictEqual(result, '

    Content B

    '); + }); + }, + + 'SMD loading': function () { + var svc = new JsonService(require.toUrl('./rpc/support/testClass.smd')); + assert.strictEqual(svc.smd.objectName, 'testClass'); + } + }, + + 'JsonpService': function () { + var testSmd = { + methods: [{ + name: 'jsonp', + serviceURL: '/__services/rpc/jsonp', + parameters: [{ + name: 'query', + type: 'STRING' + }] + }] + }; + + var svc = new JsonpService(testSmd); + return svc.jsonp({ query: 'dojotoolkit' }).then(function (result) { + assert.strictEqual(result.url, 'dojotoolkit.org/'); + }); + } + }); +}); diff --git a/tests/resources/testClass.smd b/tests/unit/rpc/support/testClass.smd old mode 100644 new mode 100755 similarity index 86% rename from tests/resources/testClass.smd rename to tests/unit/rpc/support/testClass.smd index 85f4794884..6a18ffe5be --- a/tests/resources/testClass.smd +++ b/tests/unit/rpc/support/testClass.smd @@ -2,7 +2,7 @@ "SMDVersion":".1", "objectName":"testClass", "serviceType":"JSON-RPC", - "serviceURL":"../../dojo/tests/resources/test_JsonRPCMediator.php", + "serviceURL":"/__services/rpc/json", "methods":[ { "name":"myecho", diff --git a/tests/unit/store.js b/tests/unit/store.js new file mode 100644 index 0000000000..171cff399e --- /dev/null +++ b/tests/unit/store.js @@ -0,0 +1,7 @@ +define([ + './store/Cache', + './store/DataStore', + //'./store/JsonRest', + './store/Memory', + './store/Observable' +], function () {}); diff --git a/tests/unit/store/Cache.js b/tests/unit/store/Cache.js new file mode 100644 index 0000000000..859afaced3 --- /dev/null +++ b/tests/unit/store/Cache.js @@ -0,0 +1,150 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../store/Cache', + '../../../store/Memory', + 'dojo/_base/array' +], function (registerSuite, assert, Cache, Memory, array) { + var data, masterStore, cachingStore, store, options; + + registerSuite({ + name: 'dojo/store/Cache', + + beforeEach: function () { + data = [ + {id: 1, name: 'one', prime: false}, + {id: 2, name: 'two', even: true, prime: true}, + {id: 3, name: 'three', prime: true}, + {id: 4, name: 'four', even: true, prime: false}, + {id: 5, name: 'five', prime: true} + ]; + options = {}; + masterStore = new Memory({ data: data }); + cachingStore = new Memory(); + /* jshint newcap:false */ + store = Cache(masterStore, cachingStore, options); + }, + + '.get': { + 'basic usage': function () { + array.forEach(data, function (record) { + assert.equal(store.get(record.id).name, record.name); + }); + }, + + 'caches record on first get': function () { + array.forEach(data, function (record) { + assert.isUndefined(cachingStore.get(record.id)); + assert.equal(store.get(record.id).name, record.name); + assert.equal(cachingStore.get(record.id).name, record.name); + }); + } + }, + + '.query': { + 'options#isLoaded()': { + 'returns false .query() does not trigger a cache': function () { + options.isLoaded = function () { return false; }; + assert.equal(store.query({prime: true}).length, 3); + assert.equal(store.query({even: true})[1].name, 'four'); + array.forEach(data, function (record) { + assert.isUndefined(cachingStore.get(record.id)); + }); + }, + + 'returns true .query() does cache': function () { + options.isLoaded = function () { return true; }; + assert.equal(store.query({ prime: true }).length, 3); + assert.equal(cachingStore.get(3).name, 'three'); + }, + + 'is undefined caches by default': function () { + var query = store.query(); + + assert.lengthOf(query, 5); + query.forEach(function(value) { + assert.equal(cachingStore.get(value.id).name, value.name); + }); + } + }, + + 'with sort': function () { + assert.equal(store.query({ prime: true }, { sort: [{ attribute: 'name' }] }).length, 3); + assert.equal(store.query({ even: true }, { sort: [{ attribute: 'name' }] })[1].name, 'two'); + } + }, + + '.put': { + 'updating a record': function () { + var record = store.get(4); + + assert.isUndefined(record.square); + record.square = true; + store.put(record); + + record = store.get(4); + assert.isTrue(record.square); + record = cachingStore.get(4); + assert.isTrue(record.square); + record = masterStore.get(4); + assert.isTrue(record.square); + }, + + 'creating a new record': function () { + var record = { + id: 6, + perfect: true + }; + + store.put(record); + assert.isTrue(store.get(6).perfect); + assert.isTrue(cachingStore.get(6).perfect); + assert.isTrue(masterStore.get(6).perfect); + } + }, + + '.add': { + 'adding a new record': function () { + var record = { + id: 7, + prime: true + }; + + store.add(record); + assert.isTrue(store.get(7).prime); + assert.isTrue(cachingStore.get(7).prime); + assert.isTrue(masterStore.get(7).prime); + }, + + 'adding an existing record throws': function () { + var record = { + id: 5, + perfect: true + }; + + assert.throws(function () { + store.add(record); + }); + }, + + 'uses masterStore#add()': function () { + var originalAdd = masterStore.add; + var result; + + masterStore.add = function () { + return { + test: 'value' + }; + }; + + result = store.add({ + id: 7, + prop: 'doesn\'t matter' + }); + assert.property(result, 'test'); + assert.equal(result.test, 'value'); + masterStore.add = originalAdd; + } + } + }); +}); diff --git a/tests/unit/store/DataStore.js b/tests/unit/store/DataStore.js new file mode 100644 index 0000000000..9c8afd45f8 --- /dev/null +++ b/tests/unit/store/DataStore.js @@ -0,0 +1,145 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../store/DataStore', + '../../../data/ItemFileReadStore', + '../../../data/ItemFileWriteStore', + 'dojo/_base/lang' +], function (registerSuite, assert, DataStore, ItemFileReadStore, ItemFileWriteStore, lang) { + var data, dataStore, store; + + registerSuite({ + name: 'dojo/store/DataStore', + + beforeEach: function () { + data = { + items: [ + { id: 1, name: 'one', prime: false }, + { id: 2, name: 'two', even: true, prime: true }, + { id: 3, name: 'three', prime: true }, + { id: 4, name: 'four', even: true, prime: false }, + { id: 5, name: 'five', prime: true, children: [ + { _reference: 1 }, + { _reference: 2 }, + { _reference: 3 } + ] } + ], + identifier: 'id' + }; + + dataStore = new ItemFileWriteStore({ data: lang.clone(data) }); + dataStore.fetchItemByIdentity({ identity: null }); + store = new DataStore({ store: dataStore }); + }, + + construction: { + 'when using a read-only store then write methods unavailable': function () { + var readOnlyStore = new DataStore({ store: new ItemFileReadStore({}) }); + assert.isNotFunction(readOnlyStore.put); + assert.isNotFunction(readOnlyStore.add); + } + }, + + '.get': function () { + assert.equal(store.get(1).name, 'one'); + assert.equal(store.get(4).name, 'four'); + assert.isTrue(store.get(5).prime); + assert.equal(store.get(5).children[1].name, 'two'); + assert.ok(typeof store.get(10) === 'undefined'); + }, + + '.query': { + 'basic query returns expected data': function () { + var dfd = this.async(500); + var query = { even: true }; + var result = store.query(query); + + result.map(dfd.callback(function (record) { + var expected = data.items[record.id - 1]; + for (var key in record) { + if (record.hasOwnProperty(key)) { + assert.propertyVal(expected, key, record[key]); + } + } + }), lang.hitch(dfd, 'reject')); + }, + + 'provides children': function () { + var dfd = this.async(500); + var query = { prime: true }; + + store.query(query).then(dfd.callback( + function (results) { + assert.lengthOf(results, 3); + assert.equal(results[2].children[2].name, 'three'); + } + ), lang.hitch(dfd, 'reject')); + } + }, + + '.put': { + 'update a record': function () { + var record = store.get(4); + + assert.notOk(record.square); + record.square = true; + store.put(record); + record = store.get(4); + assert.isTrue(record.square); + }, + + 'add a new record': function () { + var data = { id: 6, perfect: true }; + + store.put(data); + assert.isTrue(store.get(6).perfect); + }, + + 'overwrite new': function () { + return store.put({ + id: 8, + name: 'eight' + }, { + overwrite: true + }).then(function () { + assert.fail(); + }, function () { + // do nothing... test passes + }); + } + }, + + '.add': { + 'new record': function () { + store.add({ + id: 7, + name: 'seven' + }); + assert.equal(store.get(7).name, 'seven'); + }, + + 'existing record': function () { + return store.add({ + id: 1, + name: 'one' + }).then(function () { + assert.fail(); + }, function () { + // do nothing... test passes + }); + } + }, + + '.remove': { + 'multiple calls': function () { + return store.remove(5).then(function (result) { + assert.ok(result); + }).then(function () { + return store.remove(7); + }).then(function (result) { + assert.ok(!result); + }); + } + } + }); +}); diff --git a/tests/unit/store/JsonRest.js b/tests/unit/store/JsonRest.js new file mode 100644 index 0000000000..d438e85bd0 --- /dev/null +++ b/tests/unit/store/JsonRest.js @@ -0,0 +1,211 @@ +define([ + 'intern!object', + 'intern/chai!assert', + 'dojo/Deferred', + 'dojo/_base/lang', + 'dojo/_base/array', + './support/xhrStub', + 'require', + 'sinon' +], function (registerSuite, assert, Deferred, lang, array, xhrStub, require, sinon) { + var globalHeaders = { + 'test-global-header-a': true, + 'test-global-header-b': 'yes' + }; + + var requestHeaders = { + 'test-local-header-a': true, + 'test-local-header-b': 'yes', + 'test-override': 'overridden' + }; + + var store; + var JsonRest; + + function assertHeaders(xhrHeaders) { + var expectedHeaders = Array.prototype.slice.call(arguments, 1); + + expectedHeaders.push(globalHeaders); + array.forEach(expectedHeaders, function (headers) { + for (var key in headers) { + if (headers.hasOwnProperty(key)) { + assert.propertyVal(xhrHeaders, key, headers[key]); + } + } + }); + } + + registerSuite({ + name: 'dojo/store/JsonRest', + + setup: function () { + var dfd = new Deferred(); + + require({ + map: { + 'testing/store/JsonRest': { + 'testing/_base/xhr': require.toAbsMid('./support/xhrStub') + } + } + }, [ 'testing/store/JsonRest' ], function (_JsonRest) { + JsonRest = _JsonRest; + dfd.resolve(); + }); + + return dfd.promise; + }, + + beforeEach: function () { + xhrStub.reset(); + xhrStub.objectToQuery = sinon.stub(); + + store = new JsonRest({ + target: require.toUrl('dojo/tests/store/x.y').match(/(.+)x\.y$/)[1], + headers: lang.mixin({ 'test-override': false }, globalHeaders) + }); + }, + + '.get': { + beforeEach: function () { + var data = { + id: 'node1.1', + name: 'node1.1', + someProperty: 'somePropertyA1', + children: [ + { $ref: 'node1.1.1', name: 'node1.1.1' }, + { $ref: 'node1.1.2', name: 'node1.1.2' } + ] + }; + var dfd = new Deferred(); + + dfd.resolve(data); + xhrStub.returns(dfd); + }, + + test: function () { + var dfd = this.async(); + var expectedName = 'node1.1'; + + store.get(expectedName).then(dfd.callback(function (object) { + assert.equal(object.name, expectedName); + assert.equal(object.someProperty, 'somePropertyA1'); + }), lang.hitch(dfd, 'reject')); + }, + + 'headers provided as object': function () { + var xhrOptions; + + store.get('destinationUrl', requestHeaders); + xhrOptions = xhrStub.lastCall.args[1]; + + assertHeaders(xhrOptions.headers, requestHeaders); + }, + + 'headers provided in options': function () { + var xhrOptions; + + store.get('destinationUrl', { headers: requestHeaders }); + xhrOptions = xhrStub.lastCall.args[1]; + + assertHeaders(xhrOptions.headers, requestHeaders); + } + }, + + '.query': { + beforeEach: function () { + var data = [ + { id: 'node1', name: 'node1', someProperty: 'somePropertyA', children: [ + { $ref: 'node1.1', name: 'node1.1', children: true }, + { $ref: 'node1.2', name: 'node1.2' } + ] }, + { id: 'node2', name: 'node2', someProperty: 'somePropertyB' }, + { id: 'node3', name: 'node3', someProperty: 'somePropertyC' }, + { id: 'node4', name: 'node4', someProperty: 'somePropertyA' }, + { id: 'node5', name: 'node5', someProperty: 'somePropertyB' } + ]; + var dfd = new Deferred(); + + dfd.resolve(data); + xhrStub.returns(dfd); + }, + + test: function () { + var dfd = this.async(); + + store.query('treeTestRoot').then(dfd.callback(function (results) { + var object = results[0]; + assert.equal(object.name, 'node1'); + assert.equal(object.someProperty, 'somePropertyA'); + }), lang.hitch(dfd, 'reject')); + }, + + 'result iteration': function () { + var dfd = this.async(); + + store.query('treeTestRoot').forEach(function (object, index) { + var expectedName = 'node' + (index + 1); + + assert.equal(object.name, expectedName); + }).then(lang.hitch(dfd, 'resolve'), lang.hitch(dfd, 'reject')); + }, + + 'headers provided in options with range elements': function () { + var expectedRangeHeaders = { 'X-Range': 'items=20-61', 'Range': 'items=20-61' }; + var xhrOptions; + + store.query({}, { headers: requestHeaders, start: 20, count: 42 }); + xhrOptions = xhrStub.lastCall.args[1]; + + assertHeaders(xhrOptions.headers, requestHeaders, expectedRangeHeaders); + } + }, + + '.remove': { + 'headers provied in options': function () { + var xhrOptions; + + store.remove('destinationUrl', { headers: requestHeaders }); + xhrOptions = xhrStub.lastCall.args[1]; + + assertHeaders(xhrOptions.headers, requestHeaders); + } + }, + + '.put': { + 'headers provided in options': function () { + var xhrOptions; + + store.put({}, { headers: requestHeaders }); + xhrOptions = xhrStub.lastCall.args[1]; + + assertHeaders(xhrOptions.headers, requestHeaders); + } + }, + + '.add': { + 'headers provided in options': function () { + var xhrOptions; + + store.add({}, { headers: requestHeaders }); + xhrOptions = xhrStub.lastCall.args[1]; + + assertHeaders(xhrOptions.headers, requestHeaders); + } + }, + + '._getTarget': { + 'without slash': function () { + store.target = store.target.slice(0, -1); + assert.equal(store.target + '/foo', store._getTarget('foo')); + }, + 'with slash': function () { + assert.equal(store.target + 'foo', store._getTarget('foo')); + } + }, + + teardown: function () { + // prevent accidental reuse after test completion + xhrStub.throws(new Error('this is a stub function')); + } + }); +}); diff --git a/tests/unit/store/Memory.js b/tests/unit/store/Memory.js new file mode 100644 index 0000000000..ee4643fc5e --- /dev/null +++ b/tests/unit/store/Memory.js @@ -0,0 +1,191 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../store/Memory', + 'dojo/store/util/QueryResults' +], function (registerSuite, assert, MemoryStore, QueryResults) { + var data = [ + { id: 1, name: 'one', even: false, prime: false, mappedTo: 'E', date: new Date(1970, 0, 1) }, + { id: 2, name: 'two', even: true, prime: true, mappedTo: 'D', date: new Date(1980, 1, 2) }, + { id: 3, name: 'three', even: false, prime: true, mappedTo: 'C', date: new Date(1990, 2, 3) }, + { id: 4, name: 'four', even: true, prime: false, mappedTo: null, date: new Date(1972, 3, 6, 12, 1) }, + { id: 5, name: 'five', even: false, prime: true, mappedTo: 'A', date: new Date(1972, 3, 6, 6, 2) } + ]; + + var store = new MemoryStore({ + data: data + }); + + registerSuite({ + name: 'dojo/store/Memory', + + '.get': [ + function () { + assert.strictEqual(store.get(1).name, 'one'); + assert.strictEqual(store.get(4).name, 'four'); + assert.ok(store.get(5).prime); + } + ], + + '.query': { + 'with boolean': function () { + assert.strictEqual(store.query({ prime: true }).length, 3); + assert.strictEqual(store.query({ even: true })[1].name, 'four'); + }, + + 'with string': function () { + assert.strictEqual(store.query({ name: 'two' }).length, 1); + assert.strictEqual(store.query({ name: 'two' })[0].name, 'two'); + }, + + 'with RegExp': function () { + assert.strictEqual(store.query({ name: /^t/ }).length, 2); + assert.strictEqual(store.query({ name: /^t/ })[1].name, 'three'); + assert.strictEqual(store.query({ name: /^o/ }).length, 1); + assert.strictEqual(store.query({ name: /o/ }).length, 3); + }, + + 'with test function': function () { + var lowIdItems = store.query({ id: { + test: function (id) { + return id < 4; + } + }}); + + assert.strictEqual(lowIdItems.length, 3); + + var evenItems = store.query({ even: { + test: function (even, object) { + return even && object.id > 2; + } + }}); + + assert.strictEqual(evenItems.length, 1); + }, + + 'with sort': function () { + function queryDeepEqual(actual, expected) { + if (!actual.hasOwnProperty('map')) { + assert.deepEqual(actual, expected); + return; + } + // When there's no native forEach, map, or filter + // it gets added to the object and the functions are + // not equal to each other, so we can't test directly + // for deep equality :( + + assert.strictEqual(actual.length, expected.length, 'Length of query should be ' + expected.length); + assert.strictEqual(actual.total, expected.total, 'Total of query should be ' + expected.total); + + for (var i = 0, l = expected.length; i < l; i++) { + assert.deepEqual(actual[i], expected[i]); + } + } + var sortedByMappedTo = new QueryResults([data[4], data[2], data[1], data[0], data[3]]), + evenSortedByName = new QueryResults([data[3], data[1]]); + + assert.strictEqual(store.query({ prime: true }, { sort: [ { attribute: 'name' } ] }).length, 3); + queryDeepEqual(store.query({ even: true }, { sort: [ { attribute: 'name' } ] }), evenSortedByName); + + queryDeepEqual(store.query({ even: true }, { sort: function (a, b) { + return a.name < b.name ? -1 : 1; + }}), evenSortedByName); + + queryDeepEqual(store.query(null, { sort: [ { attribute: 'mappedTo' } ] }), sortedByMappedTo); + + queryDeepEqual(store.query({}, { sort: [ { attribute: 'date', descending: false } ] }).map(function (item) { + return item.id; + }), new QueryResults([ 1, 5, 4, 2, 3 ])); + }, + + 'with paging': function () { + assert.strictEqual(store.query({ prime: true }, { start: 1, count: 1 }).length, 1); + assert.strictEqual(store.query({ even: true }, { start: 1, count: 1 })[0].name, 'four'); + } + }, + + '.put': { + update: function () { + var four = store.get(4); + four.square = true; + store.put(four); + four = store.get(4); + assert.ok(four.square); + }, + + 'new': function () { + store.put({ + id: 6, + perfect: true + }); + assert.ok(store.get(6).perfect); + } + }, + + '.add': { + duplicate: function () { + var threw; + + try { + store.add({ + id: 6, + perfect: true + }); + } catch (error) { + threw = true; + } + + assert.ok(threw); + }, + + 'new': function () { + store.add({ + id: 7, + prime: true + }); + + assert.ok(store.get(7).prime); + }, + + 'new id assignment': function () { + var object = { + random: true + }; + + store.add(object); + assert.isDefined(object.id); + } + }, + + '.remove': { + 'existing item': function () { + assert.ok(store.remove(7)); + assert.ok(!store.get(7)); + }, + + 'missing item': function () { + assert.ok(!store.remove(77)); + // make sure nothing changed + assert.strictEqual(store.get(1).id, 1); + } + }, + + misc: { + 'IFRS style data': function () { + var anotherStore = new MemoryStore({ + data: { + items: [ + { name: 'one', even: false, prime: false }, + { name: 'two', even: true, prime: true }, + { name: 'three', even: false, prime: true } + ], + identifier: 'name' + } + }); + + assert.strictEqual(anotherStore.get('one').name, 'one'); + assert.strictEqual(anotherStore.query({ name: 'one' })[0].name, 'one'); + } + } + }); +}); diff --git a/tests/unit/store/Observable.js b/tests/unit/store/Observable.js new file mode 100644 index 0000000000..8000fa6634 --- /dev/null +++ b/tests/unit/store/Observable.js @@ -0,0 +1,215 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../../store/Observable', + '../../../_base/declare', + 'dojo/_base/lang', + 'dojo/_base/array', + '../../../store/Memory', + 'sinon' +], function (registerSuite, assert, Observable, declare, lang, array, Memory, sinon) { + function createMyStore() { + var MyStore = declare([ Memory ], { + get: function () { + // need to make sure that this.inherited still works with Observable + return this.inherited(arguments); + } + }); + + var storeData = [ + { id: 0, name: 'zero', even: true, prime: false }, + { id: 1, name: 'one', prime: false }, + { id: 2, name: 'two', even: true, prime: true }, + { id: 3, name: 'three', prime: true }, + { id: 4, name: 'four', even: true, prime: false }, + { id: 5, name: 'five', prime: true } + ]; + + return new Observable(new MyStore({ data: storeData })); + } + + function createBigStore() { + var data = [], i; + for (i = 1; i <= 100; i++) { + data.push({ id: i, name: 'item ' + i, order: i }); + } + + /* jshint newcap:false */ + return Observable(new Memory({ data: data })); + } + + registerSuite({ + name: 'dojo/store/Observable', + + '.get': function () { + var store = createMyStore(); + assert.equal(store.get(1).name, 'one'); + assert.equal(store.get(4).name, 'four'); + assert.isTrue(store.get(5).prime); + }, + + '.query': { + 'empty query options': function () { + var store = createMyStore(); + var results = store.query({}); + assert.lengthOf(results, 6); + } + }, + + '.observe': (function () { + var store, handlerStub, results, observer; + + return { + beforeEach: function () { + store = createMyStore(); + handlerStub = sinon.stub(); + results = store.query({ prime: true }); + observer = results.observe(handlerStub); + }, + + 'handler receives updates': { + 'update an existing matching record to no longer match query': function () { + var record = results[0]; + + record.prime = false; + store.put(record); + assert.deepEqual(handlerStub.firstCall.args[0], { + id: 2, + name: 'two', + even: true, + prime: false + }); + assert.equal(handlerStub.firstCall.args[1], 0); + assert.equal(handlerStub.firstCall.args[2], -1); + assert.lengthOf(results, 2); + }, + + 'updating an existing non-matching record to match the query': function () { + var record = store.get(1); + + record.prime = true; + store.put(record); + assert.deepEqual(handlerStub.firstCall.args[0], { + id: 1, + name: 'one', + prime: true + }); + assert.equal(handlerStub.firstCall.args[1], -1); + assert.equal(handlerStub.firstCall.args[2], 3); + assert.lengthOf(results, 4); + }, + + 'does not receive updates from non-matching additions': function () { + assert.lengthOf(results, 3); + store.add({ id: 6, name: 'six' }); + assert.lengthOf(results, 3); + assert.isFalse(handlerStub.called); + }, + + 'adding new matching record': function () { + var record = { id: 7, name: 'seven', prime: true }; + + store.add(record); + assert.isTrue(handlerStub.called); + assert.deepEqual(handlerStub.firstCall.args[0], record); + assert.equal(handlerStub.firstCall.args[1], -1); + assert.equal(handlerStub.firstCall.args[2], 3); + assert.lengthOf(results, 4); + }, + + includeObjectUpdates: { + beforeEach: function () { + observer.cancel(); + }, + + 'is false; does not notify about object updates': function () { + var record = results[0]; + + results.observe(handlerStub, false); + record.name = 'newName'; + store.put(record); + assert.equal(handlerStub.callCount, 0); + }, + + 'is true, notifies about object updates': function () { + var record = results[0]; + + results.observe(handlerStub, true); + record.name = 'newName'; + store.put(record); + assert.equal(handlerStub.callCount, 1); + assert.equal(handlerStub.firstCall.args[1], handlerStub.firstCall.args[2]); + } + } + }, + + 'observer#cancel() halts further updates': function () { + var record = results[0]; + + // Assert the expected length before altering the data set + assert.lengthOf(results, 3); + + // updating the record will change the observed results + record.prime = false; + store.put(record); + assert.lengthOf(results, 2); + assert.lengthOf(store.query({ prime: true }), 2); + assert.equal(handlerStub.callCount, 1); + + // cancel observation and the handler is no longer called + // and the results are no longer updated + observer.cancel(); + record.prime = true; + store.put(record); + assert.lengthOf(results, 2); + assert.equal(handlerStub.callCount, 1); + + // verify that the change did happen but was not tracked + assert.lengthOf(store.query({ prime: true }), 3); + }, + + 'observer#remove() is observer#cancel()': function () { + assert.isFunction(observer.cancel); + assert.equal(observer.cancel, observer.remove); + } + }; + })(), + + 'behaves as a mixin wrapper': function () { + assert.notInstanceOf(createMyStore(), Observable); + assert.notInstanceOf(createBigStore(), Observable); + }, + + 'paging tests': function () { + var options = { count: 25, sort: [{ attribute: 'order' }] }; + var bigStore = createBigStore(); + var results = [ + bigStore.query({}, lang.delegate(options, { start: 0 })), + bigStore.query({}, lang.delegate(options, { start: 25 })), + bigStore.query({}, lang.delegate(options, { start: 50 })), + bigStore.query({}, lang.delegate(options, { start: 75 })) + ]; + var observeHandler = sinon.stub(); + + array.forEach(results, function (result) { + result.observe(observeHandler, true); + }); + + bigStore.add({ id: 101, name: 'one oh one', order: 2.5 }); + assert.lengthOf(results[0], 26); + assert.lengthOf(results[1], 25); + assert.lengthOf(results[2], 25); + assert.lengthOf(results[3], 25); + + bigStore.remove(101); + assert.equal(observeHandler.callCount, 2); + assert.lengthOf(results[0], 25); + + bigStore.add({ id: 102, name: 'one oh two', order: 26.5 }); + assert.lengthOf(results[0], 25); + assert.lengthOf(results[1], 26); + assert.lengthOf(results[2], 25); + assert.equal(observeHandler.callCount, 3); + } + }); +}); diff --git a/tests/unit/store/support/xhrStub.js b/tests/unit/store/support/xhrStub.js new file mode 100644 index 0000000000..b2667e8aec --- /dev/null +++ b/tests/unit/store/support/xhrStub.js @@ -0,0 +1,5 @@ +define([ + 'sinon' +], function (sinon) { + return sinon.stub(); +}); diff --git a/tests/unit/string.js b/tests/unit/string.js new file mode 100644 index 0000000000..8aca6a110b --- /dev/null +++ b/tests/unit/string.js @@ -0,0 +1,110 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../string' +], function (registerSuite, assert, string) { + registerSuite({ + name: 'dojo/string', + + '.pad': function () { + assert.strictEqual(string.pad('1', 5), '00001'); + assert.strictEqual(string.pad('000001', 5), '000001'); + assert.strictEqual(string.pad('1', 5, null, true), '10000'); + }, + + '.substitute': { + normal: function () { + assert.strictEqual( + string.substitute( + 'File "${0}" is not found in directory "${1}".', + ['foo.html','/temp'] + ), + 'File "foo.html" is not found in directory "/temp".' + ); + + assert.strictEqual( + string.substitute( + 'File "${name}" is not found in directory "${info.dir}".', + { + name: 'foo.html', + info: { dir: '/temp' } + } + ), + 'File "foo.html" is not found in directory "/temp".' + ); + + assert.throws(function () { + string.substitute('${x}', { y: 1 }); + }); + }, + + transform: function () { + function getPrefix(str) { + // try to figure out the type + var prefix = (str.charAt(0) === '/') ? 'directory': 'file'; + if(this.____prefix){ + prefix = this.____prefix + prefix; + } + return prefix + ' "' + str + '"'; + } + + var obj = { + ____prefix: '...', + getPrefix: getPrefix + }; + + assert.strictEqual( + string.substitute( + '${0} is not found in ${1}.', + ['foo.html','/temp'], + getPrefix + ), + 'file "foo.html" is not found in directory "/temp".' + ); + + assert.strictEqual( + string.substitute( + '${0} is not found in ${1}.', + ['foo.html','/temp'], + obj.getPrefix, obj + ), + '...file "foo.html" is not found in ...directory "/temp".' + ); + }, + + formatter: function () { + assert.strictEqual( + string.substitute( + '${0:postfix}', ['thinger'], null, { + postfix: function(value){ + return value + ' -- howdy'; + } + } + ), + 'thinger -- howdy' + ); + } + }, + + '.trim': function () { + assert.strictEqual(string.trim(' \f\n\r\t astoria '), 'astoria'); + assert.strictEqual(string.trim('astoria '), 'astoria'); + assert.strictEqual(string.trim(' astoria'), 'astoria'); + assert.strictEqual(string.trim('astoria'), 'astoria'); + assert.strictEqual(string.trim(' a '), 'a'); + }, + + '.rep': function () { + assert.strictEqual(string.rep('a', 5), 'aaaaa'); + assert.strictEqual(string.rep('ab', 4), 'abababab'); + assert.strictEqual(string.rep('ab', 0), ''); + assert.strictEqual(string.rep('', 3), ''); + }, + + '.escape': function () { + assert.equal(string.escape('astoria'), 'astoria'); + assert.equal(string.escape('&<>\'/'), '&<>'/'); + assert.equal(string.escape('oh"oh"oh'), 'oh"oh"oh'); + } + }); +}); diff --git a/tests/cache/object.html b/tests/unit/support/cache/object.html similarity index 57% rename from tests/cache/object.html rename to tests/unit/support/cache/object.html index 41762e04d7..4c20cc092a 100644 --- a/tests/cache/object.html +++ b/tests/unit/support/cache/object.html @@ -2,8 +2,8 @@ "http://www.w3.org/TR/html4/loose.dtd"> - - + +

    Hello World

    diff --git a/tests/cache/regular.html b/tests/unit/support/cache/regular.html similarity index 100% rename from tests/cache/regular.html rename to tests/unit/support/cache/regular.html diff --git a/tests/cache/sanitized.html b/tests/unit/support/cache/sanitized.html similarity index 57% rename from tests/cache/sanitized.html rename to tests/unit/support/cache/sanitized.html index 41762e04d7..4c20cc092a 100644 --- a/tests/cache/sanitized.html +++ b/tests/unit/support/cache/sanitized.html @@ -2,8 +2,8 @@ "http://www.w3.org/TR/html4/loose.dtd"> - - + +

    Hello World

    diff --git a/tests/unit/support/html.template.html b/tests/unit/support/html.template.html new file mode 100644 index 0000000000..e226379805 --- /dev/null +++ b/tests/unit/support/html.template.html @@ -0,0 +1,18 @@ +
    +
    +
      initial content
    +
      initial content
    +
      initial content
    + + + + + + + + + + + +
    +
    \ No newline at end of file diff --git a/tests/nls/ar/salutations.js b/tests/unit/support/i18n/nls/ar/salutations.js similarity index 100% rename from tests/nls/ar/salutations.js rename to tests/unit/support/i18n/nls/ar/salutations.js diff --git a/tests/nls/cs/salutations.js b/tests/unit/support/i18n/nls/cs/salutations.js similarity index 100% rename from tests/nls/cs/salutations.js rename to tests/unit/support/i18n/nls/cs/salutations.js diff --git a/tests/nls/de/salutations.js b/tests/unit/support/i18n/nls/de/salutations.js similarity index 100% rename from tests/nls/de/salutations.js rename to tests/unit/support/i18n/nls/de/salutations.js diff --git a/tests/nls/el/salutations.js b/tests/unit/support/i18n/nls/el/salutations.js similarity index 100% rename from tests/nls/el/salutations.js rename to tests/unit/support/i18n/nls/el/salutations.js diff --git a/tests/nls/en-au/salutations.js b/tests/unit/support/i18n/nls/en-au/salutations.js similarity index 100% rename from tests/nls/en-au/salutations.js rename to tests/unit/support/i18n/nls/en-au/salutations.js diff --git a/tests/nls/en-us-hawaii/salutations.js b/tests/unit/support/i18n/nls/en-us-hawaii/salutations.js similarity index 100% rename from tests/nls/en-us-hawaii/salutations.js rename to tests/unit/support/i18n/nls/en-us-hawaii/salutations.js diff --git a/tests/nls/en-us-new_york-brooklyn/salutations.js b/tests/unit/support/i18n/nls/en-us-new_york-brooklyn/salutations.js similarity index 100% rename from tests/nls/en-us-new_york-brooklyn/salutations.js rename to tests/unit/support/i18n/nls/en-us-new_york-brooklyn/salutations.js diff --git a/tests/nls/en-us-texas/salutations.js b/tests/unit/support/i18n/nls/en-us-texas/salutations.js similarity index 100% rename from tests/nls/en-us-texas/salutations.js rename to tests/unit/support/i18n/nls/en-us-texas/salutations.js diff --git a/tests/nls/es/salutations.js b/tests/unit/support/i18n/nls/es/salutations.js similarity index 100% rename from tests/nls/es/salutations.js rename to tests/unit/support/i18n/nls/es/salutations.js diff --git a/tests/nls/fa/salutations.js b/tests/unit/support/i18n/nls/fa/salutations.js similarity index 100% rename from tests/nls/fa/salutations.js rename to tests/unit/support/i18n/nls/fa/salutations.js diff --git a/tests/nls/fr/salutations.js b/tests/unit/support/i18n/nls/fr/salutations.js similarity index 100% rename from tests/nls/fr/salutations.js rename to tests/unit/support/i18n/nls/fr/salutations.js diff --git a/tests/nls/he/salutations.js b/tests/unit/support/i18n/nls/he/salutations.js similarity index 100% rename from tests/nls/he/salutations.js rename to tests/unit/support/i18n/nls/he/salutations.js diff --git a/tests/nls/hi/salutations.js b/tests/unit/support/i18n/nls/hi/salutations.js similarity index 100% rename from tests/nls/hi/salutations.js rename to tests/unit/support/i18n/nls/hi/salutations.js diff --git a/tests/nls/it/salutations.js b/tests/unit/support/i18n/nls/it/salutations.js similarity index 100% rename from tests/nls/it/salutations.js rename to tests/unit/support/i18n/nls/it/salutations.js diff --git a/tests/nls/ja/salutations.js b/tests/unit/support/i18n/nls/ja/salutations.js similarity index 100% rename from tests/nls/ja/salutations.js rename to tests/unit/support/i18n/nls/ja/salutations.js diff --git a/tests/nls/ko/salutations.js b/tests/unit/support/i18n/nls/ko/salutations.js similarity index 100% rename from tests/nls/ko/salutations.js rename to tests/unit/support/i18n/nls/ko/salutations.js diff --git a/tests/nls/pl/salutations.js b/tests/unit/support/i18n/nls/pl/salutations.js similarity index 100% rename from tests/nls/pl/salutations.js rename to tests/unit/support/i18n/nls/pl/salutations.js diff --git a/tests/nls/pt/salutations.js b/tests/unit/support/i18n/nls/pt/salutations.js similarity index 100% rename from tests/nls/pt/salutations.js rename to tests/unit/support/i18n/nls/pt/salutations.js diff --git a/tests/nls/ru/salutations.js b/tests/unit/support/i18n/nls/ru/salutations.js similarity index 100% rename from tests/nls/ru/salutations.js rename to tests/unit/support/i18n/nls/ru/salutations.js diff --git a/tests/nls/salutations.js b/tests/unit/support/i18n/nls/salutations.js similarity index 100% rename from tests/nls/salutations.js rename to tests/unit/support/i18n/nls/salutations.js diff --git a/tests/nls/sw/salutations.js b/tests/unit/support/i18n/nls/sw/salutations.js similarity index 100% rename from tests/nls/sw/salutations.js rename to tests/unit/support/i18n/nls/sw/salutations.js diff --git a/tests/nls/th/salutations.js b/tests/unit/support/i18n/nls/th/salutations.js similarity index 100% rename from tests/nls/th/salutations.js rename to tests/unit/support/i18n/nls/th/salutations.js diff --git a/tests/nls/tr/salutations.js b/tests/unit/support/i18n/nls/tr/salutations.js similarity index 100% rename from tests/nls/tr/salutations.js rename to tests/unit/support/i18n/nls/tr/salutations.js diff --git a/tests/nls/yi/salutations.js b/tests/unit/support/i18n/nls/yi/salutations.js similarity index 100% rename from tests/nls/yi/salutations.js rename to tests/unit/support/i18n/nls/yi/salutations.js diff --git a/tests/nls/zh-cn/salutations.js b/tests/unit/support/i18n/nls/zh-cn/salutations.js similarity index 100% rename from tests/nls/zh-cn/salutations.js rename to tests/unit/support/i18n/nls/zh-cn/salutations.js diff --git a/tests/nls/zh-tw/salutations.js b/tests/unit/support/i18n/nls/zh-tw/salutations.js similarity index 100% rename from tests/nls/zh-tw/salutations.js rename to tests/unit/support/i18n/nls/zh-tw/salutations.js diff --git a/tests/unit/text.js b/tests/unit/text.js new file mode 100644 index 0000000000..f11b2abada --- /dev/null +++ b/tests/unit/text.js @@ -0,0 +1,19 @@ +define([ + 'require', + 'intern!object', + 'intern/chai!assert', + 'dojo/json' +], function (require, registerSuite, assert, JSON) { + registerSuite({ + name: 'dojo/text', + + 'no X-Requested-With header': function () { + var dfd = this.async(); + + require([ '../../text!/__services/request/xhr' ], dfd.callback(function (data) { + data = JSON.parse(data); + assert.ok(typeof data.headers['x-requested-with'] === 'undefined'); + })); + } + }); +}); diff --git a/tests/unit/throttle.js b/tests/unit/throttle.js new file mode 100644 index 0000000000..709692e97e --- /dev/null +++ b/tests/unit/throttle.js @@ -0,0 +1,52 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../throttle', + 'sinon' +], function (registerSuite, assert, throttle, sinon) { + registerSuite({ + name: 'dojo/throttle', + + sync: function () { + var spy = sinon.spy(); + var throttler = sinon.spy(throttle(spy, 100)); + + throttler(); + throttler(); + throttler(); + + setTimeout(this.async().callback(function () { + assert.ok(spy.callCount < throttler.callCount); + }), 1000); + }, + + async: function () { + var spy = sinon.spy(); + var throttler = sinon.spy(throttle(spy, 100)); + + throttler(); + setTimeout(function () { + throttler(); + }, 40); + setTimeout(function () { + throttler(); + }, 80); + setTimeout(function () { + throttler(); + }, 120); + setTimeout(function () { + throttler(); + }, 180); + setTimeout(function () { + throttler(); + }, 220); + setTimeout(function () { + throttler(); + }, 350); + + setTimeout(this.async().callback(function () { + assert.ok(spy.callCount < throttler.callCount); + }), 2000); + } + }); +}); diff --git a/tests/unit/topic.js b/tests/unit/topic.js new file mode 100644 index 0000000000..fa118e32e1 --- /dev/null +++ b/tests/unit/topic.js @@ -0,0 +1,79 @@ +define([ + 'intern!object', + 'intern/chai!assert', + 'dojo/aspect', + '../../topic' +], function (registerSuite, assert, aspect, topic) { + var aspectHandle, + subscriptionHandles = []; + + registerSuite({ + name: 'dojo/topic', + + setup: function () { + aspectHandle = aspect.after(topic, 'subscribe', function (handle) { + subscriptionHandles.push(handle); + return handle; + }); + }, + + teardown: function () { + aspectHandle.remove(); + }, + + afterEach: function () { + while (subscriptionHandles.length > 0) { + subscriptionHandles.pop().remove(); + } + }, + + '.subscribe and .publish': function () { + var listenerCallCount = 0, + expectedArgument; + + topic.subscribe('/test/foo', function (event) { + assert.strictEqual(event, expectedArgument); + listenerCallCount++; + }); + + expectedArgument = 'bar'; + topic.publish('/test/foo', expectedArgument); + assert.strictEqual(listenerCallCount, 1); + + expectedArgument = 'baz'; + topic.publish('/test/foo', expectedArgument); + assert.strictEqual(listenerCallCount, 2); + }, + + 'unsubscribing': function () { + var listenerCalled = false; + + var handle = topic.subscribe('/test/foo', function () { + listenerCalled = true; + }); + handle.remove(); + + topic.publish('/test/foo', 'bar'); + assert.isFalse(listenerCalled); + }, + + 'publish argument arity': function () { + var publishArguments = [ '/test/topic' ], + actualArguments; + + topic.subscribe('/test/topic', function () { + actualArguments = Array.prototype.slice.call(arguments); + }); + + for (var i = 0; i <= 5; ++i) { + if (i > 0) { + publishArguments.push({ value: 'value-' + i }); + } + + topic.publish.apply(topic, publishArguments); + assert.equal(actualArguments.length, i); + assert.deepEqual(actualArguments, publishArguments.slice(1)); + } + } + }); +}); diff --git a/tests/unit/when.js b/tests/unit/when.js new file mode 100644 index 0000000000..eae74dd9a7 --- /dev/null +++ b/tests/unit/when.js @@ -0,0 +1,116 @@ +define([ + 'intern!object', + 'intern/chai!assert', + '../../Deferred', + '../../promise/Promise', + '../../when' +], function (registerSuite, assert, Deferred, Promise, when) { + var emptyObject = {}; + var dfd; + + registerSuite({ + name: 'dojo/when', + + 'return the same promise without callbacks': function () { + var promise1 = when(emptyObject); + + assert.instanceOf(promise1, Promise); + + dfd = new Deferred(); + var promise2 = when(dfd.promise); + + assert.instanceOf(promise2, Promise); + assert.strictEqual(dfd.promise, promise2); + }, + + 'do not convert to promise if errback is passed but no callback': function () { + var result = when(emptyObject, null, function () {}); + + assert.strictEqual(result, emptyObject); + }, + + 'with a result value': function () { + var received; + + when(emptyObject, function (result) { + received = result; + }); + assert.strictEqual(received, emptyObject); + }, + + 'with a result value, return result of callback': function () { + var obj1 = {}; + var obj2 = {}; + var received; + var returned = when(obj1, function (result) { + received = result; + return obj2; + }); + + assert.strictEqual(received, obj1); + assert.strictEqual(returned, obj2); + }, + + 'with a promise that gets resolved': function () { + var received; + + dfd = new Deferred(); + when(dfd.promise, function (result) { + received = result; + }); + dfd.resolve(emptyObject); + assert.strictEqual(received, emptyObject); + }, + + 'with a promise that gets rejected': function () { + var received; + + dfd = new Deferred(); + when(dfd.promise, null, function (result) { + received = result; + }); + dfd.reject(emptyObject); + assert.strictEqual(received, emptyObject); + }, + + 'with a promise that gets progress': function () { + var received; + + dfd = new Deferred(); + when(dfd.promise, null, null, function (result) { + received = result; + }); + dfd.progress(emptyObject); + assert.strictEqual(received, emptyObject); + }, + + 'with chaining of the result': function () { + var received; + + function square(n){ return n * n; } + + when(2).then(square).then(square).then(function (n) { + received = n; + }); + assert.strictEqual(received, 16); + }, + + 'convert foreign promise': function () { + var _callback; + var foreign = { + then: function (cb) { + _callback = cb; + } + }; + var promise = when(foreign); + var received; + + promise.then(function (result) { + received = result; + }); + _callback(emptyObject); + assert.instanceOf(promise, Promise); + assert.strictEqual(received, emptyObject); + } + }); +}); diff --git a/tests/when.js b/tests/when.js deleted file mode 100644 index a90c55a644..0000000000 --- a/tests/when.js +++ /dev/null @@ -1,101 +0,0 @@ -define([ - "doh/main", - "dojo/Deferred", - "dojo/promise/Promise", - "dojo/when" -], function(doh, Deferred, Promise, when){ - var tests = { - "when() returns the same promise without callbacks": function(t){ - var obj = {}; - var promise1 = when(obj); - t.t(promise1 instanceof Promise); - var promise2 = when(this.deferred.promise); - t.t(promise2 instanceof Promise); - t.t(this.deferred.promise === promise2); - }, - - "when() doesn't convert to promise if errback is passed but no callback": function(t){ - var obj = {}; - var result = when(obj, null, function(){}); - t.t(result === obj); - }, - - "when() with a result value": function(t){ - var obj = {}; - var received; - when(obj, function(result){ received = result; }); - t.t(received === obj); - }, - - "when() with a result value, returns result of callback": function(t){ - var obj1 = {}, obj2 = {}; - var received; - var returned = when(obj1, function(result){ - received = result; - return obj2; - }); - t.t(received === obj1); - t.t(returned === obj2); - }, - - "when() with a promise that gets resolved": function(t){ - var obj = {}; - var received; - when(this.deferred.promise, function(result){ received = result; }); - this.deferred.resolve(obj); - t.t(received === obj); - }, - - "when() with a promise that gets rejected": function(t){ - var obj = {}; - var received; - when(this.deferred.promise, null, function(result){ received = result; }); - this.deferred.reject(obj); - t.t(received === obj); - }, - - "when() with a promise that gets progress": function(t){ - var obj = {}; - var received; - when(this.deferred.promise, null, null, function(result){ received = result; }); - this.deferred.progress(obj); - t.t(received === obj); - }, - - "when() with chaining of the result": function(t){ - function square(n){ return n * n; } - - var received; - when(2).then(square).then(square).then(function(n){ received = n; }); - t.is(received, 16); - }, - - "when() converts foreign promises": function(t){ - var _callback; - var foreign = { then: function(cb){ _callback = cb; } }; - var promise = when(foreign); - - var obj = {}; - var received; - promise.then(function(result){ received = result; }); - _callback(obj); - t.t(promise instanceof Promise); - t.t(received === obj); - } - }; - - var wrapped = []; - for(var name in tests){ - wrapped.push({ - name: name, - setUp: setUp, - runTest: tests[name] - }); - } - - function setUp(){ - this.deferred = new Deferred; - } - - doh.register("tests.when", wrapped); -}); diff --git a/tests/window.js b/tests/window.js deleted file mode 100644 index 1cc070203b..0000000000 --- a/tests/window.js +++ /dev/null @@ -1,6 +0,0 @@ -define(["dojo/sniff", "doh/main", "require"], function(has, doh, require){ - doh.register("tests.window.viewport", require.toUrl("./window/viewport.html")); - // IE9+ cannot handle quirks mode in test runner, see #14321 - has("ie") >= 9 || doh.register("tests.window.viewportQuirks", require.toUrl("./window/viewportQuirks.html")); - doh.register("tests.window.test_scroll", require.toUrl("./window/test_scroll.html"), 99999999); -}); \ No newline at end of file diff --git a/tests/window/test_scroll.html b/tests/window/test_scroll.html deleted file mode 100644 index 0ffcf6b37c..0000000000 --- a/tests/window/test_scroll.html +++ /dev/null @@ -1,737 +0,0 @@ - - - - dojo.window.scrollIntoView Test - - - - - - - -

    Automated scrollIntoView tests with 3 different DOCTYPEs as well as right-to-left

    - - - - -
     
     
    - -
    - -
    - INPUT { float:left; } - HTML, BODY { overflow: hidden; } - -

  • -
    -
    -
    - -
    - HTML { overflow-x:hidden !important; /*IE6*/ } -
    -
    - -
    -
    -
    -
    - -
    - HTML { overflow-x:hidden !important; /*IE6*/ } -
    - -
    -
    -
    - -
    -
    -
    - -
    -
    -
    - -
    - HTML { overflow:hidden !important; /*IE6*/ } - INPUT { height:20px; width:20px; } -
    - -
    -
    -
    -
    -
    -
    - -
    - INPUT { height:28px; width:28px; } -

    -
    -
    -
    -
    - -
    - BODY { overflow:hidden !important; /*IE9*/ } -
    -
    -
    -
    - -
    - - HTML { overflow:hidden !important; /*IE6*/ } - BODY { overflow:hidden !important; /*IE9*/ } - - -
    -
    -
    - -
    - HTML { overflow-x:hidden !important; /*IE6*/ } - - -
    -
    -
    -
    - -
    - - HTML { overflow:hidden !important; /*IE6*/ } - BODY { padding:10px; } - TABLE { OPR_float:left; } - -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    - - HTML { IEZ_overflow:scroll !important; /*IE6*/ } - BODY { OPT_overflow:scroll !important; } - - -
    -
    -
    -
    -
    - -
    - HTML, BODY { padding:50px 9px; } - HTML { overflow-x:hidden !important; /*IE6*/ } -
    - -
    -
    -
    -
    - - diff --git a/tests/window/test_scrollNoDTD.html b/tests/window/test_scrollNoDTD.html deleted file mode 100644 index 4167f6e601..0000000000 --- a/tests/window/test_scrollNoDTD.html +++ /dev/null @@ -1,72 +0,0 @@ - - - dojo.window.scrollIntoView Test with No DTD - - - - - - - -

    Manually scroll and click elements that have a border
    and they should scroll into view

    - - -
    - -
     
     
    -
    -

     

    -

     

    -

     

    -

     

    -
    -
     
    -
    - -
    - -
     
    -
    -
    - -
     
    - - diff --git a/tests/window/test_scrollStrictDTD.html b/tests/window/test_scrollStrictDTD.html deleted file mode 100644 index e79bf78c51..0000000000 --- a/tests/window/test_scrollStrictDTD.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - dojo.window.scrollIntoView Test with Strict DTD - - - - - - - -

    Manually scroll and click elements that have a border
    and they should scroll into view

    - - -
    - -
     
     
    -
    -

     

    -

     

    -

     

    -

     

    -
    -
     
    -
    - -
    - -
     
    -
    -
    - -
     
    - - diff --git a/tests/window/viewport.html b/tests/window/viewport.html deleted file mode 100644 index 2bb6e83134..0000000000 --- a/tests/window/viewport.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - dojo.window.getBox() test - - - - - - -
    -

    dojo.window.getBox() test

    -
    padding div
    - - -
      -
    1. check results div below to see that before adding text, document is smaller than viewport -
    2. after adding text, document should be bigger than viewport,and check that viewport size hasn't changed, - except maybe being a little bit smaller (about 15px) because of the size of the scrollbars -
    3. resize browser window and click the "recompute size" button; reported viewport size should change -
    4. scroll the window and click "recompute size" to see that the scroll position is taken into effect -
    -
    -
    - - diff --git a/tests/window/viewportQuirks.html b/tests/window/viewportQuirks.html deleted file mode 100644 index 5fd3d8c41d..0000000000 --- a/tests/window/viewportQuirks.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/tests/DeferredList.js b/testsDOH/DeferredList.js similarity index 98% rename from tests/DeferredList.js rename to testsDOH/DeferredList.js index 4458aa7990..628c6c60ec 100644 --- a/tests/DeferredList.js +++ b/testsDOH/DeferredList.js @@ -1,5 +1,5 @@ define(["../main", "doh/main", "../DeferredList"], function(dojo, doh){ - doh.register("tests.DeferredList", [ + doh.register("testsDOH.DeferredList", [ function callback(t){ var d1 = new dojo.Deferred(); var d2 = new dojo.Deferred(); @@ -96,7 +96,7 @@ define(["../main", "doh/main", "../DeferredList"], function(dojo, doh){ } ]); - doh.register("tests.DeferredList", [ + doh.register("testsDOH.DeferredList", [ function callback(t){ var d1 = new dojo.Deferred(); var d2 = new dojo.Deferred(); diff --git a/tests/NodeList-data.html b/testsDOH/NodeList-data.html similarity index 100% rename from tests/NodeList-data.html rename to testsDOH/NodeList-data.html diff --git a/testsDOH/NodeList-data.js b/testsDOH/NodeList-data.js new file mode 100644 index 0000000000..865371677d --- /dev/null +++ b/testsDOH/NodeList-data.js @@ -0,0 +1,5 @@ +define(["doh/main", "require"], function(doh, require){ + if(doh.isBrowser){ + doh.register("testsDOH.NodeList-data", require.toUrl("./NodeList-data.html"), 30000); + } +}); diff --git a/tests/NodeList-manipulate.html b/testsDOH/NodeList-manipulate.html similarity index 100% rename from tests/NodeList-manipulate.html rename to testsDOH/NodeList-manipulate.html diff --git a/testsDOH/NodeList-manipulate.js b/testsDOH/NodeList-manipulate.js new file mode 100644 index 0000000000..16b1e558d3 --- /dev/null +++ b/testsDOH/NodeList-manipulate.js @@ -0,0 +1,5 @@ +define(["doh/main", "require"], function(doh, require){ + if(doh.isBrowser){ + doh.register("testsDOH.NodeList-manipulate", require.toUrl("./NodeList-manipulate.html"), 30000); + } +}); diff --git a/tests/NodeList-traverse.html b/testsDOH/NodeList-traverse.html similarity index 100% rename from tests/NodeList-traverse.html rename to testsDOH/NodeList-traverse.html diff --git a/testsDOH/NodeList-traverse.js b/testsDOH/NodeList-traverse.js new file mode 100644 index 0000000000..3dc55ad499 --- /dev/null +++ b/testsDOH/NodeList-traverse.js @@ -0,0 +1,5 @@ +define(["doh/main", "require"], function(doh, require){ + if(doh.isBrowser){ + doh.register("testsDOH.NodeList-traverse", require.toUrl("./NodeList-traverse.html"), 30000); + } +}); diff --git a/tests/TODO b/testsDOH/TODO similarity index 100% rename from tests/TODO rename to testsDOH/TODO diff --git a/testsDOH/_base.js b/testsDOH/_base.js new file mode 100644 index 0000000000..36fc7a484a --- /dev/null +++ b/testsDOH/_base.js @@ -0,0 +1,13 @@ +define([ + "dojo/testsDOH/_base/loader", + "dojo/testsDOH/_base/object", + "dojo/has!host-browser?dojo/testsDOH/_base/html", + "dojo/has!host-browser?dojo/testsDOH/dom-style", + "dojo/has!host-browser?dojo/testsDOH/_base/query" ], 1); + + // TODO: platform boot tests + //dojo.platformRequire({ + // browser: ["testsDOH._base._loader.hostenv_browser"], + // rhino: ["testsDOH._base._loader.hostenv_rhino"], + // spidermonkey: ["testsDOH._base._loader.hostenv_spidermonkey"] + //}); diff --git a/tests/_base/NodeList.html b/testsDOH/_base/NodeList.html similarity index 98% rename from tests/_base/NodeList.html rename to testsDOH/_base/NodeList.html index a084e31f78..e3058d7d49 100644 --- a/tests/_base/NodeList.html +++ b/testsDOH/_base/NodeList.html @@ -481,7 +481,7 @@ }); //Try a dojo.declared thing. - dojo.declare("dojo.tests.Mini", null, { + dojo.declare("dojo.testsDOH.Mini", null, { constructor: function(args, node){ dojo.mixin(this, args); node.innerHTML = this.name; @@ -491,7 +491,7 @@ }); templs.addContent({ - template: '', + template: '', parse: true }); @@ -649,7 +649,7 @@ dojo.place('

    Hi

    Hi

    ', dojo.body()); var test = 0; - dojo.declare("tests._base.NodeList.some.Thing", null, { + dojo.declare("testsDOH._base.NodeList.some.Thing", null, { foo:"baz", constructor: function(props, node){ dojo.mixin(this, props); @@ -657,11 +657,11 @@ } }); - query("#thinger").instantiate(tests._base.NodeList.some.Thing, { + query("#thinger").instantiate(testsDOH._base.NodeList.some.Thing, { foo:"bar" }); - query("#thinger2").instantiate("tests._base.NodeList.some.Thing", { + query("#thinger2").instantiate("testsDOH._base.NodeList.some.Thing", { foo:"bar" }); diff --git a/tests/_base/abs.html b/testsDOH/_base/abs.html similarity index 100% rename from tests/_base/abs.html rename to testsDOH/_base/abs.html diff --git a/tests/_base/absQuirk.html b/testsDOH/_base/absQuirk.html similarity index 100% rename from tests/_base/absQuirk.html rename to testsDOH/_base/absQuirk.html diff --git a/tests/_base/absQuirksIframe.html b/testsDOH/_base/absQuirksIframe.html similarity index 100% rename from tests/_base/absQuirksIframe.html rename to testsDOH/_base/absQuirksIframe.html diff --git a/tests/_base/absStrictIframe.html b/testsDOH/_base/absStrictIframe.html similarity index 100% rename from tests/_base/absStrictIframe.html rename to testsDOH/_base/absStrictIframe.html diff --git a/tests/_base/eventKeyPress.html b/testsDOH/_base/eventKeyPress.html similarity index 100% rename from tests/_base/eventKeyPress.html rename to testsDOH/_base/eventKeyPress.html diff --git a/tests/_base/eventKeyPressRobot.html b/testsDOH/_base/eventKeyPressRobot.html similarity index 100% rename from tests/_base/eventKeyPressRobot.html rename to testsDOH/_base/eventKeyPressRobot.html diff --git a/tests/_base/eventMouse.html b/testsDOH/_base/eventMouse.html similarity index 100% rename from tests/_base/eventMouse.html rename to testsDOH/_base/eventMouse.html diff --git a/tests/_base/eventMouseRobot.html b/testsDOH/_base/eventMouseRobot.html similarity index 100% rename from tests/_base/eventMouseRobot.html rename to testsDOH/_base/eventMouseRobot.html diff --git a/tests/_base/html.html b/testsDOH/_base/html.html similarity index 100% rename from tests/_base/html.html rename to testsDOH/_base/html.html diff --git a/testsDOH/_base/html.js b/testsDOH/_base/html.js new file mode 100644 index 0000000000..d9e20fd1ac --- /dev/null +++ b/testsDOH/_base/html.js @@ -0,0 +1,14 @@ +define(["dojo/sniff", "doh/main", "require"], function(has, doh, require){ + if(doh.isBrowser){ + doh.register("testsDOH._base.html", require.toUrl("./html.html"), 15000); + doh.register("testsDOH._base.html_id", require.toUrl("./html_id.html"), 15000); + doh.register("testsDOH._base.html_element", require.toUrl("./html_element.html"), 15000); + doh.register("testsDOH._base.html_rtl", require.toUrl("./html_rtl.html"), 15000); + // IE9+ cannot handle loading quirks mode documents inside the test runner, see #14321 + has("ie") >= 9 || doh.register("testsDOH._base.html_quirks", require.toUrl("./html_quirks.html"), 15000); + doh.register("testsDOH._base.html_box", require.toUrl("./html_box.html"), 35000); + has("ie") >= 9 || doh.register("testsDOH._base.html_box_quirks", require.toUrl("./html_box_quirks.html"), 35000); + doh.register("testsDOH._base.html_isBodyLtr", require.toUrl("./html_isBodyLtr.html"), 35000); + doh.register("testsDOH._base.html_docScroll", require.toUrl("./html_docScroll.html"), 35000); + } +}); diff --git a/tests/_base/html_box.html b/testsDOH/_base/html_box.html similarity index 100% rename from tests/_base/html_box.html rename to testsDOH/_base/html_box.html diff --git a/tests/_base/html_box_quirks.html b/testsDOH/_base/html_box_quirks.html similarity index 100% rename from tests/_base/html_box_quirks.html rename to testsDOH/_base/html_box_quirks.html diff --git a/tests/_base/html_docScroll.html b/testsDOH/_base/html_docScroll.html similarity index 100% rename from tests/_base/html_docScroll.html rename to testsDOH/_base/html_docScroll.html diff --git a/tests/_base/html_element.html b/testsDOH/_base/html_element.html similarity index 100% rename from tests/_base/html_element.html rename to testsDOH/_base/html_element.html diff --git a/tests/_base/html_id.html b/testsDOH/_base/html_id.html similarity index 100% rename from tests/_base/html_id.html rename to testsDOH/_base/html_id.html diff --git a/tests/_base/html_isBodyLtr.html b/testsDOH/_base/html_isBodyLtr.html similarity index 100% rename from tests/_base/html_isBodyLtr.html rename to testsDOH/_base/html_isBodyLtr.html diff --git a/tests/_base/html_quirks.html b/testsDOH/_base/html_quirks.html similarity index 100% rename from tests/_base/html_quirks.html rename to testsDOH/_base/html_quirks.html diff --git a/tests/_base/html_rtl.html b/testsDOH/_base/html_rtl.html similarity index 100% rename from tests/_base/html_rtl.html rename to testsDOH/_base/html_rtl.html diff --git a/tests/_base/i18nExhaustive.js b/testsDOH/_base/i18nExhaustive.js similarity index 98% rename from tests/_base/i18nExhaustive.js rename to testsDOH/_base/i18nExhaustive.js index 2119eae966..0da303c5db 100644 --- a/tests/_base/i18nExhaustive.js +++ b/testsDOH/_base/i18nExhaustive.js @@ -120,6 +120,6 @@ define([ "async,ab-cd-ef,cdn,http://192.168.1.114/dev/dtk/built-i18n-test/cdn/dojo,built,./built-i18n-test/built-with-layers-and-preloads/i18nTest,amd"]; for(var i = 0; i + + + +
    + + diff --git a/testsDOH/_base/loader/cdnTest.js b/testsDOH/_base/loader/cdnTest.js new file mode 100644 index 0000000000..6ad0b4234b --- /dev/null +++ b/testsDOH/_base/loader/cdnTest.js @@ -0,0 +1,39 @@ +dojo.loadInit(function(){ + // this function is evaluated first and only once + dojoCdnTestLog.push("loadInit in cdnTest"); + // define a global variable + dojoCdnTest= 1; +}); + +dojoCdnTestLog.push("in-dojo.testsDOH._base.loader.cdnTest"); +dojo.provide("dojo.testsDOH._base.loader.cdnTest"); +dojo.provide("dojo.testsDOH._base.loader.cdnTest2"); +dojo.testsDOH._base.loader.cdnTest.status= "OK"; +dojo.testsDOH._base.loader.cdnTest2.status= "OK"; +dojo.require("dojo.testsDOH._base.loader.syncModule"); +dojo.require("dojo.testsDOH._base.loader.amdModule"); +dojo.requireLocalization("dojo.testsDOH._base.loader", "syncBundle", "ab-cd-ef"); +dojo.requireLocalization("dojo.testsDOH._base.loader", "amdBundle", "ab-cd-ef"); + +(function(){ +var t1= dojo.i18n.getLocalization("dojo.testsDOH._base.loader", "syncBundle"); +var t2= dojo.i18n.getLocalization("dojo.testsDOH._base.loader", "syncBundle", "ab-cd-ef"); +var t3= dojo.i18n.getLocalization("dojo.testsDOH._base.loader", "amdBundle"); +var t4= dojo.i18n.getLocalization("dojo.testsDOH._base.loader", "amdBundle", "ab-cd-ef"); + +require(["doh"], function(doh){ + doh.register("test-i18n-inline", function(t){ + t.is(t1.syncBundle, "syncBundle"); + t.is(t2.syncBundle, "syncBundle-ab-cd-ef"); + t.is(t3.amdBundle, "amdBundle"); + t.is(t4.amdBundle, "amdBundle-ab-cd-ef"); + }); +}); +})(); + + +dojo.requireIf(dojoCdnTest==1, "dojo.testsDOH._base.loader.syncModule1"); +dojo.requireAfterIf(dojoCdnTest==1, "dojo.testsDOH._base.loader.amdModule1"); +dojo.requireIf(dojoCdnTest==2, "dojo.testsDOH._base.loader.syncModule2"); +dojo.requireAfterIf(dojoCdnTest==2, "dojo.testsDOH._base.loader.amdModule2"); +dojoCdnTestLog.push("out-dojo.testsDOH._base.loader.cdnTest"); diff --git a/tests/_base/loader/coolio/calendar-amd.js b/testsDOH/_base/loader/coolio/calendar-amd.js similarity index 100% rename from tests/_base/loader/coolio/calendar-amd.js rename to testsDOH/_base/loader/coolio/calendar-amd.js diff --git a/tests/_base/loader/coolio/calendar.js b/testsDOH/_base/loader/coolio/calendar.js similarity index 100% rename from tests/_base/loader/coolio/calendar.js rename to testsDOH/_base/loader/coolio/calendar.js diff --git a/tests/_base/loader/coolio/calendar1.js b/testsDOH/_base/loader/coolio/calendar1.js similarity index 100% rename from tests/_base/loader/coolio/calendar1.js rename to testsDOH/_base/loader/coolio/calendar1.js diff --git a/tests/_base/loader/coolio/coolio-built.html b/testsDOH/_base/loader/coolio/coolio-built.html similarity index 100% rename from tests/_base/loader/coolio/coolio-built.html rename to testsDOH/_base/loader/coolio/coolio-built.html diff --git a/tests/_base/loader/coolio/coolio-dev-async-with-packageMap.html b/testsDOH/_base/loader/coolio/coolio-dev-async-with-packageMap.html similarity index 100% rename from tests/_base/loader/coolio/coolio-dev-async-with-packageMap.html rename to testsDOH/_base/loader/coolio/coolio-dev-async-with-packageMap.html diff --git a/tests/_base/loader/coolio/coolio-dev-async.html b/testsDOH/_base/loader/coolio/coolio-dev-async.html similarity index 100% rename from tests/_base/loader/coolio/coolio-dev-async.html rename to testsDOH/_base/loader/coolio/coolio-dev-async.html diff --git a/tests/_base/loader/coolio/coolio-dev-legacy-async-with-packageMap.html b/testsDOH/_base/loader/coolio/coolio-dev-legacy-async-with-packageMap.html similarity index 100% rename from tests/_base/loader/coolio/coolio-dev-legacy-async-with-packageMap.html rename to testsDOH/_base/loader/coolio/coolio-dev-legacy-async-with-packageMap.html diff --git a/tests/_base/loader/coolio/coolio-dev-legacy-async.html b/testsDOH/_base/loader/coolio/coolio-dev-legacy-async.html similarity index 100% rename from tests/_base/loader/coolio/coolio-dev-legacy-async.html rename to testsDOH/_base/loader/coolio/coolio-dev-legacy-async.html diff --git a/tests/_base/loader/coolio/coolio-dev-legacy.html b/testsDOH/_base/loader/coolio/coolio-dev-legacy.html similarity index 100% rename from tests/_base/loader/coolio/coolio-dev-legacy.html rename to testsDOH/_base/loader/coolio/coolio-dev-legacy.html diff --git a/tests/_base/loader/coolio/coolio.profile.js b/testsDOH/_base/loader/coolio/coolio.profile.js similarity index 90% rename from tests/_base/loader/coolio/coolio.profile.js rename to testsDOH/_base/loader/coolio/coolio.profile.js index 3397d0b8f0..02685154c3 100644 --- a/tests/_base/loader/coolio/coolio.profile.js +++ b/testsDOH/_base/loader/coolio/coolio.profile.js @@ -4,7 +4,7 @@ var profile = (function(){ basePath:"../../../../..", // relative to base path - releaseDir:"dojo/tests/_base/loader", + releaseDir:"dojo/testsDOH/_base/loader", optimize:0, layerOptimize:0, @@ -33,7 +33,7 @@ var profile = (function(){ location:"./dojox" },{ name:"coolio", - location:"./dojo/tests/_base/loader/coolio", + location:"./dojo/testsDOH/_base/loader/coolio", resourceTags:{ amd: function(filename, mid){ return /calendar-amd\.js$/.test(filename); diff --git a/tests/_base/loader/coolio/test.html b/testsDOH/_base/loader/coolio/test.html similarity index 97% rename from tests/_base/loader/coolio/test.html rename to testsDOH/_base/loader/coolio/test.html index a5dd482531..517a1960dd 100644 --- a/tests/_base/loader/coolio/test.html +++ b/testsDOH/_base/loader/coolio/test.html @@ -44,7 +44,7 @@

    Build Time

    legacy modules to AMD modules; it does not need to know the actual relocated names). You can build the coolio demostration by executing the following command from the util/buildscripts directory

    -./build.sh -p ../../dojo/tests/_base/loader/coolio/coolio.profile.js -r
    +./build.sh -p ../../dojo/testsDOH/_base/loader/coolio/coolio.profile.js -r
     		

    There are four demonstrations of the built code

    Remember to do a build before you try these!

    diff --git a/tests/_base/loader/debugConsole.html b/testsDOH/_base/loader/debugConsole.html similarity index 100% rename from tests/_base/loader/debugConsole.html rename to testsDOH/_base/loader/debugConsole.html diff --git a/tests/_base/loader/fastbackTest.html b/testsDOH/_base/loader/fastbackTest.html similarity index 100% rename from tests/_base/loader/fastbackTest.html rename to testsDOH/_base/loader/fastbackTest.html diff --git a/tests/_base/loader/getText.txt b/testsDOH/_base/loader/getText.txt similarity index 100% rename from tests/_base/loader/getText.txt rename to testsDOH/_base/loader/getText.txt diff --git a/tests/_base/loader/hostenv_rhino.js b/testsDOH/_base/loader/hostenv_rhino.js similarity index 54% rename from tests/_base/loader/hostenv_rhino.js rename to testsDOH/_base/loader/hostenv_rhino.js index 37377c6672..bef07854dd 100644 --- a/tests/_base/loader/hostenv_rhino.js +++ b/testsDOH/_base/loader/hostenv_rhino.js @@ -1,9 +1,9 @@ -dojo.provide("dojo.tests._base._loader.hostenv_rhino"); +dojo.provide("dojo.testsDOH._base._loader.hostenv_rhino"); -tests.register("tests._base._loader.hostenv_rhino", +tests.register("testsDOH._base._loader.hostenv_rhino", [ function getText(t){ - var filePath = dojo.moduleUrl("tests._base._loader", "getText.txt"); + var filePath = dojo.moduleUrl("testsDOH._base._loader", "getText.txt"); var text = (new String(readText(filePath))); //The Java file read seems to add a line return. text = text.replace(/[\r\n]+$/, ""); diff --git a/testsDOH/_base/loader/hostenv_spidermonkey.js b/testsDOH/_base/loader/hostenv_spidermonkey.js new file mode 100644 index 0000000000..75f1e1e447 --- /dev/null +++ b/testsDOH/_base/loader/hostenv_spidermonkey.js @@ -0,0 +1,11 @@ +dojo.provide("dojo.testsDOH._base._loader.hostenv_spidermonkey"); + +tests.register("testsDOH._base._loader.hostenv_spidermonkey", + [ + function getText(t){ + var filePath = dojo.moduleUrl("testsDOH._base._loader", "getText.txt"); + var text = readText(filePath); + t.assertEqual("dojo._getText() test data", text); + } + ] +); diff --git a/tests/_base/loader/hostenv_webworkers.js b/testsDOH/_base/loader/hostenv_webworkers.js similarity index 91% rename from tests/_base/loader/hostenv_webworkers.js rename to testsDOH/_base/loader/hostenv_webworkers.js index 104f2ccce7..ff23ecfbc3 100644 --- a/tests/_base/loader/hostenv_webworkers.js +++ b/testsDOH/_base/loader/hostenv_webworkers.js @@ -52,7 +52,7 @@ define([ } } - doh.register("tests._base.hostenv_webworkers", [{ + doh.register("testsDOH._base.hostenv_webworkers", [{ name: "Loading Dojo core inside worker", setUp: fixtures.deferred, tearDown: tearDowns.killWorker, @@ -62,7 +62,7 @@ define([ // Test whether dojo can be loaded in the worker var self = this; - this.worker = new Worker("../../dojo/tests/_base/loader/hostenv_webworkers/worker1.js"); + this.worker = new Worker("../../dojo/testsDOH/_base/loader/hostenv_webworkers/worker1.js"); this.worker.addEventListener("message", function (message){ if(message.data.type === "testResult"){ @@ -88,7 +88,7 @@ define([ // Test whether require works in the worker. var self = this; - this.worker = new Worker("../../dojo/tests/_base/loader/hostenv_webworkers/worker2.js"); + this.worker = new Worker("../../dojo/testsDOH/_base/loader/hostenv_webworkers/worker2.js"); this.worker.addEventListener("message", function (message){ if(message.data.type === "testResult"){ @@ -114,7 +114,7 @@ define([ // Test whether require works in the worker when in async mode. var self = this; - this.worker = new Worker("../../dojo/tests/_base/loader/hostenv_webworkers/worker3.js"); + this.worker = new Worker("../../dojo/testsDOH/_base/loader/hostenv_webworkers/worker3.js"); this.worker.addEventListener("message", function(message){ if(message.data.type === "testResult"){ @@ -146,7 +146,7 @@ define([ // Test issues a warning if subworks not available but passes the test. var self = this; - this.worker = new Worker("../../dojo/tests/_base/loader/hostenv_webworkers/worker4.js"); + this.worker = new Worker("../../dojo/testsDOH/_base/loader/hostenv_webworkers/worker4.js"); this.worker.addEventListener("message", function(message){ if(message.data.type === "testResult"){ @@ -205,11 +205,11 @@ define([ 'importScripts(' + 'dojoConfig.baseUrl+"dojo/dojo.js",' + - 'dojoConfig.baseUrl+"dojo/tests/_base/loader/hostenv_webworkers/console.js"' + + 'dojoConfig.baseUrl+"dojo/testsDOH/_base/loader/hostenv_webworkers/console.js"' + ');' + 'try{' + - 'require(["dojo/tests/_base/loader/hostenv_webworkers/strings"], function(strings){' + + 'require(["dojo/testsDOH/_base/loader/hostenv_webworkers/strings"], function(strings){' + 'this.postMessage({type:"testResult", "test":"require is working", "value":true});' + '});' + '}catch(e){' + @@ -269,7 +269,7 @@ define([ // components via require and then using them. var self = this; - this.worker = new Worker("../../dojo/tests/_base/loader/hostenv_webworkers/worker5.js?v=4"); + this.worker = new Worker("../../dojo/testsDOH/_base/loader/hostenv_webworkers/worker5.js?v=4"); this.worker.addEventListener("message", function(message){ if(message.data.type === "testResult"){ @@ -300,7 +300,7 @@ define([ // pass for the test if it receives it correctly. var self = this; - this.worker = new Worker("../../dojo/tests/_base/loader/hostenv_webworkers/worker6.js"); + this.worker = new Worker("../../dojo/testsDOH/_base/loader/hostenv_webworkers/worker6.js"); this.worker.addEventListener("message", function (message){ if(message.data.type === "testResult"){ diff --git a/tests/_base/loader/hostenv_webworkers/console.js b/testsDOH/_base/loader/hostenv_webworkers/console.js similarity index 100% rename from tests/_base/loader/hostenv_webworkers/console.js rename to testsDOH/_base/loader/hostenv_webworkers/console.js diff --git a/tests/_base/loader/hostenv_webworkers/strings.js b/testsDOH/_base/loader/hostenv_webworkers/strings.js similarity index 100% rename from tests/_base/loader/hostenv_webworkers/strings.js rename to testsDOH/_base/loader/hostenv_webworkers/strings.js diff --git a/tests/_base/loader/hostenv_webworkers/worker1.js b/testsDOH/_base/loader/hostenv_webworkers/worker1.js similarity index 100% rename from tests/_base/loader/hostenv_webworkers/worker1.js rename to testsDOH/_base/loader/hostenv_webworkers/worker1.js diff --git a/tests/_base/loader/hostenv_webworkers/worker2.js b/testsDOH/_base/loader/hostenv_webworkers/worker2.js similarity index 83% rename from tests/_base/loader/hostenv_webworkers/worker2.js rename to testsDOH/_base/loader/hostenv_webworkers/worker2.js index fef1de82ac..8adc2952fd 100644 --- a/tests/_base/loader/hostenv_webworkers/worker2.js +++ b/testsDOH/_base/loader/hostenv_webworkers/worker2.js @@ -11,7 +11,7 @@ var dojoConfig = { importScripts("../../../../dojo.js", "console.js"); try{ - require(["dojo/tests/_base/loader/hostenv_webworkers/strings"], function(strings){ + require(["dojo/testsDOH/_base/loader/hostenv_webworkers/strings"], function(strings){ self.postMessage({ type: "testResult", test: "require is working", diff --git a/tests/_base/loader/hostenv_webworkers/worker3.js b/testsDOH/_base/loader/hostenv_webworkers/worker3.js similarity index 84% rename from tests/_base/loader/hostenv_webworkers/worker3.js rename to testsDOH/_base/loader/hostenv_webworkers/worker3.js index 1b9437516a..bf900df69a 100644 --- a/tests/_base/loader/hostenv_webworkers/worker3.js +++ b/testsDOH/_base/loader/hostenv_webworkers/worker3.js @@ -12,7 +12,7 @@ var dojoConfig = { importScripts("../../../../dojo.js", "console.js"); try{ - require(["dojo/tests/_base/loader/hostenv_webworkers/strings"], function(strings){ + require(["dojo/testsDOH/_base/loader/hostenv_webworkers/strings"], function(strings){ self.postMessage({ type: "testResult", test: "require is working", diff --git a/tests/_base/loader/hostenv_webworkers/worker4-1.js b/testsDOH/_base/loader/hostenv_webworkers/worker4-1.js similarity index 83% rename from tests/_base/loader/hostenv_webworkers/worker4-1.js rename to testsDOH/_base/loader/hostenv_webworkers/worker4-1.js index 4aeb1ca4d9..bc3b5ef7c6 100644 --- a/tests/_base/loader/hostenv_webworkers/worker4-1.js +++ b/testsDOH/_base/loader/hostenv_webworkers/worker4-1.js @@ -12,7 +12,7 @@ var dojoConfig = { importScripts("../../../../dojo.js", "console.js"); try{ - require(["dojo/tests/_base/loader/hostenv_webworkers/strings"], function(strings){ + require(["dojo/testsDOH/_base/loader/hostenv_webworkers/strings"], function(strings){ self.postMessage({ type: "testResult", test: "subworkers are working", diff --git a/tests/_base/loader/hostenv_webworkers/worker4.js b/testsDOH/_base/loader/hostenv_webworkers/worker4.js similarity index 100% rename from tests/_base/loader/hostenv_webworkers/worker4.js rename to testsDOH/_base/loader/hostenv_webworkers/worker4.js diff --git a/tests/_base/loader/hostenv_webworkers/worker5.js b/testsDOH/_base/loader/hostenv_webworkers/worker5.js similarity index 91% rename from tests/_base/loader/hostenv_webworkers/worker5.js rename to testsDOH/_base/loader/hostenv_webworkers/worker5.js index b40bfa73f9..3251e1e286 100644 --- a/tests/_base/loader/hostenv_webworkers/worker5.js +++ b/testsDOH/_base/loader/hostenv_webworkers/worker5.js @@ -13,7 +13,7 @@ importScripts("../../../../dojo.js", "console.js"); try{ require(["dojo/request"], function(request){ - request("../../../../tests/_base/loader/hostenv_webworkers/worker5.json", { + request("../../../../testsDOH/_base/loader/hostenv_webworkers/worker5.json", { handleAs: "json" }).then(function(data) { if(data.foo && !data.bar){ diff --git a/tests/_base/loader/hostenv_webworkers/worker5.json b/testsDOH/_base/loader/hostenv_webworkers/worker5.json similarity index 100% rename from tests/_base/loader/hostenv_webworkers/worker5.json rename to testsDOH/_base/loader/hostenv_webworkers/worker5.json diff --git a/tests/_base/loader/hostenv_webworkers/worker6.js b/testsDOH/_base/loader/hostenv_webworkers/worker6.js similarity index 100% rename from tests/_base/loader/hostenv_webworkers/worker6.js rename to testsDOH/_base/loader/hostenv_webworkers/worker6.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/legacyModule.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/legacyModule.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/legacyModule.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/legacyModule.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/ab-cd-ef/legacyBundle.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/ab-cd-ef/legacyBundle.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/ab-cd-ef/legacyBundle.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/ab-cd-ef/legacyBundle.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/ab/legacyBundle.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/ab/legacyBundle.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/ab/legacyBundle.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/ab/legacyBundle.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyBundle.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyBundle.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyBundle.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyBundle.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_ROOT.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_ROOT.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_ROOT.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_ROOT.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_ab-cd-ef.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_ab-cd-ef.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_ab-cd-ef.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_ab-cd-ef.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_ab-cd.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_ab-cd.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_ab-cd.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_ab-cd.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_ab.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_ab.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_ab.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_ab.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_xx.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_xx.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_xx.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers-and-preloads/nls/legacyModule_xx.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/legacyModule.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/legacyModule.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/legacyModule.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/legacyModule.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/ab-cd-ef/legacyBundle.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/ab-cd-ef/legacyBundle.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/ab-cd-ef/legacyBundle.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/ab-cd-ef/legacyBundle.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/ab/legacyBundle.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/ab/legacyBundle.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/ab/legacyBundle.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/ab/legacyBundle.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/legacyBundle.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/legacyBundle.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/legacyBundle.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/legacyBundle.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/legacyModule_ROOT.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/legacyModule_ROOT.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/legacyModule_ROOT.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/legacyModule_ROOT.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/legacyModule_en-us.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/legacyModule_en-us.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/legacyModule_en-us.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/legacyModule_en-us.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/legacyModule_en.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/legacyModule_en.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/legacyModule_en.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build-with-layers/nls/legacyModule_en.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build/legacyModule.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build/legacyModule.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build/legacyModule.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build/legacyModule.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build/nls/ab-cd-ef/legacyBundle.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build/nls/ab-cd-ef/legacyBundle.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build/nls/ab-cd-ef/legacyBundle.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build/nls/ab-cd-ef/legacyBundle.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build/nls/ab/legacyBundle.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build/nls/ab/legacyBundle.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build/nls/ab/legacyBundle.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build/nls/ab/legacyBundle.js diff --git a/tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build/nls/legacyBundle.js b/testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build/nls/legacyBundle.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/built-i18n-test/152-build/nls/legacyBundle.js rename to testsDOH/_base/loader/i18n-exhaustive/built-i18n-test/152-build/nls/legacyBundle.js diff --git a/tests/_base/loader/i18n-exhaustive/i18n-test/amdModule.js b/testsDOH/_base/loader/i18n-exhaustive/i18n-test/amdModule.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/i18n-test/amdModule.js rename to testsDOH/_base/loader/i18n-exhaustive/i18n-test/amdModule.js diff --git a/tests/_base/loader/i18n-exhaustive/i18n-test/build-test-targets.sh b/testsDOH/_base/loader/i18n-exhaustive/i18n-test/build-test-targets.sh similarity index 100% rename from tests/_base/loader/i18n-exhaustive/i18n-test/build-test-targets.sh rename to testsDOH/_base/loader/i18n-exhaustive/i18n-test/build-test-targets.sh diff --git a/tests/_base/loader/i18n-exhaustive/i18n-test/i18n-test-with-layers-and-preloads.profile.js b/testsDOH/_base/loader/i18n-exhaustive/i18n-test/i18n-test-with-layers-and-preloads.profile.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/i18n-test/i18n-test-with-layers-and-preloads.profile.js rename to testsDOH/_base/loader/i18n-exhaustive/i18n-test/i18n-test-with-layers-and-preloads.profile.js diff --git a/tests/_base/loader/i18n-exhaustive/i18n-test/i18n-test-with-layers.profile.js b/testsDOH/_base/loader/i18n-exhaustive/i18n-test/i18n-test-with-layers.profile.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/i18n-test/i18n-test-with-layers.profile.js rename to testsDOH/_base/loader/i18n-exhaustive/i18n-test/i18n-test-with-layers.profile.js diff --git a/tests/_base/loader/i18n-exhaustive/i18n-test/i18n-test.profile.js b/testsDOH/_base/loader/i18n-exhaustive/i18n-test/i18n-test.profile.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/i18n-test/i18n-test.profile.js rename to testsDOH/_base/loader/i18n-exhaustive/i18n-test/i18n-test.profile.js diff --git a/tests/_base/loader/i18n-exhaustive/i18n-test/legacyModule.js b/testsDOH/_base/loader/i18n-exhaustive/i18n-test/legacyModule.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/i18n-test/legacyModule.js rename to testsDOH/_base/loader/i18n-exhaustive/i18n-test/legacyModule.js diff --git a/tests/_base/loader/i18n-exhaustive/i18n-test/nls/ab-cd-ef/amdBundle.js b/testsDOH/_base/loader/i18n-exhaustive/i18n-test/nls/ab-cd-ef/amdBundle.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/i18n-test/nls/ab-cd-ef/amdBundle.js rename to testsDOH/_base/loader/i18n-exhaustive/i18n-test/nls/ab-cd-ef/amdBundle.js diff --git a/tests/_base/loader/i18n-exhaustive/i18n-test/nls/ab-cd-ef/legacyBundle.js b/testsDOH/_base/loader/i18n-exhaustive/i18n-test/nls/ab-cd-ef/legacyBundle.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/i18n-test/nls/ab-cd-ef/legacyBundle.js rename to testsDOH/_base/loader/i18n-exhaustive/i18n-test/nls/ab-cd-ef/legacyBundle.js diff --git a/tests/_base/loader/i18n-exhaustive/i18n-test/nls/ab/amdBundle.js b/testsDOH/_base/loader/i18n-exhaustive/i18n-test/nls/ab/amdBundle.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/i18n-test/nls/ab/amdBundle.js rename to testsDOH/_base/loader/i18n-exhaustive/i18n-test/nls/ab/amdBundle.js diff --git a/tests/_base/loader/i18n-exhaustive/i18n-test/nls/ab/legacyBundle.js b/testsDOH/_base/loader/i18n-exhaustive/i18n-test/nls/ab/legacyBundle.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/i18n-test/nls/ab/legacyBundle.js rename to testsDOH/_base/loader/i18n-exhaustive/i18n-test/nls/ab/legacyBundle.js diff --git a/tests/_base/loader/i18n-exhaustive/i18n-test/nls/amdBundle.js b/testsDOH/_base/loader/i18n-exhaustive/i18n-test/nls/amdBundle.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/i18n-test/nls/amdBundle.js rename to testsDOH/_base/loader/i18n-exhaustive/i18n-test/nls/amdBundle.js diff --git a/tests/_base/loader/i18n-exhaustive/i18n-test/nls/legacyBundle.js b/testsDOH/_base/loader/i18n-exhaustive/i18n-test/nls/legacyBundle.js similarity index 100% rename from tests/_base/loader/i18n-exhaustive/i18n-test/nls/legacyBundle.js rename to testsDOH/_base/loader/i18n-exhaustive/i18n-test/nls/legacyBundle.js diff --git a/tests/_base/loader/i18n-exhaustive/i18n-test/unit.html b/testsDOH/_base/loader/i18n-exhaustive/i18n-test/unit.html similarity index 100% rename from tests/_base/loader/i18n-exhaustive/i18n-test/unit.html rename to testsDOH/_base/loader/i18n-exhaustive/i18n-test/unit.html diff --git a/tests/_base/loader/i18n-exhaustive/test-instructions.md b/testsDOH/_base/loader/i18n-exhaustive/test-instructions.md similarity index 92% rename from tests/_base/loader/i18n-exhaustive/test-instructions.md rename to testsDOH/_base/loader/i18n-exhaustive/test-instructions.md index d840181b2e..33178ca8c3 100644 --- a/tests/_base/loader/i18n-exhaustive/test-instructions.md +++ b/testsDOH/_base/loader/i18n-exhaustive/test-instructions.md @@ -49,7 +49,7 @@ Crossed with Test Design and Execution ------------------------- -The sources required for this test are in dojo/tests/_base/loader/i18n-exhaustive. Copy the two directories there to be +The sources required for this test are in dojo/testsDOH/_base/loader/i18n-exhaustive. Copy the two directories there to be siblings of the dojo tree in a dtk source distribution. The source modules as described in Input Modules are constructed in the subdirectory i18n-test. The v1.5.2 builder is @@ -61,4 +61,4 @@ i18n-test/build-test-targets.sh accomplishes this task automatically. A unit test html page is constructed at i18n-test/unit.html. Given a query string, it will load a particular loader and exercise a particular set of modules. -Finally, the DOH test dojo/tests/_base/i18nExhaustive runs all the various combinations. +Finally, the DOH test dojo/testsDOH/_base/i18nExhaustive runs all the various combinations. diff --git a/tests/_base/loader/mapping.html b/testsDOH/_base/loader/mapping.html similarity index 100% rename from tests/_base/loader/mapping.html rename to testsDOH/_base/loader/mapping.html diff --git a/tests/_base/loader/modulePaths.html b/testsDOH/_base/loader/modulePaths.html similarity index 100% rename from tests/_base/loader/modulePaths.html rename to testsDOH/_base/loader/modulePaths.html diff --git a/tests/_base/loader/modules/anon.js b/testsDOH/_base/loader/modules/anon.js similarity index 100% rename from tests/_base/loader/modules/anon.js rename to testsDOH/_base/loader/modules/anon.js diff --git a/tests/_base/loader/modules/data.js b/testsDOH/_base/loader/modules/data.js similarity index 100% rename from tests/_base/loader/modules/data.js rename to testsDOH/_base/loader/modules/data.js diff --git a/tests/_base/loader/modules/factoryArity.js b/testsDOH/_base/loader/modules/factoryArity.js similarity index 100% rename from tests/_base/loader/modules/factoryArity.js rename to testsDOH/_base/loader/modules/factoryArity.js diff --git a/tests/_base/loader/modules/factoryArityExports.js b/testsDOH/_base/loader/modules/factoryArityExports.js similarity index 100% rename from tests/_base/loader/modules/factoryArityExports.js rename to testsDOH/_base/loader/modules/factoryArityExports.js diff --git a/testsDOH/_base/loader/modules/full.js b/testsDOH/_base/loader/modules/full.js new file mode 100644 index 0000000000..2146ca8046 --- /dev/null +++ b/testsDOH/_base/loader/modules/full.js @@ -0,0 +1,5 @@ +define("dojo/testsDOH/_base/loader/modules/full", ["./anon", "../a", "./wrapped", "require"], function(anon, a, wrapped, require){ + return { + twiceTheAnswer: a.number + require("../a").number + }; +}); \ No newline at end of file diff --git a/tests/_base/loader/modules/idFactoryArity.js b/testsDOH/_base/loader/modules/idFactoryArity.js similarity index 57% rename from tests/_base/loader/modules/idFactoryArity.js rename to testsDOH/_base/loader/modules/idFactoryArity.js index 4203ea8171..f8690ce4f5 100644 --- a/tests/_base/loader/modules/idFactoryArity.js +++ b/testsDOH/_base/loader/modules/idFactoryArity.js @@ -1,4 +1,4 @@ -define("dojo/tests/_base/loader/modules/idFactoryArity", function(require, exports, module){ +define("dojo/testsDOH/_base/loader/modules/idFactoryArity", function(require, exports, module){ var impliedDep = require("./impliedDep3"); return { module:module, diff --git a/tests/_base/loader/modules/idFactoryArityExports.js b/testsDOH/_base/loader/modules/idFactoryArityExports.js similarity index 62% rename from tests/_base/loader/modules/idFactoryArityExports.js rename to testsDOH/_base/loader/modules/idFactoryArityExports.js index 12a5be8c04..ba9b70881b 100644 --- a/tests/_base/loader/modules/idFactoryArityExports.js +++ b/testsDOH/_base/loader/modules/idFactoryArityExports.js @@ -1,4 +1,4 @@ -define("dojo/tests/_base/loader/modules/idFactoryArityExports", function(require, exports, module){ +define("dojo/testsDOH/_base/loader/modules/idFactoryArityExports", function(require, exports, module){ var impliedDep = require("./impliedDep4"); require("dojo/_base/lang").mixin(exports, { module:module, diff --git a/tests/_base/loader/modules/impliedDep1.js b/testsDOH/_base/loader/modules/impliedDep1.js similarity index 100% rename from tests/_base/loader/modules/impliedDep1.js rename to testsDOH/_base/loader/modules/impliedDep1.js diff --git a/tests/_base/loader/modules/impliedDep2.js b/testsDOH/_base/loader/modules/impliedDep2.js similarity index 100% rename from tests/_base/loader/modules/impliedDep2.js rename to testsDOH/_base/loader/modules/impliedDep2.js diff --git a/tests/_base/loader/modules/impliedDep3.js b/testsDOH/_base/loader/modules/impliedDep3.js similarity index 100% rename from tests/_base/loader/modules/impliedDep3.js rename to testsDOH/_base/loader/modules/impliedDep3.js diff --git a/tests/_base/loader/modules/impliedDep4.js b/testsDOH/_base/loader/modules/impliedDep4.js similarity index 100% rename from tests/_base/loader/modules/impliedDep4.js rename to testsDOH/_base/loader/modules/impliedDep4.js diff --git a/tests/_base/loader/modules/wrapped.js b/testsDOH/_base/loader/modules/wrapped.js similarity index 100% rename from tests/_base/loader/modules/wrapped.js rename to testsDOH/_base/loader/modules/wrapped.js diff --git a/tests/_base/loader/myTopLevelModule.js b/testsDOH/_base/loader/myTopLevelModule.js similarity index 100% rename from tests/_base/loader/myTopLevelModule.js rename to testsDOH/_base/loader/myTopLevelModule.js diff --git a/tests/_base/loader/myTopLevelModule/myModule.js b/testsDOH/_base/loader/myTopLevelModule/myModule.js similarity index 100% rename from tests/_base/loader/myTopLevelModule/myModule.js rename to testsDOH/_base/loader/myTopLevelModule/myModule.js diff --git a/tests/_base/loader/nls/ab-cd-ef/amdBundle.js b/testsDOH/_base/loader/nls/ab-cd-ef/amdBundle.js similarity index 100% rename from tests/_base/loader/nls/ab-cd-ef/amdBundle.js rename to testsDOH/_base/loader/nls/ab-cd-ef/amdBundle.js diff --git a/tests/_base/loader/nls/ab-cd-ef/syncBundle.js b/testsDOH/_base/loader/nls/ab-cd-ef/syncBundle.js similarity index 100% rename from tests/_base/loader/nls/ab-cd-ef/syncBundle.js rename to testsDOH/_base/loader/nls/ab-cd-ef/syncBundle.js diff --git a/tests/_base/loader/nls/ab/amdBundle.js b/testsDOH/_base/loader/nls/ab/amdBundle.js similarity index 100% rename from tests/_base/loader/nls/ab/amdBundle.js rename to testsDOH/_base/loader/nls/ab/amdBundle.js diff --git a/tests/_base/loader/nls/ab/syncBundle.js b/testsDOH/_base/loader/nls/ab/syncBundle.js similarity index 100% rename from tests/_base/loader/nls/ab/syncBundle.js rename to testsDOH/_base/loader/nls/ab/syncBundle.js diff --git a/tests/_base/loader/nls/amdBundle.js b/testsDOH/_base/loader/nls/amdBundle.js similarity index 100% rename from tests/_base/loader/nls/amdBundle.js rename to testsDOH/_base/loader/nls/amdBundle.js diff --git a/tests/_base/loader/nls/syncBundle.js b/testsDOH/_base/loader/nls/syncBundle.js similarity index 100% rename from tests/_base/loader/nls/syncBundle.js rename to testsDOH/_base/loader/nls/syncBundle.js diff --git a/tests/_base/loader/onerror.html b/testsDOH/_base/loader/onerror.html similarity index 100% rename from tests/_base/loader/onerror.html rename to testsDOH/_base/loader/onerror.html diff --git a/tests/_base/loader/paths.html b/testsDOH/_base/loader/paths.html similarity index 95% rename from tests/_base/loader/paths.html rename to testsDOH/_base/loader/paths.html index c71ae92314..a656d9fc1e 100644 --- a/tests/_base/loader/paths.html +++ b/testsDOH/_base/loader/paths.html @@ -22,7 +22,7 @@ // the extra parenthesized subexprs make this have priority [/(yourOtherModule\/(common))\/special/, "myModule2"] ], - paths:{myTopLevelModule:"./tests/_base/loader/myTopLevelModule"} + paths:{myTopLevelModule:"./testsDOH/_base/loader/myTopLevelModule"} }); diff --git a/testsDOH/_base/loader/pub1.js b/testsDOH/_base/loader/pub1.js new file mode 100644 index 0000000000..3ed06ca66d --- /dev/null +++ b/testsDOH/_base/loader/pub1.js @@ -0,0 +1,3 @@ +define([], function(){ + return {status:"ok"}; +}); \ No newline at end of file diff --git a/testsDOH/_base/loader/pub2.js b/testsDOH/_base/loader/pub2.js new file mode 100644 index 0000000000..3ed06ca66d --- /dev/null +++ b/testsDOH/_base/loader/pub2.js @@ -0,0 +1,3 @@ +define([], function(){ + return {status:"ok"}; +}); \ No newline at end of file diff --git a/tests/_base/loader/ready.html b/testsDOH/_base/loader/ready.html similarity index 100% rename from tests/_base/loader/ready.html rename to testsDOH/_base/loader/ready.html diff --git a/testsDOH/_base/loader/require/m1.js b/testsDOH/_base/loader/require/m1.js new file mode 100644 index 0000000000..70711790f3 --- /dev/null +++ b/testsDOH/_base/loader/require/m1.js @@ -0,0 +1,13 @@ +define(["dojo", "dojo/require!dojo/hash,dojo/testsDOH/_base/loader/require/m2"], function(dojo){ + console.log("m1, a plain-old-style synch module wrapped in dojo/require!, evaluate start"); + dojo.provide("dojo.testsDOH._base.loader.require.m1"); + dojo.require("dojo.testsDOH._base.loader.require.m2"); + console.log("the value of m2 in m1 is: " + dojo.testsDOH._base.loader.require.m2); + dojo.testsDOH._base.loader.require.m1 = "this is the value of m1"; + + dojo.ready(function(){ + console.log("ready in m1 called"); + }); + console.log("m1 evaluate end"); +}); + diff --git a/testsDOH/_base/loader/require/m2.js b/testsDOH/_base/loader/require/m2.js new file mode 100644 index 0000000000..74a39153ce --- /dev/null +++ b/testsDOH/_base/loader/require/m2.js @@ -0,0 +1,5 @@ +dojo.provide("dojo.testsDOH._base.loader.require.m2"); +console.log("m2, a plain-old-style synch module, evaluated OK"); + +dojo.testsDOH._base.loader.require.m2 = "this is the value of m2"; + diff --git a/tests/_base/loader/require/test-require-plugin.html b/testsDOH/_base/loader/require/test-require-plugin.html similarity index 89% rename from tests/_base/loader/require/test-require-plugin.html rename to testsDOH/_base/loader/require/test-require-plugin.html index c4e14421f6..177d584fa7 100644 --- a/tests/_base/loader/require/test-require-plugin.html +++ b/testsDOH/_base/loader/require/test-require-plugin.html @@ -2,11 +2,11 @@ diff --git a/tests/_base/loader/scope04.html b/testsDOH/_base/loader/scope04.html similarity index 100% rename from tests/_base/loader/scope04.html rename to testsDOH/_base/loader/scope04.html diff --git a/tests/_base/loader/stripStrict.html b/testsDOH/_base/loader/stripStrict.html similarity index 100% rename from tests/_base/loader/stripStrict.html rename to testsDOH/_base/loader/stripStrict.html diff --git a/testsDOH/_base/loader/syncModule.js b/testsDOH/_base/loader/syncModule.js new file mode 100644 index 0000000000..b82a32f16c --- /dev/null +++ b/testsDOH/_base/loader/syncModule.js @@ -0,0 +1,9 @@ +if (typeof dojoCdnTestLog=="undefined"){ + dojoCdnTestLog= []; +} +dojoCdnTestLog.push("in-dojo.testsDOH._base.loader.syncModule"); +dojo.provide("dojo.testsDOH._base.loader.syncModule"); +dojo.declare("dojo.testsDOH._base.loader.syncModule", null, {}); +dojo.testsDOH._base.loader.syncModule.status= "OK"; +dojo.require("dojo.testsDOH._base.loader.syncModuleDep"); +dojoCdnTestLog.push("out-dojo.testsDOH._base.loader.syncModule"); diff --git a/testsDOH/_base/loader/syncModule1.js b/testsDOH/_base/loader/syncModule1.js new file mode 100644 index 0000000000..d72c3f0be0 --- /dev/null +++ b/testsDOH/_base/loader/syncModule1.js @@ -0,0 +1,5 @@ +dojoCdnTestLog.push("in-dojo.testsDOH._base.loader.syncModule1"); +dojo.provide("dojo.testsDOH._base.loader.syncModule1"); +dojo.testsDOH._base.loader.syncModule1.status= "OK"; +dojo.require("dojo.testsDOH._base.loader.syncModuleDep1"); +dojoCdnTestLog.push("out-dojo.testsDOH._base.loader.syncModule1"); diff --git a/testsDOH/_base/loader/syncModule2.js b/testsDOH/_base/loader/syncModule2.js new file mode 100644 index 0000000000..2631fd7774 --- /dev/null +++ b/testsDOH/_base/loader/syncModule2.js @@ -0,0 +1,5 @@ +dojoCdnTestLog.push("in-dojo.testsDOH._base.loader.syncModule2"); +dojo.provide("dojo.testsDOH._base.loader.syncModule"); +dojo.testsDOH._base.loader.syncModule.status= "OK"; +dojo.require("dojo.testsDOH._base.loader.syncModuleDep"); +dojoCdnTestLog.push("out-dojo.testsDOH._base.loader.syncModule2"); diff --git a/testsDOH/_base/loader/syncModuleDep.js b/testsDOH/_base/loader/syncModuleDep.js new file mode 100644 index 0000000000..e219f8fe7b --- /dev/null +++ b/testsDOH/_base/loader/syncModuleDep.js @@ -0,0 +1,4 @@ +dojoCdnTestLog.push("in-dojo.testsDOH._base.loader.syncModuleDep"); +dojo.provide("dojo.testsDOH._base.loader.syncModuleDep"); +dojo.testsDOH._base.loader.syncModuleDep.status= "OK"; +dojoCdnTestLog.push("out-dojo.testsDOH._base.loader.syncModuleDep"); diff --git a/testsDOH/_base/loader/syncModuleDep1.js b/testsDOH/_base/loader/syncModuleDep1.js new file mode 100644 index 0000000000..98ba4b582d --- /dev/null +++ b/testsDOH/_base/loader/syncModuleDep1.js @@ -0,0 +1,4 @@ +dojoCdnTestLog.push("in-dojo.testsDOH._base.loader.syncModuleDep1"); +dojo.provide("dojo.testsDOH._base.loader.syncModuleDep1"); +dojo.testsDOH._base.loader.syncModuleDep1.status= "OK"; +dojoCdnTestLog.push("out-dojo.testsDOH._base.loader.syncModuleDep1"); diff --git a/testsDOH/_base/loader/syncModuleDep2.js b/testsDOH/_base/loader/syncModuleDep2.js new file mode 100644 index 0000000000..8f8a2ae775 --- /dev/null +++ b/testsDOH/_base/loader/syncModuleDep2.js @@ -0,0 +1,4 @@ +dojoCdnTestLog.push("in-dojo.testsDOH._base.loader.syncModuleDep2"); +dojo.provide("dojo.testsDOH._base.loader.syncModuleDep"); +dojo.testsDOH._base.loader.syncModuleDep.status= "OK"; +dojoCdnTestLog.push("out-dojo.testsDOH._base.loader.syncModuleDep2"); diff --git a/tests/_base/loader/traceApi.html b/testsDOH/_base/loader/traceApi.html similarity index 100% rename from tests/_base/loader/traceApi.html rename to testsDOH/_base/loader/traceApi.html diff --git a/tests/_base/object.js b/testsDOH/_base/object.js similarity index 95% rename from tests/_base/object.js rename to testsDOH/_base/object.js index 49555ca8ca..c4ce4221ec 100644 --- a/tests/_base/object.js +++ b/testsDOH/_base/object.js @@ -4,7 +4,7 @@ define(["doh", "dojo/_base/lang"], function(doh, lang){ dojo = dojo || {}; dojo.zoo = { a:1, c: { d:1 } }; - doh.register("tests._base.object", [ + doh.register("testsDOH._base.object", [ function getBasic(t){ var x = lang.getObject('dojo.zoo.a'); diff --git a/tests/_base/query.html b/testsDOH/_base/query.html similarity index 99% rename from tests/_base/query.html rename to testsDOH/_base/query.html index aedc9f9bc3..b5689e8218 100644 --- a/tests/_base/query.html +++ b/testsDOH/_base/query.html @@ -18,7 +18,7 @@ return dojo._contentHandlers["xml"](fauxXhr); // DOMDocument } - // Legacy tests for dojo/_base/query. Replaced by dojo/tests/query/query.html. + // Legacy tests for dojo/_base/query. Replaced by dojo/testsDOH/query/query.html. // TODO: remove in 2.0. doh.register("t", [ diff --git a/testsDOH/_base/query.js b/testsDOH/_base/query.js new file mode 100644 index 0000000000..22fe9a44a6 --- /dev/null +++ b/testsDOH/_base/query.js @@ -0,0 +1,6 @@ +define(["doh/main", "require"], function(doh, require){ + if(doh.isBrowser){ + doh.register("testsDOH._base.query", require.toUrl("./query.html"), 60000); // tests dojo.query() back-compat shim + doh.register("testsDOH._base.NodeList", require.toUrl("./NodeList.html"), 60000); + } +}); diff --git a/tests/_base/queryPortability.html b/testsDOH/_base/queryPortability.html similarity index 100% rename from tests/_base/queryPortability.html rename to testsDOH/_base/queryPortability.html diff --git a/tests/_base/runTests.html b/testsDOH/_base/runTests.html similarity index 83% rename from tests/_base/runTests.html rename to testsDOH/_base/runTests.html index 9a77dff593..1ccd5200a3 100644 --- a/tests/_base/runTests.html +++ b/testsDOH/_base/runTests.html @@ -2,7 +2,7 @@ Dojo CORE and BASE D.O.H. Unit Test Runner - + Redirecting to D.O.H runner. diff --git a/tests/_base/scrollingIframe.js b/testsDOH/_base/scrollingIframe.js similarity index 100% rename from tests/_base/scrollingIframe.js rename to testsDOH/_base/scrollingIframe.js diff --git a/tests/_base/scrollingQuirksIframe.html b/testsDOH/_base/scrollingQuirksIframe.html similarity index 100% rename from tests/_base/scrollingQuirksIframe.html rename to testsDOH/_base/scrollingQuirksIframe.html diff --git a/tests/_base/scrollingStrictIframe.html b/testsDOH/_base/scrollingStrictIframe.html similarity index 100% rename from tests/_base/scrollingStrictIframe.html rename to testsDOH/_base/scrollingStrictIframe.html diff --git a/tests/_base/sniff.html b/testsDOH/_base/sniff.html similarity index 100% rename from tests/_base/sniff.html rename to testsDOH/_base/sniff.html diff --git a/tests/_base/timeout.php b/testsDOH/_base/timeout.php similarity index 100% rename from tests/_base/timeout.php rename to testsDOH/_base/timeout.php diff --git a/tests/_base/xhtml.php b/testsDOH/_base/xhtml.php similarity index 100% rename from tests/_base/xhtml.php rename to testsDOH/_base/xhtml.php diff --git a/tests/baseonly.js b/testsDOH/baseonly.js similarity index 100% rename from tests/baseonly.js rename to testsDOH/baseonly.js diff --git a/tests/data.js b/testsDOH/data.js similarity index 100% rename from tests/data.js rename to testsDOH/data.js diff --git a/tests/data/ItemFileReadStore.js b/testsDOH/data/ItemFileReadStore.js similarity index 100% rename from tests/data/ItemFileReadStore.js rename to testsDOH/data/ItemFileReadStore.js diff --git a/tests/data/ItemFileWriteStore.js b/testsDOH/data/ItemFileWriteStore.js similarity index 99% rename from tests/data/ItemFileWriteStore.js rename to testsDOH/data/ItemFileWriteStore.js index f3004b2913..e39e545de1 100644 --- a/tests/data/ItemFileWriteStore.js +++ b/testsDOH/data/ItemFileWriteStore.js @@ -52,7 +52,7 @@ tests.data.ItemFileWriteStore.getTestData = function(name){ // Now run some tests that are specific to the write-access features: -doh.register("tests.data.ItemFileWriteStore", +doh.register("testsDOH.data.ItemFileWriteStore", [ function test_getFeatures(){ // summary: diff --git a/tests/data/ObjectStore.js b/testsDOH/data/ObjectStore.js similarity index 96% rename from tests/data/ObjectStore.js rename to testsDOH/data/ObjectStore.js index e47dd392af..7f70680568 100644 --- a/tests/data/ObjectStore.js +++ b/testsDOH/data/ObjectStore.js @@ -1,10 +1,10 @@ -dojo.provide("dojo.tests.data.ObjectStore"); +dojo.provide("dojo.testsDOH.data.ObjectStore"); dojo.require("dojo.data.ObjectStore"); dojo.require("dojo.store.JsonRest"); dojo.require("dojo.store.Memory"); (function(){ -var restStore = new dojo.store.JsonRest({target: dojo.moduleUrl("dojo.tests.store", "/")}); +var restStore = new dojo.store.JsonRest({target: dojo.moduleUrl("dojo.testsDOH.store", "/")}); var memoryStore = new dojo.store.Memory({ data: [ {id: 1, name: "one", prime: false}, @@ -17,7 +17,7 @@ var memoryStore = new dojo.store.Memory({ var dataStore = new dojo.data.ObjectStore({objectStore: restStore}); var memoryDataStore = new dojo.data.ObjectStore({objectStore: memoryStore}); -tests.register("tests.data.ObjectStore", +tests.register("testsDOH.data.ObjectStore", [ function testFetchByIdentity(t){ var d = new doh.Deferred(); diff --git a/tests/data/countries.json b/testsDOH/data/countries.json similarity index 100% rename from tests/data/countries.json rename to testsDOH/data/countries.json diff --git a/tests/data/countries_commentFiltered.json b/testsDOH/data/countries_commentFiltered.json similarity index 100% rename from tests/data/countries_commentFiltered.json rename to testsDOH/data/countries_commentFiltered.json diff --git a/tests/data/countries_idcollision.json b/testsDOH/data/countries_idcollision.json similarity index 100% rename from tests/data/countries_idcollision.json rename to testsDOH/data/countries_idcollision.json diff --git a/tests/data/countries_references.json b/testsDOH/data/countries_references.json similarity index 100% rename from tests/data/countries_references.json rename to testsDOH/data/countries_references.json diff --git a/tests/data/countries_withBoolean.json b/testsDOH/data/countries_withBoolean.json similarity index 100% rename from tests/data/countries_withBoolean.json rename to testsDOH/data/countries_withBoolean.json diff --git a/tests/data/countries_withDates.json b/testsDOH/data/countries_withDates.json similarity index 100% rename from tests/data/countries_withDates.json rename to testsDOH/data/countries_withDates.json diff --git a/tests/data/countries_withNull.json b/testsDOH/data/countries_withNull.json similarity index 100% rename from tests/data/countries_withNull.json rename to testsDOH/data/countries_withNull.json diff --git a/tests/data/countries_withoutid.json b/testsDOH/data/countries_withoutid.json similarity index 100% rename from tests/data/countries_withoutid.json rename to testsDOH/data/countries_withoutid.json diff --git a/tests/data/data_multitype.json b/testsDOH/data/data_multitype.json similarity index 100% rename from tests/data/data_multitype.json rename to testsDOH/data/data_multitype.json diff --git a/tests/data/geography_hierarchy_large.json b/testsDOH/data/geography_hierarchy_large.json similarity index 100% rename from tests/data/geography_hierarchy_large.json rename to testsDOH/data/geography_hierarchy_large.json diff --git a/tests/data/geography_hierarchy_small.json b/testsDOH/data/geography_hierarchy_small.json similarity index 100% rename from tests/data/geography_hierarchy_small.json rename to testsDOH/data/geography_hierarchy_small.json diff --git a/tests/data/readOnlyItemFileTestTemplates.js b/testsDOH/data/readOnlyItemFileTestTemplates.js similarity index 99% rename from tests/data/readOnlyItemFileTestTemplates.js rename to testsDOH/data/readOnlyItemFileTestTemplates.js index 0de1bc4f83..d8ff5b73c3 100644 --- a/tests/data/readOnlyItemFileTestTemplates.js +++ b/testsDOH/data/readOnlyItemFileTestTemplates.js @@ -3185,4 +3185,4 @@ tests.data.readOnlyItemFileTestTemplates.testTemplates = [ } ]; -}); \ No newline at end of file +}); diff --git a/tests/data/reference_integrity.json b/testsDOH/data/reference_integrity.json similarity index 100% rename from tests/data/reference_integrity.json rename to testsDOH/data/reference_integrity.json diff --git a/tests/data/runTests.html b/testsDOH/data/runTests.html similarity index 83% rename from tests/data/runTests.html rename to testsDOH/data/runTests.html index 6ad35614a5..efaeef79e4 100644 --- a/tests/data/runTests.html +++ b/testsDOH/data/runTests.html @@ -2,7 +2,7 @@ dojo.data D.O.H. Unit Test Runner - + Redirecting to D.O.H runner. diff --git a/tests/data/utils.js b/testsDOH/data/utils.js similarity index 99% rename from tests/data/utils.js rename to testsDOH/data/utils.js index d144daf3a3..a6331a7149 100644 --- a/tests/data/utils.js +++ b/testsDOH/data/utils.js @@ -1,6 +1,6 @@ define(["dojo/main", "doh/main", "dojo/data/util/filter", "dojo/data/util/sorter"], function(dojo, doh){ -doh.register("tests.data.utils", +doh.register("testsDOH.data.utils", [ function testWildcardFilter_1(t){ var pattern = "ca*"; diff --git a/tests/dnd/dndDefault.css b/testsDOH/dnd/dndDefault.css similarity index 100% rename from tests/dnd/dndDefault.css rename to testsDOH/dnd/dndDefault.css diff --git a/tests/dnd/flickr_viewer.html b/testsDOH/dnd/flickr_viewer.html similarity index 100% rename from tests/dnd/flickr_viewer.html rename to testsDOH/dnd/flickr_viewer.html diff --git a/tests/dnd/robot/test_dnd.html b/testsDOH/dnd/robot/test_dnd.html similarity index 100% rename from tests/dnd/robot/test_dnd.html rename to testsDOH/dnd/robot/test_dnd.html diff --git a/tests/dnd/test_autoscroll.html b/testsDOH/dnd/test_autoscroll.html similarity index 100% rename from tests/dnd/test_autoscroll.html rename to testsDOH/dnd/test_autoscroll.html diff --git a/tests/dnd/test_box_constraints.html b/testsDOH/dnd/test_box_constraints.html similarity index 100% rename from tests/dnd/test_box_constraints.html rename to testsDOH/dnd/test_box_constraints.html diff --git a/tests/dnd/test_container.html b/testsDOH/dnd/test_container.html similarity index 100% rename from tests/dnd/test_container.html rename to testsDOH/dnd/test_container.html diff --git a/tests/dnd/test_container_markup.html b/testsDOH/dnd/test_container_markup.html similarity index 100% rename from tests/dnd/test_container_markup.html rename to testsDOH/dnd/test_container_markup.html diff --git a/tests/dnd/test_custom_constraints.html b/testsDOH/dnd/test_custom_constraints.html similarity index 100% rename from tests/dnd/test_custom_constraints.html rename to testsDOH/dnd/test_custom_constraints.html diff --git a/tests/dnd/test_dnd.html b/testsDOH/dnd/test_dnd.html similarity index 100% rename from tests/dnd/test_dnd.html rename to testsDOH/dnd/test_dnd.html diff --git a/tests/dnd/test_dnd_handles.html b/testsDOH/dnd/test_dnd_handles.html similarity index 100% rename from tests/dnd/test_dnd_handles.html rename to testsDOH/dnd/test_dnd_handles.html diff --git a/tests/dnd/test_form.html b/testsDOH/dnd/test_form.html similarity index 100% rename from tests/dnd/test_form.html rename to testsDOH/dnd/test_form.html diff --git a/tests/dnd/test_moveable.html b/testsDOH/dnd/test_moveable.html similarity index 100% rename from tests/dnd/test_moveable.html rename to testsDOH/dnd/test_moveable.html diff --git a/tests/dnd/test_moveable_markup.html b/testsDOH/dnd/test_moveable_markup.html similarity index 100% rename from tests/dnd/test_moveable_markup.html rename to testsDOH/dnd/test_moveable_markup.html diff --git a/tests/dnd/test_params.html b/testsDOH/dnd/test_params.html similarity index 100% rename from tests/dnd/test_params.html rename to testsDOH/dnd/test_params.html diff --git a/tests/dnd/test_parent_constraints.html b/testsDOH/dnd/test_parent_constraints.html similarity index 100% rename from tests/dnd/test_parent_constraints.html rename to testsDOH/dnd/test_parent_constraints.html diff --git a/tests/dnd/test_parent_constraints_margins.html b/testsDOH/dnd/test_parent_constraints_margins.html similarity index 100% rename from tests/dnd/test_parent_constraints_margins.html rename to testsDOH/dnd/test_parent_constraints_margins.html diff --git a/tests/dnd/test_selector.html b/testsDOH/dnd/test_selector.html similarity index 100% rename from tests/dnd/test_selector.html rename to testsDOH/dnd/test_selector.html diff --git a/tests/dnd/test_selector_markup.html b/testsDOH/dnd/test_selector_markup.html similarity index 100% rename from tests/dnd/test_selector_markup.html rename to testsDOH/dnd/test_selector_markup.html diff --git a/tests/dnd/test_timed_moveable.html b/testsDOH/dnd/test_timed_moveable.html similarity index 100% rename from tests/dnd/test_timed_moveable.html rename to testsDOH/dnd/test_timed_moveable.html diff --git a/tests/dom-attr.html b/testsDOH/dom-attr.html similarity index 100% rename from tests/dom-attr.html rename to testsDOH/dom-attr.html diff --git a/testsDOH/dom-attr.js b/testsDOH/dom-attr.js new file mode 100644 index 0000000000..55b2b12267 --- /dev/null +++ b/testsDOH/dom-attr.js @@ -0,0 +1,3 @@ +define(["doh/main", "require"], function(doh, require){ + doh.register("testsDOH.dom-attr", require.toUrl("./dom-attr.html"), 30000); +}); diff --git a/tests/dom-construct-place.html b/testsDOH/dom-construct-place.html similarity index 100% rename from tests/dom-construct-place.html rename to testsDOH/dom-construct-place.html diff --git a/tests/dom-construct.js b/testsDOH/dom-construct.js similarity index 73% rename from tests/dom-construct.js rename to testsDOH/dom-construct.js index ff308d0009..5a09f71e1e 100644 --- a/tests/dom-construct.js +++ b/testsDOH/dom-construct.js @@ -5,10 +5,10 @@ define([ ], function(construct, doh, require){ if(doh.isBrowser){ - doh.register("tests.dom-construct-place", require.toUrl("./dom-construct-place.html"), 30000); + doh.register("testsDOH.dom-construct-place", require.toUrl("./dom-construct-place.html"), 30000); } - doh.register("tests.dom-construct", [ + doh.register("testsDOH.dom-construct", [ { name: "Create element with textContent", runTest: function(t){ diff --git a/tests/dom-prop.html b/testsDOH/dom-prop.html similarity index 100% rename from tests/dom-prop.html rename to testsDOH/dom-prop.html diff --git a/testsDOH/dom-prop.js b/testsDOH/dom-prop.js new file mode 100644 index 0000000000..c73dbbbc9f --- /dev/null +++ b/testsDOH/dom-prop.js @@ -0,0 +1,3 @@ +define(["doh/main", "require"], function(doh, require){ + doh.register("testsDOH.dom-prop", require.toUrl("./dom-prop.html"), 30000); +}); diff --git a/tests/dom-style.html b/testsDOH/dom-style.html similarity index 100% rename from tests/dom-style.html rename to testsDOH/dom-style.html diff --git a/tests/dom-style.js b/testsDOH/dom-style.js similarity index 50% rename from tests/dom-style.js rename to testsDOH/dom-style.js index 7c80526259..168ec6ca88 100644 --- a/tests/dom-style.js +++ b/testsDOH/dom-style.js @@ -1,5 +1,5 @@ define(["doh/main", "require"], function(doh, require){ if(doh.isBrowser){ - doh.register("tests.dom-style", require.toUrl("./dom-style.html"), 30000); + doh.register("testsDOH.dom-style", require.toUrl("./dom-style.html"), 30000); } }); diff --git a/tests/errors.js b/testsDOH/errors.js similarity index 97% rename from tests/errors.js rename to testsDOH/errors.js index 6b3c14b26b..c7cc505552 100644 --- a/tests/errors.js +++ b/testsDOH/errors.js @@ -17,7 +17,7 @@ define([ var testError = new TestError("hello", "asdf"), otherError = new OtherError("goodbye", "qwerty", "blah"); - doh.register("tests.errors", [ + doh.register("testsDOH.errors", [ { name: "TestError", runTest: function(t){ diff --git a/tests/html.js b/testsDOH/html.js similarity index 51% rename from tests/html.js rename to testsDOH/html.js index 5aba0a9e73..d31bcafd4b 100644 --- a/tests/html.js +++ b/testsDOH/html.js @@ -1,5 +1,5 @@ define(["doh/main", "require"], function(doh, require){ if(doh.isBrowser){ - doh.register("tests.html", require.toUrl("./html/test_set.html"), 30000); + doh.register("testsDOH.html", require.toUrl("./html/test_set.html"), 30000); } }); diff --git a/tests/html/test_set.html b/testsDOH/html/test_set.html similarity index 100% rename from tests/html/test_set.html rename to testsDOH/html/test_set.html diff --git a/tests/i18n.html b/testsDOH/i18n.html similarity index 55% rename from tests/i18n.html rename to testsDOH/i18n.html index 8c49310d7c..981f92978f 100644 --- a/tests/i18n.html +++ b/testsDOH/i18n.html @@ -18,18 +18,18 @@ + + + +

    parseOnLoad:true, async: true, auto-require unit test

    + +

    This page tests that:

    +
      +
    1. parser resolves relative MIDs in widget templates
    2. +
    3. parser correctly caches constructors with same relative MIDs
    4. +
    +

    See console for test results.

    + + +
    +
    + + + diff --git a/tests/functional/parser/parserContextRequire.js b/tests/functional/parser/parserContextRequire.js new file mode 100644 index 0000000000..f364c1daad --- /dev/null +++ b/tests/functional/parser/parserContextRequire.js @@ -0,0 +1,46 @@ +define([ + 'require', + 'intern!object', + 'intern/chai!assert', + '../../support/ready' +], function(require, registerSuite, assert, ready) { + registerSuite({ + name : 'dojo/parser - context require', + + test : function() { + return ready(this.get('remote'), require.toUrl('./parserContextRequire.html')).setExecuteAsyncTimeout(50000).executeAsync(function(done, e) { + require([ + 'testing/parser', + 'testing/tests/functional/parser/support/a/AMDWidget', + 'testing/tests/functional/parser/support/a/AMDWidget2', + 'testing/tests/functional/parser/support/b/AMDWidget', + 'testing/tests/functional/parser/support/b/AMDWidget2', + 'dojo/domReady!' + ], function(parser, AMDWidgetA1, AMDWidgetA2, AMDWidgetB1, AMDWidgetB2) { + try { + parser.parse().then(function() { + /* global cr1, cr2 */ + done({ + cr1CorrectType : cr1.isInstanceOf(AMDWidgetA1), + cr2CorrectType : cr2.isInstanceOf(AMDWidgetB1), + cr1ChildCorrectType : cr1.child.isInstanceOf(AMDWidgetA2), + cr2ChildCorrectType : cr2.child.isInstanceOf(AMDWidgetB2) + }); + }).otherwise(done); + } catch (e) { + done({ + e : "x" + }); + } + }); + }).then(function(results) { + assert.deepEqual(results, { + cr1CorrectType : true, + cr2CorrectType : true, + cr1ChildCorrectType : true, + cr2ChildCorrectType : true + }); + }); + } + }); +}); diff --git a/tests/functional/parser/support/a/AMDWidget.js b/tests/functional/parser/support/a/AMDWidget.js new file mode 100644 index 0000000000..895a41ff59 --- /dev/null +++ b/tests/functional/parser/support/a/AMDWidget.js @@ -0,0 +1,19 @@ +define([ + "require", + "dojo/_base/declare", + "dojo/dom-construct", + "dojo/parser", + "./AMDWidget2" +], function(require, declare, domConstruct, parser) { + + return declare(null, { + constructor : function() { + var node = domConstruct.create("div", { + innerHTML : '
    ' + }); + this.child = parser.parse(node, { + contextRequire : require + })[0]; + } + }); +}); \ No newline at end of file diff --git a/tests/functional/parser/support/a/AMDWidget2.js b/tests/functional/parser/support/a/AMDWidget2.js new file mode 100644 index 0000000000..6a202b26c5 --- /dev/null +++ b/tests/functional/parser/support/a/AMDWidget2.js @@ -0,0 +1,7 @@ +define([ + "dojo/_base/declare" +], function(declare) { + + return declare(null, {}); + +}); \ No newline at end of file diff --git a/tests/functional/parser/support/b/AMDWidget.js b/tests/functional/parser/support/b/AMDWidget.js new file mode 100644 index 0000000000..895a41ff59 --- /dev/null +++ b/tests/functional/parser/support/b/AMDWidget.js @@ -0,0 +1,19 @@ +define([ + "require", + "dojo/_base/declare", + "dojo/dom-construct", + "dojo/parser", + "./AMDWidget2" +], function(require, declare, domConstruct, parser) { + + return declare(null, { + constructor : function() { + var node = domConstruct.create("div", { + innerHTML : '
    ' + }); + this.child = parser.parse(node, { + contextRequire : require + })[0]; + } + }); +}); \ No newline at end of file diff --git a/tests/functional/parser/support/b/AMDWidget2.js b/tests/functional/parser/support/b/AMDWidget2.js new file mode 100644 index 0000000000..6a202b26c5 --- /dev/null +++ b/tests/functional/parser/support/b/AMDWidget2.js @@ -0,0 +1,7 @@ +define([ + "dojo/_base/declare" +], function(declare) { + + return declare(null, {}); + +}); \ No newline at end of file From 2c3e8d1fd090bbc7ca753392bc2a1f7c2495d475 Mon Sep 17 00:00:00 2001 From: Michael Van Sickle Date: Mon, 29 Dec 2014 09:10:56 -0500 Subject: [PATCH 157/376] More DOH --> Intern test conversion: - dojo/dom* (dom, dom-attr, dom-construct, etc.) and dojo/_base/html - NodeList* (NodeList, NodeList-manipulate, etc.), _base/NodeList - dojo/_base/sniff - dojo/query, dojo/_base/query Also: - removed _base.js from tests/unit and added all.js to tests/unit/_base with same intent (call tests in _base package) - converted tab to spaces in .travis.yml --- .travis.yml | 2 +- tests/TODO.md | 11 - tests/functional/all.js | 3 +- tests/functional/query/all.js | 5 + tests/functional/query/blank.html | 1 + tests/functional/query/query.html | 97 ++ tests/functional/query/query.js | 940 +++++++++++++++++ tests/functional/query/queryQuirks.html | 96 ++ tests/functional/query/queryQuirks.js | 949 ++++++++++++++++++ tests/functional/query/xml.html | 14 + tests/functional/query/xml.js | 52 + tests/unit/NodeList-manipulate.js | 1164 +++++++++++++++++++++- tests/unit/NodeList-traverse.js | 970 +++++++++++++++++- tests/unit/_base.js | 18 - tests/unit/_base/NodeList.js | 889 ++++++++++++++++- tests/unit/_base/all.js | 18 + tests/unit/_base/html.js | 584 ++++++++++- tests/unit/_base/query.js | 20 +- tests/unit/_base/sniff.js | 36 +- tests/unit/_base/window.js | 194 +++- tests/unit/all.js | 6 +- tests/unit/dom-attr.js | 842 +++++++++++++++- tests/unit/dom-construct.js | 804 ++++++++++++++- tests/unit/dom-prop.js | 333 ++++++- tests/unit/dom-style.js | 458 ++++++++- tests/unit/dom.js | 337 +++++++ tests/unit/errors.js | 12 - tests/unit/errors/CancelError.js | 24 + tests/unit/errors/RequestError.js | 26 + tests/unit/errors/RequestTimeoutError.js | 28 + tests/unit/errors/all.js | 6 + tests/unit/errors/create.js | 126 +++ tests/unit/parser/parser.html | 2 +- tests/unit/query.js | 12 - testsDOH/NodeList-manipulate.html | 375 ------- testsDOH/NodeList-manipulate.js | 5 - testsDOH/NodeList-traverse.html | 161 --- testsDOH/NodeList-traverse.js | 5 - testsDOH/_base.js | 4 +- testsDOH/_base/NodeList.html | 715 ------------- testsDOH/_base/abs.html | 102 -- testsDOH/_base/absQuirk.html | 101 -- testsDOH/_base/html.html | 302 +----- testsDOH/_base/query.html | 368 ------- testsDOH/_base/query.js | 6 - testsDOH/_base/sniff.html | 36 - testsDOH/dom-attr.html | 41 - testsDOH/dom-attr.js | 3 - testsDOH/dom-construct-place.html | 328 ------ testsDOH/dom-construct.js | 23 - testsDOH/dom-prop.html | 60 -- testsDOH/dom-prop.js | 3 - testsDOH/dom-style.html | 49 - testsDOH/dom-style.js | 5 - testsDOH/errors.js | 47 - testsDOH/module.js | 7 - testsDOH/query.js | 27 - testsDOH/query/query.html | 488 --------- testsDOH/query/queryQuirks.html | 477 --------- testsDOH/query/runTests.html | 9 - testsDOH/query/xml.xhtml | 19 - testsDOH/test_dom_setSelectable.html | 74 -- 62 files changed, 8939 insertions(+), 3980 deletions(-) create mode 100644 tests/functional/query/all.js create mode 100644 tests/functional/query/blank.html create mode 100644 tests/functional/query/query.html create mode 100644 tests/functional/query/query.js create mode 100644 tests/functional/query/queryQuirks.html create mode 100644 tests/functional/query/queryQuirks.js create mode 100644 tests/functional/query/xml.html create mode 100644 tests/functional/query/xml.js delete mode 100644 tests/unit/_base.js create mode 100644 tests/unit/_base/all.js create mode 100644 tests/unit/dom.js delete mode 100644 tests/unit/errors.js create mode 100644 tests/unit/errors/CancelError.js create mode 100644 tests/unit/errors/RequestError.js create mode 100644 tests/unit/errors/RequestTimeoutError.js create mode 100644 tests/unit/errors/all.js create mode 100644 tests/unit/errors/create.js delete mode 100644 tests/unit/query.js delete mode 100644 testsDOH/NodeList-manipulate.html delete mode 100644 testsDOH/NodeList-manipulate.js delete mode 100644 testsDOH/NodeList-traverse.html delete mode 100644 testsDOH/NodeList-traverse.js delete mode 100644 testsDOH/_base/NodeList.html delete mode 100644 testsDOH/_base/abs.html delete mode 100644 testsDOH/_base/absQuirk.html delete mode 100644 testsDOH/_base/query.html delete mode 100644 testsDOH/_base/query.js delete mode 100644 testsDOH/_base/sniff.html delete mode 100644 testsDOH/dom-attr.html delete mode 100644 testsDOH/dom-attr.js delete mode 100644 testsDOH/dom-construct-place.html delete mode 100644 testsDOH/dom-construct.js delete mode 100644 testsDOH/dom-prop.html delete mode 100644 testsDOH/dom-prop.js delete mode 100644 testsDOH/dom-style.html delete mode 100644 testsDOH/dom-style.js delete mode 100644 testsDOH/errors.js delete mode 100644 testsDOH/query.js delete mode 100644 testsDOH/query/query.html delete mode 100644 testsDOH/query/queryQuirks.html delete mode 100644 testsDOH/query/runTests.html delete mode 100644 testsDOH/query/xml.xhtml delete mode 100644 testsDOH/test_dom_setSelectable.html diff --git a/.travis.yml b/.travis.yml index b4a863f89c..c0e711bca3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,5 +9,5 @@ env: - SAUCE_ACCESS_KEY: e92610e3-834e-4bec-a3b5-6f7b9d874601 matrix: - NPM_SCRIPT: test-coverage - - NPM_SCRIPT: test-remote-coverage + - NPM_SCRIPT: test-remote-coverage script: "npm run $NPM_SCRIPT" diff --git a/tests/TODO.md b/tests/TODO.md index d4f2bfb684..dbe3f0d6f0 100644 --- a/tests/TODO.md +++ b/tests/TODO.md @@ -1,19 +1,8 @@ # Module tests to be converted -* NodeList-manipulate -* NodeList-traverse * [dnd](https://github.com/bryanforbes/dojo/pull/81) -* \_base/NodeList -* [\_base/html](https://github.com/bryanforbes/dojo/pull/74) -* [\_base/query](https://github.com/bryanforbes/dojo/pull/64) -* [\_base/sniff](https://github.com/bryanforbes/dojo/pull/66) * [\_base/window](https://github.com/bryanforbes/dojo/pull/68) -* dom-attr -* dom-construct -* dom-prop -* dom-style * [errors](https://github.com/bryanforbes/dojo/pull/56) -* [query](https://github.com/bryanforbes/dojo/pull/69) # Individual tests to be converted diff --git a/tests/functional/all.js b/tests/functional/all.js index a535e6ba96..3a56e2769b 100644 --- a/tests/functional/all.js +++ b/tests/functional/all.js @@ -12,6 +12,7 @@ define([ './on', './parser', './touch', - './window' + './window', + './query/all' ], function () { }); diff --git a/tests/functional/query/all.js b/tests/functional/query/all.js new file mode 100644 index 0000000000..d0853ca6fc --- /dev/null +++ b/tests/functional/query/all.js @@ -0,0 +1,5 @@ +define([ + './query', + './queryQuirks', + './xml' +], function () { }); diff --git a/tests/functional/query/blank.html b/tests/functional/query/blank.html new file mode 100644 index 0000000000..40fe7705a6 --- /dev/null +++ b/tests/functional/query/blank.html @@ -0,0 +1 @@ + diff --git a/tests/functional/query/query.html b/tests/functional/query/query.html new file mode 100644 index 0000000000..8f553fe79b --- /dev/null +++ b/tests/functional/query/query.html @@ -0,0 +1,97 @@ + + + + + + + + + +
    +

    Testing dojo/query module.

    +
    +

    h3 span endh3

    + +
    +

    h3

    + + +
    +

    h3

    +

    h3

    + + + + + +
    +
    +
    +
    +
    +
    + + +
    +
    + + + + + + +
    + + + +
    +
    +

    one

    +
    +

    two

    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    + + + + hi + + + + + +
    +
    + + diff --git a/tests/functional/query/query.js b/tests/functional/query/query.js new file mode 100644 index 0000000000..bf7c47a5e5 --- /dev/null +++ b/tests/functional/query/query.js @@ -0,0 +1,940 @@ +define([ + 'intern!object', + 'intern/chai!assert', + 'require' +], function (registerSuite, assert, require) { + var selectors = + [ + "lite", + "css2", + "css2.1", + "css3", + "acme" + ]; + + for (var _selectorIdx = 0; _selectorIdx < selectors.length; _selectorIdx++) { + var selectorIdx = _selectorIdx + registerSuite({ + name: "query - selector: " + selectors[selectorIdx], + before: function () { + return this.get("remote") + .get(require.toUrl("./query.html")) + .setExecuteAsyncTimeout(10000) + .executeAsync(function (selector, send) { + require([ + 'dojo/query!' + selector, + 'dojo/sniff', + 'dojo/dom', + 'dojo/dom-construct', + 'dojo/request/iframe', + 'dojo/domReady!' + ], function (_query, _sniff, _dom, _domConstruct, _iframe) { + query = _query + has = _sniff; + dom = _dom; + domConstruct = _domConstruct; + iframe = _iframe; + + send(); + }) + }, [selectors[selectorIdx]]) + .execute(function () { + window.createDocument = function(xml) { + var fauxXhr = { responseText: xml }; + if ("DOMParser" in window) { + var parser = new DOMParser(); + fauxXhr.responseXML = parser.parseFromString(xml, "text/xml"); + } + // kludge: code from dojo.xhr contentHandler to create doc on IE + var result = fauxXhr.responseXML; + if (has("ie")) { + // Needed for IE6-8 + if ((!result || !result.documentElement)) { + var ms = function (n) { return "MSXML" + n + ".DOMDocument"; }; + var dp = ["Microsoft.XMLDOM", ms(6), ms(4), ms(3), ms(2)]; + array.some(dp, function (p) { + try { + var dom = new ActiveXObject(p); + dom.async = false; + dom.loadXML(fauxXhr.responseText); + result = dom; + } catch (e) { return false; } + return true; + }); + } + } + return result; // DOMDocument + } + }); + + }, + "css2": { + "basic sanity checks": function () { + + return this.get("remote") + .execute(function () { + var result = {}; + + result['h3'] = query('h3'); + result['#t'] = query('#t'); + result['#bug'] = query('#bug'); + result['#t h3'] = query('#t h3'); + result['div#t'] = query('div#t'); + result['div#t h3'] = query('div#t h3'); + result['span#t'] = query('span#t'); + result['.bogus'] = query('.bogus'); + result['.bogus-scoped'] = query('.bogus', dom.byId('container')); + result['#bogus'] = query('#bogus'); + result['#bogus-scoped'] = query('#bogus', dom.byId('container')); + result['#t div > h3'] = query('#t div > h3'); + result['.foo'] = query('.foo'); + result['.foo.bar'] = query('.foo.bar'); + result['.baz'] = query('.baz'); + result['#t > h3'] = query('#t > h3'); + result['null'] = query(null); + + return result; + }).then(function (results) { + assert.equal((results['h3']).length, 4); + assert.equal((results['#t']).length, 1); + assert.equal((results['#bug']).length, 1); + assert.equal((results['#t h3']).length, 4); + assert.equal((results['div#t']).length, 1); + assert.equal((results['div#t h3']).length, 4); + assert.equal((results['span#t']).length, 0); + assert.equal((results['.bogus']).length, 0); + assert.equal((results['.bogus-scoped']).length, 0); + assert.equal((results['#bogus']).length, 0); + assert.equal((results['#bogus-scoped']).length, 0); + assert.equal((results['#t div > h3']).length, 1); + assert.equal((results['.foo']).length, 2); + assert.equal((results['.foo.bar']).length, 1); + assert.equal((results['.baz']).length, 2); + assert.equal((results['#t > h3']).length, 3); + assert.equal((results['null']).length, 0); + }); + }, + "comma1": function () { + return this.get("remote") + .execute(function () { + return query('#baz,#foo,#t'); + }) + .then(function (result) { + assert.equal(result.length, 2); + }); + }, + "comma2": function () { + return this.get("remote") + .execute(function () { + return query('#foo,#baz,#t'); + }) + .then(function (result) { + assert.equal(result.length, 2); + }); + }, + "syntactic equivalents": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result["#t > *"] = query('#t > *'); + result[".foo > *"] = query('.foo > *'); + + return result; + }) + .then(function (result) { + assert.equal(result["#t > *"].length, 12); + assert.equal(result[".foo > *"].length, 3); + }); + }, + "with a root, by ID": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['> *'] = query('> *', 'container'); + result['> *, > h3'] = query('> *, > h3', 'container'); + result['> h3'] = query('> h3', 't'); + + return result; + }) + .then(function (result) { + assert.equal(result['> *'].length, 3); + assert.equal(result['> *, > h3'].length, 3); + assert.equal(result['> h3'].length, 3); + }); + + }, + "compound queries": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['.foo, .bar'] = query('.foo, .bar'); + result['.foo,.bar'] = query('.foo,.bar'); + + return result; + }) + .then(function (result) { + assert.equal(result['.foo, .bar'].length, 2); + assert.equal(result['.foo,.bar'].length, 2); + }); + }, + + "multiple class attribute": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['.foo.bar'] = query('.foo.bar'); + result['.foo'] = query('.foo'); + result['.baz'] = query('.baz'); + + return result; + }) + .then(function (result) { + assert.equal(result['.foo.bar'].length, 1); + assert.equal(result['.foo'].length, 2); + assert.equal(result['.baz'].length, 2); + }); + }, + "case sensitivity": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['span.baz'] = query('span.baz'); + result['sPaN.baz'] = query('sPaN.baz'); + result['SPAN.baz'] = query('SPAN.baz'); + result['.fooBar'] = query('.fooBar'); + + return result; + }) + .then(function (result) { + assert.equal(result['span.baz'].length, 1); + assert.equal(result['sPaN.baz'].length, 1); + assert.equal(result['SPAN.baz'].length, 1); + assert.equal(result['.fooBar'].length, 1); + }); + }, + "attribute selectors": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['[foo]'] = query('[foo]'); + + return result; + }) + .then(function (result) { + assert.equal(result['[foo]'].length, 3); + }); + }, + "attribute substring selectors": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['[foo$=\"thud\"]'] = query('[foo$=\"thud\"]'); + result['[foo$=thud]'] = query('[foo$=thud]'); + result['[foo$=\"thudish\"]'] = query('[foo$=\"thudish\"]'); + result['#t [foo$=thud]'] = query('#t [foo$=thud]'); + result['#t [title$=thud]'] = query('#t [title$=thud]'); + result['#t span[title$=thud ]'] = query('#t span[title$=thud ]'); + result['[id$=\'55555\']'] = query('[id$=\'55555\']'); + result['[foo~=\"bar\"]'] = query('[foo~=\"bar\"]'); + result['[ foo ~= \"bar\" ]'] = query('[ foo ~= \"bar\" ]'); + result['[foo|=\"bar\"]'] = query('[foo|=\"bar\"]'); + result['[foo|=\"bar-baz\"]'] = query('[foo|=\"bar-baz\"]'); + result['[foo|=\"baz\"]'] = query('[foo|=\"baz\"]'); + + return result; + }) + .then(function (result) { + assert.equal(result['[foo$=\"thud\"]'].length, 1); + assert.equal(result['[foo$=thud]'].length, 1); + assert.equal(result['[foo$=\"thudish\"]'].length, 1); + assert.equal(result['#t [foo$=thud]'].length, 1); + assert.equal(result['#t [title$=thud]'].length, 1); + assert.equal(result['#t span[title$=thud ]'].length, 0); + assert.equal(result['[id$=\'55555\']'].length, 1); + assert.equal(result['[foo~=\"bar\"]'].length, 2); + assert.equal(result['[ foo ~= \"bar\" ]'].length, 2); + assert.equal(result['[foo|=\"bar\"]'].length, 2); + assert.equal(result['[foo|=\"bar-baz\"]'].length, 1); + assert.equal(result['[foo|=\"baz\"]'].length, 0); + }); + }, + "descendant selectors": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['> *'] = query('> *', 'container'); + result['> [qux]'] = query('> [qux]', 'container'); + result['> [qux][0].id'] = query('> [qux]', 'container')[0].id; + result['> [qux][1].id'] = query('> [qux]', 'container')[1].id; + result['>*'] = query('>*', 'container'); + result['#bug[0].value'] = query('#bug')[0].value; + + return result; + }) + .then(function (result) { + assert.equal(result['> *'].length, 3); + assert.equal(result['> [qux]'].length, 2); + assert.equal(result['> [qux][0].id'], "child1"); + assert.equal(result['> [qux][1].id'], "child3"); + assert.equal(result['>*'].length, 3); + assert.equal(result['#bug[0].value'], "passed"); + }); + }, + "bug 9071": function () { + // bug 9071 + return this.get("remote") + .execute(function () { + var result = {}; + + result['t4 a'] = query('a', 't4'); + result['t4 p a'] = query('p a', 't4'); + result['t4 div p'] = query('div p', 't4'); + result['t4 div p a'] = query('div p a', 't4'); + result['t4 .subA'] = query('.subA', 't4'); + result['t4 .subP .subA'] = query('.subP .subA', 't4'); + result['t4 .subDiv .subP'] = query('.subDiv .subP', 't4'); + result['t4 .subDiv .subP .subA'] = query('.subDiv .subP .subA', 't4'); + + return result; + }) + .then(function (result) { + assert.equal(result['t4 a'].length, 2); + assert.equal(result['t4 p a'].length, 2); + assert.equal(result['t4 div p'].length, 2); + assert.equal(result['t4 div p a'].length, 2); + assert.equal(result['t4 .subA'].length, 2); + assert.equal(result['t4 .subP .subA'].length, 2); + assert.equal(result['t4 .subDiv .subP'].length, 2); + assert.equal(result['t4 .subDiv .subP .subA'].length, 2); + + }); + }, + "failed scope arg": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['thinger *'] = query('*', 'thinger'); + result['div#foo'] = query('div#foo'); + + return result; + }) + .then(function (result) { + assert.equal(result['thinger *'].length, 0); + assert.equal(result['div#foo'].length, 0); + }); + }, + + "escaping special characters with quotes": function () { + // http://www.w3.org/TR/CSS21/syndata.html#strings + // bug 10651 + return this.get("remote") + .execute(function () { + var result = {}; + + result['option[value="a+b"]'] = query('option[value="a+b"]', "attrSpecialChars"); + result['option[value="a~b"]'] = query('option[value="a~b"]', "attrSpecialChars"); + result['option[value="a^b"]'] = query('option[value="a^b"]', "attrSpecialChars"); + result['option[value="a,b"]'] = query('option[value="a,b"]', "attrSpecialChars"); + + return result; + }) + .then(function (result) { + assert.equal(result['option[value="a+b"]'].length, 1); + assert.equal(result['option[value="a~b"]'].length, 1); + assert.equal(result['option[value="a^b"]'].length, 1); + assert.equal(result['option[value="a,b"]'].length, 1); + }); + }, + "selector with substring that contains equals sign - bug 7479": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['a[href*=\'foo=bar\']'] = query("a[href*='foo=bar']", 'attrSpecialChars'); + + return result; + }) + .then(function (result) { + assert.equal(result['a[href*=\'foo=bar\']'].length, 1); + }); + }, + "selector with substring that contains brackets - bug 9193, 11189, 13084": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['input[name="data[foo][bar]"]'] = query('input[name="data[foo][bar]"]', "attrSpecialChars"); + result['input[name="foo[0].bar'] = query('input[name="foo[0].bar"]', "attrSpecialChars"); + result['input[name="test[0]"]'] = query('input[name="test[0]"]', "attrSpecialChars"); + + return result; + }) + .then(function (result) { + assert.equal(result['input[name="data[foo][bar]"]'].length, 1); + assert.equal(result['input[name="foo[0].bar'].length, 1); + assert.equal(result['input[name="test[0]"]'].length, 1); + }); + }, + "escaping special characters with backslashes": function () { + //http://www.w3.org/TR/CSS21/syndata.html#characters + // selector with substring that contains brackets (bug 9193, 11189, 13084) + // eval() converts 4 backslashes --> 1 by the time dojo.query() sees the string + return this.get("remote") + .execute(function () { + var result = {}; + + result['input[name=data\\[foo\\]\\[bar\\]]'] = query("input[name=data\\[foo\\]\\[bar\\]]", "attrSpecialChars"); + result['input[name=foo\\[0\\]\\.bar]'] = query("input[name=foo\\[0\\]\\.bar]", "attrSpecialChars"); + + return result; + }) + .then(function (result) { + assert.equal(result['input[name=data\\[foo\\]\\[bar\\]]'].length, 1); + assert.equal(result['input[name=foo\\[0\\]\\.bar]'].length, 1); + }); + }, + "crossDocumentQuery": function () { + return this.get("remote") + .execute(function () { + var result = {}; + var t3 = window.frames["t3"]; + var doc = iframe.doc(t3); + doc.open(); + doc.write([ + "", + "inner document", + "", + "", + "
    ", + "

    h3", + " ", + " span", + " ", + " inner", + " ", + " inner-inner", + " ", + " ", + " ", + " endh3", + "

    ", + "
    ", + "", + "" + ].join("")); + + doc.close(); + + result["st1 h3"] = query('h3', dom.byId("st1", doc)); + // use a long query to force a test of the XPath system on FF. see bug #7075 + result['st1 h3 > span > span > span'] = query('h3 > span > span > span', dom.byId("st1", doc)); + result['body.children[0] h3 > span > span > span'] = query('h3 > span > span > span', doc.body.children[0]); + + return result; + }) + .then(function (result) { + assert.equal(result['st1 h3'].length, 1); + assert.equal(result['st1 h3 > span > span > span'].length, 1); + assert.equal(result['body.children[0] h3 > span > span > span'].length, 1); + }); + }, + "escaping of ':' chars inside an ID": { + "silly_IDs1": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result["silly:id::with:colons"] = document.getElementById("silly:id::with:colons"); + result["#silly\\:id\\:\\:with\\:colons"] = query("#silly\\:id\\:\\:with\\:colons"); + result["#silly\\~id"] = query("#silly\\~id"); + + return result; + }) + .then(function (result) { + assert.isNotNull(result["silly:id::with:colons"], "getElementById"); + assert.equal(result["#silly\\:id\\:\\:with\\:colons"].length, 1, "query(\"#silly\\:id\\:\\:with\\:colons\")"); + assert.equal(result["#silly\\~id"].length, 1, "query(\"#silly\\~id\")"); + }); + } + }, + "xml": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + var doc = createDocument([ + "", + "One", + "Two", + "Three", + "Four", + "" + ].join("")); + + var de = doc.documentElement; + + result["result"] = query("result", de).length; + //result["result>nested"] = query("result>nested", de).length; + result["Result"] = query("Result", de).length; + result["RESULT"] = query("RESULT", de).length; + result["resulT"] = query("resulT", de).length; + result["rEsulT"] = query("rEsulT", de).length; + + return result; + }) + .then(function (result) { + assert.equal(result["result"], 2, "all lower"); + + //assert.equal(result["result>nested"], 1, "nested XML"); + assert.equal(result["Result"], 1, "mixed case"); + assert.equal(result["RESULT"], 1, "all upper"); + assert.equal(result["resulT"], 0, "no match"); + assert.equal(result["rEsulT"], 0, "no match"); + }); + + }, + "xml_attrs": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + if (!has("ie")) { // remove if() when #14880 is fixed + var doc = createDocument([ + "", + "ONE", + "Two", + "" + ].join("")); + var de = doc.documentElement; + + result["RESULT"] = query("RESULT", de).length; + result["RESULT[THINGER]"] = query("RESULT[THINGER]", de).length; + result["RESULT[thinger]"] = query("RESULT[thinger]", de).length; + result["RESULT[thinger=blah]"] = query("RESULT[thinger=blah]", de).length; + result["RESULT > CHILD"] = query("RESULT > CHILD", de).length; + + } else { + this.skip("do not run in IE till bug #14880 is fixed"); + } + return result; + }) + .then(function (result) { + assert.equal(result["RESULT"], 2, "result elements"); + assert.equal(result["RESULT[THINGER]"], 0, "result elements with attrs (wrong)"); + assert.equal(result["RESULT[thinger]"], 2, "result elements with attrs"); + assert.equal(result["RESULT[thinger=blah]"], 1, "result elements with attr value"); + assert.equal(result["RESULT > CHILD"], 1, "Using child operator"); + }); + }, + "sort": function () { + return this.get("remote") + .execute(function () { + var i = query("div"); + // smoke test + i.sort(function (a, b) { return 1; }); + return true; + }) + .then(function (result) { + assert.isTrue(result); + }); + + }, + "document_fragment": function () { + return this.get("remote") + .execute(function () { + var result = {}; + var detachedDom = domConstruct.toDom(""); + var documentFragment = domConstruct.toDom(" "); + var detachedDom2 = domConstruct.toDom(""); + var documentFragment2 = domConstruct.toDom(" "); + + result["#b detached"] = query("#b", detachedDom); + result["#b detached first child"] = query("#b", detachedDom.firstChild); + result["#b fragment"] = query("#b", documentFragment); + result["#b fragment child"] = query("#b", documentFragment.childNodes[2]); + result["#b detached2"] = query("#b", detachedDom2); + result["#b fragment2"] = query("#b", documentFragment2); + + return result; + }) + .then(function (result) { + assert.equal(result["#b detached"].length, 1); + assert.equal(result["#b detached first child"].length, 1); + assert.equal(result["#b fragment"].length, 1); + assert.equal(result["#b fragment child"].length, 1); + assert.equal(result["#b detached2"].length, 0); + assert.equal(result["#b fragment2"].length, 0); + }); + } + }, + "css2.1": function () { + if (/css2.1|css3|acme/.test(selectors[selectorIdx])) { + return this.get("remote") + .execute(function () { + var result = {}; + + result["h1:first-child"] = query('h1:first-child'); + result["h3:first-child"] = query('h3:first-child'); + result[".foo+ span"] = query('.foo+ span'); + result[".foo+span"] = query('.foo+span'); + result[".foo +span"] = query('.foo +span'); + result[".foo + span"] = query('.foo + span'); + + return result; + }) + .then(function (result) { + // first-child + assert.equal(result["h1:first-child"].length, 1); + assert.equal(result["h3:first-child"].length, 2); + + // + sibling selector + assert.equal(result[".foo+ span"].length, 1); + assert.equal(result[".foo+span"].length, 1); + assert.equal(result[".foo +span"].length, 1); + assert.equal(result[".foo + span"].length, 1); + }); + + } else { + this.skip("out of scope for this selector engine"); + } + }, + "css3": (function () { + if (/css3|acme/.test(selectors[selectorIdx])) { + return { + "sub-selector parsing": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result["#t span.foo:not(:first-child)"] = query('#t span.foo:not(:first-child)'); + + return result; + }) + .then(function (result) { + assert.equal(result['#t span.foo:not(:first-child)'].length, 1); + }); + + }, + "~ sibling selector": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result[".foo~ span"] = query('.foo~ span'); + result[".foo~span"] = query('.foo~span'); + result[".foo ~span"] = query('.foo ~span'); + result[".foo ~ span"] = query('.foo ~ span'); + result["#foo~ *"] = query('#foo~ *'); + result["#foo ~*"] = query('#foo ~*'); + result["#foo ~*"] = query('#foo ~*'); + result["#foo ~ *"] = query('#foo ~ *'); + + return result; + }) + .then(function (result) { + assert.equal(result[".foo~ span"].length, 4); + assert.equal(result[".foo~span"].length, 4); + assert.equal(result[".foo ~span"].length, 4); + assert.equal(result[".foo ~ span"].length, 4); + assert.equal(result["#foo~ *"].length, 1); + assert.equal(result["#foo ~*"].length, 1); + assert.equal(result["#foo ~*"].length, 1); + assert.equal(result["#foo ~ *"].length, 1); + }); + + }, + "nth-child tests": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result["#t > h3:nth-child(odd)"] = query('#t > h3:nth-child(odd)'); + result["#t h3:nth-child(odd)"] = query('#t h3:nth-child(odd)'); + result["#t h3:nth-child(2n+1)"] = query('#t h3:nth-child(2n+1)'); + result["#t h3:nth-child(even)"] = query('#t h3:nth-child(even)'); + result["#t h3:nth-child(2n)"] = query('#t h3:nth-child(2n)'); + result["#t h3:nth-child(2n+3)"] = query('#t h3:nth-child(2n+3)'); + result["#t h3:nth-child(1)"] = query('#t h3:nth-child(1)'); + result["#t > h3:nth-child(1)"] = query('#t > h3:nth-child(1)'); + result["#t :nth-child(3)"] = query('#t :nth-child(3)'); + result["#t > div:nth-child(1)"] = query('#t > div:nth-child(1)'); + result["#t :nth-child(3)"] = query('#t :nth-child(3)'); + result["#t > div:nth-child(1)"] = query('#t > div:nth-child(1)'); + result["#t span"] = query('#t span'); + result["#t > *:nth-child(n+10)"] = query('#t > *:nth-child(n+10)'); + result["#t > *:nth-child(n+12)"] = query('#t > *:nth-child(n+12)'); + result["#t > *:nth-child(-n+10)"] = query('#t > *:nth-child(-n+10)'); + result["#t > *:nth-child(-2n+10)"] = query('#t > *:nth-child(-2n+10)'); + result["#t > *:nth-child(2n+2)"] = query('#t > *:nth-child(2n+2)'); + result["#t > *:nth-child(2n+4)"] = query('#t > *:nth-child(2n+4)'); + result["#t> *:nth-child(2n+4)"] = query('#t> *:nth-child(2n+4)'); + result["#t > *:nth-child(n-5)"] = query('#t > *:nth-child(n-5)'); + result["#t >*:nth-child(n-5)"] = query('#t >*:nth-child(n-5)'); + result["#t > *:nth-child(2n-5)"] = query('#t > *:nth-child(2n-5)'); + result["#t>*:nth-child(2n-5)"] = query('#t>*:nth-child(2n-5)'); + result[":nth-child(2)"] = query(':nth-child(2)')[0] === query('script')[1]; + + return result; + }) + .then(function (result) { + // nth-child tests + assert.equal(result["#t > h3:nth-child(odd)"].length, 2); + assert.equal(result["#t h3:nth-child(odd)"].length, 3); + assert.equal(result["#t h3:nth-child(2n+1)"].length, 3); + assert.equal(result["#t h3:nth-child(even)"].length, 1); + assert.equal(result["#t h3:nth-child(2n)"].length, 1); + assert.equal(result["#t h3:nth-child(2n+3)"].length, 1); + assert.equal(result["#t h3:nth-child(1)"].length, 2); + assert.equal(result["#t > h3:nth-child(1)"].length, 1); + assert.equal(result["#t :nth-child(3)"].length, 3); + assert.equal(result["#t > div:nth-child(1)"].length, 0); + assert.equal(result["#t span"].length, 7); + assert.equal(result["#t > *:nth-child(n+10)"].length, 3); + assert.equal(result["#t > *:nth-child(n+12)"].length, 1); + assert.equal(result["#t > *:nth-child(-n+10)"].length, 10); + assert.equal(result["#t > *:nth-child(-2n+10)"].length, 5); + assert.equal(result["#t > *:nth-child(2n+2)"].length, 6); + assert.equal(result["#t > *:nth-child(2n+4)"].length, 5); + assert.equal(result["#t> *:nth-child(2n+4)"].length, 5); + assert.equal(result["#t > *:nth-child(n-5)"].length, 12); + assert.equal(result["#t >*:nth-child(n-5)"].length, 12); + assert.equal(result["#t > *:nth-child(2n-5)"].length, 6); + assert.equal(result["#t>*:nth-child(2n-5)"].length, 6); + // TODO: uncomment when #14879 fixed + // function(){ doh.is(dom.byId('_foo'), result[".foo:nth-child(2)"][0]); }, + assert.isTrue(result[":nth-child(2)"]); + }); + + }, + ":checked pseudo-selector": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result["#t2 > :checked"] = query('#t2 > :checked'); + result["#t2 > input[type=checkbox]:checked"] = + query('#t2 > input[type=checkbox]:checked')[0] === dom.byId('checkbox2'); + result["#t2 > input[type=radio]:checked"] = + query('#t2 > input[type=radio]:checked')[0] === dom.byId('radio2'); + + result["#t2select option:checked"] =query('#t2select option:checked'); + + result["#radio1:disabled"] = query('#radio1:disabled'); + result["#radio1:enabled"] = query('#radio1:enabled'); + result["#radio2:disabled"] = query('#radio2:disabled'); + result["#radio2:enabled"] = query('#radio2:enabled'); + + return result; + }) + .then(function (result) { + assert.equal(result['#t2 > :checked'].length, 2); + assert.isTrue(result['#t2 > input[type=checkbox]:checked']); + assert.isTrue(result['#t2 > input[type=radio]:checked']); + // This :checked selector is only defined for elements that have the checked property, option elements are not specified by the spec (http://www.w3.org/TR/css3-selectors/#checked) and not universally supported + //assert.equal(result['#t2select option:checked'].length, 2); + + assert.equal(result['#radio1:disabled'].length, 1); + assert.equal(result['#radio1:enabled'].length, 0); + assert.equal(result['#radio2:disabled'].length, 0); + assert.equal(result['#radio2:enabled'].length, 1); + }); + + }, + ":empty pseudo-selector": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result["#t > span:empty"] = query('#t > span:empty'); + result["#t span:empty"] = query('#t span:empty'); + result["h3 span:empty"] = query('h3 span:empty'); + result["h3 :not(:empty)"] = query('h3 :not(:empty)'); + + return result; + }) + .then(function (result) { + assert.equal(result['#t > span:empty'].length, 4); + assert.equal(result['#t span:empty'].length, 6); + assert.equal(result['h3 span:empty'].length, 0); + assert.equal(result['h3 :not(:empty)'].length, 1); + }); + + } + }; + } else { + return { + "skipped": function () { + this.skip("out of scope for this selector engine") + } + }; + } + })(), + "acme": (function () { + if (selectors[selectorIdx] == "acme") { + return { + "Case insensitive class selectors - bug #8775, #14874": function () { + // Case insensitive class selectors (#8775, #14874). + // In standards mode documents, querySelectorAll() is case-sensitive about class selectors, + // but acme is case-insensitive for backwards compatibility. + return this.get("remote") + .execute(function () { + var result = {}; + + result[".fooBar"] = query(".fooBar"); + + return result; + }) + .then(function (result) { + assert.equal(result['.fooBar'].length, 1); + }); + }, + "sub-selector parsing": function () { + // TODO: move this test to CSS3 section when #14875 is fixed + return this.get("remote") + .execute(function () { + var result = {}; + + result['#t span.foo:not(span:first-child)'] = query('#t span.foo:not(span:first-child)'); + + return result; + }) + .then(function (result) { + assert.equal(result['#t span.foo:not(span:first-child)'].length, 1); + }); + }, + "special characters in attribute values without backslashes": function () { + // supported by acme but apparently not standard, see http://www.w3.org/TR/CSS21/syndata.html#characters + function attrSpecialCharsNoEscape() { + // bug 10651 + return this.get("remote") + .execute(function () { + var result = {}; + + result["option[value=a+b]"] = query('option[value=a+b]', 'attrSpecialChars'); + result["option[value=a~b]"] = query('option[value=a~b]', 'attrSpecialChars'); + result["option[value=a^b]"] = query('option[value=a^b]', 'attrSpecialChars'); + + return result; + }) + .then(function (result) { + assert.equal(result["option[value=a+b]"].length, 1, "value=a+b"); + assert.equal(result["option[value=a~b]"].length, 1, "value=a~b"); + assert.equal(result["option[value=a^b]"].length, 1, "value=a^b"); + }); + } + }, + "implied * after > (non-standard syntax)": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['#t >'] = query('#t >'); + result['.foo >'] = query('.foo >'); + result['>'] = query('>', 'container'); + result['> .not-there'] = query('> .not-there'); + result['#foo ~'] = query('#foo ~'); + result['#foo~'] = query('#foo~'); + + return result; + }) + .then(function (result) { + assert.equal(result['#t >'].length, 12); + assert.equal(result['.foo >'].length, 3); + assert.equal(result['>'].length, 3); + assert.equal(result['> .not-there'].length, 0); + assert.equal(result['#foo ~'].length, 1); + assert.equal(result['#foo~'].length, 1); + }); + + }, + "implied * before and after + and ~ (non-standard syntax)": function () { + return this.get("remote") + .execute(function () { + var result = {}; + result["+"] = query('+', 'container'); + result["~"] = query('~', 'container'); + return result; + }) + .then(function (result) { + assert.equal(result['+'].length, 1); + assert.equal(result['~'].length, 3); + }); + + }, + "check for correct document order": { + // not sure if this is guaranteed by css3, so putting in acme section + domOrder: function () { + return this.get("remote") + .execute(function () { + var result = {}; + + var inputs = query(".upperclass .lowerclass input"); + + result["notbug"] = inputs[0].id; + result["bug"] = inputs[1].id; + result["checkbox1"] = inputs[2].id; + result["checkbox2"] = inputs[3].id; + result["radio1"] = inputs[4].id; + result["radio2"] = inputs[5].id; + result["radio3"] = inputs[6].id; + + return result; + }) + .then(function (result) { + assert.equal(result["notbug"], "notbug"); + assert.equal(result["bug"], "bug"); + assert.equal(result["checkbox1"], "checkbox1"); + assert.equal(result["checkbox2"], "checkbox2"); + assert.equal(result["radio1"], "radio1"); + assert.equal(result["radio2"], "radio2"); + assert.equal(result["radio3"], "radio3"); + }); + }, + + // TODO: move to css2 section after #7869 fixed for lite engine (on IE) + xml_nthchild: function () { + return this.get("remote") + .execute(function () { + + var result = {}; + var doc = createDocument([ + "", + "One", + "Two", + "Three", + "Four", + "" + ].join("") + ); + var de = doc.documentElement; + + result["result:nth-child(4)"] = query("result:nth-child(4)", de)[0].firstChild.data + + return result; + }) + .then(function (result) { + assert.equal(result["result:nth-child(4)"], "Four", "fourth child"); + }); + } + } + }; + } else { + return { + "skipped": function () { + this.skip("out of scope for this selector engine") + } + } + } + })() + }); + } +}); diff --git a/tests/functional/query/queryQuirks.html b/tests/functional/query/queryQuirks.html new file mode 100644 index 0000000000..6dd0e4dfd5 --- /dev/null +++ b/tests/functional/query/queryQuirks.html @@ -0,0 +1,96 @@ + + + + + + + + +
    +

    Testing dojo/query module.

    +
    +

    h3 span endh3

    + +
    +

    h3

    + + +
    +

    h3

    +

    h3

    + + + + + +
    +
    +
    +
    +
    +
    + + +
    +
    + + + + + + +
    + + + +
    +
    +

    one

    +
    +

    two

    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    + + + + hi + + + + + +
    +
    + + diff --git a/tests/functional/query/queryQuirks.js b/tests/functional/query/queryQuirks.js new file mode 100644 index 0000000000..57cdef43fb --- /dev/null +++ b/tests/functional/query/queryQuirks.js @@ -0,0 +1,949 @@ +// TODO: this file is almost identical to query.js. They should be combined. +define([ + 'intern!object', + 'intern/chai!assert', + 'require' +], function (registerSuite, assert, require) { + var selectors = + [ + "lite", + "css2", + "css2.1", + "css3", + "acme" + ]; + + for (var _selectorIdx = 0; _selectorIdx < selectors.length; _selectorIdx++) { + var selectorIdx = _selectorIdx + registerSuite({ + name: "query with quirks - selector: " + selectors[selectorIdx], + before: function () { + return this.get("remote") + .get(require.toUrl("./queryQuirks.html")) + .setExecuteAsyncTimeout(10000) + .executeAsync(function (selector, send) { + require([ + 'dojo/query!' + selector, + 'dojo/sniff', + 'dojo/dom', + 'dojo/dom-construct', + 'dojo/request/iframe', + 'dojo/domReady!' + ], function (_query, _sniff, _dom, _domConstruct, _iframe) { + query = _query + has = _sniff; + dom = _dom; + domConstruct = _domConstruct; + iframe = _iframe; + + send(); + }) + }, [selectors[selectorIdx]]) + .execute(function () { + window.createDocument = function (xml) { + var fauxXhr = { responseText: xml }; + if ("DOMParser" in window) { + var parser = new DOMParser(); + fauxXhr.responseXML = parser.parseFromString(xml, "text/xml"); + } + // kludge: code from dojo.xhr contentHandler to create doc on IE + var result = fauxXhr.responseXML; + if (has("ie")) { + // Needed for IE6-8 + if ((!result || !result.documentElement)) { + var ms = function (n) { return "MSXML" + n + ".DOMDocument"; }; + var dp = ["Microsoft.XMLDOM", ms(6), ms(4), ms(3), ms(2)]; + array.some(dp, function (p) { + try { + var dom = new ActiveXObject(p); + dom.async = false; + dom.loadXML(fauxXhr.responseText); + result = dom; + } catch (e) { return false; } + return true; + }); + } + } + return result; // DOMDocument + } + }); + + }, + "css2": { + "basic sanity checks": function () { + + return this.get("remote") + .execute(function () { + var result = {}; + + result['h3'] = query('h3'); + result['#t'] = query('#t'); + result['#bug'] = query('#bug'); + result['#t h3'] = query('#t h3'); + result['div#t'] = query('div#t'); + result['div#t h3'] = query('div#t h3'); + result['span#t'] = query('span#t'); + result['.bogus'] = query('.bogus'); + result['.bogus-scoped'] = query('.bogus', dom.byId('container')); + result['#bogus'] = query('#bogus'); + result['#bogus-scoped'] = query('#bogus', dom.byId('container')); + result['#t div > h3'] = query('#t div > h3'); + result['.foo'] = query('.foo'); + result['.foo.bar'] = query('.foo.bar'); + result['.baz'] = query('.baz'); + result['#t > h3'] = query('#t > h3'); + result['null'] = query(null); + + return result; + }).then(function (results) { + assert.equal((results['h3']).length, 4); + assert.equal((results['#t']).length, 1); + assert.equal((results['#bug']).length, 1); + assert.equal((results['#t h3']).length, 4); + assert.equal((results['div#t']).length, 1); + assert.equal((results['div#t h3']).length, 4); + assert.equal((results['span#t']).length, 0); + assert.equal((results['.bogus']).length, 0); + assert.equal((results['.bogus-scoped']).length, 0); + assert.equal((results['#bogus']).length, 0); + assert.equal((results['#bogus-scoped']).length, 0); + assert.equal((results['#t div > h3']).length, 1); + assert.equal((results['.foo']).length, 2); + assert.equal((results['.foo.bar']).length, 1); + assert.equal((results['.baz']).length, 2); + assert.equal((results['#t > h3']).length, 3); + assert.equal((results['null']).length, 0); + }); + }, + "comma1": function () { + return this.get("remote") + .execute(function () { + return query('#baz,#foo,#t'); + }) + .then(function (result) { + assert.equal(result.length, 2); + }); + }, + "comma2": function () { + return this.get("remote") + .execute(function () { + return query('#foo,#baz,#t'); + }) + .then(function (result) { + assert.equal(result.length, 2); + }); + }, + "syntactic equivalents": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result["#t > *"] = query('#t > *'); + result[".foo > *"] = query('.foo > *'); + + return result; + }) + .then(function (result) { + assert.equal(result["#t > *"].length, 12); + assert.equal(result[".foo > *"].length, 3); + }); + }, + "with a root, by ID": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['> *'] = query('> *', 'container'); + result['> *, > h3'] = query('> *, > h3', 'container'); + result['> h3'] = query('> h3', 't'); + + return result; + }) + .then(function (result) { + assert.equal(result['> *'].length, 3); + assert.equal(result['> *, > h3'].length, 3); + assert.equal(result['> h3'].length, 3); + }); + + }, + "compound queries": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['.foo, .bar'] = query('.foo, .bar'); + result['.foo,.bar'] = query('.foo,.bar'); + + return result; + }) + .then(function (result) { + assert.equal(result['.foo, .bar'].length, 2); + assert.equal(result['.foo,.bar'].length, 2); + }); + }, + + "multiple class attribute": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['.foo.bar'] = query('.foo.bar'); + result['.foo'] = query('.foo'); + result['.baz'] = query('.baz'); + + return result; + }) + .then(function (result) { + assert.equal(result['.foo.bar'].length, 1); + assert.equal(result['.foo'].length, 2); + assert.equal(result['.baz'].length, 2); + }); + }, + "case sensitivity": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['span.baz'] = query('span.baz'); + result['sPaN.baz'] = query('sPaN.baz'); + result['SPAN.baz'] = query('SPAN.baz'); + result['.fooBar'] = query('.fooBar'); + + return result; + }) + .then(function (result) { + assert.equal(result['span.baz'].length, 1); + assert.equal(result['sPaN.baz'].length, 1); + assert.equal(result['SPAN.baz'].length, 1); + // For quirks mode, case sensitivity is browser dependent, so querying .fooBar + // may return 1 or 2 entries. See #8775 and #14874 for details. + // assert.equal(result['.fooBar'].length, 1); + }); + }, + "attribute selectors": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['[foo]'] = query('[foo]'); + + return result; + }) + .then(function (result) { + assert.equal(result['[foo]'].length, 3); + }); + }, + "attribute substring selectors": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['[foo$=\"thud\"]'] = query('[foo$=\"thud\"]'); + result['[foo$=thud]'] = query('[foo$=thud]'); + result['[foo$=\"thudish\"]'] = query('[foo$=\"thudish\"]'); + result['#t [foo$=thud]'] = query('#t [foo$=thud]'); + result['#t [title$=thud]'] = query('#t [title$=thud]'); + result['#t span[title$=thud ]'] = query('#t span[title$=thud ]'); + result['[id$=\'55555\']'] = query('[id$=\'55555\']'); + result['[foo~=\"bar\"]'] = query('[foo~=\"bar\"]'); + result['[ foo ~= \"bar\" ]'] = query('[ foo ~= \"bar\" ]'); + result['[foo|=\"bar\"]'] = query('[foo|=\"bar\"]'); + result['[foo|=\"bar-baz\"]'] = query('[foo|=\"bar-baz\"]'); + result['[foo|=\"baz\"]'] = query('[foo|=\"baz\"]'); + + return result; + }) + .then(function (result) { + assert.equal(result['[foo$=\"thud\"]'].length, 1); + assert.equal(result['[foo$=thud]'].length, 1); + assert.equal(result['[foo$=\"thudish\"]'].length, 1); + assert.equal(result['#t [foo$=thud]'].length, 1); + assert.equal(result['#t [title$=thud]'].length, 1); + assert.equal(result['#t span[title$=thud ]'].length, 0); + assert.equal(result['[id$=\'55555\']'].length, 1); + assert.equal(result['[foo~=\"bar\"]'].length, 2); + assert.equal(result['[ foo ~= \"bar\" ]'].length, 2); + assert.equal(result['[foo|=\"bar\"]'].length, 2); + assert.equal(result['[foo|=\"bar-baz\"]'].length, 1); + assert.equal(result['[foo|=\"baz\"]'].length, 0); + }); + }, + "descendant selectors": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['> *'] = query('> *', 'container'); + result['> [qux]'] = query('> [qux]', 'container'); + result['> [qux][0].id'] = query('> [qux]', 'container')[0].id; + result['> [qux][1].id'] = query('> [qux]', 'container')[1].id; + result['>*'] = query('>*', 'container'); + result['#bug[0].value'] = query('#bug')[0].value; + + return result; + }) + .then(function (result) { + assert.equal(result['> *'].length, 3); + assert.equal(result['> [qux]'].length, 2); + assert.equal(result['> [qux][0].id'], "child1"); + assert.equal(result['> [qux][1].id'], "child3"); + assert.equal(result['>*'].length, 3); + assert.equal(result['#bug[0].value'], "passed"); + }); + }, + "bug 9071": function () { + // bug 9071 + return this.get("remote") + .execute(function () { + var result = {}; + + result['t4 a'] = query('a', 't4'); + result['t4 p a'] = query('p a', 't4'); + result['t4 div p'] = query('div p', 't4'); + result['t4 div p a'] = query('div p a', 't4'); + result['t4 .subA'] = query('.subA', 't4'); + result['t4 .subP .subA'] = query('.subP .subA', 't4'); + result['t4 .subDiv .subP'] = query('.subDiv .subP', 't4'); + result['t4 .subDiv .subP .subA'] = query('.subDiv .subP .subA', 't4'); + + return result; + }) + .then(function (result) { + assert.equal(result['t4 a'].length, 2); + assert.equal(result['t4 p a'].length, 2); + assert.equal(result['t4 div p'].length, 2); + assert.equal(result['t4 div p a'].length, 2); + assert.equal(result['t4 .subA'].length, 2); + assert.equal(result['t4 .subP .subA'].length, 2); + assert.equal(result['t4 .subDiv .subP'].length, 2); + assert.equal(result['t4 .subDiv .subP .subA'].length, 2); + + }); + }, + "failed scope arg": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['thinger *'] = query('*', 'thinger'); + result['div#foo'] = query('div#foo'); + + return result; + }) + .then(function (result) { + assert.equal(result['thinger *'].length, 0); + assert.equal(result['div#foo'].length, 0); + }); + }, + + "escaping special characters with quotes": function () { + // http://www.w3.org/TR/CSS21/syndata.html#strings + // bug 10651 + return this.get("remote") + .execute(function () { + var result = {}; + + result['option[value="a+b"]'] = query('option[value="a+b"]', "attrSpecialChars"); + result['option[value="a~b"]'] = query('option[value="a~b"]', "attrSpecialChars"); + result['option[value="a^b"]'] = query('option[value="a^b"]', "attrSpecialChars"); + result['option[value="a,b"]'] = query('option[value="a,b"]', "attrSpecialChars"); + + return result; + }) + .then(function (result) { + assert.equal(result['option[value="a+b"]'].length, 1); + assert.equal(result['option[value="a~b"]'].length, 1); + assert.equal(result['option[value="a^b"]'].length, 1); + assert.equal(result['option[value="a,b"]'].length, 1); + }); + }, + "selector with substring that contains equals sign - bug 7479": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['a[href*=\'foo=bar\']'] = query("a[href*='foo=bar']", 'attrSpecialChars'); + + return result; + }) + .then(function (result) { + assert.equal(result['a[href*=\'foo=bar\']'].length, 1); + }); + }, + "selector with substring that contains brackets - bug 9193, 11189, 13084": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['input[name="data[foo][bar]"]'] = query('input[name="data[foo][bar]"]', "attrSpecialChars"); + result['input[name="foo[0].bar'] = query('input[name="foo[0].bar"]', "attrSpecialChars"); + result['input[name="test[0]"]'] = query('input[name="test[0]"]', "attrSpecialChars"); + + return result; + }) + .then(function (result) { + assert.equal(result['input[name="data[foo][bar]"]'].length, 1); + assert.equal(result['input[name="foo[0].bar'].length, 1); + assert.equal(result['input[name="test[0]"]'].length, 1); + }); + }, + "escaping special characters with backslashes": function () { + //http://www.w3.org/TR/CSS21/syndata.html#characters + // selector with substring that contains brackets (bug 9193, 11189, 13084) + // eval() converts 4 backslashes --> 1 by the time dojo.query() sees the string + return this.get("remote") + .execute(function () { + var result = {}; + + result['input[name=data\\[foo\\]\\[bar\\]]'] = query("input[name=data\\[foo\\]\\[bar\\]]", "attrSpecialChars"); + result['input[name=foo\\[0\\]\\.bar]'] = query("input[name=foo\\[0\\]\\.bar]", "attrSpecialChars"); + + return result; + }) + .then(function (result) { + assert.equal(result['input[name=data\\[foo\\]\\[bar\\]]'].length, 1); + assert.equal(result['input[name=foo\\[0\\]\\.bar]'].length, 1); + }); + }, + "crossDocumentQuery": function () { + return this.get("remote") + .execute(function () { + var result = {}; + var t3 = window.frames["t3"]; + var doc = iframe.doc(t3); + doc.open(); + doc.write([ + "", + "inner document", + "", + "", + "
    ", + "

    h3", + " ", + " span", + " ", + " inner", + " ", + " inner-inner", + " ", + " ", + " ", + " endh3", + "

    ", + "
    ", + "", + "" + ].join("")); + doc.close(); + + result["st1 h3"] = query('h3', dom.byId("st1", doc)); + // use a long query to force a test of the XPath system on FF. see bug #7075 + result['st1 h3 > span > span > span'] = query('h3 > span > span > span', dom.byId("st1", doc)); + result['body.children[0] h3 > span > span > span'] = query('h3 > span > span > span', doc.body.children[0]); + + return result; + }) + .then(function (result) { + assert.equal(result['st1 h3'].length, 1); + assert.equal(result['st1 h3 > span > span > span'].length, 1); + assert.equal(result['body.children[0] h3 > span > span > span'].length, 1); + }); + }, + "escaping of ':' chars inside an ID": { + "silly_IDs1": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result["silly:id::with:colons"] = document.getElementById("silly:id::with:colons"); + result["#silly\\:id\\:\\:with\\:colons"] = query("#silly\\:id\\:\\:with\\:colons"); + result["#silly\\~id"] = query("#silly\\~id"); + + return result; + }) + .then(function (result) { + assert.isNotNull(result["silly:id::with:colons"], "getElementById"); + assert.equal(result["#silly\\:id\\:\\:with\\:colons"].length, 1, "query(\"#silly\\:id\\:\\:with\\:colons\")"); + assert.equal(result["#silly\\~id"].length, 1, "query(\"#silly\\~id\")"); + }); + } + }, + "xml": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + var doc = createDocument([ + "", + "One", + "Two", + "Three", + "Four", + "" + ].join("") + ); + var de = doc.documentElement; + + result["result"] = query("result", de).length; + result["result>nested"] = query("result>nested", de).length; + result["Result"] = query("Result", de).length; + result["RESULT"] = query("RESULT", de).length; + result["resulT"] = query("resulT", de).length; + result["rEsulT"] = query("rEsulT", de).length; + + return result; + }) + .then(function (result) { + assert.equal(result["result"], 2, "all lower"); + + //assert.equal(result["result>nested", de).length, 1, "nested XML"); + assert.equal(result["Result"], 1, "mixed case"); + assert.equal(result["RESULT"], 1, "all upper"); + assert.equal(result["resulT"], 0, "no match"); + assert.equal(result["rEsulT"], 0, "no match"); + }); + + }, + "xml_attrs": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + if (!has("ie")) { // remove if() when #14880 is fixed + var doc = createDocument([ + "", + "ONE", + "Two", + "" + ].join("")); + var de = doc.documentElement; + + result["RESULT"] = query("RESULT", de).length; + result["RESULT[THINGER]"] = query("RESULT[THINGER]", de).length; + result["RESULT[thinger]"] = query("RESULT[thinger]", de).length; + result["RESULT[thinger=blah]"] = query("RESULT[thinger=blah]", de).length; + result["RESULT > CHILD"] = query("RESULT > CHILD", de).length; + + } else { + this.skip("do not run in IE till bug #14880 is fixed"); + } + return result; + }) + .then(function (result) { + assert.equal(result["RESULT"], 2, "result elements"); + assert.equal(result["RESULT[THINGER]"], 0, "result elements with attrs (wrong)"); + assert.equal(result["RESULT[thinger]"], 2, "result elements with attrs"); + assert.equal(result["RESULT[thinger=blah]"], 1, "result elements with attr value"); + assert.equal(result["RESULT > CHILD"], 1, "Using child operator"); + }); + }, + "sort": function () { + return this.get("remote") + .execute(function () { + var i = query("div"); + // smoke test + i.sort(function (a, b) { return 1; }); + return true; + }) + .then(function (result) { + assert.isTrue(result); + }); + + }, + "document_fragment": function () { + return this.get("remote") + .execute(function () { + var result = {}; + var detachedDom = domConstruct.toDom(""); + var documentFragment = domConstruct.toDom(" "); + var detachedDom2 = domConstruct.toDom(""); + var documentFragment2 = domConstruct.toDom(" "); + + result["#b detached"] = query("#b", detachedDom); + result["#b detached first child"] = query("#b", detachedDom.firstChild); + result["#b fragment"] = query("#b", documentFragment); + + // In IE8 in quirks mode there is no text node on the document fragment + if (has('ie') === 8) { + result["#b fragment child"] = query("#b", documentFragment.childNodes[1]); + } else { + result["#b fragment child"] = query("#b", documentFragment.childNodes[2]); + } + + result["#b detached2"] = query("#b", detachedDom2); + result["#b fragment2"] = query("#b", documentFragment2); + + return result; + }) + .then(function (result) { + assert.equal(result["#b detached"].length, 1); + assert.equal(result["#b detached first child"].length, 1); + assert.equal(result["#b fragment"].length, 1); + assert.equal(result["#b fragment child"].length, 1); + assert.equal(result["#b detached2"].length, 0); + assert.equal(result["#b fragment2"].length, 0); + }); + } + }, + "css2.1": function () { + if (/css2.1|css3|acme/.test(selectors[selectorIdx])) { + return this.get("remote") + .execute(function () { + var result = {}; + + result["h1:first-child"] = query('h1:first-child'); + result["h3:first-child"] = query('h3:first-child'); + result[".foo+ span"] = query('.foo+ span'); + result[".foo+span"] = query('.foo+span'); + result[".foo +span"] = query('.foo +span'); + result[".foo + span"] = query('.foo + span'); + + return result; + }) + .then(function (result) { + // first-child + assert.equal(result["h1:first-child"].length, 1); + assert.equal(result["h3:first-child"].length, 2); + + // + sibling selector + assert.equal(result[".foo+ span"].length, 1); + assert.equal(result[".foo+span"].length, 1); + assert.equal(result[".foo +span"].length, 1); + assert.equal(result[".foo + span"].length, 1); + }); + + } else { + this.skip("out of scope for this selector engine"); + } + }, + "css3": (function () { + if (/css3|acme/.test(selectors[selectorIdx])) { + return { + "sub-selector parsing": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result["#t span.foo:not(:first-child)"] = query('#t span.foo:not(:first-child)'); + + return result; + }) + .then(function (result) { + assert.equal(result['#t span.foo:not(:first-child)'].length, 1); + }); + + }, + "~ sibling selector": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result[".foo~ span"] = query('.foo~ span'); + result[".foo~span"] = query('.foo~span'); + result[".foo ~span"] = query('.foo ~span'); + result[".foo ~ span"] = query('.foo ~ span'); + result["#foo~ *"] = query('#foo~ *'); + result["#foo ~*"] = query('#foo ~*'); + result["#foo ~*"] = query('#foo ~*'); + result["#foo ~ *"] = query('#foo ~ *'); + + return result; + }) + .then(function (result) { + assert.equal(result[".foo~ span"].length, 4); + assert.equal(result[".foo~span"].length, 4); + assert.equal(result[".foo ~span"].length, 4); + assert.equal(result[".foo ~ span"].length, 4); + assert.equal(result["#foo~ *"].length, 1); + assert.equal(result["#foo ~*"].length, 1); + assert.equal(result["#foo ~*"].length, 1); + assert.equal(result["#foo ~ *"].length, 1); + }); + + }, + "nth-child tests": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result["#t > h3:nth-child(odd)"] = query('#t > h3:nth-child(odd)'); + result["#t h3:nth-child(odd)"] = query('#t h3:nth-child(odd)'); + result["#t h3:nth-child(2n+1)"] = query('#t h3:nth-child(2n+1)'); + result["#t h3:nth-child(even)"] = query('#t h3:nth-child(even)'); + result["#t h3:nth-child(2n)"] = query('#t h3:nth-child(2n)'); + result["#t h3:nth-child(2n+3)"] = query('#t h3:nth-child(2n+3)'); + result["#t h3:nth-child(1)"] = query('#t h3:nth-child(1)'); + result["#t > h3:nth-child(1)"] = query('#t > h3:nth-child(1)'); + result["#t :nth-child(3)"] = query('#t :nth-child(3)'); + result["#t > div:nth-child(1)"] = query('#t > div:nth-child(1)'); + result["#t :nth-child(3)"] = query('#t :nth-child(3)'); + result["#t > div:nth-child(1)"] = query('#t > div:nth-child(1)'); + result["#t span"] = query('#t span'); + result["#t > *:nth-child(n+10)"] = query('#t > *:nth-child(n+10)'); + result["#t > *:nth-child(n+12)"] = query('#t > *:nth-child(n+12)'); + result["#t > *:nth-child(-n+10)"] = query('#t > *:nth-child(-n+10)'); + result["#t > *:nth-child(-2n+10)"] = query('#t > *:nth-child(-2n+10)'); + result["#t > *:nth-child(2n+2)"] = query('#t > *:nth-child(2n+2)'); + result["#t > *:nth-child(2n+4)"] = query('#t > *:nth-child(2n+4)'); + result["#t> *:nth-child(2n+4)"] = query('#t> *:nth-child(2n+4)'); + result["#t > *:nth-child(n-5)"] = query('#t > *:nth-child(n-5)'); + result["#t >*:nth-child(n-5)"] = query('#t >*:nth-child(n-5)'); + result["#t > *:nth-child(2n-5)"] = query('#t > *:nth-child(2n-5)'); + result["#t>*:nth-child(2n-5)"] = query('#t>*:nth-child(2n-5)'); + result[":nth-child(2)"] = query(':nth-child(2)')[0] === query('script')[1]; + + return result; + }) + .then(function (result) { + // nth-child tests + assert.equal(result["#t > h3:nth-child(odd)"].length, 2); + assert.equal(result["#t h3:nth-child(odd)"].length, 3); + assert.equal(result["#t h3:nth-child(2n+1)"].length, 3); + assert.equal(result["#t h3:nth-child(even)"].length, 1); + assert.equal(result["#t h3:nth-child(2n)"].length, 1); + assert.equal(result["#t h3:nth-child(2n+3)"].length, 1); + assert.equal(result["#t h3:nth-child(1)"].length, 2); + assert.equal(result["#t > h3:nth-child(1)"].length, 1); + assert.equal(result["#t :nth-child(3)"].length, 3); + assert.equal(result["#t > div:nth-child(1)"].length, 0); + assert.equal(result["#t span"].length, 7); + assert.equal(result["#t > *:nth-child(n+10)"].length, 3); + assert.equal(result["#t > *:nth-child(n+12)"].length, 1); + assert.equal(result["#t > *:nth-child(-n+10)"].length, 10); + assert.equal(result["#t > *:nth-child(-2n+10)"].length, 5); + assert.equal(result["#t > *:nth-child(2n+2)"].length, 6); + assert.equal(result["#t > *:nth-child(2n+4)"].length, 5); + assert.equal(result["#t> *:nth-child(2n+4)"].length, 5); + // TODO: uncomment these two tests when #14879 fixed + //assert.equal(result["#t > *:nth-child(n-5)"].length, 12); + //assert.equal(result["#t >*:nth-child(n-5)"].length, 12); + assert.equal(result["#t > *:nth-child(2n-5)"].length, 6); + assert.equal(result["#t>*:nth-child(2n-5)"].length, 6); + // TODO: uncomment when #14879 fixed + // function(){ doh.is(dom.byId('_foo'), result[".foo:nth-child(2)"][0]); }, + assert.isTrue(result[":nth-child(2)"]); + }); + + }, + ":checked pseudo-selector": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result["#t2 > :checked"] = query('#t2 > :checked'); + result["#t2 > input[type=checkbox]:checked"] = + query('#t2 > input[type=checkbox]:checked')[0] === dom.byId('checkbox2'); + result["#t2 > input[type=radio]:checked"] = + query('#t2 > input[type=radio]:checked')[0] === dom.byId('radio2'); + + result["#t2select option:checked"] = query('#t2select option:checked'); + + result["#radio1:disabled"] = query('#radio1:disabled'); + result["#radio1:enabled"] = query('#radio1:enabled'); + result["#radio2:disabled"] = query('#radio2:disabled'); + result["#radio2:enabled"] = query('#radio2:enabled'); + + return result; + }) + .then(function (result) { + assert.equal(result['#t2 > :checked'].length, 2); + assert.isTrue(result['#t2 > input[type=checkbox]:checked']); + assert.isTrue(result['#t2 > input[type=radio]:checked']); + // This :checked selector is only defined for elements that have the checked property, option elements are not specified by the spec (http://www.w3.org/TR/css3-selectors/#checked) and not universally supported + //assert.equal(result['#t2select option:checked'].length, 2); + + assert.equal(result['#radio1:disabled'].length, 1); + assert.equal(result['#radio1:enabled'].length, 0); + assert.equal(result['#radio2:disabled'].length, 0); + assert.equal(result['#radio2:enabled'].length, 1); + }); + + }, + ":empty pseudo-selector": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result["#t > span:empty"] = query('#t > span:empty'); + result["#t span:empty"] = query('#t span:empty'); + result["h3 span:empty"] = query('h3 span:empty'); + result["h3 :not(:empty)"] = query('h3 :not(:empty)'); + + return result; + }) + .then(function (result) { + assert.equal(result['#t > span:empty'].length, 4); + assert.equal(result['#t span:empty'].length, 6); + assert.equal(result['h3 span:empty'].length, 0); + assert.equal(result['h3 :not(:empty)'].length, 1); + }); + + } + }; + } else { + return { + "skipped": function () { + this.skip("out of scope for this selector engine") + } + }; + } + })(), + "acme": (function () { + if (selectors[selectorIdx] == "acme") { + return { + "Case insensitive class selectors - bug #8775, #14874": function () { + // Case insensitive class selectors (#8775, #14874). + // Acme is case-insensitive for backwards compatibility. + return this.get("remote") + .execute(function () { + var result = {}; + + result[".fooBar"] = query(".fooBar"); + + return result; + }) + .then(function (result) { + assert.equal(result['.fooBar'].length, 1); + }); + }, + "sub-selector parsing": function () { + // TODO: move this test to CSS3 section when #14875 is fixed + return this.get("remote") + .execute(function () { + var result = {}; + + result['#t span.foo:not(span:first-child)'] = query('#t span.foo:not(span:first-child)'); + + return result; + }) + .then(function (result) { + assert.equal(result['#t span.foo:not(span:first-child)'].length, 1); + }); + }, + "special characters in attribute values without backslashes": function () { + // supported by acme but apparently not standard, see http://www.w3.org/TR/CSS21/syndata.html#characters + function attrSpecialCharsNoEscape() { + // bug 10651 + return this.get("remote") + .execute(function () { + var result = {}; + + result["option[value=a+b]"] = query('option[value=a+b]', 'attrSpecialChars'); + result["option[value=a~b]"] = query('option[value=a~b]', 'attrSpecialChars'); + result["option[value=a^b]"] = query('option[value=a^b]', 'attrSpecialChars'); + + return result; + }) + .then(function (result) { + assert.equal(result["option[value=a+b]"].length, 1, "value=a+b"); + assert.equal(result["option[value=a~b]"].length, 1, "value=a~b"); + assert.equal(result["option[value=a^b]"].length, 1, "value=a^b"); + }); + } + }, + "implied * after > (non-standard syntax)": function () { + return this.get("remote") + .execute(function () { + var result = {}; + + result['#t >'] = query('#t >'); + result['.foo >'] = query('.foo >'); + result['>'] = query('>', 'container'); + result['> .not-there'] = query('> .not-there'); + result['#foo ~'] = query('#foo ~'); + result['#foo~'] = query('#foo~'); + + return result; + }) + .then(function (result) { + assert.equal(result['#t >'].length, 12); + assert.equal(result['.foo >'].length, 3); + assert.equal(result['>'].length, 3); + assert.equal(result['> .not-there'].length, 0); + assert.equal(result['#foo ~'].length, 1); + assert.equal(result['#foo~'].length, 1); + }); + + }, + "implied * before and after + and ~ (non-standard syntax)": function () { + return this.get("remote") + .execute(function () { + var result = {}; + result["+"] = query('+', 'container'); + result["~"] = query('~', 'container'); + return result; + }) + .then(function (result) { + assert.equal(result['+'].length, 1); + assert.equal(result['~'].length, 3); + }); + + }, + "check for correct document order": { + // not sure if this is guaranteed by css3, so putting in acme section + domOrder: function () { + return this.get("remote") + .execute(function () { + var result = {}; + + var inputs = query(".upperclass .lowerclass input"); + + result["notbug"] = inputs[0].id; + result["bug"] = inputs[1].id; + result["checkbox1"] = inputs[2].id; + result["checkbox2"] = inputs[3].id; + result["radio1"] = inputs[4].id; + result["radio2"] = inputs[5].id; + result["radio3"] = inputs[6].id; + + return result; + }) + .then(function (result) { + assert.equal(result["notbug"], "notbug"); + assert.equal(result["bug"], "bug"); + assert.equal(result["checkbox1"], "checkbox1"); + assert.equal(result["checkbox2"], "checkbox2"); + assert.equal(result["radio1"], "radio1"); + assert.equal(result["radio2"], "radio2"); + assert.equal(result["radio3"], "radio3"); + }); + }, + + // TODO: move to css2 section after #7869 fixed for lite engine (on IE) + xml_nthchild: function () { + return this.get("remote") + .execute(function () { + + var result = {}; + var doc = createDocument([ + "", + "One", + "Two", + "Three", + "Four", + "" + ].join("") + ); + var de = doc.documentElement; + + result["result:nth-child(4)"] = query("result:nth-child(4)", de)[0].firstChild.data + + return result; + }) + .then(function (result) { + assert.equal(result["result:nth-child(4)"], "Four", "fourth child"); + }); + } + } + }; + } else { + return { + "skipped": function () { + this.skip("out of scope for this selector engine") + } + } + } + })() + }); + } +}); diff --git a/tests/functional/query/xml.html b/tests/functional/query/xml.html new file mode 100644 index 0000000000..9ac78b1872 --- /dev/null +++ b/tests/functional/query/xml.html @@ -0,0 +1,14 @@ + + + + Test dojo.query() on XHTML/XML doc + + + + +

    + + \ No newline at end of file diff --git a/tests/functional/query/xml.js b/tests/functional/query/xml.js new file mode 100644 index 0000000000..21923a05d0 --- /dev/null +++ b/tests/functional/query/xml.js @@ -0,0 +1,52 @@ +define([ + 'intern!object', + 'intern/chai!assert', + 'require' +], function (registerSuite, assert, require) { + + var baseId = "xml", + uniqueId = 0; + + function getId() { + return baseId + uniqueId++; + } + + registerSuite({ + name: "dojo/query with xml documents", + before: function () { + return this.get("remote") + .get(require.toUrl("./xml.html")) + .setExecuteAsyncTimeout(10000) + .executeAsync(function (send) { + require([ + 'dojo/query', + 'dojo/domReady!' + ], function (_query) { + query = _query; + + send(); + }) + }) + .then(function () { }); + }, + "matched nodes": function () { + var nodeId = getId(); + return this.get("remote") + .execute(function (nodeId) { + var result = {}; + + var node = document.createElement("p"); + node.id = nodeId; + document.body.appendChild(node); + + result["p#"] = query("p#" + nodeId); + + return result; + }, [nodeId]) + .then(function (result) { + assert.equal(result["p#"].length, 1, "matched nodes"); + }) + } + }); + +}); diff --git a/tests/unit/NodeList-manipulate.js b/tests/unit/NodeList-manipulate.js index a5a32164a8..e2ab7a6015 100644 --- a/tests/unit/NodeList-manipulate.js +++ b/tests/unit/NodeList-manipulate.js @@ -1,12 +1,1156 @@ define([ - 'intern!object', - 'intern/chai!assert' -], function (registerSuite, assert) { - registerSuite({ - name: 'dojo/NodeList-manipulate', - - 'TODO: convert tests': function () { - assert.fail(); - } - }); + 'intern!object', + 'intern/chai!assert', + 'sinon', + '../../NodeList', + '../../dom-attr', + '../../dom-construct', + '../../query', + '../../NodeList-manipulate', + '../../NodeList-traverse' +], function (registerSuite, assert, sinon, NodeList, attr, construct, query) { + registerSuite({ + name: 'dojo/NodeList-manipulate', + + // Test this private method because a lot of public methods defer to it. + // Better to test all in one place so that the consumers can rely on it to "do the right thing" + // instead of checking implementation details themselves + "_placeMultiple": { + "returns original node list": function () { + //arrange + var nodeList = new NodeList(); + + //act + var result = nodeList._placeMultiple(document.createElement("div"), "last"); + + //assert + assert.strictEqual(result, nodeList); + + }, + "string + string calls dojo/dom-construct::place with correct arguments": function () { + //arrange + var nodes = + [ + document.createElement("input"), + document.createElement("input") + ], + nodeList = new NodeList(nodes), + queryResults = [ + document.createElement("span"), + document.createElement("span") + ], + container = document.createElement("div"), + mock = sinon.spy(construct, "place"), + position = "last"; + + for (var i in nodes) { + nodes[i].className = "class" + i; + } + + for (var i in queryResults) { + container.appendChild(queryResults[i]); + } + + document.body.appendChild(container); + + //act + nodeList._placeMultiple("span", position); + + //assert + + //last node in nodelist placed with dojo/dom-construct::place into first query result node + assert.deepEqual(mock.args[0], [nodes[1], queryResults[0], position]); + //addiitional nodes in nodelist place into first query result before the last node + assert.equal(nodes[1].previousSibling, nodes[0]); + + //last node in nodelist is cloned and that clone is placed with dojo/dom-construct::place into additional query result nodes + assert.notEqual(mock.args[1][0], nodes[1]); + assert.equal(mock.args[1][0].outerHTML, nodes[1].outerHTML); + + //addiitional nodes in nodelist place into first query result before the last node + assert.notEqual(queryResults[1].children[1], nodes[1]); + assert.equal(queryResults[1].children[1].outerHTML, nodes[1].outerHTML); + + mock.restore(); + + }, + "Node + string calls dojo/dom-construct::place with correct arguments": function () { + //arrange + var nodes = + [ + document.createElement("input"), + document.createElement("input") + ], + nodeList = new NodeList(nodes), + queryNode = document.createElement("span"), + container = document.createElement("div"), + mock = sinon.spy(construct, "place"), + position = "last"; + + for (var i in nodes) { + nodes[i].className = "class" + i; + } + + container.appendChild(queryNode); + + document.body.appendChild(container); + + //act + nodeList._placeMultiple(queryNode, position); + + //assert + + //last node in nodelist placed with dojo/dom-construct::place into queryNode + assert.deepEqual(mock.args[0], [nodes[1], queryNode, position]); + //addiitional nodes in nodelist place into queryNode before the last node + assert.equal(nodes[1].previousSibling, nodes[0]); + + mock.restore(); + + }, + "NodeList + string calls dojo/dom-construct::place with correct arguments": function () { + //arrange + var nodes = + [ + document.createElement("input"), + document.createElement("input") + ], + nodeList = new NodeList(nodes), + queryResults = [ + document.createElement("span"), + document.createElement("span") + ], + queryNodeList = new NodeList(queryResults), + container = document.createElement("div"), + mock = sinon.spy(construct, "place"), + position = "last"; + + for (var i in nodes) { + nodes[i].className = "class" + i; + } + + for (var i in queryResults) { + container.appendChild(queryResults[i]); + } + + document.body.appendChild(container); + + //act + nodeList._placeMultiple(queryNodeList, position); + + //assert + + //last node in nodelist placed with dojo/dom-construct::place into first query result node + assert.deepEqual(mock.args[0], [nodes[1], queryResults[0], position]); + //addiitional nodes in nodelist place into first query result before the last node + assert.equal(nodes[1].previousSibling, nodes[0]); + + //last node in nodelist is cloned and that clone is placed with dojo/dom-construct::place into additional query result nodes + assert.notEqual(mock.args[1][0], nodes[1]); + assert.equal(mock.args[1][0].outerHTML, nodes[1].outerHTML); + + //addiitional nodes in nodelist place into first query result before the last node + assert.notEqual(queryResults[1].children[1], nodes[1]); + assert.equal(queryResults[1].children[1].outerHTML, nodes[1].outerHTML); + + mock.restore(); + } + }, + "innerHTML()": { + + "when argument present => delegate to addContent": function () { + //arrange + var expected = "foo", + argument = "bar", + nodes = ["bar", "baz"], + nodeList = new NodeList(nodes), + mock = sinon.stub(nodeList, "addContent").returns(expected); + + //act + var result = nodeList.innerHTML(argument); + + //assert + assert.equal(result, expected); + assert.deepEqual(mock.args[0], [argument, "only"]); + + mock.restore(); + + }, + "when no argument, return first nodes innerHTML": function () { + //arrange + var node = document.createElement("div"), + otherNode = document.createElement("div"), + expected = "the expected result", + nodeList = new NodeList([node, otherNode]); + + node.innerHTML = expected; + otherNode = "this is not the expected content"; + + //act + var result = nodeList.innerHTML(); + + //assert + assert.equal(result, expected); + } + }, + "text()": { + "string => attr.set": function () { + //arrange + var nodes = [ + document.createElement("div"), + document.createElement("div") + ], + nodeList = new NodeList(nodes), + expected = "the expected content", + mock = sinon.spy(attr, "set"); + + //act + var result = nodeList.text(expected); + + //assert + for (var i in nodes) { + assert.deepEqual(mock.args[i], [nodes[i], "textContent", expected]); + } + assert.equal(result, nodeList); + + mock.restore(); + + }, + "no args => attr.get": function () { + //arrange + var nodes = [ + document.createElement("div"), + document.createElement("div") + ], + nodeList = new NodeList(nodes), + expected = [ + "the first expected content", + "the second expected content" + ], + mock = sinon.stub(attr, "get"); + + for (var i in nodes) { + mock.withArgs(nodes[i]).returns(expected[i]); + } + + //act + var result = nodeList.text(); + + //assert + assert.equal(result, expected[0] + expected[1]); + for (var i in nodes) { + assert.deepEqual(mock.args[i], [nodes[i], "textContent"]); + } + + mock.restore(); + } + + }, + "val()": { + "empty nodelist::val() = undefined": function () { + //arrange + var nodeList = new NodeList(); + + //act + var result = nodeList.val(); + + //assert + assert.isUndefined(result); + + }, + "nodeList([, ...])::val() = array of selected options": function () { + //arrange + var expected = ["blue", "yellow"], + notExpected = "red", + node = document.createElement("select"), + notSelectedOption = document.createElement("option"), + firstSelectedOption = document.createElement("option"), + secondSelectedOption = document.createElement("option"), + nodeList = new NodeList([node]); + + node.multiple = true; + notSelectedOption.value = notExpected; + firstSelectedOption.value = expected[0]; + secondSelectedOption.value = expected[1]; + + node.add(firstSelectedOption); + node.add(notSelectedOption); + node.add(secondSelectedOption); + + firstSelectedOption.selected = true; + secondSelectedOption.selected = true; + + //act + var result = nodeList.val(); + + //assert + assert.deepEqual(result, expected); + + }, + "nodeList([, ])::val(string) => sets the value of the input elements": function () { + //arrange + var expected = "the value", + nodes = [ + document.createElement("input"), + document.createElement("input") + ], + nodeList = new NodeList(nodes); + + for (var i in nodes) { + nodes[i].value = "the old value"; + } + + //act + var result = nodeList.val(expected); + + //assert + for (var i in nodes) { + assert.equal(expected, nodes[i].value); + } + assert.equal(result, nodeList); + + }, + "nodeList([, ])::val(array) => sets the value of the input elements": function () { + //arrange + var expected = [ + "the first value", + "the second value" + ], + nodes = [ + document.createElement("input"), + document.createElement("input") + ], + nodeList = new NodeList(nodes); + + for (var i in nodes) { + nodes[i].value = "the old value"; + } + + //act + var result = nodeList.val(expected); + + //assert + for (var i in nodes) { + assert.equal(expected[i], nodes[i].value); + } + assert.equal(result, nodeList); + }, + "nodeList([, ])::val(string) => selects correct elements": function () { + //arrange + var expected = "the value", + nodeToCheck = document.createElement("input"), + nodeToNotCheck = document.createElement("input"), + nodes = [nodeToNotCheck, nodeToCheck], + nodeList = new NodeList(nodes); + + for (var i in nodes) { + nodes[i].type = "checkbox"; + } + + nodeToCheck.value = expected; + nodeToNotCheck.value = "not expected value"; + + nodeToCheck.checked = false; + nodeToNotCheck.checked = true; + + //act + var result = nodeList.val(expected); + + //assert + assert.isTrue(nodeToCheck.checked); + assert.isFalse(nodeToNotCheck.checked); + assert.equal(result, nodeList); + + }, + "nodeList([])::val(string) => selects correct elements": function () { + //arrange + var expected = "the value", + nodeToCheck = document.createElement("input"), + nodeToNotCheck = document.createElement("input"), + nodes = [nodeToNotCheck, nodeToCheck], + nodeList = new NodeList(nodes); + + for (var i in nodes) { + nodes[i].type = "radio"; + nodes[i].name = "theName" + i; + } + + nodeToCheck.value = expected; + nodeToNotCheck.value = "not expected value"; + + nodeToCheck.checked = false; + nodeToNotCheck.checked = true; + + //act + var result = nodeList.val(expected); + + //assert + assert.isTrue(nodeToCheck.checked); + assert.isFalse(nodeToNotCheck.checked); + assert.equal(result, nodeList); + + } + }, + "append()": { + "any => this.addContent(any, 'last')": function () { + //arrange + var arg = { foo: "bar" }, + expected = "the result", + nodeList = new NodeList(), + mock = sinon.stub(nodeList, "addContent").returns(expected); + + //act + var result = nodeList.append(arg); + + //assert + assert.deepEqual(mock.args[0], [arg, "last"]); + assert.equal(result, expected); + + mock.restore(); + + } + }, + "appendTo()": { + "string => this._placeMultiple(string, 'last')": function () { + //arrange + var arg = { foo: "bar" }, + expected = "the result", + nodeList = new NodeList(), + mock = sinon.stub(nodeList, "_placeMultiple").returns(expected); + + //act + var result = nodeList.appendTo(arg); + + //assert + assert.deepEqual(mock.args[0], [arg, "last"]); + assert.equal(result, expected); + + mock.restore(); + + } + }, + "prepend()": { + "string => this.prepend(string, 'first')": function () { + //arrange + var arg = { foo: "bar" }, + expected = "the result", + nodeList = new NodeList(), + mock = sinon.stub(nodeList, "addContent").returns(expected); + + //act + var result = nodeList.prepend(arg); + + //assert + assert.deepEqual(mock.args[0], [arg, "first"]); + assert.equal(result, expected); + + mock.restore(); + + } + }, + "prependTo()": { + "string => this._placeMultiple(string, 'first')": function () { + //arrange + var arg = { foo: "bar" }, + expected = "the result", + nodeList = new NodeList(), + mock = sinon.stub(nodeList, "_placeMultiple").returns(expected); + + //act + var result = nodeList.prependTo(arg); + + //assert + assert.deepEqual(mock.args[0], [arg, "first"]); + assert.equal(result, expected); + + mock.restore(); + + } + }, + "after()": { + "string => this.after(string, 'after')": function () { + //arrange + var arg = { foo: "bar" }, + expected = "the result", + nodeList = new NodeList(), + mock = sinon.stub(nodeList, "addContent").returns(expected); + + //act + var result = nodeList.after(arg); + + //assert + assert.deepEqual(mock.args[0], [arg, "after"]); + assert.equal(result, expected); + + mock.restore(); + + } + }, + "insertAfter()": { + "string => this._placeMultiple(string, 'after')": function () { + //arrange + var arg = { foo: "bar" }, + expected = "the result", + nodeList = new NodeList(), + mock = sinon.stub(nodeList, "_placeMultiple").returns(expected); + + //act + var result = nodeList.insertAfter(arg); + + //assert + assert.deepEqual(mock.args[0], [arg, "after"]); + assert.equal(result, expected); + + mock.restore(); + + } + }, + "before()": { + "string => this.after(string, 'before')": function () { + //arrange + var arg = { foo: "bar" }, + expected = "the result", + nodeList = new NodeList(), + mock = sinon.stub(nodeList, "addContent").returns(expected); + + //act + var result = nodeList.before(arg); + + //assert + assert.deepEqual(mock.args[0], [arg, "before"]); + assert.equal(result, expected); + + mock.restore(); + + } + }, + "insertBefore()": { + "string => this._placeMultiple(string, 'before')": function () { + //arrange + var arg = { foo: "bar" }, + expected = "the result", + nodeList = new NodeList(), + mock = sinon.stub(nodeList, "_placeMultiple").returns(expected); + + //act + var result = nodeList.insertBefore(arg); + + //assert + assert.deepEqual(mock.args[0], [arg, "before"]); + assert.equal(result, expected); + + mock.restore(); + + } + }, + "remove()": { + "remove is alias of NodeList.prototype.orphan": function () { + //arrange + var nodeList = new NodeList(); + + //act + + //assert + assert.strictEqual(nodeList.remove, NodeList.prototype.orphan); + } + }, + "wrap()": { + "returns nodeList": function () { + //arrange + var nodeList = new NodeList(); + + //act + var result = nodeList.wrap("
    "); + + //assert + assert.strictEqual(result, nodeList); + + }, + "inserts nodes at the lowest level of the wrapper": function () { + //arrange + var node = document.createElement("input"), + nodeList = new NodeList([node]), + container = document.createElement("div") + + container.appendChild(node); + + //act + nodeList.wrap("
    "); + + //assert + assert.equal(node.parentNode.nodeName.toLowerCase(), "b"); + }, + "wraps all nodes in nodelist": function () { + //arrange + var nodes = + [ + document.createElement("input"), + document.createElement("input") + ], + nodeList = new NodeList(nodes), + container = document.createElement("div") + + for (var i in nodes) { + container.appendChild(nodes[i]); + } + + //act + nodeList.wrap(""); + + //assert + for (var i in nodes) { + assert.equal(nodes[i].parentNode.nodeName.toLowerCase(), "span"); + } + } + }, + "wrapAll()": { + "returns original nodeList": function () { + //arrange + var nodeList = new NodeList(); + + //act + var result = nodeList.wrapAll("
    "); + + //assert + assert.strictEqual(result, nodeList); + + }, + "wraps all nodes in the wrapper as direct children": function () { + //arrange + var nodes = [ + document.createElement("input"), + document.createElement("input"), + document.createElement("input")], + nodeList = new NodeList(nodes), + containers = [ + document.createElement("div"), + document.createElement("div"), + document.createElement("div")]; + + for (var i in nodes) { + containers[i].appendChild(nodes[i]); + } + + //act + nodeList.wrapAll("
    "); + + //assert + var parent = nodes[0].parentElement; + for (var i in nodes) { + assert.strictEqual(parent, nodes[i].parentElement); + } + + }, + "wrapper located in the same location as the first node": function () { + //arrange + var nodes = + [ + document.createElement("input"), + document.createElement("input"), + document.createElement("input") + ], + nodeList = new NodeList(nodes), + containers = [ + document.createElement("div"), + document.createElement("div"), + document.createElement("div")]; + + for (var i in nodes) { + containers[i].appendChild(nodes[i]); + } + + //act + nodeList.wrapAll("
    "); + + //assert + var parent = nodes[0].parentElement; + assert.strictEqual(parent.parentElement, containers[0]); + } + }, + "wrapInner()": { + "returns the original node list": function () { + //arrange + var nodeList = new NodeList(); + + //act + var result = nodeList.wrapInner("
    "); + + //assert + assert.strictEqual(result, nodeList); + + }, + "wraps the direct children with the wrapper": function () { + //arrange + var children = + [ + document.createElement("input"), + document.createElement("input") + ], + container = document.createElement("div"), + nodeList = new NodeList(container); + + for (var i in children) { + container.appendChild(children[i]); + } + + //act + nodeList.wrapInner(""); + + //assert + for (var i in children) { + assert.equal(children[i].parentElement.nodeName.toLowerCase(), "span"); + } + } + }, + "replaceWith()": { + "returns the original node list": function () { + //arrange + var nodeList = new NodeList(); + + //act + var result = nodeList.replaceWith("
    "); + + + //assert + assert.strictEqual(result, nodeList); + + + }, + "content is passed through the _normalize method": function () { + //arrange + var nodes = + [ + document.createElement("span"), + document.createElement("span") + ], + nodeList = new NodeList(nodes), + container = document.createElement("div"), + arg = "
    ", + expected = document.createElement("div"), + mock = sinon.stub(nodeList, "_normalize").returns(expected); + + for (var i in nodes) { + container.appendChild(nodes[i]); + } + + //act + nodeList.replaceWith(arg); + + //assert + assert.isTrue(mock.calledWith(arg, nodes[0])); + + mock.restore(); + }, + "calls _place method with correct arguments": function () { + //arrange + var nodes = + [ + document.createElement("span"), + document.createElement("span") + ], + nodeList = new NodeList(nodes), + container = document.createElement("div"), + arg = "
    ", + expected = document.createElement("div"), + _normalizeMock = sinon.stub(nodeList, "_normalize").returns(arg), + mock = sinon.stub(nodeList, "_place"); + + for (var i in nodes) { + container.appendChild(nodes[i]); + } + + //act + nodeList.replaceWith(arg); + + //assert + assert.isTrue(mock.calledWith(arg, nodes[0], "before", false)); + assert.isTrue(mock.calledWith(arg, nodes[1], "before", true)); + + _normalizeMock.restore(); + mock.restore(); + + }, + "removes original nodes": function () { + //arrange + var nodes = + [ + document.createElement("span"), + document.createElement("span") + ], + nodeList = new NodeList(nodes), + container = document.createElement("div"), + arg = "
    ", + expected = document.createElement("div"), + _normalizeMock = sinon.stub(nodeList, "_normalize").returns(arg), + _placeMock = sinon.stub(nodeList, "_place"); + + for (var i in nodes) { + container.appendChild(nodes[i]); + } + + //act + nodeList.replaceWith(arg); + + //assert + for (var i in nodes) { + assert.notEqual(container, nodes[i].parentElement); + } + + _normalizeMock.restore(); + _placeMock.restore(); + } + + }, + "replaceAll()": { + "returns the original node list": function () { + //arrange + var nodeList = new NodeList(); + + //act + var result = nodeList.replaceAll("div"); + + + //assert + assert.strictEqual(result, nodeList); + + }, + "content is passed through the _normalize method": function () { + //arrange + var nodes = + [ + document.createElement("span"), + document.createElement("span") + ], + nodeList = new NodeList(nodes), + container = document.createElement("div"), + queryNodes = + [ + document.createElement("div"), + document.createElement("div") + ], + queryNodeList = new NodeList(queryNodes), + expectedContent = document.createElement("b"), + _normalizeMock = sinon.stub(nodeList, "_normalize").returns(expectedContent), + _placeMock = sinon.spy(nodeList, "_place"); + + for (var i in nodes) { + container.appendChild(nodes[i]); + } + for (var i in queryNodes) { + container.appendChild(queryNodes[i]); + } + document.body.appendChild(container); + + //act + nodeList.replaceAll("div div"); + + //assert + assert.isTrue(_normalizeMock.calledWith(nodeList, nodes[0])); + + _normalizeMock.restore(); + _placeMock.restore(); + }, + "calls _place method with correct arguments": function () { + //arrange + var nodes = + [ + document.createElement("span"), + document.createElement("span") + ], + nodeList = new NodeList(nodes), + container = document.createElement("div"), + queryNodes = + [ + document.createElement("div"), + document.createElement("div") + ], + queryNodeList = new NodeList(queryNodes), + expectedContent = document.createElement("b"), + _normalizeMock = sinon.stub(nodeList, "_normalize").returns(expectedContent), + _placeMock = sinon.spy(nodeList, "_place"); + + for (var i in nodes) { + container.appendChild(nodes[i]); + } + for (var i in queryNodes) { + container.appendChild(queryNodes[i]); + } + document.body.appendChild(container); + + //act + nodeList.replaceAll("div div"); + + //assert + assert.isTrue(_placeMock.calledWith(expectedContent, queryNodes[0], "before", false)); + assert.isTrue(_placeMock.calledWith(expectedContent, queryNodes[1], "before", true)); + + _normalizeMock.restore(); + _placeMock.restore(); + }, + "removes original nodes": function () { + //arrange + var nodes = + [ + document.createElement("span"), + document.createElement("span") + ], + nodeList = new NodeList(nodes), + container = document.createElement("div"), + queryNodes = + [ + document.createElement("div"), + document.createElement("div") + ], + queryNodeList = new NodeList(queryNodes), + expectedContent = document.createElement("b"), + _normalizeMock = sinon.stub(nodeList, "_normalize").returns(expectedContent), + _placeMock = sinon.spy(nodeList, "_place"); + + for (var i in nodes) { + container.appendChild(nodes[i]); + } + for (var i in queryNodes) { + container.appendChild(queryNodes[i]); + } + document.body.appendChild(container); + + //act + nodeList.replaceAll("div div"); + + //assert + assert.isFalse(container.contains(queryNodes[0])); + assert.isFalse(container.contains(queryNodes[1])); + + _normalizeMock.restore(); + _placeMock.restore(); + } + }, + "clone()": { + "returns node list populated with clones of originals": function () { + //arrange + var nodes = + [ + document.createElement("input"), + document.createElement("input") + ], + nodeList = new NodeList(nodes); + + for (var i in nodes) { + nodes[i].className = "nodeClass" + i; + } + + //act + var result = nodeList.clone(); + + //assert + assert.notStrictEqual(result, nodeList); + for (var i in nodes) { + assert.notStrictEqual(result[i], nodes[i]); + assert.equal(result[i].outerHTML, nodes[i].outerHTML); + } + + } + }, + "validation tests": (function () { + var container; + function verify(/*dojo.NodeList*/nl, /*Array*/ids, /*String*/ comment) { + comment = comment || "verify"; + for (var i = 0, node; (node = nl[i]) ; i++) { + assert.isTrue(node.id == ids[i] || node == ids[i], comment + " " + i) + } + //Make sure lengths are equal. + assert.equal(i, ids.length, comment + " length"); + } + + var divs; + + return { + setup: function () { + var html = + '
    ' + + '

    testing dojo.NodeList-traverse

    ' + + '
    ' + + ' 100px square, abs' + + '
    ' + + '
    ' + + ' c1' + + '
    ' + + '
    ' + + ' ' + + ' Crass, baby' + + ' The third div' + + ' Classy, baby' + + ' The third div, again' + + ' ' + + ' Yeah, baby' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    foo bar bar bang
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    '; + container = construct.toDom(html); + + document.body.appendChild(container); + + divs = query("div.testDiv"); + }, + teardown: function () { + document.body.removeChild(container); + }, + "children": function () { + verify(divs.last().children(), ["crass", "classy", "yeah"]); + }, + + "closest": function () { + // test simple selector + var classy = query("#classy"); + var closestDiv = classy.closest("div"); + verify(closestDiv, ["third"], "closest('div')"); + verify(closestDiv.end().closest(".classy"), ["classy"], "closestDiv.end().closest('.classy')"); + + // test descendant selector + var bang = query(".bang"); + var closestFooBar = bang.closest(".foo > .bar"); + verify(closestFooBar, ["level4"], ".foo > .bar"); + + // test descendant selector that doesn't match (".foo" alone matches nodes, but not + // ".bogus .foo") + var closestBogusFoo = bang.closest(".bogus .foo"); + verify(closestBogusFoo, [], ".bogus .foo"); + + // positive test that scope argument works: .foo > .bar should match a scope + // of "level2" or above + closestFooBar = bang.closest(".foo > .bar", "level2"); + verify(closestFooBar, ["level4"], ".foo > .bar query relative to level2"); + + // > .bar should match a scope of level3 or level1 + var topBar = bang.closest("> .bar", "level3"); + verify(topBar, ["level4"], "> .bar query relative to level3"); + + // negative test that scope argument works: .foo > .bar relative to level3 + // doesn't match since .foo is level3, rather than a child of level3 + closestFooBar = bang.closest(".foo > .bar", "level3"); + verify(closestFooBar, [], ".foo > .bar query relative to level3"); + + // complex test of multiple elements in NodeList + // Only some of the elements in query("div") have a ".foo" ancestor, + // and three of those elements have the *same* .foo ancestor, so + // closest(".foo") should result in list of just two elements + var closestFoo = query("div").closest(".foo"); + verify(closestFoo, ["level1", "level3"], ".foo from div"); + + }, + + "parent": function () { + verify(query("#classy").parent(), ["third"]); + }, + + "parents": function () { + var classy = query("#classy"); + verify(classy.parents(), ["third", container, document.body, document.body.parentElement]); + verify(classy.parents(".third"), ["third"]); + verify(classy.parents("body"), [document.body]); + }, + + "siblings": function () { + verify(query("#classy").siblings(), ["crass", "yeah"]); + }, + + "next": function () { + verify(query("#crass").next(), ["classy"]); + }, + + "nextAll": function () { + verify(query("#crass").nextAll(), ["classy", "yeah"]); + verify(query("#crass").nextAll("#yeah"), ["yeah"]); + }, + + "prev": function () { + verify(query("#classy").prev(), ["crass"]); + }, + + "prevAll": function () { + verify(query("#yeah").prevAll(), ["classy", "crass"]); + verify(query("#yeah").prevAll("#crass"), ["crass"]); + }, + + "andSelf": function () { + verify(query("#yeah").prevAll().andSelf(), ["classy", "crass", "yeah"]); + }, + + "first": function () { + verify(divs.first(), ["sq100"]); + }, + + "last": function () { + verify(divs.last(), ["third"]); + }, + + "even": function () { + var even = divs.even(); + verify(even, ["t"]); + verify(even.end(), ["sq100", "t", "third"]); + }, + + "odd": function () { + var odd = divs.odd(); + verify(odd, ["sq100", "third"]); + verify(odd.end(), ["sq100", "t", "third"]); + } + + } + })() + }); }); diff --git a/tests/unit/NodeList-traverse.js b/tests/unit/NodeList-traverse.js index b09d3106cf..f6b4beb484 100644 --- a/tests/unit/NodeList-traverse.js +++ b/tests/unit/NodeList-traverse.js @@ -1,12 +1,962 @@ define([ - 'intern!object', - 'intern/chai!assert' -], function (registerSuite, assert) { - registerSuite({ - name: 'dojo/NodeList-traverse', - - 'TODO: convert tests': function () { - assert.fail(); - } - }); + 'intern!object', + 'intern/chai!assert', + 'sinon', + '../../NodeList', + '../../_base/lang', + '../../dom-construct', + '../../query', + '../../NodeList-traverse' +], function (registerSuite, assert, sinon, NodeList, lang, domConstruct, query) { + registerSuite({ + name: 'dojo/NodeList-traverse', + + "children()": { + "returns children of nodes": function () { + //arrange + var containers = + [ + document.createElement("div"), + document.createElement("div") + ], + children = + [ + [ + document.createElement("span"), + document.createElement("span") + ], [ + document.createElement("input"), + document.createElement("input") + ] + ], + allChildren = children[0].concat(children[1]), + nodeList = new NodeList(containers); + + for (var i in containers) { + for (var j in children[i]) { + containers[i].appendChild(children[i][j]); + } + document.body.appendChild(containers[i]); + } + + //act + var result = nodeList.children(); + + //assert + for (var i = 0; i < result.length; i++) { + assert.propertyVal(allChildren, result[i]); + } + + for (var i in containers) { + document.body.removeChild(containers[i]); + } + + }, + "filters children with query, if present": function () { + //arrange + var containers = + [ + document.createElement("div"), + document.createElement("div") + ], + children = + [ + [ + document.createElement("span"), + document.createElement("span") + ], [ + document.createElement("input"), + document.createElement("input") + ] + ], + query = "span", + allChildren = children[0].concat(children[1]), + nodeList = new NodeList(containers); + + for (var i in containers) { + for (var j in children[i]) { + containers[i].appendChild(children[i][j]); + } + document.body.appendChild(containers[i]); + } + + //act + var result = nodeList.children(query); + + //assert + for (var i = 0; i < result.length; i++) { + assert.equal(result[i].nodeName.toLowerCase(), "span"); + } + } + }, + + "closest()": (function () { + var root, + containers, + nodes, + nodeList; + + return { + setup: function () { + root = document.createElement("div"); + containers = [ + document.createElement("span"), + document.createElement("span") + ]; + nodes = [ + [ + document.createElement("b"), + document.createElement("b") + ], [ + document.createElement("i"), + document.createElement("i") + ] + ]; + + nodeList = new NodeList(nodes[0].concat(nodes[1])); + + document.body.appendChild(root); + for (var i in containers) { + root.appendChild(containers[i]); + + for (var j in nodes[i]) { + containers[i].appendChild(nodes[i][j]); + } + } + + + }, + teardown: function () { + document.body.removeChild(root); + }, + "returns closest parent that matches query": function () { + //arrange + + //act + var result = nodeList.closest("span"); + + //assert + assert.equal(result.length, containers.length); + for (var i in containers) { + assert.propertyVal(result, containers[i]); + } + + }, + "returns empty NodeList if no parent matches query": function () { + //arrange + + //act + var result = nodeList.closest("h1"); + + //assert + assert.equal(result.length, 0); + } + }; + })(), + + "parent()": (function () { + var containers, + expected, + nodes, + root, + nodeList; + + return { + setup: function () { + root = document.createElement("div"); + containers = + [ + document.createElement("h1"), + document.createElement("h1") + ]; + expected = + [ + document.createElement("span"), + document.createElement("i") + ]; + nodes = + [ + document.createElement("b"), + document.createElement("b") + ]; + + document.body.appendChild(root); + for (var i in containers) { + root.appendChild(containers[i]); + containers[i].appendChild(expected[i]); + expected[i].appendChild(nodes[i]); + } + + nodeList = new NodeList(nodes); + }, + teardown: function () { + document.body.removeChild(root); + }, + "returns parents of nodes in NodeList": function () { + //arrange + + //act + var result = nodeList.parent(); + + //assert + assert.equal(result.length, expected.length); + for (var i in expected) { + assert.propertyVal(result, expected[i]); + } + }, + "filters returned parents by query, if present": function () { + //arrange + + //act + var result = nodeList.parent("i"); + + //assert + assert.equal(result.length, 1); + assert.equal(result[0], expected[1]); + } + + }; + })(), + + "parents()": (function () { + var containers, + expected, + nodes, + root, + nodeList; + + return { + setup: function () { + root = document.createElement("div"); + containers = + [ + document.createElement("h1"), + document.createElement("h1") + ]; + expected = + [ + document.createElement("span"), + document.createElement("i") + ]; + nodes = + [ + document.createElement("b"), + document.createElement("b") + ]; + + document.body.appendChild(root); + for (var i in containers) { + root.appendChild(containers[i]); + containers[i].appendChild(expected[i]); + expected[i].appendChild(nodes[i]); + } + + nodeList = new NodeList(nodes); + }, + teardown: function () { + document.body.removeChild(root); + }, + "returns parents of nodes in NodeList": function () { + //arrange + + //act + var result = nodeList.parents(); + + //assert + assert.equal(result.length, expected.length + containers.length + 3 /*root, body, html*/); + for (var i in expected) { + assert.propertyVal(result, expected[i]); + } + for (var i in containers) { + assert.propertyVal(result, containers[i]); + } + assert.propertyVal(result, root); + assert.propertyVal(result, document.body); + assert.propertyVal(result, document.body.parentElement); + }, + "filters returned parents by query, if present": function () { + //arrange + + //act + var result = nodeList.parents("i"); + + //assert + assert.equal(result.length, 1); + assert.propertyVal(result[0], expected[1]); + + } + + }; + })(), + + "siblings()": (function () { + var containers, + expected, + nodes, + root, + nodeList; + + return { + setup: function () { + root = document.createElement("div"); + containers = + [ + document.createElement("h1"), + document.createElement("h1") + ]; + expected = + [ + document.createElement("span"), + document.createElement("i") + ]; + nodes = + [ + document.createElement("b"), + document.createElement("b") + ]; + + document.body.appendChild(root); + for (var i in containers) { + root.appendChild(containers[i]); + containers[i].appendChild(nodes[i]); + containers[i].appendChild(expected[i]); + } + + nodeList = new NodeList(nodes); + }, + teardown: function () { + document.body.removeChild(root); + }, + "returns siblings of nodes in NodeList": function () { + //arrange + + //act + var result = nodeList.siblings(); + + //assert + assert.equal(result.length, expected.length); + for (var i in expected) { + assert.propertyVal(result, expected[i]); + } + for (var i in containers) { + assert.propertyVal(result, containers[i]); + } + }, + "filters returned siblings by query, if present": function () { + //arrange + + //act + var result = nodeList.siblings("i"); + + //assert + assert.equal(result.length, 1); + assert.propertyVal(result[0], expected[1]); + + } + }; + })(), + + "next()": (function () { + var root, + containers, + nodes, + expected, + notExpected, + nodeList; + + return { + setup: function () { + root = document.createElement("div"); + containers = [ + document.createElement("h1"), + document.createElement("h1") + ]; + nodes = [ + document.createElement("span"), + document.createElement("span") + ]; + expected = [ + document.createElement("i"), + document.createElement("b") + ]; + notExpected = [ + document.createElement("button"), + document.createElement("button") + ]; + + document.body.appendChild(root); + for (var i in containers) { + root.appendChild(containers[i]); + containers[i].appendChild(nodes[i]); + containers[i].appendChild(expected[i]); + containers[i].appendChild(notExpected[i]); + } + + nodeList = new NodeList(nodes); + }, + teardown: function () { + document.body.removeChild(root); + }, + + "returns NodeList consisting of next siblings of nodes in this NodeList": function () { + //arrange + + //act + var result = nodeList.next(); + + //assert + assert.equal(result.length, expected.length); + for (var i in expected) { + assert.propertyVal(result, expected[i]); + } + + }, + "filters returned nodes by query, if provided": function () { + //arrange + + //act + var result = nodeList.next("b"); + + //assert + assert.equal(result.length, 1); + assert.propertyVal(result[0], expected[1]); + } + }; + })(), + + "nextAll()": (function () { + var root, + containers, + previousSiblings, + nodes, + nextSiblings, + nodeList; + + return { + setup: function () { + root = document.createElement("div"); + containers = [ + document.createElement("div"), + document.createElement("div") + ]; + previousSiblings = [ + document.createElement("h1"), + document.createElement("h1") + ]; + nodes = [ + document.createElement("table"), + document.createElement("table") + ]; + nextSiblings = [ + [ + document.createElement("button"), + document.createElement("button") + ], [ + document.createElement("b"), + document.createElement("b") + ] + ]; + nodeList = new NodeList(nodes); + + document.body.appendChild(root); + for (var i in containers) { + root.appendChild(containers[i]); + containers[i].appendChild(previousSiblings[i]); + containers[i].appendChild(nodes[i]); + for (var j in nextSiblings[i]) { + containers[i].appendChild(nextSiblings[i][j]); + } + } + + nodeList = new NodeList(nodes); + }, + teardown: function () { + document.body.removeChild(root); + }, + "returns all siblings after nodes in nodelist": function () { + //arrange + + //act + var result = nodeList.nextAll(); + + //assert + + var allSiblings = nextSiblings[0].concat(nextSiblings[1]); + assert.equal(result.length, allSiblings.length); + for (var i in allSiblings) { + assert.propertyVal(result, allSiblings[i]); + } + + }, + "filters returned values by query, if provided": function () { + //arrange + + //act + var result = nodeList.nextAll("button"); + + //assert + assert.equal(result.length, nextSiblings[0].length); + for (var i in nextSiblings[0]) { + assert.propertyVal(result, nextSiblings[0][i]); + } + } + }; + })(), + + "prev()": (function () { + var root, + containers, + nodes, + expected, + notExpected, + nodeList; + + return { + setup: function () { + root = document.createElement("div"); + containers = [ + document.createElement("h1"), + document.createElement("h1") + ]; + nodes = [ + document.createElement("span"), + document.createElement("span") + ]; + expected = [ + document.createElement("i"), + document.createElement("b") + ]; + notExpected = [ + document.createElement("button"), + document.createElement("button") + ]; + + document.body.appendChild(root); + for (var i in containers) { + root.appendChild(containers[i]); + containers[i].appendChild(notExpected[i]); + containers[i].appendChild(expected[i]); + containers[i].appendChild(nodes[i]); + + } + + nodeList = new NodeList(nodes); + }, + teardown: function () { + document.body.removeChild(root); + }, + + "returns NodeList consisting of previous siblings of nodes in this NodeList": function () { + //arrange + + //act + var result = nodeList.prev(); + + //assert + assert.equal(result.length, expected.length); + for (var i in expected) { + assert.propertyVal(result, expected[i]); + } + + }, + "filters returned nodes by query, if provided": function () { + //arrange + + //act + var result = nodeList.prev("b"); + + //assert + assert.equal(result.length, 1); + assert.propertyVal(result[0], expected[1]); + } + }; + })(), + + "prevAll()": (function () { + var root, + containers, + previousSiblings, + nodes, + nextSiblings, + nodeList; + + return { + setup: function () { + root = document.createElement("div"); + containers = [ + document.createElement("div"), + document.createElement("div") + ]; + nextSiblings = [ + document.createElement("h1"), + document.createElement("h1") + ]; + nodes = [ + document.createElement("table"), + document.createElement("table") + ]; + previousSiblings = [ + [ + document.createElement("button"), + document.createElement("button") + ], [ + document.createElement("b"), + document.createElement("b") + ] + ]; + nodeList = new NodeList(nodes); + + document.body.appendChild(root); + for (var i in containers) { + root.appendChild(containers[i]); + for (var j in previousSiblings[i]) { + containers[i].appendChild(previousSiblings[i][j]); + } + containers[i].appendChild(nodes[i]); + containers[i].appendChild(nextSiblings[i]); + + } + + nodeList = new NodeList(nodes); + }, + teardown: function () { + document.body.removeChild(root); + }, + "returns all siblings before nodes in nodelist": function () { + //arrange + + //act + var result = nodeList.prevAll(); + + //assert + + var allSiblings = previousSiblings[0].concat(previousSiblings[1]); + assert.equal(result.length, allSiblings.length); + for (var i in allSiblings) { + assert.propertyVal(result, allSiblings[i]); + } + + }, + "filters returned values by query, if provided": function () { + //arrange + + //act + var result = nodeList.prevAll("button"); + + //assert + assert.equal(result.length, previousSiblings[0].length); + for (var i in previousSiblings[0]) { + assert.propertyVal(result, previousSiblings[0][i]); + } + } + }; + })(), + + "andSelf()": { + "returns concatenation of nodeList's parent to itself": function () { + //arrange + var nodes = + [ + document.createElement("div"), + document.createElement("div") + ], + parentNodes = + [ + document.createElement("span"), + document.createElement("span") + ], + nodeList = new NodeList(nodes), + parentNodeList = new NodeList(parentNodes); + + nodeList._parent = parentNodeList; + + //act + var result = nodeList.andSelf(); + + //assert + var allNodes = nodes.concat(parentNodes); + assert.equal(result.length, allNodes.length); + for (var i in allNodes) { + assert.propertyVal(result, allNodes[i]); + } + } + }, + + "first()": { + "returns first node from the NodeList": function () { + //arrange + var expected = document.createElement("div"), + notExpected = + [ + document.createElement("span"), + document.createElement("button") + ], + nodes = [expected].concat(notExpected), + nodeList = new NodeList(nodes); + + //act + var result = nodeList.first(); + console.dir(result); + //assert + assert.equal(result.length, 1); + assert.equal(result[0], expected); + + } + }, + + "last()": { + "returns last node from the NodeList": function () { + //arrange + var expected = document.createElement("div"), + notExpected = + [ + document.createElement("span"), + document.createElement("button") + ], + nodes = notExpected.concat([expected]), + nodeList = new NodeList(nodes); + + //act + var result = nodeList.last(); + console.dir(result); + //assert + assert.equal(result.length, 1); + assert.equal(result[0], expected); + + } + }, + + "even()": { + "returns even entries from the nodeList": function () { + //arrange + var odd = + [ + document.createElement("div"), + document.createElement("div"), + document.createElement("div") + ], + even = + [ + document.createElement("div"), + document.createElement("div") + ], + nodes = [], + nodeList; + + for (var i in odd) { + nodes.push(odd[i]); + if (even[i]) { + nodes.push(even[i]); + } + } + + nodeList = new NodeList(nodes); + + //act + var result = nodeList.even(); + + //assert + assert.equal(result.length, even.length); + for (var i in even) { + assert.propertyVal(result, even[i]); + } + + } + }, + + "odd()": { + "returns odd entries from the nodeList": function () { + //arrange + var odd = + [ + document.createElement("div"), + document.createElement("div"), + document.createElement("div") + ], + even = + [ + document.createElement("div"), + document.createElement("div") + ], + nodes = [], + nodeList; + + for (var i in odd) { + nodes.push(odd[i]); + if (even[i]) { + nodes.push(even[i]); + } + } + + nodeList = new NodeList(nodes); + + //act + var result = nodeList.odd(); + + //assert + assert.equal(result.length, odd.length); + for (var i in odd) { + assert.propertyVal(result, odd[i]); + } + + } + }, + + "validation tests": (function () { + function verify(/*dojo.NodeList*/nl, /*Array*/ids, /*String*/ comment) { + comment = comment || "verify"; + for (var i = 0, node; (node = nl[i]) ; i++) { + assert.isTrue(ids[i] == node.id || ids[i] == node, comment + " " + i); + } + //Make sure lengths are equal. + assert.equal(i, ids.length, comment + " length"); + } + + var container, + divs; + + return { + setup: function () { + container = document.createElement("div"); + container = domConstruct.toDom( + '
    ' + + '

    testing dojo.NodeList-traverse

    ' + + '
    ' + + ' 100px square, abs' + + '
    ' + + '
    ' + + ' c1' + + '
    ' + + '
    ' + + ' ' + + ' Crass, baby' + + ' The third div' + + ' Classy, baby' + + ' The third div, again' + + ' ' + + ' Yeah, baby' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    foo bar bar bang
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    '); + + document.body.appendChild(container); + + divs = query("div.testDiv"); + }, + teardown: function () { + document.body.removeChild(container); + }, + children: function () { + verify(divs.last().children(), ["crass", "classy", "yeah"]); + }, + + closest: function () { + // test simple selector + var classy = query("#classy"); + var closestDiv = classy.closest("div"); + verify(closestDiv, ["third"], "closest('div')"); + verify(closestDiv.end().closest(".classy"), ["classy"], "closestDiv.end().closest('.classy')"); + + // test descendant selector + var bang = query(".bang"); + var closestFooBar = bang.closest(".foo > .bar"); + verify(closestFooBar, ["level4"], ".foo > .bar"); + + // test descendant selector that doesn't match (".foo" alone matches nodes, but not + // ".bogus .foo") + var closestBogusFoo = bang.closest(".bogus .foo"); + verify(closestBogusFoo, [], ".bogus .foo"); + + // positive test that scope argument works: .foo > .bar should match a scope + // of "level2" or above + closestFooBar = bang.closest(".foo > .bar", "level2"); + verify(closestFooBar, ["level4"], ".foo > .bar query relative to level2"); + + // > .bar should match a scope of level3 or level1 + var topBar = bang.closest("> .bar", "level3"); + verify(topBar, ["level4"], "> .bar query relative to level3"); + + // negative test that scope argument works: .foo > .bar relative to level3 + // doesn't match since .foo is level3, rather than a child of level3 + closestFooBar = bang.closest(".foo > .bar", "level3"); + verify(closestFooBar, [], ".foo > .bar query relative to level3"); + + // complex test of multiple elements in NodeList + // Only some of the elements in query("div") have a ".foo" ancestor, + // and three of those elements have the *same* .foo ancestor, so + // closest(".foo") should result in list of just two elements + var closestFoo = query("div").closest(".foo"); + verify(closestFoo, ["level1", "level3"], ".foo from div"); + + }, + + parent: function () { + verify(query("#classy").parent(), ["third"]); + }, + + parents: function () { + var classy = query("#classy"); + verify(classy.parents(), ["third", container, document.body, document.body.parentElement]); + verify(classy.parents(".third"), ["third"]); + verify(classy.parents("body"), [document.body]); + }, + + siblings: function () { + verify(query("#classy").siblings(), ["crass", "yeah"]); + }, + + next: function () { + verify(query("#crass").next(), ["classy"]); + }, + + nextAll: function () { + verify(query("#crass").nextAll(), ["classy", "yeah"]); + verify(query("#crass").nextAll("#yeah"), ["yeah"]); + }, + + prev: function () { + verify(query("#classy").prev(), ["crass"]); + }, + + prevAll: function () { + verify(query("#yeah").prevAll(), ["classy", "crass"]); + verify(query("#yeah").prevAll("#crass"), ["crass"]); + }, + + andSelf: function () { + verify(query("#yeah").prevAll().andSelf(), ["classy", "crass", "yeah"]); + }, + + first: function () { + verify(divs.first(), ["sq100"]); + }, + + last: function () { + verify(divs.last(), ["third"]); + }, + + even: function () { + var even = divs.even(); + verify(even, ["t"]); + verify(even.end(), ["sq100", "t", "third"]); + }, + + odd: function () { + var odd = divs.odd(); + verify(odd, ["sq100", "third"]); + verify(odd.end(), ["sq100", "t", "third"]); + } + } + })() + }); }); diff --git a/tests/unit/_base.js b/tests/unit/_base.js deleted file mode 100644 index 9e3852cd99..0000000000 --- a/tests/unit/_base.js +++ /dev/null @@ -1,18 +0,0 @@ -define([ - './_base/Color', - './_base/Deferred', - './_base/array', - './_base/connect', - './_base/declare', - './_base/json', - './_base/lang', - './_base/sniff', - - 'dojo/has!host-browser?./_base/NodeList', - 'dojo/has!host-browser?./_base/browser', - 'dojo/has!host-browser?./_base/html', - 'dojo/has!host-browser?./_base/query', - 'dojo/has!host-browser?./_base/window', - 'dojo/has!host-browser?./_base/xhr' -], function () { -}); diff --git a/tests/unit/_base/NodeList.js b/tests/unit/_base/NodeList.js index 8825b6b867..bf3c84bbdb 100644 --- a/tests/unit/_base/NodeList.js +++ b/tests/unit/_base/NodeList.js @@ -1,12 +1,881 @@ define([ - 'intern!object', - 'intern/chai!assert' -], function (registerSuite, assert) { - registerSuite({ - name: 'dojo/_base/NodeList', - - 'TODO: convert tests': function () { - assert.fail(); - } - }); + 'intern!object', + 'intern/chai!assert', + 'sinon', + '../../../_base/NodeList', + 'dojo', + '../../../query', + '../../../on', + '../../../dom-construct', + '../../../dom-attr', + '../../../string', + '../../../parser', + '../../../_base/array' +], function (registerSuite, assert, sinon, NodeList, dojo, query, on, domConstruct, domAttr) { + registerSuite({ + name: 'dojo/_base/NodeList', + + "connect()": (function () { + return { + "delegates to dojo.connect for each node": function () { + //arrange + var nodes = + [ + document.createElement("div"), + document.createElement("div") + ], + nodeList = new NodeList(nodes), + origDojoConnect = dojo.connect, + callback = function () { }, + event = "onClick", + capturedArguments = [], + capturedThis = []; + + dojo.connect = function () { + capturedArguments.push(arguments); + capturedThis = this; + } + + //act + nodeList.connect(event, callback); + + //assert + for (var i in nodes) { + assert.propertyVal(capturedArguments, + { 0: event, 1: callback }); + assert.propertyVal(capturedThis, nodes[i]); + } + + dojo.connect = origDojoConnect; + + } + }; + })(), + "coords()": (function () { + var coords = + [ + { + l: 1, + t: 2, + w: 3, + h: 4 + }, { + l: 10, + t: 11, + w: 12, + h: 13 + } + ], + nodes, + nodeList, + container; + + return { + setup: function () { + nodes = []; + + container = document.createElement("div"); + for (var i in coords) { + var node = document.createElement("div"); + nodes.push(node); + container.appendChild(node); + node.style.position = "absolute"; + node.style.left = coords[i].l + "px"; + node.style.top = coords[i].t + "px"; + node.style.width = coords[i].w + "px"; + node.style.height = coords[i].h + "px"; + } + + nodeList = new NodeList(nodes); + + document.body.appendChild(container); + }, + teardown: function () { + document.body.removeChild(container); + }, + "returns array of the nodelist's nodes' coordinates": function () { + //arrange + + + //act + var result = nodeList.coords(); + + //assert + for (var i in coords) { + for (var j in coords[i]) { + assert.propertyVal(result[i], coords[i][j]); + } + } + + } + }; + })(), + "events": (function () { + var events = [ + "blur", "focus", "change", "click", "error", "keydown", "keypress", + "keyup", "load", "mousedown", "mouseenter", "mouseleave", "mousemove", + "mouseout", "mouseover", "mouseup", "submit" + ]; + return { + "delegates wiring of event handlers for each to NodeList::connect with correct arguments": function () { + + //arrange + var nodes = + [ + document.createElement("input"), + document.createElement("div") + ], + nodeList = new NodeList(nodes), + capturedArgs = [], + mock = sinon.stub(nodeList, "connect"), + results = []; + + for (var i in events) { + mock.withArgs("on" + events[i], events[i] + "0", events[i] + "1") + .returns(events[i] + "return"); + } + + //act + for (var i in events) { + results.push(nodeList["on" + events[i]](events[i] + "0", events[i] + "1")); + } + + //assert + for (var i in events) { + assert.isTrue(mock.calledWith("on" + events[i], events[i] + "0", events[i] + "1")); + assert.include(results, events[i] + "return"); + } + + } + }; + })(), + "validation tests": (function () { + var firstSubContainer, + secondSubContainer, + thirdSubContainer, + container, + idIndex = 0, + baseId = "_base/NodeList", + sq100Id = baseId + idIndex++ + + var tn; + var c, t, s, fourElementNL; + + var listen = on; //alias of dojo/on + + function verify(/*dojo.NodeList*/nl, /*Array*/ids) { + for (var i = 0, node; node = nl[i]; i++) { + assert.equal(node.id, ids[i]); + } + //Make sure lengths are equal. + assert.equal(i, ids.length); + } + + return { + setup: function () { + container = document.createElement("div"); + + firstSubContainer = document.createElement("div"); + + var sq100 = document.createElement("div"); + firstSubContainer.appendChild(sq100); + sq100.id = sq100Id; + sq100.style.width = "120px"; + sq100.style.height = "130px"; + + secondSubContainer = document.createElement("div"); + + var frag = domConstruct.toDom( + '

    testing dojo.NodeList

    ' + + '
    ' + + ' 100px square, abs' + + '
    ' + + '
    ' + + ' c1' + + '
    '); + + + domConstruct.place(frag, secondSubContainer); + + thirdSubContainer = document.createElement("div"); + var frag = domConstruct.toDom( + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    '); + domConstruct.place(frag, thirdSubContainer); + + container.appendChild(firstSubContainer); + container.appendChild(secondSubContainer); + container.appendChild(thirdSubContainer); + document.body.appendChild(container); + c = dojo.byId("c1-NodeList"); + t = dojo.byId("t-NodeList"); + s = dojo.byId("sq100-NodeList"); + fourElementNL = new NodeList(c, t, c, t); + }, + teardown: function () { + document.body.removeChild(container); + }, + "connect": function () { + var ih = "
    " + + " " + + "
    " + + "" + + " " + + ""; + + tn = document.createElement("div"); + tn.innerHTML = ih; + document.body.appendChild(tn); + + var ctr = 0; + var nl = query("button", tn).connect("onclick", function () { + ctr++; + }); + nl[0].click(); + assert.equal(1, ctr); + nl[0].click(); + nl[0].click(); + assert.equal(3, ctr); + }, + "coords": function () { + var tnl = new NodeList(dojo.byId(sq100Id)); + assert.isTrue(dojo.isArray(tnl)); + assert.equal(120, tnl.coords()[0].w, 120); + assert.equal(130, tnl.coords()[0].h, 130); + assert.equal(query("body *").coords().length, document.body.getElementsByTagName("*").length); + assert.equal(query("body *").position().length, document.body.getElementsByTagName("*").length); + }, + + // constructor tests + "ctor": function () { + var nl = new NodeList(); + nl.push(c); + assert.equal(nl.length, 1); + }, + "ctorArgs": function () { + var nl = new NodeList(4); + nl.push(c); + assert.equal(nl.length, 5); + }, + "ctorArgs2": function () { + var nl = new NodeList(c, t); + assert.equal(nl.length, 2); + assert.equal(nl[0], c); + assert.equal(nl[1], t); + }, + // iteration and array tests + "forEach": function () { + var lastItem; + var nl = new NodeList(c, t); + nl.forEach(function (i) { lastItem = i; }); + assert.equal(lastItem, t); + + var r = nl.forEach(function (i, idx, arr) { + assert.instanceOf(arr, NodeList); + assert.equal(arr.length, 2); + }); + assert.instanceOf(r, NodeList); + assert.equal(nl, r); + }, + + "indexOf": function () { + assert.equal(fourElementNL.indexOf(c), 0); + assert.equal(fourElementNL.indexOf(t), 1); + assert.equal(fourElementNL.indexOf(null), -1); + }, + + "lastIndexOf": function () { + assert.equal(fourElementNL.lastIndexOf(c), 2); + assert.equal(fourElementNL.lastIndexOf(t), 3); + assert.equal(fourElementNL.lastIndexOf(null), -1); + }, + + "every": function () { + var ctr = 0; + var ret = fourElementNL.every(function () { + ctr++; + return true; + }); + assert.equal(ctr, 4); + assert.isTrue(ret); + + ctr = 0; + var ret = fourElementNL.every(function () { + ctr++; + return false; + }); + assert.equal(ctr, 1); + assert.isFalse(ret); + }, + + "some": function () { + var ret = fourElementNL.some(function () { + return true; + }); + assert.isTrue(ret); + + var ret = fourElementNL.some(function (i) { + return (i.id == "t-NodeList"); + }); + assert.isTrue(ret); + }, + + "map": function () { + var ret = fourElementNL.map(function () { + return true; + }); + + for (var i = 0; i < ret.length; i++) { + assert.equal(ret[i], true); + } + + verify(ret.end(), ["c1-NodeList", "t-NodeList", "c1-NodeList", "t-NodeList"]); + + var cnt = 0; + var ret = fourElementNL.map(function () { + return cnt++; + }); + // assert.equal([0, 1, 2, 3], ret); + + assert.instanceOf(ret, NodeList); + + // make sure that map() returns a NodeList + var sum = 0; + fourElementNL.map(function () { return 2; }).forEach(function (x) { sum += x; }); + assert.equal(sum, 8); + }, + + "slice": function () { + var pnl = new NodeList(t, t, c); + assert.equal(pnl.slice(1).length, 2); + assert.equal(pnl.length, 3); + assert.equal(pnl.slice(-1)[0], c); + assert.equal(pnl.slice(-2).length, 2); + verify(pnl.slice(1).end(), ["t-NodeList", "t-NodeList", "c1-NodeList"]); + }, + + "splice": function () { + var pnl = new NodeList(t, t, c); + console.debug(pnl.splice(1)); + + /* + assert.equal(pnl.splice(1).length, 2); + assert.equal(pnl.length, 1); + pnl = new NodeList(t, t, c); + assert.equal(pnl.splice(-1)[0], c); + assert.equal(pnl.length, 2); + pnl = new NodeList(t, t, c); + assert.equal(pnl.splice(-2).length, 2); + */ + }, + + "spliceInsert": function () { + // insert 1 + var pnl = new NodeList(t, t, c); + pnl.splice(0, 0, c); + assert.equal(pnl.length, 4); + assert.equal(pnl[0], c); + + // insert multiple + pnl = new NodeList(t, t, c); + pnl.splice(0, 0, c, s); + assert.equal(pnl.length, 5); + assert.equal(pnl[0], c); + assert.equal(pnl[1], s); + assert.equal(pnl[2], t); + + // insert multiple at offset + pnl = new NodeList(t, t, c); + pnl.splice(1, 0, c, s); + assert.equal(pnl.length, 5); + assert.equal(pnl[0], t); + assert.equal(pnl[1], c); + assert.equal(pnl[2], s); + assert.equal(pnl[3], t); + }, + + "spliceDel": function () { + // clobbery 1 + var pnl = new NodeList(c, t, s); + pnl.splice(0, 1); + assert.equal(pnl.length, 2); + assert.equal(pnl[0], t); + + // clobber multiple + pnl = new NodeList(c, t, s); + pnl.splice(0, 2); + assert.equal(pnl.length, 1); + assert.equal(pnl[0], s); + + // ...at an offset + pnl = new NodeList(c, t, s); + pnl.splice(1, 1); + assert.equal(pnl.length, 2); + assert.equal(pnl[0], c); + assert.equal(pnl[1], s); + + }, + + "spliceInsertDel": function () { + // clobbery 1 + var pnl = new NodeList(c, t, s); + pnl.splice(1, 1, s); + assert.equal(pnl.length, 3); + assert.deepEqual(pnl, new NodeList(c, s, s)); + + pnl = new NodeList(c, t, s); + pnl.splice(1, 2, s); + assert.equal(pnl.length, 2); + assert.deepEqual(pnl, new NodeList(c, s)); + }, + + // sub-search + "queryTest": function () { + var pnl = new NodeList(t); + assert.equal(pnl.query("span")[0], c); + if (name != "t-NodeList") { + // this gets messed up by new DOM nodes the second time around + assert.equal(query(":last-child", secondSubContainer)[0], t); + assert.equal(query(":last-child", secondSubContainer)[1], c); + assert.equal(pnl.query().length, 1); + verify(pnl.query("span").end(), ["t-NodeList"]); + } + }, + + "filter": function () { + if (name != "t-NodeList") { + // this gets messed up by new DOM nodes the second time around + assert.equal(c, query(":first-child", secondSubContainer).filter(":last-child")[0]); + assert.equal(query("*", container).filter(function (n) { return (n.nodeName.toLowerCase() == "span"); }).length, 1); + + var filterObj = { + filterFunc: function (n) { + return (n.nodeName.toLowerCase() == "span"); + } + }; + assert.equal(query("*", container).filter(filterObj.filterFunc).length, 1); + assert.equal(query("*", container).filter(filterObj.filterFunc, filterObj).length, 1); + verify((new NodeList(t)).filter("span").end(), ["t-NodeList"]); + } + }, + + // layout DOM functions + "position": function () { + var tnl = new NodeList(dojo.byId('sq100-NodeList')); + assert.isTrue(dojo.isArray(tnl)); + assert.equal(tnl.position()[0].w, 100); + assert.equal(tnl.position()[0].h, 100); + assert.equal(query("body *").position().length, document.body.getElementsByTagName("*").length); + }, + + "styleGet": function () { + // test getting + var tnl = new NodeList(s); + assert.equal(tnl.style("opacity")[0], 1); + tnl.push(t); + dojo.style(t, "opacity", 0.5); + assert.equal(tnl.style("opacity").slice(-1)[0], 0.5); + tnl.style("opacity", 1); + }, + + "styleSet": function () { + // test setting + var tnl = new NodeList(s, t); + tnl.style("opacity", 0.5); + assert.equal(dojo.style(tnl[0], "opacity"), 0.5); + assert.equal(dojo.style(tnl[1], "opacity"), 0.5); + // reset + tnl.style("opacity", 1); + }, + + "style": function () { + var tnl = new NodeList(s, t); + tnl.style("opacity", 1); + assert.equal(tnl.style("opacity")[0], 1); + dojo.style(t, "opacity", 0.5); + assert.equal(tnl.style("opacity")[0], 1.0); + assert.equal(tnl.style("opacity")[1], 0.5); + // reset things + tnl.style("opacity", 1); + }, + + "addRemoveClass": function () { + var tnl = new NodeList(s, t); + tnl.addClass("a"); + assert.equal(s.className, "a"); + assert.equal(t.className, "a"); + tnl.addClass("a b"); + assert.equal(s.className, "a b"); + assert.equal(t.className, "a b"); + tnl.addClass(["a", "c"]); + assert.equal(s.className, "a b c"); + assert.equal(t.className ,"a b c"); + tnl.removeClass(); + assert.equal(s.className, ""); + assert.equal(t.className, ""); + tnl.addClass(" a"); + assert.equal(s.className, "a"); + assert.equal(t.className, "a"); + tnl.addClass(" a b "); + assert.equal(s.className, "a b"); + assert.equal(t.className, "a b"); + tnl.addClass(" c b a "); + assert.equal(s.className, "a b c"); + assert.equal(t.className, "a b c"); + tnl.removeClass(" b"); + assert.equal(s.className, "a c"); + assert.equal(t.className, "a c"); + tnl.removeClass("a b "); + assert.equal(s.className, "c"); + assert.equal(t.className, "c"); + tnl.removeClass(["a", "c"]); + assert.equal(s.className, ""); + assert.equal(t.className, ""); + tnl.addClass("a b c"); + tnl.replaceClass("d e", "a b"); + assert.equal(s.className, "c d e", "class is c d e after replacing a b with d e"); + assert.equal(t.className, "c d e", "class is c d e after replacing a b with d e"); + tnl.replaceClass("f", "d"); + assert.equal(s.className, "c e f", "class is c e f after replacing d with f"); + assert.equal(t.className, "c e f", "class is c e f after replacing d with f"); + tnl.replaceClass("d"); + assert.equal(s.className, "d"); + assert.equal(t.className, "d"); + tnl.removeClass(); + assert.equal(s.className, "", "empty class"); + assert.equal(t.className, "", "empty class"); + }, + + "concat": function () { + if (name != "t") { + // this isn't supported in the new query method + var spans = query("span", secondSubContainer); + var divs = query("div", secondSubContainer); + var cat = spans.concat(divs); + console.debug(cat); + assert.isTrue(cat.constructor == NodeList || cat.constructor == NodeList); + assert.equal(cat.length, (divs.length + spans.length)); + verify(cat.end(), ["c1-NodeList"]); + } + }, + + "concat2": function () { + var spans = query("span", secondSubContainer); + var divs = query("div", secondSubContainer); + assert.instanceOf(spans.concat([]), NodeList); + }, + + "concat3": function () { + var spans = query("span", secondSubContainer); + var divs = query("div", secondSubContainer); + var cat = spans.concat(divs); + + assert.instanceOf(cat, NodeList); + }, + "concat4": function () { + var res = (new dojo.NodeList()).concat([]); + assert.equal(res.length, 0); + }, + "place": function () { + var ih = "
    blah"; + + var tn = document.createElement("div"); + tn.innerHTML = ih; + dojo.body().appendChild(tn); + var nl = query("b", tn).place(tn, "first"); + assert.instanceOf(nl,NodeList); + assert.equal(nl.length, 1); + assert.equal(nl[0].nodeName.toLowerCase(), "b"); + assert.equal(nl[0].parentNode, tn); + assert.equal(nl[0], tn.firstChild); + }, + + "orphan": function () { + var ih = "
    blah"; + + var tn = document.createElement("div"); + tn.innerHTML = ih; + dojo.body().appendChild(tn); + var nl = query("span", tn).orphan(); + assert.instanceOf(nl, NodeList); + + assert.equal(nl.length, 2); + assert.equal(tn.getElementsByTagName("*").length, 1); + + tn.innerHTML = ih; + var nl = query("*", tn).orphan("b"); + assert.equal(nl.length, 1); + assert.equal(nl[0].innerHTML, "blah"); + }, + + "adopt": function () { + var div = query(dojo.create("div")); + div.adopt(dojo.create("span")); + div.adopt(dojo.create("em"), "first"); + assert.equal(2, query("*", div[0]).length, 2); + assert.equal(div[0].firstChild.tagName.toLowerCase(), "em"); + assert.equal(div[0].lastChild.tagName.toLowerCase(), "span"); + }, + + "addContent": function () { + //text content + var tn = document.createElement("div"); + var nl = query(tn).addContent("some text content"); + + assert.equal(nl[0].childNodes.length, 1); + assert.equal(nl[0].firstChild.nodeValue, "some text content"); + + //move a node + var mNode = document.createElement("span"); + mNode.id = "addContent1"; + mNode.innerHTML = "hello"; + dojo.body().appendChild(mNode); + assert.isNotNull(dojo.byId("addContent1")); + + nl.addContent(mNode); + assert.isNull(dojo.byId("addContent1")); + assert.equal(nl[0].lastChild.id, "addContent1"); + + //put in multiple content/clone node + tn.innerHTML = ''; + nl = query("select", tn).addContent('', "first"); + nl.forEach(function (node) { + assert.equal(node.options[0].value, "first"); + assert.isFalse(node.options[0].selected); + }); + + //Some divs to use for addContent template actions. + var templs = domConstruct.toDom('
    '); + domConstruct.place(templs, document.body); + templs = query(".multitemplate"); + + //templateFunc test + templs.addContent({ + template: '[name]', + templateFunc: function (str, obj) { return str.replace(/\[name\]/g, obj.name); }, + name: "bar" + }); + + var bolds = templs.query("b"); + assert.equal(bolds.length, 2); + bolds.forEach(function (node) { + assert.equal(node.innerHTML, "bar"); + }); + + //template with dojo.string.substitute used. + templs.addContent({ + template: "

    ${name}

    ", + name: "baz" + }); + + var ps = templs.query("p"); + assert.equal(ps.length, 2); + ps.forEach(function (node) { + assert.equal(node.innerHTML, "baz"); + }); + + //Try a dojo.declared thing. + dojo.declare("dojo.testsDOH.Mini", null, { + constructor: function (args, node) { + dojo.mixin(this, args); + node.innerHTML = this.name; + this.domNode = node; + }, + name: "" + }); + + templs.addContent({ + template: 'cool', + parse: true + }); + + + var declaredNodes = templs.query("[dojoType]"); + + assert.equal(declaredNodes.length, 2); + dojo.forEach(declaredNodes, function (node) { + assert.equal(node.innerHTML, "cool"); + }); + + //Get rid of the junk used for template testing. + templs.orphan(); + }, + + + "on": function () { + var ctr = 0; + dojo.body().appendChild(tn); + var nl = query("button", tn); + var handle = nl.on("click", function () { + ctr++; + }); + nl[0].click(); + assert.equal(ctr, 1); + var inButton = nl[0].appendChild(document.createElement("span")); + listen.emit(nl[0], "click", { + }); + listen.emit(inButton, "click", { + bubbles: true + }); + listen.emit(inButton, "click", { + bubbles: false + }); + assert.equal(ctr, 3); + handle.remove(); + listen.emit(nl[0], "click", { + }); + assert.equal(ctr, 3); + }, + "onDelegate": function () { + var ctr = 0; + dojo.body().appendChild(tn); + var nl = query(".thud", tn); + var bl = query("button", tn); + var handle = nl.on("button:click", function () { + assert.equal(bl[0], this); + ctr++; + }); + assert.equal(ctr, 0); + listen.emit(nl[0], "click", { + }); + listen.emit(bl[0], "click", { + bubbles: true + }); + assert.equal(ctr, 1); + handle.remove(); + listen.emit(bl[0], "click", { + bubbles: true + }); + assert.equal(ctr, 1); + // listen and on should behave the same + query(tn).on(".thud:click, .thud button:custom", function () { + ctr++; + }); + listen.emit(bl[0], "click", { + bubbles: true + }); + assert.equal(ctr, 2); + listen.emit(bl[0], "click", { + bubbles: false + }); + assert.equal(ctr, 2); + listen.emit(bl[0], "custom", { + bubbles: true + }); + assert.equal(ctr, 3); + listen.emit(bl[0], "mouseout", { + bubbles: true + }); + assert.equal(ctr, 3); + bl[0].click(); + assert.equal(ctr, 4); + }, + + "at": function () { + var divs = query("div", thirdSubContainer); + var at0 = divs.at(0); + assert.equal( at0[0], divs[0]); + if (name != "t-NodeList") { + // this gets messed up by new DOM nodes the second time around + + var at1 = divs.at(1, 3, 5); + assert.equal(at1[0], divs[1]); + assert.equal(at1[1], divs[3]); + assert.equal(at1[2], divs[5]); + + var at2 = divs.at(3, 6, 9); + assert.equal(at2.length, 2); + + var at3 = divs.at(3, 6).at(1); + assert.equal(at3[0], divs[6]); + + var ending = divs.at(0).end(); + assert.equal(ending, divs); + + var at4 = divs.at(-1); + assert.equal(at4[0], divs[divs.length - 1]); + + var at5 = divs.at(1, -1); + assert.equal(divs[1], at5[0]); + assert.equal(divs[divs.length - 1], at5[1]); + } + + }, + + "attr": function () { + var divs = query("div"); + var ids = divs.attr("id"); + }, + + "_adaptAsForEach": function () { + var passes = false; + var count = 0; + var i = { + setTrue: function (node) { + count++; + passes = true; + } + }; + NodeList.prototype.setTrue = NodeList._adaptAsForEach(i.setTrue, i); + var divs = query("div").setTrue(); + assert.isTrue(passes); + assert.equal(divs.length, count); + }, + + "instantiate": function () { + //Insert some divs to use for test + domConstruct.place('

    Hi

    Hi

    ', document.body); + + var test = 0; + dojo.declare("testsDOH._base.NodeList.some.Thing", null, { + foo: "baz", + constructor: function (props, node) { + dojo.mixin(this, props); + assert.equal(this.foo, "bar", test++); + } + }); + + query("#thinger").instantiate(testsDOH._base.NodeList.some.Thing, { + foo: "bar" + }); + + query("#thinger2").instantiate("testsDOH._base.NodeList.some.Thing", { + foo: "bar" + }); + + assert.equal(test, 2); + + //clean up the divs inserted for the test. + query("#thinger, #thinger2").orphan(); + }, + + "removeAttr": function () { + // buildup + domConstruct.place('

    Hi

    ', document.body); + + var n = query("#attr"); + + assert.isTrue(dojo.hasAttr(n[0], "title")); + + var t = n.attr("title"); + assert.equal(t, "Foobar"); + + n.removeAttr("title"); + + t = domAttr.has(n[0], "title"); + assert.isFalse(t); + + // cleanup + n.orphan(); + } + }; + })() + }); }); diff --git a/tests/unit/_base/all.js b/tests/unit/_base/all.js new file mode 100644 index 0000000000..b9b8529cd2 --- /dev/null +++ b/tests/unit/_base/all.js @@ -0,0 +1,18 @@ +define([ + './Color', + './Deferred', + './array', + './connect', + './declare', + './json', + './lang', + './sniff', + + 'dojo/has!host-browser?./NodeList', + 'dojo/has!host-browser?./browser', + 'dojo/has!host-browser?./html', + 'dojo/has!host-browser?./query', + 'dojo/has!host-browser?./window', + 'dojo/has!host-browser?./xhr' +], function () { +}); diff --git a/tests/unit/_base/html.js b/tests/unit/_base/html.js index 1c63613286..7918481973 100644 --- a/tests/unit/_base/html.js +++ b/tests/unit/_base/html.js @@ -1,12 +1,576 @@ define([ - 'intern!object', - 'intern/chai!assert' -], function (registerSuite, assert) { - registerSuite({ - name: 'dojo/_base/html', - - 'TODO: convert tests': function () { - assert.fail(); - } - }); + 'intern!object', + 'intern/chai!assert', + '../../../_base/html', + '../../../dom-attr', + '../../../dom', + '../../../dom-style', + '../../../dom-prop', + '../../../dom-class', + '../../../dom-construct', + '../../../dom-geometry', +], function (registerSuite, assert, + dojo, domAttr, dom, style, prop, cls, ctr, + geom) { + registerSuite({ + name: 'dojo/_base/html', + + "direct delegates": function () { + //mix-in dom + assert.equal(dojo.byId, dom.byId); + assert.equal(dojo.isDescendant, dom.isDescendant); + assert.equal(dojo.setSelectable, dom.setSelectable); + + // mix-in dom-class + assert.equal(dojo.hasClass, cls.contains); + assert.equal(dojo.addClass, cls.add); + assert.equal(dojo.removeClass, cls.remove); + assert.equal(dojo.toggleClass, cls.toggle); + assert.equal(dojo.replaceClass, cls.replace); + + // mix-in dom-construct + assert.equal(dojo._toDom, ctr.toDom); + assert.equal(dojo.toDom, ctr.toDom); + assert.equal(dojo.place, ctr.place); + assert.equal(dojo.create, ctr.create); + + // mix-in dom-geometry + assert.equal(dojo._getPadExtents, geom.getPadExtents); + assert.equal(dojo.getPadExtents, geom.getPadExtents); + assert.equal(dojo._getBorderExtents, geom.getBorderExtents); + assert.equal(dojo.getBorderExtents, geom.getBorderExtents); + assert.equal(dojo._getPadBorderExtents, geom.getPadBorderExtents); + assert.equal(dojo.getPadBorderExtents, geom.getPadBorderExtents); + assert.equal(dojo._getMarginExtents, geom.getMarginExtents); + assert.equal(dojo.getMarginExtents, geom.getMarginExtents); + assert.equal(dojo._getMarginSize, dojo.getMarginSize, geom.getMarginSize); + assert.equal(dojo._getMarginBox, geom.getMarginBox); + assert.equal(dojo.getMarginBox, geom.getMarginBox); + assert.equal(dojo.setMarginBox, geom.setMarginBox); + assert.equal(dojo._getContentBox, geom.getContentBox); + assert.equal(dojo.getContentBox, geom.getContentBox); + assert.equal(dojo.setContentSize, geom.setContentSize); + assert.equal(dojo.isBodyLtr, geom.isBodyLtr); + assert.equal(dojo._isBodyLtr, geom.isBodyLtr); + assert.equal(dojo.docScroll, geom.docScroll); + assert.equal(dojo._docScroll, geom.docScroll); + assert.equal(dojo._getIeDocumentElementOffset, geom.getIeDocumentElementOffset); + assert.equal(dojo.getIeDocumentElementOffset, geom.getIeDocumentElementOffset); + assert.equal(dojo.fixIeBiDiScrollLeft, geom.fixIeBiDiScrollLeft); + assert.equal(dojo._fixIeBiDiScrollLeft, geom.fixIeBiDiScrollLeft); + assert.equal(dojo.position, geom.position); + + // mix-in dom-prop + assert.equal(dojo.getProp, prop.get); + assert.equal(dojo.setProp, prop.set); + + // mix-in dom-style + assert.equal(dojo.getStyle, style.get); + assert.equal(dojo.setStyle, style.set); + assert.equal(dojo.getComputedStyle, style.getComputedStyle); + assert.equal(dojo.__toPixelValue, style.toPixelValue); + assert.equal(dojo.toPixelValue, style.toPixelValue); + }, + + "dojo.attr": (function () { + var node = document.createElement("div"); + var origDomAttrGet; + var origDomAttrSet; + + return { + setup: function () { + origDomAttrGet = domAttr.get; + origDomAttrSet = domAttr.set; + }, + + teardown: function () { + domAttr.get = origDomAttrGet; + domAttr.set = origDomAttrSet; + }, + + "node + string => dom-attr::get": function () { + //arrange + var result = {}; + var attribute = "the attribute"; + + domAttr.get = function (node, attribute) { + result.node = node; + result.attribute = attribute; + } + + //act + dojo.attr(node, attribute); + + //assert + assert.equal(result.node, node); + assert.equal(result.attribute, attribute); + + }, + "node + dictionary => dom-attr::set": function () { + //arrange + var result = {}; + var dictionary = { + foo: "bar", + baz: "quux" + }; + + domAttr.set = function (node, dictionary) { + result.node = node; + result.dictionary = dictionary; + } + + //act + dojo.attr(node, dictionary); + + //assert + assert.equal(result.node, node); + assert.equal(result.dictionary, dictionary); + }, + "node + string + any => dom-attr::set": function () { + //arrange + var result = {}; + var attribute = "the attribute"; + var value = "the value"; + + domAttr.set = function (node, attribute, value) { + result.node = node; + result.attribute = attribute; + result.value = value; + } + + //act + dojo.attr(node, attribute, value); + + //assert + assert.equal(result.node, node); + assert.equal(result.attribute, attribute); + assert.equal(result.value, value); + } + }; + })(), + + "dojo.empty": (function () { + var origCtrEmpty; + var node = document.createElement("div"); + + return { + setup: function () { + origCtrEmpty = ctr.empty; + }, + teardown: function () { + ctr.empty = origCtrEmpty; + }, + + "deletes to dom-construct::empty": function () { + //arrange + var result = {}; + ctr.empty = function (node) { + result.node = node; + } + + //act + dojo.empty(node); + + //assert + assert.equal(result.node, node); + + } + }; + })(), + + "dojo.destroy & dojo._destroyElement": (function () { + var origCtrDestroy; + var node = document.createElement("div"); + + return { + setup: function () { + origCtrDestroy = ctr.destroy; + }, + teardown: function () { + ctr.destroy = origCtrDestroy; + }, + "dojo.destroy => dom-geometry::destroy": function () { + //arrange + var result = {}; + ctr.destroy = function (node) { + result.node = node; + } + + //act + dojo.destroy(node); + + //assert + assert.equal(result.node, node); + + }, + "dojo._destroyElement => dom-geometry::destroy": function () { + //arrange + var result = {}; + ctr.destroy = function (node) { + result.node = node; + } + + //act + dojo.destroy(node); + + //assert + assert.equal(result.node, node); + + } + }; + })(), + + "dojo.marginBox": (function () { + var origGeomSetMarginBox; + var origGeomGetMarginBox; + var node = document.createElement("div"); + + return { + setup: function () { + origGeomSetMarginBox = geom.setMarginBox; + origGeomGetMarginBox = geom.getMarginBox; + }, + teardown: function () { + geom.setMarginBox = origGeomSetMarginBox; + geom.getMarginBox = origGeomGetMarginBox; + }, + "node + dictionary => dom-geometry::setMarginBox": function () { + //arrange + var box = { + foo: "bar", + baz: "quux" + } + + var result = {}; + geom.setMarginBox = function (node, box) { + result.node = node; + result.box = box; + } + //act + dojo.marginBox(node, box); + + //assert + assert.equal(result.node, node); + assert.equal(result.box, box); + }, + "node=> dom-geometry::getMarginBox": function () { + //arrange + var result = {}; + geom.getMarginBox = function (node) { + result.node = node; + } + //act + dojo.marginBox(node); + + //assert + assert.equal(result.node, node); + } + }; + })(), + + "dojo.contentBox": (function () { + var origGeomSetContentSize; + var origGeomGetContentBox; + var node = document.createElement("div"); + + return { + setup: function () { + origGeomSetContentSize = geom.setContentSize; + origGeomSetContentSize = geom.getContentBox; + }, + teardown: function () { + geom.setContentSize = origGeomSetContentSize; + geom.getContentBox = origGeomSetContentSize; + }, + "node + dictionary => dom-geometry::setContentBox": function () { + //arrange + var box = { + foo: "bar", + baz: "quux" + } + + var result = {}; + geom.setContentSize = function (node, box) { + result.node = node; + result.box = box; + } + //act + dojo.contentBox(node, box); + + //assert + assert.equal(result.node, node); + assert.equal(result.box, box); + }, + "node=> dom-geometry::getContentBox": function () { + //arrange + var result = {}; + geom.getContentBox = function (node) { + result.node = node; + } + //act + dojo.contentBox(node); + + //assert + assert.equal(result.node, node); + } + }; + })(), + + "dojo.coords": (function () { + var node = document.createElement("div"); + var origStyleGetComputedStyle; + var origGeomGetMarginBox; + var origDojoDeprecated; + + return { + setup: function () { + origStyleGetComputedStyle = style.getComputedStyle; + origGeomGetMarginBox = geom.getMarginBox; + origGeomPosition = geom.position; + origDojoDeprecated = dojo.deprecated; + }, + teardown: function () { + style.getComputedStyle = origStyleGetComputedStyle; + geom.getMarginBox = origGeomGetMarginBox; + geom.position = origGeomPosition; + dojo.deprecated = origDojoDeprecated; + }, + + "calls dojo.deprecated properly": function () { + //arrange + var result = {}; + dojo.deprecated = function (behaviour, extra) { + result.behaviour = behaviour; + result.extra = extra; + } + + //act + dojo.coords(node); + + //assert + assert.equal(result.behaviour, "dojo.coords()"); + assert.equal(result.extra, "Use dojo.position() or dojo.marginBox()."); + + }, + + "node + boolean": function () { + //arrange + var includeScroll = true; + + var styleGetComputedStyleReturn = { + foo: "bar", + baz: "buzz" + }; + var geomGetMarginBoxReturn = { + getMarginBoxFoo: "bar", + getMarginBoxBaz: "buzz" + }; + var geomGetPositionReturn = { + x: 42, + y: 27 + }; + var styleGetComputedStyleArgs = {}; + var geomGetMarginBoxArgs = {}; + var geomPositionArgs = {}; + + style.getComputedStyle = function (node) { + styleGetComputedStyleArgs.node = node; + return styleGetComputedStyleReturn; + } + + geom.getMarginBox = function (node, style) { + geomGetMarginBoxArgs.node = node; + geomGetMarginBoxArgs.style = style; + return geomGetMarginBoxReturn; + } + geom.position = function (node, includeScroll) { + geomPositionArgs.node = node; + geomPositionArgs.includeScroll = includeScroll; + return geomGetPositionReturn; + } + + //act + var result = dojo.coords(node, includeScroll); + + //assert + assert.equal(styleGetComputedStyleArgs.node, node); + assert.equal(geomGetMarginBoxArgs.node, node); + assert.equal(geomGetMarginBoxArgs.style, styleGetComputedStyleReturn); + assert.equal(geomPositionArgs.node, node); + assert.equal(geomPositionArgs.includeScroll, includeScroll); + assert.equal(result.getMarginBoxFoo, geomGetMarginBoxReturn.getMarginBoxFoo); + assert.equal(result.getMarginBoxBaz, geomGetMarginBoxReturn.getMarginBoxBaz); + assert.equal(result.x, geomGetPositionReturn.x); + assert.equal(result.y, geomGetPositionReturn.y); + } + }; + })(), + "dojo.prop": (function () { + var node = document.createElement("node"); + var origPropGet; + var origPropSet; + + return { + setup: function () { + origPropGet = prop.get; + origPropSet = prop.set; + }, + teardown: function () { + prop.get = origPropGet; + prop.set = origPropSet; + }, + "node + string => dojo-prop::get": function () { + //arrange + var property = "the property"; + var result = {}; + prop.get = function (node, property) { + result.node = node; + result.property = property; + }; + + //act + dojo.prop(node, property); + + //assert + assert.equal(result.node, node); + assert.equal(result.property, property); + + }, + "node + dictionary => dojo-prop::set": function () { + //arrange + var property = { + foo: "bar", + baz: "buzz" + }; + var result = {}; + prop.set = function (node, property) { + result.node = node; + result.property = property; + }; + + //act + dojo.prop(node, property); + + //assert + assert.equal(result.node, node); + assert.equal(result.property, property); + }, + "node + string + string": function () { + //arrange + var property = "the property"; + var value = "the value"; + var result = {}; + prop.set = function (node, property, value) { + result.node = node; + result.property = property; + result.value = value; + }; + + //act + dojo.prop(node, property, value); + + //assert + assert.equal(result.node, node); + assert.equal(result.property, property); + assert.equal(result.value, value); + } + }; + })(), + "dojo.style": (function () { + var node = document.createElement("div"); + var origStyleGet; + var origStyleSet; + return { + setup: function () { + origStyleGet = style.get; + origStyleSet = style.set; + }, + teardown: function () { + style.get = origStyleGet; + style.set = origStyleSet; + }, + "node => dom-style::get": function () { + //arrange + + var args = {}; + var returnValue = { + foo: "bar" + }; + style.get = function (node) { + args.node = node; + return returnValue; + } + + //act + var result = dojo.style(node); + + //assert + assert.equal(args.node, node); + assert.equal(result, returnValue); + + }, + "node + string => dom-style::get": function () { + //arrange + var name = "the property"; + var args = {}; + var returnValue = { + foo: "bar" + }; + style.get = function (node, name) { + args.node = node; + args.name = name; + return returnValue; + } + + //act + var result = dojo.style(node, name); + + //assert + assert.equal(args.node, node); + assert.equal(args.name, name); + assert.equal(result, returnValue); + }, + "node + dictionary => dom-style::set": function () { + //arrange + var dictionary = { + foo: "bar", + baz: "buzz" + }; + var result = {}; + style.set = function (node, dictionary) { + result.node = node; + result.dictionary = dictionary; + } + + //act + dojo.style(node, dictionary); + + //assert + assert.equal(result.node, node); + assert.equal(result.dictionary, dictionary); + + }, + "node + string + string => dom-style::set": function () { + //arrange + var name = "the name"; + var value = "the value"; + + var result = {}; + style.set = function (node, name, value) { + result.node = node; + result.name = name; + result.value = value; + } + + //act + dojo.style(node, name, value); + + //assert + assert.equal(result.node, node); + assert.equal(result.name, name); + assert.equal(result.value, value); + } + }; + })() + }); }); diff --git a/tests/unit/_base/query.js b/tests/unit/_base/query.js index 8ce3365597..0841717ea5 100644 --- a/tests/unit/_base/query.js +++ b/tests/unit/_base/query.js @@ -1,12 +1,14 @@ define([ - 'intern!object', - 'intern/chai!assert' -], function (registerSuite, assert) { - registerSuite({ - name: 'dojo/_base/query', + 'intern!object', + 'intern/chai!assert', + '../../../query', + '../../../_base/query' +], function (registerSuite, assert, query, baseQuery) { + registerSuite({ + name: 'dojo/_base/query', - 'TODO: convert tests': function () { - assert.fail(); - } - }); + "delegates to dojo/query": function () { + assert.equal(query, baseQuery); + } + }); }); diff --git a/tests/unit/_base/sniff.js b/tests/unit/_base/sniff.js index 075a958452..30aff3cfa6 100644 --- a/tests/unit/_base/sniff.js +++ b/tests/unit/_base/sniff.js @@ -1,12 +1,30 @@ define([ - 'intern!object', - 'intern/chai!assert' -], function (registerSuite, assert) { - registerSuite({ - name: 'dojo/_base/sniff', + 'intern!object', + 'intern/chai!assert', + '../../../_base/kernel', + '../../../sniff', + '../../../_base/sniff', +], function (registerSuite, assert, kernel, has) { + registerSuite({ + name: 'dojo/_base/sniff', - 'TODO: convert tests': function () { - assert.fail(); - } - }); + "direct delegates": function () { + assert.isTrue(kernel.isBrowser == has("host-browser")); + assert.equal(kernel.isFF, has("ff")); + assert.equal(kernel.isIE, has("ie")); + assert.equal(kernel.isKhtml, has("khtml")); + assert.equal(kernel.isWebKit, has("webkit")); + assert.equal(kernel.isMozilla, has("mozilla")); + assert.equal(kernel.isMoz, has("mozilla")); + assert.equal(kernel.isOpera, has("opera")); + assert.equal(kernel.isSafari, has("safari")); + assert.equal(kernel.isChrome, has("chrome")); + assert.equal(kernel.isMac, has("mac")); + assert.equal(kernel.isIos, has("ios")); + assert.equal(kernel.isAndroid, has("android")); + assert.equal(kernel.isWii, has("wii")); + assert.equal(kernel.isQuirks, has("quirks")); + assert.equal(kernel.isAir, has("air")); + } + }); }); diff --git a/tests/unit/_base/window.js b/tests/unit/_base/window.js index b6bb2a6eb7..ae9a7ed63a 100644 --- a/tests/unit/_base/window.js +++ b/tests/unit/_base/window.js @@ -1,12 +1,186 @@ define([ - 'intern!object', - 'intern/chai!assert' -], function (registerSuite, assert) { - registerSuite({ - name: 'dojo/_base/window', - - 'TODO: convert tests': function () { - assert.fail(); - } - }); + 'intern!object', + 'intern/chai!assert', + 'sinon', + '../../../_base/window', + '../../../_base/kernel', + '../../../_base/lang', + '../../../_base/sniff' +], function (registerSuite, assert, sinon, window, kernel, lang, sniff) { + registerSuite({ + name: 'dojo/_base/window', + "direct delegation": function () { + assert.equal(kernel.global, window.global); + assert.equal(kernel.global["document"], window.doc); + }, + "body()": { + "undefined": function () { + //arrange + + //act + var result = window.body(); + + //assert + assert.equal(result, kernel.doc.body); + }, + "document": function () { + //arrange + var iframe = document.createElement("iframe"); + document.body.appendChild(iframe); + + //act + var result = window.body(iframe.contentDocument); + + + //assert + assert.equal(result, iframe.contentDocument.body); + + document.body.removeChild(iframe); + } + }, + "setContext()": { + "object + document": function () { + //arrange + var object = { foo: "bar" }, + iframe = document.createElement("iframe"), + origGlobal = kernel.global, + origDoc = kernel.doc; + + document.body.appendChild(iframe); + + var doc = iframe.contentDocument; + + //act + window.setContext(object, doc); + + //assert + assert.equal(doc, kernel.doc); + assert.equal(doc, window.doc); + assert.equal(object, kernel.global); + assert.equal(object, window.global); + + kernel.global = window.global = origGlobal; + kernel.doc = window.doc = origDoc; + + } + }, + "withGlobal()": { + "object + function + object + array": function () { + //arrange + var globalObject = { document: { foo: "bar" } }, + callback = function () { }, + thisObject = { baz: "buz" }, + cbArguments = [42, 27], + mock = sinon.spy(window, "withDoc"), + oldGlobal = kernel.global; + + //act + window.withGlobal(globalObject, callback, thisObject, cbArguments); + + //assert + assert.isTrue(mock.calledWith(globalObject.document, + callback, thisObject, cbArguments)); + assert.equal(kernel.global, oldGlobal); + + mock.restore(); + + } + }, + "withDoc()": { + "document + function + object + array": function () { + //arrange + var iframe = document.createElement("iframe"), + caughtArgs, + caughtThis, + expectedReturn = "expected return", + callback = function () { + caughtThis = this; + caughtArgs = arguments; + + return expectedReturn; + }, + thisObject = { baz: "buz" }, + cbArguments = [42, 27], + oldGlobal = kernel.global; + + document.body.appendChild(iframe); + var doc = iframe.contentDocument; + + //act + var result = window.withDoc(doc, callback, thisObject, cbArguments); + + //assert + assert.equal(result, expectedReturn); + for (var i in cbArguments) { + assert.equal(caughtArgs[i], cbArguments[i]); + } + assert.equal(caughtThis, thisObject); + + }, + "document + string + object + array": function () { + //arrange + var iframe = document.createElement("iframe"), + caughtArgs, + caughtThis, + expectedReturn = "expected return", + callback = function () { + caughtThis = this; + caughtArgs = arguments; + + return expectedReturn; + }, + functionName = "theFunction", + thisObject = { baz: "buz" }, + cbArguments = [42, 27], + oldDoc = kernel.doc; + + thisObject[functionName] = callback; + + document.body.appendChild(iframe); + var doc = iframe.contentDocument; + + //act + var result = window.withDoc(doc, functionName, thisObject, cbArguments); + + //assert + assert.equal(result, expectedReturn); + for (var i in cbArguments) { + assert.equal(caughtArgs[i], cbArguments[i]); + } + assert.equal(caughtThis, thisObject); + assert.equal(kernel.doc, oldDoc); + }, + "document + function + object": function () { + //arrange + var iframe = document.createElement("iframe"), + caughtArgs, + caughtThis, + expectedReturn = "expected return", + callback = function () { + caughtThis = this; + caughtArgs = arguments; + + return expectedReturn; + }, + functionName = "theFunction", + thisObject = { baz: "buz" }, + oldDoc = kernel.doc; + + thisObject[functionName] = callback; + + document.body.appendChild(iframe); + var doc = iframe.contentDocument; + + //act + var result = window.withDoc(doc, functionName, thisObject); + + //assert + assert.equal(result, expectedReturn); + assert.deepEqual(caughtArgs.length, 0); + assert.equal(caughtThis, thisObject); + assert.equal(kernel.doc, oldDoc); + } + } + }); }); + diff --git a/tests/unit/all.js b/tests/unit/all.js index d64714086f..312bcc4282 100644 --- a/tests/unit/all.js +++ b/tests/unit/all.js @@ -3,7 +3,7 @@ define([ './Deferred', './Evented', './Stateful', - './_base', + './_base/all', './aspect', './cache', './cldr/monetary', @@ -14,7 +14,7 @@ define([ './date/locale', './date/stamp', './debounce', - './errors', + './errors/all', './fx/easing', './i18n', './io-query', @@ -38,6 +38,7 @@ define([ 'dojo/has!host-browser?./NodeList-manipulate', 'dojo/has!host-browser?./NodeList-traverse', 'dojo/has!host-browser?./back', + 'dojo/has!host-browser?./dom', 'dojo/has!host-browser?./dom-attr', 'dojo/has!host-browser?./dom-construct', 'dojo/has!host-browser?./dom-form', @@ -50,7 +51,6 @@ define([ // TODO: this should work in node as well, but it uses dom-construct 'dojo/has!host-browser?./on/debounce', 'dojo/has!host-browser?./parser', - 'dojo/has!host-browser?./query', 'dojo/has!host-browser?./require/require', 'dojo/has!host-browser?./router', 'dojo/has!host-browser?./rpc', diff --git a/tests/unit/dom-attr.js b/tests/unit/dom-attr.js index 35b2ddfc59..d80f8be105 100644 --- a/tests/unit/dom-attr.js +++ b/tests/unit/dom-attr.js @@ -1,12 +1,832 @@ define([ - 'intern!object', - 'intern/chai!assert' -], function (registerSuite, assert) { - registerSuite({ - name: 'dojo/dom-attr', - - 'TODO: convert tests': function () { - assert.fail(); - } - }); -}); + 'intern!object', + 'intern/chai!assert', + '../../dom-attr', + '../../dom-prop', + '../../dom-style', + 'dojo/dom-construct', + 'dojo/sniff' + +], function (registerSuite, assert, domAttr, domProp, domStyle, domConstruct, has, Deferred) { + + var attr = "data-dojo-test-attribute"; + var value = "the value"; + var node; + var nodeIdIndex = 1; + + function generateId() { + return "nodeid_" + nodeIdIndex++; + } + + registerSuite({ + name: 'dojo/dom-attr', + + ".get": { + beforeEach: function () { + node = domConstruct.toDom("
    "); + domConstruct.place(node, document.body); + }, + + afterEach: function () { + domConstruct.destroy(node); + }, + + "node + valid attribute": function () { + //arrange + + //act + var result = domAttr.get(node, attr); + + //assert + assert.equal(result, value, "when a Node and valid attribute are passed, then the correct value is returned"); + + }, + + "string + valid attribute": function () { + //arrange + var nodeId = generateId(); + node.setAttribute("id", nodeId); + + //act + var result = domAttr.get(nodeId, attr); + + //assert + assert.equal(result, value, "when a Node and valid attribute are passed, then the correct value is returned"); + + }, + + "node + 'innerHTML' returns property": function () { + //arrange + var expected = "the expected value"; + node.innerHTML = expected; + node.setAttribute("innerHTML", "not the expected value"); + + //act + var result = domAttr.get(node, "innerHTML"); + + //assert + assert.equal(result, expected, + "when an attribute and a property exist on the node, then the property is returned"); + + }, + + "returns correct values": function () { + //arrange + var testAttributes = { + "title": "the first value", + "name": "the second value", + "data-dojo-type": "the third value" + }; + + for (var a in testAttributes) { + node.setAttribute(a, testAttributes[a]); + } + + //act + var result = {}; + for (var a in testAttributes) { + result[a] = domAttr.get(node, a); + } + + //assert + for (var a in result) { + assert.equal(result[a], testAttributes[a], "when an attribute is requested, then the correct value is returned"); + } + + }, + + "forcedProp": function () { + //arrange + var propName = "innerHTML"; + node[propName] = "the property value"; + + //act + var result = domAttr.get(node, propName); + + //assert + assert.equal(result, node[propName], "when the requested attribute is a 'forced prop', then the correct value is returned"); + + }, + + "textContent": function () { + + //arrange + var expected = "the expected result"; + node.innerHTML = expected; + + //act + var result = domAttr.get(node, "textContent"); + + //assert + assert.equal(result, expected, "when the textContent is requested, then the result from dom-prop::get is returned"); + }, + + "boolean": function () { + //arrange + var name = "the boolean attribute"; + var value = true; + node[name] = value; + + //assert + var result = domAttr.get(node, name); + + //act + assert.strictEqual(result, value, "when the attribute's value is a boolean, then it is returned correctly"); + }, + + "function": function () { + //arrange + var name = "the boolean attribute"; + var value = function () { }; + node[name] = value; + + //assert + var result = domAttr.get(node, name); + + //act + assert.strictEqual(result, value, "when the attribute's value is a function, then it is returned correctly"); + }, + + "missing attribute": function () { + //arrange + var name = "the none existent attribute"; + node.getAttributeNode = function () { return null; }; + node[name] = undefined; + + //act + var result = domAttr.get(node, name); + + //assert + assert.isNull(result, "when the attribute doesn't exist, then 'null' is returned"); + } + }, + + ".set": { + + beforeEach: function () { + node = domConstruct.toDom("
    "); + domConstruct.place(node, document.body); + }, + + afterEach: function () { + domConstruct.destroy(node); + }, + + "node + name + value": function () { + //arrange + + //act + domAttr.set(node, attr, value); + + //assert + assert.equal(node.getAttribute(attr), value, + "when a node's attribute is set, then the node is updated properly"); + + }, + "string + name + value": function () { + //arrange + var nodeId = generateId(); + node.setAttribute("id", nodeId); + + //act + domAttr.set(nodeId, attr, value); + + //assert + assert.equal(node.getAttribute(attr), value, + "when a node's id is provided to set, then the node is updated properly"); + }, + "node + dictionary": function () { + //arrange + var attributes = { + name: "the name", + "data-foo": "the foo value", + title: "the title" + }; + + //act + domAttr.set(node, attributes); + + //assert + for (var a in attributes) { + assert.equal(attributes[a], node.getAttribute(a), + "when a hash of attributes is set onto a node, then the attributes are set properly"); + } + }, + "node + forcedProp": function () { + //arrange + var attributeName = "class"; + var value = "the-css-class"; + + //act + domAttr.set(node, attributeName, value); + + //assert + assert.equal(node.className, value, + "when the attribute is a forcedProp, then it is set properly"); + + }, + "node + name + boolean": function () { + //arrange + var attr = "data-boolean"; + var value = true; + + //act + domAttr.set(node, attr, value); + + //assert + assert.equal(node[attr], value, + "when the attribute's value is a boolean, then it is set properly"); + }, + "node + name + function": function () { + //arrange + var attr = "data-function"; + var value = function () { }; + var origDomPropSet = domProp.set; + var setNode, setName, setValue; + + domProp.set = function (node, name, value) { + setNode = node; + setName = name; + setValue = value; + } + + //act + domAttr.set(node, attr, value); + + //assert + assert.equal(setValue, value, + "when the attribute's value is a function, then it is set properly"); + domProp.set = origDomPropSet; + }, + + "node + 'style' + string": function () { + //arrange + var style = "color: black;"; + var styleNode, styleValue; + + //act + domAttr.set(node, "style", style); + + //assert + assert.equal(node.getAttribute("style"), style, + "when the attribute is 'style' and a dictionary is set, then it is set properly"); + }, + + "node + 'style' + dictionary": function () { + //arrange + var styles = { + color: "white", + backgroundColor: "red", + opacity: 0 + }; + var styleNode, styleValue; + + var origDomStyle = domStyle.set; + domStyle.set = function (node, value) { + setNode = node; + setValue = value; + } + + //act + domAttr.set(node, "style", styles); + + //assert + assert.equal(setValue, styles, + "when the attribute is 'style' and a dictionary is set, then it is set properly"); + domStyle.set = origDomStyle; + } + }, + + ".remove": { + beforeEach: function () { + node = domConstruct.toDom("
    "); + domConstruct.place(node, document.body); + }, + + afterEach: function () { + domConstruct.destroy(node); + }, + + "node + attribute": function () { + //arrange + + //act + domAttr.remove(node, attr); + + //assert + assert.isNull(node.getAttribute(attr), + "when an attribute is removed from a node, then its value becomes 'null'"); + }, + "string + attribute": function () { + //arrange + var nodeId = generateId(); + node.setAttribute("id", nodeId); + + //act + domAttr.remove(nodeId, attr); + + //assert + assert.isNull(node.getAttribute(attr), + "when a node's id is used, then the requested attribute is removed"); + }, + "node + 'className'": function () { + //arrange + + //act + domAttr.remove(node, "className"); + + //assert + assert.isNull(node.getAttribute("class"), + "when a class in the 'attrNames' array, then the proper attribute is removed"); + } + }, + + ".getNodeProp": { + beforeEach: function () { + node = domConstruct.toDom("
    "); + domConstruct.place(node, document.body); + }, + + afterEach: function () { + domConstruct.destroy(node); + }, + + "node + name": function () { + //arrange + + //act + var result = domAttr.getNodeProp(node, attr); + + //assert + assert.equal(result, value, + "when an attribute is requested from a node, then the correct value is returned"); + + }, + "string + name": function () { + //arrange + var nodeId = generateId(); + node.setAttribute("id", nodeId); + + //act + var result = domAttr.getNodeProp(nodeId, attr); + + //assert + assert.equal(result, value, + "when a node's id is passed, then the correct value is returned"); + }, + "node + 'className'": function () { + //arrange + var value = "the-css-class"; + node.setAttribute("class", value); + + //act + var result = domAttr.getNodeProp(node, "className"); + + //assert + assert.equal(result, value, + "when 'className' is requested, then the node's class is returned"); + + }, + "node + 'innerHTML' returns property": function () { + //arrange + var value = "the innerHTML value"; + node.innerHTML = value; + node.setAttribute("innerHTML", "not the expected value"); + + //act + var result = domAttr.getNodeProp(node, "innerHTML"); + + //assert + assert.equal(result, value, + "when 'innerHTML' is requested and there is both a property and attribute with that name, " + + "then the node's property is returned"); + }, + "node + 'name' returns property": function () { + //arrange + var expected = "the value"; + var attr = "name"; + node[attr] = expected; + node.setAttribute(attr, "not the expected value"); + + //act + var result = domAttr.getNodeProp(node, attr); + + //assert + assert.equal(result, value, + "when an attribute is requested and there is both a property and attribute with that name, " + + "then the node's property is returned"); + } + }, + + ".has": { + beforeEach: function () { + node = domConstruct.toDom("
    "); + domConstruct.place(node, document.body); + }, + + afterEach: function () { + domConstruct.destroy(node); + }, + "node + name": function () { + //arrange + + //acct + var result = domAttr.has(node, attr); + + //assert + assert.isTrue(result, + "when an existing attribute on a node is checked for, then the call returns 'true'"); + }, + "string + name": function () { + //arrange + var nodeId = generateId(); + node.setAttribute("id", nodeId); + + //acct + var result = domAttr.has(nodeId, attr); + + //assert + assert.isTrue(result, + "when a node's id is provided and the requested attribute exists, then the call returns 'true'"); + }, + "node + 'innerHTML'": function () { + //arrange + node.innerHTML = null; + + //act + var result = domAttr.has(node, "innerHTML"); + + //assert + assert.isTrue(!!result, + "when the 'innerHTML' is requested, then it always returns truthy"); + + }, + "node + non existent name": function () { + //arrange + + //acct + var result = domAttr.has(node, "doesnotexist"); + + //assert + assert.isFalse(!!result, + "when an attribute that doesn't exist on a node is checked for, then the call returns 'true'"); + } + }, + "validation tests": (function () { + var container, + inputNoType, + inputWithType, + inputNoTabindex, + inputTabindexMinusOne, + inputTabindexZero, + inputTabindexOne, + inputTextValue, + inputNoDisabled, + inputWithDisabled, + inputWithDisabledTrue, + divNoTabindex, + divTabindexMinusOne, + divTabindexZero, + divTabindexOne, + labelNoFor, + labelWithFor, + inputWithLabel; + + return { + setup: function () { + container = domConstruct.toDom("
    "); + inputNoType = domConstruct.toDom(''); + inputWithType = domConstruct.toDom(''); + inputNoTabindex = domConstruct.toDom(''); + inputTabindexMinusOne = domConstruct.toDom(''); + inputTabindexZero = domConstruct.toDom(''); + inputTabindexOne = domConstruct.toDom(''); + inputTextValue = domConstruct.toDom(''); + inputNoDisabled = domConstruct.toDom(''); + inputWithDisabled = domConstruct.toDom(''); + inputWithDisabledTrue = domConstruct.toDom(''); + divNoTabindex = domConstruct.toDom('
    '); + divTabindexMinusOne = domConstruct.toDom('
    '); + divTabindexZero = domConstruct.toDom('
    '); + divTabindexOne = domConstruct.toDom('
    '); + labelNoFor = domConstruct.toDom(''); + labelWithFor = domConstruct.toDom(''); + inputWithLabel = domConstruct.toDom(''); + + domConstruct.place(container, document.body); + domConstruct.place(inputNoType, container); + domConstruct.place(inputWithType, container); + domConstruct.place(inputNoTabindex, container); + domConstruct.place(inputTabindexMinusOne, container); + domConstruct.place(inputTabindexZero, container); + domConstruct.place(inputTabindexOne, container); + domConstruct.place(inputTextValue, container); + domConstruct.place(inputNoDisabled, container); + domConstruct.place(inputWithDisabled, container); + domConstruct.place(inputWithDisabledTrue, container); + domConstruct.place(divNoTabindex, container); + domConstruct.place(divTabindexMinusOne, container); + domConstruct.place(divTabindexZero, container); + domConstruct.place(divTabindexOne, container); + domConstruct.place(labelNoFor, container); + domConstruct.place(labelWithFor, container); + domConstruct.place(inputWithLabel, container); + }, + teardown: function () { + domConstruct.destroy(container); + }, + "getTypeInput": function () { + assert.isFalse(domAttr.has(inputNoType, "type")); + assert.isNull(domAttr.get(inputNoType, "type")); + assert.isTrue(domAttr.has(inputWithType, "type")); + assert.equal(domAttr.get(inputWithType, "type"), "checkbox"); + }, + "getWithString": function () { + assert.isFalse(domAttr.has(inputNoType.id, "type")); + assert.isNull(domAttr.get(inputNoType.id, "type")); + assert.isTrue(domAttr.has(inputWithType.id, "type")); + assert.equal(domAttr.get(inputWithType.id, "type"), "checkbox"); + }, + "attrId": function () { + assert.isTrue(domAttr.has(divNoTabindex.id, "id")); + assert.equal(divNoTabindex.id, domAttr.get(divNoTabindex.id, "id")); + var div = document.createElement("div"); + assert.isFalse(domAttr.has(div, "id")); + assert.isNull(domAttr.get(div, "id")); + var nodeId = generateId(); + domAttr.set(div, "id", nodeId); + assert.isTrue(domAttr.has(div, "id")); + assert.equal(domAttr.get(div, "id"), nodeId); + domAttr.remove(div, "id"); + assert.isFalse(domAttr.has(div, "id")); + assert.isNull(domAttr.get(div, "id")); + }, + "getTabindexDiv": function () { + assert.isFalse(domAttr.has(divNoTabindex, "tabIndex")); + assert.isTrue(domAttr.get(divNoTabindex, "tabIndex") <= 0); + assert.isTrue(domAttr.has(divTabindexMinusOne, "tabIndex")); + if (!has("opera")) { + // Opera (at least <= 9) does not support tabIndex="-1" + assert.equal(domAttr.get(divTabindexMinusOne, "tabIndex"), -1); + } + assert.isTrue(domAttr.has(divTabindexZero, "tabIndex")); + assert.equal(domAttr.get(divTabindexZero, "tabIndex"), 0); + assert.equal(domAttr.get(divTabindexOne, "tabIndex"), 1); + }, + "getTabindexInput": function () { + assert.isFalse(domAttr.has("input-no-tabindex", "tabIndex")); + assert.isFalse(!!domAttr.get("input-no-tabindex", "tabIndex")); + assert.isTrue(domAttr.has("input-tabindex-minus-1", "tabIndex")); + if (!has("opera")) { + // Opera (at least <= 9) does not support tabIndex="-1" + assert.equal(domAttr.get("input-tabindex-minus-1", "tabIndex"), -1); + } + assert.isTrue(domAttr.has("input-tabindex-0", "tabIndex")); + assert.equal(domAttr.get("input-tabindex-0", "tabIndex"), 0); + assert.equal(domAttr.get("input-tabindex-1", "tabIndex"), 1); + }, + "setTabindexDiv": function () { + var div = document.createElement("div"); + assert.isNull(domAttr.get(div, "tabIndex")); + domAttr.set(div, "tabIndex", -1); + if (!has("opera")) { + // Opera (at least <= 9) does not support tabIndex="-1" + assert.equal(domAttr.get(div, "tabIndex"), -1); + } + domAttr.set(div, "tabIndex", 0); + assert.equal(domAttr.get(div, "tabIndex"), 0); + domAttr.set(div, "tabIndex", 1); + assert.equal(domAttr.get(div, "tabIndex"), 1); + }, + "setTabindexInput": function () { + var input = document.createElement("input"); + assert.isTrue(domAttr.get(input, "tabIndex") <= 0); + domAttr.set(input, "tabIndex", -1); + if (!has("opera")) { + // Opera (at least <= 9) does not support tabIndex="-1" + assert.equal(domAttr.get(input, "tabIndex"), -1); + } + domAttr.set(input, "tabIndex", 0); + assert.equal(domAttr.get(input, "tabIndex"), 0); + domAttr.set(input, "tabIndex", 1); + assert.equal(domAttr.get(input, "tabIndex"), 1); + }, + "removeTabindexFromDiv": function () { + var div = document.createElement("div"); + domAttr.set(div, "tabIndex", 1); + assert.equal(domAttr.get(div, "tabIndex"), 1); + domAttr.remove(div, "tabIndex"); + assert.isNull(domAttr.get(div, "tabIndex")); + }, + "removeDisabledFromInput": function () { + var input = document.createElement("input"); + domAttr.set(input, "disabled", true); + assert.isTrue(domAttr.get(input, "disabled")); + domAttr.remove(input, "disabled"); + assert.isFalse(domAttr.get(input, "disabled")); + }, + "removeTabindexFromInput": function () { + var input = document.createElement("input"); + domAttr.set(input, "tabIndex", 1); + assert.equal(domAttr.get(input, "tabIndex"), 1); + domAttr.remove(input, "tabIndex"); + assert.isNull(domAttr.get(input, "tabIndex")); + }, + "setReadonlyInput": function () { + var input = document.createElement("input"); + assert.isFalse(domAttr.get(input, "readonly")); + domAttr.set(input, "readonly", true); + assert.isTrue(domAttr.get(input, "readonly")); + domAttr.set(input, "readonly", false); + assert.isFalse(domAttr.get(input, "readonly")); + }, + "attr_map": function () { + var input = document.createElement("input"), + input2 = document.createElement("input"), + ctr = 0, + callbackFired = false, + map = { + "tabIndex": 1, + "type": "text", + "onfocus": function (e) { + ctr++; + callbackFired = true; + } + }; + domAttr.set(input, map); + domAttr.set(input2, { + "onfocus": function (e) { + callbackFired = true; + } + }); + document.body.appendChild(input); + document.body.appendChild(input2); + assert.equal(domAttr.get(input, "tabIndex"), map.tabIndex, "tabIndex"); + assert.equal(domAttr.get(input, "type"), map.type, "type"); + assert.equal(ctr, 0, "onfocus ctr == 0"); + var def = this.async(1000); + + firstCallback = def.callback(function () { + if (callbackFired) { + console.log("one"); + assert.equal(ctr, 1, "onfocus ctr == 1"); + callbackFired = false; + input2.focus(); + } else { + setTimeout(firstCallback, 50); //try again in a bit + } + }); + + secondCallback = def.callback(function () { + if (callbackFired) { + console.log("two"); + callbackFired = false; + input.focus(); + } else { + setTimeout(secondCallback, 50); //try again in a bit + } + }); + thirdCallback = def.callback(function () { + if (callbackFired) { + console.log("three"); + assert.equal(ctr, 2, "onfocus ctr == 2"); + callbackFired = false; + } else { + setTimeout(thirdCallback, 50); //try again in a bit + } + }); + callbackFired = false; + firstCallback(); + input.focus(); + }, + "attr_reconnect": function () { + var input = document.createElement("input"), + input2 = document.createElement("input"), + callbackFired = false; + var ctr = 0; + domAttr.set(input, "type", "text"); + domAttr.set(input, "onfocus", function (e) { ctr++; callbackFired = true}); + domAttr.set(input, "onfocus", function (e) { ctr++; callbackFired = true }); + domAttr.set(input, "onfocus", function (e) { ctr++; callbackFired = true }); + domAttr.set(input2, "onfocus", function (e) { callbackFired = true }); + document.body.appendChild(input); + document.body.appendChild(input2); + assert.equal(domAttr.get(input, "type"), "text"); + assert.equal(ctr, 0); + var def = this.async(1000); + + firstCallback = def.callback(function () { + if (callbackFired) { + assert.equal(ctr, 1, "onfocus ctr == 1"); + callbackFired = false; + input2.focus(); + } else { + setTimeout(firstCallback, 50); //try again in a bit + } + }); + + secondCallback = def.callback(function () { + if (callbackFired) { + callbackFired = false; + input.focus(); + } else { + setTimeout(secondCallback, 50); //try again in a bit + } + }); + thirdCallback = def.callback(function () { + if (callbackFired) { + assert.equal(ctr, 2, "onfocus ctr == 2"); + callbackFired = false; + } else { + setTimeout(thirdCallback, 50); //try again in a bit + } + }); + + callbackFired = false; + firstCallback(); + input.focus(); + }, + "attrSpecials": function () { + var node = document.createElement("div"), + styleMap = { + opacity: 0.5, + width: "30px", + border: "1px solid black" + }, + propMap = { + innerHTML: "howdy!" + }; + document.body.appendChild(node); + domAttr.set(node, { style: styleMap }); + assert.equal(node.style.opacity, styleMap.opacity); + assert.equal(node.style.width, styleMap.width); + assert.equal(node.style.borderWidth, styleMap.border.split(" ")[0]); + domAttr.set(node, propMap); + assert.equal(node.innerHTML, propMap.innerHTML); + assert.equal(domAttr.get(node, "innerHTML"), propMap.innerHTML); + domAttr.set(node, "innerHTML", "howdy!"); + assert.equal(node.firstChild.nodeType, 1); + assert.equal(node.firstChild.nodeName.toLowerCase(), "span"); + assert.equal(node.innerHTML.toLowerCase(), "howdy!"); + assert.equal(domAttr.get(node, "innerHTML").toLowerCase(), "howdy!"); + }, + "testLabelForAttr": function () { + // create label with no for attribute make sure requesting + // it as for and html for returns null + var label = document.createElement("label"); + if (!has("ie")) { + // IE always assumes that "for" is present + assert.isNull(domAttr.get(label, "for")); + assert.isNull(domAttr.get(label, "htmlFor")); + } + // add a for attribute and test that can get by requesting for + domAttr.set(label, "for", "testId"); + assert.equal(domAttr.get(label, "for"), "testId"); + // add as htmlFor and make sure it is returned when requested as htmlFor + var label2 = document.createElement("label"); + domAttr.set(label2, "htmlFor", "testId2"); + assert.equal(domAttr.get(label2, "htmlFor"), "testId2"); + // check than when requested as for or htmlFor attribute is found + assert.isTrue(domAttr.has(label, "for")); + assert.isTrue(domAttr.has(label2, "htmlfor")); + // test from markup + + // make sure testing if has attribute using for or htmlFor + // both return null when no value set + if (!has("ie")) { + // IE always assumes that "for" is present + assert.isFalse(domAttr.has(labelNoFor, "for")); + assert.isFalse(domAttr.has(labelNoFor, "htmlFor")); + } + // when markup includes for make certain testing if has attribute + // using for or htmlFor returns true + assert.isTrue(domAttr.has(labelWithFor, "for")); + assert.isTrue(domAttr.has(labelWithFor, "htmlFor")); + // when markup include for attrib make sure can retrieve using for or htmlFor + assert.equal(domAttr.get(labelWithFor, "for"), "input-with-label"); + assert.equal(domAttr.get(labelWithFor, "htmlFor"), "input-with-label"); + }, + "attrInputTextValue": function () { + assert.equal(inputTextValue.value, "123"); + assert.equal(domAttr.get("input-text-value", "value"), "123"); + domAttr.set("input-text-value", "value", "abc"); + assert.equal(inputTextValue.value, "abc"); + assert.equal(domAttr.get("input-text-value", "value"), "abc"); + inputTextValue.value = "xyz"; + assert.equal(inputTextValue.value, "xyz"); + assert.equal(domAttr.get("input-text-value", "value"), "xyz"); + inputTextValue.value = "123"; // fixes initialization problem when the test is reloaded + }, + "testInputDisabled": function () { + assert.isFalse(domAttr.get("input-no-disabled", "disabled")); + assert.isTrue(domAttr.get("input-with-disabled", "disabled")); + assert.isTrue(domAttr.get("input-with-disabled-true", "disabled")); + } + }; + })() + }); +}); \ No newline at end of file diff --git a/tests/unit/dom-construct.js b/tests/unit/dom-construct.js index 3524e432f7..c09492023b 100644 --- a/tests/unit/dom-construct.js +++ b/tests/unit/dom-construct.js @@ -1,12 +1,796 @@ define([ - 'intern!object', - 'intern/chai!assert' -], function (registerSuite, assert) { - registerSuite({ - name: 'dojo/dom-construct', - - 'TODO: convert tests': function () { - assert.fail(); - } - }); + 'intern!object', + 'intern/chai!assert', + 'sinon', + '../../dom-construct', + '../../dom-attr' +], function (registerSuite, assert, sinon, domConstruct, domAttr) { + var baseId = "dom-construct", + uniqueId = 0; + + function getId() { + return baseId + uniqueId++; + } + + registerSuite({ + name: 'dojo/dom-construct', + + "toDom": (function () { + return { + "returns expected node when one requested": function () { + //arrange + var rawHTML = "
    "; + + //act + var result = domConstruct.toDom(rawHTML); + + //assert + assert.equal(result.nodeName.toLowerCase(), "div"); + + }, + "returns expected result when tree requested": function () { + //arrange + var parent = document.createElement("div"), + child = document.createElement("span"); + + parent.appendChild(child); + + //act + var result = domConstruct.toDom(parent.outerHTML); + + //assert + assert.equal(result.outerHTML, result.outerHTML); + }, + "returns expected result when forest requested": function () { + //arrange + var parent = document.createElement("div"), + children = + [ + document.createElement("span"), + document.createElement("span") + ]; + + for (var i in children) { + parent.appendChild(children[i]); + } + + //act + var result = domConstruct.toDom(parent.innerHTML); + + //assert + assert.equal(result.outerHTML, result.innerHTML); + }, + "able to create