mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-16 13:01:01 +00:00
Merge branch 'mope-175-retain-upload-tab-focus-on-validation-error'
This commit is contained in:
commit
eebe6216d2
37 changed files with 3367 additions and 32 deletions
|
|
@ -28,6 +28,7 @@ Changelog
|
|||
* Fix: Moving or changing a site root page no longer causes URLs for subpages to change to 'None'
|
||||
* Fix: Eliminated raw SQL queries from wagtailcore / wagtailadmin, to ensure cross-database compatibility
|
||||
* Fix: Snippets menu item is hidden for administrators if no snippet types are defined
|
||||
* Fix: 'Upload' tab in image chooser now retains focus if submit action returns a form error.
|
||||
|
||||
0.2 (11.03.2014)
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ Contributors
|
|||
* Ben Emery
|
||||
* David Smith
|
||||
* Ben Margolis
|
||||
* Tom Talbot
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
|||
13
README.rst
13
README.rst
|
|
@ -26,9 +26,7 @@ Wagtail is a Django content management system built originally for the `Royal Co
|
|||
* Fast out of the box. `Varnish <https://www.varnish-cache.org/>`_-friendly if you need it
|
||||
* Tests! But not enough; we're working hard to improve this
|
||||
|
||||
It supports Django 1.6.2+ on Python 2.6 and 2.7. Django 1.7 and Python 3 support are in progress.
|
||||
|
||||
Find out more at `wagtail.io <http://wagtail.io/>`_. Documentation is at `wagtail.readthedocs.org <http://wagtail.readthedocs.org/>`_.
|
||||
Find out more at `wagtail.io <http://wagtail.io/>`_.
|
||||
|
||||
Got a question? Ask it on our `Google Group <https://groups.google.com/forum/#!forum/wagtail>`_.
|
||||
|
||||
|
|
@ -38,6 +36,15 @@ Getting started
|
|||
* See the `Getting Started <http://wagtail.readthedocs.org/en/latest/gettingstarted.html#getting-started>`_ docs for installation (with the demo app) on a fresh Debian/Ubuntu box with production-ready dependencies, on OS X and on a Vagrant box.
|
||||
* `Serafeim Papastefanos <https://github.com/spapas>`_ has written a `tutorial <http://spapas.github.io/2014/02/13/wagtail-tutorial/>`_ with all the steps to build a simple Wagtail site from scratch.
|
||||
|
||||
Documentation
|
||||
~~~~~~~~~~~~~
|
||||
Available at `wagtail.readthedocs.org <http://wagtail.readthedocs.org/>`_. and always being updated.
|
||||
|
||||
Compatibility
|
||||
~~~~~~~~~~~~~
|
||||
Wagtail supports Django 1.6.2+ on Python 2.6 and 2.7. Django 1.7 and Python 3 support are in progress.
|
||||
|
||||
Contributing
|
||||
~~~~~~~~~~~~
|
||||
If you're a Python or Django developer, fork the repo and get stuck in! Send us a useful pull request and we'll post you a `t-shirt <https://twitter.com/WagtailCMS/status/432166799464210432/photo/1>`_. Our immediate priorities are better docs, more tests, internationalisation and localisation.
|
||||
|
||||
|
|
|
|||
17
docs/advanced_topics.rst
Normal file
17
docs/advanced_topics.rst
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Advanced Topics
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
.. note::
|
||||
This documentation is currently being written.
|
||||
|
||||
replacing image processing backend
|
||||
|
||||
custom image processing tags?
|
||||
|
||||
wagtail user bar custom CSS option?
|
||||
|
||||
extending hallo editor plugins with editor_js()
|
||||
|
||||
injecting any JS into page edit with editor_js()
|
||||
|
||||
Custom content module (same level as docs or images)
|
||||
284
docs/building_your_site/djangodevelopers.rst
Normal file
284
docs/building_your_site/djangodevelopers.rst
Normal file
|
|
@ -0,0 +1,284 @@
|
|||
For Django developers
|
||||
=====================
|
||||
|
||||
.. note::
|
||||
This documentation is currently being written.
|
||||
|
||||
Wagtail requires a little careful setup to define the types of content that you want to present through your website. The basic unit of content in Wagtail is the ``Page``, and all of your page-level content will inherit basic webpage-related properties from it. But for the most part, you will be defining content yourself, through the construction of Django models using Wagtail's ``Page`` as a base.
|
||||
|
||||
Wagtail organizes content created from your models in a tree, which can have any structure and combination of model objects in it. Wagtail doesn't prescribe ways to organize and interrelate your content, but here we've sketched out some strategies for organizing your models.
|
||||
|
||||
The presentation of your content, the actual webpages, includes the normal use of the Django template system. We'll cover additional functionality that Wagtail provides at the template level later on.
|
||||
|
||||
But first, we'll take a look at the ``Page`` class and model definitions.
|
||||
|
||||
|
||||
The Page Class
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
``Page`` uses Django's model interface, so you can include any field type and field options that Django allows. Wagtail provides some fields and editing handlers that simplify data entry in the Wagtail admin interface, so you may want to keep those in mind when deciding what properties to add to your models in addition to those already provided by ``Page``.
|
||||
|
||||
|
||||
Built-in Properties of the Page Class
|
||||
-------------------------------------
|
||||
|
||||
Wagtail provides some properties in the ``Page`` class which are common to most webpages. Since you'll be subclassing ``Page``, you don't have to worry about implementing them.
|
||||
|
||||
Public Properties
|
||||
`````````````````
|
||||
|
||||
``title`` (string, required)
|
||||
Human-readable title for the content
|
||||
|
||||
``slug`` (string, required)
|
||||
Machine-readable URL component for this piece of content. The name of the page as it will appear in URLs e.g ``http://domain.com/blog/[my-slug]/``
|
||||
|
||||
``seo_title`` (string)
|
||||
Alternate SEO-crafted title which overrides the normal title for use in the ``<head>`` of a page
|
||||
|
||||
``search_description`` (string)
|
||||
A SEO-crafted description of the content, used in both internal search indexing and for the meta description read by search engines
|
||||
|
||||
The ``Page`` class actually has alot more to it, but these are probably the only built-in properties you'll need to worry about when creating templates for your models.
|
||||
|
||||
|
||||
Anatomy of a Wagtail Model
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
So what does a Wagtail model definition look like? Here's a model representing a typical blog post:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from django.db import models
|
||||
|
||||
from wagtail.wagtailcore.models import Page
|
||||
from wagtail.wagtailcore.fields import RichTextField
|
||||
from wagtail.wagtailadmin.edit_handlers import FieldPanel
|
||||
from wagtail.wagtailimages.edit_handlers import ImageChooserPanel
|
||||
from wagtail.wagtailimages.models import Image
|
||||
|
||||
class BlogPage(Page):
|
||||
body = RichTextField()
|
||||
date = models.DateField("Post date")
|
||||
feed_image = models.ForeignKey(
|
||||
'wagtailimages.Image',
|
||||
null=True,
|
||||
blank=True,
|
||||
on_delete=models.SET_NULL,
|
||||
related_name='+'
|
||||
)
|
||||
|
||||
BlogPage.content_panels = [
|
||||
FieldPanel('title', classname="full title"),
|
||||
FieldPanel('date'),
|
||||
FieldPanel('body', classname="full"),
|
||||
]
|
||||
|
||||
BlogPage.promote_panels = [
|
||||
FieldPanel('slug'),
|
||||
FieldPanel('seo_title'),
|
||||
FieldPanel('show_in_menus'),
|
||||
FieldPanel('search_description'),
|
||||
ImageChooserPanel('feed_image'),
|
||||
]
|
||||
|
||||
To keep track of your ``Page``-derived models, it might be helpful to include "Page" as the last part of your class name. ``BlogPage`` defines three properties: ``body``, ``date``, and ``feed_image``. These are a mix of basic Django models (``DateField``), Wagtail fields (``RichTextField``), and a pointer to a Wagtail model (``Image``).
|
||||
|
||||
Next, the ``content_panels`` and ``promote_panels`` lists define the capabilities and layout of the Wagtail admin page edit interface. The lists are filled with "panels" and "choosers", which will provide a fine-grain interface for inputting the model's content. The ``ImageChooserPanel``, for instance, lets one browse the image library, upload new images, and input image metadata. The ``RichTextField`` is the basic field for creating web-ready website rich text, including text formatting and embedded media like images and video. The Wagtail admin offers other choices for fields, Panels, and Choosers, with the option of creating your own to precisely fit your content without workarounds or other compromises.
|
||||
|
||||
Your models may be even more complex, with methods overriding the built-in functionality of the ``Page`` to achieve webdev magic. Or, you can keep your models simple and let Wagtail's built-in functionality do the work.
|
||||
|
||||
Now that we have a basic idea of how our content is defined, lets look at relationships between pieces of content.
|
||||
|
||||
|
||||
Introduction to Trees
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
If you're unfamiliar with trees as an abstract data type, you might want to `review the concepts involved. <http://en.wikipedia.org/wiki/Tree_(data_structure)>`_
|
||||
|
||||
As a web developer, though, you probably already have a good understanding of trees as filesystem directories or paths. Wagtail pages can create the same structure, as each page in the tree has its own URL path, like so::
|
||||
|
||||
/
|
||||
people/
|
||||
nien-nunb/
|
||||
laura-roslin/
|
||||
events/
|
||||
captain-picard-day/
|
||||
winter-wrap-up/
|
||||
|
||||
The Wagtail admin interface uses the tree to organize content for editing, letting you navigate up and down levels in the tree through its Explorer menu. This method of organization is a good place to start in thinking about your own Wagtail models.
|
||||
|
||||
|
||||
Nodes and Leaves
|
||||
----------------
|
||||
|
||||
It might be handy to think of the ``Page``-derived models you want to create as being one of two node types: parents and leaves. Wagtail isn't prescriptive in this approach, but it's a good place to start if you're not experienced in structuring your own content types.
|
||||
|
||||
|
||||
Nodes
|
||||
`````
|
||||
Parent nodes on the Wagtail tree probably want to organize and display a browse-able index of their descendants. A blog, for instance, needs a way to show a list of individual posts.
|
||||
|
||||
A Parent node could provide its own function returning its descendant objects.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
class EventPageIndex(Page):
|
||||
# ...
|
||||
def events(self):
|
||||
# Get list of live event pages that are descendants of this page
|
||||
events = EventPage.objects.live().descendant_of(self)
|
||||
|
||||
# Filter events list to get ones that are either
|
||||
# running now or start in the future
|
||||
events = events.filter(date_from__gte=date.today())
|
||||
|
||||
# Order by date
|
||||
events = events.order_by('date_from')
|
||||
|
||||
return events
|
||||
|
||||
This example makes sure to limit the returned objects to pieces of content which make sense, specifically ones which have been published through Wagtail's admin interface (``live()``) and are children of this node (``descendant_of(self)``). By setting a ``subpage_types`` class property in your model, you can specify which models are allowed to be set as children, but Wagtail will allow any ``Page``-derived model by default. Regardless, it's smart for a parent model to provide an index filtered to make sense.
|
||||
|
||||
|
||||
Leaves
|
||||
``````
|
||||
Leaves are the pieces of content itself, a page which is consumable, and might just consist of a bunch of properties. A blog page leaf might have some body text and an image. A person page leaf might have a photo, a name, and an address.
|
||||
|
||||
It might be helpful for a leaf to provide a way to back up along the tree to a parent, such as in the case of breadcrumbs navigation. The tree might also be deep enough that a leaf's parent won't be included in general site navigation.
|
||||
|
||||
The model for the leaf could provide a function that traverses the tree in the opposite direction and returns an appropriate ancestor:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
class EventPage(Page):
|
||||
# ...
|
||||
def event_index(self):
|
||||
# Find closest ancestor which is an event index
|
||||
return self.get_ancestors().type(EventIndexPage).last()
|
||||
|
||||
If defined, ``subpage_types`` will also limit the parent models allowed to contain a leaf. If not, Wagtail will allow any combination of parents and leafs to be associated in the Wagtail tree. Like with index pages, it's a good idea to make sure that the index is actually of the expected model to contain the leaf.
|
||||
|
||||
|
||||
Other Relationships
|
||||
```````````````````
|
||||
Your ``Page``-derived models might have other interrelationships which extend the basic Wagtail tree or depart from it entirely. You could provide functions to navigate between siblings, such as a "Next Post" link on a blog page (``post->post->post``). It might make sense for subtrees to interrelate, such as in a discussion forum (``forum->post->replies``) Skipping across the hierarchy might make sense, too, as all objects of a certain model class might interrelate regardless of their ancestors (``events = EventPage.objects.all``). It's largely up to the models to define their interrelations, the possibilities are really endless.
|
||||
|
||||
|
||||
Anatomy of a Wagtail Request
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
For going beyond the basics of model definition and interrelation, it might help to know how Wagtail handles requests and constructs responses. In short, it goes something like:
|
||||
|
||||
#. Django gets a request and routes through Wagtail's URL dispatcher definitions
|
||||
#. Starting from the root content piece, Wagtail traverses the page tree, letting the model for each piece of content along the path decide how to ``route()`` the next step in the path.
|
||||
#. A model class decides that routing is done and it's now time to ``serve()`` content.
|
||||
#. ``serve()`` constructs a context using ``get_context()``
|
||||
#. ``serve()`` finds a template to pass it to using ``get_template()``
|
||||
#. A response object is returned by ``serve()`` and Django responds to the requester.
|
||||
|
||||
You can apply custom behavior to this process by overriding ``Page`` class methods such as ``route()`` and ``serve()`` in your own models. For examples, see :ref:`model_recipes`.
|
||||
|
||||
|
||||
Page Properties and Methods Reference
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
In addition to the model fields provided, ``Page`` has many properties and methods that you may wish to reference, use, or override in creating your own models. Those listed here are relatively straightforward to use, but consult the Wagtail source code for a full view of what's possible.
|
||||
|
||||
Properties:
|
||||
|
||||
specific
|
||||
url
|
||||
full_url
|
||||
relative_url
|
||||
has_unpublished_changes
|
||||
status_string
|
||||
subpage_types
|
||||
indexed_fields
|
||||
|
||||
|
||||
Methods:
|
||||
|
||||
route
|
||||
serve
|
||||
get_context
|
||||
get_template
|
||||
is_navigable
|
||||
get_other_siblings
|
||||
get_ancestors
|
||||
get_descendants
|
||||
get_siblings
|
||||
search
|
||||
get_page_modes
|
||||
show_as_mode
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Page Queryset Methods
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The ``Page`` class uses a custom Django model manager which provides these methods for structuring queries on ``Page`` objects.
|
||||
|
||||
get_query_set()
|
||||
return PageQuerySet(self.model).order_by('path')
|
||||
|
||||
live(self):
|
||||
return self.get_query_set().live()
|
||||
|
||||
not_live(self):
|
||||
return self.get_query_set().not_live()
|
||||
|
||||
page(self, other):
|
||||
return self.get_query_set().page(other)
|
||||
|
||||
not_page(self, other):
|
||||
return self.get_query_set().not_page(other)
|
||||
|
||||
descendant_of(self, other, inclusive=False):
|
||||
return self.get_query_set().descendant_of(other, inclusive)
|
||||
|
||||
not_descendant_of(self, other, inclusive=False):
|
||||
return self.get_query_set().not_descendant_of(other, inclusive)
|
||||
|
||||
child_of(self, other):
|
||||
return self.get_query_set().child_of(other)
|
||||
|
||||
not_child_of(self, other):
|
||||
return self.get_query_set().not_child_of(other)
|
||||
|
||||
ancestor_of(self, other, inclusive=False):
|
||||
return self.get_query_set().ancestor_of(other, inclusive)
|
||||
|
||||
not_ancestor_of(self, other, inclusive=False):
|
||||
return self.get_query_set().not_ancestor_of(other, inclusive)
|
||||
|
||||
parent_of(self, other):
|
||||
return self.get_query_set().parent_of(other)
|
||||
|
||||
not_parent_of(self, other):
|
||||
return self.get_query_set().not_parent_of(other)
|
||||
|
||||
sibling_of(self, other, inclusive=False):
|
||||
return self.get_query_set().sibling_of(other, inclusive)
|
||||
|
||||
not_sibling_of(self, other, inclusive=False):
|
||||
return self.get_query_set().not_sibling_of(other, inclusive)
|
||||
|
||||
type(self, model):
|
||||
return self.get_query_set().type(model)
|
||||
|
||||
not_type(self, model):
|
||||
return self.get_query_set().not_type(model)
|
||||
|
||||
|
||||
|
||||
Site
|
||||
~~~~
|
||||
|
||||
Django's built-in admin interface provides the way to map a "site" (hostname or domain) to any node in the wagtail tree, using that node as the site's root.
|
||||
|
||||
Access this by going to ``/django-admin/`` and then "Home › Wagtailcore › Sites." To try out a development site, add a single site with the hostname ``localhost`` at port ``8000`` and map it to one of the pieces of content you have created.
|
||||
|
||||
Wagtail's developers plan to move the site settings into the Wagtail admin interface.
|
||||
186
docs/building_your_site/frontenddevelopers.rst
Normal file
186
docs/building_your_site/frontenddevelopers.rst
Normal file
|
|
@ -0,0 +1,186 @@
|
|||
For Front End developers
|
||||
========================
|
||||
|
||||
.. note::
|
||||
This documentation is currently being written.
|
||||
|
||||
========================
|
||||
Overview
|
||||
========================
|
||||
|
||||
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/
|
||||
|
||||
Python programmers new to Django/Wagtail may prefer more technical documentation:
|
||||
https://docs.djangoproject.com/en/dev/ref/templates/api/
|
||||
|
||||
==========================
|
||||
Displaying Pages
|
||||
==========================
|
||||
|
||||
Template Location
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
For each of your ``Page``-derived models, Wagtail will look for a template in the following location, relative to your project root::
|
||||
|
||||
project/
|
||||
app/
|
||||
templates/
|
||||
app/
|
||||
blog_index_page.html
|
||||
models.py
|
||||
|
||||
Class names are converted from camel case to underscores. For example, the template for model class ``BlogIndexPage`` would be assumed to be ``blog_index_page.html``. For more information, see the Django documentation for the `application directories template loader`_.
|
||||
|
||||
.. _application directories template loader: https://docs.djangoproject.com/en/dev/ref/templates/api/
|
||||
|
||||
|
||||
Self
|
||||
~~~~
|
||||
|
||||
By default, the context passed to a model's template consists of two properties: ``self`` and ``request``. ``self`` is the model object being displayed. ``request`` is the normal Django request object. So, to include the title of a ``Page``, use ``{{ self.title }}``.
|
||||
|
||||
========================
|
||||
Static files (css, js, images)
|
||||
========================
|
||||
|
||||
|
||||
Images
|
||||
~~~~~~
|
||||
|
||||
Images uploaded to Wagtail go into the image library and from there are added to pages via the :doc:`page editor interface </editor_manual/new_pages/inserting_images>`.
|
||||
|
||||
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 images in your codebase 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`.
|
||||
|
||||
|
||||
========================
|
||||
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>`_
|
||||
|
||||
|
||||
.. _image_tag:
|
||||
|
||||
Images (tag)
|
||||
~~~~~~~~~~~~
|
||||
|
||||
The syntax for displaying/manipulating an image is thus::
|
||||
|
||||
{% image [image] [method]-[dimension(s)] %}
|
||||
|
||||
For example::
|
||||
|
||||
{% image self.photo width-400 %}
|
||||
|
||||
<!-- or a square thumbnail: -->
|
||||
{% image self.photo fill-80x80 %}
|
||||
|
||||
The ``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.
|
||||
|
||||
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``.
|
||||
|
||||
The available ``method`` s are:
|
||||
|
||||
.. glossary::
|
||||
``max``
|
||||
(takes two dimensions)
|
||||
|
||||
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.
|
||||
|
||||
``min``
|
||||
(takes two dimensions)
|
||||
|
||||
**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.
|
||||
|
||||
``width``
|
||||
(takes one dimension)
|
||||
|
||||
Reduces the width of the image to the dimension specified.
|
||||
|
||||
``height``
|
||||
(takes one dimension)
|
||||
|
||||
Resize the height of the image to the dimension specified..
|
||||
|
||||
``fill``
|
||||
(takes two dimensions)
|
||||
|
||||
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.
|
||||
|
||||
**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.
|
||||
|
||||
|
||||
To request the "original" version of an image, it is suggested you rely on the lack of upscaling support 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.
|
||||
|
||||
.. _rich-text-filter:
|
||||
Rich text (filter)
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
This filter is required for use with any ``RichTextField``. It will expand internal shorthand references to embeds and links made in the Wagtail editor into fully-baked HTML ready for display. **Note that the template tag loaded differs from the name of the filter.**
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
{% load rich_text %}
|
||||
...
|
||||
{{ body|richtext }}
|
||||
|
||||
Internal links (tag)
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
**pageurl**
|
||||
|
||||
Takes a ``Page``-derived object and returns its URL as relative (``/foo/bar/``) if it's within the same site as the current page, or absolute (``http://example.com/foo/bar/``) if not.
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
{% load pageurl %}
|
||||
...
|
||||
<a href="{% pageurl blog %}">
|
||||
|
||||
**slugurl**
|
||||
|
||||
Takes a ``slug`` string and returns the URL for the ``Page``-derived object with that slug. Like ``pageurl``, will try to provide a relative link if possible, but will default to an absolute link if on a different site.
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
{% load slugurl %}
|
||||
...
|
||||
<a href="{% slugurl blogslug %}">
|
||||
|
||||
|
||||
|
||||
|
||||
Static files (tag)
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Misc
|
||||
~~~~~~~~~~
|
||||
|
||||
|
||||
|
||||
========================
|
||||
Wagtail User Bar
|
||||
========================
|
||||
|
||||
This tag provides a Wagtail icon and flyout menu on the top-right of a page for a logged-in user with editing capabilities, with the option of editing the current Page-derived object or adding a new sibling object.
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
{% load wagtailuserbar %}
|
||||
...
|
||||
{% wagtailuserbar %}
|
||||
|
|
@ -1,6 +1,15 @@
|
|||
Building your site
|
||||
==================
|
||||
|
||||
.. note::
|
||||
Documentation currently incomplete and in draft status
|
||||
|
||||
Serafeim Papastefanos has written a comprehensive tutorial on creating a site from scratch in Wagtail; for the time being, this is our recommended resource:
|
||||
|
||||
`spapas.github.io/2014/02/13/wagtail-tutorial/ <http://spapas.github.io/2014/02/13/wagtail-tutorial/>`_
|
||||
`spapas.github.io/2014/02/13/wagtail-tutorial/ <http://spapas.github.io/2014/02/13/wagtail-tutorial/>`_
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 3
|
||||
|
||||
djangodevelopers
|
||||
frontenddevelopers
|
||||
322
docs/editing_api.rst
Normal file
322
docs/editing_api.rst
Normal file
|
|
@ -0,0 +1,322 @@
|
|||
|
||||
Editing API
|
||||
===========
|
||||
|
||||
.. note::
|
||||
This documentation is currently being written.
|
||||
|
||||
|
||||
Wagtail provides a highly-customizable editing interface consisting of several components:
|
||||
|
||||
* **Fields** — built-in content types to augment the basic types provided by Django.
|
||||
* **Panels** — the basic editing blocks for fields, groups of fields, and related object clusters
|
||||
* **Choosers** — interfaces for finding related objects in a ForeignKey relationship
|
||||
|
||||
Configuring your models to use these components will shape the Wagtail editor to your needs. Wagtail also provides an API for injecting custom CSS and Javascript for further customization, including extending the hallo.js rich text editor.
|
||||
|
||||
There is also an Edit Handler API for creating your own Wagtail editor components.
|
||||
|
||||
|
||||
Defining Panels
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
A "panel" is the basic editing block in Wagtail. Wagtail will automatically pick the appropriate editing widget for most Django field types, you just need to add a panel for each field you want to show in the Wagtail page editor, in the order you want them to appear.
|
||||
|
||||
There are three types of panels:
|
||||
|
||||
``FieldPanel( field_name, classname=None )``
|
||||
This is the panel used for basic Django field types. ``field_name`` is the name of the class property used in your model definition. ``classname`` is a string of optional CSS classes given to the panel which are used in formatting and scripted interactivity. By default, panels are formatted as inset fields. The CSS class ``full`` can be used to format the panel so it covers the full width of the Wagtail page editor. The CSS class ``title`` can be used to mark a field as the source for auto-generated slug strings.
|
||||
|
||||
``MultiFieldPanel( children, heading="", classname=None )``
|
||||
This panel condenses several ``FieldPanel`` s or choosers, from a list or tuple, under a single ``heading`` string.
|
||||
|
||||
``InlinePanel( base_model, relation_name, panels=None, label='', help_text='' )``
|
||||
This panel allows for the creation of a "cluster" of related objects over a join to a separate model, such as a list of related links or slides to an image carousel. This is a very powerful, but tricky feature which will take some space to cover, so we'll skip over it for now. For a full explanation on the usage of ``InlinePanel``, see :ref:`inline_panels`.
|
||||
|
||||
Wagtail provides a tabbed interface to help organize panels. ``content_panels`` is the main tab, used for the meat of your model content. The other, ``promote_panels``, is suggested for organizing metadata about the content, such as SEO information and other machine-readable information. Since you're writing the panel definitions, you can organize them however you want.
|
||||
|
||||
Let's look at an example of a panel definition:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
COMMON_PANELS = (
|
||||
FieldPanel('slug'),
|
||||
FieldPanel('seo_title'),
|
||||
FieldPanel('show_in_menus'),
|
||||
FieldPanel('search_description'),
|
||||
)
|
||||
|
||||
...
|
||||
|
||||
class ExamplePage( Page ):
|
||||
# field definitions omitted
|
||||
...
|
||||
|
||||
ExamplePage.content_panels = [
|
||||
FieldPanel('title', classname="full title"),
|
||||
FieldPanel('body', classname="full"),
|
||||
FieldPanel('date'),
|
||||
ImageChooserPanel('splash_image'),
|
||||
DocumentChooserPanel('free_download'),
|
||||
PageChooserPanel('related_page'),
|
||||
]
|
||||
|
||||
ExamplePage.promote_panels = [
|
||||
MultiFieldPanel(COMMON_PANELS, "Common page configuration"),
|
||||
]
|
||||
|
||||
After the ``Page``-derived class definition, just add lists of panel definitions to order and organize the Wagtail page editing interface for your model.
|
||||
|
||||
|
||||
Built-in Fields and Choosers
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Django's field types are automatically recognized and provided with an appropriate widget for input. Just define that field the normal Django way and pass the field name into ``FieldPanel()`` when defining your panels. Wagtail will take care of the rest.
|
||||
|
||||
Here are some Wagtail-specific types that you might include as fields in your models.
|
||||
|
||||
|
||||
Rich Text (HTML)
|
||||
----------------
|
||||
|
||||
Wagtail provides a general-purpose WYSIWYG editor for creating rich text content (HTML) and embedding media such as images, video, and documents. To include this in your models, use the ``RichTextField()`` function when defining a model field:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from wagtail.wagtailcore.fields import RichTextField
|
||||
from wagtail.wagtailadmin.edit_handlers import FieldPanel
|
||||
# ...
|
||||
class BookPage(Page):
|
||||
book_text = RichTextField()
|
||||
|
||||
BookPage.content_panels = [
|
||||
FieldPanel('body', classname="full"),
|
||||
# ...
|
||||
]
|
||||
|
||||
``RichTextField`` inherits from Django's basic ``TextField`` field, so you can pass any field parameters into ``RichTextField`` as if using a normal Django field. This field does not need a special panel and can be defined with ``FieldPanel``.
|
||||
|
||||
However, template output from ``RichTextField`` is special and need to be filtered to preserve embedded content. See :ref:`rich-text-filter`.
|
||||
|
||||
If you're interested in extending the capabilities of the Wagtail WYSIWYG editor (hallo.js), See :ref:`extending_wysiwyg`.
|
||||
|
||||
|
||||
Images
|
||||
------
|
||||
|
||||
One of the features of Wagtail is a unified image library, which you can access in your models through the ``Image`` model and the ``ImageChooserPanel`` chooser. Here's how:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from wagtail.wagtailimages.models import Image
|
||||
from wagtail.wagtailimages.edit_handlers import ImageChooserPanel
|
||||
# ...
|
||||
class BookPage(Page):
|
||||
cover = models.ForeignKey(
|
||||
'wagtailimages.Image',
|
||||
null=True,
|
||||
blank=True,
|
||||
on_delete=models.SET_NULL,
|
||||
related_name='+'
|
||||
)
|
||||
|
||||
BookPage.content_panels = [
|
||||
ImageChooserPanel('cover'),
|
||||
# ...
|
||||
]
|
||||
|
||||
Django's default behavior is to "cascade" deletions through a ForeignKey relationship, which is probably not what you want happening. This is why the ``null``, ``blank``, and ``on_delete`` parameters should be set to allow for an empty field. (See `Django model field reference (on_delete)`_ ). ``ImageChooserPanel`` takes only one argument: the name of the field.
|
||||
|
||||
.. _Django model field reference (on_delete): https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.on_delete
|
||||
|
||||
Displaying ``Image`` objects in a template requires the use of a template tag. See :ref:`image_tag`.
|
||||
|
||||
|
||||
Documents
|
||||
---------
|
||||
|
||||
For files in other formats, Wagtail provides a generic file store through the ``Document`` model:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from wagtail.wagtaildocs.models import Document
|
||||
from wagtail.wagtaildocs.edit_handlers import DocumentChooserPanel
|
||||
# ...
|
||||
class BookPage(Page):
|
||||
book_file = models.ForeignKey(
|
||||
'wagtaildocs.Document',
|
||||
null=True,
|
||||
blank=True,
|
||||
on_delete=models.SET_NULL,
|
||||
related_name='+'
|
||||
)
|
||||
|
||||
BookPage.content_panels = [
|
||||
DocumentChooserPanel('book_file'),
|
||||
# ...
|
||||
]
|
||||
|
||||
As with images, Wagtail documents should also have the appropriate extra parameters to prevent cascade deletions across a ForeignKey relationship. ``DocumentChooserPanel`` takes only one argument: the name of the field.
|
||||
|
||||
Documents can be used directly in templates without tags or filters. Its properties are:
|
||||
|
||||
.. glossary::
|
||||
|
||||
``title``
|
||||
The title of the document.
|
||||
|
||||
``url``
|
||||
URL to the file.
|
||||
|
||||
``created_at``
|
||||
The date and time the document was created (DateTime).
|
||||
|
||||
``filename``
|
||||
The filename of the file.
|
||||
|
||||
``file_extension``
|
||||
The extension of the file.
|
||||
|
||||
``tags``
|
||||
A ``TaggableManager`` which keeps track of tags associated with the document (uses the ``django-taggit`` module).
|
||||
|
||||
|
||||
Pages and Page-derived Models
|
||||
-----------------------------
|
||||
|
||||
You can explicitly link ``Page``-derived models together using the ``Page`` model and ``PageChooserPanel``.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from wagtail.wagtailcore.models import Page
|
||||
from wagtail.wagtailadmin.edit_handlers import PageChooserPanel
|
||||
# ...
|
||||
class BookPage(Page):
|
||||
publisher = models.ForeignKey(
|
||||
'wagtailcore.Page',
|
||||
null=True,
|
||||
blank=True,
|
||||
on_delete=models.SET_NULL,
|
||||
related_name='+',
|
||||
)
|
||||
|
||||
BookPage.content_panels = [
|
||||
PageChooserPanel('related_page', 'demo.PublisherPage'),
|
||||
# ...
|
||||
]
|
||||
|
||||
``PageChooserPanel`` takes two arguments: a field name and an optional page type. Specifying a page type (in the form of an ``"appname.modelname"`` string) will filter the chooser to display only pages of that type.
|
||||
|
||||
|
||||
Snippets
|
||||
--------
|
||||
|
||||
Snippets are not subclasses, so you must include the model class directly. A chooser is provided which takes the field name snippet class.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from wagtail.wagtailsnippets.edit_handlers import SnippetChooserPanel
|
||||
# ...
|
||||
class BookPage(Page):
|
||||
advert = models.ForeignKey(
|
||||
'demo.Advert',
|
||||
null=True,
|
||||
blank=True,
|
||||
on_delete=models.SET_NULL,
|
||||
related_name='+'
|
||||
)
|
||||
|
||||
BookPage.content_panels = [
|
||||
SnippetChooserPanel('advert', Advert),
|
||||
# ...
|
||||
]
|
||||
|
||||
See :ref:`snippets` for more information.
|
||||
|
||||
|
||||
Field Customization
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
By adding CSS classnames to your panel definitions or adding extra parameters to your field definitions, you can control much of how your fields will display in the Wagtail page editing interface. Wagtail's page editing interface takes much of its behavior from Django's admin, so you may find many options for customization covered there. (See `Django model field reference`_ ).
|
||||
|
||||
.. _Django model field reference:https://docs.djangoproject.com/en/dev/ref/models/fields/
|
||||
|
||||
|
||||
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.
|
||||
|
||||
|
||||
Required Fields
|
||||
---------------
|
||||
|
||||
To make input or chooser selection manditory for a field, add ``blank=False`` to its model definition. (See `Django model field reference (blank)`_ ).
|
||||
|
||||
.. _Django model field reference (blank): https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.Field.blank
|
||||
|
||||
|
||||
Hiding Fields
|
||||
-------------
|
||||
|
||||
Without a panel definition, a default form field (without label) will be used to represent your fields. If you intend to hide a field on the Wagtail page editor, define the field with ``editable=False`` (See `Django model field reference (editable)`_ ).
|
||||
|
||||
.. _Django model field reference (editable): https://docs.djangoproject.com/en/dev/ref/models/fields/#editable
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
MultiFieldPanel
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
BOOK_FIELD_COLLECTION = [
|
||||
ImageChooserPanel('cover'),
|
||||
DocumentChooserPanel('book_file'),
|
||||
PageChooserPanel('publisher'),
|
||||
]
|
||||
|
||||
BookPage.content_panels = [
|
||||
MultiFieldPanel(
|
||||
BOOK_FIELD_COLLECTION,
|
||||
heading="Collection of Book Fields",
|
||||
classname="collapsible collapsed"
|
||||
),
|
||||
# ...
|
||||
]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.. _inline_panels:
|
||||
|
||||
Inline Panels and Model Clusters
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The ``django-modelcluster`` module allows for streamlined relation of extra models to a Wagtail page.
|
||||
|
||||
|
||||
.. _extending_wysiwyg:
|
||||
|
||||
Extending the WYSIWYG Editor (hallo.js)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Adding hallo.js plugins:
|
||||
https://github.com/torchbox/wagtail/commit/1ecc215759142e6cafdacb185bbfd3f8e9cd3185
|
||||
|
||||
|
||||
Edit Handler API
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,9 +1,10 @@
|
|||
Using Wagtail: an Editor's guide
|
||||
================================
|
||||
|
||||
This section of the documentation is written for the users of a Wagtail-powered site. That is, the content editors, moderators and administrators who will be running things on a day-to-day basis.
|
||||
.. note::
|
||||
Documentation currently incomplete and in draft status
|
||||
|
||||
**NOTE:** This section of the documentation is currently in draft status.
|
||||
This section of the documentation is written for the users of a Wagtail-powered site. That is, the content editors, moderators and administrators who will be running things on a day-to-day basis.
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 3
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Getting Started
|
|||
On Ubuntu
|
||||
~~~~~~~~~
|
||||
|
||||
If you have a fresh instance of Ubuntu 13.04 or 13.10, you can install Wagtail,
|
||||
If you have a fresh instance of Ubuntu 13.04 or later, you can install Wagtail,
|
||||
along with a demonstration site containing a set of standard templates and page
|
||||
types, in one step. As the root user::
|
||||
|
||||
|
|
@ -166,4 +166,4 @@ Once you've experimented with the demo app and are ready to build your pages via
|
|||
COMMIT;
|
||||
EOF
|
||||
rm -r demo media/images/* media/original_images/*
|
||||
perl -pi -e"s/('demo',|WAGTAILSEARCH_RESULTS_TEMPLATE)/#\1/" $PROJECT/settingsbase.py
|
||||
perl -pi -e"s/('demo',|WAGTAILSEARCH_RESULTS_TEMPLATE)/#\1/" $PROJECT/settings/base.py
|
||||
|
|
|
|||
|
|
@ -9,11 +9,15 @@ It supports Django 1.6.2+ on Python 2.6 and 2.7. Django 1.7 and Python 3 support
|
|||
:maxdepth: 3
|
||||
|
||||
gettingstarted
|
||||
building_your_site
|
||||
building_your_site/index
|
||||
editing_api
|
||||
snippets
|
||||
wagtail_search
|
||||
form_builder
|
||||
model_recipes
|
||||
advanced_topics
|
||||
deploying
|
||||
performance
|
||||
form_builder
|
||||
static_site_generation
|
||||
contributing
|
||||
support
|
||||
|
|
|
|||
199
docs/model_recipes.rst
Normal file
199
docs/model_recipes.rst
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
|
||||
.. _model_recipes:
|
||||
|
||||
Model Recipes
|
||||
=============
|
||||
|
||||
Overriding the serve() Method
|
||||
-----------------------------
|
||||
|
||||
Wagtail defaults to serving ``Page``-derived models by passing ``self`` to a Django HTML template matching the model's name, but suppose you wanted to serve something other than HTML? You can override the ``serve()`` method provided by the ``Page`` class and handle the Django request and response more directly.
|
||||
|
||||
Consider this example from the Wagtail demo site's ``models.py``, which serves an ``EventPage`` object as an iCal file if the ``format`` variable is set in the request:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
class EventPage(Page):
|
||||
...
|
||||
def serve(self, request):
|
||||
if "format" in request.GET:
|
||||
if request.GET['format'] == 'ical':
|
||||
# Export to ical format
|
||||
response = HttpResponse(
|
||||
export_event(self, 'ical'),
|
||||
content_type='text/calendar',
|
||||
)
|
||||
response['Content-Disposition'] = 'attachment; filename=' + self.slug + '.ics'
|
||||
return response
|
||||
else:
|
||||
# Unrecognised format error
|
||||
message = 'Could not export event\n\nUnrecognised format: ' + request.GET['format']
|
||||
return HttpResponse(message, content_type='text/plain')
|
||||
else:
|
||||
# Display event page as usual
|
||||
return super(EventPage, self).serve(request)
|
||||
|
||||
``serve()`` takes a Django request object and returns a Django response object. Wagtail returns a ``TemplateResponse`` object with the template and context which it generates, which allows middleware to function as intended, so keep in mind that a simpler response object like a ``HttpResponse`` will not receive these benefits.
|
||||
|
||||
With this strategy, you could use Django or Python utilities to render your model in JSON or XML or any other format you'd like.
|
||||
|
||||
|
||||
Adding Endpoints with Custom route() Methods
|
||||
--------------------------------------------
|
||||
|
||||
Wagtail routes requests by iterating over the path components (separated with a forward slash ``/``), finding matching objects based on their slug, and delegating further routing to that object's model class. The Wagtail source is very instructive in figuring out what's happening. This is the default ``route()`` method of the ``Page`` class:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
class Page(...):
|
||||
|
||||
...
|
||||
|
||||
def route(self, request, path_components):
|
||||
if path_components:
|
||||
# request is for a child of this page
|
||||
child_slug = path_components[0]
|
||||
remaining_components = path_components[1:]
|
||||
|
||||
# find a matching child or 404
|
||||
try:
|
||||
subpage = self.get_children().get(slug=child_slug)
|
||||
except Page.DoesNotExist:
|
||||
raise Http404
|
||||
|
||||
# delegate further routing
|
||||
return subpage.specific.route(request, remaining_components)
|
||||
|
||||
else:
|
||||
# request is for this very page
|
||||
if self.live:
|
||||
# use the serve() method to render the request if the page is published
|
||||
return self.serve(request)
|
||||
else:
|
||||
# the page matches the request, but isn't published, so 404
|
||||
raise Http404
|
||||
|
||||
The contract is pretty simple. ``route()`` takes the current object (``self``), the ``request`` object, and a list of the remaining ``path_components`` from the request URL. It either continues delegating routing by calling ``route()`` again on one of its children in the Wagtail tree, or ends the routing process by serving something -- either normally through the ``self.serve()`` method or by raising a 404 error.
|
||||
|
||||
By overriding the ``route()`` method, we could create custom endpoints for each object in the Wagtail tree. One use case might be using an alternate template when encountering the ``print/`` endpoint in the path. Another might be a REST API which interacts with the current object. Just to see what's involved, lets make a simple model which prints out all of its child path components.
|
||||
|
||||
First, ``models.py``:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from django.shortcuts import render
|
||||
|
||||
...
|
||||
|
||||
class Echoer(Page):
|
||||
|
||||
def route(self, request, path_components):
|
||||
if path_components:
|
||||
return render(request, self.template, {
|
||||
'self': self,
|
||||
'echo': ' '.join(path_components),
|
||||
})
|
||||
else:
|
||||
if self.live:
|
||||
return self.serve(request)
|
||||
else:
|
||||
raise Http404
|
||||
|
||||
Echoer.content_panels = [
|
||||
FieldPanel('title', classname="full title"),
|
||||
]
|
||||
|
||||
Echoer.promote_panels = [
|
||||
MultiFieldPanel(COMMON_PANELS, "Common page configuration"),
|
||||
]
|
||||
|
||||
This model, ``Echoer``, doesn't define any properties, but does subclass ``Page`` so objects will be able to have a custom title and slug. The template just has to display our ``{{ echo }}`` property. We're skipping the ``serve()`` method entirely, but you could include your render code there to stay consistent with Wagtail's conventions.
|
||||
|
||||
Now, once creating a new ``Echoer`` page in the Wagtail admin titled "Echo Base," requests such as::
|
||||
|
||||
http://127.0.0.1:8000/echo-base/tauntaun/kennel/bed/and/breakfast/
|
||||
|
||||
Will return::
|
||||
|
||||
tauntaun kennel bed and breakfast
|
||||
|
||||
|
||||
Tagging
|
||||
-------
|
||||
|
||||
Wagtail provides tagging capability through the combination of two django modules, ``taggit`` and ``modelcluster``. ``taggit`` provides a model for tags which is extended by ``modelcluster``, which in turn provides some magical database abstraction which makes drafts and revisions possible in Wagtail. It's a tricky recipe, but the net effect is a many-to-many relationship between your model and a tag class reserved for your model.
|
||||
|
||||
Using an example from the Wagtail demo site, here's what the tag model and the relationship field looks like in ``models.py``:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from modelcluster.fields import ParentalKey
|
||||
from modelcluster.tags import ClusterTaggableManager
|
||||
from taggit.models import Tag, TaggedItemBase
|
||||
...
|
||||
class BlogPageTag(TaggedItemBase):
|
||||
content_object = ParentalKey('demo.BlogPage', related_name='tagged_items')
|
||||
...
|
||||
class BlogPage(Page):
|
||||
...
|
||||
tags = ClusterTaggableManager(through=BlogPageTag, blank=True)
|
||||
|
||||
BlogPage.promote_panels = [
|
||||
...
|
||||
FieldPanel('tags'),
|
||||
]
|
||||
|
||||
Wagtail's admin provides a nice interface for inputting tags into your content, with typeahead tag completion and friendly tag icons.
|
||||
|
||||
Now that we have the many-to-many tag relationship in place, we can fit in a way to render both sides of the relation. Here's more of the Wagtail demo site ``models.py``, where the index model for ``BlogPage`` is extended with logic for filtering the index by tag:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
class BlogIndexPage(Page):
|
||||
...
|
||||
def serve(self, request):
|
||||
# Get blogs
|
||||
blogs = self.blogs
|
||||
|
||||
# Filter by tag
|
||||
tag = request.GET.get('tag')
|
||||
if tag:
|
||||
blogs = blogs.filter(tags__name=tag)
|
||||
|
||||
return render(request, self.template, {
|
||||
'self': self,
|
||||
'blogs': blogs,
|
||||
})
|
||||
|
||||
Here, ``blogs.filter(tags__name=tag)`` invokes a reverse Django queryset filter on the ``BlogPageTag`` model to optionally limit the ``BlogPage`` objects sent to the template for rendering. Now, lets render both sides of the relation by showing the tags associated with an object and a way of showing all of the objects associated with each tag. This could be added to the ``blog_page.html`` template:
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
{% for tag in self.tags.all %}
|
||||
<a href="{% pageurl self.blog_index %}?tag={{ tag }}">{{ tag }}</a>
|
||||
{% endfor %}
|
||||
|
||||
Iterating through ``self.tags.all`` will display each tag associated with ``self``, while the link(s) back to the index make use of the filter option added to the ``BlogIndexPage`` model. A Django query could also use the ``tagged_items`` related name field to get ``BlogPage`` objects associated with a tag.
|
||||
|
||||
This is just one possible way of creating a taxonomy for Wagtail objects. With all of the components for a taxonomy available through Wagtail, you should be able to fulfill even the most exotic taxonomic schemes.
|
||||
|
||||
|
||||
Custom Page Contexts by Overriding get_context()
|
||||
------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Load Alternate Templates by Overriding get_template()
|
||||
-----------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Page Modes
|
||||
----------
|
||||
|
||||
get_page_modes
|
||||
show_as_mode
|
||||
|
||||
|
||||
|
||||
|
||||
143
docs/snippets.rst
Normal file
143
docs/snippets.rst
Normal file
|
|
@ -0,0 +1,143 @@
|
|||
|
||||
.. _snippets:
|
||||
|
||||
Snippets
|
||||
========
|
||||
|
||||
Snippets are pieces of content which do not necessitate a full webpage to render. They could be used for making secondary content, such as headers, footers, and sidebars, editable in the Wagtail admin. Snippets are models which do not inherit the ``Page`` class and are thus not organized into the Wagtail tree, but can still be made editable by assigning panels and identifying the model as a snippet with ``register_snippet()``.
|
||||
|
||||
Snippets are not search-able or order-able in the Wagtail admin, so decide carefully if the content type you would want to build into a snippet might be more suited to a page.
|
||||
|
||||
Snippet Models
|
||||
--------------
|
||||
|
||||
Here's an example snippet from the Wagtail demo website:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from django.db import models
|
||||
|
||||
from wagtail.wagtailadmin.edit_handlers import FieldPanel
|
||||
from wagtail.wagtailsnippets.models import register_snippet
|
||||
|
||||
...
|
||||
|
||||
class Advert(models.Model):
|
||||
url = models.URLField(null=True, blank=True)
|
||||
text = models.CharField(max_length=255)
|
||||
|
||||
panels = [
|
||||
FieldPanel('url'),
|
||||
FieldPanel('text'),
|
||||
]
|
||||
|
||||
def __unicode__(self):
|
||||
return self.text
|
||||
|
||||
register_snippet(Advert)
|
||||
|
||||
The ``Advert`` model uses the basic Django model class and defines two properties: text and url. The editing interface is very close to that provided for ``Page``-derived models, with fields assigned in the panels property. Snippets do not use multiple tabs of fields, nor do they provide the "save as draft" or "submit for moderation" features.
|
||||
|
||||
``register_snippet(Advert)`` tells Wagtail to treat the model as a snippet. The ``panels`` list defines the fields to show on the snippet editing page. It's also important to provide a string representation of the class through ``def __unicode__(self):`` so that the snippet objects make sense when listed in the Wagtail admin.
|
||||
|
||||
Including Snippets in Template Tags
|
||||
-----------------------------------
|
||||
|
||||
The simplest way to make your snippets available to templates is with a template tag. This is mostly done with vanilla Django, so perhaps reviewing Django's documentation for `django custom template tags`_ will be more helpful. We'll go over the basics, though, and make note of any considerations to make for Wagtail.
|
||||
|
||||
First, add a new python file to a ``templatetags`` folder within your app. The demo website, for instance uses the path ``wagtaildemo/demo/templatetags/demo_tags.py``. We'll need to load some Django modules and our app's models and ready the ``register`` decorator:
|
||||
|
||||
.. _django custom template tags: https://docs.djangoproject.com/en/dev/howto/custom-template-tags/
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from django import template
|
||||
from demo.models import *
|
||||
|
||||
register = template.Library()
|
||||
|
||||
...
|
||||
|
||||
# Advert snippets
|
||||
@register.inclusion_tag('demo/tags/adverts.html', takes_context=True)
|
||||
def adverts(context):
|
||||
return {
|
||||
'adverts': Advert.objects.all(),
|
||||
'request': context['request'],
|
||||
}
|
||||
|
||||
``@register.inclusion_tag()`` takes two variables: a template and a boolean on whether that template should be passed a request context. It's a good idea to include request contexts in your custom template tags, since some Wagtail-specific template tags like ``pageurl`` need the context to work properly. The template tag function could take arguments and filter the adverts to return a specific model, but for brevity we'll just use ``Advert.objects.all()``.
|
||||
|
||||
Here's what's in the template used by the template tag:
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
{% for advert in adverts %}
|
||||
<p>
|
||||
<a href="{{ advert.url }}">
|
||||
{{ advert.text }}
|
||||
</a>
|
||||
</p>
|
||||
{% endfor %}
|
||||
|
||||
Then in your own page templates, you can include your snippet template tag with:
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
{% block content %}
|
||||
|
||||
...
|
||||
|
||||
{% adverts %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Binding Pages to Snippets
|
||||
-------------------------
|
||||
|
||||
An alternate strategy for including snippets might involve explicitly binding a specific page object to a specific snippet object. Lets add another snippet class to see how that might work:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from django.db import models
|
||||
|
||||
from wagtail.wagtailcore.models import Page
|
||||
from wagtail.wagtailadmin.edit_handlers import PageChooserPanel
|
||||
from wagtail.wagtailsnippets.models import register_snippet
|
||||
from wagtail.wagtailsnippets.edit_handlers import SnippetChooserPanel
|
||||
|
||||
from modelcluster.fields import ParentalKey
|
||||
|
||||
...
|
||||
|
||||
class AdvertPlacement(models.Model):
|
||||
page = ParentalKey('wagtailcore.Page', related_name='advert_placements')
|
||||
advert = models.ForeignKey('demo.Advert', related_name='+')
|
||||
|
||||
class Meta:
|
||||
verbose_name = "Advert Placement"
|
||||
verbose_name_plural = "Advert Placements"
|
||||
|
||||
panels = [
|
||||
PageChooserPanel('page'),
|
||||
SnippetChooserPanel('advert', Advert),
|
||||
]
|
||||
|
||||
def __unicode__(self):
|
||||
return self.page.title + " -> " + self.advert.text
|
||||
|
||||
register_snippet(AdvertPlacement)
|
||||
|
||||
The class ``AdvertPlacement`` has two properties, ``page`` and ``advert``, which point to other models. Wagtail provides a ``PageChooserPanel`` and ``SnippetChooserPanel`` to let us make painless selection of those properties in the Wagtail admin. Note also the ``Meta`` class, which you can stock with the ``verbose_name`` and ``verbose_name_plural`` properties to override the snippet labels in the Wagtail admin. The text representation of the class has also gotten fancy, using both properties to construct a compound label showing the relationship it forms between a page and an Advert.
|
||||
|
||||
With this snippet in place, we can use the reverse ``related_name`` lookup label ``advert_placements`` to iterate over any placements within our template files. In the template for a ``Page``-derived model, we could include the following:
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
{% if self.advert_placements %}
|
||||
{% for advert_placement in self.advert_placements.all %}
|
||||
<p><a href="{{ advert_placement.advert.url }}">{{ advert_placement.advert.text }}</a></p>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
|
@ -1,20 +1,20 @@
|
|||
Generating a static site
|
||||
========================
|
||||
|
||||
This document describes how to render your Wagtail site into static HTML files using `django medusa`_ and the 'wagtail.contrib.wagtailmedusa' module.
|
||||
This document describes how to render your Wagtail site into static HTML files on your local filesystem, Amazon S3 or Google App Engine, using `django medusa`_ and the ``wagtail.contrib.wagtailmedusa`` module.
|
||||
|
||||
|
||||
Installing django-medusa
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Firstly, install django medusa from pip:
|
||||
First, install django medusa from pip:
|
||||
|
||||
.. code::
|
||||
|
||||
pip install django-medusa
|
||||
|
||||
|
||||
Then add 'django_medusa' and 'wagtail.contrib.wagtailmedusa' to INSTALLED_APPS:
|
||||
Then add ``django_medusa`` and ``wagtail.contrib.wagtailmedusa`` to ``INSTALLED_APPS``:
|
||||
|
||||
.. code:: python
|
||||
|
||||
|
|
@ -28,9 +28,9 @@ Then add 'django_medusa' and 'wagtail.contrib.wagtailmedusa' to INSTALLED_APPS:
|
|||
Replacing GET parameters with custom routing
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Pages which require GET parameters (eg, pagination) don't generate suitable filenames for generated HTML files so they need to be changed to use custom routing instead.
|
||||
Pages which require GET parameters (e.g. for pagination) don't generate suitable filenames for generated HTML files so they need to be changed to use custom routing instead.
|
||||
|
||||
For example, lets say we have a Blog Index which uses pagination. We can override the 'route' method to make it respond on urls like '/page/1' and pass the page number through to the serve method:
|
||||
For example, let's say we have a Blog Index which uses pagination. We can override the ``route`` method to make it respond on urls like '/page/1', and pass the page number through to the ``serve`` method:
|
||||
|
||||
.. code:: python
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ For example, lets say we have a Blog Index which uses pagination. We can overrid
|
|||
Rendering pages which use custom routing
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
For page types that override the route method, we need to let django medusa know which URLs it responds on. This is done by overriding the 'get_static_site_paths' method to make it yield one string per URL path.
|
||||
For page types that override the ``route`` method, we need to let django medusa know which URLs it responds on. This is done by overriding the ``get_static_site_paths`` method to make it yield one string per URL path.
|
||||
|
||||
For example, the BlogIndex above would need to yield one URL for each page of results:
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ For example, the BlogIndex above would need to yield one URL for each page of re
|
|||
Rendering
|
||||
~~~~~~~~~
|
||||
|
||||
To render a site, just run ``./manage.py staticsitegen``. This will render the entire website and place the HTML in a folder called 'medusa_output'. The static and media folders need to be copied into this folder manually after the rendering is complete.
|
||||
To render a site, run ``./manage.py staticsitegen``. This will render the entire website and place the HTML in a folder called 'medusa_output'. The static and media folders need to be copied into this folder manually after the rendering is complete. This feature inherits django-medusa's ability to render your static site to Amazon S3 or Google App Engine; see the `medusa docs <https://github.com/mtigas/django-medusa/blob/master/README.markdown>`_ for configuration details.
|
||||
|
||||
To test, open the 'medusa_output' folder in a terminal and run ``python -m SimpleHTTPServer``.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,226 @@
|
|||
Search
|
||||
======
|
||||
|
||||
Wagtail can degrade to a database-backed text search, but we strongly recommend `Elasticsearch`_. If you prefer not to run an Elasticsearch server in development or production, there are many hosted services available, including `Searchly`_, who offer a free account suitable for testing and development. To use Searchly:
|
||||
Wagtail provides a very comprehensive, extensible, and flexible search interface. In addition, it provides ways to promote search results through "Editor's Picks." Wagtail also collects simple statistics on queries made through the search interface.
|
||||
|
||||
Default Page Search
|
||||
-------------------
|
||||
|
||||
Wagtail provides a default frontend search interface which indexes the ``title`` field common to all ``Page``-derived models. Lets take a look at all the components of the search interface.
|
||||
|
||||
The most basic search functionality just needs a search box which submits a request. Since this will be reused throughout the site, lets put it in ``mysite/includes/search_box.html`` and then use ``{% include ... %}`` to weave it into templates:
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
<form action="{% url 'wagtailsearch_search' %}" method="get">
|
||||
<input type="text" name="q"{% if query_string %} value="{{ query_string }}"{% endif %}>
|
||||
<input type="submit" value="Search">
|
||||
</form>
|
||||
|
||||
The form is submitted to the url of the ``wagtailsearch_search`` view, with the search terms variable ``q``. The view will use its own (very) basic search results template.
|
||||
|
||||
Lets use our own template for the results, though. First, in your project's ``settings.py``, define a path to your template:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
WAGTAILSEARCH_RESULTS_TEMPLATE = 'mysite/search_results.html'
|
||||
|
||||
Next, lets look at the template itself:
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
{% extends "mysite/base.html" %}
|
||||
{% load pageurl %}
|
||||
|
||||
{% block title %}Search{% if search_results %} Results{% endif %}{% endblock %}
|
||||
|
||||
{% block search_box %}
|
||||
{% include "mysite/includes/search_box.html" with query_string=query_string only %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Search Results{% if request.GET.q %} for {{ request.GET.q }}{% endif %}</h2>
|
||||
<ul>
|
||||
{% for result in search_results %}
|
||||
<li>
|
||||
<h4><a href="{% pageurl result.specific %}">{{ result.specific }}</a></h4>
|
||||
{% if result.specific.search_description %}
|
||||
{{ result.specific.search_description|safe }}
|
||||
{% endif %}
|
||||
</li>
|
||||
{% empty %}
|
||||
<li>No results found</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
||||
The search view provides a context with a few useful variables.
|
||||
|
||||
``query_string``
|
||||
The terms (string) used to make the search.
|
||||
|
||||
``search_results``
|
||||
A collection of Page objects matching the query. The ``specific`` property of ``Page`` will give the most-specific subclassed model object for the Wagtail page. For instance, if an ``Event`` model derived from the basic Wagtail ``Page`` were included in the search results, you could use ``specific`` to access the custom properties of the ``Event`` model (``result.specific.date_of_event``).
|
||||
|
||||
``is_ajax``
|
||||
Boolean. This returns Django's ``request.is_ajax()``.
|
||||
|
||||
``query``
|
||||
A Wagtail ``Query`` object matching the terms. The ``Query`` model provides several class methods for viewing the statistics of all queries, but exposes only one property for single objects, ``query.hits``, which tracks the number of time the search string has been used over the lifetime of the site. ``Query`` also joins to the Editor's Picks functionality though ``query.editors_picks``. See :ref:`editors-picks`.
|
||||
|
||||
Editor's Picks
|
||||
--------------
|
||||
|
||||
Editor's Picks are a way of explicitly linking relevant content to search terms, so results pages can contain curated content instead of being at the mercy of the search algorithm. In a template using the search results view, editor's picks can be accessed through the variable ``query.editors_picks``. To include editor's picks in your search results template, use the following properties.
|
||||
|
||||
``query.editors_picks.all``
|
||||
This gathers all of the editor's picks objects relating to the current query, in order according to their sort order in the Wagtail admin. You can then iterate through them using a ``{% for ... %}`` loop. Each editor's pick object provides these properties:
|
||||
|
||||
``editors_pick.page``
|
||||
The page object associated with the pick. Use ``{% pageurl editors_pick.page %}`` to generate a URL or provide other properties of the page object.
|
||||
|
||||
``editors_pick.description``
|
||||
The description entered when choosing the pick, perhaps explaining why the page is relevant to the search terms.
|
||||
|
||||
Putting this all together, a block of your search results template displaying Editor's Picks might look like this:
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
{% with query.editors_picks.all as editors_picks %}
|
||||
{% if editors_picks %}
|
||||
<div class="well">
|
||||
<h3>Editors picks</h3>
|
||||
<ul>
|
||||
{% for editors_pick in editors_picks %}
|
||||
<li>
|
||||
<h4>
|
||||
<a href="{% pageurl editors_pick.page %}">
|
||||
{{ editors_pick.page.title }}
|
||||
</a>
|
||||
</h4>
|
||||
<p>{{ editors_pick.description|safe }}</p>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
Asyncronous Search with JSON and AJAX
|
||||
-------------------------------------
|
||||
|
||||
Wagtail's provides JSON search results when queries are made to the ``wagtailsearch_suggest`` view. To take advantage of it, we need a way to make that URL available to a static script. Instead of hard-coding it, lets set a global variable in our ``base.html``:
|
||||
|
||||
.. code-block:: django
|
||||
|
||||
<script>
|
||||
var wagtailJSONSearchURL = "{% url 'wagtailsearch_suggest' %}";
|
||||
</script>
|
||||
|
||||
Lets also add a simple interface for the search with a ``<input>`` element to gather search terms and a ``<div>`` to display the results:
|
||||
|
||||
.. code-block:: html
|
||||
|
||||
<div>
|
||||
<h3>Search</h3>
|
||||
<input id="json-search" type="text">
|
||||
<div id="json-results"></div>
|
||||
</div>
|
||||
|
||||
Finally, we'll use JQuery to make the asynchronous requests and handle the interactivity:
|
||||
|
||||
.. code-block:: guess
|
||||
|
||||
$(function() {
|
||||
|
||||
// cache the elements
|
||||
var searchBox = $('#json-search'),
|
||||
resultsBox = $('#json-results');
|
||||
// when there's something in the input box, make the query
|
||||
searchBox.on('input', function() {
|
||||
if( searchBox.val() == ''){
|
||||
resultsBox.html('');
|
||||
return;
|
||||
}
|
||||
// make the request to the Wagtail JSON search view
|
||||
$.ajax({
|
||||
url: wagtailJSONSearchURL + "?q=" + searchBox.val(),
|
||||
dataType: "json"
|
||||
})
|
||||
.done(function(data) {
|
||||
console.log(data);
|
||||
if( data == undefined ){
|
||||
resultsBox.html('');
|
||||
return;
|
||||
}
|
||||
// we're in business! let's format the results
|
||||
var htmlOutput = '';
|
||||
data.forEach(function(element, index, array){
|
||||
htmlOutput += '<p><a href="' + element.url + '">' + element.title + '</a></p>';
|
||||
});
|
||||
// and display them
|
||||
resultsBox.html(htmlOutput);
|
||||
})
|
||||
.error(function(data){
|
||||
console.log(data);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Results are returned as a JSON object with this structure:
|
||||
|
||||
.. code-block:: guess
|
||||
|
||||
{
|
||||
[
|
||||
{
|
||||
title: "Lumpy Space Princess",
|
||||
url: "/oh-my-glob/"
|
||||
},
|
||||
{
|
||||
title: "Lumpy Space",
|
||||
url: "/no-smooth-posers/"
|
||||
},
|
||||
...
|
||||
]
|
||||
}
|
||||
|
||||
What if you wanted access to the rest of the results context or didn't feel like using JSON? Wagtail also provides a generalized AJAX interface where you can use your own template to serve results asynchronously.
|
||||
|
||||
The AJAX interface uses the same view as the normal HTML search, ``wagtailsearch_search``, but will serve different results if Django classifies the request as AJAX (``request.is_ajax()``). Another entry in your project settings will let you override the template used to serve this response:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
WAGTAILSEARCH_RESULTS_TEMPLATE_AJAX = 'myapp/includes/search_listing.html'
|
||||
|
||||
In this template, you'll have access to the same context variables provided to the HTML template. You could provide a template in JSON format with extra properties, such as ``query.hits`` and editor's picks, or render an HTML snippet that can go directly into your results ``<div>``. If you need more flexibility, such as multiple formats/templates based on differing requests, you can set up a custom search view.
|
||||
|
||||
.. _editors-picks:
|
||||
|
||||
|
||||
Indexing Custom Fields & Custom Search Views
|
||||
--------------------------------------------
|
||||
|
||||
This functionality is still under active development to provide a streamlined interface, but take a look at ``wagtail/wagtail/wagtailsearch/views/frontend.py`` if you are interested in coding custom search views.
|
||||
|
||||
|
||||
Search Backends
|
||||
---------------
|
||||
|
||||
Wagtail can degrade to a database-backed text search, but we strongly recommend `Elasticsearch`_.
|
||||
|
||||
.. _Elasticsearch: http://www.elasticsearch.org/
|
||||
|
||||
|
||||
Default DB Backend
|
||||
``````````````````
|
||||
The default DB search backend uses Django's ``__icontains`` filter.
|
||||
|
||||
|
||||
Elasticsearch Backend
|
||||
`````````````````````
|
||||
If you prefer not to run an Elasticsearch server in development or production, there are many hosted services available, including `Searchly`_, who offer a free account suitable for testing and development. To use Searchly:
|
||||
|
||||
- Sign up for an account at `dashboard.searchly.com/users/sign\_up`_
|
||||
- Use your Searchly dashboard to create a new index, e.g. 'wagtaildemo'
|
||||
|
|
@ -10,6 +229,9 @@ Wagtail can degrade to a database-backed text search, but we strongly recommend
|
|||
your local settings
|
||||
- Run ``./manage.py update_index``
|
||||
|
||||
.. _Elasticsearch: http://www.elasticsearch.org/
|
||||
.. _Searchly: http://www.searchly.com/
|
||||
.. _dashboard.searchly.com/users/sign\_up: https://dashboard.searchly.com/users/sign_up
|
||||
.. _dashboard.searchly.com/users/sign\_up: https://dashboard.searchly.com/users/sign_up
|
||||
|
||||
Rolling Your Own
|
||||
````````````````
|
||||
Wagtail search backends implement the interface defined in ``wagtail/wagtail/wagtailsearch/backends/base.py``. At a minimum, the backend's ``search()`` method must return a collection of objects or ``model.objects.none()``. For a fully-featured search backend, examine the Elasticsearch backend code in ``elasticsearch.py``.
|
||||
|
|
|
|||
|
|
@ -31,11 +31,11 @@ msgstr "搜索词"
|
|||
|
||||
#: .\forms.py:42
|
||||
msgid "Enter your username"
|
||||
msgstr ""
|
||||
msgstr "请输入用户名"
|
||||
|
||||
#: .\forms.py:45
|
||||
msgid "Enter password"
|
||||
msgstr ""
|
||||
msgstr "请输入密码"
|
||||
|
||||
#: .\forms.py:50
|
||||
msgid "Enter your email address to reset your password"
|
||||
|
|
@ -89,7 +89,7 @@ msgstr "登录Wagtail"
|
|||
|
||||
#: .\templates\wagtailadmin\login.html:42
|
||||
msgid "Forgotten it?"
|
||||
msgstr "忘记了?"
|
||||
msgstr "忘记密码?"
|
||||
|
||||
#: .\templates\wagtailadmin\account\account.html:4
|
||||
msgid "Account"
|
||||
|
|
@ -104,7 +104,7 @@ msgid ""
|
|||
"Your avatar image is provided by Gravatar and is connected to your email "
|
||||
"address. With a Gravatar account you can set an avatar for any number of "
|
||||
"other email addresses you use."
|
||||
msgstr "您的头像图片是由Gravatar提供的,并且关联了您的电子邮件地址。一个Gravatar账号可以设置多个电子邮件地址的头像图片。"
|
||||
msgstr "您的头像图片是由Gravatar提供的,并且关联了您的电子邮箱。一个Gravatar账号可以设置多个电子邮箱的头像图片。"
|
||||
|
||||
#: .\templates\wagtailadmin\account\account.html:23
|
||||
#: .\templates\wagtailadmin\account\change_password.html:4
|
||||
|
|
@ -113,7 +113,7 @@ msgstr "修改密码"
|
|||
|
||||
#: .\templates\wagtailadmin\account\account.html:27
|
||||
msgid "Change the password you use to log in."
|
||||
msgstr "修改您用于登录的密码。"
|
||||
msgstr "修改登录密码。"
|
||||
|
||||
#: .\templates\wagtailadmin\account\change_password.html:16
|
||||
msgid "Change Password"
|
||||
|
|
|
|||
BIN
wagtail/wagtailadmin/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
BIN
wagtail/wagtailadmin/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
843
wagtail/wagtailadmin/locale/zh_TW/LC_MESSAGES/django.po
Normal file
843
wagtail/wagtailadmin/locale/zh_TW/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,843 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Wagtail\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-03-14 23:02+0200\n"
|
||||
"PO-Revision-Date: 2014-05-01 12:09+0000\n"
|
||||
"Last-Translator: wdv4758h <wdv4758h@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: zh_TW\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
|
||||
#: .\edit_handlers.py:81 .\edit_handlers.py:130 .\edit_handlers.py:134
|
||||
msgid "Please type a valid time"
|
||||
msgstr "請輸入一個有效的時間"
|
||||
|
||||
#: .\edit_handlers.py:724
|
||||
msgid "Common page configuration"
|
||||
msgstr "一般頁面設定"
|
||||
|
||||
#: .\forms.py:18
|
||||
msgid "Search term"
|
||||
msgstr "搜尋關鍵字"
|
||||
|
||||
#: .\forms.py:42
|
||||
msgid "Enter your username"
|
||||
msgstr "請輸入您的帳號"
|
||||
|
||||
#: .\forms.py:45
|
||||
msgid "Enter password"
|
||||
msgstr "請輸入密碼"
|
||||
|
||||
#: .\forms.py:50
|
||||
msgid "Enter your email address to reset your password"
|
||||
msgstr "請輸入您的電子信箱來重新設定密碼"
|
||||
|
||||
#: .\forms.py:59
|
||||
msgid "Please fill your email address."
|
||||
msgstr "請輸入您的電子信箱"
|
||||
|
||||
#: .\forms.py:72
|
||||
msgid ""
|
||||
"Sorry, you cannot reset your password here as your user account is managed "
|
||||
"by another server."
|
||||
msgstr "對不起,您不能在此重新設定您的密碼,因為您的帳號是由其他伺服器所管理。"
|
||||
|
||||
#: .\forms.py:75
|
||||
msgid "This email address is not recognised."
|
||||
msgstr "找不到這個電子信箱。"
|
||||
|
||||
#: .\templates\wagtailadmin\base.html:7 .\templates\wagtailadmin\home.html:4
|
||||
msgid "Dashboard"
|
||||
msgstr "Dashboard"
|
||||
|
||||
#: .\templates\wagtailadmin\base.html:31
|
||||
msgid "Menu"
|
||||
msgstr "選單"
|
||||
|
||||
#: .\templates\wagtailadmin\home.html:22
|
||||
#, python-format
|
||||
msgid "Welcome to the %(site_name)s Wagtail CMS"
|
||||
msgstr "歡迎進入 %(site_name)s 的 Wagtail 內容管理系統"
|
||||
|
||||
#: .\templates\wagtailadmin\home.html:33
|
||||
msgid ""
|
||||
"This is your dashboard on which helpful information about content you've "
|
||||
"created will be displayed."
|
||||
msgstr "這是您的 Dashboard,會顯示對於已建立的內容有幫助的訊息。"
|
||||
|
||||
#: .\templates\wagtailadmin\login.html:4
|
||||
#: .\templates\wagtailadmin\login.html:55
|
||||
msgid "Sign in"
|
||||
msgstr "登入"
|
||||
|
||||
#: .\templates\wagtailadmin\login.html:18
|
||||
msgid "Your username and password didn't match. Please try again."
|
||||
msgstr "您的帳號和密碼輸入錯誤,請再試一次。"
|
||||
|
||||
#: .\templates\wagtailadmin\login.html:26
|
||||
msgid "Sign in to Wagtail"
|
||||
msgstr "登入 Wagtail"
|
||||
|
||||
#: .\templates\wagtailadmin\login.html:42
|
||||
msgid "Forgotten it?"
|
||||
msgstr "忘記了嗎?"
|
||||
|
||||
#: .\templates\wagtailadmin\account\account.html:4
|
||||
msgid "Account"
|
||||
msgstr "帳號"
|
||||
|
||||
#: .\templates\wagtailadmin\account\account.html:11
|
||||
msgid "Set gravatar"
|
||||
msgstr "設定 gravatar"
|
||||
|
||||
#: .\templates\wagtailadmin\account\account.html:15
|
||||
msgid ""
|
||||
"Your avatar image is provided by Gravatar and is connected to your email "
|
||||
"address. With a Gravatar account you can set an avatar for any number of "
|
||||
"other email addresses you use."
|
||||
msgstr "您的頭像是由 Gravatar 所提供,並且已經聯結你的電子信箱。一個 Gravatar 帳號可以設定多個電子信箱的頭像圖片。"
|
||||
|
||||
#: .\templates\wagtailadmin\account\account.html:23
|
||||
#: .\templates\wagtailadmin\account\change_password.html:4
|
||||
msgid "Change password"
|
||||
msgstr "修改密碼"
|
||||
|
||||
#: .\templates\wagtailadmin\account\account.html:27
|
||||
msgid "Change the password you use to log in."
|
||||
msgstr "修改登入用的密碼。"
|
||||
|
||||
#: .\templates\wagtailadmin\account\change_password.html:16
|
||||
msgid "Change Password"
|
||||
msgstr "修改密碼"
|
||||
|
||||
#: .\templates\wagtailadmin\account\change_password.html:19
|
||||
msgid ""
|
||||
"Your password can't be changed here. Please contact a site administrator."
|
||||
msgstr "您的密碼不能在這更改。請聯絡網站管理員。"
|
||||
|
||||
#: .\templates\wagtailadmin\account\password_reset\complete.html:4
|
||||
#: .\templates\wagtailadmin\account\password_reset\confirm.html:42
|
||||
#: .\templates\wagtailadmin\account\password_reset\done.html:4
|
||||
#: .\templates\wagtailadmin\account\password_reset\form.html:37
|
||||
msgid "Reset password"
|
||||
msgstr "重新設定密碼"
|
||||
|
||||
#: .\templates\wagtailadmin\account\password_reset\complete.html:15
|
||||
msgid "Password change successful"
|
||||
msgstr "密碼修改成功"
|
||||
|
||||
#: .\templates\wagtailadmin\account\password_reset\complete.html:16
|
||||
msgid "Login"
|
||||
msgstr "登入"
|
||||
|
||||
#: .\templates\wagtailadmin\account\password_reset\confirm.html:4
|
||||
#: .\templates\wagtailadmin\account\password_reset\confirm.html:26
|
||||
msgid "Set your new password"
|
||||
msgstr "設定您的新密碼"
|
||||
|
||||
#: .\templates\wagtailadmin\account\password_reset\confirm.html:19
|
||||
msgid "The passwords do not match. Please try again."
|
||||
msgstr "密碼不一致,請再試一次。"
|
||||
|
||||
#: .\templates\wagtailadmin\account\password_reset\done.html:15
|
||||
msgid "Check your email"
|
||||
msgstr "請檢查您的電子信箱"
|
||||
|
||||
#: .\templates\wagtailadmin\account\password_reset\done.html:16
|
||||
msgid "A link to reset your password has been emailed to you."
|
||||
msgstr "一個重新設定密碼連結已經寄到您的電子信箱了"
|
||||
|
||||
#: .\templates\wagtailadmin\account\password_reset\email.txt:2
|
||||
msgid "Please follow the link below to reset your password"
|
||||
msgstr "請點擊下面的連結來重新設定您的密碼"
|
||||
|
||||
#: .\templates\wagtailadmin\account\password_reset\email_subject.txt:2
|
||||
msgid "Password reset"
|
||||
msgstr "密碼已經重新設定"
|
||||
|
||||
#: .\templates\wagtailadmin\account\password_reset\form.html:27
|
||||
msgid "Reset your password"
|
||||
msgstr "重新設定您的密碼"
|
||||
|
||||
#: .\templates\wagtailadmin\chooser\_link_types.html:5
|
||||
#: .\templates\wagtailadmin\chooser\_link_types.html:7
|
||||
msgid "Internal link"
|
||||
msgstr "內部連結"
|
||||
|
||||
#: .\templates\wagtailadmin\chooser\_link_types.html:11
|
||||
#: .\templates\wagtailadmin\chooser\_link_types.html:13
|
||||
msgid "External link"
|
||||
msgstr "外部連結"
|
||||
|
||||
#: .\templates\wagtailadmin\chooser\_link_types.html:17
|
||||
#: .\templates\wagtailadmin\chooser\_link_types.html:19
|
||||
msgid "Email link"
|
||||
msgstr "電子信箱連結"
|
||||
|
||||
#: .\templates\wagtailadmin\chooser\_search_form.html:7
|
||||
#: .\templates\wagtailadmin\pages\search.html:3
|
||||
#: .\templates\wagtailadmin\pages\search.html:16
|
||||
#: .\templatetags\wagtailadmin_nav.py:44
|
||||
msgid "Search"
|
||||
msgstr "搜尋"
|
||||
|
||||
#: .\templates\wagtailadmin\chooser\_search_results.html:3
|
||||
#: .\templatetags\wagtailadmin_nav.py:43
|
||||
msgid "Explorer"
|
||||
msgstr "瀏覽"
|
||||
|
||||
#: .\templates\wagtailadmin\chooser\_search_results.html:5
|
||||
#: .\templates\wagtailadmin\pages\index.html:15
|
||||
#: .\templates\wagtailadmin\pages\move_choose_destination.html:10
|
||||
msgid "Home"
|
||||
msgstr "首頁"
|
||||
|
||||
#: .\templates\wagtailadmin\chooser\_search_results.html:13
|
||||
#, python-format
|
||||
msgid ""
|
||||
"\n"
|
||||
" There is one match\n"
|
||||
" "
|
||||
msgid_plural ""
|
||||
"\n"
|
||||
" There are %(counter)s matches\n"
|
||||
" "
|
||||
msgstr[0] "\n 有一個符合"
|
||||
msgstr[1] "\n 有 $(counter)s 個符合"
|
||||
|
||||
#: .\templates\wagtailadmin\chooser\browse.html:2
|
||||
#: .\templates\wagtailadmin\chooser\search.html:2
|
||||
#: .\templates\wagtailadmin\edit_handlers\page_chooser_panel.html:13
|
||||
msgid "Choose a page"
|
||||
msgstr "選擇一個頁面"
|
||||
|
||||
#: .\templates\wagtailadmin\chooser\email_link.html:2
|
||||
msgid "Add an email link"
|
||||
msgstr "新增一個電子信箱"
|
||||
|
||||
#: .\templates\wagtailadmin\chooser\email_link.html:14
|
||||
#: .\templates\wagtailadmin\chooser\external_link.html:14
|
||||
msgid "Insert link"
|
||||
msgstr "插入一個連結"
|
||||
|
||||
#: .\templates\wagtailadmin\chooser\external_link.html:2
|
||||
msgid "Add an external link"
|
||||
msgstr "新增一個外部連結"
|
||||
|
||||
#: .\templates\wagtailadmin\edit_handlers\chooser_panel.html:20
|
||||
msgid "Clear choice"
|
||||
msgstr "清除選擇"
|
||||
|
||||
#: .\templates\wagtailadmin\edit_handlers\chooser_panel.html:22
|
||||
msgid "Choose another item"
|
||||
msgstr "選擇其他選項"
|
||||
|
||||
#: .\templates\wagtailadmin\edit_handlers\chooser_panel.html:27
|
||||
msgid "Choose an item"
|
||||
msgstr "選擇一個選項"
|
||||
|
||||
#: .\templates\wagtailadmin\edit_handlers\inline_panel_child.html:5
|
||||
msgid "Move up"
|
||||
msgstr "往上移動"
|
||||
|
||||
#: .\templates\wagtailadmin\edit_handlers\inline_panel_child.html:6
|
||||
msgid "Move down"
|
||||
msgstr "往下移動"
|
||||
|
||||
#: .\templates\wagtailadmin\edit_handlers\inline_panel_child.html:8
|
||||
#: .\templates\wagtailadmin\pages\confirm_delete.html:7
|
||||
#: .\templates\wagtailadmin\pages\edit.html:36
|
||||
#: .\templates\wagtailadmin\pages\list.html:68
|
||||
#: .\templates\wagtailadmin\pages\list.html:188
|
||||
msgid "Delete"
|
||||
msgstr "刪除"
|
||||
|
||||
#: .\templates\wagtailadmin\edit_handlers\page_chooser_panel.html:12
|
||||
msgid "Choose another page"
|
||||
msgstr "選擇另外一個頁面"
|
||||
|
||||
#: .\templates\wagtailadmin\home\pages_for_moderation.html:5
|
||||
msgid "Pages awaiting moderation"
|
||||
msgstr "這些頁面正等待審核"
|
||||
|
||||
#: .\templates\wagtailadmin\home\pages_for_moderation.html:13
|
||||
#: .\templates\wagtailadmin\home\recent_edits.html:12
|
||||
#: .\templates\wagtailadmin\pages\list.html:101
|
||||
msgid "Title"
|
||||
msgstr "標題"
|
||||
|
||||
#: .\templates\wagtailadmin\home\pages_for_moderation.html:14
|
||||
#: .\templates\wagtailadmin\pages\list.html:22
|
||||
msgid "Parent"
|
||||
msgstr "上一層"
|
||||
|
||||
#: .\templates\wagtailadmin\home\pages_for_moderation.html:15
|
||||
#: .\templates\wagtailadmin\pages\list.html:24
|
||||
#: .\templates\wagtailadmin\pages\list.html:116
|
||||
msgid "Type"
|
||||
msgstr "類型"
|
||||
|
||||
#: .\templates\wagtailadmin\home\pages_for_moderation.html:16
|
||||
msgid "Edited"
|
||||
msgstr "編輯"
|
||||
|
||||
#: .\templates\wagtailadmin\home\pages_for_moderation.html:23
|
||||
#: .\templates\wagtailadmin\home\recent_edits.html:21
|
||||
#: .\templates\wagtailadmin\pages\list.html:167
|
||||
#: .\templates\wagtailadmin\pages\list.html:176
|
||||
msgid "Edit this page"
|
||||
msgstr "編輯這個頁面"
|
||||
|
||||
#: .\templates\wagtailadmin\home\pages_for_moderation.html:28
|
||||
#: .\templates\wagtailadmin\pages\_moderator_userbar.html:12
|
||||
msgid "Approve"
|
||||
msgstr "通過"
|
||||
|
||||
#: .\templates\wagtailadmin\home\pages_for_moderation.html:34
|
||||
#: .\templates\wagtailadmin\pages\_moderator_userbar.html:17
|
||||
msgid "Reject"
|
||||
msgstr "拒絕"
|
||||
|
||||
#: .\templates\wagtailadmin\home\pages_for_moderation.html:37
|
||||
#: .\templates\wagtailadmin\home\recent_edits.html:23
|
||||
#: .\templates\wagtailadmin\pages\_moderator_userbar.html:9
|
||||
#: .\templates\wagtailadmin\pages\list.html:56
|
||||
#: .\templates\wagtailadmin\pages\list.html:176
|
||||
msgid "Edit"
|
||||
msgstr "編輯"
|
||||
|
||||
#: .\templates\wagtailadmin\home\pages_for_moderation.html:38
|
||||
#: .\templates\wagtailadmin\pages\create.html:24
|
||||
#: .\templates\wagtailadmin\pages\edit.html:42
|
||||
msgid "Preview"
|
||||
msgstr "預覽"
|
||||
|
||||
#: .\templates\wagtailadmin\home\recent_edits.html:5
|
||||
msgid "Your most recent edits"
|
||||
msgstr "你最近的編輯"
|
||||
|
||||
#: .\templates\wagtailadmin\home\recent_edits.html:13
|
||||
msgid "Date"
|
||||
msgstr "日期"
|
||||
|
||||
#: .\templates\wagtailadmin\home\recent_edits.html:14
|
||||
#: .\templates\wagtailadmin\pages\list.html:25
|
||||
#: .\templates\wagtailadmin\pages\list.html:128
|
||||
msgid "Status"
|
||||
msgstr "狀態"
|
||||
|
||||
#: .\templates\wagtailadmin\home\recent_edits.html:25
|
||||
#: .\templates\wagtailadmin\pages\list.html:59
|
||||
#: .\templates\wagtailadmin\pages\list.html:179
|
||||
msgid "View draft"
|
||||
msgstr "觀看草稿"
|
||||
|
||||
#: .\templates\wagtailadmin\home\recent_edits.html:28
|
||||
#: .\templates\wagtailadmin\pages\list.html:62
|
||||
#: .\templates\wagtailadmin\pages\list.html:182
|
||||
msgid "View live"
|
||||
msgstr "觀看線上版"
|
||||
|
||||
#: .\templates\wagtailadmin\home\site_summary.html:3
|
||||
msgid "Site summary"
|
||||
msgstr "網站摘要"
|
||||
|
||||
#: .\templates\wagtailadmin\home\site_summary.html:6
|
||||
#, python-format
|
||||
msgid ""
|
||||
"\n"
|
||||
" <span>%(total_pages)s</span> Page\n"
|
||||
" "
|
||||
msgid_plural ""
|
||||
"\n"
|
||||
" <span>%(total_pages)s</span> Pages\n"
|
||||
" "
|
||||
msgstr[0] "\n <span>%(total_pages)s</span> 頁面\n "
|
||||
msgstr[1] "\n <span>%(total_pages)s</span> 頁面\n "
|
||||
|
||||
#: .\templates\wagtailadmin\home\site_summary.html:13
|
||||
#, python-format
|
||||
msgid ""
|
||||
"\n"
|
||||
" <span>%(total_images)s</span> Image\n"
|
||||
" "
|
||||
msgid_plural ""
|
||||
"\n"
|
||||
" <span>%(total_images)s</span> Images\n"
|
||||
" "
|
||||
msgstr[0] "\n <span>%(total_images)s</span> 圖片\n "
|
||||
msgstr[1] "\n <span>%(total_images)s</span> 圖片\n "
|
||||
|
||||
#: .\templates\wagtailadmin\home\site_summary.html:20
|
||||
#, python-format
|
||||
msgid ""
|
||||
"\n"
|
||||
" <span>%(total_docs)s</span> Document\n"
|
||||
" "
|
||||
msgid_plural ""
|
||||
"\n"
|
||||
" <span>%(total_docs)s</span> Documents\n"
|
||||
" "
|
||||
msgstr[0] "\n <span>%(total_docs)s</span> 文件\n "
|
||||
msgstr[1] "\n <span>%(total_docs)s</span> 文件\n "
|
||||
|
||||
#: .\templates\wagtailadmin\notifications\approved.html:1
|
||||
#, python-format
|
||||
msgid "The page \"%(title)s\" has been approved"
|
||||
msgstr "這個頁面 \"%(title)s\" 已經通過"
|
||||
|
||||
#: .\templates\wagtailadmin\notifications\approved.html:2
|
||||
#, python-format
|
||||
msgid "The page \"%(title)s\" has been approved."
|
||||
msgstr "這個頁面 \"%(title)s\" 已經通過"
|
||||
|
||||
#: .\templates\wagtailadmin\notifications\approved.html:4
|
||||
msgid "You can view the page here:"
|
||||
msgstr "你可以在此觀看這個頁面"
|
||||
|
||||
#: .\templates\wagtailadmin\notifications\rejected.html:1
|
||||
#, python-format
|
||||
msgid "The page \"%(title)s\" has been rejected"
|
||||
msgstr "這個頁面 \"%(title)s\" 已經被拒絕"
|
||||
|
||||
#: .\templates\wagtailadmin\notifications\rejected.html:2
|
||||
#, python-format
|
||||
msgid "The page \"%(title)s\" has been rejected."
|
||||
msgstr "這個頁面 \"%(title)s\" 已經被拒絕"
|
||||
|
||||
#: .\templates\wagtailadmin\notifications\rejected.html:4
|
||||
#: .\templates\wagtailadmin\notifications\submitted.html:5
|
||||
msgid "You can edit the page here:"
|
||||
msgstr "你可以在此編輯這個頁面:"
|
||||
|
||||
#: .\templates\wagtailadmin\notifications\submitted.html:1
|
||||
#, python-format
|
||||
msgid "The page \"%(page)s\" has been submitted for moderation"
|
||||
msgstr "這個頁面 \"%(page)s\" 已經送審"
|
||||
|
||||
#: .\templates\wagtailadmin\notifications\submitted.html:2
|
||||
#, python-format
|
||||
msgid "The page \"%(page)s\" has been submitted for moderation."
|
||||
msgstr "這個頁面 \"%(page)s\" 已經送審。"
|
||||
|
||||
#: .\templates\wagtailadmin\notifications\submitted.html:4
|
||||
msgid "You can preview the page here:"
|
||||
msgstr "你可以在此預覽這個頁面:"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\_moderator_userbar.html:4
|
||||
#, python-format
|
||||
msgid ""
|
||||
"\n"
|
||||
" Previewing '%(title)s', submitted by %(submitted_by)s on %(submitted_on)s.\n"
|
||||
" "
|
||||
msgstr "\n 預覽 '%(title)s', %(submitted_by)s 在 %(submitted_on)s 送審。\n "
|
||||
|
||||
#: .\templates\wagtailadmin\pages\add_subpage.html:6
|
||||
#, python-format
|
||||
msgid "Create a page in %(title)s"
|
||||
msgstr "以 %(title)s 為題建立一個頁面"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\add_subpage.html:9
|
||||
msgid "Create a page in"
|
||||
msgstr "在這建立一個頁面"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\add_subpage.html:13
|
||||
msgid "Choose which type of page you'd like to create."
|
||||
msgstr "選擇希望建立的頁面類型。"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\add_subpage.html:26
|
||||
#, python-format
|
||||
msgid "Pages using %(page_type)s"
|
||||
msgstr "%(page_type)s 類的頁面"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\confirm_delete.html:3
|
||||
#, python-format
|
||||
msgid "Delete %(title)s"
|
||||
msgstr "刪除 %(title)s"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\confirm_delete.html:12
|
||||
msgid "Are you sure you want to delete this page?"
|
||||
msgstr "你確定要刪除這頁嗎?"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\confirm_delete.html:14
|
||||
#, python-format
|
||||
msgid ""
|
||||
"\n"
|
||||
" This will also delete one more subpage.\n"
|
||||
" "
|
||||
msgid_plural ""
|
||||
"\n"
|
||||
" This will also delete %(descendant_count)s more subpages.\n"
|
||||
" "
|
||||
msgstr[0] "\n 這也會刪除一個子頁面。 "
|
||||
msgstr[1] "\n 這也會刪除 %(descendant_count)s 個子頁面。 "
|
||||
|
||||
#: .\templates\wagtailadmin\pages\confirm_delete.html:22
|
||||
msgid ""
|
||||
"Alternatively you can unpublish the page. This removes the page from public "
|
||||
"view and you can edit or publish it again later."
|
||||
msgstr "你可以選擇取消發佈此頁面。此頁面將將無法從外部觀看,你可以編輯後再次發。"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\confirm_delete.html:26
|
||||
msgid "Delete it"
|
||||
msgstr "刪除"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\confirm_delete.html:26
|
||||
msgid "Unpublish it"
|
||||
msgstr "取消發佈"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\confirm_move.html:3
|
||||
#, python-format
|
||||
msgid "Move %(title)s"
|
||||
msgstr "移動 %(title)s"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\confirm_move.html:6
|
||||
#: .\templates\wagtailadmin\pages\list.html:65
|
||||
#: .\templates\wagtailadmin\pages\list.html:185
|
||||
msgid "Move"
|
||||
msgstr "移動"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\confirm_move.html:11
|
||||
#, python-format
|
||||
msgid "Are you sure you want to move this page into '%(title)s'?"
|
||||
msgstr "你確定想要移動此頁面至 '%(title)s' 嗎?"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\confirm_move.html:13
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Are you sure you want to move this page and all of its children into "
|
||||
"'%(title)s'?"
|
||||
msgstr "你確定要移動此頁面和其所有子頁面至 '%(title)s' 嗎?"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\confirm_move.html:18
|
||||
msgid "Yes, move this page"
|
||||
msgstr "是的,移動此頁面"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\confirm_unpublish.html:3
|
||||
#, python-format
|
||||
msgid "Unpublish %(title)s"
|
||||
msgstr "取消發佈 %(title)s"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\confirm_unpublish.html:6
|
||||
#: .\templates\wagtailadmin\pages\edit.html:33
|
||||
#: .\templates\wagtailadmin\pages\list.html:71
|
||||
#: .\templates\wagtailadmin\pages\list.html:191
|
||||
msgid "Unpublish"
|
||||
msgstr "取消發佈"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\confirm_unpublish.html:10
|
||||
msgid "Are you sure you want to unpublish this page?"
|
||||
msgstr "你確定想取消發佈此頁面嗎?"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\confirm_unpublish.html:13
|
||||
msgid "Yes, unpublish it"
|
||||
msgstr "是的,取消發佈"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\content_type_use.html:7
|
||||
msgid "Pages using"
|
||||
msgstr "頁面正在使用"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\create.html:5
|
||||
#, python-format
|
||||
msgid "New %(page_type)s"
|
||||
msgstr "新 %(page_type)s 分類"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\create.html:9
|
||||
msgid "New"
|
||||
msgstr "新"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\create.html:21
|
||||
msgid "Save as draft"
|
||||
msgstr "儲存為草稿"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\create.html:26
|
||||
#: .\templates\wagtailadmin\pages\edit.html:39
|
||||
msgid "Publish"
|
||||
msgstr "發佈"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\create.html:28
|
||||
#: .\templates\wagtailadmin\pages\edit.html:41
|
||||
msgid "Submit for moderation"
|
||||
msgstr "送審"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\edit.html:5
|
||||
#, python-format
|
||||
msgid "Editing %(title)s"
|
||||
msgstr "編輯 %(title)s"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\edit.html:12
|
||||
#, python-format
|
||||
msgid "Editing <span>%(title)s</span>"
|
||||
msgstr "編輯 <span>%(title)s</span>"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\edit.html:15
|
||||
msgid "Status:"
|
||||
msgstr "狀態:"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\edit.html:29
|
||||
msgid "Save draft"
|
||||
msgstr "儲存草稿"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\edit.html:52
|
||||
#, python-format
|
||||
msgid "Last modified: %(last_mod)s"
|
||||
msgstr "上一次編輯:%(last_mod)s"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\edit.html:54
|
||||
#, python-format
|
||||
msgid "by %(modified_by)s"
|
||||
msgstr "作者 %(modified_by)s"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\index.html:4
|
||||
#, python-format
|
||||
msgid "Exploring %(title)s"
|
||||
msgstr "瀏覽%(title)s"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\list.html:53
|
||||
#: .\templates\wagtailadmin\pages\list.html:194
|
||||
msgid "Add child page"
|
||||
msgstr "新增子頁面"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\list.html:94
|
||||
msgid "Disable ordering of child pages"
|
||||
msgstr "禁止子頁面的排序"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\list.html:94
|
||||
#: .\templates\wagtailadmin\pages\list.html:96
|
||||
msgid "Order"
|
||||
msgstr "排序"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\list.html:96
|
||||
msgid "Enable ordering of child pages"
|
||||
msgstr "開啟子頁面排序"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\list.html:149
|
||||
msgid "Drag"
|
||||
msgstr "拖曳"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\list.html:220
|
||||
#: .\templates\wagtailadmin\pages\list.html:224
|
||||
#, python-format
|
||||
msgid "Explorer subpages of '%(title)s'"
|
||||
msgstr "瀏覽 '%(title)s' 的子頁面"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\list.html:220
|
||||
#: .\templates\wagtailadmin\pages\list.html:224
|
||||
#: .\templates\wagtailadmin\pages\list.html:228
|
||||
msgid "Explore"
|
||||
msgstr "瀏覽"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\list.html:228
|
||||
#, python-format
|
||||
msgid "Explorer child pages of '%(title)s'"
|
||||
msgstr "瀏覽 '%(title)s' 的子頁面"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\list.html:230
|
||||
#, python-format
|
||||
msgid "Add a child page to '%(title)s'"
|
||||
msgstr "新增子頁面至 '%(title)s'"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\list.html:230
|
||||
msgid "Add subpage"
|
||||
msgstr "新增子頁面"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\list.html:239
|
||||
msgid "No pages have been created."
|
||||
msgstr "沒有已儲存的頁面"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\list.html:239
|
||||
#, python-format
|
||||
msgid "Why not <a href=\"%(add_page_url)s\">add one</a>?"
|
||||
msgstr "為什麼不 <a href=\"%(add_page_url)s\"> 新增一個頁面呢</a>?"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\move_choose_destination.html:3
|
||||
#, python-format
|
||||
msgid "Select a new parent page for %(title)s"
|
||||
msgstr "為 %(title)s 選擇一個新的母頁面"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\move_choose_destination.html:7
|
||||
#, python-format
|
||||
msgid "Select a new parent page for <span>%(title)s</span>"
|
||||
msgstr "為 <span>%(title)s</span> 選擇一個新的母頁面"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\search_results.html:6
|
||||
#, python-format
|
||||
msgid ""
|
||||
"\n"
|
||||
" There is one match\n"
|
||||
" "
|
||||
msgid_plural ""
|
||||
"\n"
|
||||
" There are %(counter)s matches\n"
|
||||
" "
|
||||
msgstr[0] "\n 有一個符合"
|
||||
msgstr[1] "\n 有 $(counter)s 個符合"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\search_results.html:17
|
||||
#, python-format
|
||||
msgid ""
|
||||
"\n"
|
||||
" Page %(page_number)s of %(num_pages)s.\n"
|
||||
" "
|
||||
msgstr "\n 第 %(page_number)s / %(num_pages)s頁。\n "
|
||||
|
||||
#: .\templates\wagtailadmin\pages\search_results.html:24
|
||||
#: .\templates\wagtailadmin\pages\search_results.html:26
|
||||
#: .\templates\wagtailadmin\shared\pagination_nav.html:8
|
||||
#: .\templates\wagtailadmin\shared\pagination_nav.html:10
|
||||
#: .\templates\wagtailadmin\shared\pagination_nav.html:14
|
||||
msgid "Previous"
|
||||
msgstr "往前"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\search_results.html:33
|
||||
#: .\templates\wagtailadmin\pages\search_results.html:35
|
||||
#: .\templates\wagtailadmin\shared\pagination_nav.html:21
|
||||
#: .\templates\wagtailadmin\shared\pagination_nav.html:23
|
||||
#: .\templates\wagtailadmin\shared\pagination_nav.html:25
|
||||
msgid "Next"
|
||||
msgstr "往後"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\search_results.html:43
|
||||
#, python-format
|
||||
msgid "Sorry, no pages match <em>\"%(query_string)s\"</em>"
|
||||
msgstr "對不起,沒有任何頁面符合 \"<em>%(query_string)s</em>\""
|
||||
|
||||
#: .\templates\wagtailadmin\pages\search_results.html:45
|
||||
msgid "Enter a search term above"
|
||||
msgstr "請輸入關鍵字"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\select_location.html:3
|
||||
#, python-format
|
||||
msgid "Where do you want to create a %(page_type)s"
|
||||
msgstr "你想在哪建立 %(page_type)s"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\select_location.html:5
|
||||
msgid "Where do you want to create this"
|
||||
msgstr "你想在哪建立這個"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\select_type.html:3
|
||||
#: .\templates\wagtailadmin\pages\select_type.html:6
|
||||
msgid "Create a new page"
|
||||
msgstr "建立一個新頁面"
|
||||
|
||||
#: .\templates\wagtailadmin\pages\select_type.html:10
|
||||
msgid ""
|
||||
"Your new page will be saved in the <em>top level</em> of your website. You "
|
||||
"can move it after saving."
|
||||
msgstr "你的新頁面將會儲存到網站的 <em>最上層</em> 你可以在儲存後移動它。"
|
||||
|
||||
#: .\templates\wagtailadmin\shared\main_nav.html:15
|
||||
msgid "Account settings"
|
||||
msgstr "帳號設定"
|
||||
|
||||
#: .\templates\wagtailadmin\shared\main_nav.html:16
|
||||
msgid "Log out"
|
||||
msgstr "登出"
|
||||
|
||||
#: .\templates\wagtailadmin\shared\main_nav.html:20
|
||||
msgid "More"
|
||||
msgstr "更多"
|
||||
|
||||
#: .\templates\wagtailadmin\shared\main_nav.html:22
|
||||
msgid "Redirects"
|
||||
msgstr "重導向"
|
||||
|
||||
#: .\templates\wagtailadmin\shared\main_nav.html:23
|
||||
msgid "Editors Picks"
|
||||
msgstr "編者精選"
|
||||
|
||||
#: .\templates\wagtailadmin\shared\pagination_nav.html:3
|
||||
#, python-format
|
||||
msgid "Page %(page_num)s of %(total_pages)s."
|
||||
msgstr "第 %(page_num)s 頁 共 %(total_pages)s 頁"
|
||||
|
||||
#: .\templatetags\wagtailadmin_nav.py:52
|
||||
msgid "Images"
|
||||
msgstr "圖片"
|
||||
|
||||
#: .\templatetags\wagtailadmin_nav.py:56
|
||||
msgid "Documents"
|
||||
msgstr "文件"
|
||||
|
||||
#: .\templatetags\wagtailadmin_nav.py:61
|
||||
msgid "Snippets"
|
||||
msgstr "片段"
|
||||
|
||||
#: .\templatetags\wagtailadmin_nav.py:66
|
||||
msgid "Users"
|
||||
msgstr "使用者"
|
||||
|
||||
#: .\views\account.py:26
|
||||
msgid "Your password has been changed successfully!"
|
||||
msgstr "您的密碼已經更改成功。"
|
||||
|
||||
#: .\views\pages.py:99
|
||||
msgid "Sorry, you do not have access to create a page of type <em>'{0}'</em>."
|
||||
msgstr "對不起,你沒有建立 <em>'{0}'</em> 類型頁面的權限。"
|
||||
|
||||
#: .\views\pages.py:103
|
||||
msgid ""
|
||||
"Pages of this type can only be created as children of <em>'{0}'</em>. This "
|
||||
"new page will be saved there."
|
||||
msgstr "這一類的頁面只能建立為 <em>'{0}'</em> 的子頁面。此頁面將會儲存在那邊。"
|
||||
|
||||
#: .\views\pages.py:166
|
||||
msgid "This slug is already in use"
|
||||
msgstr "這個地址已被使用"
|
||||
|
||||
#: .\views\pages.py:187 .\views\pages.py:254 .\views\pages.py:589
|
||||
msgid "Page '{0}' published."
|
||||
msgstr "第 '{0}' 頁已發佈。"
|
||||
|
||||
#: .\views\pages.py:189 .\views\pages.py:256
|
||||
msgid "Page '{0}' submitted for moderation."
|
||||
msgstr "第 '{0}' 頁已送審。"
|
||||
|
||||
#: .\views\pages.py:192
|
||||
msgid "Page '{0}' created."
|
||||
msgstr "第 '{0}' 頁已建立。"
|
||||
|
||||
#: .\views\pages.py:201
|
||||
msgid "The page could not be created due to errors."
|
||||
msgstr "這頁面因有錯誤而無法建立。"
|
||||
|
||||
#: .\views\pages.py:259
|
||||
msgid "Page '{0}' updated."
|
||||
msgstr "第 '{0}' 頁已更新"
|
||||
|
||||
#: .\views\pages.py:268
|
||||
msgid "The page could not be saved due to validation errors"
|
||||
msgstr "這頁面因有驗證錯誤而無法儲存。"
|
||||
|
||||
#: .\views\pages.py:280
|
||||
msgid "This page is currently awaiting moderation"
|
||||
msgstr "這頁正等待審核"
|
||||
|
||||
#: .\views\pages.py:298
|
||||
msgid "Page '{0}' deleted."
|
||||
msgstr "第 '{0}' 頁已刪除"
|
||||
|
||||
#: .\views\pages.py:428
|
||||
msgid "Page '{0}' unpublished."
|
||||
msgstr "第 '{0}' 頁已取消發佈"
|
||||
|
||||
#: .\views\pages.py:479
|
||||
msgid "Page '{0}' moved."
|
||||
msgstr "第 '{0}' 頁已移動。"
|
||||
|
||||
#: .\views\pages.py:584 .\views\pages.py:602 .\views\pages.py:621
|
||||
msgid "The page '{0}' is not currently awaiting moderation."
|
||||
msgstr "第 '{0}' 頁目前不需要等待審核。"
|
||||
|
||||
#: .\views\pages.py:608
|
||||
msgid "Page '{0}' rejected for publication."
|
||||
msgstr "第 '{0}' 頁已被拒絕發佈。"
|
||||
|
|
@ -87,11 +87,13 @@ li, .home{
|
|||
.action{
|
||||
@include transition(background-color 0.2s ease, color 0.2s ease);
|
||||
background-color:$color-teal;
|
||||
color:white;
|
||||
color:$color-teal;
|
||||
|
||||
&:before{
|
||||
margin-right:0.4em;
|
||||
vertical-align:middle;
|
||||
font-size:1.7em;
|
||||
color:white;
|
||||
}
|
||||
|
||||
&:hover{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
modal.ajaxifyForm($('form.search-bar', modal.body));
|
||||
modal.ajaxifyForm($('form.search-form', modal.body));
|
||||
|
||||
var searchUrl = $('form.search-bar', modal.body).attr('action');
|
||||
var searchUrl = $('form.search-form', modal.body).attr('action');
|
||||
|
||||
function search() {
|
||||
$.ajax({
|
||||
|
|
|
|||
BIN
wagtail/wagtailcore/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
BIN
wagtail/wagtailcore/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
64
wagtail/wagtailcore/locale/zh_TW/LC_MESSAGES/django.po
Normal file
64
wagtail/wagtailcore/locale/zh_TW/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Wagtail\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-03-10 12:24+0200\n"
|
||||
"PO-Revision-Date: 2014-02-28 16:07+0000\n"
|
||||
"Last-Translator: wdv4758h <wdv4758h@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: zh_TW\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
|
||||
#: .\models.py:36
|
||||
msgid ""
|
||||
"Set this to something other than 80 if you need a specific port number to "
|
||||
"appear in URLs (e.g. development on port 8000). Does not affect request "
|
||||
"handling (so port forwarding still works)."
|
||||
msgstr ""
|
||||
"如果你需要指定 port,請選擇一個非 80 的 port number (例如: 開發中用 8000 port)。 不影響 request 處理"
|
||||
" (port forwarding 仍然有效)"
|
||||
|
||||
#: .\models.py:38
|
||||
msgid ""
|
||||
"If true, this site will handle requests for all other hostnames that do not "
|
||||
"have a site entry of their own"
|
||||
msgstr ""
|
||||
"如果這是 Ture 的話,這個網站將處理其他沒有自己網站的 hostname 的 request。"
|
||||
|
||||
#: .\models.py:163
|
||||
msgid "The page title as you'd like it to be seen by the public"
|
||||
msgstr "頁面標題 (你想讓外界看到的)"
|
||||
|
||||
#: .\models.py:164
|
||||
msgid ""
|
||||
"The name of the page as it will appear in URLs e.g http://domain.com/blog/"
|
||||
"[my-slug]/"
|
||||
msgstr "一個出現在 URL 的名字,例如 http://domain.com/blog/[my-slug]/"
|
||||
|
||||
#: .\models.py:173
|
||||
msgid "Page title"
|
||||
msgstr "頁面標題"
|
||||
|
||||
#: .\models.py:173
|
||||
msgid ""
|
||||
"Optional. 'Search Engine Friendly' title. This will appear at the top of the "
|
||||
"browser window."
|
||||
msgstr "(可選) '搜尋引擎友善' 標題。 這會顯示在瀏覽器的視窗最上方"
|
||||
|
||||
#: .\models.py:174
|
||||
msgid ""
|
||||
"Whether a link to this page will appear in automatically generated menus"
|
||||
msgstr "是否在自動生成的 Menu 裡顯示一個連結到此頁面"
|
||||
|
||||
#: .\models.py:418
|
||||
#, python-format
|
||||
msgid "name '%s' (used in subpage_types list) is not defined."
|
||||
msgstr "'%s' (用於子頁面類型列表) 沒有被建立。"
|
||||
BIN
wagtail/wagtaildocs/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
BIN
wagtail/wagtaildocs/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
157
wagtail/wagtaildocs/locale/zh_TW/LC_MESSAGES/django.po
Normal file
157
wagtail/wagtaildocs/locale/zh_TW/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,157 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Wagtail\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-03-14 23:09+0200\n"
|
||||
"PO-Revision-Date: 2014-03-14 21:12+0000\n"
|
||||
"Last-Translator: wdv4758h <wdv4758h@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: zh_TW\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
|
||||
#: .\models.py:16 .\templates\wagtaildocs\documents\list.html:9
|
||||
msgid "Title"
|
||||
msgstr "標題"
|
||||
|
||||
#: .\models.py:17 .\templates\wagtaildocs\documents\list.html:18
|
||||
msgid "File"
|
||||
msgstr "文件"
|
||||
|
||||
#: .\models.py:21
|
||||
msgid "Tags"
|
||||
msgstr "標籤"
|
||||
|
||||
#: .\templates\wagtaildocs\chooser\chooser.html:2
|
||||
#: .\templates\wagtaildocs\edit_handlers\document_chooser_panel.html:11
|
||||
msgid "Choose a document"
|
||||
msgstr "選擇一個文件"
|
||||
|
||||
#: .\templates\wagtaildocs\chooser\chooser.html:7
|
||||
#: .\templates\wagtaildocs\chooser\chooser.html:19
|
||||
msgid "Search"
|
||||
msgstr "搜尋"
|
||||
|
||||
#: .\templates\wagtaildocs\chooser\chooser.html:8
|
||||
msgid "Upload"
|
||||
msgstr "上傳"
|
||||
|
||||
#: .\templates\wagtaildocs\chooser\chooser.html:34
|
||||
#: .\templates\wagtaildocs\documents\add.html:25
|
||||
#: .\templates\wagtaildocs\documents\edit.html:29
|
||||
msgid "Save"
|
||||
msgstr "儲存"
|
||||
|
||||
#: .\templates\wagtaildocs\chooser\results.html:5
|
||||
#: .\templates\wagtaildocs\documents\results.html:5
|
||||
#, python-format
|
||||
msgid ""
|
||||
"\n"
|
||||
" There is one match\n"
|
||||
" "
|
||||
msgid_plural ""
|
||||
"\n"
|
||||
" There are %(counter)s matches\n"
|
||||
" "
|
||||
msgstr[0] "\n 有一個符合"
|
||||
msgstr[1] "\n 有 $(counter)s 個符合"
|
||||
|
||||
#: .\templates\wagtaildocs\chooser\results.html:12
|
||||
msgid "Latest documents"
|
||||
msgstr "最新文件"
|
||||
|
||||
#: .\templates\wagtaildocs\chooser\results.html:19
|
||||
#: .\templates\wagtaildocs\documents\results.html:18
|
||||
#, python-format
|
||||
msgid "Sorry, no documents match \"<em>%(query_string)s</em>\""
|
||||
msgstr "對不起,沒有文件符合 \"<em>%(query_string)s</em>\""
|
||||
|
||||
#: .\templates\wagtaildocs\documents\_file_field.html:5
|
||||
msgid "Change document:"
|
||||
msgstr "修改文件:"
|
||||
|
||||
#: .\templates\wagtaildocs\documents\add.html:4
|
||||
#: .\templates\wagtaildocs\documents\index.html:17
|
||||
msgid "Add a document"
|
||||
msgstr "新增一份文件"
|
||||
|
||||
#: .\templates\wagtaildocs\documents\add.html:15
|
||||
msgid "Add document"
|
||||
msgstr "新增文件"
|
||||
|
||||
#: .\templates\wagtaildocs\documents\confirm_delete.html:3
|
||||
#, python-format
|
||||
msgid "Delete %(title)s"
|
||||
msgstr "刪除 %(title)s"
|
||||
|
||||
#: .\templates\wagtaildocs\documents\confirm_delete.html:6
|
||||
#: .\templates\wagtaildocs\documents\edit.html:29
|
||||
msgid "Delete document"
|
||||
msgstr "刪除文件"
|
||||
|
||||
#: .\templates\wagtaildocs\documents\confirm_delete.html:10
|
||||
msgid "Are you sure you want to delete this document?"
|
||||
msgstr "你確定你要刪除這份文件嗎?"
|
||||
|
||||
#: .\templates\wagtaildocs\documents\confirm_delete.html:13
|
||||
msgid "Yes, delete"
|
||||
msgstr "是的,刪除"
|
||||
|
||||
#: .\templates\wagtaildocs\documents\edit.html:4
|
||||
#, python-format
|
||||
msgid "Editing %(title)s"
|
||||
msgstr "編輯 %(title)s"
|
||||
|
||||
#: .\templates\wagtaildocs\documents\edit.html:15
|
||||
msgid "Editing"
|
||||
msgstr "編輯"
|
||||
|
||||
#: .\templates\wagtaildocs\documents\index.html:16
|
||||
msgid "Documents"
|
||||
msgstr "文件"
|
||||
|
||||
#: .\templates\wagtaildocs\documents\list.html:20
|
||||
msgid "Uploaded"
|
||||
msgstr "已上傳"
|
||||
|
||||
#: .\templates\wagtaildocs\documents\results.html:21
|
||||
#, python-format
|
||||
msgid ""
|
||||
"You haven't uploaded any documents. Why not <a "
|
||||
"href=\"%(wagtaildocs_add_document_url)s\">upload one now</a>?"
|
||||
msgstr "你沒有上傳任何文件。 為什麼不 <a href=\"%(wagtaildocs_add_document_url)s\">上傳一份</a>?"
|
||||
|
||||
#: .\templates\wagtaildocs\edit_handlers\document_chooser_panel.html:9
|
||||
msgid "Clear choice"
|
||||
msgstr "清除選擇"
|
||||
|
||||
#: .\templates\wagtaildocs\edit_handlers\document_chooser_panel.html:10
|
||||
msgid "Choose another document"
|
||||
msgstr "選擇另外一份文件"
|
||||
|
||||
#: .\views\documents.py:34 .\views\documents.py:43
|
||||
msgid "Search documents"
|
||||
msgstr "搜尋文件"
|
||||
|
||||
#: .\views\documents.py:83
|
||||
msgid "Document '{0}' added."
|
||||
msgstr "文件 '{0}' 已加入"
|
||||
|
||||
#: .\views\documents.py:86 .\views\documents.py:115
|
||||
msgid "The document could not be saved due to errors."
|
||||
msgstr "這文件因有錯誤而無法建立。"
|
||||
|
||||
#: .\views\documents.py:112
|
||||
msgid "Document '{0}' updated"
|
||||
msgstr "文件 '{0}' 已更新"
|
||||
|
||||
#: .\views\documents.py:134
|
||||
msgid "Document '{0}' deleted."
|
||||
msgstr "文件 '{0}' 已刪除"
|
||||
BIN
wagtail/wagtailembeds/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
BIN
wagtail/wagtailembeds/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
54
wagtail/wagtailembeds/locale/zh_TW/LC_MESSAGES/django.po
Normal file
54
wagtail/wagtailembeds/locale/zh_TW/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators: Lihan Li <lilihan.it@gmail.com>, 2014
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Wagtail\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-02-22 19:56+0200\n"
|
||||
"PO-Revision-Date: 2014-02-24 17:34+0000\n"
|
||||
"Last-Translator: wdv4758h <wdv4758h@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: zh_TW\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: .\forms.py:11
|
||||
msgid "Please enter a valid URL"
|
||||
msgstr "請輸入有效的 URL"
|
||||
|
||||
#: .\forms.py:15
|
||||
msgid "URL"
|
||||
msgstr "URL"
|
||||
|
||||
#: .\templates\wagtailembeds\chooser\chooser.html:3
|
||||
msgid "Insert embed"
|
||||
msgstr "插入 embed"
|
||||
|
||||
#: .\templates\wagtailembeds\chooser\chooser.html:14
|
||||
msgid "Insert"
|
||||
msgstr "插入"
|
||||
|
||||
#: .\views\chooser.py:34
|
||||
msgid ""
|
||||
"There seems to be a problem with your embedly API key. Please check your "
|
||||
"settings."
|
||||
msgstr "embedly API key 有問題。請檢查設定。"
|
||||
|
||||
#: .\views\chooser.py:36
|
||||
msgid "Cannot find an embed for this URL."
|
||||
msgstr "在這個 URL 中無法找到 embed"
|
||||
|
||||
#: .\views\chooser.py:38
|
||||
msgid ""
|
||||
"There seems to be an error with Embedly while trying to embed this URL. "
|
||||
"Please try again later."
|
||||
msgstr ""
|
||||
"在嵌入這個 URL 的時候,Embedly 似乎有錯。"
|
||||
"請稍候再試."
|
||||
BIN
wagtail/wagtailimages/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
BIN
wagtail/wagtailimages/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
170
wagtail/wagtailimages/locale/zh_TW/LC_MESSAGES/django.po
Normal file
170
wagtail/wagtailimages/locale/zh_TW/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,170 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Wagtail\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-03-14 23:02+0200\n"
|
||||
"PO-Revision-Date: 2014-03-14 21:12+0000\n"
|
||||
"Last-Translator: wdv4758h <wdv4758h@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: zh_TW\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
|
||||
#: .\models.py:22
|
||||
msgid "Title"
|
||||
msgstr "標題"
|
||||
|
||||
#: .\models.py:39
|
||||
msgid "Not a valid image format. Please use a gif, jpeg or png file instead."
|
||||
msgstr "不是有效的圖片格式。請用 gif、jpeg 或者 png 格式的圖片"
|
||||
|
||||
#: .\models.py:41
|
||||
msgid "File"
|
||||
msgstr "文件"
|
||||
|
||||
#: .\models.py:47
|
||||
msgid "Tags"
|
||||
msgstr "標籤"
|
||||
|
||||
#: .\templates\wagtailimages\chooser\chooser.html:3
|
||||
#: .\templates\wagtailimages\edit_handlers\image_chooser_panel.html:19
|
||||
msgid "Choose an image"
|
||||
msgstr "選擇一個圖片"
|
||||
|
||||
#: .\templates\wagtailimages\chooser\chooser.html:8
|
||||
#: .\templates\wagtailimages\chooser\chooser.html:20
|
||||
msgid "Search"
|
||||
msgstr "搜尋"
|
||||
|
||||
#: .\templates\wagtailimages\chooser\chooser.html:9
|
||||
#: .\templates\wagtailimages\chooser\chooser.html:43
|
||||
msgid "Upload"
|
||||
msgstr "上傳"
|
||||
|
||||
#: .\templates\wagtailimages\chooser\chooser.html:23
|
||||
msgid "Popular tags"
|
||||
msgstr "熱門的標籤"
|
||||
|
||||
#: .\templates\wagtailimages\chooser\results.html:6
|
||||
#: .\templates\wagtailimages\images\results.html:6
|
||||
#, python-format
|
||||
msgid ""
|
||||
"\n"
|
||||
" There is one match\n"
|
||||
" "
|
||||
msgid_plural ""
|
||||
"\n"
|
||||
" There are %(counter)s matches\n"
|
||||
" "
|
||||
msgstr[0] "\n 有一個符合"
|
||||
msgstr[1] "\n 有 $(counter)s 個符合"
|
||||
|
||||
#: .\templates\wagtailimages\chooser\results.html:13
|
||||
#: .\templates\wagtailimages\images\results.html:13
|
||||
msgid "Latest images"
|
||||
msgstr "最新圖片"
|
||||
|
||||
#: .\templates\wagtailimages\chooser\select_format.html:3
|
||||
msgid "Choose a format"
|
||||
msgstr "選擇一個格式"
|
||||
|
||||
#: .\templates\wagtailimages\chooser\select_format.html:17
|
||||
msgid "Insert image"
|
||||
msgstr "插入圖片"
|
||||
|
||||
#: .\templates\wagtailimages\edit_handlers\image_chooser_panel.html:17
|
||||
msgid "Clear image"
|
||||
msgstr "清除圖片"
|
||||
|
||||
#: .\templates\wagtailimages\edit_handlers\image_chooser_panel.html:18
|
||||
msgid "Choose another image"
|
||||
msgstr "選擇另外一個圖片"
|
||||
|
||||
#: .\templates\wagtailimages\images\_file_field.html:6
|
||||
msgid "Change image:"
|
||||
msgstr "更改圖片:"
|
||||
|
||||
#: .\templates\wagtailimages\images\add.html:4
|
||||
#: .\templates\wagtailimages\images\index.html:19
|
||||
msgid "Add an image"
|
||||
msgstr "新增一個圖片"
|
||||
|
||||
#: .\templates\wagtailimages\images\add.html:15
|
||||
msgid "Add image"
|
||||
msgstr "新增圖片"
|
||||
|
||||
#: .\templates\wagtailimages\images\add.html:25
|
||||
#: .\templates\wagtailimages\images\edit.html:33
|
||||
msgid "Save"
|
||||
msgstr "儲存"
|
||||
|
||||
#: .\templates\wagtailimages\images\confirm_delete.html:4
|
||||
#: .\templates\wagtailimages\images\confirm_delete.html:8
|
||||
#: .\templates\wagtailimages\images\edit.html:33
|
||||
msgid "Delete image"
|
||||
msgstr "刪除圖片"
|
||||
|
||||
#: .\templates\wagtailimages\images\confirm_delete.html:16
|
||||
msgid "Are you sure you want to delete this image?"
|
||||
msgstr "你確定要刪除這個圖片嗎?"
|
||||
|
||||
#: .\templates\wagtailimages\images\confirm_delete.html:19
|
||||
msgid "Yes, delete"
|
||||
msgstr "是的,刪除"
|
||||
|
||||
#: .\templates\wagtailimages\images\edit.html:4
|
||||
#, python-format
|
||||
msgid "Editing image %(title)s"
|
||||
msgstr "編輯圖片 %(title)s"
|
||||
|
||||
#: .\templates\wagtailimages\images\edit.html:15
|
||||
msgid "Editing"
|
||||
msgstr "編輯"
|
||||
|
||||
#: .\templates\wagtailimages\images\index.html:5
|
||||
#: .\templates\wagtailimages\images\index.html:18
|
||||
msgid "Images"
|
||||
msgstr "圖片"
|
||||
|
||||
#: .\templates\wagtailimages\images\results.html:31
|
||||
#, python-format
|
||||
msgid "Sorry, no images match \"<em>%(query_string)s</em>\""
|
||||
msgstr "對不起,沒有任何圖片符合 \"<em>%(query_string)s</em>\""
|
||||
|
||||
#: .\templates\wagtailimages\images\results.html:34
|
||||
#, python-format
|
||||
msgid ""
|
||||
"You've not uploaded any images. Why not <a "
|
||||
"href=\"%(wagtailimages_add_image_url)s\">add one now</a>?"
|
||||
msgstr "沒有任何上傳的圖片。為什麼不 <a href=\"%(wagtailimages_add_image_url)s\">新增一個呢</a>?"
|
||||
|
||||
#: .\views\images.py:29 .\views\images.py:40
|
||||
msgid "Search images"
|
||||
msgstr "搜尋圖片"
|
||||
|
||||
#: .\views\images.py:92
|
||||
msgid "Image '{0}' updated."
|
||||
msgstr "圖片 '{0}' 已更新"
|
||||
|
||||
#: .\views\images.py:95
|
||||
msgid "The image could not be saved due to errors."
|
||||
msgstr "圖片因有錯誤而無法儲存。"
|
||||
|
||||
#: .\views\images.py:114
|
||||
msgid "Image '{0}' deleted."
|
||||
msgstr "圖片 '{0}' 已刪除."
|
||||
|
||||
#: .\views\images.py:132
|
||||
msgid "Image '{0}' added."
|
||||
msgstr "圖片 '{0}' 已加入."
|
||||
|
||||
#: .\views\images.py:135
|
||||
msgid "The image could not be created due to errors."
|
||||
msgstr "圖片因有錯而不能被建立。"
|
||||
|
|
@ -5,13 +5,13 @@
|
|||
|
||||
{% if uploadform %}
|
||||
<ul class="tab-nav merged">
|
||||
<li class="active"><a href="#search" >{% trans "Search" %}</a></li>
|
||||
<li><a href="#upload">{% trans "Upload" %}</a></li>
|
||||
<li class="{% if not uploadform.errors %}active{% endif %}"><a href="#search" >{% trans "Search" %}</a></li>
|
||||
<li class="{% if uploadform.errors %}active{% endif %}"><a href="#upload">{% trans "Upload" %}</a></li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
<div class="tab-content">
|
||||
<section id="search" class="active nice-padding">
|
||||
<section id="search" class="{% if not uploadform.errors %}active{% endif %} nice-padding">
|
||||
<form class="image-search search-bar" action="{% url 'wagtailimages_chooser' %}{% if will_select_format %}?select_format=true{% endif %}" method="GET" autocomplete="off">
|
||||
<ul class="fields">
|
||||
{% for field in searchform %}
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
</div>
|
||||
</section>
|
||||
{% if uploadform %}
|
||||
<section id="upload" class="nice-padding">
|
||||
<section id="upload" class="{% if uploadform.errors %}active{% endif %} nice-padding">
|
||||
<form class="image-upload" action="{% url 'wagtailimages_chooser_upload' %}{% if will_select_format %}?select_format=true{% endif %}" method="POST" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
<ul class="fields">
|
||||
|
|
|
|||
BIN
wagtail/wagtailredirects/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
BIN
wagtail/wagtailredirects/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
151
wagtail/wagtailredirects/locale/zh_TW/LC_MESSAGES/django.po
Normal file
151
wagtail/wagtailredirects/locale/zh_TW/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,151 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Wagtail\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-03-14 23:02+0200\n"
|
||||
"PO-Revision-Date: 2014-03-14 21:12+0000\n"
|
||||
"Last-Translator: wdv4758h <wdv4758h@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: zh_TW\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
|
||||
#: .\models.py:10
|
||||
msgid "Redirect from"
|
||||
msgstr "重導向起點"
|
||||
|
||||
#: .\models.py:12
|
||||
msgid "Permanent"
|
||||
msgstr "永久"
|
||||
|
||||
#: .\models.py:12
|
||||
msgid ""
|
||||
"Recommended. Permanent redirects ensure search engines forget the old page "
|
||||
"(the 'Redirect from') and index the new page instead."
|
||||
msgstr "(推薦) 永久頁面重導向確保搜尋引擎忘記舊頁面(重導向起點),並且改成對新頁面做索引。"
|
||||
|
||||
#: .\models.py:13
|
||||
msgid "Redirect to a page"
|
||||
msgstr "重導向到一個頁面"
|
||||
|
||||
#: .\models.py:14
|
||||
msgid "Redirect to any URL"
|
||||
msgstr "重導向到任何一個 URL"
|
||||
|
||||
#: .\views.py:56
|
||||
msgid "Search redirects"
|
||||
msgstr "搜尋重導向"
|
||||
|
||||
#: .\views.py:69
|
||||
msgid "Redirect '{0}' updated."
|
||||
msgstr "重導向 '{0}' 已更新"
|
||||
|
||||
#: .\views.py:72
|
||||
msgid "The redirect could not be saved due to errors."
|
||||
msgstr "重導向因有錯誤而無法儲存。"
|
||||
|
||||
#: .\views.py:90
|
||||
msgid "Redirect '{0}' deleted."
|
||||
msgstr "重導向 '{0}' 已刪除"
|
||||
|
||||
#: .\views.py:110
|
||||
msgid "Redirect '{0} added."
|
||||
msgstr "重導向 '{0}' 已加入"
|
||||
|
||||
#: .\views.py:113
|
||||
msgid "The redirect could not be created due to errors."
|
||||
msgstr "重導向因有錯誤而無法建立。"
|
||||
|
||||
#: .\templates\wagtailredirects\add.html:3
|
||||
#: .\templates\wagtailredirects\add.html:6
|
||||
#: .\templates\wagtailredirects\index.html:18
|
||||
msgid "Add redirect"
|
||||
msgstr "新增重導向"
|
||||
|
||||
#: .\templates\wagtailredirects\add.html:14
|
||||
#: .\templates\wagtailredirects\edit.html:14
|
||||
msgid "Save"
|
||||
msgstr "儲存"
|
||||
|
||||
#: .\templates\wagtailredirects\confirm_delete.html:4
|
||||
#, python-format
|
||||
msgid "Delete redirect %(title)s"
|
||||
msgstr "刪除重導向 %(title)s"
|
||||
|
||||
#: .\templates\wagtailredirects\confirm_delete.html:6
|
||||
msgid "Delete"
|
||||
msgstr "刪除"
|
||||
|
||||
#: .\templates\wagtailredirects\confirm_delete.html:10
|
||||
msgid "Are you sure you want to delete this redirect?"
|
||||
msgstr "你確定想刪除這個重導向?"
|
||||
|
||||
#: .\templates\wagtailredirects\confirm_delete.html:13
|
||||
msgid "Yes, delete"
|
||||
msgstr "是的, 刪除"
|
||||
|
||||
#: .\templates\wagtailredirects\edit.html:4
|
||||
#, python-format
|
||||
msgid "Editing %(title)s"
|
||||
msgstr "編輯 %(title)s"
|
||||
|
||||
#: .\templates\wagtailredirects\edit.html:6
|
||||
msgid "Editing"
|
||||
msgstr "編輯"
|
||||
|
||||
#: .\templates\wagtailredirects\edit.html:15
|
||||
msgid "Delete redirect"
|
||||
msgstr "刪除重導向"
|
||||
|
||||
#: .\templates\wagtailredirects\index.html:3
|
||||
#: .\templates\wagtailredirects\index.html:17
|
||||
msgid "Redirects"
|
||||
msgstr "重導向"
|
||||
|
||||
#: .\templates\wagtailredirects\list.html:18
|
||||
msgid "To"
|
||||
msgstr "到"
|
||||
|
||||
#: .\templates\wagtailredirects\list.html:19
|
||||
msgid "Type"
|
||||
msgstr "類型"
|
||||
|
||||
#: .\templates\wagtailredirects\list.html:26
|
||||
msgid "Edit this redirect"
|
||||
msgstr "編輯這個重導向"
|
||||
|
||||
#: .\templates\wagtailredirects\list.html:35
|
||||
msgid "primary"
|
||||
msgstr "主要"
|
||||
|
||||
#: .\templates\wagtailredirects\results.html:5
|
||||
#, python-format
|
||||
msgid ""
|
||||
"\n"
|
||||
" There is one match\n"
|
||||
" "
|
||||
msgid_plural ""
|
||||
"\n"
|
||||
" There are %(counter)s matches\n"
|
||||
" "
|
||||
msgstr[0] "\n 有一個符合"
|
||||
msgstr[1] "\n 有 $(counter)s 個符合"
|
||||
|
||||
#: .\templates\wagtailredirects\results.html:18
|
||||
#, python-format
|
||||
msgid "Sorry, no redirects match \"<em>%(query_string)s</em>\""
|
||||
msgstr "對不起,沒有任何重導向符合 \"<em>%(query_string)s</em>\""
|
||||
|
||||
#: .\templates\wagtailredirects\results.html:21
|
||||
#, python-format
|
||||
msgid ""
|
||||
"No redirects have been created. Why not <a "
|
||||
"href=\"%(wagtailredirects_add_redirect_url)s\">add one</a>?"
|
||||
msgstr "沒有任何已儲存的重導向。為什麼不 <a href=\"%(wagtailredirects_add_redirect_url)s\">新增一個</a>?"
|
||||
BIN
wagtail/wagtailsearch/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
BIN
wagtail/wagtailsearch/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
191
wagtail/wagtailsearch/locale/zh_TW/LC_MESSAGES/django.po
Normal file
191
wagtail/wagtailsearch/locale/zh_TW/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,191 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Wagtail\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-03-14 23:02+0200\n"
|
||||
"PO-Revision-Date: 2014-03-14 21:12+0000\n"
|
||||
"Last-Translator: wdv4758h <wdv4758h@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: zh_TW\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
|
||||
#: .\forms.py:8
|
||||
msgid "Search term(s)/phrase"
|
||||
msgstr "搜尋關鍵字"
|
||||
|
||||
#: .\forms.py:9
|
||||
msgid ""
|
||||
"Enter the full search string to match. An \n"
|
||||
" exact match is required for your Editors Picks to be \n"
|
||||
" displayed, wildcards are NOT allowed."
|
||||
msgstr ""
|
||||
"請輸入完整的字串來選擇。\n"
|
||||
" 輸入必須和你的 '編者精選' 完全一樣 \n"
|
||||
" (不能使用萬用字元)"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\add.html:3
|
||||
#: .\templates\wagtailsearch\editorspicks\add.html:5
|
||||
msgid "Add editor's pick"
|
||||
msgstr "新增編者精選"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\add.html:9
|
||||
msgid ""
|
||||
"\n"
|
||||
" <p>Editors picks are a means of recommending specific pages that might not organically come high up in search results. E.g recommending your primary donation page to a user searching with a less common term like \"<em>giving</em>\".</p>\n"
|
||||
" "
|
||||
msgstr "\n <p>編者精選是用於推薦部份在搜尋排名不高的頁面。 例如用關鍵字推薦使用者到捐獻頁面。</p>\n "
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\add.html:12
|
||||
msgid ""
|
||||
"\n"
|
||||
" <p>The \"Search term(s)/phrase\" field below must contain the full and exact search for which you wish to provide recommended results, <em>including</em> any misspellings/user error. To help, you can choose from search terms that have been popular with users of your site.</p>\n"
|
||||
" "
|
||||
msgstr "\n <p>下面的關鍵字必須是你希望推薦結果的完整關鍵字,<em>包括</em>任何可能拼錯的詞。 提示,你可以從熱門的關鍵字選擇。</p>\n "
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\add.html:25
|
||||
#: .\templates\wagtailsearch\editorspicks\edit.html:19
|
||||
msgid "Save"
|
||||
msgstr "儲存"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\confirm_delete.html:3
|
||||
#, python-format
|
||||
msgid "Delete %(query)s"
|
||||
msgstr "刪除 Delete %(query)s"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\confirm_delete.html:5
|
||||
#: .\templates\wagtailsearch\editorspicks\edit.html:20
|
||||
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_form.html:6
|
||||
msgid "Delete"
|
||||
msgstr "刪除"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\confirm_delete.html:9
|
||||
msgid ""
|
||||
"Are you sure you want to delete all editors picks for this search term?"
|
||||
msgstr "你確定想要刪除所有搜尋到的編者精選?"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\confirm_delete.html:12
|
||||
msgid "Yes, delete"
|
||||
msgstr "是的,刪除"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\edit.html:3
|
||||
#, python-format
|
||||
msgid "Editing %(query)s"
|
||||
msgstr "編輯 %(query)s"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\edit.html:5
|
||||
msgid "Editing"
|
||||
msgstr "編輯"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\index.html:3
|
||||
msgid "Search Terms"
|
||||
msgstr "搜尋關鍵字"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\index.html:17
|
||||
msgid "Editor's search picks"
|
||||
msgstr "編者精選"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\index.html:18
|
||||
msgid "Add new editor's pick"
|
||||
msgstr "新增新的編者精選"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\list.html:8
|
||||
msgid "Search term(s)"
|
||||
msgstr "搜尋關鍵字"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\list.html:9
|
||||
msgid "Editors picks"
|
||||
msgstr "編者精選"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\list.html:10
|
||||
#: .\templates\wagtailsearch\queries\chooser\results.html:9
|
||||
msgid "Views (past week)"
|
||||
msgstr "觀看 (上周)"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\list.html:17
|
||||
msgid "Edit this pick"
|
||||
msgstr "編輯這個精選"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\list.html:23
|
||||
msgid "None"
|
||||
msgstr "沒有"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\results.html:5
|
||||
#, python-format
|
||||
msgid ""
|
||||
"\n"
|
||||
" There is one match\n"
|
||||
" "
|
||||
msgid_plural ""
|
||||
"\n"
|
||||
" There are %(counter)s matches\n"
|
||||
" "
|
||||
msgstr[0] "\n 有一個符合"
|
||||
msgstr[1] "\n 有 $(counter)s 個符合"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\results.html:18
|
||||
#, python-format
|
||||
msgid "Sorry, no editor's picks match \"<em>%(query_string)s</em>\""
|
||||
msgstr "對不起,沒有任何編者精選符合 \"<em>%(query_string)s</em>\""
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\results.html:21
|
||||
#, python-format
|
||||
msgid ""
|
||||
"No editor's picks have been created. Why not <a "
|
||||
"href=\"%(wagtailsearch_editorspicks_add_url)s\">add one</a>?"
|
||||
msgstr "沒有任何編者精選。 為什麼不 <a href=\"%(wagtailsearch_editorspicks_add_url)s\">建立一個呢</a>?"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_form.html:4
|
||||
msgid "Move up"
|
||||
msgstr "往上移動"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_form.html:5
|
||||
msgid "Move down"
|
||||
msgstr "往下移動"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_form.html:10
|
||||
msgid "Editors pick"
|
||||
msgstr "編者精選"
|
||||
|
||||
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_formset.html:14
|
||||
msgid "Add recommended page"
|
||||
msgstr "新增推薦頁面"
|
||||
|
||||
#: .\templates\wagtailsearch\queries\chooser\chooser.html:2
|
||||
msgid "Popular search terms"
|
||||
msgstr "熱門的關鍵字"
|
||||
|
||||
#: .\templates\wagtailsearch\queries\chooser\chooser.html:10
|
||||
msgid "Search"
|
||||
msgstr "搜尋"
|
||||
|
||||
#: .\templates\wagtailsearch\queries\chooser\results.html:8
|
||||
msgid "Terms"
|
||||
msgstr "關鍵字"
|
||||
|
||||
#: .\templates\wagtailsearch\queries\chooser\results.html:23
|
||||
msgid "No results found"
|
||||
msgstr "沒有找到任何結果"
|
||||
|
||||
#: .\views\editorspicks.py:41
|
||||
msgid "Search editor's picks"
|
||||
msgstr "搜尋編者精選"
|
||||
|
||||
#: .\views\editorspicks.py:75
|
||||
msgid "Editor's picks for '{0}' created."
|
||||
msgstr "編者精選'{0}'已建立。"
|
||||
|
||||
#: .\views\editorspicks.py:103
|
||||
msgid "Editor's picks for '{0}' updated."
|
||||
msgstr "編者精選'{0}'已更新。"
|
||||
|
||||
#: .\views\editorspicks.py:122
|
||||
msgid "Editor's picks deleted."
|
||||
msgstr "編者精選已刪除"
|
||||
BIN
wagtail/wagtailsnippets/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
BIN
wagtail/wagtailsnippets/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
126
wagtail/wagtailsnippets/locale/zh_TW/LC_MESSAGES/django.po
Normal file
126
wagtail/wagtailsnippets/locale/zh_TW/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,126 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Wagtail\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-03-10 12:25+0200\n"
|
||||
"PO-Revision-Date: 2014-02-28 16:07+0000\n"
|
||||
"Last-Translator: wdv4758h <wdv4758h@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: zh_TW\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
|
||||
#: .\templates\wagtailsnippets\chooser\choose.html:2
|
||||
msgid "Choose"
|
||||
msgstr "選擇"
|
||||
|
||||
#: .\templates\wagtailsnippets\edit_handlers\snippet_chooser_panel.html:10
|
||||
#, python-format
|
||||
msgid "Choose another %(snippet_type_name)s"
|
||||
msgstr "選擇另外一個 %(snippet_type_name)s"
|
||||
|
||||
#: .\templates\wagtailsnippets\edit_handlers\snippet_chooser_panel.html:11
|
||||
#, python-format
|
||||
msgid "Choose %(snippet_type_name)s"
|
||||
msgstr "選擇 %(snippet_type_name)s"
|
||||
|
||||
#: .\templates\wagtailsnippets\snippets\confirm_delete.html:3
|
||||
#, python-format
|
||||
msgid "Delete %(snippet_type_name)s - %(instance)s"
|
||||
msgstr "刪除 %(snippet_type_name)s - %(instance)s"
|
||||
|
||||
#: .\templates\wagtailsnippets\snippets\confirm_delete.html:6
|
||||
#: .\templates\wagtailsnippets\snippets\edit.html:20
|
||||
msgid "Delete"
|
||||
msgstr "刪除"
|
||||
|
||||
#: .\templates\wagtailsnippets\snippets\confirm_delete.html:10
|
||||
#, python-format
|
||||
msgid "Are you sure you want to delete this %(snippet_type_name)s?"
|
||||
msgstr "你確定想要刪除這個 %(snippet_type_name)s嗎?"
|
||||
|
||||
#: .\templates\wagtailsnippets\snippets\confirm_delete.html:13
|
||||
msgid "Yes, delete"
|
||||
msgstr "是的,刪除"
|
||||
|
||||
#: .\templates\wagtailsnippets\snippets\create.html:3
|
||||
#, python-format
|
||||
msgid "New %(snippet_type_name)s"
|
||||
msgstr "新的 %(snippet_type_name)s"
|
||||
|
||||
#: .\templates\wagtailsnippets\snippets\create.html:6
|
||||
msgid "New"
|
||||
msgstr "新建"
|
||||
|
||||
#: .\templates\wagtailsnippets\snippets\create.html:17
|
||||
#: .\templates\wagtailsnippets\snippets\edit.html:17
|
||||
msgid "Save"
|
||||
msgstr "儲存"
|
||||
|
||||
#: .\templates\wagtailsnippets\snippets\edit.html:3
|
||||
#, python-format
|
||||
msgid "Editing %(snippet_type_name)s - %(instance)s"
|
||||
msgstr "編輯 %(snippet_type_name)s - %(instance)s"
|
||||
|
||||
#: .\templates\wagtailsnippets\snippets\edit.html:6
|
||||
msgid "Editing"
|
||||
msgstr "編輯"
|
||||
|
||||
#: .\templates\wagtailsnippets\snippets\index.html:3
|
||||
msgid "Snippets"
|
||||
msgstr "片段"
|
||||
|
||||
#: .\templates\wagtailsnippets\snippets\list.html:8
|
||||
msgid "Title"
|
||||
msgstr "標題"
|
||||
|
||||
#: .\templates\wagtailsnippets\snippets\type_index.html:3
|
||||
#, python-format
|
||||
msgid "Snippets %(snippet_type_name_plural)s"
|
||||
msgstr "%(snippet_type_name_plural)s 片段"
|
||||
|
||||
#: .\templates\wagtailsnippets\snippets\type_index.html:10
|
||||
#, python-format
|
||||
msgid "Snippets <span>%(snippet_type_name_plural)s</span>"
|
||||
msgstr "<span>%(snippet_type_name_plural)s</span> 片段"
|
||||
|
||||
#: .\templates\wagtailsnippets\snippets\type_index.html:13
|
||||
#, python-format
|
||||
msgid "Add %(snippet_type_name)s"
|
||||
msgstr "新增 %(snippet_type_name)s"
|
||||
|
||||
#: .\templates\wagtailsnippets\snippets\type_index.html:23
|
||||
#, python-format
|
||||
msgid ""
|
||||
"No %(snippet_type_name_plural)s have been created. Why not <a href=\"%"
|
||||
"(wagtailsnippets_create_url)s\">add one</a>?"
|
||||
msgstr ""
|
||||
"沒有任何 %(snippet_type_name_plural)s 片段。為什麼不<a href=\"%"
|
||||
"(wagtailsnippets_create_url)s\">建立一個</a>?"
|
||||
|
||||
#: .\views\snippets.py:127
|
||||
msgid "{snippet_type} '{instance}' created."
|
||||
msgstr "已建立 {snippet_type} '{instance}'"
|
||||
|
||||
#: .\views\snippets.py:134
|
||||
msgid "The snippet could not be created due to errors."
|
||||
msgstr "片段因有錯誤而無法建立。"
|
||||
|
||||
#: .\views\snippets.py:168
|
||||
msgid "{snippet_type} '{instance}' updated."
|
||||
msgstr "已經更新 {snippet_type} '{instance}'。"
|
||||
|
||||
#: .\views\snippets.py:175
|
||||
msgid "The snippet could not be saved due to errors."
|
||||
msgstr "片段因有錯誤而無法儲存。"
|
||||
|
||||
#: .\views\snippets.py:204
|
||||
msgid "{snippet_type} '{instance}' deleted."
|
||||
msgstr "已刪除 {snippet_type} '{instance}'"
|
||||
BIN
wagtail/wagtailusers/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
BIN
wagtail/wagtailusers/locale/zh_TW/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
181
wagtail/wagtailusers/locale/zh_TW/LC_MESSAGES/django.po
Normal file
181
wagtail/wagtailusers/locale/zh_TW/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,181 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Wagtail\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-03-14 23:02+0200\n"
|
||||
"PO-Revision-Date: 2014-03-14 21:12+0000\n"
|
||||
"Last-Translator: wdv4758h <wdv4758h@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: zh_TW\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
|
||||
#: .\forms.py:12 .\forms.py:73
|
||||
msgid "Administrator"
|
||||
msgstr "管理者"
|
||||
|
||||
#: .\forms.py:14
|
||||
msgid "If ticked, this user has the ability to manage user accounts."
|
||||
msgstr "如果已勾選,這個使用者將有權限管理使用者帳號"
|
||||
|
||||
#: .\forms.py:17 .\forms.py:58
|
||||
msgid "Email"
|
||||
msgstr "電子信箱"
|
||||
|
||||
#: .\forms.py:18 .\forms.py:59
|
||||
msgid "First Name"
|
||||
msgstr "名"
|
||||
|
||||
#: .\forms.py:19 .\forms.py:60
|
||||
msgid "Last Name"
|
||||
msgstr "姓"
|
||||
|
||||
#: .\forms.py:46
|
||||
msgid "A user with that username already exists."
|
||||
msgstr "一個使用者已經佔用這個名字"
|
||||
|
||||
#: .\forms.py:47
|
||||
msgid "The two password fields didn't match."
|
||||
msgstr "密碼不符合"
|
||||
|
||||
#: .\forms.py:50 .\templates\wagtailusers\list.html:15
|
||||
msgid "Username"
|
||||
msgstr "使用者名稱"
|
||||
|
||||
#: .\forms.py:53
|
||||
msgid "Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only."
|
||||
msgstr "必填,30個字元以内。只允許字母、數字、@/./+/-/_"
|
||||
|
||||
#: .\forms.py:55
|
||||
msgid "This value may contain only letters, numbers and @/./+/-/_ characters."
|
||||
msgstr "這個值只能含有字母、數字、@/./+/-/_"
|
||||
|
||||
#: .\forms.py:63
|
||||
msgid "Password"
|
||||
msgstr "密碼"
|
||||
|
||||
#: .\forms.py:66
|
||||
msgid "Leave blank if not changing."
|
||||
msgstr "如果不修改請留空"
|
||||
|
||||
#: .\forms.py:68
|
||||
msgid "Password confirmation"
|
||||
msgstr "密碼確認"
|
||||
|
||||
#: .\forms.py:70
|
||||
msgid "Enter the same password as above, for verification."
|
||||
msgstr "輸入和上面一樣的密碼用於驗證"
|
||||
|
||||
#: .\forms.py:75
|
||||
msgid "Administrators have the ability to manage user accounts."
|
||||
msgstr "管理者們有管理使用者帳號的權限"
|
||||
|
||||
#: .\templates\wagtailusers\create.html:4
|
||||
#: .\templates\wagtailusers\create.html:8
|
||||
#: .\templates\wagtailusers\create.html:35
|
||||
msgid "Add user"
|
||||
msgstr "新增使用者"
|
||||
|
||||
#: .\templates\wagtailusers\create.html:12
|
||||
#: .\templates\wagtailusers\edit.html:12
|
||||
msgid "Account"
|
||||
msgstr "帳號"
|
||||
|
||||
#: .\templates\wagtailusers\create.html:13
|
||||
#: .\templates\wagtailusers\create.html:28
|
||||
#: .\templates\wagtailusers\edit.html:13
|
||||
msgid "Roles"
|
||||
msgstr "角色"
|
||||
|
||||
#: .\templates\wagtailusers\edit.html:4 .\templates\wagtailusers\edit.html:8
|
||||
msgid "Editing"
|
||||
msgstr "編輯"
|
||||
|
||||
#: .\templates\wagtailusers\edit.html:30 .\templates\wagtailusers\edit.html:37
|
||||
msgid "Save"
|
||||
msgstr "儲存"
|
||||
|
||||
#: .\templates\wagtailusers\index.html:4
|
||||
#: .\templates\wagtailusers\index.html:17
|
||||
msgid "Users"
|
||||
msgstr "使用者"
|
||||
|
||||
#: .\templates\wagtailusers\index.html:18
|
||||
msgid "Add a user"
|
||||
msgstr "新增使用者"
|
||||
|
||||
#: .\templates\wagtailusers\list.html:7
|
||||
msgid "Name"
|
||||
msgstr "名字"
|
||||
|
||||
#: .\templates\wagtailusers\list.html:22
|
||||
msgid "Level"
|
||||
msgstr "等級"
|
||||
|
||||
#: .\templates\wagtailusers\list.html:23
|
||||
msgid "Status"
|
||||
msgstr "狀態"
|
||||
|
||||
#: .\templates\wagtailusers\list.html:36
|
||||
msgid "Admin"
|
||||
msgstr "管理"
|
||||
|
||||
#: .\templates\wagtailusers\list.html:37
|
||||
msgid "Active"
|
||||
msgstr "啟用"
|
||||
|
||||
#: .\templates\wagtailusers\list.html:37
|
||||
msgid "Inactive"
|
||||
msgstr "未啟用"
|
||||
|
||||
#: .\templates\wagtailusers\results.html:5
|
||||
#, python-format
|
||||
msgid ""
|
||||
"\n"
|
||||
" There is one match\n"
|
||||
" "
|
||||
msgid_plural ""
|
||||
"\n"
|
||||
" There are %(counter)s matches\n"
|
||||
" "
|
||||
msgstr[0] "\n 有一個符合"
|
||||
msgstr[1] "\n 有 $(counter)s 個符合"
|
||||
|
||||
#: .\templates\wagtailusers\results.html:18
|
||||
#, python-format
|
||||
msgid "Sorry, no users match \"<em>%(query_string)s</em>\""
|
||||
msgstr "對不起,沒有任何使用者符合 \"<em>%(query_string)s</em>\""
|
||||
|
||||
#: .\templates\wagtailusers\results.html:21
|
||||
#, python-format
|
||||
msgid ""
|
||||
"There are no users configured. Why not <a "
|
||||
"href=\"%(wagtailusers_create_url)s\">add some</a>?"
|
||||
msgstr "沒有使用者. 為什麼不 <a href=\"%(wagtailusers_create_url)s\">新增一個</a>?"
|
||||
|
||||
#: .\views\users.py:21 .\views\users.py:28
|
||||
msgid "Search users"
|
||||
msgstr "搜尋使用者"
|
||||
|
||||
#: .\views\users.py:75
|
||||
msgid "User '{0}' created."
|
||||
msgstr "使用者 '{0}' 已建立"
|
||||
|
||||
#: .\views\users.py:78
|
||||
msgid "The user could not be created due to errors."
|
||||
msgstr "使用者因有錯誤而無法建立。"
|
||||
|
||||
#: .\views\users.py:94
|
||||
msgid "User '{0}' updated."
|
||||
msgstr "使用者 '{0}' 已更新"
|
||||
|
||||
#: .\views\users.py:97
|
||||
msgid "The user could not be saved due to errors."
|
||||
msgstr "使用者因有錯誤而無法儲存。"
|
||||
Loading…
Reference in a new issue