0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-22 11:07:57 +01:00
Commit Graph

331 Commits

Author SHA1 Message Date
Serafeim Papastefanos
8cea752893 Merge remote-tracking branch 'upstream/master' into i18n 2014-02-19 15:07:06 +02:00
Serafeim Papastefanos
5c1f57abc0 Added transifex config + strings for wagtailusers 2014-02-19 14:57:35 +02:00
Tom Dyson
fa4d025fd9 Include Twitter account in support contacts. 2014-02-18 23:03:42 +00:00
Tom Dyson
5513155f64 Reference docs from README. 2014-02-18 22:42:38 +00:00
Tom Dyson
a4dcbb12fc More RTD-related Sphinx config changes 2014-02-18 18:05:50 +00:00
Tom Dyson
5bbb62d2cf Don't specify theme when building on RTD
See https://github.com/snide/sphinx_rtd_theme/issues/68
2014-02-18 17:59:36 +00:00
Tom Dyson
3b691bc758 First pass at Sphinx docs 2014-02-18 17:45:31 +00:00
Serafeim Papastefanos
e787ba65a1 Add support for USE_L10N=True
This allows wagtail to be used when USE_L10N=True. It also adds support
for translations of the jquery datepicker sice L10N and I18N go together
for the datepicker.

It defines two new components on edit_handlers.py: LocalizedDateInput and
LocalizedTimeInput. The first one is a normal DateInput having the
localize attribute set to True, while the LocalizedTimeInput can parse
times in 24h format (since parsing localized 12h format times doesn't seem
that easy). FORM_FIELD_OVERRIDES will use these new components when
USE_L10N=True or else we will fall back to the Friendly date and time.

Instead of always forcing the ISO yy-mm-dd format, localized dates will be
used (meaning in the format of dd/mm/yy for EU dates and mm/dd/yy for US
dates). This is a common requirement from most people that have to work
with ISO dates.

However, one thing to notice is that django had bad behavior when I was
trying to parse localized greek dates. It seems that the localized
DATE_INPUT_FORMAT has not been defined for greece (and I suspect that this
may be true for other locales as well). So Django instead used the US and
was not able to parse a greek date in the format dd/mm/yy !

To resolve this a custom smart node name "get_date_format_override" was
defined. This smart node would check the django/conf/locale/xx/formats.py
to see if DATE_INPUT_FORMATS is actually defined. If not it will return a
date input format that should used by the jquery datepicker instead of the
localized one (in our case it returns the ISO format).

Concerning the L10N of the jquery datepicker component, a number of files
is defined in http://jquery-ui.googlecode.com/svn/tags/latest/ui/i18n/
each one with L10N and I18N options for each locale. A template tag named
{% get_localized_datepicker_js %} has been defined that returns the
correct '<script>' tag for each locale -- if I18N and L10N are not used it
won't return anything. This {% get_localized_datepicker_js %} is define
*outside* of compress for _editor_js.html since compress works only for
local files. If we wanted to put it inside compress we should download the
files needed for the translated locales and put them in js/vendor.

The page-editor.js now defines new functions for initialization of the
localized time and date chooser. The localized date input take into
consideration the value of get_date_format_override in order to either use
the correct input format for the locale or fall back to the ISO one
2014-02-18 12:30:06 +02:00
Karl Hobley
2217b017e4 Merge pull request #62 from kaedroho/feature/docs-tests
Wagtaildocs tests
2014-02-18 09:40:21 +00:00
Karl Hobley
a65039a4da Merge pull request #66 from kaedroho/feature/images-tests
Wagtailimages tests
2014-02-18 09:36:27 +00:00
Karl Hobley
fa8d0041d6 Docs tests now check 'query_string' instead of 'search_query' 2014-02-18 09:35:31 +00:00
Karl Hobley
fd91a0b643 Merge branch 'master' into feature/docs-tests 2014-02-18 09:33:35 +00:00
Karl Hobley
d953b7d6e3 Images tests now check 'query_string' instead of 'search_query' 2014-02-18 09:31:49 +00:00
Karl Hobley
92434ee191 Fixed typo in wagtailimages index view 2014-02-18 09:31:14 +00:00
Karl Hobley
f2de2865fe Merge branch 'master' into feature/images-tests 2014-02-18 09:28:08 +00:00
Karl Hobley
f59d01b8f1 Merge pull request #63 from kaedroho/cleanup
Cleanup
2014-02-18 09:27:02 +00:00
Karl Hobley
3947069ee3 Merge pull request #57 from kaedroho/feature/unit-tests
Break down search unit tests + a couple of fixes
2014-02-18 09:26:51 +00:00
Karl Hobley
129f9bdbeb Add django.contrib.admin to test settings 2014-02-18 09:22:51 +00:00
Karl Hobley
a4e566be15 Revert "Disable compression for tests"
This reverts commit 72a6982821.
2014-02-18 09:21:05 +00:00
Karl Hobley
d90966c2f3 Docs: Don't use hard coded urls in tests 2014-02-18 09:18:08 +00:00
Serafeim Papastefanos
f9d94d998f Added lang declaration to skeleton.html 2014-02-18 08:24:53 +02:00
Neal Todd
4f1b7ac292 Omit vendor packages (treebeard currently) and migrations from code coverage. 2014-02-17 18:10:55 +00:00
Karl Hobley
97cdebbe09 More Images tests 2014-02-17 17:41:38 +00:00
Neal Todd
f5ade62939 Added PyPI version badge to README 2014-02-17 17:15:03 +00:00
Neal Todd
3b12dd0964 Added Coveralls badge to README
(also fixed linebreak formatting that was causing 'build unknown' and 'coverage unknown' images)
2014-02-17 17:12:08 +00:00
Neal Todd
0b8bbe1d9b Update README.rst
Reverting fb391aa to see if it fixes the CDN cached 'build unknown' (the original markup was is taken direct from the snippet Travis provides).
2014-02-17 16:47:01 +00:00
Neal Todd
42282d9345 Fix typo in command 2014-02-17 16:36:59 +00:00
Karl Hobley
2f184a4f7a Images: Added tests 2014-02-17 16:36:44 +00:00
Karl Hobley
0ba7497d9c Add query_string into chooser context (for testing) 2014-02-17 16:35:07 +00:00
Neal Todd
c70a058d53 Merge branch 'master' of github.com:torchbox/wagtail 2014-02-17 16:31:07 +00:00
Neal Todd
f1175f1d3b Integrate Coveralls reporting into Travis CI 2014-02-17 16:30:39 +00:00
Karl Hobley
cda8172daf Revert "Moved first parameter of patterns to first line."
This reverts commit 22ddc66776.
2014-02-17 15:33:26 +00:00
Matt Westcott
004ad80a4a Merge branch 'master' of https://github.com/spapas/wagtail into spapas-master 2014-02-17 14:54:12 +00:00
Karl Hobley
db884758ac Cleaned up image index view 2014-02-17 14:43:58 +00:00
Karl Hobley
09f542a3c3 Removed image search view 2014-02-17 14:36:13 +00:00
Karl Hobley
059b51ba7a Cleaned up documents index view 2014-02-17 14:31:09 +00:00
Karl Hobley
0805922e4a Removed document search 2014-02-17 14:09:43 +00:00
Karl Hobley
22ddc66776 Moved first parameter of patterns to first line.
This goes against PEP8 but I think they looks clearer this way.
2014-02-17 14:07:08 +00:00
Karl Hobley
d79d2f3174 Added document permissions tester 2014-02-17 14:01:49 +00:00
Karl Hobley
ddd847602c Docs: Added some tests for admin interface 2014-02-17 13:35:48 +00:00
Karl Hobley
5dd86a740f Search: backend tests cleanup 2014-02-17 12:50:04 +00:00
Karl Hobley
72a6982821 Disable compression for tests 2014-02-17 12:11:35 +00:00
Karl Hobley
d3ff00ff11 Merge branch 'feature/redirects-tests' 2014-02-17 12:00:28 +00:00
Karl Hobley
c2be65de6d Merge remote-tracking branch 'torchbox/master' into feature/unit-tests 2014-02-17 11:56:48 +00:00
Karl Hobley
d8f66f4b5a Search: add query_string to template context of query chooser 2014-02-17 11:52:12 +00:00
Karl Hobley
f1fa81b9fb Search: More frontend tests 2014-02-17 11:39:26 +00:00
Matt Westcott
d6a60d4adf Merge branch 'master' of github.com:torchbox/wagtail 2014-02-17 11:25:48 +00:00
Matt Westcott
c61fd6e000 Merge branch 'master' of https://github.com/stevenewey/wagtail into stevenewey-master 2014-02-17 11:20:26 +00:00
Matt Westcott
9cd8c9efe1 Merge pull request #59 from levigross/master
Added missing return statement
2014-02-17 11:15:37 +00:00
Matt Westcott
c0651d53cb Merge branch 'master' of github.com:torchbox/wagtail 2014-02-17 11:03:54 +00:00