From 93119365078d96622eddca51c0238feaee9ae70c Mon Sep 17 00:00:00 2001 From: Christian Dresen <c.dresen@fh-muenster.de> Date: Tue, 14 Mar 2017 18:00:25 +0100 Subject: [PATCH] [WarpPay] Changes in warppay --- .gitignore | 4 +- docker-compose.yml | 49 +++ www/Dockerfile | 6 +- www/misc/entrypoint.sh | 3 +- www/misc/entrypoint_dev.sh | 10 + www/web/static/admin/fonts/LICENSE.txt | 404 +++++++++--------- .../locales/bootstrap-datetimepicker.ar-ma.js | 112 ++--- .../js/locales/bootstrap-datetimepicker.ar.js | 112 ++--- .../js/locales/bootstrap-datetimepicker.bg.js | 172 ++++---- .../js/locales/bootstrap-datetimepicker.by.js | 306 ++++++------- .../js/locales/bootstrap-datetimepicker.cv.js | 118 ++--- .../js/locales/bootstrap-datetimepicker.el.js | 158 +++---- .../js/locales/bootstrap-datetimepicker.fa.js | 194 ++++----- .../js/locales/bootstrap-datetimepicker.he.js | 154 +++---- .../js/locales/bootstrap-datetimepicker.hi.js | 210 ++++----- .../js/locales/bootstrap-datetimepicker.ja.js | 116 ++--- .../js/locales/bootstrap-datetimepicker.ka.js | 216 +++++----- .../js/locales/bootstrap-datetimepicker.ko.js | 112 ++--- .../js/locales/bootstrap-datetimepicker.ml.js | 128 +++--- .../js/locales/bootstrap-datetimepicker.mr.js | 208 ++++----- .../js/locales/bootstrap-datetimepicker.ne.js | 210 ++++----- .../js/locales/bootstrap-datetimepicker.pl.js | 196 ++++----- .../js/locales/bootstrap-datetimepicker.ru.js | 326 +++++++------- .../js/locales/bootstrap-datetimepicker.th.js | 116 ++--- .../locales/bootstrap-datetimepicker.tzm.js | 110 ++--- .../js/locales/bootstrap-datetimepicker.uk.js | 314 +++++++------- .../js/locales/bootstrap-datetimepicker.uz.js | 110 ++--- .../locales/bootstrap-datetimepicker.zh-CN.js | 216 +++++----- .../locales/bootstrap-datetimepicker.zh-TW.js | 168 ++++---- .../rest_framework/css/bootstrap-tweaks.css | 1 - www/web/warpauth/models.py | 2 +- www/web/warppay/migrations/0001_initial.py | 47 ++ .../migrations/0002_auto_20170314_1732.py | 21 + .../migrations/0003_auto_20170314_1738.py | 20 + .../migrations/0004_auto_20170314_1739.py | 20 + .../migrations/0005_auto_20170314_1741.py | 20 + .../migrations/0006_auto_20170314_1748.py | 20 + www/web/warppay/migrations/__init__.py | 0 www/web/warppay/models.py | 2 +- www/web/warppay/views.py | 22 +- www/web/warpzone.db | Bin 79872 -> 98304 bytes www/web/warpzone/settings.py | 7 +- 42 files changed, 2483 insertions(+), 2257 deletions(-) create mode 100644 docker-compose.yml create mode 100644 www/misc/entrypoint_dev.sh create mode 100644 www/web/warppay/migrations/0001_initial.py create mode 100644 www/web/warppay/migrations/0002_auto_20170314_1732.py create mode 100644 www/web/warppay/migrations/0003_auto_20170314_1738.py create mode 100644 www/web/warppay/migrations/0004_auto_20170314_1739.py create mode 100644 www/web/warppay/migrations/0005_auto_20170314_1741.py create mode 100644 www/web/warppay/migrations/0006_auto_20170314_1748.py create mode 100644 www/web/warppay/migrations/__init__.py diff --git a/.gitignore b/.gitignore index 8bd1b54..cb1d1d7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ +.idea www/web/.idea/ -*.pyc \ No newline at end of file +*.pyc +config.ini \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..cd60f77 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,49 @@ +version: '2' + +services: + warpinfra-app: + build: ./www/ + ports: + - 8000:80 + - 8001:443 + volumes: + - ./www/web:/opt/warpinfra + - ./www/nginx:/opt/nginx + - ./www/conf/config.ini:/etc/warpinfra/config.ini + - ./www/web/warpzone.db:/opt/database/warpzone.db + entrypoint: /opt/entrypoint_dev.sh + depends_on: + - ldap + links: + - ldap + + mysql: + image: mariadb:latest + environment: + - "MYSQL_DATABASE=warpinfra" + - "MYSQL_USER=warpinfra" + - "MYSQL_PASSWORD=3HJJfad232sTGeKEex" + - "MYSQL_ROOT_PASSWORD=toor" + + ldap: + image: osixia/openldap:latest + hostname: ldap-service + environment: + - "LDAP_ORGANISATION=Warpzone" + - "LDAP_DOMAIN=warpzone.ms" + - "LDAP_ADMIN_PASSWORD=k7dAw8j2" + volumes: + - /opt/warpzone/ldap/database:/var/lib/ldap + - /opt/warpzone/ldap/config:/etc/ldap/slapd.d + + ldapadmin: + image: osixia/phpldapadmin:latest + hostname: phpldapadmin-service + ports: + - 6443:443 + environment: + - "PHPLDAPADMIN_LDAP_HOSTS=ldap" + depends_on: + - ldap + links: + - ldap diff --git a/www/Dockerfile b/www/Dockerfile index e718b7d..b67b34e 100644 --- a/www/Dockerfile +++ b/www/Dockerfile @@ -20,7 +20,9 @@ RUN apt-get update && apt-get install -y \ python3-pip \ python3-dev \ python3-bootstrapform - + +RUN pip3 install --upgrade pip + RUN pip3 install \ django==1.9 \ django-ldapdb \ @@ -43,6 +45,8 @@ RUN mkdir /opt/socket/ COPY misc/ldapdb_base.py /usr/local/lib/python3.4/dist-packages/ldapdb/backends/ldap/base.py COPY misc/entrypoint.sh /opt/entrypoint.sh +COPY misc/entrypoint_dev.sh /opt/entrypoint_dev.sh +RUN chmod +x /opt/entrypoint* ADD web /opt/warpinfra/ ADD nginx /opt/nginx diff --git a/www/misc/entrypoint.sh b/www/misc/entrypoint.sh index 437a03a..df73104 100644 --- a/www/misc/entrypoint.sh +++ b/www/misc/entrypoint.sh @@ -1,3 +1,4 @@ +#!/bin/bash #service rsyslog restart cd /opt/warpinfra; @@ -10,4 +11,4 @@ python3 manage.py collectstatic --noinput cp -r /opt/warpinfra/static /opt/socket/ uwsgi --ini /opt/nginx/uwsgi.ini --py-autoreload 1 -bash \ No newline at end of file +tail -f /var/log/uwsgi.log \ No newline at end of file diff --git a/www/misc/entrypoint_dev.sh b/www/misc/entrypoint_dev.sh new file mode 100644 index 0000000..bb71bf3 --- /dev/null +++ b/www/misc/entrypoint_dev.sh @@ -0,0 +1,10 @@ +#!/bin/bash +#service rsyslog restart + +cd /opt/warpinfra; +python3 manage.py makemigrations --merge +python3 manage.py makemigrations +python3 manage.py migrate +python3 manage.py compilemessages +python3 manage.py collectstatic --noinput +python3 manage.py runserver 0.0.0.0:80 diff --git a/www/web/static/admin/fonts/LICENSE.txt b/www/web/static/admin/fonts/LICENSE.txt index d645695..75b5248 100644 --- a/www/web/static/admin/fonts/LICENSE.txt +++ b/www/web/static/admin/fonts/LICENSE.txt @@ -1,202 +1,202 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ar-ma.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ar-ma.js index 1c159f1..44007c8 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ar-ma.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ar-ma.js @@ -1,56 +1,56 @@ -// moment.js language configuration -// language : Moroccan Arabic (ar-ma) -// author : ElFadili Yassine : https://github.com/ElFadiliY -// author : Abdel Said : https://github.com/abdelsaid - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - return moment.lang('ar-ma', { - months : "يناير_ÙØ¨Ø±Ø§ÙŠØ±_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"), - monthsShort : "يناير_ÙØ¨Ø±Ø§ÙŠØ±_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"), - weekdays : "Ø§Ù„Ø£ØØ¯_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), - weekdaysShort : "Ø§ØØ¯_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"), - weekdaysMin : "Ø_Ù†_Ø«_ر_Ø®_ج_س".split("_"), - longDateFormat : { - LT : "HH:mm", - L : "DD/MM/YYYY", - LL : "D MMMM YYYY", - LLL : "D MMMM YYYY LT", - LLLL : "dddd D MMMM YYYY LT" - }, - calendar : { - sameDay: "[اليوم على الساعة] LT", - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime : { - future : "ÙÙŠ %s", - past : "منذ %s", - s : "ثوان", - m : "دقيقة", - mm : "%d دقائق", - h : "ساعة", - hh : "%d ساعات", - d : "يوم", - dd : "%d أيام", - M : "شهر", - MM : "%d أشهر", - y : "سنة", - yy : "%d سنوات" - }, - week : { - dow : 6, // Saturday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. - } - }); -})); +// moment.js language configuration +// language : Moroccan Arabic (ar-ma) +// author : ElFadili Yassine : https://github.com/ElFadiliY +// author : Abdel Said : https://github.com/abdelsaid + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + return moment.lang('ar-ma', { + months : "يناير_ÙØ¨Ø±Ø§ÙŠØ±_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"), + monthsShort : "يناير_ÙØ¨Ø±Ø§ÙŠØ±_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"), + weekdays : "Ø§Ù„Ø£ØØ¯_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), + weekdaysShort : "Ø§ØØ¯_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"), + weekdaysMin : "Ø_Ù†_Ø«_ر_Ø®_ج_س".split("_"), + longDateFormat : { + LT : "HH:mm", + L : "DD/MM/YYYY", + LL : "D MMMM YYYY", + LLL : "D MMMM YYYY LT", + LLLL : "dddd D MMMM YYYY LT" + }, + calendar : { + sameDay: "[اليوم على الساعة] LT", + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L' + }, + relativeTime : { + future : "ÙÙŠ %s", + past : "منذ %s", + s : "ثوان", + m : "دقيقة", + mm : "%d دقائق", + h : "ساعة", + hh : "%d ساعات", + d : "يوم", + dd : "%d أيام", + M : "شهر", + MM : "%d أشهر", + y : "سنة", + yy : "%d سنوات" + }, + week : { + dow : 6, // Saturday is the first day of the week. + doy : 12 // The week that contains Jan 1st is the first week of the year. + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ar.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ar.js index 6e27d29..7444066 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ar.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ar.js @@ -1,56 +1,56 @@ -// moment.js language configuration -// language : Arabic (ar) -// author : Abdel Said : https://github.com/abdelsaid -// changes in months, weekdays : Ahmed Elkhatib - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - return moment.lang('ar', { - months : "يناير/ كانون الثاني_ÙØ¨Ø±Ø§ÙŠØ±/ شباط_مارس/ آذار_أبريل/ نيسان_مايو/ أيار_يونيو/ ØØ²ÙŠØ±Ø§Ù†_يوليو/ تموز_أغسطس/ آب_سبتمبر/ أيلول_أكتوبر/ تشرين الأول_نوÙمبر/ تشرين الثاني_ديسمبر/ كانون الأول".split("_"), - monthsShort : "يناير/ كانون الثاني_ÙØ¨Ø±Ø§ÙŠØ±/ شباط_مارس/ آذار_أبريل/ نيسان_مايو/ أيار_يونيو/ ØØ²ÙŠØ±Ø§Ù†_يوليو/ تموز_أغسطس/ آب_سبتمبر/ أيلول_أكتوبر/ تشرين الأول_نوÙمبر/ تشرين الثاني_ديسمبر/ كانون الأول".split("_"), - weekdays : "Ø§Ù„Ø£ØØ¯_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), - weekdaysShort : "Ø§Ù„Ø£ØØ¯_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), - weekdaysMin : "Ø_Ù†_Ø«_ر_Ø®_ج_س".split("_"), - longDateFormat : { - LT : "HH:mm", - L : "DD/MM/YYYY", - LL : "D MMMM YYYY", - LLL : "D MMMM YYYY LT", - LLLL : "dddd D MMMM YYYY LT" - }, - calendar : { - sameDay: "[اليوم على الساعة] LT", - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime : { - future : "ÙÙŠ %s", - past : "منذ %s", - s : "ثوان", - m : "دقيقة", - mm : "%d دقائق", - h : "ساعة", - hh : "%d ساعات", - d : "يوم", - dd : "%d أيام", - M : "شهر", - MM : "%d أشهر", - y : "سنة", - yy : "%d سنوات" - }, - week : { - dow : 6, // Saturday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. - } - }); -})); +// moment.js language configuration +// language : Arabic (ar) +// author : Abdel Said : https://github.com/abdelsaid +// changes in months, weekdays : Ahmed Elkhatib + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + return moment.lang('ar', { + months : "يناير/ كانون الثاني_ÙØ¨Ø±Ø§ÙŠØ±/ شباط_مارس/ آذار_أبريل/ نيسان_مايو/ أيار_يونيو/ ØØ²ÙŠØ±Ø§Ù†_يوليو/ تموز_أغسطس/ آب_سبتمبر/ أيلول_أكتوبر/ تشرين الأول_نوÙمبر/ تشرين الثاني_ديسمبر/ كانون الأول".split("_"), + monthsShort : "يناير/ كانون الثاني_ÙØ¨Ø±Ø§ÙŠØ±/ شباط_مارس/ آذار_أبريل/ نيسان_مايو/ أيار_يونيو/ ØØ²ÙŠØ±Ø§Ù†_يوليو/ تموز_أغسطس/ آب_سبتمبر/ أيلول_أكتوبر/ تشرين الأول_نوÙمبر/ تشرين الثاني_ديسمبر/ كانون الأول".split("_"), + weekdays : "Ø§Ù„Ø£ØØ¯_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), + weekdaysShort : "Ø§Ù„Ø£ØØ¯_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), + weekdaysMin : "Ø_Ù†_Ø«_ر_Ø®_ج_س".split("_"), + longDateFormat : { + LT : "HH:mm", + L : "DD/MM/YYYY", + LL : "D MMMM YYYY", + LLL : "D MMMM YYYY LT", + LLLL : "dddd D MMMM YYYY LT" + }, + calendar : { + sameDay: "[اليوم على الساعة] LT", + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L' + }, + relativeTime : { + future : "ÙÙŠ %s", + past : "منذ %s", + s : "ثوان", + m : "دقيقة", + mm : "%d دقائق", + h : "ساعة", + hh : "%d ساعات", + d : "يوم", + dd : "%d أيام", + M : "شهر", + MM : "%d أشهر", + y : "سنة", + yy : "%d سنوات" + }, + week : { + dow : 6, // Saturday is the first day of the week. + doy : 12 // The week that contains Jan 1st is the first week of the year. + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.bg.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.bg.js index f47ed65..4076935 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.bg.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.bg.js @@ -1,86 +1,86 @@ -// moment.js language configuration -// language : bulgarian (bg) -// author : Krasen Borisov : https://github.com/kraz - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - return moment.lang('bg', { - months : "Ñнуари_февруари_март_април_май_юни_юли_авгуÑÑ‚_Ñептември_октомври_ноември_декември".split("_"), - monthsShort : "Ñнр_фев_мар_апр_май_юни_юли_авг_Ñеп_окт_ное_дек".split("_"), - weekdays : "неделÑ_понеделник_вторник_ÑÑ€Ñда_четвъртък_петък_Ñъбота".split("_"), - weekdaysShort : "нед_пон_вто_ÑÑ€Ñ_чет_пет_Ñъб".split("_"), - weekdaysMin : "нд_пн_вт_ÑÑ€_чт_пт_Ñб".split("_"), - longDateFormat : { - LT : "H:mm", - L : "D.MM.YYYY", - LL : "D MMMM YYYY", - LLL : "D MMMM YYYY LT", - LLLL : "dddd, D MMMM YYYY LT" - }, - calendar : { - sameDay : '[Ð”Ð½ÐµÑ Ð²] LT', - nextDay : '[Утре в] LT', - nextWeek : 'dddd [в] LT', - lastDay : '[Вчера в] LT', - lastWeek : function () { - switch (this.day()) { - case 0: - case 3: - case 6: - return '[Ð’ изминалата] dddd [в] LT'; - case 1: - case 2: - case 4: - case 5: - return '[Ð’ изминалиÑ] dddd [в] LT'; - } - }, - sameElse : 'L' - }, - relativeTime : { - future : "Ñлед %s", - past : "преди %s", - s : "нÑколко Ñекунди", - m : "минута", - mm : "%d минути", - h : "чаÑ", - hh : "%d чаÑа", - d : "ден", - dd : "%d дни", - M : "меÑец", - MM : "%d меÑеца", - y : "година", - yy : "%d години" - }, - ordinal : function (number) { - var lastDigit = number % 10, - last2Digits = number % 100; - if (number === 0) { - return number + '-ев'; - } else if (last2Digits === 0) { - return number + '-ен'; - } else if (last2Digits > 10 && last2Digits < 20) { - return number + '-ти'; - } else if (lastDigit === 1) { - return number + '-ви'; - } else if (lastDigit === 2) { - return number + '-ри'; - } else if (lastDigit === 7 || lastDigit === 8) { - return number + '-ми'; - } else { - return number + '-ти'; - } - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } - }); -})); +// moment.js language configuration +// language : bulgarian (bg) +// author : Krasen Borisov : https://github.com/kraz + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + return moment.lang('bg', { + months : "Ñнуари_февруари_март_април_май_юни_юли_авгуÑÑ‚_Ñептември_октомври_ноември_декември".split("_"), + monthsShort : "Ñнр_фев_мар_апр_май_юни_юли_авг_Ñеп_окт_ное_дек".split("_"), + weekdays : "неделÑ_понеделник_вторник_ÑÑ€Ñда_четвъртък_петък_Ñъбота".split("_"), + weekdaysShort : "нед_пон_вто_ÑÑ€Ñ_чет_пет_Ñъб".split("_"), + weekdaysMin : "нд_пн_вт_ÑÑ€_чт_пт_Ñб".split("_"), + longDateFormat : { + LT : "H:mm", + L : "D.MM.YYYY", + LL : "D MMMM YYYY", + LLL : "D MMMM YYYY LT", + LLLL : "dddd, D MMMM YYYY LT" + }, + calendar : { + sameDay : '[Ð”Ð½ÐµÑ Ð²] LT', + nextDay : '[Утре в] LT', + nextWeek : 'dddd [в] LT', + lastDay : '[Вчера в] LT', + lastWeek : function () { + switch (this.day()) { + case 0: + case 3: + case 6: + return '[Ð’ изминалата] dddd [в] LT'; + case 1: + case 2: + case 4: + case 5: + return '[Ð’ изминалиÑ] dddd [в] LT'; + } + }, + sameElse : 'L' + }, + relativeTime : { + future : "Ñлед %s", + past : "преди %s", + s : "нÑколко Ñекунди", + m : "минута", + mm : "%d минути", + h : "чаÑ", + hh : "%d чаÑа", + d : "ден", + dd : "%d дни", + M : "меÑец", + MM : "%d меÑеца", + y : "година", + yy : "%d години" + }, + ordinal : function (number) { + var lastDigit = number % 10, + last2Digits = number % 100; + if (number === 0) { + return number + '-ев'; + } else if (last2Digits === 0) { + return number + '-ен'; + } else if (last2Digits > 10 && last2Digits < 20) { + return number + '-ти'; + } else if (lastDigit === 1) { + return number + '-ви'; + } else if (lastDigit === 2) { + return number + '-ри'; + } else if (lastDigit === 7 || lastDigit === 8) { + return number + '-ми'; + } else { + return number + '-ти'; + } + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.by.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.by.js index 0bb5d2f..a10c283 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.by.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.by.js @@ -1,153 +1,153 @@ -// moment.js language configuration -// language : belarusian (by) -// author : Dmitry Demidov : https://github.com/demidov91 -// Author : Menelion Elensúle : https://github.com/Oire - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); - } - - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - 'mm': 'хвіліна_хвіліны_хвілін', - 'hh': 'гадзіна_гадзіны_гадзін', - 'dd': 'дзень_днÑ_дней', - 'MM': 'меÑÑц_меÑÑца_меÑÑцаў', - 'yy': 'год_года_лет' - }; - if (key === 'm') { - return withoutSuffix ? 'хвіліна' : 'хвіліну'; - } - else if (key === 'h') { - return withoutSuffix ? 'гадзіна' : 'гадзіну'; - } - else { - return number + ' ' + plural(format[key], +number); - } - } - - function monthsCaseReplace(m, format) { - var months = { - 'nominative': 'Ñтудзень_люты_Ñакавік_краÑавік_травень_чÑрвень_ліпень_жнівень_вераÑень_каÑтрычнік_ліÑтапад_Ñнежань'.split('_'), - 'accusative': 'ÑтудзенÑ_лютага_Ñакавіка_краÑавіка_траўнÑ_чÑрвенÑ_ліпенÑ_жніўнÑ_вераÑнÑ_каÑтрычніка_ліÑтапада_ÑнежнÑ'.split('_') - }, - - nounCase = (/D[oD]? *MMMM?/).test(format) ? - 'accusative' : - 'nominative'; - - return months[nounCase][m.month()]; - } - - function weekdaysCaseReplace(m, format) { - var weekdays = { - 'nominative': 'нÑдзелÑ_панÑдзелак_аўторак_Ñерада_чацвер_пÑтніца_Ñубота'.split('_'), - 'accusative': 'нÑдзелю_панÑдзелак_аўторак_Ñераду_чацвер_пÑтніцу_Ñуботу'.split('_') - }, - - nounCase = (/\[ ?[Вв] ?(?:мінулую|наÑтупную)? ?\] ?dddd/).test(format) ? - 'accusative' : - 'nominative'; - - return weekdays[nounCase][m.day()]; - } - - return moment.lang('by', { - months : monthsCaseReplace, - monthsShort : 'Ñту_лют_Ñак_кра_тра_чÑÑ€_ліп_жні_вер_каÑ_ліÑ_Ñне'.split('_'), - weekdays : weekdaysCaseReplace, - weekdaysShort : "нд_пн_ат_ÑÑ€_чц_пт_Ñб".split("_"), - weekdaysMin : "нд_пн_ат_ÑÑ€_чц_пт_Ñб".split("_"), - longDateFormat : { - LT : "HH:mm", - L : "DD.MM.YYYY", - LL : "D MMMM YYYY г.", - LLL : "D MMMM YYYY г., LT", - LLLL : "dddd, D MMMM YYYY г., LT" - }, - calendar : { - sameDay: '[Ð¡Ñ‘Ð½Ð½Ñ Ñž] LT', - nextDay: '[Заўтра Ñž] LT', - lastDay: '[Учора Ñž] LT', - nextWeek: function () { - if (this.day() === 1 || this.day() === 2 || this.day() === 4){ - return '[У] dddd [у] LT'; - } - return '[У] dddd [Ñž] LT'; - }, - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 5: - case 6: - return '[У мінулую] dddd [Ñž] LT'; - case 1: - case 2: - case 4: - return '[У мінулы] dddd [у] LT'; - } - }, - sameElse: 'L' - }, - relativeTime : { - future : "праз %s", - past : "%s таму", - s : "некалькі Ñекунд", - m : relativeTimeWithPlural, - mm : relativeTimeWithPlural, - h : "гадзіну", - hh : relativeTimeWithPlural, - d : "дзень", - dd : relativeTimeWithPlural, - M : "меÑÑц", - MM : relativeTimeWithPlural, - y : "год", - yy : relativeTimeWithPlural - }, - - // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason - - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return "ночы"; - } else if (hour < 12) { - return "раніцы"; - } else if (hour < 17) { - return "днÑ"; - } else { - return "вечара"; - } - }, - - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - case 'w': - case 'W': - return number + '-Ñ‹'; - case 'D': - return number + '-га'; - default: - return number; - } - }, - - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } - }); -})); +// moment.js language configuration +// language : belarusian (by) +// author : Dmitry Demidov : https://github.com/demidov91 +// Author : Menelion Elensúle : https://github.com/Oire + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + function plural(word, num) { + var forms = word.split('_'); + return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); + } + + function relativeTimeWithPlural(number, withoutSuffix, key) { + var format = { + 'mm': 'хвіліна_хвіліны_хвілін', + 'hh': 'гадзіна_гадзіны_гадзін', + 'dd': 'дзень_днÑ_дней', + 'MM': 'меÑÑц_меÑÑца_меÑÑцаў', + 'yy': 'год_года_лет' + }; + if (key === 'm') { + return withoutSuffix ? 'хвіліна' : 'хвіліну'; + } + else if (key === 'h') { + return withoutSuffix ? 'гадзіна' : 'гадзіну'; + } + else { + return number + ' ' + plural(format[key], +number); + } + } + + function monthsCaseReplace(m, format) { + var months = { + 'nominative': 'Ñтудзень_люты_Ñакавік_краÑавік_травень_чÑрвень_ліпень_жнівень_вераÑень_каÑтрычнік_ліÑтапад_Ñнежань'.split('_'), + 'accusative': 'ÑтудзенÑ_лютага_Ñакавіка_краÑавіка_траўнÑ_чÑрвенÑ_ліпенÑ_жніўнÑ_вераÑнÑ_каÑтрычніка_ліÑтапада_ÑнежнÑ'.split('_') + }, + + nounCase = (/D[oD]? *MMMM?/).test(format) ? + 'accusative' : + 'nominative'; + + return months[nounCase][m.month()]; + } + + function weekdaysCaseReplace(m, format) { + var weekdays = { + 'nominative': 'нÑдзелÑ_панÑдзелак_аўторак_Ñерада_чацвер_пÑтніца_Ñубота'.split('_'), + 'accusative': 'нÑдзелю_панÑдзелак_аўторак_Ñераду_чацвер_пÑтніцу_Ñуботу'.split('_') + }, + + nounCase = (/\[ ?[Вв] ?(?:мінулую|наÑтупную)? ?\] ?dddd/).test(format) ? + 'accusative' : + 'nominative'; + + return weekdays[nounCase][m.day()]; + } + + return moment.lang('by', { + months : monthsCaseReplace, + monthsShort : 'Ñту_лют_Ñак_кра_тра_чÑÑ€_ліп_жні_вер_каÑ_ліÑ_Ñне'.split('_'), + weekdays : weekdaysCaseReplace, + weekdaysShort : "нд_пн_ат_ÑÑ€_чц_пт_Ñб".split("_"), + weekdaysMin : "нд_пн_ат_ÑÑ€_чц_пт_Ñб".split("_"), + longDateFormat : { + LT : "HH:mm", + L : "DD.MM.YYYY", + LL : "D MMMM YYYY г.", + LLL : "D MMMM YYYY г., LT", + LLLL : "dddd, D MMMM YYYY г., LT" + }, + calendar : { + sameDay: '[Ð¡Ñ‘Ð½Ð½Ñ Ñž] LT', + nextDay: '[Заўтра Ñž] LT', + lastDay: '[Учора Ñž] LT', + nextWeek: function () { + if (this.day() === 1 || this.day() === 2 || this.day() === 4){ + return '[У] dddd [у] LT'; + } + return '[У] dddd [Ñž] LT'; + }, + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 5: + case 6: + return '[У мінулую] dddd [Ñž] LT'; + case 1: + case 2: + case 4: + return '[У мінулы] dddd [у] LT'; + } + }, + sameElse: 'L' + }, + relativeTime : { + future : "праз %s", + past : "%s таму", + s : "некалькі Ñекунд", + m : relativeTimeWithPlural, + mm : relativeTimeWithPlural, + h : "гадзіну", + hh : relativeTimeWithPlural, + d : "дзень", + dd : relativeTimeWithPlural, + M : "меÑÑц", + MM : relativeTimeWithPlural, + y : "год", + yy : relativeTimeWithPlural + }, + + // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason + + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return "ночы"; + } else if (hour < 12) { + return "раніцы"; + } else if (hour < 17) { + return "днÑ"; + } else { + return "вечара"; + } + }, + + ordinal: function (number, period) { + switch (period) { + case 'M': + case 'd': + case 'DDD': + case 'w': + case 'W': + return number + '-Ñ‹'; + case 'D': + return number + '-га'; + default: + return number; + } + }, + + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.cv.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.cv.js index a5812de..ed9e260 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.cv.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.cv.js @@ -1,59 +1,59 @@ -// moment.js language configuration -// language : chuvash (cv) -// author : Anatoly Mironov : https://github.com/mirontoli - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - return moment.lang('cv', { - months : "кăрлач_нарăÑ_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"), - monthsShort : "кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"), - weekdays : "вырÑарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_Ñрнекун_шăматкун".split("_"), - weekdaysShort : "выр_тун_ытл_юн_кĕç_Ñрн_шăм".split("_"), - weekdaysMin : "вр_тн_ыт_юн_кç_ÑÑ€_шм".split("_"), - longDateFormat : { - LT : "HH:mm", - L : "DD-MM-YYYY", - LL : "YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]", - LLL : "YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT", - LLLL : "dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT" - }, - calendar : { - sameDay: '[ПаÑн] LT [Ñехетре]', - nextDay: '[Ыран] LT [Ñехетре]', - lastDay: '[Ĕнер] LT [Ñехетре]', - nextWeek: '[ÇитеÑ] dddd LT [Ñехетре]', - lastWeek: '[Иртнĕ] dddd LT [Ñехетре]', - sameElse: 'L' - }, - relativeTime : { - future : function (output) { - var affix = /Ñехет$/i.exec(output) ? "рен" : /çул$/i.exec(output) ? "тан" : "ран"; - return output + affix; - }, - past : "%s каÑлла", - s : "пĕр-ик çеккунт", - m : "пĕр минут", - mm : "%d минут", - h : "пĕр Ñехет", - hh : "%d Ñехет", - d : "пĕр кун", - dd : "%d кун", - M : "пĕр уйăх", - MM : "%d уйăх", - y : "пĕр çул", - yy : "%d çул" - }, - ordinal : '%d-мĕш', - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } - }); -})); +// moment.js language configuration +// language : chuvash (cv) +// author : Anatoly Mironov : https://github.com/mirontoli + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + return moment.lang('cv', { + months : "кăрлач_нарăÑ_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"), + monthsShort : "кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"), + weekdays : "вырÑарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_Ñрнекун_шăматкун".split("_"), + weekdaysShort : "выр_тун_ытл_юн_кĕç_Ñрн_шăм".split("_"), + weekdaysMin : "вр_тн_ыт_юн_кç_ÑÑ€_шм".split("_"), + longDateFormat : { + LT : "HH:mm", + L : "DD-MM-YYYY", + LL : "YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]", + LLL : "YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT", + LLLL : "dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT" + }, + calendar : { + sameDay: '[ПаÑн] LT [Ñехетре]', + nextDay: '[Ыран] LT [Ñехетре]', + lastDay: '[Ĕнер] LT [Ñехетре]', + nextWeek: '[ÇитеÑ] dddd LT [Ñехетре]', + lastWeek: '[Иртнĕ] dddd LT [Ñехетре]', + sameElse: 'L' + }, + relativeTime : { + future : function (output) { + var affix = /Ñехет$/i.exec(output) ? "рен" : /çул$/i.exec(output) ? "тан" : "ран"; + return output + affix; + }, + past : "%s каÑлла", + s : "пĕр-ик çеккунт", + m : "пĕр минут", + mm : "%d минут", + h : "пĕр Ñехет", + hh : "%d Ñехет", + d : "пĕр кун", + dd : "%d кун", + M : "пĕр уйăх", + MM : "%d уйăх", + y : "пĕр çул", + yy : "%d çул" + }, + ordinal : '%d-мĕш', + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.el.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.el.js index 9dfea23..665c651 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.el.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.el.js @@ -1,79 +1,79 @@ -// moment.js language configuration -// language : modern greek (el) -// author : Aggelos Karalias : https://github.com/mehiel - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - return moment.lang('el', { - monthsNominativeEl : "ΙανουάÏιος_ΦεβÏουάÏιος_ΜάÏτιος_ΑπÏίλιος_Μάιος_ΙοÏνιος_ΙοÏλιος_ΑÏγουστος_ΣεπτÎμβÏιος_ΟκτώβÏιος_ÎοÎμβÏιος_ΔεκÎμβÏιος".split("_"), - monthsGenitiveEl : "ΙανουαÏίου_ΦεβÏουαÏίου_ΜαÏτίου_ΑπÏιλίου_ΜαÎου_Ιουνίου_Ιουλίου_ΑυγοÏστου_ΣεπτεμβÏίου_ΟκτωβÏίου_ÎοεμβÏίου_ΔεκεμβÏίου".split("_"), - months : function (momentToFormat, format) { - if (/D/.test(format.substring(0, format.indexOf("MMMM")))) { // if there is a day number before 'MMMM' - return this._monthsGenitiveEl[momentToFormat.month()]; - } else { - return this._monthsNominativeEl[momentToFormat.month()]; - } - }, - monthsShort : "Ιαν_Φεβ_ΜαÏ_ΑπÏ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Îοε_Δεκ".split("_"), - weekdays : "ΚυÏιακή_ΔευτÎÏα_ΤÏίτη_ΤετάÏτη_Î Îμπτη_ΠαÏασκευή_Σάββατο".split("_"), - weekdaysShort : "ΚυÏ_Δευ_ΤÏι_Τετ_Πεμ_ΠαÏ_Σαβ".split("_"), - weekdaysMin : "Κυ_Δε_ΤÏ_Τε_Πε_Πα_Σα".split("_"), - meridiem : function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'μμ' : 'ΜΜ'; - } else { - return isLower ? 'πμ' : 'ΠΜ'; - } - }, - longDateFormat : { - LT : "h:mm A", - L : "DD/MM/YYYY", - LL : "D MMMM YYYY", - LLL : "D MMMM YYYY LT", - LLLL : "dddd, D MMMM YYYY LT" - }, - calendarEl : { - sameDay : '[ΣήμεÏα {}] LT', - nextDay : '[ΑÏÏιο {}] LT', - nextWeek : 'dddd [{}] LT', - lastDay : '[Χθες {}] LT', - lastWeek : '[την Ï€ÏοηγοÏμενη] dddd [{}] LT', - sameElse : 'L' - }, - calendar : function (key, mom) { - var output = this._calendarEl[key], - hours = mom && mom.hours(); - - return output.replace("{}", (hours % 12 === 1 ? "στη" : "στις")); - }, - relativeTime : { - future : "σε %s", - past : "%s Ï€Ïιν", - s : "δευτεÏόλεπτα", - m : "Îνα λεπτό", - mm : "%d λεπτά", - h : "μία ÏŽÏα", - hh : "%d ÏŽÏες", - d : "μία μÎÏα", - dd : "%d μÎÏες", - M : "Îνας μήνας", - MM : "%d μήνες", - y : "Îνας χÏόνος", - yy : "%d χÏόνια" - }, - ordinal : function (number) { - return number + 'η'; - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4st is the first week of the year. - } - }); -})); +// moment.js language configuration +// language : modern greek (el) +// author : Aggelos Karalias : https://github.com/mehiel + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + return moment.lang('el', { + monthsNominativeEl : "ΙανουάÏιος_ΦεβÏουάÏιος_ΜάÏτιος_ΑπÏίλιος_Μάιος_ΙοÏνιος_ΙοÏλιος_ΑÏγουστος_ΣεπτÎμβÏιος_ΟκτώβÏιος_ÎοÎμβÏιος_ΔεκÎμβÏιος".split("_"), + monthsGenitiveEl : "ΙανουαÏίου_ΦεβÏουαÏίου_ΜαÏτίου_ΑπÏιλίου_ΜαÎου_Ιουνίου_Ιουλίου_ΑυγοÏστου_ΣεπτεμβÏίου_ΟκτωβÏίου_ÎοεμβÏίου_ΔεκεμβÏίου".split("_"), + months : function (momentToFormat, format) { + if (/D/.test(format.substring(0, format.indexOf("MMMM")))) { // if there is a day number before 'MMMM' + return this._monthsGenitiveEl[momentToFormat.month()]; + } else { + return this._monthsNominativeEl[momentToFormat.month()]; + } + }, + monthsShort : "Ιαν_Φεβ_ΜαÏ_ΑπÏ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Îοε_Δεκ".split("_"), + weekdays : "ΚυÏιακή_ΔευτÎÏα_ΤÏίτη_ΤετάÏτη_Î Îμπτη_ΠαÏασκευή_Σάββατο".split("_"), + weekdaysShort : "ΚυÏ_Δευ_ΤÏι_Τετ_Πεμ_ΠαÏ_Σαβ".split("_"), + weekdaysMin : "Κυ_Δε_ΤÏ_Τε_Πε_Πα_Σα".split("_"), + meridiem : function (hours, minutes, isLower) { + if (hours > 11) { + return isLower ? 'μμ' : 'ΜΜ'; + } else { + return isLower ? 'πμ' : 'ΠΜ'; + } + }, + longDateFormat : { + LT : "h:mm A", + L : "DD/MM/YYYY", + LL : "D MMMM YYYY", + LLL : "D MMMM YYYY LT", + LLLL : "dddd, D MMMM YYYY LT" + }, + calendarEl : { + sameDay : '[ΣήμεÏα {}] LT', + nextDay : '[ΑÏÏιο {}] LT', + nextWeek : 'dddd [{}] LT', + lastDay : '[Χθες {}] LT', + lastWeek : '[την Ï€ÏοηγοÏμενη] dddd [{}] LT', + sameElse : 'L' + }, + calendar : function (key, mom) { + var output = this._calendarEl[key], + hours = mom && mom.hours(); + + return output.replace("{}", (hours % 12 === 1 ? "στη" : "στις")); + }, + relativeTime : { + future : "σε %s", + past : "%s Ï€Ïιν", + s : "δευτεÏόλεπτα", + m : "Îνα λεπτό", + mm : "%d λεπτά", + h : "μία ÏŽÏα", + hh : "%d ÏŽÏες", + d : "μία μÎÏα", + dd : "%d μÎÏες", + M : "Îνας μήνας", + MM : "%d μήνες", + y : "Îνας χÏόνος", + yy : "%d χÏόνια" + }, + ordinal : function (number) { + return number + 'η'; + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4st is the first week of the year. + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.fa.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.fa.js index 4a690c4..360ba90 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.fa.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.fa.js @@ -1,97 +1,97 @@ -// moment.js language configuration -// language : Persian Language -// author : Ebrahim Byagowi : https://github.com/ebraminio - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - var symbolMap = { - '1': 'Û±', - '2': 'Û²', - '3': 'Û³', - '4': 'Û´', - '5': 'Ûµ', - '6': 'Û¶', - '7': 'Û·', - '8': 'Û¸', - '9': 'Û¹', - '0': 'Û°' - }, numberMap = { - 'Û±': '1', - 'Û²': '2', - 'Û³': '3', - 'Û´': '4', - 'Ûµ': '5', - 'Û¶': '6', - 'Û·': '7', - 'Û¸': '8', - 'Û¹': '9', - 'Û°': '0' - }; - - return moment.lang('fa', { - months : 'ژانویه_Ùوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), - monthsShort : 'ژانویه_Ùوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), - weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), - weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), - weekdaysMin : 'ÛŒ_د_س_Ú†_Ù¾_ج_Ø´'.split('_'), - longDateFormat : { - LT : 'HH:mm', - L : 'DD/MM/YYYY', - LL : 'D MMMM YYYY', - LLL : 'D MMMM YYYY LT', - LLLL : 'dddd, D MMMM YYYY LT' - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return "قبل از ظهر"; - } else { - return "بعد از ظهر"; - } - }, - calendar : { - sameDay : '[امروز ساعت] LT', - nextDay : '[ÙØ±Ø¯Ø§ ساعت] LT', - nextWeek : 'dddd [ساعت] LT', - lastDay : '[دیروز ساعت] LT', - lastWeek : 'dddd [پیش] [ساعت] LT', - sameElse : 'L' - }, - relativeTime : { - future : 'در %s', - past : '%s پیش', - s : 'چندین ثانیه', - m : 'یک دقیقه', - mm : '%d دقیقه', - h : 'یک ساعت', - hh : '%d ساعت', - d : 'یک روز', - dd : '%d روز', - M : 'یک ماه', - MM : '%d ماه', - y : 'یک سال', - yy : '%d سال' - }, - preparse: function (string) { - return string.replace(/[Û°-Û¹]/g, function (match) { - return numberMap[match]; - }).replace(/ØŒ/g, ','); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }).replace(/,/g, 'ØŒ'); - }, - ordinal : '%dÙ…', - week : { - dow : 6, // Saturday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. - } - }); -})); +// moment.js language configuration +// language : Persian Language +// author : Ebrahim Byagowi : https://github.com/ebraminio + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + var symbolMap = { + '1': 'Û±', + '2': 'Û²', + '3': 'Û³', + '4': 'Û´', + '5': 'Ûµ', + '6': 'Û¶', + '7': 'Û·', + '8': 'Û¸', + '9': 'Û¹', + '0': 'Û°' + }, numberMap = { + 'Û±': '1', + 'Û²': '2', + 'Û³': '3', + 'Û´': '4', + 'Ûµ': '5', + 'Û¶': '6', + 'Û·': '7', + 'Û¸': '8', + 'Û¹': '9', + 'Û°': '0' + }; + + return moment.lang('fa', { + months : 'ژانویه_Ùوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), + monthsShort : 'ژانویه_Ùوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), + weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), + weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), + weekdaysMin : 'ÛŒ_د_س_Ú†_Ù¾_ج_Ø´'.split('_'), + longDateFormat : { + LT : 'HH:mm', + L : 'DD/MM/YYYY', + LL : 'D MMMM YYYY', + LLL : 'D MMMM YYYY LT', + LLLL : 'dddd, D MMMM YYYY LT' + }, + meridiem : function (hour, minute, isLower) { + if (hour < 12) { + return "قبل از ظهر"; + } else { + return "بعد از ظهر"; + } + }, + calendar : { + sameDay : '[امروز ساعت] LT', + nextDay : '[ÙØ±Ø¯Ø§ ساعت] LT', + nextWeek : 'dddd [ساعت] LT', + lastDay : '[دیروز ساعت] LT', + lastWeek : 'dddd [پیش] [ساعت] LT', + sameElse : 'L' + }, + relativeTime : { + future : 'در %s', + past : '%s پیش', + s : 'چندین ثانیه', + m : 'یک دقیقه', + mm : '%d دقیقه', + h : 'یک ساعت', + hh : '%d ساعت', + d : 'یک روز', + dd : '%d روز', + M : 'یک ماه', + MM : '%d ماه', + y : 'یک سال', + yy : '%d سال' + }, + preparse: function (string) { + return string.replace(/[Û°-Û¹]/g, function (match) { + return numberMap[match]; + }).replace(/ØŒ/g, ','); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }).replace(/,/g, 'ØŒ'); + }, + ordinal : '%dÙ…', + week : { + dow : 6, // Saturday is the first day of the week. + doy : 12 // The week that contains Jan 1st is the first week of the year. + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.he.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.he.js index b85dbe8..abb3f9f 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.he.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.he.js @@ -1,77 +1,77 @@ -// moment.js language configuration -// language : Hebrew (he) -// author : Tomer Cohen : https://github.com/tomer -// author : Moshe Simantov : https://github.com/DevelopmentIL -// author : Tal Ater : https://github.com/TalAter - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - return moment.lang('he', { - months : "×™× ×•×ר_פברו×ר_מרץ_×פריל_מ××™_×™×•× ×™_יולי_×וגוסט_ספטמבר_×וקטובר_× ×•×‘×ž×‘×¨_דצמבר".split("_"), - monthsShort : "×™× ×•×³_פבר׳_מרץ_×פר׳_מ××™_×™×•× ×™_יולי_×וג׳_ספט׳_×וק׳_× ×•×‘×³_דצמ׳".split("_"), - weekdays : "ר×שון_×©× ×™_שלישי_רביעי_חמישי_שישי_שבת".split("_"), - weekdaysShort : "×׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"), - weekdaysMin : "×_ב_×’_ד_×”_ו_ש".split("_"), - longDateFormat : { - LT : "HH:mm", - L : "DD/MM/YYYY", - LL : "D [ב]MMMM YYYY", - LLL : "D [ב]MMMM YYYY LT", - LLLL : "dddd, D [ב]MMMM YYYY LT", - l : "D/M/YYYY", - ll : "D MMM YYYY", - lll : "D MMM YYYY LT", - llll : "ddd, D MMM YYYY LT" - }, - calendar : { - sameDay : '[×”×™×•× ×‘Ö¾]LT', - nextDay : '[מחר ב־]LT', - nextWeek : 'dddd [בשעה] LT', - lastDay : '[×תמול ב־]LT', - lastWeek : '[ביו×] dddd [×”×חרון בשעה] LT', - sameElse : 'L' - }, - relativeTime : { - future : "בעוד %s", - past : "×œ×¤× ×™ %s", - s : "מספר ×©× ×™×•×ª", - m : "דקה", - mm : "%d דקות", - h : "שעה", - hh : function (number) { - if (number === 2) { - return "שעתיי×"; - } - return number + " שעות"; - }, - d : "יו×", - dd : function (number) { - if (number === 2) { - return "יומיי×"; - } - return number + " ימי×"; - }, - M : "חודש", - MM : function (number) { - if (number === 2) { - return "חודשיי×"; - } - return number + " חודשי×"; - }, - y : "×©× ×”", - yy : function (number) { - if (number === 2) { - return "×©× ×ª×™×™×"; - } - return number + " ×©× ×™×"; - } - } - }); -})); +// moment.js language configuration +// language : Hebrew (he) +// author : Tomer Cohen : https://github.com/tomer +// author : Moshe Simantov : https://github.com/DevelopmentIL +// author : Tal Ater : https://github.com/TalAter + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + return moment.lang('he', { + months : "×™× ×•×ר_פברו×ר_מרץ_×פריל_מ××™_×™×•× ×™_יולי_×וגוסט_ספטמבר_×וקטובר_× ×•×‘×ž×‘×¨_דצמבר".split("_"), + monthsShort : "×™× ×•×³_פבר׳_מרץ_×פר׳_מ××™_×™×•× ×™_יולי_×וג׳_ספט׳_×וק׳_× ×•×‘×³_דצמ׳".split("_"), + weekdays : "ר×שון_×©× ×™_שלישי_רביעי_חמישי_שישי_שבת".split("_"), + weekdaysShort : "×׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"), + weekdaysMin : "×_ב_×’_ד_×”_ו_ש".split("_"), + longDateFormat : { + LT : "HH:mm", + L : "DD/MM/YYYY", + LL : "D [ב]MMMM YYYY", + LLL : "D [ב]MMMM YYYY LT", + LLLL : "dddd, D [ב]MMMM YYYY LT", + l : "D/M/YYYY", + ll : "D MMM YYYY", + lll : "D MMM YYYY LT", + llll : "ddd, D MMM YYYY LT" + }, + calendar : { + sameDay : '[×”×™×•× ×‘Ö¾]LT', + nextDay : '[מחר ב־]LT', + nextWeek : 'dddd [בשעה] LT', + lastDay : '[×תמול ב־]LT', + lastWeek : '[ביו×] dddd [×”×חרון בשעה] LT', + sameElse : 'L' + }, + relativeTime : { + future : "בעוד %s", + past : "×œ×¤× ×™ %s", + s : "מספר ×©× ×™×•×ª", + m : "דקה", + mm : "%d דקות", + h : "שעה", + hh : function (number) { + if (number === 2) { + return "שעתיי×"; + } + return number + " שעות"; + }, + d : "יו×", + dd : function (number) { + if (number === 2) { + return "יומיי×"; + } + return number + " ימי×"; + }, + M : "חודש", + MM : function (number) { + if (number === 2) { + return "חודשיי×"; + } + return number + " חודשי×"; + }, + y : "×©× ×”", + yy : function (number) { + if (number === 2) { + return "×©× ×ª×™×™×"; + } + return number + " ×©× ×™×"; + } + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.hi.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.hi.js index 8e6e99c..93b7741 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.hi.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.hi.js @@ -1,105 +1,105 @@ -// moment.js language configuration -// language : hindi (hi) -// author : Mayank Singhal : https://github.com/mayanksinghal - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - var symbolMap = { - '1': '१', - '2': '२', - '3': '३', - '4': '४', - '5': '५', - '6': '६', - '7': 'à¥', - '8': '८', - '9': '९', - '0': '०' - }, - numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - 'à¥': '7', - '८': '8', - '९': '9', - '०': '0' - }; - - return moment.lang('hi', { - months : 'जनवरी_फ़रवरी_मारà¥à¤š_अपà¥à¤°à¥ˆà¤²_मई_जून_जà¥à¤²à¤¾à¤ˆ_अगसà¥à¤¤_सितमà¥à¤¬à¤°_अकà¥à¤Ÿà¥‚बर_नवमà¥à¤¬à¤°_दिसमà¥à¤¬à¤°'.split("_"), - monthsShort : 'जन._फ़र._मारà¥à¤š_अपà¥à¤°à¥ˆ._मई_जून_जà¥à¤²._अग._सित._अकà¥à¤Ÿà¥‚._नव._दिस.'.split("_"), - weekdays : 'रविवार_सोमवार_मंगलवार_बà¥à¤§à¤µà¤¾à¤°_गà¥à¤°à¥‚वार_शà¥à¤•à¥à¤°à¤µà¤¾à¤°_शनिवार'.split("_"), - weekdaysShort : 'रवि_सोम_मंगल_बà¥à¤§_गà¥à¤°à¥‚_शà¥à¤•à¥à¤°_शनि'.split("_"), - weekdaysMin : 'र_सो_मं_बà¥_गà¥_शà¥_श'.split("_"), - longDateFormat : { - LT : "A h:mm बजे", - L : "DD/MM/YYYY", - LL : "D MMMM YYYY", - LLL : "D MMMM YYYY, LT", - LLLL : "dddd, D MMMM YYYY, LT" - }, - calendar : { - sameDay : '[आज] LT', - nextDay : '[कल] LT', - nextWeek : 'dddd, LT', - lastDay : '[कल] LT', - lastWeek : '[पिछले] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : "%s में", - past : "%s पहले", - s : "कà¥à¤› ही कà¥à¤·à¤£", - m : "à¤à¤• मिनट", - mm : "%d मिनट", - h : "à¤à¤• घंटा", - hh : "%d घंटे", - d : "à¤à¤• दिन", - dd : "%d दिन", - M : "à¤à¤• महीने", - MM : "%d महीने", - y : "à¤à¤• वरà¥à¤·", - yy : "%d वरà¥à¤·" - }, - preparse: function (string) { - return string.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // Hindi notation for meridiems are quite fuzzy in practice. While there exists - // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return "रात"; - } else if (hour < 10) { - return "सà¥à¤¬à¤¹"; - } else if (hour < 17) { - return "दोपहर"; - } else if (hour < 20) { - return "शाम"; - } else { - return "रात"; - } - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. - } - }); -})); +// moment.js language configuration +// language : hindi (hi) +// author : Mayank Singhal : https://github.com/mayanksinghal + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + var symbolMap = { + '1': '१', + '2': '२', + '3': '३', + '4': '४', + '5': '५', + '6': '६', + '7': 'à¥', + '8': '८', + '9': '९', + '0': '०' + }, + numberMap = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + 'à¥': '7', + '८': '8', + '९': '9', + '०': '0' + }; + + return moment.lang('hi', { + months : 'जनवरी_फ़रवरी_मारà¥à¤š_अपà¥à¤°à¥ˆà¤²_मई_जून_जà¥à¤²à¤¾à¤ˆ_अगसà¥à¤¤_सितमà¥à¤¬à¤°_अकà¥à¤Ÿà¥‚बर_नवमà¥à¤¬à¤°_दिसमà¥à¤¬à¤°'.split("_"), + monthsShort : 'जन._फ़र._मारà¥à¤š_अपà¥à¤°à¥ˆ._मई_जून_जà¥à¤²._अग._सित._अकà¥à¤Ÿà¥‚._नव._दिस.'.split("_"), + weekdays : 'रविवार_सोमवार_मंगलवार_बà¥à¤§à¤µà¤¾à¤°_गà¥à¤°à¥‚वार_शà¥à¤•à¥à¤°à¤µà¤¾à¤°_शनिवार'.split("_"), + weekdaysShort : 'रवि_सोम_मंगल_बà¥à¤§_गà¥à¤°à¥‚_शà¥à¤•à¥à¤°_शनि'.split("_"), + weekdaysMin : 'र_सो_मं_बà¥_गà¥_शà¥_श'.split("_"), + longDateFormat : { + LT : "A h:mm बजे", + L : "DD/MM/YYYY", + LL : "D MMMM YYYY", + LLL : "D MMMM YYYY, LT", + LLLL : "dddd, D MMMM YYYY, LT" + }, + calendar : { + sameDay : '[आज] LT', + nextDay : '[कल] LT', + nextWeek : 'dddd, LT', + lastDay : '[कल] LT', + lastWeek : '[पिछले] dddd, LT', + sameElse : 'L' + }, + relativeTime : { + future : "%s में", + past : "%s पहले", + s : "कà¥à¤› ही कà¥à¤·à¤£", + m : "à¤à¤• मिनट", + mm : "%d मिनट", + h : "à¤à¤• घंटा", + hh : "%d घंटे", + d : "à¤à¤• दिन", + dd : "%d दिन", + M : "à¤à¤• महीने", + MM : "%d महीने", + y : "à¤à¤• वरà¥à¤·", + yy : "%d वरà¥à¤·" + }, + preparse: function (string) { + return string.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + // Hindi notation for meridiems are quite fuzzy in practice. While there exists + // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return "रात"; + } else if (hour < 10) { + return "सà¥à¤¬à¤¹"; + } else if (hour < 17) { + return "दोपहर"; + } else if (hour < 20) { + return "शाम"; + } else { + return "रात"; + } + }, + week : { + dow : 0, // Sunday is the first day of the week. + doy : 6 // The week that contains Jan 1st is the first week of the year. + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ja.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ja.js index 9cd7e9e..d76ed55 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ja.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ja.js @@ -1,58 +1,58 @@ -// moment.js language configuration -// language : japanese (ja) -// author : LI Long : https://github.com/baryon - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - return moment.lang('ja', { - months : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), - monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), - weekdays : "日曜日_月曜日_ç«æ›œæ—¥_水曜日_木曜日_金曜日_土曜日".split("_"), - weekdaysShort : "æ—¥_月_ç«_æ°´_木_金_土".split("_"), - weekdaysMin : "æ—¥_月_ç«_æ°´_木_金_土".split("_"), - longDateFormat : { - LT : "Ah時m分", - L : "YYYY/MM/DD", - LL : "YYYYå¹´M月Dæ—¥", - LLL : "YYYYå¹´M月Dæ—¥LT", - LLLL : "YYYYå¹´M月Dæ—¥LT dddd" - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return "åˆå‰"; - } else { - return "åˆå¾Œ"; - } - }, - calendar : { - sameDay : '[今日] LT', - nextDay : '[明日] LT', - nextWeek : '[æ¥é€±]dddd LT', - lastDay : '[昨日] LT', - lastWeek : '[å‰é€±]dddd LT', - sameElse : 'L' - }, - relativeTime : { - future : "%s後", - past : "%så‰", - s : "æ•°ç§’", - m : "1分", - mm : "%d分", - h : "1時間", - hh : "%d時間", - d : "1æ—¥", - dd : "%dæ—¥", - M : "1ヶ月", - MM : "%dヶ月", - y : "1å¹´", - yy : "%då¹´" - } - }); -})); +// moment.js language configuration +// language : japanese (ja) +// author : LI Long : https://github.com/baryon + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + return moment.lang('ja', { + months : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), + monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), + weekdays : "日曜日_月曜日_ç«æ›œæ—¥_水曜日_木曜日_金曜日_土曜日".split("_"), + weekdaysShort : "æ—¥_月_ç«_æ°´_木_金_土".split("_"), + weekdaysMin : "æ—¥_月_ç«_æ°´_木_金_土".split("_"), + longDateFormat : { + LT : "Ah時m分", + L : "YYYY/MM/DD", + LL : "YYYYå¹´M月Dæ—¥", + LLL : "YYYYå¹´M月Dæ—¥LT", + LLLL : "YYYYå¹´M月Dæ—¥LT dddd" + }, + meridiem : function (hour, minute, isLower) { + if (hour < 12) { + return "åˆå‰"; + } else { + return "åˆå¾Œ"; + } + }, + calendar : { + sameDay : '[今日] LT', + nextDay : '[明日] LT', + nextWeek : '[æ¥é€±]dddd LT', + lastDay : '[昨日] LT', + lastWeek : '[å‰é€±]dddd LT', + sameElse : 'L' + }, + relativeTime : { + future : "%s後", + past : "%så‰", + s : "æ•°ç§’", + m : "1分", + mm : "%d分", + h : "1時間", + hh : "%d時間", + d : "1æ—¥", + dd : "%dæ—¥", + M : "1ヶ月", + MM : "%dヶ月", + y : "1å¹´", + yy : "%då¹´" + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ka.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ka.js index 0cebdaa..650b13a 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ka.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ka.js @@ -1,108 +1,108 @@ -// moment.js language configuration -// language : Georgian (ka) -// author : Irakli Janiashvili : https://github.com/irakli-janiashvili - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - - function monthsCaseReplace(m, format) { - var months = { - 'nominative': 'იáƒáƒœáƒ•áƒáƒ ი_თებერვáƒáƒšáƒ˜_მáƒáƒ ტი_áƒáƒžáƒ ილი_მáƒáƒ˜áƒ¡áƒ˜_ივნისი_ივლისი_áƒáƒ’ვისტáƒ_სექტემბერი_áƒáƒ¥áƒ¢áƒáƒ›áƒ‘ერი_ნáƒáƒ”მბერი_დეკემბერი'.split('_'), - 'accusative': 'იáƒáƒœáƒ•áƒáƒ ს_თებერვáƒáƒšáƒ¡_მáƒáƒ ტს_áƒáƒžáƒ ილის_მáƒáƒ˜áƒ¡áƒ¡_ივნისს_ივლისს_áƒáƒ’ვისტს_სექტემბერს_áƒáƒ¥áƒ¢áƒáƒ›áƒ‘ერს_ნáƒáƒ”მბერს_დეკემბერს'.split('_') - }, - - nounCase = (/D[oD] *MMMM?/).test(format) ? - 'accusative' : - 'nominative'; - - return months[nounCase][m.month()]; - } - - function weekdaysCaseReplace(m, format) { - var weekdays = { - 'nominative': 'კვირáƒ_áƒáƒ შáƒáƒ‘áƒáƒ—ი_სáƒáƒ›áƒ¨áƒáƒ‘áƒáƒ—ი_áƒáƒ—ხშáƒáƒ‘áƒáƒ—ი_ხუთშáƒáƒ‘áƒáƒ—ი_პáƒáƒ áƒáƒ¡áƒ™áƒ”ვი_შáƒáƒ‘áƒáƒ—ი'.split('_'), - 'accusative': 'კვირáƒáƒ¡_áƒáƒ შáƒáƒ‘áƒáƒ—ს_სáƒáƒ›áƒ¨áƒáƒ‘áƒáƒ—ს_áƒáƒ—ხშáƒáƒ‘áƒáƒ—ს_ხუთშáƒáƒ‘áƒáƒ—ს_პáƒáƒ áƒáƒ¡áƒ™áƒ”ვს_შáƒáƒ‘áƒáƒ—ს'.split('_') - }, - - nounCase = (/(წინáƒ|შემდეგ)/).test(format) ? - 'accusative' : - 'nominative'; - - return weekdays[nounCase][m.day()]; - } - - return moment.lang('ka', { - months : monthsCaseReplace, - monthsShort : "იáƒáƒœ_თებ_მáƒáƒ _áƒáƒžáƒ _მáƒáƒ˜_ივნ_ივლ_áƒáƒ’ვ_სექ_áƒáƒ¥áƒ¢_ნáƒáƒ”_დეკ".split("_"), - weekdays : weekdaysCaseReplace, - weekdaysShort : "კვი_áƒáƒ შ_სáƒáƒ›_áƒáƒ—ხ_ხუთ_პáƒáƒ _შáƒáƒ‘".split("_"), - weekdaysMin : "კვ_áƒáƒ _სáƒ_áƒáƒ—_ხუ_პáƒ_შáƒ".split("_"), - longDateFormat : { - LT : "h:mm A", - L : "DD/MM/YYYY", - LL : "D MMMM YYYY", - LLL : "D MMMM YYYY LT", - LLLL : "dddd, D MMMM YYYY LT" - }, - calendar : { - sameDay : '[დღეს] LT[-ზე]', - nextDay : '[ხვáƒáƒš] LT[-ზე]', - lastDay : '[გუშინ] LT[-ზე]', - nextWeek : '[შემდეგ] dddd LT[-ზე]', - lastWeek : '[წინáƒ] dddd LT-ზე', - sameElse : 'L' - }, - relativeTime : { - future : function (s) { - return (/(წáƒáƒ›áƒ˜|წუთი|სáƒáƒáƒ—ი|წელი)/).test(s) ? - s.replace(/ი$/, "ში") : - s + "ში"; - }, - past : function (s) { - if ((/(წáƒáƒ›áƒ˜|წუთი|სáƒáƒáƒ—ი|დღე|თვე)/).test(s)) { - return s.replace(/(ი|ე)$/, "ის წინ"); - } - if ((/წელი/).test(s)) { - return s.replace(/წელი$/, "წლის წინ"); - } - }, - s : "რáƒáƒ›áƒ“ენიმე წáƒáƒ›áƒ˜", - m : "წუთი", - mm : "%d წუთი", - h : "სáƒáƒáƒ—ი", - hh : "%d სáƒáƒáƒ—ი", - d : "დღე", - dd : "%d დღე", - M : "თვე", - MM : "%d თვე", - y : "წელი", - yy : "%d წელი" - }, - ordinal : function (number) { - if (number === 0) { - return number; - } - - if (number === 1) { - return number + "-ლი"; - } - - if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) { - return "მე-" + number; - } - - return number + "-ე"; - }, - week : { - dow : 1, - doy : 7 - } - }); -})); +// moment.js language configuration +// language : Georgian (ka) +// author : Irakli Janiashvili : https://github.com/irakli-janiashvili + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + + function monthsCaseReplace(m, format) { + var months = { + 'nominative': 'იáƒáƒœáƒ•áƒáƒ ი_თებერვáƒáƒšáƒ˜_მáƒáƒ ტი_áƒáƒžáƒ ილი_მáƒáƒ˜áƒ¡áƒ˜_ივნისი_ივლისი_áƒáƒ’ვისტáƒ_სექტემბერი_áƒáƒ¥áƒ¢áƒáƒ›áƒ‘ერი_ნáƒáƒ”მბერი_დეკემბერი'.split('_'), + 'accusative': 'იáƒáƒœáƒ•áƒáƒ ს_თებერვáƒáƒšáƒ¡_მáƒáƒ ტს_áƒáƒžáƒ ილის_მáƒáƒ˜áƒ¡áƒ¡_ივნისს_ივლისს_áƒáƒ’ვისტს_სექტემბერს_áƒáƒ¥áƒ¢áƒáƒ›áƒ‘ერს_ნáƒáƒ”მბერს_დეკემბერს'.split('_') + }, + + nounCase = (/D[oD] *MMMM?/).test(format) ? + 'accusative' : + 'nominative'; + + return months[nounCase][m.month()]; + } + + function weekdaysCaseReplace(m, format) { + var weekdays = { + 'nominative': 'კვირáƒ_áƒáƒ შáƒáƒ‘áƒáƒ—ი_სáƒáƒ›áƒ¨áƒáƒ‘áƒáƒ—ი_áƒáƒ—ხშáƒáƒ‘áƒáƒ—ი_ხუთშáƒáƒ‘áƒáƒ—ი_პáƒáƒ áƒáƒ¡áƒ™áƒ”ვი_შáƒáƒ‘áƒáƒ—ი'.split('_'), + 'accusative': 'კვირáƒáƒ¡_áƒáƒ შáƒáƒ‘áƒáƒ—ს_სáƒáƒ›áƒ¨áƒáƒ‘áƒáƒ—ს_áƒáƒ—ხშáƒáƒ‘áƒáƒ—ს_ხუთშáƒáƒ‘áƒáƒ—ს_პáƒáƒ áƒáƒ¡áƒ™áƒ”ვს_შáƒáƒ‘áƒáƒ—ს'.split('_') + }, + + nounCase = (/(წინáƒ|შემდეგ)/).test(format) ? + 'accusative' : + 'nominative'; + + return weekdays[nounCase][m.day()]; + } + + return moment.lang('ka', { + months : monthsCaseReplace, + monthsShort : "იáƒáƒœ_თებ_მáƒáƒ _áƒáƒžáƒ _მáƒáƒ˜_ივნ_ივლ_áƒáƒ’ვ_სექ_áƒáƒ¥áƒ¢_ნáƒáƒ”_დეკ".split("_"), + weekdays : weekdaysCaseReplace, + weekdaysShort : "კვი_áƒáƒ შ_სáƒáƒ›_áƒáƒ—ხ_ხუთ_პáƒáƒ _შáƒáƒ‘".split("_"), + weekdaysMin : "კვ_áƒáƒ _სáƒ_áƒáƒ—_ხუ_პáƒ_შáƒ".split("_"), + longDateFormat : { + LT : "h:mm A", + L : "DD/MM/YYYY", + LL : "D MMMM YYYY", + LLL : "D MMMM YYYY LT", + LLLL : "dddd, D MMMM YYYY LT" + }, + calendar : { + sameDay : '[დღეს] LT[-ზე]', + nextDay : '[ხვáƒáƒš] LT[-ზე]', + lastDay : '[გუშინ] LT[-ზე]', + nextWeek : '[შემდეგ] dddd LT[-ზე]', + lastWeek : '[წინáƒ] dddd LT-ზე', + sameElse : 'L' + }, + relativeTime : { + future : function (s) { + return (/(წáƒáƒ›áƒ˜|წუთი|სáƒáƒáƒ—ი|წელი)/).test(s) ? + s.replace(/ი$/, "ში") : + s + "ში"; + }, + past : function (s) { + if ((/(წáƒáƒ›áƒ˜|წუთი|სáƒáƒáƒ—ი|დღე|თვე)/).test(s)) { + return s.replace(/(ი|ე)$/, "ის წინ"); + } + if ((/წელი/).test(s)) { + return s.replace(/წელი$/, "წლის წინ"); + } + }, + s : "რáƒáƒ›áƒ“ენიმე წáƒáƒ›áƒ˜", + m : "წუთი", + mm : "%d წუთი", + h : "სáƒáƒáƒ—ი", + hh : "%d სáƒáƒáƒ—ი", + d : "დღე", + dd : "%d დღე", + M : "თვე", + MM : "%d თვე", + y : "წელი", + yy : "%d წელი" + }, + ordinal : function (number) { + if (number === 0) { + return number; + } + + if (number === 1) { + return number + "-ლი"; + } + + if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) { + return "მე-" + number; + } + + return number + "-ე"; + }, + week : { + dow : 1, + doy : 7 + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ko.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ko.js index 69a6e38..a584a45 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ko.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ko.js @@ -1,56 +1,56 @@ -// moment.js language configuration -// language : korean (ko) -// author : Kyungwook, Park : https://github.com/kyungw00k - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - return moment.lang('ko', { - months : "1ì›”_2ì›”_3ì›”_4ì›”_5ì›”_6ì›”_7ì›”_8ì›”_9ì›”_10ì›”_11ì›”_12ì›”".split("_"), - monthsShort : "1ì›”_2ì›”_3ì›”_4ì›”_5ì›”_6ì›”_7ì›”_8ì›”_9ì›”_10ì›”_11ì›”_12ì›”".split("_"), - weekdays : "ì¼ìš”ì¼_월요ì¼_화요ì¼_수요ì¼_목요ì¼_금요ì¼_í† ìš”ì¼".split("_"), - weekdaysShort : "ì¼_ì›”_í™”_수_목_금_í† ".split("_"), - weekdaysMin : "ì¼_ì›”_í™”_수_목_금_í† ".split("_"), - longDateFormat : { - LT : "A h시 mmë¶„", - L : "YYYY.MM.DD", - LL : "YYYYë…„ MMMM Dì¼", - LLL : "YYYYë…„ MMMM Dì¼ LT", - LLLL : "YYYYë…„ MMMM Dì¼ dddd LT" - }, - meridiem : function (hour, minute, isUpper) { - return hour < 12 ? 'ì˜¤ì „' : '오후'; - }, - calendar : { - sameDay : '오늘 LT', - nextDay : 'ë‚´ì¼ LT', - nextWeek : 'dddd LT', - lastDay : 'ì–´ì œ LT', - lastWeek : '지난주 dddd LT', - sameElse : 'L' - }, - relativeTime : { - future : "%s 후", - past : "%s ì „", - s : "몇초", - ss : "%dì´ˆ", - m : "ì¼ë¶„", - mm : "%dë¶„", - h : "한시간", - hh : "%d시간", - d : "하루", - dd : "%dì¼", - M : "한달", - MM : "%d달", - y : "ì¼ë…„", - yy : "%dë…„" - }, - ordinal : '%dì¼' - }); -})); +// moment.js language configuration +// language : korean (ko) +// author : Kyungwook, Park : https://github.com/kyungw00k + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + return moment.lang('ko', { + months : "1ì›”_2ì›”_3ì›”_4ì›”_5ì›”_6ì›”_7ì›”_8ì›”_9ì›”_10ì›”_11ì›”_12ì›”".split("_"), + monthsShort : "1ì›”_2ì›”_3ì›”_4ì›”_5ì›”_6ì›”_7ì›”_8ì›”_9ì›”_10ì›”_11ì›”_12ì›”".split("_"), + weekdays : "ì¼ìš”ì¼_월요ì¼_화요ì¼_수요ì¼_목요ì¼_금요ì¼_í† ìš”ì¼".split("_"), + weekdaysShort : "ì¼_ì›”_í™”_수_목_금_í† ".split("_"), + weekdaysMin : "ì¼_ì›”_í™”_수_목_금_í† ".split("_"), + longDateFormat : { + LT : "A h시 mmë¶„", + L : "YYYY.MM.DD", + LL : "YYYYë…„ MMMM Dì¼", + LLL : "YYYYë…„ MMMM Dì¼ LT", + LLLL : "YYYYë…„ MMMM Dì¼ dddd LT" + }, + meridiem : function (hour, minute, isUpper) { + return hour < 12 ? 'ì˜¤ì „' : '오후'; + }, + calendar : { + sameDay : '오늘 LT', + nextDay : 'ë‚´ì¼ LT', + nextWeek : 'dddd LT', + lastDay : 'ì–´ì œ LT', + lastWeek : '지난주 dddd LT', + sameElse : 'L' + }, + relativeTime : { + future : "%s 후", + past : "%s ì „", + s : "몇초", + ss : "%dì´ˆ", + m : "ì¼ë¶„", + mm : "%dë¶„", + h : "한시간", + hh : "%d시간", + d : "하루", + dd : "%dì¼", + M : "한달", + MM : "%d달", + y : "ì¼ë…„", + yy : "%dë…„" + }, + ordinal : '%dì¼' + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ml.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ml.js index cc7db9a..016a599 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ml.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ml.js @@ -1,64 +1,64 @@ -// moment.js language configuration -// language : malayalam (ml) -// author : Floyd Pink : https://github.com/floydpink - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - return moment.lang('ml', { - months : 'ജനàµà´µà´°à´¿_ഫെബàµà´°àµà´µà´°à´¿_മാർചàµà´šàµ_à´à´ªàµà´°à´¿àµ½_മേയàµ_ജൂൺ_ജൂലൈ_à´“à´—à´¸àµà´±àµà´±àµ_സെപàµà´±àµà´±à´‚ബർ_à´’à´•àµà´Ÿàµ‹à´¬àµ¼_നവംബർ_ഡിസംബർ'.split("_"), - monthsShort : 'ജനàµ._ഫെബàµà´°àµ._മാർ._à´à´ªàµà´°à´¿._മേയàµ_ജൂൺ_ജൂലൈ._à´“à´—._സെപàµà´±àµà´±._à´’à´•àµà´Ÿàµ‹._നവം._ഡിസം.'.split("_"), - weekdays : 'ഞായറാഴàµà´š_തിങàµà´•ളാഴàµà´š_ചൊവàµà´µà´¾à´´àµà´š_à´¬àµà´§à´¨à´¾à´´àµà´š_à´µàµà´¯à´¾à´´à´¾à´´àµà´š_വെളàµà´³à´¿à´¯à´¾à´´àµà´š_ശനിയാഴàµà´š'.split("_"), - weekdaysShort : 'ഞായർ_തിങàµà´•ൾ_ചൊവàµà´µ_à´¬àµà´§àµ»_à´µàµà´¯à´¾à´´à´‚_വെളàµà´³à´¿_ശനി'.split("_"), - weekdaysMin : 'à´žà´¾_തി_ചൊ_à´¬àµ_à´µàµà´¯à´¾_വെ_à´¶'.split("_"), - longDateFormat : { - LT : "A h:mm -à´¨àµ", - L : "DD/MM/YYYY", - LL : "D MMMM YYYY", - LLL : "D MMMM YYYY, LT", - LLLL : "dddd, D MMMM YYYY, LT" - }, - calendar : { - sameDay : '[ഇനàµà´¨àµ] LT', - nextDay : '[നാളെ] LT', - nextWeek : 'dddd, LT', - lastDay : '[ഇനàµà´¨à´²àµ†] LT', - lastWeek : '[à´•à´´à´¿à´žàµà´ž] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : "%s à´•à´´à´¿à´žàµà´žàµ", - past : "%s à´®àµàµ»à´ªàµ", - s : "അൽപ നിമിഷങàµà´™àµ¾", - m : "ഒരൠമിനിറàµà´±àµ", - mm : "%d മിനിറàµà´±àµ", - h : "ഒരൠമണികàµà´•ൂർ", - hh : "%d മണികàµà´•ൂർ", - d : "ഒരൠദിവസം", - dd : "%d ദിവസം", - M : "ഒരൠമാസം", - MM : "%d മാസം", - y : "ഒരൠവർഷം", - yy : "%d വർഷം" - }, - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return "രാതàµà´°à´¿"; - } else if (hour < 12) { - return "രാവിലെ"; - } else if (hour < 17) { - return "ഉചàµà´š à´•à´´à´¿à´žàµà´žàµ"; - } else if (hour < 20) { - return "വൈകàµà´¨àµà´¨àµ‡à´°à´‚"; - } else { - return "രാതàµà´°à´¿"; - } - } - }); -})); +// moment.js language configuration +// language : malayalam (ml) +// author : Floyd Pink : https://github.com/floydpink + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + return moment.lang('ml', { + months : 'ജനàµà´µà´°à´¿_ഫെബàµà´°àµà´µà´°à´¿_മാർചàµà´šàµ_à´à´ªàµà´°à´¿àµ½_മേയàµ_ജൂൺ_ജൂലൈ_à´“à´—à´¸àµà´±àµà´±àµ_സെപàµà´±àµà´±à´‚ബർ_à´’à´•àµà´Ÿàµ‹à´¬àµ¼_നവംബർ_ഡിസംബർ'.split("_"), + monthsShort : 'ജനàµ._ഫെബàµà´°àµ._മാർ._à´à´ªàµà´°à´¿._മേയàµ_ജൂൺ_ജൂലൈ._à´“à´—._സെപàµà´±àµà´±._à´’à´•àµà´Ÿàµ‹._നവം._ഡിസം.'.split("_"), + weekdays : 'ഞായറാഴàµà´š_തിങàµà´•ളാഴàµà´š_ചൊവàµà´µà´¾à´´àµà´š_à´¬àµà´§à´¨à´¾à´´àµà´š_à´µàµà´¯à´¾à´´à´¾à´´àµà´š_വെളàµà´³à´¿à´¯à´¾à´´àµà´š_ശനിയാഴàµà´š'.split("_"), + weekdaysShort : 'ഞായർ_തിങàµà´•ൾ_ചൊവàµà´µ_à´¬àµà´§àµ»_à´µàµà´¯à´¾à´´à´‚_വെളàµà´³à´¿_ശനി'.split("_"), + weekdaysMin : 'à´žà´¾_തി_ചൊ_à´¬àµ_à´µàµà´¯à´¾_വെ_à´¶'.split("_"), + longDateFormat : { + LT : "A h:mm -à´¨àµ", + L : "DD/MM/YYYY", + LL : "D MMMM YYYY", + LLL : "D MMMM YYYY, LT", + LLLL : "dddd, D MMMM YYYY, LT" + }, + calendar : { + sameDay : '[ഇനàµà´¨àµ] LT', + nextDay : '[നാളെ] LT', + nextWeek : 'dddd, LT', + lastDay : '[ഇനàµà´¨à´²àµ†] LT', + lastWeek : '[à´•à´´à´¿à´žàµà´ž] dddd, LT', + sameElse : 'L' + }, + relativeTime : { + future : "%s à´•à´´à´¿à´žàµà´žàµ", + past : "%s à´®àµàµ»à´ªàµ", + s : "അൽപ നിമിഷങàµà´™àµ¾", + m : "ഒരൠമിനിറàµà´±àµ", + mm : "%d മിനിറàµà´±àµ", + h : "ഒരൠമണികàµà´•ൂർ", + hh : "%d മണികàµà´•ൂർ", + d : "ഒരൠദിവസം", + dd : "%d ദിവസം", + M : "ഒരൠമാസം", + MM : "%d മാസം", + y : "ഒരൠവർഷം", + yy : "%d വർഷം" + }, + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return "രാതàµà´°à´¿"; + } else if (hour < 12) { + return "രാവിലെ"; + } else if (hour < 17) { + return "ഉചàµà´š à´•à´´à´¿à´žàµà´žàµ"; + } else if (hour < 20) { + return "വൈകàµà´¨àµà´¨àµ‡à´°à´‚"; + } else { + return "രാതàµà´°à´¿"; + } + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.mr.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.mr.js index 0d1adfd..72f5280 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.mr.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.mr.js @@ -1,104 +1,104 @@ -// moment.js language configuration -// language : Marathi (mr) -// author : Harshad Kale : https://github.com/kalehv - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - var symbolMap = { - '1': '१', - '2': '२', - '3': '३', - '4': '४', - '5': '५', - '6': '६', - '7': 'à¥', - '8': '८', - '9': '९', - '0': '०' - }, - numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - 'à¥': '7', - '८': '8', - '९': '9', - '०': '0' - }; - - return moment.lang('mr', { - months : 'जानेवारी_फेबà¥à¤°à¥à¤µà¤¾à¤°à¥€_मारà¥à¤š_à¤à¤ªà¥à¤°à¤¿à¤²_मे_जून_जà¥à¤²à¥ˆ_ऑगसà¥à¤Ÿ_सपà¥à¤Ÿà¥‡à¤‚बर_ऑकà¥à¤Ÿà¥‹à¤¬à¤°_नोवà¥à¤¹à¥‡à¤‚बर_डिसेंबर'.split("_"), - monthsShort: 'जाने._फेबà¥à¤°à¥._मारà¥à¤š._à¤à¤ªà¥à¤°à¤¿._मे._जून._जà¥à¤²à¥ˆ._ऑग._सपà¥à¤Ÿà¥‡à¤‚._ऑकà¥à¤Ÿà¥‹._नोवà¥à¤¹à¥‡à¤‚._डिसें.'.split("_"), - weekdays : 'रविवार_सोमवार_मंगळवार_बà¥à¤§à¤µà¤¾à¤°_गà¥à¤°à¥‚वार_शà¥à¤•à¥à¤°à¤µà¤¾à¤°_शनिवार'.split("_"), - weekdaysShort : 'रवि_सोम_मंगळ_बà¥à¤§_गà¥à¤°à¥‚_शà¥à¤•à¥à¤°_शनि'.split("_"), - weekdaysMin : 'र_सो_मं_बà¥_गà¥_शà¥_श'.split("_"), - longDateFormat : { - LT : "A h:mm वाजता", - L : "DD/MM/YYYY", - LL : "D MMMM YYYY", - LLL : "D MMMM YYYY, LT", - LLLL : "dddd, D MMMM YYYY, LT" - }, - calendar : { - sameDay : '[आज] LT', - nextDay : '[उदà¥à¤¯à¤¾] LT', - nextWeek : 'dddd, LT', - lastDay : '[काल] LT', - lastWeek: '[मागील] dddd, LT', - sameElse : 'L' - }, - relativeTime : { - future : "%s नंतर", - past : "%s पूरà¥à¤µà¥€", - s : "सेकंद", - m: "à¤à¤• मिनिट", - mm: "%d मिनिटे", - h : "à¤à¤• तास", - hh : "%d तास", - d : "à¤à¤• दिवस", - dd : "%d दिवस", - M : "à¤à¤• महिना", - MM : "%d महिने", - y : "à¤à¤• वरà¥à¤·", - yy : "%d वरà¥à¤·à¥‡" - }, - preparse: function (string) { - return string.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiem: function (hour, minute, isLower) - { - if (hour < 4) { - return "रातà¥à¤°à¥€"; - } else if (hour < 10) { - return "सकाळी"; - } else if (hour < 17) { - return "दà¥à¤ªà¤¾à¤°à¥€"; - } else if (hour < 20) { - return "सायंकाळी"; - } else { - return "रातà¥à¤°à¥€"; - } - }, - week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. - } - }); -})); +// moment.js language configuration +// language : Marathi (mr) +// author : Harshad Kale : https://github.com/kalehv + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + var symbolMap = { + '1': '१', + '2': '२', + '3': '३', + '4': '४', + '5': '५', + '6': '६', + '7': 'à¥', + '8': '८', + '9': '९', + '0': '०' + }, + numberMap = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + 'à¥': '7', + '८': '8', + '९': '9', + '०': '0' + }; + + return moment.lang('mr', { + months : 'जानेवारी_फेबà¥à¤°à¥à¤µà¤¾à¤°à¥€_मारà¥à¤š_à¤à¤ªà¥à¤°à¤¿à¤²_मे_जून_जà¥à¤²à¥ˆ_ऑगसà¥à¤Ÿ_सपà¥à¤Ÿà¥‡à¤‚बर_ऑकà¥à¤Ÿà¥‹à¤¬à¤°_नोवà¥à¤¹à¥‡à¤‚बर_डिसेंबर'.split("_"), + monthsShort: 'जाने._फेबà¥à¤°à¥._मारà¥à¤š._à¤à¤ªà¥à¤°à¤¿._मे._जून._जà¥à¤²à¥ˆ._ऑग._सपà¥à¤Ÿà¥‡à¤‚._ऑकà¥à¤Ÿà¥‹._नोवà¥à¤¹à¥‡à¤‚._डिसें.'.split("_"), + weekdays : 'रविवार_सोमवार_मंगळवार_बà¥à¤§à¤µà¤¾à¤°_गà¥à¤°à¥‚वार_शà¥à¤•à¥à¤°à¤µà¤¾à¤°_शनिवार'.split("_"), + weekdaysShort : 'रवि_सोम_मंगळ_बà¥à¤§_गà¥à¤°à¥‚_शà¥à¤•à¥à¤°_शनि'.split("_"), + weekdaysMin : 'र_सो_मं_बà¥_गà¥_शà¥_श'.split("_"), + longDateFormat : { + LT : "A h:mm वाजता", + L : "DD/MM/YYYY", + LL : "D MMMM YYYY", + LLL : "D MMMM YYYY, LT", + LLLL : "dddd, D MMMM YYYY, LT" + }, + calendar : { + sameDay : '[आज] LT', + nextDay : '[उदà¥à¤¯à¤¾] LT', + nextWeek : 'dddd, LT', + lastDay : '[काल] LT', + lastWeek: '[मागील] dddd, LT', + sameElse : 'L' + }, + relativeTime : { + future : "%s नंतर", + past : "%s पूरà¥à¤µà¥€", + s : "सेकंद", + m: "à¤à¤• मिनिट", + mm: "%d मिनिटे", + h : "à¤à¤• तास", + hh : "%d तास", + d : "à¤à¤• दिवस", + dd : "%d दिवस", + M : "à¤à¤• महिना", + MM : "%d महिने", + y : "à¤à¤• वरà¥à¤·", + yy : "%d वरà¥à¤·à¥‡" + }, + preparse: function (string) { + return string.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiem: function (hour, minute, isLower) + { + if (hour < 4) { + return "रातà¥à¤°à¥€"; + } else if (hour < 10) { + return "सकाळी"; + } else if (hour < 17) { + return "दà¥à¤ªà¤¾à¤°à¥€"; + } else if (hour < 20) { + return "सायंकाळी"; + } else { + return "रातà¥à¤°à¥€"; + } + }, + week : { + dow : 0, // Sunday is the first day of the week. + doy : 6 // The week that contains Jan 1st is the first week of the year. + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ne.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ne.js index 1d57b8c..130e267 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ne.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ne.js @@ -1,105 +1,105 @@ -// moment.js language configuration -// language : nepali/nepalese -// author : suvash : https://github.com/suvash - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - var symbolMap = { - '1': '१', - '2': '२', - '3': '३', - '4': '४', - '5': '५', - '6': '६', - '7': 'à¥', - '8': '८', - '9': '९', - '0': '०' - }, - numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - 'à¥': '7', - '८': '8', - '९': '9', - '०': '0' - }; - - return moment.lang('ne', { - months : 'जनवरी_फेबà¥à¤°à¥à¤µà¤°à¥€_मारà¥à¤š_अपà¥à¤°à¤¿à¤²_मई_जà¥à¤¨_जà¥à¤²à¤¾à¤ˆ_अगषà¥à¤Ÿ_सेपà¥à¤Ÿà¥‡à¤®à¥à¤¬à¤°_अकà¥à¤Ÿà¥‹à¤¬à¤°_नोà¤à¥‡à¤®à¥à¤¬à¤°_डिसेमà¥à¤¬à¤°'.split("_"), - monthsShort : 'जन._फेबà¥à¤°à¥._मारà¥à¤š_अपà¥à¤°à¤¿._मई_जà¥à¤¨_जà¥à¤²à¤¾à¤ˆ._अग._सेपà¥à¤Ÿ._अकà¥à¤Ÿà¥‹._नोà¤à¥‡._डिसे.'.split("_"), - weekdays : 'आइतबार_सोमबार_मङà¥à¤—लबार_बà¥à¤§à¤¬à¤¾à¤°_बिहिबार_शà¥à¤•à¥à¤°à¤¬à¤¾à¤°_शनिबार'.split("_"), - weekdaysShort : 'आइत._सोम._मङà¥à¤—ल._बà¥à¤§._बिहि._शà¥à¤•à¥à¤°._शनि.'.split("_"), - weekdaysMin : 'आइ._सो._मङà¥_बà¥._बि._शà¥._श.'.split("_"), - longDateFormat : { - LT : "Aको h:mm बजे", - L : "DD/MM/YYYY", - LL : "D MMMM YYYY", - LLL : "D MMMM YYYY, LT", - LLLL : "dddd, D MMMM YYYY, LT" - }, - preparse: function (string) { - return string.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiem : function (hour, minute, isLower) { - if (hour < 3) { - return "राती"; - } else if (hour < 10) { - return "बिहान"; - } else if (hour < 15) { - return "दिउà¤à¤¸à¥‹"; - } else if (hour < 18) { - return "बेलà¥à¤•ा"; - } else if (hour < 20) { - return "साà¤à¤"; - } else { - return "राती"; - } - }, - calendar : { - sameDay : '[आज] LT', - nextDay : '[à¤à¥‹à¤²à¥€] LT', - nextWeek : '[आउà¤à¤¦à¥‹] dddd[,] LT', - lastDay : '[हिजो] LT', - lastWeek : '[गà¤à¤•ो] dddd[,] LT', - sameElse : 'L' - }, - relativeTime : { - future : "%sमा", - past : "%s अगाडी", - s : "केही समय", - m : "à¤à¤• मिनेट", - mm : "%d मिनेट", - h : "à¤à¤• घणà¥à¤Ÿà¤¾", - hh : "%d घणà¥à¤Ÿà¤¾", - d : "à¤à¤• दिन", - dd : "%d दिन", - M : "à¤à¤• महिना", - MM : "%d महिना", - y : "à¤à¤• बरà¥à¤·", - yy : "%d बरà¥à¤·" - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } - }); -})); +// moment.js language configuration +// language : nepali/nepalese +// author : suvash : https://github.com/suvash + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + var symbolMap = { + '1': '१', + '2': '२', + '3': '३', + '4': '४', + '5': '५', + '6': '६', + '7': 'à¥', + '8': '८', + '9': '९', + '0': '०' + }, + numberMap = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + 'à¥': '7', + '८': '8', + '९': '9', + '०': '0' + }; + + return moment.lang('ne', { + months : 'जनवरी_फेबà¥à¤°à¥à¤µà¤°à¥€_मारà¥à¤š_अपà¥à¤°à¤¿à¤²_मई_जà¥à¤¨_जà¥à¤²à¤¾à¤ˆ_अगषà¥à¤Ÿ_सेपà¥à¤Ÿà¥‡à¤®à¥à¤¬à¤°_अकà¥à¤Ÿà¥‹à¤¬à¤°_नोà¤à¥‡à¤®à¥à¤¬à¤°_डिसेमà¥à¤¬à¤°'.split("_"), + monthsShort : 'जन._फेबà¥à¤°à¥._मारà¥à¤š_अपà¥à¤°à¤¿._मई_जà¥à¤¨_जà¥à¤²à¤¾à¤ˆ._अग._सेपà¥à¤Ÿ._अकà¥à¤Ÿà¥‹._नोà¤à¥‡._डिसे.'.split("_"), + weekdays : 'आइतबार_सोमबार_मङà¥à¤—लबार_बà¥à¤§à¤¬à¤¾à¤°_बिहिबार_शà¥à¤•à¥à¤°à¤¬à¤¾à¤°_शनिबार'.split("_"), + weekdaysShort : 'आइत._सोम._मङà¥à¤—ल._बà¥à¤§._बिहि._शà¥à¤•à¥à¤°._शनि.'.split("_"), + weekdaysMin : 'आइ._सो._मङà¥_बà¥._बि._शà¥._श.'.split("_"), + longDateFormat : { + LT : "Aको h:mm बजे", + L : "DD/MM/YYYY", + LL : "D MMMM YYYY", + LLL : "D MMMM YYYY, LT", + LLLL : "dddd, D MMMM YYYY, LT" + }, + preparse: function (string) { + return string.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, + meridiem : function (hour, minute, isLower) { + if (hour < 3) { + return "राती"; + } else if (hour < 10) { + return "बिहान"; + } else if (hour < 15) { + return "दिउà¤à¤¸à¥‹"; + } else if (hour < 18) { + return "बेलà¥à¤•ा"; + } else if (hour < 20) { + return "साà¤à¤"; + } else { + return "राती"; + } + }, + calendar : { + sameDay : '[आज] LT', + nextDay : '[à¤à¥‹à¤²à¥€] LT', + nextWeek : '[आउà¤à¤¦à¥‹] dddd[,] LT', + lastDay : '[हिजो] LT', + lastWeek : '[गà¤à¤•ो] dddd[,] LT', + sameElse : 'L' + }, + relativeTime : { + future : "%sमा", + past : "%s अगाडी", + s : "केही समय", + m : "à¤à¤• मिनेट", + mm : "%d मिनेट", + h : "à¤à¤• घणà¥à¤Ÿà¤¾", + hh : "%d घणà¥à¤Ÿà¤¾", + d : "à¤à¤• दिन", + dd : "%d दिन", + M : "à¤à¤• महिना", + MM : "%d महिना", + y : "à¤à¤• बरà¥à¤·", + yy : "%d बरà¥à¤·" + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.pl.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.pl.js index 4ee3346..22aab20 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.pl.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.pl.js @@ -1,98 +1,98 @@ -// moment.js language configuration -// language : polish (pl) -// author : Rafal Hirsz : https://github.com/evoL - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - var monthsNominative = "styczeÅ„_luty_marzec_kwiecieÅ„_maj_czerwiec_lipiec_sierpieÅ„_wrzesieÅ„_październik_listopad_grudzieÅ„".split("_"), - monthsSubjective = "stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrzeÅ›nia_października_listopada_grudnia".split("_"); - - function plural(n) { - return (n % 10 < 5) && (n % 10 > 1) && (~~(n / 10) !== 1); - } - - function translate(number, withoutSuffix, key) { - var result = number + " "; - switch (key) { - case 'm': - return withoutSuffix ? 'minuta' : 'minutÄ™'; - case 'mm': - return result + (plural(number) ? 'minuty' : 'minut'); - case 'h': - return withoutSuffix ? 'godzina' : 'godzinÄ™'; - case 'hh': - return result + (plural(number) ? 'godziny' : 'godzin'); - case 'MM': - return result + (plural(number) ? 'miesiÄ…ce' : 'miesiÄ™cy'); - case 'yy': - return result + (plural(number) ? 'lata' : 'lat'); - } - } - - return moment.lang('pl', { - months : function (momentToFormat, format) { - if (/D MMMM/.test(format)) { - return monthsSubjective[momentToFormat.month()]; - } else { - return monthsNominative[momentToFormat.month()]; - } - }, - monthsShort : "sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"), - weekdays : "niedziela_poniedziaÅ‚ek_wtorek_Å›roda_czwartek_piÄ…tek_sobota".split("_"), - weekdaysShort : "nie_pon_wt_Å›r_czw_pt_sb".split("_"), - weekdaysMin : "N_Pn_Wt_Åšr_Cz_Pt_So".split("_"), - longDateFormat : { - LT : "HH:mm", - L : "DD.MM.YYYY", - LL : "D MMMM YYYY", - LLL : "D MMMM YYYY LT", - LLLL : "dddd, D MMMM YYYY LT" - }, - calendar : { - sameDay: '[DziÅ› o] LT', - nextDay: '[Jutro o] LT', - nextWeek: '[W] dddd [o] LT', - lastDay: '[Wczoraj o] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[W zeszłą niedzielÄ™ o] LT'; - case 3: - return '[W zeszłą Å›rodÄ™ o] LT'; - case 6: - return '[W zeszłą sobotÄ™ o] LT'; - default: - return '[W zeszÅ‚y] dddd [o] LT'; - } - }, - sameElse: 'L' - }, - relativeTime : { - future : "za %s", - past : "%s temu", - s : "kilka sekund", - m : translate, - mm : translate, - h : translate, - hh : translate, - d : "1 dzieÅ„", - dd : '%d dni', - M : "miesiÄ…c", - MM : translate, - y : "rok", - yy : translate - }, - ordinal : '%d.', - week : { - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); -})); +// moment.js language configuration +// language : polish (pl) +// author : Rafal Hirsz : https://github.com/evoL + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + var monthsNominative = "styczeÅ„_luty_marzec_kwiecieÅ„_maj_czerwiec_lipiec_sierpieÅ„_wrzesieÅ„_październik_listopad_grudzieÅ„".split("_"), + monthsSubjective = "stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrzeÅ›nia_października_listopada_grudnia".split("_"); + + function plural(n) { + return (n % 10 < 5) && (n % 10 > 1) && (~~(n / 10) !== 1); + } + + function translate(number, withoutSuffix, key) { + var result = number + " "; + switch (key) { + case 'm': + return withoutSuffix ? 'minuta' : 'minutÄ™'; + case 'mm': + return result + (plural(number) ? 'minuty' : 'minut'); + case 'h': + return withoutSuffix ? 'godzina' : 'godzinÄ™'; + case 'hh': + return result + (plural(number) ? 'godziny' : 'godzin'); + case 'MM': + return result + (plural(number) ? 'miesiÄ…ce' : 'miesiÄ™cy'); + case 'yy': + return result + (plural(number) ? 'lata' : 'lat'); + } + } + + return moment.lang('pl', { + months : function (momentToFormat, format) { + if (/D MMMM/.test(format)) { + return monthsSubjective[momentToFormat.month()]; + } else { + return monthsNominative[momentToFormat.month()]; + } + }, + monthsShort : "sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"), + weekdays : "niedziela_poniedziaÅ‚ek_wtorek_Å›roda_czwartek_piÄ…tek_sobota".split("_"), + weekdaysShort : "nie_pon_wt_Å›r_czw_pt_sb".split("_"), + weekdaysMin : "N_Pn_Wt_Åšr_Cz_Pt_So".split("_"), + longDateFormat : { + LT : "HH:mm", + L : "DD.MM.YYYY", + LL : "D MMMM YYYY", + LLL : "D MMMM YYYY LT", + LLLL : "dddd, D MMMM YYYY LT" + }, + calendar : { + sameDay: '[DziÅ› o] LT', + nextDay: '[Jutro o] LT', + nextWeek: '[W] dddd [o] LT', + lastDay: '[Wczoraj o] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[W zeszłą niedzielÄ™ o] LT'; + case 3: + return '[W zeszłą Å›rodÄ™ o] LT'; + case 6: + return '[W zeszłą sobotÄ™ o] LT'; + default: + return '[W zeszÅ‚y] dddd [o] LT'; + } + }, + sameElse: 'L' + }, + relativeTime : { + future : "za %s", + past : "%s temu", + s : "kilka sekund", + m : translate, + mm : translate, + h : translate, + hh : translate, + d : "1 dzieÅ„", + dd : '%d dni', + M : "miesiÄ…c", + MM : translate, + y : "rok", + yy : translate + }, + ordinal : '%d.', + week : { + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ru.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ru.js index e8d5890..667cf1b 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ru.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.ru.js @@ -1,163 +1,163 @@ -// moment.js language configuration -// language : russian (ru) -// author : Viktorminator : https://github.com/Viktorminator -// Author : Menelion Elensúle : https://github.com/Oire - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); - } - - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - 'mm': 'минута_минуты_минут', - 'hh': 'чаÑ_чаÑа_чаÑов', - 'dd': 'день_днÑ_дней', - 'MM': 'меÑÑц_меÑÑца_меÑÑцев', - 'yy': 'год_года_лет' - }; - if (key === 'm') { - return withoutSuffix ? 'минута' : 'минуту'; - } - else { - return number + ' ' + plural(format[key], +number); - } - } - - function monthsCaseReplace(m, format) { - var months = { - 'nominative': 'Ñнварь_февраль_март_апрель_май_июнь_июль_авгуÑÑ‚_ÑентÑбрь_октÑбрь_ноÑбрь_декабрь'.split('_'), - 'accusative': 'ÑнварÑ_февралÑ_марта_апрелÑ_маÑ_июнÑ_июлÑ_авгуÑта_ÑентÑбрÑ_октÑбрÑ_ноÑбрÑ_декабрÑ'.split('_') - }, - - nounCase = (/D[oD]? *MMMM?/).test(format) ? - 'accusative' : - 'nominative'; - - return months[nounCase][m.month()]; - } - - function monthsShortCaseReplace(m, format) { - var monthsShort = { - 'nominative': 'Ñнв_фев_мар_апр_май_июнь_июль_авг_Ñен_окт_ноÑ_дек'.split('_'), - 'accusative': 'Ñнв_фев_мар_апр_маÑ_июнÑ_июлÑ_авг_Ñен_окт_ноÑ_дек'.split('_') - }, - - nounCase = (/D[oD]? *MMMM?/).test(format) ? - 'accusative' : - 'nominative'; - - return monthsShort[nounCase][m.month()]; - } - - function weekdaysCaseReplace(m, format) { - var weekdays = { - 'nominative': 'воÑкреÑенье_понедельник_вторник_Ñреда_четверг_пÑтница_Ñуббота'.split('_'), - 'accusative': 'воÑкреÑенье_понедельник_вторник_Ñреду_четверг_пÑтницу_Ñубботу'.split('_') - }, - - nounCase = (/\[ ?[Вв] ?(?:прошлую|Ñледующую)? ?\] ?dddd/).test(format) ? - 'accusative' : - 'nominative'; - - return weekdays[nounCase][m.day()]; - } - - return moment.lang('ru', { - months : monthsCaseReplace, - monthsShort : monthsShortCaseReplace, - weekdays : weekdaysCaseReplace, - weekdaysShort : "вÑ_пн_вт_ÑÑ€_чт_пт_Ñб".split("_"), - weekdaysMin : "вÑ_пн_вт_ÑÑ€_чт_пт_Ñб".split("_"), - monthsParse : [/^Ñнв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[й|Ñ]/i, /^июн/i, /^июл/i, /^авг/i, /^Ñен/i, /^окт/i, /^ноÑ/i, /^дек/i], - longDateFormat : { - LT : "HH:mm", - L : "DD.MM.YYYY", - LL : "D MMMM YYYY г.", - LLL : "D MMMM YYYY г., LT", - LLLL : "dddd, D MMMM YYYY г., LT" - }, - calendar : { - sameDay: '[Ð¡ÐµÐ³Ð¾Ð´Ð½Ñ Ð²] LT', - nextDay: '[Завтра в] LT', - lastDay: '[Вчера в] LT', - nextWeek: function () { - return this.day() === 2 ? '[Во] dddd [в] LT' : '[Ð’] dddd [в] LT'; - }, - lastWeek: function () { - switch (this.day()) { - case 0: - return '[Ð’ прошлое] dddd [в] LT'; - case 1: - case 2: - case 4: - return '[Ð’ прошлый] dddd [в] LT'; - case 3: - case 5: - case 6: - return '[Ð’ прошлую] dddd [в] LT'; - } - }, - sameElse: 'L' - }, - relativeTime : { - future : "через %s", - past : "%s назад", - s : "неÑколько Ñекунд", - m : relativeTimeWithPlural, - mm : relativeTimeWithPlural, - h : "чаÑ", - hh : relativeTimeWithPlural, - d : "день", - dd : relativeTimeWithPlural, - M : "меÑÑц", - MM : relativeTimeWithPlural, - y : "год", - yy : relativeTimeWithPlural - }, - - // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason - - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return "ночи"; - } else if (hour < 12) { - return "утра"; - } else if (hour < 17) { - return "днÑ"; - } else { - return "вечера"; - } - }, - - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - return number + '-й'; - case 'D': - return number + '-го'; - case 'w': - case 'W': - return number + '-Ñ'; - default: - return number; - } - }, - - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } - }); -})); +// moment.js language configuration +// language : russian (ru) +// author : Viktorminator : https://github.com/Viktorminator +// Author : Menelion Elensúle : https://github.com/Oire + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + function plural(word, num) { + var forms = word.split('_'); + return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); + } + + function relativeTimeWithPlural(number, withoutSuffix, key) { + var format = { + 'mm': 'минута_минуты_минут', + 'hh': 'чаÑ_чаÑа_чаÑов', + 'dd': 'день_днÑ_дней', + 'MM': 'меÑÑц_меÑÑца_меÑÑцев', + 'yy': 'год_года_лет' + }; + if (key === 'm') { + return withoutSuffix ? 'минута' : 'минуту'; + } + else { + return number + ' ' + plural(format[key], +number); + } + } + + function monthsCaseReplace(m, format) { + var months = { + 'nominative': 'Ñнварь_февраль_март_апрель_май_июнь_июль_авгуÑÑ‚_ÑентÑбрь_октÑбрь_ноÑбрь_декабрь'.split('_'), + 'accusative': 'ÑнварÑ_февралÑ_марта_апрелÑ_маÑ_июнÑ_июлÑ_авгуÑта_ÑентÑбрÑ_октÑбрÑ_ноÑбрÑ_декабрÑ'.split('_') + }, + + nounCase = (/D[oD]? *MMMM?/).test(format) ? + 'accusative' : + 'nominative'; + + return months[nounCase][m.month()]; + } + + function monthsShortCaseReplace(m, format) { + var monthsShort = { + 'nominative': 'Ñнв_фев_мар_апр_май_июнь_июль_авг_Ñен_окт_ноÑ_дек'.split('_'), + 'accusative': 'Ñнв_фев_мар_апр_маÑ_июнÑ_июлÑ_авг_Ñен_окт_ноÑ_дек'.split('_') + }, + + nounCase = (/D[oD]? *MMMM?/).test(format) ? + 'accusative' : + 'nominative'; + + return monthsShort[nounCase][m.month()]; + } + + function weekdaysCaseReplace(m, format) { + var weekdays = { + 'nominative': 'воÑкреÑенье_понедельник_вторник_Ñреда_четверг_пÑтница_Ñуббота'.split('_'), + 'accusative': 'воÑкреÑенье_понедельник_вторник_Ñреду_четверг_пÑтницу_Ñубботу'.split('_') + }, + + nounCase = (/\[ ?[Вв] ?(?:прошлую|Ñледующую)? ?\] ?dddd/).test(format) ? + 'accusative' : + 'nominative'; + + return weekdays[nounCase][m.day()]; + } + + return moment.lang('ru', { + months : monthsCaseReplace, + monthsShort : monthsShortCaseReplace, + weekdays : weekdaysCaseReplace, + weekdaysShort : "вÑ_пн_вт_ÑÑ€_чт_пт_Ñб".split("_"), + weekdaysMin : "вÑ_пн_вт_ÑÑ€_чт_пт_Ñб".split("_"), + monthsParse : [/^Ñнв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[й|Ñ]/i, /^июн/i, /^июл/i, /^авг/i, /^Ñен/i, /^окт/i, /^ноÑ/i, /^дек/i], + longDateFormat : { + LT : "HH:mm", + L : "DD.MM.YYYY", + LL : "D MMMM YYYY г.", + LLL : "D MMMM YYYY г., LT", + LLLL : "dddd, D MMMM YYYY г., LT" + }, + calendar : { + sameDay: '[Ð¡ÐµÐ³Ð¾Ð´Ð½Ñ Ð²] LT', + nextDay: '[Завтра в] LT', + lastDay: '[Вчера в] LT', + nextWeek: function () { + return this.day() === 2 ? '[Во] dddd [в] LT' : '[Ð’] dddd [в] LT'; + }, + lastWeek: function () { + switch (this.day()) { + case 0: + return '[Ð’ прошлое] dddd [в] LT'; + case 1: + case 2: + case 4: + return '[Ð’ прошлый] dddd [в] LT'; + case 3: + case 5: + case 6: + return '[Ð’ прошлую] dddd [в] LT'; + } + }, + sameElse: 'L' + }, + relativeTime : { + future : "через %s", + past : "%s назад", + s : "неÑколько Ñекунд", + m : relativeTimeWithPlural, + mm : relativeTimeWithPlural, + h : "чаÑ", + hh : relativeTimeWithPlural, + d : "день", + dd : relativeTimeWithPlural, + M : "меÑÑц", + MM : relativeTimeWithPlural, + y : "год", + yy : relativeTimeWithPlural + }, + + // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason + + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return "ночи"; + } else if (hour < 12) { + return "утра"; + } else if (hour < 17) { + return "днÑ"; + } else { + return "вечера"; + } + }, + + ordinal: function (number, period) { + switch (period) { + case 'M': + case 'd': + case 'DDD': + return number + '-й'; + case 'D': + return number + '-го'; + case 'w': + case 'W': + return number + '-Ñ'; + default: + return number; + } + }, + + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.th.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.th.js index 70336c8..cc4f3c7 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.th.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.th.js @@ -1,58 +1,58 @@ -// moment.js language configuration -// language : thai (th) -// author : Kridsada Thanabulpong : https://github.com/sirn - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - return moment.lang('th', { - months : "มà¸à¸£à¸²à¸„ม_à¸à¸¸à¸¡à¸ าพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_à¸à¸£à¸à¸Žà¸²à¸„ม_สิงหาคม_à¸à¸±à¸™à¸¢à¸²à¸¢à¸™_ตุลาคม_พฤศจิà¸à¸²à¸¢à¸™_ธันวาคม".split("_"), - monthsShort : "มà¸à¸£à¸²_à¸à¸¸à¸¡à¸ า_มีนา_เมษา_พฤษภา_มิถุนา_à¸à¸£à¸à¸Žà¸²_สิงหา_à¸à¸±à¸™à¸¢à¸²_ตุลา_พฤศจิà¸à¸²_ธันวา".split("_"), - weekdays : "à¸à¸²à¸—ิตย์_จันทร์_à¸à¸±à¸‡à¸„าร_พุธ_พฤหัสบดี_ศุà¸à¸£à¹Œ_เสาร์".split("_"), - weekdaysShort : "à¸à¸²à¸—ิตย์_จันทร์_à¸à¸±à¸‡à¸„าร_พุธ_พฤหัส_ศุà¸à¸£à¹Œ_เสาร์".split("_"), // yes, three characters difference - weekdaysMin : "à¸à¸²._จ._à¸._พ._พฤ._ศ._ส.".split("_"), - longDateFormat : { - LT : "H นาฬิà¸à¸² m นาที", - L : "YYYY/MM/DD", - LL : "D MMMM YYYY", - LLL : "D MMMM YYYY เวลา LT", - LLLL : "วันddddที่ D MMMM YYYY เวลา LT" - }, - meridiem : function (hour, minute, isLower) { - if (hour < 12) { - return "à¸à¹ˆà¸à¸™à¹€à¸—ี่ยง"; - } else { - return "หลังเที่ยง"; - } - }, - calendar : { - sameDay : '[วันนี้ เวลา] LT', - nextDay : '[พรุ่งนี้ เวลา] LT', - nextWeek : 'dddd[หน้า เวลา] LT', - lastDay : '[เมื่à¸à¸§à¸²à¸™à¸™à¸µà¹‰ เวลา] LT', - lastWeek : '[วัน]dddd[ที่à¹à¸¥à¹‰à¸§ เวลา] LT', - sameElse : 'L' - }, - relativeTime : { - future : "à¸à¸µà¸ %s", - past : "%sที่à¹à¸¥à¹‰à¸§", - s : "ไม่à¸à¸µà¹ˆà¸§à¸´à¸™à¸²à¸—ี", - m : "1 นาที", - mm : "%d นาที", - h : "1 ชั่วโมง", - hh : "%d ชั่วโมง", - d : "1 วัน", - dd : "%d วัน", - M : "1 เดืà¸à¸™", - MM : "%d เดืà¸à¸™", - y : "1 ปี", - yy : "%d ปี" - } - }); -})); +// moment.js language configuration +// language : thai (th) +// author : Kridsada Thanabulpong : https://github.com/sirn + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + return moment.lang('th', { + months : "มà¸à¸£à¸²à¸„ม_à¸à¸¸à¸¡à¸ าพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_à¸à¸£à¸à¸Žà¸²à¸„ม_สิงหาคม_à¸à¸±à¸™à¸¢à¸²à¸¢à¸™_ตุลาคม_พฤศจิà¸à¸²à¸¢à¸™_ธันวาคม".split("_"), + monthsShort : "มà¸à¸£à¸²_à¸à¸¸à¸¡à¸ า_มีนา_เมษา_พฤษภา_มิถุนา_à¸à¸£à¸à¸Žà¸²_สิงหา_à¸à¸±à¸™à¸¢à¸²_ตุลา_พฤศจิà¸à¸²_ธันวา".split("_"), + weekdays : "à¸à¸²à¸—ิตย์_จันทร์_à¸à¸±à¸‡à¸„าร_พุธ_พฤหัสบดี_ศุà¸à¸£à¹Œ_เสาร์".split("_"), + weekdaysShort : "à¸à¸²à¸—ิตย์_จันทร์_à¸à¸±à¸‡à¸„าร_พุธ_พฤหัส_ศุà¸à¸£à¹Œ_เสาร์".split("_"), // yes, three characters difference + weekdaysMin : "à¸à¸²._จ._à¸._พ._พฤ._ศ._ส.".split("_"), + longDateFormat : { + LT : "H นาฬิà¸à¸² m นาที", + L : "YYYY/MM/DD", + LL : "D MMMM YYYY", + LLL : "D MMMM YYYY เวลา LT", + LLLL : "วันddddที่ D MMMM YYYY เวลา LT" + }, + meridiem : function (hour, minute, isLower) { + if (hour < 12) { + return "à¸à¹ˆà¸à¸™à¹€à¸—ี่ยง"; + } else { + return "หลังเที่ยง"; + } + }, + calendar : { + sameDay : '[วันนี้ เวลา] LT', + nextDay : '[พรุ่งนี้ เวลา] LT', + nextWeek : 'dddd[หน้า เวลา] LT', + lastDay : '[เมื่à¸à¸§à¸²à¸™à¸™à¸µà¹‰ เวลา] LT', + lastWeek : '[วัน]dddd[ที่à¹à¸¥à¹‰à¸§ เวลา] LT', + sameElse : 'L' + }, + relativeTime : { + future : "à¸à¸µà¸ %s", + past : "%sที่à¹à¸¥à¹‰à¸§", + s : "ไม่à¸à¸µà¹ˆà¸§à¸´à¸™à¸²à¸—ี", + m : "1 นาที", + mm : "%d นาที", + h : "1 ชั่วโมง", + hh : "%d ชั่วโมง", + d : "1 วัน", + dd : "%d วัน", + M : "1 เดืà¸à¸™", + MM : "%d เดืà¸à¸™", + y : "1 ปี", + yy : "%d ปี" + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.tzm.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.tzm.js index c7c76bd..538bc53 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.tzm.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.tzm.js @@ -1,55 +1,55 @@ -// moment.js language configuration -// language : Morocco Central Atlas TamaziÉ£t (tzm) -// author : Abdel Said : https://github.com/abdelsaid - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - return moment.lang('tzm', { - months : "ⵉâµâµâ´°âµ¢âµ”_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓâµâµ¢âµ“_ⵢⵓâµâµ¢âµ“âµ£_ⵖⵓⵛⵜ_ⵛⵓⵜⴰâµâ´±âµ‰âµ”_ⴽⵟⵓⴱⵕ_âµâµ“ⵡⴰâµâ´±âµ‰âµ”_ⴷⵓⵊâµâ´±âµ‰âµ”".split("_"), - monthsShort : "ⵉâµâµâ´°âµ¢âµ”_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓâµâµ¢âµ“_ⵢⵓâµâµ¢âµ“âµ£_ⵖⵓⵛⵜ_ⵛⵓⵜⴰâµâ´±âµ‰âµ”_ⴽⵟⵓⴱⵕ_âµâµ“ⵡⴰâµâ´±âµ‰âµ”_ⴷⵓⵊâµâ´±âµ‰âµ”".split("_"), - weekdays : "ⴰⵙⴰⵎⴰⵙ_â´°âµ¢âµâ´°âµ™_ⴰⵙⵉâµâ´°âµ™_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"), - weekdaysShort : "ⴰⵙⴰⵎⴰⵙ_â´°âµ¢âµâ´°âµ™_ⴰⵙⵉâµâ´°âµ™_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"), - weekdaysMin : "ⴰⵙⴰⵎⴰⵙ_â´°âµ¢âµâ´°âµ™_ⴰⵙⵉâµâ´°âµ™_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"), - longDateFormat : { - LT : "HH:mm", - L : "DD/MM/YYYY", - LL : "D MMMM YYYY", - LLL : "D MMMM YYYY LT", - LLLL : "dddd D MMMM YYYY LT" - }, - calendar : { - sameDay: "[ⴰⵙⴷⵅ â´´] LT", - nextDay: '[ⴰⵙⴽⴰ â´´] LT', - nextWeek: 'dddd [â´´] LT', - lastDay: '[ⴰⵚⴰâµâµœ â´´] LT', - lastWeek: 'dddd [â´´] LT', - sameElse: 'L' - }, - relativeTime : { - future : "â´·â´°â´·âµ… âµ™ ⵢⴰⵠ%s", - past : "ⵢⴰⵠ%s", - s : "ⵉⵎⵉⴽ", - m : "ⵎⵉâµâµ“â´º", - mm : "%d ⵎⵉâµâµ“â´º", - h : "ⵙⴰⵄⴰ", - hh : "%d ⵜⴰⵙⵙⴰⵄⵉâµ", - d : "ⴰⵙⵙ", - dd : "%d oⵙⵙⴰâµ", - M : "â´°âµ¢oⵓⵔ", - MM : "%d ⵉⵢⵢⵉⵔâµ", - y : "ⴰⵙⴳⴰⵙ", - yy : "%d ⵉⵙⴳⴰⵙâµ" - }, - week : { - dow : 6, // Saturday is the first day of the week. - doy : 12 // The week that contains Jan 1st is the first week of the year. - } - }); -})); +// moment.js language configuration +// language : Morocco Central Atlas TamaziÉ£t (tzm) +// author : Abdel Said : https://github.com/abdelsaid + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + return moment.lang('tzm', { + months : "ⵉâµâµâ´°âµ¢âµ”_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓâµâµ¢âµ“_ⵢⵓâµâµ¢âµ“âµ£_ⵖⵓⵛⵜ_ⵛⵓⵜⴰâµâ´±âµ‰âµ”_ⴽⵟⵓⴱⵕ_âµâµ“ⵡⴰâµâ´±âµ‰âµ”_ⴷⵓⵊâµâ´±âµ‰âµ”".split("_"), + monthsShort : "ⵉâµâµâ´°âµ¢âµ”_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓâµâµ¢âµ“_ⵢⵓâµâµ¢âµ“âµ£_ⵖⵓⵛⵜ_ⵛⵓⵜⴰâµâ´±âµ‰âµ”_ⴽⵟⵓⴱⵕ_âµâµ“ⵡⴰâµâ´±âµ‰âµ”_ⴷⵓⵊâµâ´±âµ‰âµ”".split("_"), + weekdays : "ⴰⵙⴰⵎⴰⵙ_â´°âµ¢âµâ´°âµ™_ⴰⵙⵉâµâ´°âµ™_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"), + weekdaysShort : "ⴰⵙⴰⵎⴰⵙ_â´°âµ¢âµâ´°âµ™_ⴰⵙⵉâµâ´°âµ™_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"), + weekdaysMin : "ⴰⵙⴰⵎⴰⵙ_â´°âµ¢âµâ´°âµ™_ⴰⵙⵉâµâ´°âµ™_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"), + longDateFormat : { + LT : "HH:mm", + L : "DD/MM/YYYY", + LL : "D MMMM YYYY", + LLL : "D MMMM YYYY LT", + LLLL : "dddd D MMMM YYYY LT" + }, + calendar : { + sameDay: "[ⴰⵙⴷⵅ â´´] LT", + nextDay: '[ⴰⵙⴽⴰ â´´] LT', + nextWeek: 'dddd [â´´] LT', + lastDay: '[ⴰⵚⴰâµâµœ â´´] LT', + lastWeek: 'dddd [â´´] LT', + sameElse: 'L' + }, + relativeTime : { + future : "â´·â´°â´·âµ… âµ™ ⵢⴰⵠ%s", + past : "ⵢⴰⵠ%s", + s : "ⵉⵎⵉⴽ", + m : "ⵎⵉâµâµ“â´º", + mm : "%d ⵎⵉâµâµ“â´º", + h : "ⵙⴰⵄⴰ", + hh : "%d ⵜⴰⵙⵙⴰⵄⵉâµ", + d : "ⴰⵙⵙ", + dd : "%d oⵙⵙⴰâµ", + M : "â´°âµ¢oⵓⵔ", + MM : "%d ⵉⵢⵢⵉⵔâµ", + y : "ⴰⵙⴳⴰⵙ", + yy : "%d ⵉⵙⴳⴰⵙâµ" + }, + week : { + dow : 6, // Saturday is the first day of the week. + doy : 12 // The week that contains Jan 1st is the first week of the year. + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.uk.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.uk.js index 47056cb..f596ef8 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.uk.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.uk.js @@ -1,157 +1,157 @@ -// moment.js language configuration -// language : ukrainian (uk) -// author : zemlanin : https://github.com/zemlanin -// Author : Menelion Elensúle : https://github.com/Oire - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); - } - - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - 'mm': 'хвилина_хвилини_хвилин', - 'hh': 'година_години_годин', - 'dd': 'день_дні_днів', - 'MM': 'міÑÑць_міÑÑці_міÑÑців', - 'yy': 'рік_роки_років' - }; - if (key === 'm') { - return withoutSuffix ? 'хвилина' : 'хвилину'; - } - else if (key === 'h') { - return withoutSuffix ? 'година' : 'годину'; - } - else { - return number + ' ' + plural(format[key], +number); - } - } - - function monthsCaseReplace(m, format) { - var months = { - 'nominative': 'Ñічень_лютий_березень_квітень_травень_червень_липень_Ñерпень_вереÑень_жовтень_лиÑтопад_грудень'.split('_'), - 'accusative': 'ÑічнÑ_лютого_березнÑ_квітнÑ_травнÑ_червнÑ_липнÑ_ÑерпнÑ_вереÑнÑ_жовтнÑ_лиÑтопада_груднÑ'.split('_') - }, - - nounCase = (/D[oD]? *MMMM?/).test(format) ? - 'accusative' : - 'nominative'; - - return months[nounCase][m.month()]; - } - - function weekdaysCaseReplace(m, format) { - var weekdays = { - 'nominative': 'неділÑ_понеділок_вівторок_Ñереда_четвер_п’ÑтницÑ_Ñубота'.split('_'), - 'accusative': 'неділю_понеділок_вівторок_Ñереду_четвер_п’Ñтницю_Ñуботу'.split('_'), - 'genitive': 'неділі_понеділка_вівторка_Ñереди_четверга_п’Ñтниці_Ñуботи'.split('_') - }, - - nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ? - 'accusative' : - ((/\[?(?:минулої|наÑтупної)? ?\] ?dddd/).test(format) ? - 'genitive' : - 'nominative'); - - return weekdays[nounCase][m.day()]; - } - - function processHoursFunction(str) { - return function () { - return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT'; - }; - } - - return moment.lang('uk', { - months : monthsCaseReplace, - monthsShort : "Ñіч_лют_бер_квіт_трав_черв_лип_Ñерп_вер_жовт_лиÑÑ‚_груд".split("_"), - weekdays : weekdaysCaseReplace, - weekdaysShort : "нд_пн_вт_ÑÑ€_чт_пт_Ñб".split("_"), - weekdaysMin : "нд_пн_вт_ÑÑ€_чт_пт_Ñб".split("_"), - longDateFormat : { - LT : "HH:mm", - L : "DD.MM.YYYY", - LL : "D MMMM YYYY Ñ€.", - LLL : "D MMMM YYYY Ñ€., LT", - LLLL : "dddd, D MMMM YYYY Ñ€., LT" - }, - calendar : { - sameDay: processHoursFunction('[Сьогодні '), - nextDay: processHoursFunction('[Завтра '), - lastDay: processHoursFunction('[Вчора '), - nextWeek: processHoursFunction('[У] dddd ['), - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 5: - case 6: - return processHoursFunction('[Минулої] dddd [').call(this); - case 1: - case 2: - case 4: - return processHoursFunction('[Минулого] dddd [').call(this); - } - }, - sameElse: 'L' - }, - relativeTime : { - future : "за %s", - past : "%s тому", - s : "декілька Ñекунд", - m : relativeTimeWithPlural, - mm : relativeTimeWithPlural, - h : "годину", - hh : relativeTimeWithPlural, - d : "день", - dd : relativeTimeWithPlural, - M : "міÑÑць", - MM : relativeTimeWithPlural, - y : "рік", - yy : relativeTimeWithPlural - }, - - // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason - - meridiem : function (hour, minute, isLower) { - if (hour < 4) { - return "ночі"; - } else if (hour < 12) { - return "ранку"; - } else if (hour < 17) { - return "днÑ"; - } else { - return "вечора"; - } - }, - - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - case 'w': - case 'W': - return number + '-й'; - case 'D': - return number + '-го'; - default: - return number; - } - }, - - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 1st is the first week of the year. - } - }); -})); +// moment.js language configuration +// language : ukrainian (uk) +// author : zemlanin : https://github.com/zemlanin +// Author : Menelion Elensúle : https://github.com/Oire + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + function plural(word, num) { + var forms = word.split('_'); + return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); + } + + function relativeTimeWithPlural(number, withoutSuffix, key) { + var format = { + 'mm': 'хвилина_хвилини_хвилин', + 'hh': 'година_години_годин', + 'dd': 'день_дні_днів', + 'MM': 'міÑÑць_міÑÑці_міÑÑців', + 'yy': 'рік_роки_років' + }; + if (key === 'm') { + return withoutSuffix ? 'хвилина' : 'хвилину'; + } + else if (key === 'h') { + return withoutSuffix ? 'година' : 'годину'; + } + else { + return number + ' ' + plural(format[key], +number); + } + } + + function monthsCaseReplace(m, format) { + var months = { + 'nominative': 'Ñічень_лютий_березень_квітень_травень_червень_липень_Ñерпень_вереÑень_жовтень_лиÑтопад_грудень'.split('_'), + 'accusative': 'ÑічнÑ_лютого_березнÑ_квітнÑ_травнÑ_червнÑ_липнÑ_ÑерпнÑ_вереÑнÑ_жовтнÑ_лиÑтопада_груднÑ'.split('_') + }, + + nounCase = (/D[oD]? *MMMM?/).test(format) ? + 'accusative' : + 'nominative'; + + return months[nounCase][m.month()]; + } + + function weekdaysCaseReplace(m, format) { + var weekdays = { + 'nominative': 'неділÑ_понеділок_вівторок_Ñереда_четвер_п’ÑтницÑ_Ñубота'.split('_'), + 'accusative': 'неділю_понеділок_вівторок_Ñереду_четвер_п’Ñтницю_Ñуботу'.split('_'), + 'genitive': 'неділі_понеділка_вівторка_Ñереди_четверга_п’Ñтниці_Ñуботи'.split('_') + }, + + nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ? + 'accusative' : + ((/\[?(?:минулої|наÑтупної)? ?\] ?dddd/).test(format) ? + 'genitive' : + 'nominative'); + + return weekdays[nounCase][m.day()]; + } + + function processHoursFunction(str) { + return function () { + return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT'; + }; + } + + return moment.lang('uk', { + months : monthsCaseReplace, + monthsShort : "Ñіч_лют_бер_квіт_трав_черв_лип_Ñерп_вер_жовт_лиÑÑ‚_груд".split("_"), + weekdays : weekdaysCaseReplace, + weekdaysShort : "нд_пн_вт_ÑÑ€_чт_пт_Ñб".split("_"), + weekdaysMin : "нд_пн_вт_ÑÑ€_чт_пт_Ñб".split("_"), + longDateFormat : { + LT : "HH:mm", + L : "DD.MM.YYYY", + LL : "D MMMM YYYY Ñ€.", + LLL : "D MMMM YYYY Ñ€., LT", + LLLL : "dddd, D MMMM YYYY Ñ€., LT" + }, + calendar : { + sameDay: processHoursFunction('[Сьогодні '), + nextDay: processHoursFunction('[Завтра '), + lastDay: processHoursFunction('[Вчора '), + nextWeek: processHoursFunction('[У] dddd ['), + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 5: + case 6: + return processHoursFunction('[Минулої] dddd [').call(this); + case 1: + case 2: + case 4: + return processHoursFunction('[Минулого] dddd [').call(this); + } + }, + sameElse: 'L' + }, + relativeTime : { + future : "за %s", + past : "%s тому", + s : "декілька Ñекунд", + m : relativeTimeWithPlural, + mm : relativeTimeWithPlural, + h : "годину", + hh : relativeTimeWithPlural, + d : "день", + dd : relativeTimeWithPlural, + M : "міÑÑць", + MM : relativeTimeWithPlural, + y : "рік", + yy : relativeTimeWithPlural + }, + + // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason + + meridiem : function (hour, minute, isLower) { + if (hour < 4) { + return "ночі"; + } else if (hour < 12) { + return "ранку"; + } else if (hour < 17) { + return "днÑ"; + } else { + return "вечора"; + } + }, + + ordinal: function (number, period) { + switch (period) { + case 'M': + case 'd': + case 'DDD': + case 'w': + case 'W': + return number + '-й'; + case 'D': + return number + '-го'; + default: + return number; + } + }, + + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 1st is the first week of the year. + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.uz.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.uz.js index a5b06fa..b4904ec 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.uz.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.uz.js @@ -1,55 +1,55 @@ -// moment.js language configuration -// language : uzbek -// author : Sardor Muminov : https://github.com/muminoff - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - return moment.lang('uz', { - months : "Ñнварь_февраль_март_апрель_май_июнь_июль_авгуÑÑ‚_ÑентÑбрь_октÑбрь_ноÑбрь_декабрь".split("_"), - monthsShort : "Ñнв_фев_мар_апр_май_июн_июл_авг_Ñен_окт_ноÑ_дек".split("_"), - weekdays : "Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"), - weekdaysShort : "Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"), - weekdaysMin : "Як_Ду_Се_Чо_Па_Жу_Ша".split("_"), - longDateFormat : { - LT : "HH:mm", - L : "DD/MM/YYYY", - LL : "D MMMM YYYY", - LLL : "D MMMM YYYY LT", - LLLL : "D MMMM YYYY, dddd LT" - }, - calendar : { - sameDay : '[Бугун Ñоат] LT [да]', - nextDay : '[Ðртага] LT [да]', - nextWeek : 'dddd [куни Ñоат] LT [да]', - lastDay : '[Кеча Ñоат] LT [да]', - lastWeek : '[Утган] dddd [куни Ñоат] LT [да]', - sameElse : 'L' - }, - relativeTime : { - future : "Якин %s ичида", - past : "Бир неча %s олдин", - s : "фурÑат", - m : "бир дакика", - mm : "%d дакика", - h : "бир Ñоат", - hh : "%d Ñоат", - d : "бир кун", - dd : "%d кун", - M : "бир ой", - MM : "%d ой", - y : "бир йил", - yy : "%d йил" - }, - week : { - dow : 1, // Monday is the first day of the week. - doy : 7 // The week that contains Jan 4th is the first week of the year. - } - }); -})); +// moment.js language configuration +// language : uzbek +// author : Sardor Muminov : https://github.com/muminoff + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + return moment.lang('uz', { + months : "Ñнварь_февраль_март_апрель_май_июнь_июль_авгуÑÑ‚_ÑентÑбрь_октÑбрь_ноÑбрь_декабрь".split("_"), + monthsShort : "Ñнв_фев_мар_апр_май_июн_июл_авг_Ñен_окт_ноÑ_дек".split("_"), + weekdays : "Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"), + weekdaysShort : "Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"), + weekdaysMin : "Як_Ду_Се_Чо_Па_Жу_Ша".split("_"), + longDateFormat : { + LT : "HH:mm", + L : "DD/MM/YYYY", + LL : "D MMMM YYYY", + LLL : "D MMMM YYYY LT", + LLLL : "D MMMM YYYY, dddd LT" + }, + calendar : { + sameDay : '[Бугун Ñоат] LT [да]', + nextDay : '[Ðртага] LT [да]', + nextWeek : 'dddd [куни Ñоат] LT [да]', + lastDay : '[Кеча Ñоат] LT [да]', + lastWeek : '[Утган] dddd [куни Ñоат] LT [да]', + sameElse : 'L' + }, + relativeTime : { + future : "Якин %s ичида", + past : "Бир неча %s олдин", + s : "фурÑат", + m : "бир дакика", + mm : "%d дакика", + h : "бир Ñоат", + hh : "%d Ñоат", + d : "бир кун", + dd : "%d кун", + M : "бир ой", + MM : "%d ой", + y : "бир йил", + yy : "%d йил" + }, + week : { + dow : 1, // Monday is the first day of the week. + doy : 7 // The week that contains Jan 4th is the first week of the year. + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.zh-CN.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.zh-CN.js index 80aefe0..3d2d70d 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.zh-CN.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.zh-CN.js @@ -1,108 +1,108 @@ -// moment.js language configuration -// language : chinese -// author : suupic : https://github.com/suupic -// author : Zeno Zeng : https://github.com/zenozeng - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - return moment.lang('zh-cn', { - months : "一月_二月_三月_四月_五月_å…æœˆ_七月_八月_乿œˆ_åæœˆ_å一月_å二月".split("_"), - monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), - weekdays : "星期日_星期一_星期二_星期三_星期四_星期五_星期å…".split("_"), - weekdaysShort : "周日_周一_周二_周三_周四_周五_周å…".split("_"), - weekdaysMin : "æ—¥_一_二_三_å››_五_å…".split("_"), - longDateFormat : { - LT : "Ah点mm", - L : "YYYYå¹´MMMDæ—¥", - LL : "YYYYå¹´MMMDæ—¥", - LLL : "YYYYå¹´MMMDæ—¥LT", - LLLL : "YYYYå¹´MMMDæ—¥ddddLT", - l : "YYYYå¹´MMMDæ—¥", - ll : "YYYYå¹´MMMDæ—¥", - lll : "YYYYå¹´MMMDæ—¥LT", - llll : "YYYYå¹´MMMDæ—¥ddddLT" - }, - meridiem : function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return "凌晨"; - } else if (hm < 900) { - return "早上"; - } else if (hm < 1130) { - return "上åˆ"; - } else if (hm < 1230) { - return "ä¸åˆ"; - } else if (hm < 1800) { - return "下åˆ"; - } else { - return "晚上"; - } - }, - calendar : { - sameDay : function () { - return this.minutes() === 0 ? "[今天]Ah[点整]" : "[今天]LT"; - }, - nextDay : function () { - return this.minutes() === 0 ? "[明天]Ah[点整]" : "[明天]LT"; - }, - lastDay : function () { - return this.minutes() === 0 ? "[昨天]Ah[点整]" : "[昨天]LT"; - }, - nextWeek : function () { - var startOfWeek, prefix; - startOfWeek = moment().startOf('week'); - prefix = this.unix() - startOfWeek.unix() >= 7 * 24 * 3600 ? '[下]' : '[本]'; - return this.minutes() === 0 ? prefix + "dddAh点整" : prefix + "dddAh点mm"; - }, - lastWeek : function () { - var startOfWeek, prefix; - startOfWeek = moment().startOf('week'); - prefix = this.unix() < startOfWeek.unix() ? '[上]' : '[本]'; - return this.minutes() === 0 ? prefix + "dddAh点整" : prefix + "dddAh点mm"; - }, - sameElse : 'L' - }, - ordinal : function (number, period) { - switch (period) { - case "d": - case "D": - case "DDD": - return number + "æ—¥"; - case "M": - return number + "月"; - case "w": - case "W": - return number + "周"; - default: - return number; - } - }, - relativeTime : { - future : "%s内", - past : "%så‰", - s : "å‡ ç§’", - m : "1分钟", - mm : "%d分钟", - h : "1å°æ—¶", - hh : "%då°æ—¶", - d : "1天", - dd : "%d天", - M : "1个月", - MM : "%d个月", - y : "1å¹´", - yy : "%då¹´" - }, - week : { - // GB/T 7408-1994《数æ®å…ƒå’Œäº¤æ¢æ ¼å¼Â·ä¿¡æ¯äº¤æ¢Â·æ—¥æœŸå’Œæ—¶é—´è¡¨ç¤ºæ³•》与ISO 8601:1988ç‰æ•ˆ - dow : 1, // Monday is the first day of the week. - doy : 4 // The week that contains Jan 4th is the first week of the year. - } - }); -})); +// moment.js language configuration +// language : chinese +// author : suupic : https://github.com/suupic +// author : Zeno Zeng : https://github.com/zenozeng + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + return moment.lang('zh-cn', { + months : "一月_二月_三月_四月_五月_å…æœˆ_七月_八月_乿œˆ_åæœˆ_å一月_å二月".split("_"), + monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), + weekdays : "星期日_星期一_星期二_星期三_星期四_星期五_星期å…".split("_"), + weekdaysShort : "周日_周一_周二_周三_周四_周五_周å…".split("_"), + weekdaysMin : "æ—¥_一_二_三_å››_五_å…".split("_"), + longDateFormat : { + LT : "Ah点mm", + L : "YYYYå¹´MMMDæ—¥", + LL : "YYYYå¹´MMMDæ—¥", + LLL : "YYYYå¹´MMMDæ—¥LT", + LLLL : "YYYYå¹´MMMDæ—¥ddddLT", + l : "YYYYå¹´MMMDæ—¥", + ll : "YYYYå¹´MMMDæ—¥", + lll : "YYYYå¹´MMMDæ—¥LT", + llll : "YYYYå¹´MMMDæ—¥ddddLT" + }, + meridiem : function (hour, minute, isLower) { + var hm = hour * 100 + minute; + if (hm < 600) { + return "凌晨"; + } else if (hm < 900) { + return "早上"; + } else if (hm < 1130) { + return "上åˆ"; + } else if (hm < 1230) { + return "ä¸åˆ"; + } else if (hm < 1800) { + return "下åˆ"; + } else { + return "晚上"; + } + }, + calendar : { + sameDay : function () { + return this.minutes() === 0 ? "[今天]Ah[点整]" : "[今天]LT"; + }, + nextDay : function () { + return this.minutes() === 0 ? "[明天]Ah[点整]" : "[明天]LT"; + }, + lastDay : function () { + return this.minutes() === 0 ? "[昨天]Ah[点整]" : "[昨天]LT"; + }, + nextWeek : function () { + var startOfWeek, prefix; + startOfWeek = moment().startOf('week'); + prefix = this.unix() - startOfWeek.unix() >= 7 * 24 * 3600 ? '[下]' : '[本]'; + return this.minutes() === 0 ? prefix + "dddAh点整" : prefix + "dddAh点mm"; + }, + lastWeek : function () { + var startOfWeek, prefix; + startOfWeek = moment().startOf('week'); + prefix = this.unix() < startOfWeek.unix() ? '[上]' : '[本]'; + return this.minutes() === 0 ? prefix + "dddAh点整" : prefix + "dddAh点mm"; + }, + sameElse : 'L' + }, + ordinal : function (number, period) { + switch (period) { + case "d": + case "D": + case "DDD": + return number + "æ—¥"; + case "M": + return number + "月"; + case "w": + case "W": + return number + "周"; + default: + return number; + } + }, + relativeTime : { + future : "%s内", + past : "%så‰", + s : "å‡ ç§’", + m : "1分钟", + mm : "%d分钟", + h : "1å°æ—¶", + hh : "%då°æ—¶", + d : "1天", + dd : "%d天", + M : "1个月", + MM : "%d个月", + y : "1å¹´", + yy : "%då¹´" + }, + week : { + // GB/T 7408-1994《数æ®å…ƒå’Œäº¤æ¢æ ¼å¼Â·ä¿¡æ¯äº¤æ¢Â·æ—¥æœŸå’Œæ—¶é—´è¡¨ç¤ºæ³•》与ISO 8601:1988ç‰æ•ˆ + dow : 1, // Monday is the first day of the week. + doy : 4 // The week that contains Jan 4th is the first week of the year. + } + }); +})); diff --git a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.zh-TW.js b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.zh-TW.js index bbb0737..0d7b944 100644 --- a/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.zh-TW.js +++ b/www/web/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.zh-TW.js @@ -1,84 +1,84 @@ -// moment.js language configuration -// language : traditional chinese (zh-tw) -// author : Ben : https://github.com/ben-lin - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define(['moment'], factory); // AMD - } else if (typeof exports === 'object') { - module.exports = factory(require('../moment')); // Node - } else { - factory(window.moment); // Browser global - } -}(function (moment) { - return moment.lang('zh-tw', { - months : "一月_二月_三月_四月_五月_å…æœˆ_七月_八月_乿œˆ_åæœˆ_å一月_å二月".split("_"), - monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), - weekdays : "星期日_星期一_星期二_星期三_星期四_星期五_星期å…".split("_"), - weekdaysShort : "週日_週一_週二_週三_週四_週五_週å…".split("_"), - weekdaysMin : "æ—¥_一_二_三_å››_五_å…".split("_"), - longDateFormat : { - LT : "Ah點mm", - L : "YYYYå¹´MMMDæ—¥", - LL : "YYYYå¹´MMMDæ—¥", - LLL : "YYYYå¹´MMMDæ—¥LT", - LLLL : "YYYYå¹´MMMDæ—¥ddddLT", - l : "YYYYå¹´MMMDæ—¥", - ll : "YYYYå¹´MMMDæ—¥", - lll : "YYYYå¹´MMMDæ—¥LT", - llll : "YYYYå¹´MMMDæ—¥ddddLT" - }, - meridiem : function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 900) { - return "早上"; - } else if (hm < 1130) { - return "上åˆ"; - } else if (hm < 1230) { - return "ä¸åˆ"; - } else if (hm < 1800) { - return "下åˆ"; - } else { - return "晚上"; - } - }, - calendar : { - sameDay : '[今天]LT', - nextDay : '[明天]LT', - nextWeek : '[下]ddddLT', - lastDay : '[昨天]LT', - lastWeek : '[上]ddddLT', - sameElse : 'L' - }, - ordinal : function (number, period) { - switch (period) { - case "d" : - case "D" : - case "DDD" : - return number + "æ—¥"; - case "M" : - return number + "月"; - case "w" : - case "W" : - return number + "週"; - default : - return number; - } - }, - relativeTime : { - future : "%så…§", - past : "%så‰", - s : "幾秒", - m : "一分é˜", - mm : "%d分é˜", - h : "䏀尿™‚", - hh : "%då°æ™‚", - d : "一天", - dd : "%d天", - M : "一個月", - MM : "%d個月", - y : "一年", - yy : "%då¹´" - } - }); -})); +// moment.js language configuration +// language : traditional chinese (zh-tw) +// author : Ben : https://github.com/ben-lin + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['moment'], factory); // AMD + } else if (typeof exports === 'object') { + module.exports = factory(require('../moment')); // Node + } else { + factory(window.moment); // Browser global + } +}(function (moment) { + return moment.lang('zh-tw', { + months : "一月_二月_三月_四月_五月_å…æœˆ_七月_八月_乿œˆ_åæœˆ_å一月_å二月".split("_"), + monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), + weekdays : "星期日_星期一_星期二_星期三_星期四_星期五_星期å…".split("_"), + weekdaysShort : "週日_週一_週二_週三_週四_週五_週å…".split("_"), + weekdaysMin : "æ—¥_一_二_三_å››_五_å…".split("_"), + longDateFormat : { + LT : "Ah點mm", + L : "YYYYå¹´MMMDæ—¥", + LL : "YYYYå¹´MMMDæ—¥", + LLL : "YYYYå¹´MMMDæ—¥LT", + LLLL : "YYYYå¹´MMMDæ—¥ddddLT", + l : "YYYYå¹´MMMDæ—¥", + ll : "YYYYå¹´MMMDæ—¥", + lll : "YYYYå¹´MMMDæ—¥LT", + llll : "YYYYå¹´MMMDæ—¥ddddLT" + }, + meridiem : function (hour, minute, isLower) { + var hm = hour * 100 + minute; + if (hm < 900) { + return "早上"; + } else if (hm < 1130) { + return "上åˆ"; + } else if (hm < 1230) { + return "ä¸åˆ"; + } else if (hm < 1800) { + return "下åˆ"; + } else { + return "晚上"; + } + }, + calendar : { + sameDay : '[今天]LT', + nextDay : '[明天]LT', + nextWeek : '[下]ddddLT', + lastDay : '[昨天]LT', + lastWeek : '[上]ddddLT', + sameElse : 'L' + }, + ordinal : function (number, period) { + switch (period) { + case "d" : + case "D" : + case "DDD" : + return number + "æ—¥"; + case "M" : + return number + "月"; + case "w" : + case "W" : + return number + "週"; + default : + return number; + } + }, + relativeTime : { + future : "%så…§", + past : "%så‰", + s : "幾秒", + m : "一分é˜", + mm : "%d分é˜", + h : "䏀尿™‚", + hh : "%då°æ™‚", + d : "一天", + dd : "%d天", + M : "一個月", + MM : "%d個月", + y : "一年", + yy : "%då¹´" + } + }); +})); diff --git a/www/web/static/rest_framework/css/bootstrap-tweaks.css b/www/web/static/rest_framework/css/bootstrap-tweaks.css index 17085b4..c2fcb30 100644 --- a/www/web/static/rest_framework/css/bootstrap-tweaks.css +++ b/www/web/static/rest_framework/css/bootstrap-tweaks.css @@ -32,7 +32,6 @@ a single block in the template. position: fixed; left: 0; top: 0; - z-index: 3; } .navbar { diff --git a/www/web/warpauth/models.py b/www/web/warpauth/models.py index 7b1b53a..b850c29 100644 --- a/www/web/warpauth/models.py +++ b/www/web/warpauth/models.py @@ -46,7 +46,7 @@ class LdapUser(ldapdb.models.Model): class LdapUserForm(ModelForm): class Meta: model = LdapUser - fields = ['first_name', 'last_name', 'email'] + fields = ['first_name', 'last_name', 'email', 'card_id'] class LdapGroup(ldapdb.models.Model): diff --git a/www/web/warppay/migrations/0001_initial.py b/www/web/warppay/migrations/0001_initial.py new file mode 100644 index 0000000..b19074f --- /dev/null +++ b/www/web/warppay/migrations/0001_initial.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2017-03-14 17:27 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Product', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=100, null=True)), + ('price', models.FloatField()), + ('count', models.IntegerField()), + ], + ), + migrations.CreateModel( + name='ProductCategory', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=100, unique=True)), + ], + ), + migrations.CreateModel( + name='UserCredit', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('uid', models.CharField(max_length=100, unique=True)), + ('card_id', models.CharField(max_length=10, null=True, unique=True)), + ('credit', models.FloatField()), + ], + ), + migrations.AddField( + model_name='product', + name='category', + field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='warppay.ProductCategory'), + ), + ] diff --git a/www/web/warppay/migrations/0002_auto_20170314_1732.py b/www/web/warppay/migrations/0002_auto_20170314_1732.py new file mode 100644 index 0000000..d8a8856 --- /dev/null +++ b/www/web/warppay/migrations/0002_auto_20170314_1732.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2017-03-14 17:32 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('warppay', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='usercredit', + name='card_id', + field=models.CharField(default='', max_length=10, unique=True), + preserve_default=False, + ), + ] diff --git a/www/web/warppay/migrations/0003_auto_20170314_1738.py b/www/web/warppay/migrations/0003_auto_20170314_1738.py new file mode 100644 index 0000000..5c1cb67 --- /dev/null +++ b/www/web/warppay/migrations/0003_auto_20170314_1738.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2017-03-14 17:38 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('warppay', '0002_auto_20170314_1732'), + ] + + operations = [ + migrations.AlterField( + model_name='usercredit', + name='card_id', + field=models.CharField(max_length=10, null=True, unique=True), + ), + ] diff --git a/www/web/warppay/migrations/0004_auto_20170314_1739.py b/www/web/warppay/migrations/0004_auto_20170314_1739.py new file mode 100644 index 0000000..3207814 --- /dev/null +++ b/www/web/warppay/migrations/0004_auto_20170314_1739.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2017-03-14 17:39 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('warppay', '0003_auto_20170314_1738'), + ] + + operations = [ + migrations.AlterField( + model_name='usercredit', + name='card_id', + field=models.CharField(default='None', max_length=10, null=True, unique=True), + ), + ] diff --git a/www/web/warppay/migrations/0005_auto_20170314_1741.py b/www/web/warppay/migrations/0005_auto_20170314_1741.py new file mode 100644 index 0000000..a95f714 --- /dev/null +++ b/www/web/warppay/migrations/0005_auto_20170314_1741.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2017-03-14 17:41 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('warppay', '0004_auto_20170314_1739'), + ] + + operations = [ + migrations.AlterField( + model_name='usercredit', + name='card_id', + field=models.CharField(max_length=10, null=True, unique=True), + ), + ] diff --git a/www/web/warppay/migrations/0006_auto_20170314_1748.py b/www/web/warppay/migrations/0006_auto_20170314_1748.py new file mode 100644 index 0000000..592b465 --- /dev/null +++ b/www/web/warppay/migrations/0006_auto_20170314_1748.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2017-03-14 17:48 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('warppay', '0005_auto_20170314_1741'), + ] + + operations = [ + migrations.AlterField( + model_name='usercredit', + name='card_id', + field=models.CharField(max_length=10, null=True), + ), + ] diff --git a/www/web/warppay/migrations/__init__.py b/www/web/warppay/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/www/web/warppay/models.py b/www/web/warppay/models.py index edda802..ece3f3b 100644 --- a/www/web/warppay/models.py +++ b/www/web/warppay/models.py @@ -27,7 +27,7 @@ class ProductSerializer(serializers.ModelSerializer): class UserCredit(models.Model): uid = models.CharField(max_length=100,unique=True) - card_id = models.CharField(max_length=10, unique=True) + card_id = models.CharField(max_length=10, null=True) # Unique only with django 1.11 credit = models.FloatField() def __str__(self): return self.uid diff --git a/www/web/warppay/views.py b/www/web/warppay/views.py index 2cae82a..4bc40c7 100644 --- a/www/web/warppay/views.py +++ b/www/web/warppay/views.py @@ -1,4 +1,5 @@ from django.db import IntegrityError +from django.core.exceptions import ObjectDoesNotExist from warpauth.models import LdapUser from warppay.models import UserCredit, UserCreditSerializer, Product, ProductSerializer from rest_framework.decorators import api_view @@ -32,7 +33,7 @@ def gen_token(request): return Response(token) return Response() -@api_view(['GET', 'PUT', 'POST']) +@api_view(['GET', 'PUT']) #@authentication_classes((TokenAuthentication,)) #@permission_classes((IsAuthenticated,)) def user_list(request, user_id = 0): @@ -55,8 +56,16 @@ def user_list(request, user_id = 0): if "credit" in request.data: user.credit = request.data['credit'] if "card_id" in request.data: + # ToDo: Diskussion: Direkt Karte Ändern? + try: + ldap_user = LdapUser.objects.get(uid=str(request.data['uid'])) + ldap_user.card_id = request.data['card_id'] + ldap_user.save() + except: + pass user.card_id = request.data['card_id'] user.save(); + return Response(UserCreditSerializer(user).data) except UserCredit.DoesNotExist: return Response(status=status.HTTP_404_NOT_FOUND) @@ -83,10 +92,13 @@ def user_list(request, user_id = 0): def sync_users(): for user in LdapUser.objects.all(): + print(user) try: + u = UserCredit.objects.get(uid=user.uid) + if user.card_id: + u.card_id = user.card_id + u.save() + except ObjectDoesNotExist: u = UserCredit(uid=user.uid, card_id=user.card_id, credit=0.0) u.save() - except IntegrityError: - pass - except: - pass + diff --git a/www/web/warpzone.db b/www/web/warpzone.db index 2b253a2ff47ee5cbffbec87ac395208a4e2984fe..e98b06bae5f1f82bcccc45a276316242f4d1fb68 100644 GIT binary patch delta 7874 zcma)B4OCm#eSh~}VFXARFhU4}Exv3R2Hw-t*8^iC1I8Ew{=i^pQu!f0Kt@PJ5;k~C zWbE3_NqgKX>Ir9Q+%0X^Y~4vbOmm#%EJ?f0+fKHAIO|T6uGvYGEo;t6>ZIo^ZR#xB z|GxJmJps0ht$XzD|KtAd|NicM|Nqsw4|V6xZTf0O3EIjq%t`oo;gbWOmlL~ew72=) zT>4l@UWAqzP0W>VBCn7a$#+*0t)%$a0(1^a(Da>zrt5Rb9}%YklaJwn86&sJ$E(G< z_ei5>J3M!8Hj;CU0VnhDKj7b!-DD?ufE*{Uks|yi{%f2hFOVlz5)WX$td{WlGh$>; zoC|mZp~-M$R*VJ0A<H%*=woNX-bv9H3rD<j)8UZhmre(KQgTm08QPhAGv9^`$)W<Y zY0D<kgv9ySw0BO5%m$)Su<uWvD=0^n<ne+g9eJM-5*`yK?<YK#DtM}5${GlV=&*C* zqIW(jMSKy-ABZ(1Zx-;|Ea-WL{F?kT`8jzBe}nuvZpT)vCtpGzpy$y~R?7^Jp}1MM zwN`cjxV5k=byZDDKi~oAfz$GIV&NGnR9>O0u0@$iY35`$>#C|zI5y{vK|?>vT+3t= z+8>R9BcIa7!d7r++N!Irmu<8%#jbR9wD1{3Ea-YNw`ivUx8dzL7rl>ujIOUF9z^jn zi;me^tHxb}e`~ppscMq@*W<UCbxd{bhWN|Mz^-~dev65ktix}m;ixDDS^Zj>f`4_S z<ZqDv9ZIcT<Q*W^>jX6=6IU(Q%28<ni7*&XFn9ugvXU6V1xuyKz<51*+btc*2U}UU ztC{7SIlGl}wQ;sKo4dtsx3dms*K{NhjRnL|cSMRxp;<8y?DVDjn*9+e`HR-N<R>kQ zIvDnHBJs$h2HmQT{WQ0bZVN<iQ#kjL+t-l+eMs=<$hAtHj`ZVw$=uFp9sW!FP5cCY z41X0rg1>+t!V5TpgLo33#N&7v58?xO-%8>s6wDzAS^DMnpxpM+w)}wH_R8&k+M0Xh zwp(tyXj`^VZas3_Nn6uix!ohT9keaoEw}A*+qU}bzGJAE%rZK1fFTFSFUX_hIspzi zNn;%uK-`pTX7aQc;T9H8`J*AHpF8Cg7Q-=tU2rV0J{O&MeIil4`e<)NSEwTw8S*yy z0eOmCB$KczQBu2&c#w_d<dECknvlC~PB)iB#mUbL6{~+Yw6CtxKwe<T&)}^1AMy@) zliY+ob_0%>7sxI09=Q8cl6>V%4(#ez&h&up4TgM5eoKBsJ|MpW{r@0uke`wtlUK<N z(ESUNqa%69u=?sBx9KYlXr2MV*T@l4i2nr^U>vt#jBcVQ(fmr{INJ3`hCF7o2^mqI z$9Xy&@RO1hXoV+sM;q^K;T$%%gI|5}q7N4m@)2F{6ZB*wAHj%k6Wr`s{rF3Tm4|mQ z-(%qaP3B$ZHY!35s1qGVK6DygM9b)}&@1S5^bsbw95>_Lu<|GIgZK)53I7DYi$5hr za2W0(!(^6RB3EEFZj%2_B!a88-+2=y-!fZQ2cPXihx1|RI_5cs`4RIr^9hVmhuYCm zG=b*P!{~8z75zPW1IEb1wYU@Ck7M{U@b6{(GyEaRAyvdd`iY-BNS4WWsek6VL_)HZ z>kx-5ekmx$B<)$-pZw0%5p$UiHKWbGX)!b<c_+hRe>mcoBD<2-XU+F-)}igFNc8*R zc!HhVQldlks7Te7yIPel)w$fo7VA(gDyCL*k+6T>7voBGs1X&bc50_B`Rp?lMI}@% za}e8;OV5;-n{}uam8d>5LT7U5nTniB9THG-^EGqaEq~pj>ZxvhVoaI}M-~NnUZvE% za!e`*Oq)fAcvPxF(MsACiRw)&*=^FHCS=OElBd}bm*Z;6awSXlD1t0cvS6<qhcfCY zbJTarvn^BIWcocyzv?B^zfVSE7X5LEZ|3dTB@b#=-Dm{eiXauGj75(;;c|**%?oS4 z9N2Qz*BW83BJ@jfnNMq^2V`^>>QwW3>60;7REHYDK_l?p#EdfJU&(VM0ehpL)Z*Lt zHT*5$wg>Cs&Gk(bM!Qil^A>ZJxdf`Izr^E}@n%mBgIb04(d!aJR%JNr@X+vKtFrn# zJ3+mXU$X*K7XWJ&Tlaz@*KS(BhE!SUwMJuc`fj$$Yuma<u~6rz@JE(tpeVhHL1PCP zG&$DNDg{QX%IyYKzN0h?4V_WkCuQN0;V4t(+7+8DJc?*NAf>;l4NRI{>-NkVNQ$yc z0Oi%6uCRl3MNBUPC;Bp(Aa(e^@VD_4X3=dpsm`NL<}>DRnTMI)L}Gh<@Ae#K>t2tV zeXuNR({jX{+PT^T+S$gt+E~6taN6v4w{06ZsMk2)z(D}s?7@v}+%BGVu$@&oOm({l zvX{7;Q^LRwFQkoOFIYKQo6YWJ?GAP$7cRGxce^?(Q!X+d>{<`tk8|5x8+mZDcFx6j zZUql<8AZkgpLXG3-JHt{di+K%9IV~Va-9|HLD)1NIF9v#n+>PI3xdPO#T^!KQBOmW z0ddy|@+^%YU!KEM)q7G&9)$0%Mx0=`I|PSW9xIdOv25Ml?O4GE3wC`9qboU(cs;=| zPoN8U6@N@tASJv0ULG>zO`c<$%*R`ozwbho$!*`ryZ*y!RD-U)r8BJRo=18k4l?)_ zBwtnZUn21aM)pMFcc?vC{3l;r&Ud2o*KgIJ;vAaDZPHyYGN9iQrA-_*JX)!PVH+5x z0kOCVze;=wPnqw0j+kq1Z$}rZW8y?m%FHM0t#XI%?yjRfp5Y$ruxH<)9&61Vw35H9 zcPxi%QQ<bHz0o>2G;AF_e(2CHYmF})nhZo{C4Y@|A{-7TAG*9F$?m8U8<!R)a?OH( zE);AGN<MbhjVAZ@+yj!VL=n}=-)gLoB*GCAY2ch$*px#c*;!u`UpJ5<tFboJ1pGCP zjZ2ljT=PIXTIvXd{L;c5)V-41#d4zGeh2xG3cPQyyXS;9mhr5WNV}=A4h?G6va~2R znpb!!z@;*OuDM@8OOB24$${_+c9C`aMQ$CuxGX<>CwS_(*-q{NP7QfOjq;^&sX|ha z-63+aTHGt}E`hf@ee0mf@*{s3GS$bukSS{`$Bm|{jE-5&z3+buR&{o))9+=Ny|@HF znMiP>7Y<M6nt2{w>P>T$<}jMXC-tQ1I=Y^nYmCyHC4TqKqTNR`(qe|kZZ?a@(U>$> zV~x&=!C)X1v(AU2fho9f(3;0s*nfd3D%NbyxF5P=(R<m3gHl8c`J{X3`6GeJm_|o4 zP*9A<ydYZxA^FA2RrEB7H!c~ba?L$FT53-7cTLdJn_`2I53i@kovbt5&}hWz)lAlY zI)C4Sd^&yMn7s0t*Nrw^-MDuod;K?7QV$j@EQmBEC2!U5luu9g4<|%ues)5NB){_I zisaY7Vllx{J1fPe!*I@~PCI*J>a<<`zgsy5gAREa<VC;7KPNA)B!*CYseDn{nt~kk zjgh9~zOndtcIY=&O8ZcvuPVWzlXW+iwE#=^$K|beUX&L=&9}6<)&^bU*`eP+LmT(x z2lb5v_SN!I4Kf$dca>UpC2#$@tnRcJoCi*%f@yQmJqPc!#-;m~47p~GL+5?Vk2#?x zynp$7PV{sxm31u{lb>C&F2CtQo0p$<p)FOPr^P`&HZf4jew)mbZc>b2$A5<BaSt}F zBtAj$mVQV=Ibnm^R+AQM%8izTioTi@Yb2VSSkv3k2l`F?+Hxk95XUvDt^=Sdbd{?) z`kJyx11BR<>Ht@-VyI%uh~?8;gDWFZ47vSru;e>7s^C%x*V?r9fC<-bR#9roL=8f@ zSFM;@yA=Z!UA93yRbpu^8oR)v$pHmwc73WASz6WReV_`}n~H{>D$4ss14dK5Q99_c zo*~~S=SdgQ;oKYe67I$NmBfcA-mw#kgLb(%fXiLTQl07S*v0ak9rA0aAk-Tx_43CJ z<wc9Yx_QCgv15&SrbbAcb8F1GHlAw{+#Jsd9r5}#_L&MHWzP%Q_Po$$=UP|?Z{wXE zb!*Hs)j`^P4SFz#%E$qKtk6*lT*#VzrZ!01+tv(kYqQ&0Y<9Re<vVK9=5Vo{T_JHS zXY)eMl!aa?%<L^TD0}R#j_RCvYIwyyGka&sJ_~-zp5xtiUg)r{89p=nyPLCifwQ|P zF}|g<>-7k?G4TJNRuU~ZexWNTXW){_bFaJ3f!^`p;ON-Gm~H&j`0yAv)IG)zo;`kc zY<6U3d^k8ec=q7*_-G$LaBAx8z^TE&!0^$TfwOb2zL0-Tn%%!RzF&w=*!*)7LBS@D zj_`e_sBAFKj-S{!IX)YVj-MC^425FCp{|2L>A=y&u@PZr?8MP&syKP<Ou#?8KPrwM zo%Z*R%$(o{6}#U3?AWnBr^K^Sa0Y#zz|gFNo9I2GK7;SH4o7`Yj-41`#r*>3vyCjC zu<e<i_SvQaLxDbSynFxb_-vnJpu2}1Kjk|+G(5%*^bVXE7(KE$H0-erjP^OG&QSN1 zZE$!xI50dOOup#$#plMm`kZ~IdIFP2IyzG9S%2G0<6n!*81g>(C0y11fUJ_I$>Zb^ z@(`ILC&^*bLj=-DDu@w(hJS;9h5sG@5H2mR;-~P}@J0Lp_Tf?7kN3dcEp?OrTlxCS zC|=Nz!&vmjqv45BDUb)7+@v@9BB9Ab*s$C6#$%_Y5GS}@(*>{rL2r0EJS#@?VLO@i zMt>wc7tOC#zKdMYX`npU8xM;S(a$cFROc`|^~P>76p(`6qvH5@IAR1UR_Tp!n+V6z z;#^@IE-he~17Rt64C){$5AGlULAP`^V1%m$P^H((F)11|!ZiUr`lYBZ5Dbb2sQF>2 zelY?$W~czlcR)8Oh9J+>Lm|FJZ;S<I^P#q;IA?4ROc|kM276yP5?Zu7oCRgFMSNyz z;<UJ6G|9p#DHQchOOe7-8P!2CbU+G40yFtrWIsU|Y&Ne%MmQ9d4iy&5Y7`wUcZ9;C ztY^1jvy5>PemH|PH6Q9<05ii)ofZp?isp2D9*R&Hv%nz3VHYM@n?Jum)|5h_@Iqm} ztQi$U{<CMK$kgUMsQh7F=HW-Vkw9cVTA-ILDF6qTmn(y#F)Kmv6;=5o;-c9;Df#WZ z-$iSRT0F^+Yf$;Wg<m5_b`wGZ_-Q;z{tchS50hO$mn(27P(ywPKPSFKHj~Sc7(5OH z^Wq!iAIUiqfuAWV$bXVs_`Q`xIgaPU&tVFC8uY}3D0g-m$##@x&JL=f@TNYGn32qy zI{6#rOl<+#id4qb6qB7Oi!ap%QiW1%u~NTjs%)pjb;p4z+o)2CCsp(z#ga<uT;<4C zibG*YMK0NbfFBka1!YG$wMucrOf?l^l+peaElhO$G$~4{aWGCfv4ujRj3}WRX+9Kd zpWH<hi^_$~)K+BzwU}0EV5B1}Brs4FnF0mWO_~7tg`^r~mfw*_O_bHwQy4T3xw*uY aM^|3m>-3kmlkgdU&ms8qXRc`8CjSrbI1@Vn delta 1498 zcmZWpeQZ-z6o2RZUf0jDer)R)18O$|WUO1e4OTF^F^D2qf-p$HQ0rQ{DqCk;z=b~? z5)&huusuRUBFKP<K{kaKnM83a;vWN<Ls2noF&YdbAZQesQ{sL5h%?^%&b#-Vd(Qct zd+xcnwKb#lw!ACfF1;j4Qb5oWK`dxX+gzU}E%`~W6RZWFioX<SYtB<`*$+X#^a;V% zKCWEAJQHC=TdcuIH_fKoa8+kzVwPm$0V5vdKhcU0@GR<Z5mp|+VLmHd^sq8u@{w7w znw>KCO3t<#hcky!O5vwNP0@I;F&0gPQn7ebGFPcH7b_2#^ZX9nkjxsCXt}xY($-L- zxjEDl+?<Rg>JyQ0ETwZ~pqN6NQw_o9NTM;8ObQo%rQcj`cko&XKjR#}!)e}+1K6p$ zEqh3*HoT>-ozh8g@ES#LouzsWvsqnZe}@cLG^Dw>A_DFQ6)XFWx=!R#wiW~Pu!IB; zi=~^a40~G4+s$N=f;GmOQ;U^GPg&`_k}|*eT;BN$yj2Uleov*hvfN)@+mMJQQ?XFf z;zT4FX=)6`HdTicp%&$mr|4jr;ba5J@*%lEhM&6>eRWcVQ^9K2qE)290__s6pk1{t zu7U_Xpte7pkWIj02|wTr4vTp9K%RjbN^gi!zWT|EMMe2$^ho#yBlsOZVgUUj31`uR zTNo1R9Z-6<E)hDt68^#;_!T#CP3R5cGQL6|dWFt0sJ+`381l{3A)yz$u@Y1GJipBA z*uzZy)FHy$L2Ac~^=x6>(ehRz@b0L#f+48GJIw_?Cl^Xw$Q8VlH*k`7@*!6FGrr8% zM2%SB#zL&dMr^|_ypH2yFW(EFH%a~I%>jDUBplvHIT8mr#9R4Q?%?;hkFWAQIN`w~ zcnZ&<4M*`IF5w2xXBS)PZ@Nz3(i!Tay|kTTw1Rw;qj(MHl<KbOx&oQ}q-33NPOF+K zQ#m<8;c&1y5f5*!Pt}J~k!U>8GGF<nGq1!cQz_Z&8$@A7Ce>PHwoG%#u9^K?fECKy zo%zq(#+Aq2`D`*3l5G-z*DlljWDQ3)MN*MqD*jBQsccL%ZaFF{&5~&*Sv9*+-jgd+ z31y92ZH&jm@kBV1C>axvTMDs$Og>jVeYBRQ=E>xx%t=P$QO!~=99!eg6q(JWJ_%pq zU6H{?EJGoW@I`SvDXw7y^@(HXB(?8&Wx%fIs3eLfEz(^ilK%!r#o|itjxz1jS(t_- z8saasF65V~`!xeOS$h@qvW^7MVr~8#PG*yAvB-2#qJwmm5AZFa-cA`ct1_H*rRk5? zQ-LyLzp;DJL~iQ7<tCfXo{7&T!YK)-&^6XYT^_+4JL#kxnyy_TXT`=yxS~8<C6LMm z{iit;uVF^JMV>;qE8(u##b_5!&SGKFgzB`3$>^x%W~}LvW7Hr_xGtg?l*H{A#MfFE z4$i}8#&qK(^xRP^<Ak*~YQAJPN^Im;um$gn9S>7_lbd#!wnsPUon9}!(2~BoPL$NL wbk=%0Vq3A=6{uUj+*KD?y0UJ`oZ6srZ=WkYu%6slUi;((la=lJ|1<d5KW6fnN&o-= diff --git a/www/web/warpzone/settings.py b/www/web/warpzone/settings.py index 4dfe53e..e01782d 100644 --- a/www/web/warpzone/settings.py +++ b/www/web/warpzone/settings.py @@ -194,7 +194,7 @@ LOGGING = { 'disable_existing_loggers': False, 'handlers': { 'file': { - 'level': 'ERROR', + 'level': 'INFO', 'class': 'logging.FileHandler', 'filename': LOG_PATH+'/error.log', }, @@ -202,17 +202,18 @@ LOGGING = { 'loggers': { 'django': { 'handlers': ['file'], - 'level': 'ERROR', + 'level': 'INFO', 'propagate': True, }, 'django_auth_ldap': { 'handlers': ['file'], - 'level': 'ERROR', + 'level': 'INFO', 'propagate': True, }, }, } + STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, "static") -- GitLab