mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-27 16:14:01 +00:00
Merge remote-tracking branch 'torchbox/master' into scheduled-publishing
Conflicts: wagtail/wagtailadmin/edit_handlers.py wagtail/wagtailadmin/views/pages.py wagtail/wagtailcore/models.py wagtail/wagtailcore/tests.py
This commit is contained in:
commit
6c54fc55d1
186 changed files with 8815 additions and 6676 deletions
|
|
@ -12,7 +12,7 @@ services:
|
|||
# Package installation
|
||||
install:
|
||||
- python setup.py install
|
||||
- pip install psycopg2 pyelasticsearch elasticutils==0.8.2 wand
|
||||
- pip install psycopg2 pyelasticsearch elasticutils==0.8.2 wand embedly
|
||||
- pip install coveralls
|
||||
# Pre-test configuration
|
||||
before_script:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,27 @@
|
|||
Changelog
|
||||
=========
|
||||
|
||||
0.4 (xx.xx.20xx)
|
||||
~~~~~~~~~~~~~~~~
|
||||
* Added 'original' as a resizing rule supported by the 'image' tag
|
||||
* Hallo.js updated to version 1.0.4
|
||||
* Snippets are now ordered alphabetically
|
||||
* Removed the "More" section from the admin menu
|
||||
* Added pagination to page listings in admin
|
||||
* Support for setting a subpage_types property on page models, to define which page types are allowed as subpages
|
||||
* Added a new datetime picker
|
||||
* Added styleguide
|
||||
* Aesthetic improvements to preview experience
|
||||
* Fix: Animated GIFs are now coalesced before resizing
|
||||
* Fix: Wand backend clones images before modifying them
|
||||
* Fix: Admin breadcrumb now positioned correctly on mobile
|
||||
|
||||
0.3.1 (03.06.2014)
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
* Fix: When constructing dummy requests for pages with no routable URL, fall back on a hostname from ALLOWED_HOSTS and finally 'localhost', to avoid 'Invalid HTTP_HOST header' errors on preview when DEBUG=False.
|
||||
* Fix: Ensure that url_path is populated when previewing a newly created page, to avoid unnecessarily taking the above fallback.
|
||||
* Fix: Deleting an item from an InlinePanel, then generating a validation error on saving, no longer causes the deleted item to confusingly reappear with an error of its own.
|
||||
|
||||
0.3 (28.05.2014)
|
||||
~~~~~~~~~~~~~~~~
|
||||
* Added toolbar to allow logged-in users to add and edit pages from the site front-end
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ Contributors
|
|||
* Ben Margolis
|
||||
* Tom Talbot
|
||||
* Jeffrey Hearn
|
||||
* Robert Clark
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@ For Front End developers
|
|||
Overview
|
||||
========================
|
||||
|
||||
This page is aimed at non-Django-literate Front End developers.
|
||||
|
||||
Wagtail uses Django's templating language. For developers new to Django, start with Django's own template documentation:
|
||||
https://docs.djangoproject.com/en/dev/topics/templates/
|
||||
|
||||
|
|
@ -75,7 +73,7 @@ Images uploaded to Wagtail by its users (as opposed to a developer's static file
|
|||
|
||||
Unlike other CMS, adding images to a page does not involve choosing a "version" of the image to use. Wagtail has no predefined image "formats" or "sizes". Instead the template developer defines image manipulation to occur *on the fly* when the image is requested, via a special syntax within the template.
|
||||
|
||||
Images from the library **must** be requested using this syntax, but a developer's static images can be added via conventional means e.g ``img`` tags. Only images from the library can be manipulated on the fly.
|
||||
Images from the library must be requested using this syntax, but a developer's static images can be added via conventional means e.g ``img`` tags. Only images from the library can be manipulated on the fly.
|
||||
|
||||
Read more about the image manipulation syntax here :ref:`image_tag`.
|
||||
|
||||
|
|
@ -84,7 +82,7 @@ Read more about the image manipulation syntax here :ref:`image_tag`.
|
|||
Template tags & filters
|
||||
========================
|
||||
|
||||
In addition to Django's standard tags and filters, Wagtail provides some of it's own, which can be ``load``-ed `as you would any other <https://docs.djangoproject.com/en/dev/topics/templates/#custom-tag-and-filter-libraries>`_
|
||||
In addition to Django's standard tags and filters, Wagtail provides some of its own, which can be ``load``-ed `as you would any other <https://docs.djangoproject.com/en/dev/topics/templates/#custom-tag-and-filter-libraries>`_
|
||||
|
||||
|
||||
.. _image_tag:
|
||||
|
|
@ -96,7 +94,7 @@ The ``image`` tag inserts an XHTML-compatible ``img`` element into the page, set
|
|||
|
||||
The syntax for the tag is thus::
|
||||
|
||||
{% image [image] [method]-[dimension(s)] %}
|
||||
{% image [image] [resize-rule] %}
|
||||
|
||||
For example:
|
||||
|
||||
|
|
@ -110,16 +108,20 @@ For example:
|
|||
<!-- or a square thumbnail: -->
|
||||
{% image self.photo fill-80x80 %}
|
||||
|
||||
In the above syntax ``[image]`` is the Django object refering to the image. If your page model defined a field called "photo" then ``[image]`` would probably be ``self.photo``. The ``[method]`` defines which resizing algorithm to use and ``[dimension(s)]`` provides height and/or width values (as ``[width|height]`` or ``[width]x[height]``) to refine that algorithm.
|
||||
In the above syntax ``[image]`` is the Django object refering to the image. If your page model defined a field called "photo" then ``[image]`` would probably be ``self.photo``. The ``[resize-rule]`` defines how the image is to be resized when inserted into the page; various resizing methods are supported, to cater for different usage cases (e.g. lead images that span the whole width of the page, or thumbnails to be cropped to a fixed size).
|
||||
|
||||
Note that a space separates ``[image]`` and ``[method]``, but not ``[method]`` and ``[dimensions]``: a hyphen between ``[method]`` and ``[dimensions]`` is mandatory. Multiple dimensions must be separated by an ``x``.
|
||||
Note that a space separates ``[image]`` and ``[resize-rule]``, but the resize rule must not contain spaces.
|
||||
|
||||
The available ``method`` s are:
|
||||
The available resizing methods are:
|
||||
|
||||
.. glossary::
|
||||
``max``
|
||||
(takes two dimensions)
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
{% image self.photo max-1000x500 %}
|
||||
|
||||
Fit **within** the given dimensions.
|
||||
|
||||
The longest edge will be reduced to the equivalent dimension size defined. e.g A portrait image of width 1000, height 2000, treated with the ``max`` dimensions ``1000x500`` (landscape) would result in the image shrunk so the *height* was 500 pixels and the width 250.
|
||||
|
|
@ -127,6 +129,10 @@ The available ``method`` s are:
|
|||
``min``
|
||||
(takes two dimensions)
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
{% image self.photo min-500x200 %}
|
||||
|
||||
**Cover** the given dimensions.
|
||||
|
||||
This may result in an image slightly **larger** than the dimensions you specify. e.g A square image of width 2000, height 2000, treated with the ``min`` dimensions ``500x200`` (landscape) would have it's height and width changed to 500, i.e matching the width required, but greater than the height.
|
||||
|
|
@ -134,27 +140,45 @@ The available ``method`` s are:
|
|||
``width``
|
||||
(takes one dimension)
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
{% image self.photo width-640 %}
|
||||
|
||||
Reduces the width of the image to the dimension specified.
|
||||
|
||||
``height``
|
||||
(takes one dimension)
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
{% image self.photo height-480 %}
|
||||
|
||||
Resize the height of the image to the dimension specified..
|
||||
|
||||
``fill``
|
||||
(takes two dimensions)
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
{% image self.photo fill-200x200 %}
|
||||
|
||||
Resize and **crop** to fill the **exact** dimensions.
|
||||
|
||||
This can be particularly useful for websites requiring square thumbnails of arbitrary images. e.g A landscape image of width 2000, height 1000, treated with ``fill`` dimensions ``200x200`` would have it's height reduced to 200, then it's width (ordinarily 400) cropped to 200.
|
||||
This can be particularly useful for websites requiring square thumbnails of arbitrary images. For example, a landscape image of width 2000, height 1000, treated with ``fill`` dimensions ``200x200`` would have its height reduced to 200, then its width (ordinarily 400) cropped to 200.
|
||||
|
||||
**The crop always aligns on the centre of the image.**
|
||||
|
||||
.. Note::
|
||||
Wagtail *does not allow deforming or stretching images*. Image dimension ratios will always be kept. Wagtail also *does not support upscaling*. Small images forced to appear at larger sizes will "max out" at their their native dimensions.
|
||||
``original``
|
||||
(takes no dimensions)
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
{% image self.photo original %}
|
||||
|
||||
Leaves the image at its original size - no resizing is performed.
|
||||
|
||||
.. Note::
|
||||
Wagtail does not make the "original" version of an image explicitly available. To request it, it's suggested you rely on the lack of upscaling by requesting an image much larger than it's maximum dimensions. e.g to insert an image who's dimensions are uncertain/unknown at it's maximum size, try: ``{% image self.image width-10000 %}``. This assumes the image is unlikely to be larger than 10000px wide.
|
||||
Wagtail does not allow deforming or stretching images. Image dimension ratios will always be kept. Wagtail also *does not support upscaling*. Small images forced to appear at larger sizes will "max out" at their their native dimensions.
|
||||
|
||||
|
||||
.. _image_tag_alt:
|
||||
|
|
@ -192,6 +216,32 @@ Only fields using ``RichTextField`` need this applied in the template.
|
|||
.. Note::
|
||||
Note that the template tag loaded differs from the name of the filter.
|
||||
|
||||
Responsive Embeds
|
||||
-----------------
|
||||
|
||||
Wagtail embeds and images are included at their full width, which may overflow the bounds of the content container you've defined in your templates. To make images and embeds responsive -- meaning they'll resize to fit their container -- include the following CSS.
|
||||
|
||||
.. code-block:: css
|
||||
|
||||
.rich-text img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.responsive-object {
|
||||
position: relative;
|
||||
}
|
||||
.responsive-object iframe,
|
||||
.responsive-object object,
|
||||
.responsive-object embed {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
||||
Internal links (tag)
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,26 @@ Coding guidelines
|
|||
* PEP8. We ask that all Python contributions adhere to the `PEP8 <http://www.python.org/dev/peps/pep-0008/>`_ style guide, apart from the restriction on line length (E501). The `pep8 tool <http://pep8.readthedocs.org/en/latest/>`_ makes it easy to check your code, e.g. ``pep8 --ignore=E501 your_file.py``.
|
||||
* Tests. Wagtail has a suite of tests, which we are committed to improving and expanding. We run continuous integration at `travis-ci.org/torchbox/wagtail <https://travis-ci.org/torchbox/wagtail>`_ to ensure that no commits or pull requests introduce test failures. If your contributions add functionality to Wagtail, please include the additional tests to cover it; if your contributions alter existing functionality, please update the relevant tests accordingly.
|
||||
|
||||
Styleguide
|
||||
~~~~~~~~~~
|
||||
|
||||
Developers working on the Wagtail UI or creating new UI components may wish to test their work against our Styleguide, which is provided as the contrib module "wagtailstyleguide".
|
||||
|
||||
To install the styleguide module on your site, add it to the list of ``INSTALLED_APPS`` in your settings:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
INSTALLED_APPS = (
|
||||
...
|
||||
'wagtail.contrib.wagtailstyleguide',
|
||||
...
|
||||
)
|
||||
|
||||
At present the styleguide is static: new UI components must be added to it manually, and there are no hooks into it for other modules to use. We hope to support hooks in the future.
|
||||
|
||||
The styleguide doesn't currently provide examples of all the core interface components; notably the Page, Document, Image and Snippet chooser interfaces are not currently represented.
|
||||
|
||||
|
||||
Translations
|
||||
~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ You can explicitly link ``Page``-derived models together using the ``Page`` mode
|
|||
Snippets
|
||||
--------
|
||||
|
||||
Snippets are not subclasses, so you must include the model class directly. A chooser is provided which takes the field name snippet class.
|
||||
Snippets are vanilla Django models you create yourself without a Wagtail-provided base class. So using them as a field in a page requires specifying your own ``appname.modelname``. A chooser, ``SnippetChooserPanel``, is provided which takes the field name and snippet class.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
|
@ -248,6 +248,12 @@ Full-Width Input
|
|||
Use ``classname="full"`` to make a field (input element) stretch the full width of the Wagtail page editor. This will not work if the field is encapsulated in a ``MultiFieldPanel``, which places its child fields into a formset.
|
||||
|
||||
|
||||
Titles
|
||||
------
|
||||
|
||||
Use ``classname="title"`` to make Page's built-in title field stand out with more vertical padding.
|
||||
|
||||
|
||||
Required Fields
|
||||
---------------
|
||||
|
||||
|
|
@ -264,19 +270,11 @@ Without a panel definition, a default form field (without label) will be used to
|
|||
.. _Django model field reference (editable): https://docs.djangoproject.com/en/dev/ref/models/fields/#editable
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
MultiFieldPanel
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
The ``MultiFieldPanel`` groups a list of child fields into a fieldset, which can also be collapsed into a heading bar to save space.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
BOOK_FIELD_COLLECTION = [
|
||||
|
|
@ -294,8 +292,7 @@ MultiFieldPanel
|
|||
# ...
|
||||
]
|
||||
|
||||
|
||||
|
||||
By default, ``MultiFieldPanel`` s are expanded and not collapsible. Adding the classname ``collapsible`` will enable the collapse control. Adding both ``collapsible`` and ``collapsed`` to the classname parameter will load the editor page with the ``MultiFieldPanel`` collapsed under its heading.
|
||||
|
||||
|
||||
.. _inline_panels:
|
||||
|
|
@ -303,7 +300,55 @@ MultiFieldPanel
|
|||
Inline Panels and Model Clusters
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The ``django-modelcluster`` module allows for streamlined relation of extra models to a Wagtail page.
|
||||
The ``django-modelcluster`` module allows for streamlined relation of extra models to a Wagtail page. For instance, you can create objects related through a ``ForeignKey`` relationship on the fly and save them to a draft revision of a ``Page`` object. Normally, your related objects "cluster" would need to be created beforehand (or asynchronously) before linking them to a Page.
|
||||
|
||||
Let's look at the example of adding related links to a ``Page``-derived model. We want to be able to add as many as we like, assign an order, and do all of this without leaving the page editing screen.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from wagtail.wagtailcore.models import Orderable, Page
|
||||
from modelcluster.fields import ParentalKey
|
||||
|
||||
# The abstract model for related links, complete with panels
|
||||
class RelatedLink(models.Model):
|
||||
title = models.CharField(max_length=255)
|
||||
link_external = models.URLField("External link", blank=True)
|
||||
|
||||
panels = [
|
||||
FieldPanel('title'),
|
||||
FieldPanel('link_external'),
|
||||
]
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
||||
# The real model which combines the abstract model, an
|
||||
# Orderable helper class, and what amounts to a ForeignKey link
|
||||
# to the model we want to add related links to (BookPage)
|
||||
class BookPageRelatedLinks(Orderable, RelatedLink):
|
||||
page = ParentalKey('demo.BookPage', related_name='related_links')
|
||||
|
||||
class BookPage( Page ):
|
||||
# ...
|
||||
|
||||
BookPage.content_panels = [
|
||||
# ...
|
||||
InlinePanel( BookPage, 'related_links', label="Related Links" ),
|
||||
]
|
||||
|
||||
The ``RelatedLink`` class is a vanilla Django abstract model. The ``BookPageRelatedLinks`` model extends it with capability for being ordered in the Wagtail interface via the ``Orderable`` class as well as adding a ``page`` property which links the model to the ``BookPage`` model we're adding the related links objects to. Finally, in the panel definitions for ``BookPage``, we'll add an ``InlinePanel`` to provide an interface for it all. Let's look again at the parameters that ``InlinePanel`` accepts:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
InlinePanel( base_model, relation_name, panels=None, label='', help_text='' )
|
||||
|
||||
``base_model`` is the model you're extending with the cluster. The ``relation_name`` is the ``related_name`` label given to the cluster's ``ParentalKey`` relation. You can add the ``panels`` manually or make them part of the cluster model. Finally, ``label`` and ``help_text`` provide a heading and caption, respectively, for the Wagtail editor.
|
||||
|
||||
For another example of using model clusters, see :ref:`tagging`
|
||||
|
||||
For more on ``django-modelcluster``, visit `the django-modelcluster github project page`_ ).
|
||||
|
||||
.. _the django-modelcluster github page: https://github.com/torchbox/django-modelcluster
|
||||
|
||||
|
||||
.. _extending_wysiwyg:
|
||||
|
|
@ -311,12 +356,237 @@ The ``django-modelcluster`` module allows for streamlined relation of extra mode
|
|||
Extending the WYSIWYG Editor (hallo.js)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Adding hallo.js plugins:
|
||||
https://github.com/torchbox/wagtail/commit/1ecc215759142e6cafdacb185bbfd3f8e9cd3185
|
||||
To inject javascript into the Wagtail page editor, see the :ref:`insert_editor_js` hook. Once you have the hook in place and your hallo.js plugin loads into the Wagtail page editor, use the following Javascript to register the plugin with hallo.js.
|
||||
|
||||
.. code-block:: javascript
|
||||
|
||||
registerHalloPlugin(name, opts);
|
||||
|
||||
hallo.js plugin names are prefixed with the ``"IKS."`` namespace, but the ``name`` you pass into ``registerHalloPlugin()`` should be without the prefix. ``opts`` is an object passed into the plugin.
|
||||
|
||||
For information on developing custom hallo.js plugins, see the project's page: https://github.com/bergie/hallo
|
||||
|
||||
|
||||
Edit Handler API
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Admin Hooks
|
||||
-----------
|
||||
|
||||
On loading, Wagtail will search for any app with the file ``wagtail_hooks.py`` and execute the contents. This provides a way to register your own functions to execute at certain points in Wagtail's execution, such as when a ``Page`` object is saved or when the main menu is constructed.
|
||||
|
||||
Registering functions with a Wagtail hook follows the following pattern:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from wagtail.wagtailadmin import hooks
|
||||
|
||||
hooks.register('hook', function)
|
||||
|
||||
Where ``'hook'`` is one of the following hook strings and ``function`` is a function you've defined to handle the hook.
|
||||
|
||||
.. _construct_wagtail_edit_bird:
|
||||
|
||||
``construct_wagtail_edit_bird``
|
||||
Add or remove items from the wagtail userbar. Add, edit, and moderation tools are provided by default. The callable passed into the hook must take the ``request`` object and a list of menu objects, ``items``. The menu item objects must have a ``render`` method which can take a ``request`` object and return the HTML string representing the menu item. See the userbar templates and menu item classes for more information.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from wagtail.wagtailadmin import hooks
|
||||
|
||||
class UserbarPuppyLinkItem(object):
|
||||
def render(self, request):
|
||||
return '<li><a href="http://cuteoverload.com/tag/puppehs/" ' \
|
||||
+ 'target="_parent" class="action icon icon-wagtail">Puppies!</a></li>'
|
||||
|
||||
def add_puppy_link_item(request, items):
|
||||
return items.append( UserbarPuppyLinkItem() )
|
||||
|
||||
hooks.register('construct_wagtail_edit_bird', add_puppy_link_item)
|
||||
|
||||
.. _construct_homepage_panels:
|
||||
|
||||
``construct_homepage_panels``
|
||||
Add or remove panels from the Wagtail admin homepage. The callable passed into this hook should take a ``request`` object and a list of ``panels``, objects which have a ``render()`` method returning a string. The objects also have an ``order`` property, an integer used for ordering the panels. The default panels use integers between ``100`` and ``300``.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from django.utils.safestring import mark_safe
|
||||
|
||||
from wagtail.wagtailadmin import hooks
|
||||
|
||||
class WelcomePanel(object):
|
||||
order = 50
|
||||
|
||||
def render(self):
|
||||
return mark_safe("""
|
||||
<section class="panel summary nice-padding">
|
||||
<h3>No, but seriously -- welcome to the admin homepage.</h3>
|
||||
</section>
|
||||
""")
|
||||
|
||||
def add_another_welcome_panel(request, panels):
|
||||
return panels.append( WelcomePanel() )
|
||||
|
||||
hooks.register('construct_homepage_panels', add_another_welcome_panel)
|
||||
|
||||
.. _after_create_page:
|
||||
|
||||
``after_create_page``
|
||||
Do something with a ``Page`` object after it has been saved to the database (as a published page or a revision). The callable passed to this hook should take a ``request`` object and a ``page`` object. The function does not have to return anything, but if an object with a ``status_code`` property is returned, Wagtail will use it as a response object. By default, Wagtail will instead redirect to the Explorer page for the new page's parent.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from django.http import HttpResponse
|
||||
|
||||
from wagtail.wagtailadmin import hooks
|
||||
|
||||
def do_after_page_create(request, page):
|
||||
return HttpResponse("Congrats on making content!", content_type="text/plain")
|
||||
hooks.register('after_create_page', do_after_page_create)
|
||||
|
||||
.. _after_edit_page:
|
||||
|
||||
``after_edit_page``
|
||||
Do something with a ``Page`` object after it has been updated. Uses the same behavior as ``after_create_page``.
|
||||
|
||||
.. _after_delete_page:
|
||||
|
||||
``after_delete_page``
|
||||
Do something after a ``Page`` object is deleted. Uses the same behavior as ``after_create_page``.
|
||||
|
||||
.. _register_admin_urls:
|
||||
|
||||
``register_admin_urls``
|
||||
Register additional admin page URLs. The callable fed into this hook should return a list of Django URL patterns which define the structure of the pages and endpoints of your extension to the Wagtail admin. For more about vanilla Django URLconfs and views, see `url dispatcher`_.
|
||||
|
||||
.. _url dispatcher: https://docs.djangoproject.com/en/dev/topics/http/urls/
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from django.http import HttpResponse
|
||||
from django.conf.urls import url
|
||||
|
||||
from wagtail.wagtailadmin import hooks
|
||||
|
||||
def admin_view( request ):
|
||||
return HttpResponse( \
|
||||
"I have approximate knowledge of many things!", \
|
||||
content_type="text/plain")
|
||||
|
||||
def urlconf_time():
|
||||
return [
|
||||
url(r'^how_did_you_almost_know_my_name/$', admin_view, name='frank' ),
|
||||
]
|
||||
hooks.register('register_admin_urls', urlconf_time)
|
||||
|
||||
.. _construct_main_menu:
|
||||
|
||||
``construct_main_menu``
|
||||
Add, remove, or alter ``MenuItem`` objects from the Wagtail admin menu. The callable passed to this hook must take a ``request`` object and a list of ``menu_items``; it must return a list of menu items. New items can be constructed from the ``MenuItem`` class by passing in: a ``label`` which will be the text in the menu item, the URL of the admin page you want the menu item to link to (usually by calling ``reverse()`` on the admin view you've set up), CSS class ``name`` applied to the wrapping ``<li>`` of the menu item as ``"menu-{name}"``, CSS ``classnames`` which are used to give the link an icon, and an ``order`` integer which determine's the item's place in the menu.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from django.core.urlresolvers import reverse
|
||||
|
||||
from wagtail.wagtailadmin import hooks
|
||||
from wagtail.wagtailadmin.menu import MenuItem
|
||||
|
||||
def construct_main_menu(request, menu_items):
|
||||
menu_items.append(
|
||||
MenuItem( 'Frank', reverse('frank'), classnames='icon icon-folder-inverse', order=10000)
|
||||
)
|
||||
hooks.register('construct_main_menu', construct_main_menu)
|
||||
|
||||
|
||||
.. _insert_editor_js:
|
||||
|
||||
``insert_editor_js``
|
||||
Add additional Javascript files or code snippets to the page editor. Output must be compatible with ``compress``, as local static includes or string.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from django.utils.html import format_html, format_html_join
|
||||
from django.conf import settings
|
||||
|
||||
from wagtail.wagtailadmin import hooks
|
||||
|
||||
def editor_js():
|
||||
js_files = [
|
||||
'demo/js/hallo-plugins/hallo-demo-plugin.js',
|
||||
]
|
||||
js_includes = format_html_join('\n', '<script src="{0}{1}"></script>',
|
||||
((settings.STATIC_URL, filename) for filename in js_files)
|
||||
)
|
||||
return js_includes + format_html(
|
||||
"""
|
||||
<script>
|
||||
registerHalloPlugin('demoeditor');
|
||||
</script>
|
||||
"""
|
||||
)
|
||||
hooks.register('insert_editor_js', editor_js)
|
||||
|
||||
.. _insert_editor_css:
|
||||
|
||||
``insert_editor_css``
|
||||
Add additional CSS or SCSS files or snippets to the page editor. Output must be compatible with ``compress``, as local static includes or string.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from django.utils.html import format_html
|
||||
from django.conf import settings
|
||||
|
||||
from wagtail.wagtailadmin import hooks
|
||||
|
||||
def editor_css():
|
||||
return format_html('<link rel="stylesheet" href="' \
|
||||
+ settings.STATIC_URL \
|
||||
+ 'demo/css/vendor/font-awesome/css/font-awesome.min.css">')
|
||||
hooks.register('insert_editor_css', editor_css)
|
||||
|
||||
|
||||
Image Formats in the Rich Text Editor
|
||||
-------------------------------------
|
||||
|
||||
On loading, Wagtail will search for any app with the file ``image_formats.py`` and execute the contents. This provides a way to customize the formatting options shown to the editor when inserting images in the ``RichTextField`` editor.
|
||||
|
||||
As an example, add a "thumbnail" format:
|
||||
|
||||
.. code-block:: python
|
||||
# image_formats.py
|
||||
from wagtail.wagtailimages.formats import Format, register_image_format
|
||||
|
||||
register_image_format(Format('thumbnail', 'Thumbnail', 'richtext-image thumbnail', 'max-120x120'))
|
||||
|
||||
|
||||
To begin, import the the ``Format`` class, ``register_image_format`` function, and optionally ``unregister_image_format`` function. To register a new ``Format``, call the ``register_image_format`` with the ``Format`` object as the argument. The ``Format`` takes the following init arguments:
|
||||
|
||||
``name``
|
||||
The unique key used to identify the format. To unregister this format, call ``unregister_image_format`` with this string as the only argument.
|
||||
|
||||
``label``
|
||||
The label used in the chooser form when inserting the image into the ``RichTextField``.
|
||||
|
||||
``classnames``
|
||||
The string to assign to the ``class`` attribute of the generated ``<img>`` tag.
|
||||
|
||||
``filter_spec``
|
||||
The string specification to create the image rendition. For more, see the :ref:`image_tag`.
|
||||
|
||||
|
||||
To unregister, call ``unregister_image_format`` with the string of the ``name`` of the ``Format`` as the only argument.
|
||||
|
||||
|
||||
Content Index Pages (CRUD)
|
||||
--------------------------
|
||||
|
||||
|
||||
Custom Choosers
|
||||
---------------
|
||||
|
||||
|
||||
Tests
|
||||
-----
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ Wagtail instance available as the basis for your new site:
|
|||
- Install `Vagrant <http://www.vagrantup.com/>`_ 1.1+
|
||||
- Clone the demonstration site, create the Vagrant box and initialise Wagtail::
|
||||
|
||||
git clone git@github.com:torchbox/wagtaildemo.git
|
||||
git clone https://github.com/torchbox/wagtaildemo.git
|
||||
cd wagtaildemo
|
||||
vagrant up
|
||||
vagrant ssh
|
||||
|
|
|
|||
|
|
@ -118,6 +118,8 @@ Will return::
|
|||
tauntaun kennel bed and breakfast
|
||||
|
||||
|
||||
.. _tagging:
|
||||
|
||||
Tagging
|
||||
-------
|
||||
|
||||
|
|
|
|||
|
|
@ -224,10 +224,13 @@ Prerequisites are the Elasticsearch service itself and, via pip, the `elasticuti
|
|||
|
||||
.. code-block:: guess
|
||||
|
||||
pip install elasticutils pyelasticsearch
|
||||
pip install elasticutils==0.8.2 pyelasticsearch
|
||||
|
||||
.. note::
|
||||
The dependency on pyelasticsearch is scheduled to be replaced by a dependency on `elasticsearch-py`_.
|
||||
ElasticUtils 0.9+ is not supported.
|
||||
|
||||
.. note::
|
||||
The dependency on elasticutils and pyelasticsearch is scheduled to be replaced by a dependency on `elasticsearch-py`_.
|
||||
|
||||
The backend is configured in settings:
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# For coverage and PEP8 linting
|
||||
coverage==3.7.1
|
||||
flake8==2.1.0
|
||||
mock==1.0.1
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ if not settings.configured:
|
|||
'wagtail.wagtailsearch',
|
||||
'wagtail.wagtailredirects',
|
||||
'wagtail.wagtailforms',
|
||||
'wagtail.contrib.wagtailstyleguide',
|
||||
'wagtail.tests',
|
||||
],
|
||||
|
||||
|
|
@ -101,7 +102,9 @@ if not settings.configured:
|
|||
),
|
||||
COMPRESS_ENABLED=False, # disable compression so that we can run tests on the content of the compress tag
|
||||
WAGTAILSEARCH_BACKENDS=WAGTAILSEARCH_BACKENDS,
|
||||
WAGTAIL_SITE_NAME='Test Site'
|
||||
WAGTAIL_SITE_NAME='Test Site',
|
||||
LOGIN_REDIRECT_URL='wagtailadmin_home',
|
||||
LOGIN_URL='wagtailadmin_login',
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -18,7 +18,7 @@ except ImportError:
|
|||
|
||||
setup(
|
||||
name='wagtail',
|
||||
version='0.3',
|
||||
version='0.3.1',
|
||||
description='A Django content management system focused on flexibility and user experience',
|
||||
author='Matthew Westcott',
|
||||
author_email='matthew.westcott@torchbox.com',
|
||||
|
|
|
|||
0
wagtail/contrib/wagtailstyleguide/__init__.py
Normal file
0
wagtail/contrib/wagtailstyleguide/__init__.py
Normal file
0
wagtail/contrib/wagtailstyleguide/models.py
Normal file
0
wagtail/contrib/wagtailstyleguide/models.py
Normal file
|
|
@ -0,0 +1,398 @@
|
|||
{% extends "wagtailadmin/base.html" %}
|
||||
{% load wagtailadmin_tags %}
|
||||
{% load compress i18n %}
|
||||
{% load gravatar %}
|
||||
|
||||
{% block extra_css %}
|
||||
{% compress css %}
|
||||
<link rel="stylesheet" href="{{ STATIC_URL }}wagtailadmin/scss/layouts/styleguide.scss" type="text/x-scss" />
|
||||
{% endcompress %}
|
||||
{% endblock %}
|
||||
|
||||
{% block titletag %}{% trans 'Styleguide' %}{% endblock %}
|
||||
{% block bodyclass %}styleguide{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% trans "Styleguide" as title_trans %}
|
||||
{% include "wagtailadmin/shared/header.html" with title=title_trans %}
|
||||
|
||||
<div class="nice-padding">
|
||||
<h2>Contents</h2>
|
||||
<nav>
|
||||
<ul class="unlist">
|
||||
<li><a href="#palette">Colour palette</a></li>
|
||||
<li><a href="#typography">Typography</a></li>
|
||||
<li><a href="#listings">Listings</a></li>
|
||||
<li><a href="#buttons">Buttons</a></li>
|
||||
<li><a href="#dropdowns">Dropdown buttons</a></li>
|
||||
<li><a href="#header">Header</a></li>
|
||||
<li><a href="#forms">Forms</a></li>
|
||||
<li><a href="#editor">Page editor</a></li>
|
||||
<li><a href="#tabs">Tabs</a></li>
|
||||
<li><a href="#breadcrumbs">Breadcrumbs</a></li>
|
||||
<li><a href="#misc">Misc formatters</a></li>
|
||||
<li><a href="#icons">Icons</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<section id="palette">
|
||||
<h2>Colour palette</h2>
|
||||
|
||||
<ul>
|
||||
<li class="color-teal">color-teal</li>
|
||||
<li class="color-teal-darker">color-teal-darker</li>
|
||||
<li class="color-teal-dark">color-teal-dark</li>
|
||||
<li class="color-red">color-red</li>
|
||||
<li class="color-orange">color-orange</li>
|
||||
<li class="color-green">color-green</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li class="color-grey-1">color-grey-1</li>
|
||||
<li class="color-grey-1-1">color-grey-1-1</li>
|
||||
<li class="color-grey-2">color-grey-2</li>
|
||||
<li class="color-grey-3">color-grey-3</li>
|
||||
<li class="color-grey-4">color-grey-4</li>
|
||||
<li class="color-grey-5">color-grey-5</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section id="typography">
|
||||
<h2>Typography</h2>
|
||||
<h1>This is an h1</h1>
|
||||
<h2>This is an h2</h2>
|
||||
<h3>This is an h3</h3>
|
||||
<h4>This is an h4</h4>
|
||||
<h5>This is an h5</h5>
|
||||
<p>This is a paragraph</p>
|
||||
|
||||
<ul>
|
||||
<li>These are</li>
|
||||
<li>items in an</li>
|
||||
<li>unordered list</li>
|
||||
</ul>
|
||||
|
||||
<ol>
|
||||
<li>These are</li>
|
||||
<li>items in an</li>
|
||||
<li>ordered list</li>
|
||||
</ol>
|
||||
|
||||
<code>This is an example of code</code>
|
||||
|
||||
</section>
|
||||
|
||||
<section id="listings">
|
||||
<h2>Listings</h2>
|
||||
|
||||
<h3><code>table</code> listing</h3>
|
||||
<table class="listing">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Heading 1</th>
|
||||
<th>Heading 2</th>
|
||||
<th>Heading 3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="title">
|
||||
<h2>TD with title class</h2>
|
||||
</td>
|
||||
<td>Regular listing TD</td>
|
||||
<td>Regular listing TD</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">
|
||||
<h2>TD with title class</h2>
|
||||
</td>
|
||||
<td>Regular listing TD</td>
|
||||
<td>Regular listing TD</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h3><code>ul</code> listing</h3>
|
||||
<ul class="listing">
|
||||
<li>List item</li>
|
||||
<li>List item</li>
|
||||
<li>List item</li>
|
||||
</ul>
|
||||
|
||||
<h3>Listings used for choosing a list item</h3>
|
||||
<table class="listing chooser">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Heading 1</th>
|
||||
<th>Heading 2</th>
|
||||
<th>Heading 3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="can-choose">
|
||||
<td class="title">
|
||||
<h2><a href="#">TD with title class</a></h2>
|
||||
</td>
|
||||
<td>Regular listing TD</td>
|
||||
<td>Regular listing TD</td>
|
||||
</li>
|
||||
<tr class="can-choose">
|
||||
<td class="title">
|
||||
<h2>TD with title class</h2>
|
||||
</td>
|
||||
<td>Regular listing TD</td>
|
||||
<td>Regular listing TD</td>
|
||||
</li>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section id="buttons">
|
||||
<h2>Buttons</h2>
|
||||
|
||||
<div href="" class="button">button</div>
|
||||
|
||||
<div href="" class="button button-secondary">button-secondary</div>
|
||||
|
||||
<div href="" class="button yes">yes</div>
|
||||
|
||||
<div href="" class="button no">no / serious</div>
|
||||
|
||||
<div href="" class="button bicolor icon icon-plus">bicolor with icon</div>
|
||||
|
||||
<div href="" class="button button-small">button-small</div>
|
||||
|
||||
<div href="" class="button bicolor button-small icon icon-plus">bicolo button-small</div>
|
||||
|
||||
<div href="" class="button button-secondary no">mixed 1</div>
|
||||
|
||||
<div href="" class="button no bicolor icon icon-cog">mixed 2</div>
|
||||
|
||||
<p>Buttons must have interaction possible (i.e be an input or button element) to get a suitable hover cursor</p>
|
||||
|
||||
<button>button</button>
|
||||
|
||||
<button class="bicolor icon icon-plus">bicolor with icon</button>
|
||||
</section>
|
||||
|
||||
<section id="dropdowns">
|
||||
<h2>Dropdown buttons</h2>
|
||||
|
||||
<div class="row">
|
||||
<div class="col3">
|
||||
<div class="dropdown dropdown-button match-width">
|
||||
<input type="button" value="drop down" class="button" />
|
||||
<div class="dropdown-toggle icon icon-arrow-down"></div>
|
||||
<ul role="menu">
|
||||
<li><a href="#">items should not exceed button width</a></li>
|
||||
<li><a href="#">item 2</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col3">
|
||||
<div class="dropdown dropdown-button">
|
||||
<div class="button">drop down</div>
|
||||
<div class="dropdown-toggle icon icon-arrow-down"></div>
|
||||
<ul role="menu">
|
||||
<li><a href="#">Items in this list do not match button width</a></li>
|
||||
<li><a href="#">item 2</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col3">
|
||||
<div class="dropdown dropup dropdown-button match-width">
|
||||
<input type="button" value="drop up" class="button" />
|
||||
<div class="dropdown-toggle icon icon-arrow-up"></div>
|
||||
<ul role="menu">
|
||||
<li><a href="#">item 1</a></li>
|
||||
<li><a href="#">item 2</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col3">
|
||||
<div class="dropdown dropup dropdown-button match-width">
|
||||
<button value="drop up" class="button icon icon-view">icon dropup</button>
|
||||
<div class="dropdown-toggle icon icon-arrow-up"></div>
|
||||
<ul role="menu">
|
||||
<li><a href="#">item 1</a></li>
|
||||
<li><a href="#">item 2</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="header">
|
||||
<h2>Header</h2>
|
||||
|
||||
{% include "wagtailadmin/shared/header.html" with title=title_trans %}
|
||||
|
||||
{% include "wagtailadmin/shared/header.html" with title=title_trans add_link="wagtailimages_add_image" icon="image" add_text="button" search_url="wagtailimages_index" %}
|
||||
</section>
|
||||
|
||||
<section id="forms">
|
||||
<h2>Forms</h2>
|
||||
|
||||
<form>
|
||||
<ul class="fields">
|
||||
{% for field in example_form %}
|
||||
{% if field.name == 'file' %}
|
||||
{% include "wagtailimages/images/_file_field.html" %}
|
||||
{% elif field.name == 'date' %}
|
||||
{% include "wagtailadmin/shared/field_as_li.html" with input_classes="iconfield icon-date" %}
|
||||
{% else %}
|
||||
{% include "wagtailadmin/shared/field_as_li.html" %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<li><input type="submit" value="{% trans 'Save' %}" /><a href="#" class="button button-secondary no">{% trans "Delete image" %}</a></li>
|
||||
</ul>
|
||||
</form>
|
||||
|
||||
<h3>TODO: Date picker</h3>
|
||||
<h3>TODO: Time picker</h3>
|
||||
<h3>TODO: Datetime picker</h3>
|
||||
<h3>TODO: Rich text input</h3>
|
||||
<h3>TODO: Page chooser</h3>
|
||||
<h3>TODO: Image chooser</h3>
|
||||
<h3>TODO: Document chooser</h3>
|
||||
<h3>TODO: Snippet chooser</h3>
|
||||
</section>
|
||||
|
||||
<section id="editor">
|
||||
<h2>Page editor</h2>
|
||||
</section>
|
||||
|
||||
<section id="tabs">
|
||||
<h2>Tabs</h2>
|
||||
|
||||
<ul class="tab-nav">
|
||||
<li class="active"><a href="#tab1">Tab 1</a></li>
|
||||
<li><a href="#tab2">Tab 2</a></li>
|
||||
</ul>
|
||||
|
||||
<p>Tabs are currently only used following headers, where they often appear merged with the bottom of the header:</p>
|
||||
|
||||
{% include "wagtailadmin/shared/header.html" with title=title_trans merged=1 %}
|
||||
<ul class="tab-nav merged">
|
||||
<li class="active"><a href="#">Tab1</a></li>
|
||||
<li><a href="#">Tab2</a></li>
|
||||
</ul>
|
||||
|
||||
<p>Tabs can also indicate errors:</p>
|
||||
|
||||
{% include "wagtailadmin/shared/header.html" with title=title_trans merged=1 %}
|
||||
<ul class="tab-nav merged">
|
||||
<li class="active"><a href="#" class="errors" data-count="123">Tab1</a></li>
|
||||
<li><a href="#" class="errors" data-count="1">Tab2</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section id="breadcrumbs">
|
||||
<h2>Breadcrumbs</h2>
|
||||
|
||||
<ul class="breadcrumb">
|
||||
<li class="home"><a href="#" class="icon icon-home text-replace">Home</a></li>
|
||||
<li><a href="#">Various</a></li>
|
||||
<li><a href="#">Subpages</a></li>
|
||||
<li><a href="#">There is a max length of this many</a></li>
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
|
||||
<section id="misc">
|
||||
<h2>Misc formatters</h2>
|
||||
<h3>Avatar icons</h3>
|
||||
|
||||
<p><span class="avatar small icon icon-user"><img src="{% gravatar_url "david@torchbox.com" 25 %}" /></span> Gravatar set</p>
|
||||
<p><span class="avatar small icon icon-user"><img src="{% gravatar_url "aeon@torchbox.com" 25 %}" /></span> Gravatar not set</p>
|
||||
|
||||
<h3>Status tags</h3>
|
||||
<div class="status-tag primary">Primary tag</div>
|
||||
|
||||
<div class="status-tag">Secondary tag</div>
|
||||
</section>
|
||||
|
||||
<section id="icons">
|
||||
<h2>Icons</h2>
|
||||
|
||||
<ul class="unlist">
|
||||
<li class="icon icon-wagtail">wagtail</li>
|
||||
<li class="icon icon-wagtail-inverse">wagtail-inverse</li>
|
||||
<li class="icon icon-cogs">cogs</li>
|
||||
<li class="icon icon-doc-empty-inverse">doc-empty-inverse</li>
|
||||
<li class="icon icon-doc-empty">doc-empty</li>
|
||||
<li class="icon icon-edit">edit</li>
|
||||
<li class="icon icon-arrow-up">arrow-up</li>
|
||||
<li class="icon icon-arrow-down">arrow-down</li>
|
||||
<li class="icon icon-search">search</li>
|
||||
<li class="icon icon-cross">cross</li>
|
||||
<li class="icon icon-folder-open-1">folder-open-1</li>
|
||||
<li class="icon icon-folder-inverse">folder-inverse</li>
|
||||
<li class="icon icon-mail">mail</li>
|
||||
<li class="icon icon-arrows-up-down">arrows-up-down</li>
|
||||
<li class="icon icon-locked">locked</li>
|
||||
<li class="icon icon-unlocked">unlocked</li>
|
||||
<li class="icon icon-arrow-right">arrow-right</li>
|
||||
<li class="icon icon-doc-full">doc-full / file-text-alt</li>
|
||||
<li class="icon icon-image">image / picture</li>
|
||||
<li class="icon icon-doc-full-inverse">doc-full-inverse</li>
|
||||
<li class="icon icon-folder">folder</li>
|
||||
<li class="icon icon-plus">plus</li>
|
||||
<li class="icon icon-tag">tag</li>
|
||||
<li class="icon icon-folder-open-inverse">folder-open-inverse</li>
|
||||
<li class="icon icon-cog">cog</li>
|
||||
<li class="icon icon-tick">tick</li>
|
||||
<li class="icon icon-user">user</li>
|
||||
<li class="icon icon-arrow-left">arrow-left</li>
|
||||
<li class="icon icon-tick-inverse">tick-inverse</li>
|
||||
<li class="icon icon-plus-inverse">plus-inverse</li>
|
||||
<li class="icon icon-snippet">snippet</li>
|
||||
<li class="icon icon-bold">bold</li>
|
||||
<li class="icon icon-italic">italic</li>
|
||||
<li class="icon icon-undo">undo</li>
|
||||
<li class="icon icon-repeat">repeat</li>
|
||||
<li class="icon icon-list-ol">list-ol</li>
|
||||
<li class="icon icon-list-ul">list-ul</li>
|
||||
<li class="icon icon-link">link</li>
|
||||
<li class="icon icon-radio-full">radio-full</li>
|
||||
<li class="icon icon-radio-empty">radio-empty</li>
|
||||
<li class="icon icon-arrow-up-big">arrow-up-big</li>
|
||||
<li class="icon icon-arrow-down-big">arrow-down-big</li>
|
||||
<li class="icon icon-group">group</li>
|
||||
<li class="icon icon-media">media</li>
|
||||
<li class="icon icon-horizontalrule">horizontalrule</li>
|
||||
<li class="icon icon-password">password</li>
|
||||
<li class="icon icon-download">download</li>
|
||||
<li class="icon icon-order">order</li>
|
||||
<li class="icon icon-grip">grip</li>
|
||||
<li class="icon icon-home">home</li>
|
||||
<li class="icon icon-order-down">order-down</li>
|
||||
<li class="icon icon-order-up">order-up</li>
|
||||
<li class="icon icon-bin">bin</li>
|
||||
<li class="spinner"><div class="icon icon-spinner">spinner</div> spinner</li>
|
||||
<li class="icon icon-pick">pick</li>
|
||||
<li class="icon icon-redirect">redirect</li>
|
||||
<li class="icon icon-view">view</li>
|
||||
<li class="icon icon-collapse-up">collapse-up</li>
|
||||
<li class="icon icon-collapse-down">collapse-down</li>
|
||||
<li class="icon icon-help">help</li>
|
||||
<li class="icon icon-warning">warning</li>
|
||||
<li class="icon icon-success">success</li>
|
||||
<li class="icon icon-date">date</li>
|
||||
<li class="icon icon-form">form</li>
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block extra_js %}
|
||||
<script>
|
||||
$(function(){
|
||||
|
||||
})
|
||||
</script>
|
||||
{% endblock %}
|
||||
15
wagtail/contrib/wagtailstyleguide/tests.py
Normal file
15
wagtail/contrib/wagtailstyleguide/tests.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from django.test import TestCase
|
||||
from django.core.urlresolvers import reverse
|
||||
|
||||
from wagtail.tests.utils import WagtailTestUtils
|
||||
|
||||
|
||||
class TestStyleGuide(TestCase, WagtailTestUtils):
|
||||
def setUp(self):
|
||||
self.login();
|
||||
|
||||
def test_styleguide(self):
|
||||
response = self.client.get(reverse('wagtailstyleguide'))
|
||||
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertTemplateUsed(response, 'wagtailstyleguide/base.html')
|
||||
43
wagtail/contrib/wagtailstyleguide/views.py
Normal file
43
wagtail/contrib/wagtailstyleguide/views.py
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
from django import forms
|
||||
from django.db import models
|
||||
from django.shortcuts import render
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.contrib import messages
|
||||
from django.contrib.auth.decorators import permission_required
|
||||
|
||||
from wagtail.wagtailadmin.edit_handlers import PageChooserPanel
|
||||
from wagtail.wagtailimages.edit_handlers import ImageChooserPanel
|
||||
from wagtail.wagtaildocs.edit_handlers import DocumentChooserPanel
|
||||
|
||||
from wagtail.wagtailadmin.forms import SearchForm
|
||||
from wagtail.wagtailcore.fields import RichTextField
|
||||
|
||||
|
||||
CHOICES = (
|
||||
('choice1', 'choice 1'),
|
||||
('choice2', 'choice 2'),
|
||||
)
|
||||
|
||||
class ExampleForm(forms.Form):
|
||||
text = forms.CharField(required=True, help_text="help text")
|
||||
url = forms.URLField(required=True)
|
||||
email = forms.EmailField(max_length=254)
|
||||
date = forms.DateField()
|
||||
select = forms.ChoiceField(choices=CHOICES)
|
||||
boolean = forms.BooleanField(required=False)
|
||||
|
||||
@permission_required('wagtailadmin.access_admin')
|
||||
def index(request):
|
||||
|
||||
form = SearchForm(placeholder=_("Search something"))
|
||||
|
||||
example_form = ExampleForm()
|
||||
|
||||
messages.success(request, _("Success message"))
|
||||
messages.warning(request, _("Warning message"))
|
||||
messages.error(request, _("Error message"))
|
||||
|
||||
return render(request, 'wagtailstyleguide/base.html', {
|
||||
'search_form': form,
|
||||
'example_form': example_form,
|
||||
})
|
||||
26
wagtail/contrib/wagtailstyleguide/wagtail_hooks.py
Normal file
26
wagtail/contrib/wagtailstyleguide/wagtail_hooks.py
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
from django.conf import settings
|
||||
from django.conf.urls import include, url
|
||||
from django.core import urlresolvers
|
||||
from django.utils.html import format_html, format_html_join
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from wagtail.wagtailadmin import hooks
|
||||
from wagtail.wagtailadmin.menu import MenuItem
|
||||
|
||||
from wagtail.wagtailimages import urls
|
||||
|
||||
from . import views
|
||||
|
||||
|
||||
def register_admin_urls():
|
||||
return [
|
||||
url(r'^styleguide/$', views.index, name='wagtailstyleguide'),
|
||||
]
|
||||
hooks.register('register_admin_urls', register_admin_urls)
|
||||
|
||||
|
||||
def construct_main_menu(request, menu_items):
|
||||
menu_items.append(
|
||||
MenuItem(_('Styleguide'), urlresolvers.reverse('wagtailstyleguide'), classnames='icon icon-image', order=1000)
|
||||
)
|
||||
hooks.register('construct_main_menu', construct_main_menu)
|
||||
|
|
@ -255,18 +255,55 @@ FormPage.content_panels = [
|
|||
]
|
||||
|
||||
|
||||
# Snippets
|
||||
|
||||
# Snippets
|
||||
|
||||
class Advert(models.Model):
|
||||
url = models.URLField(null=True, blank=True)
|
||||
text = models.CharField(max_length=255)
|
||||
url = models.URLField(null=True, blank=True)
|
||||
text = models.CharField(max_length=255)
|
||||
|
||||
panels = [
|
||||
FieldPanel('url'),
|
||||
FieldPanel('text'),
|
||||
]
|
||||
panels = [
|
||||
FieldPanel('url'),
|
||||
FieldPanel('text'),
|
||||
]
|
||||
|
||||
def __unicode__(self):
|
||||
return self.text
|
||||
|
||||
def __unicode__(self):
|
||||
return self.text
|
||||
|
||||
register_snippet(Advert)
|
||||
|
||||
|
||||
# AlphaSnippet and ZuluSnippet are for testing ordering of
|
||||
# snippets when registering. They are named as such to ensure
|
||||
# thier ordering is clear. They are registered during testing
|
||||
# to ensure specific [in]correct register ordering
|
||||
|
||||
# AlphaSnippet is registered during TestSnippetOrdering
|
||||
class AlphaSnippet(models.Model):
|
||||
text = models.CharField(max_length=255)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.text
|
||||
|
||||
|
||||
# ZuluSnippet is registered during TestSnippetOrdering
|
||||
class ZuluSnippet(models.Model):
|
||||
text = models.CharField(max_length=255)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.text
|
||||
|
||||
|
||||
class StandardIndex(Page):
|
||||
pass
|
||||
|
||||
class StandardChild(Page):
|
||||
pass
|
||||
|
||||
class BusinessIndex(Page):
|
||||
subpage_types = ['tests.BusinessChild']
|
||||
|
||||
class BusinessChild(Page):
|
||||
subpage_types = []
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
from django.test import TestCase
|
||||
from django.contrib.auth.models import User
|
||||
from django.utils.six.moves.urllib.parse import urlparse, ParseResult
|
||||
from django.http import QueryDict
|
||||
|
||||
# We need to make sure that we're using the same unittest library that Django uses internally
|
||||
# Otherwise, we get issues with the "SkipTest" and "ExpectedFailure" exceptions being recognised as errors
|
||||
|
|
@ -12,11 +15,30 @@ except ImportError:
|
|||
import unittest
|
||||
|
||||
|
||||
def login(client):
|
||||
# Create a user
|
||||
user = User.objects.create_superuser(username='test', email='test@email.com', password='password')
|
||||
class WagtailTestUtils(object):
|
||||
def login(self):
|
||||
# Create a user
|
||||
user = User.objects.create_superuser(username='test', email='test@email.com', password='password')
|
||||
|
||||
# Login
|
||||
client.login(username='test', password='password')
|
||||
# Login
|
||||
self.client.login(username='test', password='password')
|
||||
|
||||
return user
|
||||
return user
|
||||
|
||||
# From: https://github.com/django/django/blob/255449c1ee61c14778658caae8c430fa4d76afd6/django/contrib/auth/tests/test_views.py#L70-L85
|
||||
def assertURLEqual(self, url, expected, parse_qs=False):
|
||||
"""
|
||||
Given two URLs, make sure all their components (the ones given by
|
||||
urlparse) are equal, only comparing components that are present in both
|
||||
URLs.
|
||||
If `parse_qs` is True, then the querystrings are parsed with QueryDict.
|
||||
This is useful if you don't want the order of parameters to matter.
|
||||
Otherwise, the query strings are compared as-is.
|
||||
"""
|
||||
fields = ParseResult._fields
|
||||
|
||||
for attr, x, y in zip(fields, urlparse(url), urlparse(expected)):
|
||||
if parse_qs and attr == 'query':
|
||||
x, y = QueryDict(x), QueryDict(y)
|
||||
if x and y and x != y:
|
||||
self.fail("%r != %r (%s doesn't match)" % (url, expected, attr))
|
||||
|
|
|
|||
|
|
@ -23,136 +23,12 @@ from wagtail.wagtailcore.util import camelcase_to_underscore
|
|||
from wagtail.wagtailcore.fields import RichTextArea
|
||||
|
||||
|
||||
class FriendlyDateInput(forms.DateInput):
|
||||
"""
|
||||
A custom DateInput widget that formats dates as "05 Oct 2013"
|
||||
and adds class="friendly_date" to be picked up by jquery datepicker.
|
||||
"""
|
||||
def __init__(self, attrs=None):
|
||||
default_attrs = {'class': 'friendly_date'}
|
||||
if attrs:
|
||||
default_attrs.update(attrs)
|
||||
|
||||
super(FriendlyDateInput, self).__init__(attrs=default_attrs, format='%d %b %Y')
|
||||
|
||||
|
||||
class FriendlyTimeInput(forms.TimeInput):
|
||||
"""
|
||||
A custom TimeInput widget that formats dates as "5.30pm"
|
||||
and adds class="friendly_time" to be picked up by jquery timepicker.
|
||||
"""
|
||||
def __init__(self, attrs=None):
|
||||
default_attrs = {'class': 'friendly_time'}
|
||||
if attrs:
|
||||
default_attrs.update(attrs)
|
||||
|
||||
super(FriendlyTimeInput, self).__init__(attrs=default_attrs, format='%I.%M%p')
|
||||
|
||||
|
||||
class FriendlyTimeField(forms.CharField):
|
||||
def to_python(self, time_string):
|
||||
# Check if the string is blank
|
||||
if not time_string:
|
||||
return None
|
||||
|
||||
# Look for time in the string
|
||||
expr = re.compile("^(?P<hour>\d+)(?:(?:.|:)(?P<minute>\d+))?(?P<am_pm>am|pm)")
|
||||
match = expr.match(time_string.lower())
|
||||
if match:
|
||||
# Pull out values from string
|
||||
hour_string, minute_string, am_pm = match.groups()
|
||||
|
||||
# Convert hours and minutes to integers
|
||||
hour = int(hour_string)
|
||||
if minute_string:
|
||||
minute = int(minute_string)
|
||||
else:
|
||||
minute = 0
|
||||
|
||||
# Create python time
|
||||
if am_pm == "pm" and hour < 12:
|
||||
hour += 12
|
||||
|
||||
if am_pm == "am" and hour >= 12:
|
||||
hour -= 12
|
||||
|
||||
return datetime.time(hour=hour, minute=minute)
|
||||
else:
|
||||
raise ValidationError(_("Please type a valid time"))
|
||||
|
||||
|
||||
class LocalizedDateInput(forms.DateInput):
|
||||
"""
|
||||
A custom DateInput widget that formats localized dates
|
||||
and adds class="friendly_date" to be picked up by jquery datepicker.
|
||||
"""
|
||||
def __init__(self, attrs=None):
|
||||
default_attrs = {'class': 'localized_date', 'localize':True}
|
||||
if attrs:
|
||||
default_attrs.update(attrs)
|
||||
|
||||
super(LocalizedDateInput, self).__init__(attrs=default_attrs)
|
||||
|
||||
|
||||
class LocalizedTimeInput(forms.TimeInput):
|
||||
"""
|
||||
A custom TimeInput widget that formats dates as "5.30pm"
|
||||
and adds class="friendly_time" to be picked up by jquery timepicker.
|
||||
"""
|
||||
def __init__(self, attrs=None):
|
||||
default_attrs = {'class': 'localized_time'}
|
||||
if attrs:
|
||||
default_attrs.update(attrs)
|
||||
# Just use 24-hour format
|
||||
super(LocalizedTimeInput, self).__init__(attrs=default_attrs, format='%H:%M')
|
||||
|
||||
|
||||
class LocalizedTimeField(forms.CharField):
|
||||
def to_python(self, time_string):
|
||||
# Check if the string is blank
|
||||
if not time_string:
|
||||
return None
|
||||
|
||||
# Look for time in the string
|
||||
expr = re.compile("^(?P<hour>\d+)(?:(?:.|:)(?P<minute>\d+))?")
|
||||
match = expr.match(time_string.lower())
|
||||
if match:
|
||||
# Pull out values from string
|
||||
hour_string, minute_string= match.groups()
|
||||
|
||||
# Convert hours and minutes to integers
|
||||
hour = int(hour_string)
|
||||
if minute_string:
|
||||
minute = int(minute_string)
|
||||
else:
|
||||
minute = 0
|
||||
if hour>=24 or hour < 0 or minute >=60 or minute < 0:
|
||||
raise ValidationError(_("Please type a valid time"))
|
||||
|
||||
return datetime.time(hour=hour, minute=minute)
|
||||
else:
|
||||
raise ValidationError(_("Please type a valid time") )
|
||||
|
||||
# For some reason we need to explicitly override the DateTimeField and set
|
||||
# it to use the DateTimeInput or else it will use the LocalizedDateInput/FriendlyDateInput
|
||||
if hasattr(settings, 'USE_L10N') and settings.USE_L10N==True:
|
||||
FORM_FIELD_OVERRIDES = {
|
||||
models.DateField: {'widget': LocalizedDateInput},
|
||||
models.DateTimeField: {'widget': forms.DateTimeInput},
|
||||
models.TimeField: {'widget': LocalizedTimeInput, 'form_class': LocalizedTimeField},
|
||||
}
|
||||
else: # Fall back to friendly date/time
|
||||
FORM_FIELD_OVERRIDES = {
|
||||
models.DateField: {'widget': FriendlyDateInput},
|
||||
models.DateTimeField: {'widget': forms.DateTimeInput},
|
||||
models.TimeField: {'widget': FriendlyTimeInput, 'form_class': FriendlyTimeField},
|
||||
}
|
||||
FORM_FIELD_OVERRIDES = {}
|
||||
|
||||
WIDGET_JS = {
|
||||
FriendlyDateInput: (lambda id: "initFriendlyDateChooser(fixPrefix('%s'));" % id),
|
||||
FriendlyTimeInput: (lambda id: "initFriendlyTimeChooser(fixPrefix('%s'));" % id),
|
||||
LocalizedDateInput: (lambda id: "initLocalizedDateChooser(fixPrefix('%s'));" % id),
|
||||
LocalizedTimeInput: (lambda id: "initLocalizedTimeChooser(fixPrefix('%s'));" % id),
|
||||
forms.DateInput: (lambda id: "initDateChooser(fixPrefix('%s'));" % id),
|
||||
forms.TimeInput: (lambda id: "initTimeChooser(fixPrefix('%s'));" % id),
|
||||
forms.DateTimeInput: (lambda id: "initDateTimeChooser(fixPrefix('%s'));" % id),
|
||||
RichTextArea: (lambda id: "makeRichTextEditable(fixPrefix('%s'));" % id),
|
||||
TagWidget: (
|
||||
lambda id: "initTagField(fixPrefix('%s'), '%s');" % (
|
||||
|
|
|
|||
|
|
@ -93,17 +93,6 @@ $(function(){
|
|||
});
|
||||
});
|
||||
|
||||
$(".nav-main .more > a").bind('click keydown', function(){
|
||||
var currentAlt = $(this).data('altstate');
|
||||
var newAlt = $(this).html();
|
||||
|
||||
$(this).html(currentAlt);
|
||||
$(this).data('altstate', newAlt);
|
||||
$(this).toggleClass('icon-arrow-up icon-arrow-down');
|
||||
$(this).parent().find('ul').toggle('fast');
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#menu-search input').bind('focus', function(){
|
||||
$('#menu-search').addClass('focussed');
|
||||
}).bind('blur', function(){
|
||||
|
|
|
|||
|
|
@ -16,9 +16,12 @@ function ModalWorkflow(opts) {
|
|||
/* remove any previous modals before continuing (closing doesn't remove them from the dom) */
|
||||
$('body > .modal').remove();
|
||||
|
||||
// set default contents of container
|
||||
var container = $('<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">\n <div class="modal-dialog">\n <div class="modal-content">\n <button type="button" class="close icon text-replace icon-cross" data-dismiss="modal" aria-hidden="true">×</button>\n <div class="modal-body"></div>\n </div><!-- /.modal-content -->\n </div><!-- /.modal-dialog -->\n</div>');
|
||||
|
||||
// add container to body and hide it, so content can be added to it before display
|
||||
$('body').append(container);
|
||||
container.modal();
|
||||
container.modal('hide');
|
||||
|
||||
self.body = container.find('.modal-body');
|
||||
|
||||
|
|
@ -49,15 +52,19 @@ function ModalWorkflow(opts) {
|
|||
|
||||
self.loadResponseText = function(responseText) {
|
||||
var response = eval('(' + responseText + ')');
|
||||
|
||||
self.loadBody(response);
|
||||
};
|
||||
|
||||
self.loadBody = function(body) {
|
||||
if (body.html) {
|
||||
self.body.html(body.html);
|
||||
self.loadBody = function(response) {
|
||||
if (response.html) {
|
||||
// if the response is html
|
||||
self.body.html(response.html);
|
||||
container.modal('show');
|
||||
}
|
||||
if (body.onload) {
|
||||
body.onload(self);
|
||||
if (response.onload) {
|
||||
// if the response is a function
|
||||
response.onload(self);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -53,57 +53,56 @@ function insertRichTextDeleteControl(elem) {
|
|||
});
|
||||
}
|
||||
|
||||
function initDateChoosers(context) {
|
||||
$('input.friendly_date', context).datepicker({
|
||||
dateFormat: 'd M yy', constrainInput: false, /* showOn: 'button', */ firstDay: 1
|
||||
});
|
||||
|
||||
if(window.overrideDateInputFormat && window.overrideDateInputFormat !='') {
|
||||
$('input.localized_date', context).datepicker({
|
||||
dateFormat: window.overrideDateInputFormat, constrainInput: false, /* showOn: 'button', */ firstDay: 1
|
||||
function initDateChooser(id) {
|
||||
if (window.dateTimePickerTranslations) {
|
||||
$('#' + id).datetimepicker({
|
||||
timepicker: false,
|
||||
format: 'Y-m-d',
|
||||
i18n: {
|
||||
lang: window.dateTimePickerTranslations
|
||||
},
|
||||
lang: 'lang'
|
||||
});
|
||||
} else {
|
||||
$('input.localized_date', context).datepicker({
|
||||
constrainInput: false, /* showOn: 'button', */ firstDay: 1
|
||||
$('#' + id).datetimepicker({
|
||||
timepicker: false,
|
||||
format: 'Y-m-d',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
function initFriendlyDateChooser(id) {
|
||||
$('#' + id).datepicker({
|
||||
dateFormat: 'd M yy', constrainInput: false, /* showOn: 'button', */ firstDay: 1
|
||||
});
|
||||
}
|
||||
function initLocalizedDateChooser(id) {
|
||||
if(window.overrideDateInputFormat && window.overrideDateInputFormat !='') {
|
||||
$('#' + id).datepicker({
|
||||
dateFormat: window.overrideDateInputFormat, constrainInput: false, /* showOn: 'button', */ firstDay: 1
|
||||
function initTimeChooser(id) {
|
||||
if (window.dateTimePickerTranslations) {
|
||||
$('#' + id).datetimepicker({
|
||||
datepicker: false,
|
||||
format: 'H:i',
|
||||
i18n: {
|
||||
lang: window.dateTimePickerTranslations
|
||||
},
|
||||
lang: 'lang'
|
||||
});
|
||||
} else {
|
||||
$('#' + id).datepicker({
|
||||
constrainInput: false, /* showOn: 'button', */ firstDay: 1
|
||||
$('#' + id).datetimepicker({
|
||||
datepicker: false,
|
||||
format: 'H:i',
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function initTimeChoosers(context) {
|
||||
$('input.friendly_time', context).timepicker({
|
||||
timeFormat: 'g.ia'
|
||||
});
|
||||
$('input.localized_time', context).timepicker({
|
||||
timeFormat: 'H:i', maxTime: '23:59'
|
||||
});
|
||||
}
|
||||
function initFriendlyTimeChooser(id) {
|
||||
$('#' + id).timepicker({
|
||||
timeFormat: 'g.ia'
|
||||
});
|
||||
}
|
||||
function initLocalizedTimeChooser(id) {
|
||||
$('#' + id).timepicker({
|
||||
timeFormat: 'H:i', maxTime: '23:59'
|
||||
});
|
||||
function initDateTimeChooser(id) {
|
||||
if (window.dateTimePickerTranslations) {
|
||||
$('#' + id).datetimepicker({
|
||||
format: 'Y-m-d H:i',
|
||||
i18n: {
|
||||
lang: window.dateTimePickerTranslations
|
||||
},
|
||||
language: 'lang'
|
||||
});
|
||||
} else {
|
||||
$('#' + id).datetimepicker({
|
||||
format: 'Y-m-d H:i',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function initTagField(id, autocompleteUrl) {
|
||||
|
|
@ -181,6 +180,17 @@ function InlinePanel(opts) {
|
|||
self.updateMoveButtonDisabledStates();
|
||||
});
|
||||
}
|
||||
|
||||
/* Hide container on page load if it is marked as deleted. Remove the error
|
||||
message so that it doesn't count towards the number of errors on the tab at the
|
||||
top of the page. */
|
||||
if ( $('#' + deleteInputId).val() === "1" ) {
|
||||
$('#' + childId).hide(0, function() {
|
||||
self.updateMoveButtonDisabledStates();
|
||||
self.setHasContent();
|
||||
});
|
||||
$('#' + childId).find(".error-message").remove();
|
||||
}
|
||||
};
|
||||
|
||||
self.formsUl = $('#' + opts.formsetPrefix + '-FORMS');
|
||||
|
|
@ -309,8 +319,6 @@ function initCollapsibleBlocks(){
|
|||
}
|
||||
|
||||
$(function() {
|
||||
initDateChoosers();
|
||||
initTimeChoosers();
|
||||
initSlugAutoPopulate();
|
||||
initSlugCleaning();
|
||||
initErrorDetection();
|
||||
|
|
@ -321,7 +329,9 @@ $(function() {
|
|||
});
|
||||
|
||||
/* Set up behaviour of preview button */
|
||||
$('.action-preview').click(function() {
|
||||
$('.action-preview').click(function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
var previewWindow = window.open($(this).data('placeholder'), $(this).data('windowname'));
|
||||
|
||||
$.ajax({
|
||||
|
|
@ -330,9 +340,18 @@ $(function() {
|
|||
data: $('#page-edit-form').serialize(),
|
||||
success: function(data, textStatus, request) {
|
||||
if (request.getResponseHeader('X-Wagtail-Preview') == 'ok') {
|
||||
previewWindow.document.open();
|
||||
previewWindow.document.write(data);
|
||||
previewWindow.document.close();
|
||||
var pdoc = previewWindow.document;
|
||||
var frame = pdoc.getElementById('preview-frame');
|
||||
|
||||
frame = frame.contentWindow || frame.contentDocument.document || frame.contentDocument;
|
||||
frame.document.open();
|
||||
frame.document.write(data);
|
||||
frame.document.close();
|
||||
|
||||
var hideTimeout = setTimeout(function(){
|
||||
pdoc.getElementById('loading-spinner-wrapper').className += 'remove';
|
||||
clearTimeout(hideTimeout);
|
||||
}, 50) // just enough to give effect without adding discernible slowness
|
||||
} else {
|
||||
previewWindow.close();
|
||||
document.open();
|
||||
|
|
@ -346,11 +365,11 @@ $(function() {
|
|||
error output rather than giving a 'friendly' error message so that
|
||||
developers can debug template errors. (On a production site, we'd
|
||||
typically be serving a friendly custom 500 page anyhow.) */
|
||||
|
||||
previewWindow.document.open();
|
||||
previewWindow.document.write(xhr.responseText);
|
||||
previewWindow.document.close();
|
||||
}
|
||||
});
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
|
|
|||
65
wagtail/wagtailadmin/static/wagtailadmin/js/vendor/bootstrap-transition.js
vendored
Normal file
65
wagtail/wagtailadmin/static/wagtailadmin/js/vendor/bootstrap-transition.js
vendored
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
/* ========================================================================
|
||||
* Bootstrap: transition.js v3.1.1
|
||||
* http://getbootstrap.com/javascript/#transitions
|
||||
* ========================================================================
|
||||
* Copyright 2011-2014 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
* ======================================================================== */
|
||||
|
||||
|
||||
+function () { 'use strict';
|
||||
|
||||
(function (o_o) {
|
||||
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
|
||||
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
|
||||
})(function ($) {
|
||||
|
||||
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
|
||||
// ============================================================
|
||||
|
||||
function transitionEnd() {
|
||||
var el = document.createElement('bootstrap')
|
||||
|
||||
var transEndEventNames = {
|
||||
WebkitTransition : 'webkitTransitionEnd',
|
||||
MozTransition : 'transitionend',
|
||||
OTransition : 'oTransitionEnd otransitionend',
|
||||
transition : 'transitionend'
|
||||
}
|
||||
|
||||
for (var name in transEndEventNames) {
|
||||
if (el.style[name] !== undefined) {
|
||||
return { end: transEndEventNames[name] }
|
||||
}
|
||||
}
|
||||
|
||||
return false // explicit for ie8 ( ._.)
|
||||
}
|
||||
|
||||
// http://blog.alexmaccaw.com/css-transitions
|
||||
$.fn.emulateTransitionEnd = function (duration) {
|
||||
var called = false
|
||||
var $el = this
|
||||
$(this).one('bsTransitionEnd', function () { called = true })
|
||||
var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
|
||||
setTimeout(callback, duration)
|
||||
return this
|
||||
}
|
||||
|
||||
$(function () {
|
||||
$.support.transition = transitionEnd()
|
||||
|
||||
if (!$.support.transition) return
|
||||
|
||||
$.event.special.bsTransitionEnd = {
|
||||
bindType: $.support.transition.end,
|
||||
delegateType: $.support.transition.end,
|
||||
handle: function (e) {
|
||||
if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
}();
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,23 +0,0 @@
|
|||
/* Afrikaans initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Renier Pretorius. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['af'] = {
|
||||
closeText: 'Selekteer',
|
||||
prevText: 'Vorige',
|
||||
nextText: 'Volgende',
|
||||
currentText: 'Vandag',
|
||||
monthNames: ['Januarie','Februarie','Maart','April','Mei','Junie',
|
||||
'Julie','Augustus','September','Oktober','November','Desember'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun',
|
||||
'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'],
|
||||
dayNames: ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'],
|
||||
dayNamesShort: ['Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat'],
|
||||
dayNamesMin: ['So','Ma','Di','Wo','Do','Vr','Sa'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['af']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Algerian Arabic Translation for jQuery UI date picker plugin. (can be used for Tunisia)*/
|
||||
/* Mohamed Cherif BOUCHELAGHEM -- cherifbouchelaghem@yahoo.fr */
|
||||
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ar-DZ'] = {
|
||||
closeText: 'إغلاق',
|
||||
prevText: '<السابق',
|
||||
nextText: 'التالي>',
|
||||
currentText: 'اليوم',
|
||||
monthNames: ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان',
|
||||
'جويلية', 'أوت', 'سبتمبر','أكتوبر', 'نوفمبر', 'ديسمبر'],
|
||||
monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
|
||||
dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
||||
dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
||||
dayNamesMin: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
||||
weekHeader: 'أسبوع',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 6,
|
||||
isRTL: true,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ar-DZ']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Arabic Translation for jQuery UI date picker plugin. */
|
||||
/* Khaled Alhourani -- me@khaledalhourani.com */
|
||||
/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ar'] = {
|
||||
closeText: 'إغلاق',
|
||||
prevText: '<السابق',
|
||||
nextText: 'التالي>',
|
||||
currentText: 'اليوم',
|
||||
monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'مايو', 'حزيران',
|
||||
'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'],
|
||||
monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
|
||||
dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
||||
dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
|
||||
dayNamesMin: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'],
|
||||
weekHeader: 'أسبوع',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 6,
|
||||
isRTL: true,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ar']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Azerbaijani (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Jamil Najafov (necefov33@gmail.com). */
|
||||
jQuery(function($) {
|
||||
$.datepicker.regional['az'] = {
|
||||
closeText: 'Bağla',
|
||||
prevText: '<Geri',
|
||||
nextText: 'İrəli>',
|
||||
currentText: 'Bugün',
|
||||
monthNames: ['Yanvar','Fevral','Mart','Aprel','May','İyun',
|
||||
'İyul','Avqust','Sentyabr','Oktyabr','Noyabr','Dekabr'],
|
||||
monthNamesShort: ['Yan','Fev','Mar','Apr','May','İyun',
|
||||
'İyul','Avq','Sen','Okt','Noy','Dek'],
|
||||
dayNames: ['Bazar','Bazar ertəsi','Çərşənbə axşamı','Çərşənbə','Cümə axşamı','Cümə','Şənbə'],
|
||||
dayNamesShort: ['B','Be','Ça','Ç','Ca','C','Ş'],
|
||||
dayNamesMin: ['B','B','Ç','С','Ç','C','Ş'],
|
||||
weekHeader: 'Hf',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['az']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Belarusian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Pavel Selitskas <p.selitskas@gmail.com> */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['be'] = {
|
||||
closeText: 'Зачыніць',
|
||||
prevText: '←Папяр.',
|
||||
nextText: 'Наст.→',
|
||||
currentText: 'Сёньня',
|
||||
monthNames: ['Студзень','Люты','Сакавік','Красавік','Травень','Чэрвень',
|
||||
'Ліпень','Жнівень','Верасень','Кастрычнік','Лістапад','Сьнежань'],
|
||||
monthNamesShort: ['Сту','Лют','Сак','Кра','Тра','Чэр',
|
||||
'Ліп','Жні','Вер','Кас','Ліс','Сьн'],
|
||||
dayNames: ['нядзеля','панядзелак','аўторак','серада','чацьвер','пятніца','субота'],
|
||||
dayNamesShort: ['ндз','пнд','аўт','срд','чцв','птн','сбт'],
|
||||
dayNamesMin: ['Нд','Пн','Аў','Ср','Чц','Пт','Сб'],
|
||||
weekHeader: 'Тд',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['be']);
|
||||
});
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
/* Bulgarian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Stoyan Kyosev (http://svest.org). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['bg'] = {
|
||||
closeText: 'затвори',
|
||||
prevText: '<назад',
|
||||
nextText: 'напред>',
|
||||
nextBigText: '>>',
|
||||
currentText: 'днес',
|
||||
monthNames: ['Януари','Февруари','Март','Април','Май','Юни',
|
||||
'Юли','Август','Септември','Октомври','Ноември','Декември'],
|
||||
monthNamesShort: ['Яну','Фев','Мар','Апр','Май','Юни',
|
||||
'Юли','Авг','Сеп','Окт','Нов','Дек'],
|
||||
dayNames: ['Неделя','Понеделник','Вторник','Сряда','Четвъртък','Петък','Събота'],
|
||||
dayNamesShort: ['Нед','Пон','Вто','Сря','Чет','Пет','Съб'],
|
||||
dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Съ'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['bg']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Bosnian i18n for the jQuery UI date picker plugin. */
|
||||
/* Written by Kenan Konjo. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['bs'] = {
|
||||
closeText: 'Zatvori',
|
||||
prevText: '<',
|
||||
nextText: '>',
|
||||
currentText: 'Danas',
|
||||
monthNames: ['Januar','Februar','Mart','April','Maj','Juni',
|
||||
'Juli','August','Septembar','Oktobar','Novembar','Decembar'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Nedelja','Ponedeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'],
|
||||
dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'],
|
||||
dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['bs']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Inicialització en català per a l'extensió 'UI date picker' per jQuery. */
|
||||
/* Writers: (joan.leon@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ca'] = {
|
||||
closeText: 'Tanca',
|
||||
prevText: 'Anterior',
|
||||
nextText: 'Següent',
|
||||
currentText: 'Avui',
|
||||
monthNames: ['gener','febrer','març','abril','maig','juny',
|
||||
'juliol','agost','setembre','octubre','novembre','desembre'],
|
||||
monthNamesShort: ['gen','feb','març','abr','maig','juny',
|
||||
'jul','ag','set','oct','nov','des'],
|
||||
dayNames: ['diumenge','dilluns','dimarts','dimecres','dijous','divendres','dissabte'],
|
||||
dayNamesShort: ['dg','dl','dt','dc','dj','dv','ds'],
|
||||
dayNamesMin: ['dg','dl','dt','dc','dj','dv','ds'],
|
||||
weekHeader: 'Set',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ca']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Czech initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Tomas Muller (tomas@tomas-muller.net). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['cs'] = {
|
||||
closeText: 'Zavřít',
|
||||
prevText: '<Dříve',
|
||||
nextText: 'Později>',
|
||||
currentText: 'Nyní',
|
||||
monthNames: ['leden','únor','březen','duben','květen','červen',
|
||||
'červenec','srpen','září','říjen','listopad','prosinec'],
|
||||
monthNamesShort: ['led','úno','bře','dub','kvě','čer',
|
||||
'čvc','srp','zář','říj','lis','pro'],
|
||||
dayNames: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'],
|
||||
dayNamesShort: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'],
|
||||
dayNamesMin: ['ne','po','út','st','čt','pá','so'],
|
||||
weekHeader: 'Týd',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['cs']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Welsh/UK initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by William Griffiths. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['cy-GB'] = {
|
||||
closeText: 'Done',
|
||||
prevText: 'Prev',
|
||||
nextText: 'Next',
|
||||
currentText: 'Today',
|
||||
monthNames: ['Ionawr','Chwefror','Mawrth','Ebrill','Mai','Mehefin',
|
||||
'Gorffennaf','Awst','Medi','Hydref','Tachwedd','Rhagfyr'],
|
||||
monthNamesShort: ['Ion', 'Chw', 'Maw', 'Ebr', 'Mai', 'Meh',
|
||||
'Gor', 'Aws', 'Med', 'Hyd', 'Tac', 'Rha'],
|
||||
dayNames: ['Dydd Sul', 'Dydd Llun', 'Dydd Mawrth', 'Dydd Mercher', 'Dydd Iau', 'Dydd Gwener', 'Dydd Sadwrn'],
|
||||
dayNamesShort: ['Sul', 'Llu', 'Maw', 'Mer', 'Iau', 'Gwe', 'Sad'],
|
||||
dayNamesMin: ['Su','Ll','Ma','Me','Ia','Gw','Sa'],
|
||||
weekHeader: 'Wy',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['cy-GB']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Danish initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Jan Christensen ( deletestuff@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['da'] = {
|
||||
closeText: 'Luk',
|
||||
prevText: '<Forrige',
|
||||
nextText: 'Næste>',
|
||||
currentText: 'Idag',
|
||||
monthNames: ['Januar','Februar','Marts','April','Maj','Juni',
|
||||
'Juli','August','September','Oktober','November','December'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'],
|
||||
dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'],
|
||||
dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'],
|
||||
weekHeader: 'Uge',
|
||||
dateFormat: 'dd-mm-yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['da']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* German initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Milian Wolff (mail@milianw.de). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['de'] = {
|
||||
closeText: 'Schließen',
|
||||
prevText: '<Zurück',
|
||||
nextText: 'Vor>',
|
||||
currentText: 'Heute',
|
||||
monthNames: ['Januar','Februar','März','April','Mai','Juni',
|
||||
'Juli','August','September','Oktober','November','Dezember'],
|
||||
monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Dez'],
|
||||
dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
|
||||
dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
||||
dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
|
||||
weekHeader: 'KW',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['de']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Greek (el) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Alex Cicovic (http://www.alexcicovic.com) */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['el'] = {
|
||||
closeText: 'Κλείσιμο',
|
||||
prevText: 'Προηγούμενος',
|
||||
nextText: 'Επόμενος',
|
||||
currentText: 'Τρέχων Μήνας',
|
||||
monthNames: ['Ιανουάριος','Φεβρουάριος','Μάρτιος','Απρίλιος','Μάιος','Ιούνιος',
|
||||
'Ιούλιος','Αύγουστος','Σεπτέμβριος','Οκτώβριος','Νοέμβριος','Δεκέμβριος'],
|
||||
monthNamesShort: ['Ιαν','Φεβ','Μαρ','Απρ','Μαι','Ιουν',
|
||||
'Ιουλ','Αυγ','Σεπ','Οκτ','Νοε','Δεκ'],
|
||||
dayNames: ['Κυριακή','Δευτέρα','Τρίτη','Τετάρτη','Πέμπτη','Παρασκευή','Σάββατο'],
|
||||
dayNamesShort: ['Κυρ','Δευ','Τρι','Τετ','Πεμ','Παρ','Σαβ'],
|
||||
dayNamesMin: ['Κυ','Δε','Τρ','Τε','Πε','Πα','Σα'],
|
||||
weekHeader: 'Εβδ',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['el']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* English/Australia initialisation for the jQuery UI date picker plugin. */
|
||||
/* Based on the en-GB initialisation. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['en-AU'] = {
|
||||
closeText: 'Done',
|
||||
prevText: 'Prev',
|
||||
nextText: 'Next',
|
||||
currentText: 'Today',
|
||||
monthNames: ['January','February','March','April','May','June',
|
||||
'July','August','September','October','November','December'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
|
||||
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
||||
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
||||
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
||||
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['en-AU']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* English/UK initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Stuart. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['en-GB'] = {
|
||||
closeText: 'Done',
|
||||
prevText: 'Prev',
|
||||
nextText: 'Next',
|
||||
currentText: 'Today',
|
||||
monthNames: ['January','February','March','April','May','June',
|
||||
'July','August','September','October','November','December'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
|
||||
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
||||
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
||||
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
||||
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['en-GB']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* English/New Zealand initialisation for the jQuery UI date picker plugin. */
|
||||
/* Based on the en-GB initialisation. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['en-NZ'] = {
|
||||
closeText: 'Done',
|
||||
prevText: 'Prev',
|
||||
nextText: 'Next',
|
||||
currentText: 'Today',
|
||||
monthNames: ['January','February','March','April','May','June',
|
||||
'July','August','September','October','November','December'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
|
||||
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
||||
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
||||
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
||||
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['en-NZ']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Esperanto initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Olivier M. (olivierweb@ifrance.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['eo'] = {
|
||||
closeText: 'Fermi',
|
||||
prevText: '<Anta',
|
||||
nextText: 'Sekv>',
|
||||
currentText: 'Nuna',
|
||||
monthNames: ['Januaro','Februaro','Marto','Aprilo','Majo','Junio',
|
||||
'Julio','Aŭgusto','Septembro','Oktobro','Novembro','Decembro'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Aŭg','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Dimanĉo','Lundo','Mardo','Merkredo','Ĵaŭdo','Vendredo','Sabato'],
|
||||
dayNamesShort: ['Dim','Lun','Mar','Mer','Ĵaŭ','Ven','Sab'],
|
||||
dayNamesMin: ['Di','Lu','Ma','Me','Ĵa','Ve','Sa'],
|
||||
weekHeader: 'Sb',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['eo']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Inicialización en español para la extensión 'UI date picker' para jQuery. */
|
||||
/* Traducido por Vester (xvester@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['es'] = {
|
||||
closeText: 'Cerrar',
|
||||
prevText: '<Ant',
|
||||
nextText: 'Sig>',
|
||||
currentText: 'Hoy',
|
||||
monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio',
|
||||
'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],
|
||||
monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun',
|
||||
'Jul','Ago','Sep','Oct','Nov','Dic'],
|
||||
dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'],
|
||||
dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'],
|
||||
dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'],
|
||||
weekHeader: 'Sm',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['es']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Estonian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Mart Sõmermaa (mrts.pydev at gmail com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['et'] = {
|
||||
closeText: 'Sulge',
|
||||
prevText: 'Eelnev',
|
||||
nextText: 'Järgnev',
|
||||
currentText: 'Täna',
|
||||
monthNames: ['Jaanuar','Veebruar','Märts','Aprill','Mai','Juuni',
|
||||
'Juuli','August','September','Oktoober','November','Detsember'],
|
||||
monthNamesShort: ['Jaan', 'Veebr', 'Märts', 'Apr', 'Mai', 'Juuni',
|
||||
'Juuli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dets'],
|
||||
dayNames: ['Pühapäev', 'Esmaspäev', 'Teisipäev', 'Kolmapäev', 'Neljapäev', 'Reede', 'Laupäev'],
|
||||
dayNamesShort: ['Pühap', 'Esmasp', 'Teisip', 'Kolmap', 'Neljap', 'Reede', 'Laup'],
|
||||
dayNamesMin: ['P','E','T','K','N','R','L'],
|
||||
weekHeader: 'näd',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['et']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Euskarako oinarria 'UI date picker' jquery-ko extentsioarentzat */
|
||||
/* Karrikas-ek itzulia (karrikas@karrikas.com) */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['eu'] = {
|
||||
closeText: 'Egina',
|
||||
prevText: '<Aur',
|
||||
nextText: 'Hur>',
|
||||
currentText: 'Gaur',
|
||||
monthNames: ['urtarrila','otsaila','martxoa','apirila','maiatza','ekaina',
|
||||
'uztaila','abuztua','iraila','urria','azaroa','abendua'],
|
||||
monthNamesShort: ['urt.','ots.','mar.','api.','mai.','eka.',
|
||||
'uzt.','abu.','ira.','urr.','aza.','abe.'],
|
||||
dayNames: ['igandea','astelehena','asteartea','asteazkena','osteguna','ostirala','larunbata'],
|
||||
dayNamesShort: ['ig.','al.','ar.','az.','og.','ol.','lr.'],
|
||||
dayNamesMin: ['ig','al','ar','az','og','ol','lr'],
|
||||
weekHeader: 'As',
|
||||
dateFormat: 'yy-mm-dd',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['eu']);
|
||||
});
|
||||
|
|
@ -1,59 +0,0 @@
|
|||
/* Persian (Farsi) Translation for the jQuery UI date picker plugin. */
|
||||
/* Javad Mowlanezhad -- jmowla@gmail.com */
|
||||
/* Jalali calendar should supported soon! (Its implemented but I have to test it) */
|
||||
jQuery(function($) {
|
||||
$.datepicker.regional['fa'] = {
|
||||
closeText: 'بستن',
|
||||
prevText: '<قبلی',
|
||||
nextText: 'بعدی>',
|
||||
currentText: 'امروز',
|
||||
monthNames: [
|
||||
'فروردين',
|
||||
'ارديبهشت',
|
||||
'خرداد',
|
||||
'تير',
|
||||
'مرداد',
|
||||
'شهريور',
|
||||
'مهر',
|
||||
'آبان',
|
||||
'آذر',
|
||||
'دی',
|
||||
'بهمن',
|
||||
'اسفند'
|
||||
],
|
||||
monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'],
|
||||
dayNames: [
|
||||
'يکشنبه',
|
||||
'دوشنبه',
|
||||
'سهشنبه',
|
||||
'چهارشنبه',
|
||||
'پنجشنبه',
|
||||
'جمعه',
|
||||
'شنبه'
|
||||
],
|
||||
dayNamesShort: [
|
||||
'ی',
|
||||
'د',
|
||||
'س',
|
||||
'چ',
|
||||
'پ',
|
||||
'ج',
|
||||
'ش'
|
||||
],
|
||||
dayNamesMin: [
|
||||
'ی',
|
||||
'د',
|
||||
'س',
|
||||
'چ',
|
||||
'پ',
|
||||
'ج',
|
||||
'ش'
|
||||
],
|
||||
weekHeader: 'هف',
|
||||
dateFormat: 'yy/mm/dd',
|
||||
firstDay: 6,
|
||||
isRTL: true,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fa']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Finnish initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Harri Kilpiö (harrikilpio@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['fi'] = {
|
||||
closeText: 'Sulje',
|
||||
prevText: '«Edellinen',
|
||||
nextText: 'Seuraava»',
|
||||
currentText: 'Tänään',
|
||||
monthNames: ['Tammikuu','Helmikuu','Maaliskuu','Huhtikuu','Toukokuu','Kesäkuu',
|
||||
'Heinäkuu','Elokuu','Syyskuu','Lokakuu','Marraskuu','Joulukuu'],
|
||||
monthNamesShort: ['Tammi','Helmi','Maalis','Huhti','Touko','Kesä',
|
||||
'Heinä','Elo','Syys','Loka','Marras','Joulu'],
|
||||
dayNamesShort: ['Su','Ma','Ti','Ke','To','Pe','La'],
|
||||
dayNames: ['Sunnuntai','Maanantai','Tiistai','Keskiviikko','Torstai','Perjantai','Lauantai'],
|
||||
dayNamesMin: ['Su','Ma','Ti','Ke','To','Pe','La'],
|
||||
weekHeader: 'Vk',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fi']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Faroese initialisation for the jQuery UI date picker plugin */
|
||||
/* Written by Sverri Mohr Olsen, sverrimo@gmail.com */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['fo'] = {
|
||||
closeText: 'Lat aftur',
|
||||
prevText: '<Fyrra',
|
||||
nextText: 'Næsta>',
|
||||
currentText: 'Í dag',
|
||||
monthNames: ['Januar','Februar','Mars','Apríl','Mei','Juni',
|
||||
'Juli','August','September','Oktober','November','Desember'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Des'],
|
||||
dayNames: ['Sunnudagur','Mánadagur','Týsdagur','Mikudagur','Hósdagur','Fríggjadagur','Leyardagur'],
|
||||
dayNamesShort: ['Sun','Mán','Týs','Mik','Hós','Frí','Ley'],
|
||||
dayNamesMin: ['Su','Má','Tý','Mi','Hó','Fr','Le'],
|
||||
weekHeader: 'Vk',
|
||||
dateFormat: 'dd-mm-yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fo']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Canadian-French initialisation for the jQuery UI date picker plugin. */
|
||||
jQuery(function ($) {
|
||||
$.datepicker.regional['fr-CA'] = {
|
||||
closeText: 'Fermer',
|
||||
prevText: 'Précédent',
|
||||
nextText: 'Suivant',
|
||||
currentText: 'Aujourd\'hui',
|
||||
monthNames: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin',
|
||||
'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
|
||||
monthNamesShort: ['janv.', 'févr.', 'mars', 'avril', 'mai', 'juin',
|
||||
'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'],
|
||||
dayNames: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
|
||||
dayNamesShort: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
|
||||
dayNamesMin: ['D', 'L', 'M', 'M', 'J', 'V', 'S'],
|
||||
weekHeader: 'Sem.',
|
||||
dateFormat: 'yy-mm-dd',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''
|
||||
};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fr-CA']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Swiss-French initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written Martin Voelkle (martin.voelkle@e-tc.ch). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['fr-CH'] = {
|
||||
closeText: 'Fermer',
|
||||
prevText: '<Préc',
|
||||
nextText: 'Suiv>',
|
||||
currentText: 'Courant',
|
||||
monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin',
|
||||
'Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
|
||||
monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun',
|
||||
'Jul','Aoû','Sep','Oct','Nov','Déc'],
|
||||
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
|
||||
dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'],
|
||||
dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'],
|
||||
weekHeader: 'Sm',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fr-CH']);
|
||||
});
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
/* French initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Keith Wood (kbwood{at}iinet.com.au),
|
||||
Stéphane Nahmani (sholby@sholby.net),
|
||||
Stéphane Raimbault <stephane.raimbault@gmail.com> */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['fr'] = {
|
||||
closeText: 'Fermer',
|
||||
prevText: 'Précédent',
|
||||
nextText: 'Suivant',
|
||||
currentText: 'Aujourd\'hui',
|
||||
monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin',
|
||||
'Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
|
||||
monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin',
|
||||
'Juil.','Août','Sept.','Oct.','Nov.','Déc.'],
|
||||
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
|
||||
dayNamesShort: ['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'],
|
||||
dayNamesMin: ['D','L','M','M','J','V','S'],
|
||||
weekHeader: 'Sem.',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fr']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Galician localization for 'UI date picker' jQuery extension. */
|
||||
/* Translated by Jorge Barreiro <yortx.barry@gmail.com>. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['gl'] = {
|
||||
closeText: 'Pechar',
|
||||
prevText: '<Ant',
|
||||
nextText: 'Seg>',
|
||||
currentText: 'Hoxe',
|
||||
monthNames: ['Xaneiro','Febreiro','Marzo','Abril','Maio','Xuño',
|
||||
'Xullo','Agosto','Setembro','Outubro','Novembro','Decembro'],
|
||||
monthNamesShort: ['Xan','Feb','Mar','Abr','Mai','Xuñ',
|
||||
'Xul','Ago','Set','Out','Nov','Dec'],
|
||||
dayNames: ['Domingo','Luns','Martes','Mércores','Xoves','Venres','Sábado'],
|
||||
dayNamesShort: ['Dom','Lun','Mar','Mér','Xov','Ven','Sáb'],
|
||||
dayNamesMin: ['Do','Lu','Ma','Mé','Xo','Ve','Sá'],
|
||||
weekHeader: 'Sm',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['gl']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Hebrew initialisation for the UI Datepicker extension. */
|
||||
/* Written by Amir Hardon (ahardon at gmail dot com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['he'] = {
|
||||
closeText: 'סגור',
|
||||
prevText: '<הקודם',
|
||||
nextText: 'הבא>',
|
||||
currentText: 'היום',
|
||||
monthNames: ['ינואר','פברואר','מרץ','אפריל','מאי','יוני',
|
||||
'יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'],
|
||||
monthNamesShort: ['ינו','פבר','מרץ','אפר','מאי','יוני',
|
||||
'יולי','אוג','ספט','אוק','נוב','דצמ'],
|
||||
dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'],
|
||||
dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],
|
||||
dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: true,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['he']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Hindi initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Michael Dawart. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['hi'] = {
|
||||
closeText: 'बंद',
|
||||
prevText: 'पिछला',
|
||||
nextText: 'अगला',
|
||||
currentText: 'आज',
|
||||
monthNames: ['जनवरी ','फरवरी','मार्च','अप्रेल','मई','जून',
|
||||
'जूलाई','अगस्त ','सितम्बर','अक्टूबर','नवम्बर','दिसम्बर'],
|
||||
monthNamesShort: ['जन', 'फर', 'मार्च', 'अप्रेल', 'मई', 'जून',
|
||||
'जूलाई', 'अग', 'सित', 'अक्ट', 'नव', 'दि'],
|
||||
dayNames: ['रविवार', 'सोमवार', 'मंगलवार', 'बुधवार', 'गुरुवार', 'शुक्रवार', 'शनिवार'],
|
||||
dayNamesShort: ['रवि', 'सोम', 'मंगल', 'बुध', 'गुरु', 'शुक्र', 'शनि'],
|
||||
dayNamesMin: ['रवि', 'सोम', 'मंगल', 'बुध', 'गुरु', 'शुक्र', 'शनि'],
|
||||
weekHeader: 'हफ्ता',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['hi']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Croatian i18n for the jQuery UI date picker plugin. */
|
||||
/* Written by Vjekoslav Nesek. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['hr'] = {
|
||||
closeText: 'Zatvori',
|
||||
prevText: '<',
|
||||
nextText: '>',
|
||||
currentText: 'Danas',
|
||||
monthNames: ['Siječanj','Veljača','Ožujak','Travanj','Svibanj','Lipanj',
|
||||
'Srpanj','Kolovoz','Rujan','Listopad','Studeni','Prosinac'],
|
||||
monthNamesShort: ['Sij','Velj','Ožu','Tra','Svi','Lip',
|
||||
'Srp','Kol','Ruj','Lis','Stu','Pro'],
|
||||
dayNames: ['Nedjelja','Ponedjeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'],
|
||||
dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'],
|
||||
dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'],
|
||||
weekHeader: 'Tje',
|
||||
dateFormat: 'dd.mm.yy.',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['hr']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Hungarian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Istvan Karaszi (jquery@spam.raszi.hu). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['hu'] = {
|
||||
closeText: 'bezár',
|
||||
prevText: 'vissza',
|
||||
nextText: 'előre',
|
||||
currentText: 'ma',
|
||||
monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június',
|
||||
'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún',
|
||||
'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'],
|
||||
dayNames: ['Vasárnap', 'Hétfő', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'],
|
||||
dayNamesShort: ['Vas', 'Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo'],
|
||||
dayNamesMin: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'],
|
||||
weekHeader: 'Hét',
|
||||
dateFormat: 'yy.mm.dd.',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['hu']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Armenian(UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Levon Zakaryan (levon.zakaryan@gmail.com)*/
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['hy'] = {
|
||||
closeText: 'Փակել',
|
||||
prevText: '<Նախ.',
|
||||
nextText: 'Հաջ.>',
|
||||
currentText: 'Այսօր',
|
||||
monthNames: ['Հունվար','Փետրվար','Մարտ','Ապրիլ','Մայիս','Հունիս',
|
||||
'Հուլիս','Օգոստոս','Սեպտեմբեր','Հոկտեմբեր','Նոյեմբեր','Դեկտեմբեր'],
|
||||
monthNamesShort: ['Հունվ','Փետր','Մարտ','Ապր','Մայիս','Հունիս',
|
||||
'Հուլ','Օգս','Սեպ','Հոկ','Նոյ','Դեկ'],
|
||||
dayNames: ['կիրակի','եկուշաբթի','երեքշաբթի','չորեքշաբթի','հինգշաբթի','ուրբաթ','շաբաթ'],
|
||||
dayNamesShort: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'],
|
||||
dayNamesMin: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'],
|
||||
weekHeader: 'ՇԲՏ',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['hy']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Indonesian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Deden Fathurahman (dedenf@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['id'] = {
|
||||
closeText: 'Tutup',
|
||||
prevText: '<mundur',
|
||||
nextText: 'maju>',
|
||||
currentText: 'hari ini',
|
||||
monthNames: ['Januari','Februari','Maret','April','Mei','Juni',
|
||||
'Juli','Agustus','September','Oktober','Nopember','Desember'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun',
|
||||
'Jul','Agus','Sep','Okt','Nop','Des'],
|
||||
dayNames: ['Minggu','Senin','Selasa','Rabu','Kamis','Jumat','Sabtu'],
|
||||
dayNamesShort: ['Min','Sen','Sel','Rab','kam','Jum','Sab'],
|
||||
dayNamesMin: ['Mg','Sn','Sl','Rb','Km','jm','Sb'],
|
||||
weekHeader: 'Mg',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['id']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Icelandic initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Haukur H. Thorsson (haukur@eskill.is). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['is'] = {
|
||||
closeText: 'Loka',
|
||||
prevText: '< Fyrri',
|
||||
nextText: 'Næsti >',
|
||||
currentText: 'Í dag',
|
||||
monthNames: ['Janúar','Febrúar','Mars','Apríl','Maí','Júní',
|
||||
'Júlí','Ágúst','September','Október','Nóvember','Desember'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maí','Jún',
|
||||
'Júl','Ágú','Sep','Okt','Nóv','Des'],
|
||||
dayNames: ['Sunnudagur','Mánudagur','Þriðjudagur','Miðvikudagur','Fimmtudagur','Föstudagur','Laugardagur'],
|
||||
dayNamesShort: ['Sun','Mán','Þri','Mið','Fim','Fös','Lau'],
|
||||
dayNamesMin: ['Su','Má','Þr','Mi','Fi','Fö','La'],
|
||||
weekHeader: 'Vika',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['is']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Italian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Antonello Pasella (antonello.pasella@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['it'] = {
|
||||
closeText: 'Chiudi',
|
||||
prevText: '<Prec',
|
||||
nextText: 'Succ>',
|
||||
currentText: 'Oggi',
|
||||
monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno',
|
||||
'Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'],
|
||||
monthNamesShort: ['Gen','Feb','Mar','Apr','Mag','Giu',
|
||||
'Lug','Ago','Set','Ott','Nov','Dic'],
|
||||
dayNames: ['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'],
|
||||
dayNamesShort: ['Dom','Lun','Mar','Mer','Gio','Ven','Sab'],
|
||||
dayNamesMin: ['Do','Lu','Ma','Me','Gi','Ve','Sa'],
|
||||
weekHeader: 'Sm',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['it']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Japanese initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Kentaro SATO (kentaro@ranvis.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ja'] = {
|
||||
closeText: '閉じる',
|
||||
prevText: '<前',
|
||||
nextText: '次>',
|
||||
currentText: '今日',
|
||||
monthNames: ['1月','2月','3月','4月','5月','6月',
|
||||
'7月','8月','9月','10月','11月','12月'],
|
||||
monthNamesShort: ['1月','2月','3月','4月','5月','6月',
|
||||
'7月','8月','9月','10月','11月','12月'],
|
||||
dayNames: ['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'],
|
||||
dayNamesShort: ['日','月','火','水','木','金','土'],
|
||||
dayNamesMin: ['日','月','火','水','木','金','土'],
|
||||
weekHeader: '週',
|
||||
dateFormat: 'yy/mm/dd',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: '年'};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ja']);
|
||||
});
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
/* Georgian (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Lado Lomidze (lado.lomidze@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ka'] = {
|
||||
closeText: 'დახურვა',
|
||||
prevText: '< წინა',
|
||||
nextText: 'შემდეგი >',
|
||||
currentText: 'დღეს',
|
||||
monthNames: ['იანვარი','თებერვალი','მარტი','აპრილი','მაისი','ივნისი', 'ივლისი','აგვისტო','სექტემბერი','ოქტომბერი','ნოემბერი','დეკემბერი'],
|
||||
monthNamesShort: ['იან','თებ','მარ','აპრ','მაი','ივნ', 'ივლ','აგვ','სექ','ოქტ','ნოე','დეკ'],
|
||||
dayNames: ['კვირა','ორშაბათი','სამშაბათი','ოთხშაბათი','ხუთშაბათი','პარასკევი','შაბათი'],
|
||||
dayNamesShort: ['კვ','ორშ','სამ','ოთხ','ხუთ','პარ','შაბ'],
|
||||
dayNamesMin: ['კვ','ორშ','სამ','ოთხ','ხუთ','პარ','შაბ'],
|
||||
weekHeader: 'კვირა',
|
||||
dateFormat: 'dd-mm-yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ka']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Kazakh (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Dmitriy Karasyov (dmitriy.karasyov@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['kk'] = {
|
||||
closeText: 'Жабу',
|
||||
prevText: '<Алдыңғы',
|
||||
nextText: 'Келесі>',
|
||||
currentText: 'Бүгін',
|
||||
monthNames: ['Қаңтар','Ақпан','Наурыз','Сәуір','Мамыр','Маусым',
|
||||
'Шілде','Тамыз','Қыркүйек','Қазан','Қараша','Желтоқсан'],
|
||||
monthNamesShort: ['Қаң','Ақп','Нау','Сәу','Мам','Мау',
|
||||
'Шіл','Там','Қыр','Қаз','Қар','Жел'],
|
||||
dayNames: ['Жексенбі','Дүйсенбі','Сейсенбі','Сәрсенбі','Бейсенбі','Жұма','Сенбі'],
|
||||
dayNamesShort: ['жкс','дсн','ссн','срс','бсн','жма','снб'],
|
||||
dayNamesMin: ['Жк','Дс','Сс','Ср','Бс','Жм','Сн'],
|
||||
weekHeader: 'Не',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['kk']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Khmer initialisation for the jQuery calendar extension. */
|
||||
/* Written by Chandara Om (chandara.teacher@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['km'] = {
|
||||
closeText: 'ធ្វើរួច',
|
||||
prevText: 'មុន',
|
||||
nextText: 'បន្ទាប់',
|
||||
currentText: 'ថ្ងៃនេះ',
|
||||
monthNames: ['មករា','កុម្ភៈ','មីនា','មេសា','ឧសភា','មិថុនា',
|
||||
'កក្កដា','សីហា','កញ្ញា','តុលា','វិច្ឆិកា','ធ្នូ'],
|
||||
monthNamesShort: ['មករា','កុម្ភៈ','មីនា','មេសា','ឧសភា','មិថុនា',
|
||||
'កក្កដា','សីហា','កញ្ញា','តុលា','វិច្ឆិកា','ធ្នូ'],
|
||||
dayNames: ['អាទិត្យ', 'ចន្ទ', 'អង្គារ', 'ពុធ', 'ព្រហស្បតិ៍', 'សុក្រ', 'សៅរ៍'],
|
||||
dayNamesShort: ['អា', 'ច', 'អ', 'ពុ', 'ព្រហ', 'សុ', 'សៅ'],
|
||||
dayNamesMin: ['អា', 'ច', 'អ', 'ពុ', 'ព្រហ', 'សុ', 'សៅ'],
|
||||
weekHeader: 'សប្ដាហ៍',
|
||||
dateFormat: 'dd-mm-yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['km']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Korean initialisation for the jQuery calendar extension. */
|
||||
/* Written by DaeKwon Kang (ncrash.dk@gmail.com), Edited by Genie. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ko'] = {
|
||||
closeText: '닫기',
|
||||
prevText: '이전달',
|
||||
nextText: '다음달',
|
||||
currentText: '오늘',
|
||||
monthNames: ['1월','2월','3월','4월','5월','6월',
|
||||
'7월','8월','9월','10월','11월','12월'],
|
||||
monthNamesShort: ['1월','2월','3월','4월','5월','6월',
|
||||
'7월','8월','9월','10월','11월','12월'],
|
||||
dayNames: ['일요일','월요일','화요일','수요일','목요일','금요일','토요일'],
|
||||
dayNamesShort: ['일','월','화','수','목','금','토'],
|
||||
dayNamesMin: ['일','월','화','수','목','금','토'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'yy-mm-dd',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: '년'};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ko']);
|
||||
});
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
/* Kyrgyz (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Sergey Kartashov (ebishkek@yandex.ru). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ky'] = {
|
||||
closeText: 'Жабуу',
|
||||
prevText: '<Мур',
|
||||
nextText: 'Кий>',
|
||||
currentText: 'Бүгүн',
|
||||
monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь',
|
||||
'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'],
|
||||
monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн',
|
||||
'Июл','Авг','Сен','Окт','Ноя','Дек'],
|
||||
dayNames: ['жекшемби', 'дүйшөмбү', 'шейшемби', 'шаршемби', 'бейшемби', 'жума', 'ишемби'],
|
||||
dayNamesShort: ['жек', 'дүй', 'шей', 'шар', 'бей', 'жум', 'ише'],
|
||||
dayNamesMin: ['Жк','Дш','Шш','Шр','Бш','Жм','Иш'],
|
||||
weekHeader: 'Жум',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''
|
||||
};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ky']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Luxembourgish initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Michel Weimerskirch <michel@weimerskirch.net> */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['lb'] = {
|
||||
closeText: 'Fäerdeg',
|
||||
prevText: 'Zréck',
|
||||
nextText: 'Weider',
|
||||
currentText: 'Haut',
|
||||
monthNames: ['Januar','Februar','Mäerz','Abrëll','Mee','Juni',
|
||||
'Juli','August','September','Oktober','November','Dezember'],
|
||||
monthNamesShort: ['Jan', 'Feb', 'Mäe', 'Abr', 'Mee', 'Jun',
|
||||
'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],
|
||||
dayNames: ['Sonndeg', 'Méindeg', 'Dënschdeg', 'Mëttwoch', 'Donneschdeg', 'Freideg', 'Samschdeg'],
|
||||
dayNamesShort: ['Son', 'Méi', 'Dën', 'Mët', 'Don', 'Fre', 'Sam'],
|
||||
dayNamesMin: ['So','Mé','Dë','Më','Do','Fr','Sa'],
|
||||
weekHeader: 'W',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['lb']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Lithuanian (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* @author Arturas Paleicikas <arturas@avalon.lt> */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['lt'] = {
|
||||
closeText: 'Uždaryti',
|
||||
prevText: '<Atgal',
|
||||
nextText: 'Pirmyn>',
|
||||
currentText: 'Šiandien',
|
||||
monthNames: ['Sausis','Vasaris','Kovas','Balandis','Gegužė','Birželis',
|
||||
'Liepa','Rugpjūtis','Rugsėjis','Spalis','Lapkritis','Gruodis'],
|
||||
monthNamesShort: ['Sau','Vas','Kov','Bal','Geg','Bir',
|
||||
'Lie','Rugp','Rugs','Spa','Lap','Gru'],
|
||||
dayNames: ['sekmadienis','pirmadienis','antradienis','trečiadienis','ketvirtadienis','penktadienis','šeštadienis'],
|
||||
dayNamesShort: ['sek','pir','ant','tre','ket','pen','šeš'],
|
||||
dayNamesMin: ['Se','Pr','An','Tr','Ke','Pe','Še'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'yy-mm-dd',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['lt']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Latvian (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* @author Arturas Paleicikas <arturas.paleicikas@metasite.net> */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['lv'] = {
|
||||
closeText: 'Aizvērt',
|
||||
prevText: 'Iepr',
|
||||
nextText: 'Nāka',
|
||||
currentText: 'Šodien',
|
||||
monthNames: ['Janvāris','Februāris','Marts','Aprīlis','Maijs','Jūnijs',
|
||||
'Jūlijs','Augusts','Septembris','Oktobris','Novembris','Decembris'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Mai','Jūn',
|
||||
'Jūl','Aug','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['svētdiena','pirmdiena','otrdiena','trešdiena','ceturtdiena','piektdiena','sestdiena'],
|
||||
dayNamesShort: ['svt','prm','otr','tre','ctr','pkt','sst'],
|
||||
dayNamesMin: ['Sv','Pr','Ot','Tr','Ct','Pk','Ss'],
|
||||
weekHeader: 'Nav',
|
||||
dateFormat: 'dd-mm-yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['lv']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Macedonian i18n for the jQuery UI date picker plugin. */
|
||||
/* Written by Stojce Slavkovski. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['mk'] = {
|
||||
closeText: 'Затвори',
|
||||
prevText: '<',
|
||||
nextText: '>',
|
||||
currentText: 'Денес',
|
||||
monthNames: ['Јануари','Февруари','Март','Април','Мај','Јуни',
|
||||
'Јули','Август','Септември','Октомври','Ноември','Декември'],
|
||||
monthNamesShort: ['Јан','Фев','Мар','Апр','Мај','Јун',
|
||||
'Јул','Авг','Сеп','Окт','Ное','Дек'],
|
||||
dayNames: ['Недела','Понеделник','Вторник','Среда','Четврток','Петок','Сабота'],
|
||||
dayNamesShort: ['Нед','Пон','Вто','Сре','Чет','Пет','Саб'],
|
||||
dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Са'],
|
||||
weekHeader: 'Сед',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['mk']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Malayalam (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Saji Nediyanchath (saji89@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ml'] = {
|
||||
closeText: 'ശരി',
|
||||
prevText: 'മുന്നത്തെ',
|
||||
nextText: 'അടുത്തത് ',
|
||||
currentText: 'ഇന്ന്',
|
||||
monthNames: ['ജനുവരി','ഫെബ്രുവരി','മാര്ച്ച്','ഏപ്രില്','മേയ്','ജൂണ്',
|
||||
'ജൂലൈ','ആഗസ്റ്റ്','സെപ്റ്റംബര്','ഒക്ടോബര്','നവംബര്','ഡിസംബര്'],
|
||||
monthNamesShort: ['ജനു', 'ഫെബ്', 'മാര്', 'ഏപ്രി', 'മേയ്', 'ജൂണ്',
|
||||
'ജൂലാ', 'ആഗ', 'സെപ്', 'ഒക്ടോ', 'നവം', 'ഡിസ'],
|
||||
dayNames: ['ഞായര്', 'തിങ്കള്', 'ചൊവ്വ', 'ബുധന്', 'വ്യാഴം', 'വെള്ളി', 'ശനി'],
|
||||
dayNamesShort: ['ഞായ', 'തിങ്ക', 'ചൊവ്വ', 'ബുധ', 'വ്യാഴം', 'വെള്ളി', 'ശനി'],
|
||||
dayNamesMin: ['ഞാ','തി','ചൊ','ബു','വ്യാ','വെ','ശ'],
|
||||
weekHeader: 'ആ',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ml']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Malaysian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Mohd Nawawi Mohamad Jamili (nawawi@ronggeng.net). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ms'] = {
|
||||
closeText: 'Tutup',
|
||||
prevText: '<Sebelum',
|
||||
nextText: 'Selepas>',
|
||||
currentText: 'hari ini',
|
||||
monthNames: ['Januari','Februari','Mac','April','Mei','Jun',
|
||||
'Julai','Ogos','September','Oktober','November','Disember'],
|
||||
monthNamesShort: ['Jan','Feb','Mac','Apr','Mei','Jun',
|
||||
'Jul','Ogo','Sep','Okt','Nov','Dis'],
|
||||
dayNames: ['Ahad','Isnin','Selasa','Rabu','Khamis','Jumaat','Sabtu'],
|
||||
dayNamesShort: ['Aha','Isn','Sel','Rab','kha','Jum','Sab'],
|
||||
dayNamesMin: ['Ah','Is','Se','Ra','Kh','Ju','Sa'],
|
||||
weekHeader: 'Mg',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ms']);
|
||||
});
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
/* Norwegian Bokmål initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Bjørn Johansen (post@bjornjohansen.no). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['nb'] = {
|
||||
closeText: 'Lukk',
|
||||
prevText: '«Forrige',
|
||||
nextText: 'Neste»',
|
||||
currentText: 'I dag',
|
||||
monthNames: ['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember'],
|
||||
monthNamesShort: ['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des'],
|
||||
dayNamesShort: ['søn','man','tir','ons','tor','fre','lør'],
|
||||
dayNames: ['søndag','mandag','tirsdag','onsdag','torsdag','fredag','lørdag'],
|
||||
dayNamesMin: ['sø','ma','ti','on','to','fr','lø'],
|
||||
weekHeader: 'Uke',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''
|
||||
};
|
||||
$.datepicker.setDefaults($.datepicker.regional['nb']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Dutch (Belgium) initialisation for the jQuery UI date picker plugin. */
|
||||
/* David De Sloovere @DavidDeSloovere */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['nl-BE'] = {
|
||||
closeText: 'Sluiten',
|
||||
prevText: '←',
|
||||
nextText: '→',
|
||||
currentText: 'Vandaag',
|
||||
monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni',
|
||||
'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
|
||||
monthNamesShort: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun',
|
||||
'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
|
||||
dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
|
||||
dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'],
|
||||
dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['nl-BE']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Dutch (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Mathias Bynens <http://mathiasbynens.be/> */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional.nl = {
|
||||
closeText: 'Sluiten',
|
||||
prevText: '←',
|
||||
nextText: '→',
|
||||
currentText: 'Vandaag',
|
||||
monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni',
|
||||
'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
|
||||
monthNamesShort: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun',
|
||||
'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
|
||||
dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
|
||||
dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'],
|
||||
dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd-mm-yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional.nl);
|
||||
});
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
/* Norwegian Nynorsk initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Bjørn Johansen (post@bjornjohansen.no). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['nn'] = {
|
||||
closeText: 'Lukk',
|
||||
prevText: '«Førre',
|
||||
nextText: 'Neste»',
|
||||
currentText: 'I dag',
|
||||
monthNames: ['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember'],
|
||||
monthNamesShort: ['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des'],
|
||||
dayNamesShort: ['sun','mån','tys','ons','tor','fre','lau'],
|
||||
dayNames: ['sundag','måndag','tysdag','onsdag','torsdag','fredag','laurdag'],
|
||||
dayNamesMin: ['su','må','ty','on','to','fr','la'],
|
||||
weekHeader: 'Veke',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''
|
||||
};
|
||||
$.datepicker.setDefaults($.datepicker.regional['nn']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Norwegian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Naimdjon Takhirov (naimdjon@gmail.com). */
|
||||
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['no'] = {
|
||||
closeText: 'Lukk',
|
||||
prevText: '«Forrige',
|
||||
nextText: 'Neste»',
|
||||
currentText: 'I dag',
|
||||
monthNames: ['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember'],
|
||||
monthNamesShort: ['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des'],
|
||||
dayNamesShort: ['søn','man','tir','ons','tor','fre','lør'],
|
||||
dayNames: ['søndag','mandag','tirsdag','onsdag','torsdag','fredag','lørdag'],
|
||||
dayNamesMin: ['sø','ma','ti','on','to','fr','lø'],
|
||||
weekHeader: 'Uke',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''
|
||||
};
|
||||
$.datepicker.setDefaults($.datepicker.regional['no']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Polish initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Jacek Wysocki (jacek.wysocki@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['pl'] = {
|
||||
closeText: 'Zamknij',
|
||||
prevText: '<Poprzedni',
|
||||
nextText: 'Następny>',
|
||||
currentText: 'Dziś',
|
||||
monthNames: ['Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec',
|
||||
'Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień'],
|
||||
monthNamesShort: ['Sty','Lu','Mar','Kw','Maj','Cze',
|
||||
'Lip','Sie','Wrz','Pa','Lis','Gru'],
|
||||
dayNames: ['Niedziela','Poniedziałek','Wtorek','Środa','Czwartek','Piątek','Sobota'],
|
||||
dayNamesShort: ['Nie','Pn','Wt','Śr','Czw','Pt','So'],
|
||||
dayNamesMin: ['N','Pn','Wt','Śr','Cz','Pt','So'],
|
||||
weekHeader: 'Tydz',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['pl']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Brazilian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Leonildo Costa Silva (leocsilva@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['pt-BR'] = {
|
||||
closeText: 'Fechar',
|
||||
prevText: '<Anterior',
|
||||
nextText: 'Próximo>',
|
||||
currentText: 'Hoje',
|
||||
monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho',
|
||||
'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
|
||||
monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun',
|
||||
'Jul','Ago','Set','Out','Nov','Dez'],
|
||||
dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sábado'],
|
||||
dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
|
||||
dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
|
||||
weekHeader: 'Sm',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['pt-BR']);
|
||||
});
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
/* Portuguese initialisation for the jQuery UI date picker plugin. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['pt'] = {
|
||||
closeText: 'Fechar',
|
||||
prevText: '<Anterior',
|
||||
nextText: 'Seguinte',
|
||||
currentText: 'Hoje',
|
||||
monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho',
|
||||
'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
|
||||
monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun',
|
||||
'Jul','Ago','Set','Out','Nov','Dez'],
|
||||
dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sábado'],
|
||||
dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
|
||||
dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
|
||||
weekHeader: 'Sem',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['pt']);
|
||||
});
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
/* Romansh initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Yvonne Gienal (yvonne.gienal@educa.ch). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['rm'] = {
|
||||
closeText: 'Serrar',
|
||||
prevText: '<Suandant',
|
||||
nextText: 'Precedent>',
|
||||
currentText: 'Actual',
|
||||
monthNames: ['Schaner','Favrer','Mars','Avrigl','Matg','Zercladur', 'Fanadur','Avust','Settember','October','November','December'],
|
||||
monthNamesShort: ['Scha','Fev','Mar','Avr','Matg','Zer', 'Fan','Avu','Sett','Oct','Nov','Dec'],
|
||||
dayNames: ['Dumengia','Glindesdi','Mardi','Mesemna','Gievgia','Venderdi','Sonda'],
|
||||
dayNamesShort: ['Dum','Gli','Mar','Mes','Gie','Ven','Som'],
|
||||
dayNamesMin: ['Du','Gl','Ma','Me','Gi','Ve','So'],
|
||||
weekHeader: 'emna',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['rm']);
|
||||
});
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
/* Romanian initialisation for the jQuery UI date picker plugin.
|
||||
*
|
||||
* Written by Edmond L. (ll_edmond@walla.com)
|
||||
* and Ionut G. Stan (ionut.g.stan@gmail.com)
|
||||
*/
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ro'] = {
|
||||
closeText: 'Închide',
|
||||
prevText: '« Luna precedentă',
|
||||
nextText: 'Luna următoare »',
|
||||
currentText: 'Azi',
|
||||
monthNames: ['Ianuarie','Februarie','Martie','Aprilie','Mai','Iunie',
|
||||
'Iulie','August','Septembrie','Octombrie','Noiembrie','Decembrie'],
|
||||
monthNamesShort: ['Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Iun',
|
||||
'Iul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
||||
dayNames: ['Duminică', 'Luni', 'Marţi', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă'],
|
||||
dayNamesShort: ['Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sâm'],
|
||||
dayNamesMin: ['Du','Lu','Ma','Mi','Jo','Vi','Sâ'],
|
||||
weekHeader: 'Săpt',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ro']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Russian (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Andrew Stromnov (stromnov@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ru'] = {
|
||||
closeText: 'Закрыть',
|
||||
prevText: '<Пред',
|
||||
nextText: 'След>',
|
||||
currentText: 'Сегодня',
|
||||
monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь',
|
||||
'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'],
|
||||
monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн',
|
||||
'Июл','Авг','Сен','Окт','Ноя','Дек'],
|
||||
dayNames: ['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'],
|
||||
dayNamesShort: ['вск','пнд','втр','срд','чтв','птн','сбт'],
|
||||
dayNamesMin: ['Вс','Пн','Вт','Ср','Чт','Пт','Сб'],
|
||||
weekHeader: 'Нед',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ru']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Slovak initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Vojtech Rinik (vojto@hmm.sk). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['sk'] = {
|
||||
closeText: 'Zavrieť',
|
||||
prevText: '<Predchádzajúci',
|
||||
nextText: 'Nasledujúci>',
|
||||
currentText: 'Dnes',
|
||||
monthNames: ['január','február','marec','apríl','máj','jún',
|
||||
'júl','august','september','október','november','december'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Máj','Jún',
|
||||
'Júl','Aug','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['nedeľa','pondelok','utorok','streda','štvrtok','piatok','sobota'],
|
||||
dayNamesShort: ['Ned','Pon','Uto','Str','Štv','Pia','Sob'],
|
||||
dayNamesMin: ['Ne','Po','Ut','St','Št','Pia','So'],
|
||||
weekHeader: 'Ty',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['sk']);
|
||||
});
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
/* Slovenian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Jaka Jancar (jaka@kubje.org). */
|
||||
/* c = č, s = š z = ž C = Č S = Š Z = Ž */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['sl'] = {
|
||||
closeText: 'Zapri',
|
||||
prevText: '<Prejšnji',
|
||||
nextText: 'Naslednji>',
|
||||
currentText: 'Trenutni',
|
||||
monthNames: ['Januar','Februar','Marec','April','Maj','Junij',
|
||||
'Julij','Avgust','September','Oktober','November','December'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Avg','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Nedelja','Ponedeljek','Torek','Sreda','Četrtek','Petek','Sobota'],
|
||||
dayNamesShort: ['Ned','Pon','Tor','Sre','Čet','Pet','Sob'],
|
||||
dayNamesMin: ['Ne','Po','To','Sr','Če','Pe','So'],
|
||||
weekHeader: 'Teden',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['sl']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Albanian initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Flakron Bytyqi (flakron@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['sq'] = {
|
||||
closeText: 'mbylle',
|
||||
prevText: '<mbrapa',
|
||||
nextText: 'Përpara>',
|
||||
currentText: 'sot',
|
||||
monthNames: ['Janar','Shkurt','Mars','Prill','Maj','Qershor',
|
||||
'Korrik','Gusht','Shtator','Tetor','Nëntor','Dhjetor'],
|
||||
monthNamesShort: ['Jan','Shk','Mar','Pri','Maj','Qer',
|
||||
'Kor','Gus','Sht','Tet','Nën','Dhj'],
|
||||
dayNames: ['E Diel','E Hënë','E Martë','E Mërkurë','E Enjte','E Premte','E Shtune'],
|
||||
dayNamesShort: ['Di','Hë','Ma','Më','En','Pr','Sh'],
|
||||
dayNamesMin: ['Di','Hë','Ma','Më','En','Pr','Sh'],
|
||||
weekHeader: 'Ja',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['sq']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Serbian i18n for the jQuery UI date picker plugin. */
|
||||
/* Written by Dejan Dimić. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['sr-SR'] = {
|
||||
closeText: 'Zatvori',
|
||||
prevText: '<',
|
||||
nextText: '>',
|
||||
currentText: 'Danas',
|
||||
monthNames: ['Januar','Februar','Mart','April','Maj','Jun',
|
||||
'Jul','Avgust','Septembar','Oktobar','Novembar','Decembar'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Avg','Sep','Okt','Nov','Dec'],
|
||||
dayNames: ['Nedelja','Ponedeljak','Utorak','Sreda','Četvrtak','Petak','Subota'],
|
||||
dayNamesShort: ['Ned','Pon','Uto','Sre','Čet','Pet','Sub'],
|
||||
dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'],
|
||||
weekHeader: 'Sed',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['sr-SR']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Serbian i18n for the jQuery UI date picker plugin. */
|
||||
/* Written by Dejan Dimić. */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['sr'] = {
|
||||
closeText: 'Затвори',
|
||||
prevText: '<',
|
||||
nextText: '>',
|
||||
currentText: 'Данас',
|
||||
monthNames: ['Јануар','Фебруар','Март','Април','Мај','Јун',
|
||||
'Јул','Август','Септембар','Октобар','Новембар','Децембар'],
|
||||
monthNamesShort: ['Јан','Феб','Мар','Апр','Мај','Јун',
|
||||
'Јул','Авг','Сеп','Окт','Нов','Дец'],
|
||||
dayNames: ['Недеља','Понедељак','Уторак','Среда','Четвртак','Петак','Субота'],
|
||||
dayNamesShort: ['Нед','Пон','Уто','Сре','Чет','Пет','Суб'],
|
||||
dayNamesMin: ['Не','По','Ут','Ср','Че','Пе','Су'],
|
||||
weekHeader: 'Сед',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['sr']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Swedish initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Anders Ekdahl ( anders@nomadiz.se). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['sv'] = {
|
||||
closeText: 'Stäng',
|
||||
prevText: '«Förra',
|
||||
nextText: 'Nästa»',
|
||||
currentText: 'Idag',
|
||||
monthNames: ['Januari','Februari','Mars','April','Maj','Juni',
|
||||
'Juli','Augusti','September','Oktober','November','December'],
|
||||
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
|
||||
'Jul','Aug','Sep','Okt','Nov','Dec'],
|
||||
dayNamesShort: ['Sön','Mån','Tis','Ons','Tor','Fre','Lör'],
|
||||
dayNames: ['Söndag','Måndag','Tisdag','Onsdag','Torsdag','Fredag','Lördag'],
|
||||
dayNamesMin: ['Sö','Må','Ti','On','To','Fr','Lö'],
|
||||
weekHeader: 'Ve',
|
||||
dateFormat: 'yy-mm-dd',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['sv']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Tamil (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by S A Sureshkumar (saskumar@live.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ta'] = {
|
||||
closeText: 'மூடு',
|
||||
prevText: 'முன்னையது',
|
||||
nextText: 'அடுத்தது',
|
||||
currentText: 'இன்று',
|
||||
monthNames: ['தை','மாசி','பங்குனி','சித்திரை','வைகாசி','ஆனி',
|
||||
'ஆடி','ஆவணி','புரட்டாசி','ஐப்பசி','கார்த்திகை','மார்கழி'],
|
||||
monthNamesShort: ['தை','மாசி','பங்','சித்','வைகா','ஆனி',
|
||||
'ஆடி','ஆவ','புர','ஐப்','கார்','மார்'],
|
||||
dayNames: ['ஞாயிற்றுக்கிழமை','திங்கட்கிழமை','செவ்வாய்க்கிழமை','புதன்கிழமை','வியாழக்கிழமை','வெள்ளிக்கிழமை','சனிக்கிழமை'],
|
||||
dayNamesShort: ['ஞாயிறு','திங்கள்','செவ்வாய்','புதன்','வியாழன்','வெள்ளி','சனி'],
|
||||
dayNamesMin: ['ஞா','தி','செ','பு','வி','வெ','ச'],
|
||||
weekHeader: 'Не',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ta']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Thai initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by pipo (pipo@sixhead.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['th'] = {
|
||||
closeText: 'ปิด',
|
||||
prevText: '« ย้อน',
|
||||
nextText: 'ถัดไป »',
|
||||
currentText: 'วันนี้',
|
||||
monthNames: ['มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน',
|
||||
'กรกฎาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม'],
|
||||
monthNamesShort: ['ม.ค.','ก.พ.','มี.ค.','เม.ย.','พ.ค.','มิ.ย.',
|
||||
'ก.ค.','ส.ค.','ก.ย.','ต.ค.','พ.ย.','ธ.ค.'],
|
||||
dayNames: ['อาทิตย์','จันทร์','อังคาร','พุธ','พฤหัสบดี','ศุกร์','เสาร์'],
|
||||
dayNamesShort: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'],
|
||||
dayNamesMin: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'],
|
||||
weekHeader: 'Wk',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['th']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Tajiki (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Abdurahmon Saidov (saidovab@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['tj'] = {
|
||||
closeText: 'Идома',
|
||||
prevText: '<Қафо',
|
||||
nextText: 'Пеш>',
|
||||
currentText: 'Имрӯз',
|
||||
monthNames: ['Январ','Феврал','Март','Апрел','Май','Июн',
|
||||
'Июл','Август','Сентябр','Октябр','Ноябр','Декабр'],
|
||||
monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн',
|
||||
'Июл','Авг','Сен','Окт','Ноя','Дек'],
|
||||
dayNames: ['якшанбе','душанбе','сешанбе','чоршанбе','панҷшанбе','ҷумъа','шанбе'],
|
||||
dayNamesShort: ['якш','душ','сеш','чор','пан','ҷум','шан'],
|
||||
dayNamesMin: ['Як','Дш','Сш','Чш','Пш','Ҷм','Шн'],
|
||||
weekHeader: 'Хф',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['tj']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Turkish initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Izzet Emre Erkan (kara@karalamalar.net). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['tr'] = {
|
||||
closeText: 'kapat',
|
||||
prevText: '<geri',
|
||||
nextText: 'ileri>',
|
||||
currentText: 'bugün',
|
||||
monthNames: ['Ocak','Şubat','Mart','Nisan','Mayıs','Haziran',
|
||||
'Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık'],
|
||||
monthNamesShort: ['Oca','Şub','Mar','Nis','May','Haz',
|
||||
'Tem','Ağu','Eyl','Eki','Kas','Ara'],
|
||||
dayNames: ['Pazar','Pazartesi','Salı','Çarşamba','Perşembe','Cuma','Cumartesi'],
|
||||
dayNamesShort: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'],
|
||||
dayNamesMin: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'],
|
||||
weekHeader: 'Hf',
|
||||
dateFormat: 'dd.mm.yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['tr']);
|
||||
});
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
/* Ukrainian (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Maxim Drogobitskiy (maxdao@gmail.com). */
|
||||
/* Corrected by Igor Milla (igor.fsp.milla@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['uk'] = {
|
||||
closeText: 'Закрити',
|
||||
prevText: '<',
|
||||
nextText: '>',
|
||||
currentText: 'Сьогодні',
|
||||
monthNames: ['Січень','Лютий','Березень','Квітень','Травень','Червень',
|
||||
'Липень','Серпень','Вересень','Жовтень','Листопад','Грудень'],
|
||||
monthNamesShort: ['Січ','Лют','Бер','Кві','Тра','Чер',
|
||||
'Лип','Сер','Вер','Жов','Лис','Гру'],
|
||||
dayNames: ['неділя','понеділок','вівторок','середа','четвер','п’ятниця','субота'],
|
||||
dayNamesShort: ['нед','пнд','вів','срд','чтв','птн','сбт'],
|
||||
dayNamesMin: ['Нд','Пн','Вт','Ср','Чт','Пт','Сб'],
|
||||
weekHeader: 'Тиж',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['uk']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Vietnamese initialisation for the jQuery UI date picker plugin. */
|
||||
/* Translated by Le Thanh Huy (lthanhhuy@cit.ctu.edu.vn). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['vi'] = {
|
||||
closeText: 'Đóng',
|
||||
prevText: '<Trước',
|
||||
nextText: 'Tiếp>',
|
||||
currentText: 'Hôm nay',
|
||||
monthNames: ['Tháng Một', 'Tháng Hai', 'Tháng Ba', 'Tháng Tư', 'Tháng Năm', 'Tháng Sáu',
|
||||
'Tháng Bảy', 'Tháng Tám', 'Tháng Chín', 'Tháng Mười', 'Tháng Mười Một', 'Tháng Mười Hai'],
|
||||
monthNamesShort: ['Tháng 1', 'Tháng 2', 'Tháng 3', 'Tháng 4', 'Tháng 5', 'Tháng 6',
|
||||
'Tháng 7', 'Tháng 8', 'Tháng 9', 'Tháng 10', 'Tháng 11', 'Tháng 12'],
|
||||
dayNames: ['Chủ Nhật', 'Thứ Hai', 'Thứ Ba', 'Thứ Tư', 'Thứ Năm', 'Thứ Sáu', 'Thứ Bảy'],
|
||||
dayNamesShort: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'],
|
||||
dayNamesMin: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'],
|
||||
weekHeader: 'Tu',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['vi']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Chinese initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Cloudream (cloudream@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['zh-CN'] = {
|
||||
closeText: '关闭',
|
||||
prevText: '<上月',
|
||||
nextText: '下月>',
|
||||
currentText: '今天',
|
||||
monthNames: ['一月','二月','三月','四月','五月','六月',
|
||||
'七月','八月','九月','十月','十一月','十二月'],
|
||||
monthNamesShort: ['一月','二月','三月','四月','五月','六月',
|
||||
'七月','八月','九月','十月','十一月','十二月'],
|
||||
dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
|
||||
dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'],
|
||||
dayNamesMin: ['日','一','二','三','四','五','六'],
|
||||
weekHeader: '周',
|
||||
dateFormat: 'yy-mm-dd',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: '年'};
|
||||
$.datepicker.setDefaults($.datepicker.regional['zh-CN']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Chinese initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by SCCY (samuelcychan@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['zh-HK'] = {
|
||||
closeText: '關閉',
|
||||
prevText: '<上月',
|
||||
nextText: '下月>',
|
||||
currentText: '今天',
|
||||
monthNames: ['一月','二月','三月','四月','五月','六月',
|
||||
'七月','八月','九月','十月','十一月','十二月'],
|
||||
monthNamesShort: ['一月','二月','三月','四月','五月','六月',
|
||||
'七月','八月','九月','十月','十一月','十二月'],
|
||||
dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
|
||||
dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'],
|
||||
dayNamesMin: ['日','一','二','三','四','五','六'],
|
||||
weekHeader: '周',
|
||||
dateFormat: 'dd-mm-yy',
|
||||
firstDay: 0,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: '年'};
|
||||
$.datepicker.setDefaults($.datepicker.regional['zh-HK']);
|
||||
});
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
/* Chinese initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Ressol (ressol@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['zh-TW'] = {
|
||||
closeText: '關閉',
|
||||
prevText: '<上月',
|
||||
nextText: '下月>',
|
||||
currentText: '今天',
|
||||
monthNames: ['一月','二月','三月','四月','五月','六月',
|
||||
'七月','八月','九月','十月','十一月','十二月'],
|
||||
monthNamesShort: ['一月','二月','三月','四月','五月','六月',
|
||||
'七月','八月','九月','十月','十一月','十二月'],
|
||||
dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
|
||||
dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'],
|
||||
dayNamesMin: ['日','一','二','三','四','五','六'],
|
||||
weekHeader: '周',
|
||||
dateFormat: 'yy/mm/dd',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: '年'};
|
||||
$.datepicker.setDefaults($.datepicker.regional['zh-TW']);
|
||||
});
|
||||
1363
wagtail/wagtailadmin/static/wagtailadmin/js/vendor/jquery.datetimepicker.js
vendored
Normal file
1363
wagtail/wagtailadmin/static/wagtailadmin/js/vendor/jquery.datetimepicker.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue