Wykres commitów

4076 Commity (8b3bc775d7ab7dd2132897613b73b241d728c19c)

Autor SHA1 Wiadomość Data
Karl Hobley 8ef25e9ed6 Removed object_indexed and Indexed.indexed attribute 2014-02-23 15:15:01 +00:00
Karl Hobley df91d73644 Test models are now more human-friendly 2014-02-23 15:06:59 +00:00
Karl Hobley f565f4b79b Wagtailimages: Test image is now created on the fly 2014-02-23 14:58:04 +00:00
Karl Hobley 451f133d3b Added test-media folder 2014-02-23 14:57:33 +00:00
Serafeim Papastefanos 9c60385310 Added complete el translation+some missing strigs 2014-02-22 20:07:19 +02:00
Karl Hobley aea535f6d4 Removed pyelasticsearch dependency 2014-02-22 14:18:13 +00:00
Karl Hobley 104d5c9a64 Removed searchers 2014-02-22 12:42:51 +00:00
Karl Hobley 4b6b5ee258 Tweaks to search backend tests 2014-02-21 22:17:41 +00:00
Karl Hobley 8f3b846e6c Added ElasticSearch configuration to tests 2014-02-21 22:16:02 +00:00
Tom Dyson e35560f73e Remove createsuperuser command
syncdb includes this.
2014-02-21 22:07:40 +00:00
utek 87dc022010 Missing with in blocktrans 2014-02-21 23:00:55 +01:00
Matt Westcott 057701bba9 Fix wagtailuserbar to assemble unicode properly as suggested by @spapas in 01646aafc8, and use textual dates 2014-02-21 17:03:28 +00:00
Matt Westcott 35b91b2e84 Merge branch 'master' of https://github.com/spapas/wagtail into spapas-master 2014-02-21 16:52:29 +00:00
Serafeim Papastefanos 0ccfb00186 Previous commit had again "M" in the date-fixed it 2014-02-21 18:01:45 +02:00
Serafeim Papastefanos 01646aafc8 Finished string extraction for i18n
Also a minor bug in preview for moderator has been fixed: The
_moderator_userbar.html template contained the date in the "d M Y" format,
which means that a string with the name of the month would be written.
When the locale was 'el' this would contain a string with greek characters
something that would leat to a 500-error when the wagtailuserbar would be
called. This could be solved either by changign the date foramt to Y-m-d
(iso format, which is what i chose) or by adding a u before the '' in line
11 and 15 of wagtailuserbar.py.
2014-02-21 17:57:00 +02:00
Matt Westcott 42fdd8e49b Fix some minor LESS syntax errors (handled by lessc, but important if we switch to a less permissive LESS compiler) 2014-02-21 14:19:19 +00:00
Neal Todd 92af717a7b Adding skips where we don't yet have real tests but want to keep the files around and still have an accurate test count in the meantime. Addresses #51. 2014-02-21 12:46:23 +00:00
Matt Westcott 84602f7b07 Stop wagtailadmin/pages/list.html from breaking when output includes the root node and show_parent=True - fixes #78 2014-02-21 12:12:45 +00:00
Matt Westcott 9fb2437fd1 Gracefully skip elasticsearch backend tests when elasticutils/pyelasticsearch isn't installed 2014-02-21 11:54:23 +00:00
Matt Westcott 9aaa8e13f9 Fix Site.find_for_request to not assume that request.META will include an HTTP_HOST - the django test client doesn't, by default 2014-02-21 11:40:11 +00:00
Neal Todd e980b0d9da Translations section for the docs. 2014-02-21 10:45:07 +00:00
Serafeim Papastefanos b49492cc8f Compiled .mo files with new translations 2014-02-21 12:16:24 +02:00
Matt Westcott 5f23f49b10 Merge pull request #83 from utek/master
Polish translations
2014-02-21 09:41:48 +00:00
Matt Westcott bdad1c893e Merge pull request #82 from spapas/master
Added i18n for docs,embeds,images and redirects
2014-02-21 09:40:36 +00:00
utek 2b493bf46e Polish translation for wagtailusers 2014-02-21 08:36:57 +01:00
utek 657289a353 Polish translation for wagtailsearch 2014-02-21 08:27:28 +01:00
Karl Hobley 553d718e5a Revert "Added ElasticSearch backend to tests settings"
This reverts commit 28a77c6071.
2014-02-20 22:08:44 +00:00
Karl Hobley 28a77c6071 Added ElasticSearch backend to tests settings 2014-02-20 21:59:54 +00:00
Serafeim Papastefanos 9913c317f1 Added i18n for docs,embeds,images and redirects 2014-02-20 23:57:46 +02:00
Karl Hobley 576eb0830e Created a few admin tests 2014-02-20 21:40:42 +00:00
Karl Hobley cca1fc0e52 Added test models 2014-02-20 21:32:51 +00:00
Karl Hobley 500a24ada1 Added test utils 2014-02-20 21:05:15 +00:00
Matt Westcott 5f332a1ca8 Merge branch 'i18n' of https://github.com/spapas/wagtail into spapas-i18n 2014-02-20 14:49:17 +00:00
Matt Westcott 21deb0112a Merge branch 'master' of https://github.com/spapas/wagtail into spapas-master 2014-02-20 12:09:15 +00:00
Serafeim Papastefanos 754bde88b4 Added strings for wagtailsearch 2014-02-20 00:18:19 +02:00
Serafeim Papastefanos a93c8e8187 Added strings fro wagtailsnippets 2014-02-19 21:03:08 +02:00
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