diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c9dc56 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.pyc +/dist +/wagtail_modeltranslation.egg-info diff --git a/dist/wagtail-modeltranslation-0.0.1.tar.gz b/dist/wagtail-modeltranslation-0.0.1.tar.gz deleted file mode 100644 index a031a74..0000000 Binary files a/dist/wagtail-modeltranslation-0.0.1.tar.gz and /dev/null differ diff --git a/dist/wagtail-modeltranslation-0.0.2.tar.gz b/dist/wagtail-modeltranslation-0.0.2.tar.gz deleted file mode 100644 index 47f358d..0000000 Binary files a/dist/wagtail-modeltranslation-0.0.2.tar.gz and /dev/null differ diff --git a/dist/wagtail-modeltranslation-0.0.3.tar.gz b/dist/wagtail-modeltranslation-0.0.3.tar.gz deleted file mode 100644 index 66c7199..0000000 Binary files a/dist/wagtail-modeltranslation-0.0.3.tar.gz and /dev/null differ diff --git a/dist/wagtail-modeltranslation-0.0.4.tar.gz b/dist/wagtail-modeltranslation-0.0.4.tar.gz deleted file mode 100644 index a17c04e..0000000 Binary files a/dist/wagtail-modeltranslation-0.0.4.tar.gz and /dev/null differ diff --git a/dist/wagtail-modeltranslation-0.0.5.tar.gz b/dist/wagtail-modeltranslation-0.0.5.tar.gz deleted file mode 100644 index da877e1..0000000 Binary files a/dist/wagtail-modeltranslation-0.0.5.tar.gz and /dev/null differ diff --git a/dist/wagtail-modeltranslation-0.0.6.tar.gz b/dist/wagtail-modeltranslation-0.0.6.tar.gz deleted file mode 100644 index 7ad685f..0000000 Binary files a/dist/wagtail-modeltranslation-0.0.6.tar.gz and /dev/null differ diff --git a/dist/wagtail-modeltranslation-0.0.7.tar.gz b/dist/wagtail-modeltranslation-0.0.7.tar.gz deleted file mode 100644 index 0419d36..0000000 Binary files a/dist/wagtail-modeltranslation-0.0.7.tar.gz and /dev/null differ diff --git a/dist/wagtail-modeltranslation-0.0.8.tar.gz b/dist/wagtail-modeltranslation-0.0.8.tar.gz deleted file mode 100644 index 31d431d..0000000 Binary files a/dist/wagtail-modeltranslation-0.0.8.tar.gz and /dev/null differ diff --git a/dist/wagtail-modeltranslation-0.0.9.tar.gz b/dist/wagtail-modeltranslation-0.0.9.tar.gz deleted file mode 100644 index 7f9d317..0000000 Binary files a/dist/wagtail-modeltranslation-0.0.9.tar.gz and /dev/null differ diff --git a/dist/wagtail-modeltranslation-0.1.1.tar.gz b/dist/wagtail-modeltranslation-0.1.1.tar.gz deleted file mode 100644 index ff8ba09..0000000 Binary files a/dist/wagtail-modeltranslation-0.1.1.tar.gz and /dev/null differ diff --git a/dist/wagtail-modeltranslation-0.1.tar.gz b/dist/wagtail-modeltranslation-0.1.tar.gz deleted file mode 100644 index d89eb3a..0000000 Binary files a/dist/wagtail-modeltranslation-0.1.tar.gz and /dev/null differ diff --git a/wagtail_modeltranslation.egg-info/PKG-INFO b/wagtail_modeltranslation.egg-info/PKG-INFO deleted file mode 100644 index 1467882..0000000 --- a/wagtail_modeltranslation.egg-info/PKG-INFO +++ /dev/null @@ -1,118 +0,0 @@ -Metadata-Version: 1.1 -Name: wagtail-modeltranslation -Version: 0.1.1 -Summary: Integration of django-modeltranslation with Wagtail CMS -Home-page: https://github.com/infoportugal/wagtail-modeltranslation -Author: Rui Martins -Author-email: rmartins16@gmail.com -License: BSD License -Description: # Wagtail modeltranslation - (based on https://github.com/deschler/django-modeltranslation) - - Simple app containing a mixin model that integrates modeltranslation - (https://github.com/deschler/django-modeltranslation) into wagtail panels system. - - ![alt tag](https://github.com/infoportugal/wagtail-modeltranslation/blob/master/screenshot.png?raw=true) - - ## Quick start - - 1. Make sure you have django-modeltranslation installed: - - pip install django-modeltranslation - - 2. Add "wagtail_modeltranslation" to your INSTALLED_APPS setting like this: - - INSTALLED_APPS = ( - ... - 'wagtail_modeltranslation', - 'modeltranslation', - ... - ) - - 3. Use TranslationMixin in order to integrate django-modeltranslation with Wagtail admin. ** IMPORTANT: ** make sure that TranslationMixin is declared before Page class on model inheritance. Like following: - - from wagtail_modeltranslation.models import TranslationMixin - class FooModel(TranslationMixin, Page): - foo = models.CharField() - FooModel.panels = [...] - - 4. Visit django-modeltranslation for documentation on how to implement translation fields: http://django-modeltranslation.readthedocs.org/en/latest/ - - 5. In order to update pages url_path field use **"set\_translation\_url\_paths"** instead of original "set\_url\_paths" - - 6. Use **"change_lang"** template tag to fetch translated urls based on translated slugs: - - {% load modeltranslation %} - - - ## Release Notes - - ## v0.1.1 - - - Fixed url_path issue caused by a browser with language different from settings.LANGUAGE_CODE - - ## v0.1 - - - Minor release working but lacks full test coverage. - - Last version had required fields validation problems, now fixed. - - ## v0.0.9 - - - Fixed issue that causes duplicated translation fields, preventing auto-slug from working properly. - - ## v0.0.8 - - - Fixed issue related to deleting a non existing key on PAGE_EDIT_HANDLER dict - - ## v0.0.7 - - - Fixed set_url_path() translatable model method - - ### v0.0.6 - - - Fixed js issue related to auto-generating slugs - - ### v0.0.5 - - - Now using django-modeltranslation 0.9.1; - - Fixed problem related to slug field fallbacks; - - ### v0.0.4 - - ** IMPORTANT: ** make sure that TranslationMixin comes before Page class on model inheritance - - - Fix enhancement #1: url_path translation field - - Now includes a template tag that returns current page url to corresponding translated url - - New management command to update url_path translation fields - **set\_translation\_url\_paths** - - ### v0.0.3 - - - New methods; - - Now supports required fields; - - Fixed issue related to browser locale; - - ### v0.0.2 - - - Prepopulated fields now works for translated fields (title and slug) - -Platform: UNKNOWN -Classifier: Environment :: Web Environment -Classifier: Framework :: Django -Classifier: Intended Audience :: Developers -Classifier: License :: OSI Approved :: BSD License -Classifier: Operating System :: OS Independent -Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.2 -Classifier: Programming Language :: Python :: 3.3 -Classifier: Topic :: Internet :: WWW/HTTP -Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content diff --git a/wagtail_modeltranslation.egg-info/SOURCES.txt b/wagtail_modeltranslation.egg-info/SOURCES.txt deleted file mode 100644 index 46a987e..0000000 --- a/wagtail_modeltranslation.egg-info/SOURCES.txt +++ /dev/null @@ -1,23 +0,0 @@ -MANIFEST.in -README.md -setup.py -wagtail_modeltranslation/.DS_Store -wagtail_modeltranslation/__init__.py -wagtail_modeltranslation/admin.py -wagtail_modeltranslation/models.py -wagtail_modeltranslation/tests.py -wagtail_modeltranslation/translation.py -wagtail_modeltranslation/views.py -wagtail_modeltranslation/wagtail_hooks.py -wagtail_modeltranslation.egg-info/PKG-INFO -wagtail_modeltranslation.egg-info/SOURCES.txt -wagtail_modeltranslation.egg-info/dependency_links.txt -wagtail_modeltranslation.egg-info/requires.txt -wagtail_modeltranslation.egg-info/top_level.txt -wagtail_modeltranslation/management/__init__.py -wagtail_modeltranslation/management/commands/__init__.py -wagtail_modeltranslation/management/commands/set_translation_url_paths.py -wagtail_modeltranslation/migrations/__init__.py -wagtail_modeltranslation/static/wagtail_modeltranslation/js/translated_slugs.js -wagtail_modeltranslation/templatetags/__init__.py -wagtail_modeltranslation/templatetags/modeltranslation.py \ No newline at end of file diff --git a/wagtail_modeltranslation.egg-info/dependency_links.txt b/wagtail_modeltranslation.egg-info/dependency_links.txt deleted file mode 100644 index 8b13789..0000000 --- a/wagtail_modeltranslation.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/wagtail_modeltranslation.egg-info/requires.txt b/wagtail_modeltranslation.egg-info/requires.txt deleted file mode 100644 index 69ae455..0000000 --- a/wagtail_modeltranslation.egg-info/requires.txt +++ /dev/null @@ -1,2 +0,0 @@ -django-modeltranslation==0.9.1 -wagtail \ No newline at end of file diff --git a/wagtail_modeltranslation.egg-info/top_level.txt b/wagtail_modeltranslation.egg-info/top_level.txt deleted file mode 100644 index 1cb232b..0000000 --- a/wagtail_modeltranslation.egg-info/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -wagtail_modeltranslation diff --git a/wagtail_modeltranslation/__init__.pyc b/wagtail_modeltranslation/__init__.pyc deleted file mode 100644 index cdc8fa8..0000000 Binary files a/wagtail_modeltranslation/__init__.pyc and /dev/null differ diff --git a/wagtail_modeltranslation/admin.pyc b/wagtail_modeltranslation/admin.pyc deleted file mode 100644 index 4e04267..0000000 Binary files a/wagtail_modeltranslation/admin.pyc and /dev/null differ diff --git a/wagtail_modeltranslation/management/__init__.pyc b/wagtail_modeltranslation/management/__init__.pyc deleted file mode 100644 index 761b97d..0000000 Binary files a/wagtail_modeltranslation/management/__init__.pyc and /dev/null differ diff --git a/wagtail_modeltranslation/management/commands/__init__.pyc b/wagtail_modeltranslation/management/commands/__init__.pyc deleted file mode 100644 index e513d91..0000000 Binary files a/wagtail_modeltranslation/management/commands/__init__.pyc and /dev/null differ diff --git a/wagtail_modeltranslation/management/commands/set_translation_url_paths.pyc b/wagtail_modeltranslation/management/commands/set_translation_url_paths.pyc deleted file mode 100644 index 6950a3a..0000000 Binary files a/wagtail_modeltranslation/management/commands/set_translation_url_paths.pyc and /dev/null differ diff --git a/wagtail_modeltranslation/migrations/__init__.pyc b/wagtail_modeltranslation/migrations/__init__.pyc deleted file mode 100644 index 6ced0b2..0000000 Binary files a/wagtail_modeltranslation/migrations/__init__.pyc and /dev/null differ diff --git a/wagtail_modeltranslation/templatetags/__init__.pyc b/wagtail_modeltranslation/templatetags/__init__.pyc deleted file mode 100644 index a447124..0000000 Binary files a/wagtail_modeltranslation/templatetags/__init__.pyc and /dev/null differ diff --git a/wagtail_modeltranslation/templatetags/modeltranslation.pyc b/wagtail_modeltranslation/templatetags/modeltranslation.pyc deleted file mode 100644 index 0ad65ed..0000000 Binary files a/wagtail_modeltranslation/templatetags/modeltranslation.pyc and /dev/null differ diff --git a/wagtail_modeltranslation/translation.pyc b/wagtail_modeltranslation/translation.pyc deleted file mode 100644 index 90f3f86..0000000 Binary files a/wagtail_modeltranslation/translation.pyc and /dev/null differ diff --git a/wagtail_modeltranslation/wagtail_hooks.pyc b/wagtail_modeltranslation/wagtail_hooks.pyc deleted file mode 100644 index 748dc86..0000000 Binary files a/wagtail_modeltranslation/wagtail_hooks.pyc and /dev/null differ