forked from ungleich-public/dynamicweb
Vendor stored_messages and cmsplugin_filer packages patched for Django 2
This commit is contained in:
parent
3f36b0899b
commit
9c465422b6
193 changed files with 11695 additions and 0 deletions
1
cmsplugin_filer_folder/__init__.py
Normal file
1
cmsplugin_filer_folder/__init__.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
from cmsplugin_filer_file import __version__ # NOQA
|
||||
0
cmsplugin_filer_folder/admin.py
Normal file
0
cmsplugin_filer_folder/admin.py
Normal file
75
cmsplugin_filer_folder/cms_plugins.py
Normal file
75
cmsplugin_filer_folder/cms_plugins.py
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
from cms.plugin_pool import plugin_pool
|
||||
from cms.plugin_base import CMSPluginBase
|
||||
from django.template.loader import select_template
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from . import models
|
||||
from .conf import settings
|
||||
|
||||
from filer.models.filemodels import File
|
||||
from filer.models.foldermodels import Folder
|
||||
from filer.models.abstract import BaseImage
|
||||
|
||||
|
||||
class FilerFolderPlugin(CMSPluginBase):
|
||||
module = 'Filer'
|
||||
model = models.FilerFolder
|
||||
name = _("Folder")
|
||||
TEMPLATE_NAME = 'cmsplugin_filer_folder/plugins/folder/%s.html'
|
||||
render_template = TEMPLATE_NAME % 'default'
|
||||
text_enabled = False
|
||||
admin_preview = False
|
||||
|
||||
fieldsets = (
|
||||
(None, {'fields': ['title', 'folder']}),
|
||||
)
|
||||
if settings.CMSPLUGIN_FILER_FOLDER_STYLE_CHOICES:
|
||||
fieldsets[0][1]['fields'].append('style')
|
||||
|
||||
def get_folder_files(self, folder, user):
|
||||
qs_files = folder.files.not_instance_of(BaseImage)
|
||||
if user.is_staff:
|
||||
return qs_files
|
||||
else:
|
||||
return qs_files.filter(is_public=True)
|
||||
|
||||
def get_folder_images(self, folder, user):
|
||||
qs_files = folder.files.instance_of(BaseImage)
|
||||
if user.is_staff:
|
||||
return qs_files
|
||||
else:
|
||||
return qs_files.filter(is_public=True)
|
||||
|
||||
def get_children(self, folder):
|
||||
return folder.get_children()
|
||||
|
||||
def render(self, context, instance, placeholder):
|
||||
user = context['request'].user
|
||||
|
||||
if instance.folder_id:
|
||||
folder_files = self.get_folder_files(instance.folder, user)
|
||||
folder_images = self.get_folder_images(instance.folder, user)
|
||||
folder_folders = self.get_children(instance.folder)
|
||||
else:
|
||||
folder_files = File.objects.none()
|
||||
folder_images = BaseImage.objects.none()
|
||||
folder_folders = Folder.objects.none()
|
||||
|
||||
context.update({
|
||||
'object': instance,
|
||||
'folder_files': sorted(folder_files),
|
||||
'folder_images': sorted(folder_images),
|
||||
'folder_folders': folder_folders,
|
||||
'placeholder': placeholder
|
||||
})
|
||||
return context
|
||||
|
||||
def get_render_template(self, context, instance, placeholder):
|
||||
template = select_template((
|
||||
'cmsplugin_filer_folder/folder.html', # backwards compatibility. deprecated!
|
||||
self.TEMPLATE_NAME % instance.style,
|
||||
self.TEMPLATE_NAME % 'default',
|
||||
))
|
||||
return template
|
||||
|
||||
|
||||
plugin_pool.register_plugin(FilerFolderPlugin)
|
||||
18
cmsplugin_filer_folder/conf.py
Normal file
18
cmsplugin_filer_folder/conf.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from django.conf import settings # NOQA
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from appconf import AppConf
|
||||
|
||||
|
||||
class CmspluginFilerFolderAppConf(AppConf):
|
||||
STYLE_CHOICES = (
|
||||
("list", _("List")),
|
||||
("slideshow", _("Slideshow"))
|
||||
)
|
||||
DEFAULT_STYLE = 'list'
|
||||
|
||||
def configure(self):
|
||||
# set DEFAULT_STYLE to '' if it is not in STYLE_CHOICES
|
||||
if not self.configured_data['DEFAULT_STYLE'] in [s for s, l in self.configured_data['STYLE_CHOICES']]:
|
||||
self.configured_data['DEFAULT_STYLE'] = ''
|
||||
return self.configured_data
|
||||
51
cmsplugin_filer_folder/locale/ca/LC_MESSAGES/django.po
Normal file
51
cmsplugin_filer_folder/locale/ca/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Roger Pons <rogerpons@gmail.com>, 2015
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-06-22 17:49+0000\n"
|
||||
"Last-Translator: Martin Koistinen <mkoistinen@gmail.com>\n"
|
||||
"Language-Team: Catalan (http://www.transifex.com/divio/cmsplugin-filer/language/ca/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: ca\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr "Carpeta"
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr "Llista"
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr "Projecció de diapositives"
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr "títol"
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr "Carpetes"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr "Fitxers"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr "Imatges"
|
||||
51
cmsplugin_filer_folder/locale/de/LC_MESSAGES/django.po
Normal file
51
cmsplugin_filer_folder/locale/de/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Jannik V. <me@exploide.net>, 2016
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-06-22 17:49+0000\n"
|
||||
"Last-Translator: Martin Koistinen <mkoistinen@gmail.com>\n"
|
||||
"Language-Team: German (http://www.transifex.com/divio/cmsplugin-filer/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr "Ordner"
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr "Liste"
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr ""
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr "Titel"
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr "Ordner"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr "Dateien"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr "Bilder"
|
||||
50
cmsplugin_filer_folder/locale/en/LC_MESSAGES/django.po
Normal file
50
cmsplugin_filer_folder/locale/en/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr ""
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr ""
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr ""
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr ""
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr ""
|
||||
51
cmsplugin_filer_folder/locale/es/LC_MESSAGES/django.po
Normal file
51
cmsplugin_filer_folder/locale/es/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Javier Sánchez <javier@crea.me>, 2015
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-06-22 17:49+0000\n"
|
||||
"Last-Translator: Martin Koistinen <mkoistinen@gmail.com>\n"
|
||||
"Language-Team: Spanish (http://www.transifex.com/divio/cmsplugin-filer/language/es/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: es\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr "Directorio"
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr "Lista"
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr "Presentación de diapositivas"
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr "título"
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr "Directorios"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr "Archivos"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr "Imágenes"
|
||||
51
cmsplugin_filer_folder/locale/et/LC_MESSAGES/django.po
Normal file
51
cmsplugin_filer_folder/locale/et/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Rivo Zängov <eraser@eraser.ee>, 2012
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-06-22 17:49+0000\n"
|
||||
"Last-Translator: Martin Koistinen <mkoistinen@gmail.com>\n"
|
||||
"Language-Team: Estonian (http://www.transifex.com/divio/cmsplugin-filer/language/et/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: et\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr "Kaust"
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr "Nimekiri"
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr "Slaidiseanss"
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr "pealkiri"
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr "Kaustad"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr "Failid"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr "Pildid"
|
||||
50
cmsplugin_filer_folder/locale/eu/LC_MESSAGES/django.po
Normal file
50
cmsplugin_filer_folder/locale/eu/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# 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: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-06-22 17:49+0000\n"
|
||||
"Last-Translator: Martin Koistinen <mkoistinen@gmail.com>\n"
|
||||
"Language-Team: Basque (http://www.transifex.com/divio/cmsplugin-filer/language/eu/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: eu\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr "Karpeta"
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr "Zerrenda"
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr "Diapositibak"
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr "izenburua"
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr "Karpetak"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr "Fitxategiak"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr "Irudiak"
|
||||
51
cmsplugin_filer_folder/locale/fi/LC_MESSAGES/django.po
Normal file
51
cmsplugin_filer_folder/locale/fi/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Klaus Dahlén <klaus.dahlen@gmail.com>, 2012
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-06-22 17:49+0000\n"
|
||||
"Last-Translator: Martin Koistinen <mkoistinen@gmail.com>\n"
|
||||
"Language-Team: Finnish (http://www.transifex.com/divio/cmsplugin-filer/language/fi/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: fi\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr "Kansio"
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr "Lista"
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr "Diaesitys"
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr "otsikko"
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr "Kansiot"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr "Tiedostot"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr "Kuvat"
|
||||
52
cmsplugin_filer_folder/locale/fr/LC_MESSAGES/django.po
Normal file
52
cmsplugin_filer_folder/locale/fr/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Bertrand Bordage <bordage.bertrand@gmail.com>, 2012
|
||||
# Frigory33 <chironsylvain@orange.fr>, 2016
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-07-06 18:33+0000\n"
|
||||
"Last-Translator: Frigory33 <chironsylvain@orange.fr>\n"
|
||||
"Language-Team: French (http://www.transifex.com/divio/cmsplugin-filer/language/fr/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: fr\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr "Dossier"
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr "Liste"
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr "Diaporama"
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr "titre"
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr "Style"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr "Dossiers"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr "Fichiers"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr "Images"
|
||||
52
cmsplugin_filer_folder/locale/it/LC_MESSAGES/django.po
Normal file
52
cmsplugin_filer_folder/locale/it/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# yakky <i.spalletti@nephila.it>, 2012
|
||||
# yakky <i.spalletti@nephila.it>, 2016
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-07-13 08:28+0000\n"
|
||||
"Last-Translator: yakky <i.spalletti@nephila.it>\n"
|
||||
"Language-Team: Italian (http://www.transifex.com/divio/cmsplugin-filer/language/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: it\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr "Cartella"
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr "Lista"
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr "Slideshow"
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr "titolo"
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr "Stile"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr "Cartelle"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr "File"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr "Immagini"
|
||||
50
cmsplugin_filer_folder/locale/it_IT/LC_MESSAGES/django.po
Normal file
50
cmsplugin_filer_folder/locale/it_IT/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# 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: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-06-22 17:49+0000\n"
|
||||
"Last-Translator: Martin Koistinen <mkoistinen@gmail.com>\n"
|
||||
"Language-Team: Italian (Italy) (http://www.transifex.com/divio/cmsplugin-filer/language/it_IT/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: it_IT\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr ""
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr ""
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr ""
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr ""
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr ""
|
||||
52
cmsplugin_filer_folder/locale/lt/LC_MESSAGES/django.po
Normal file
52
cmsplugin_filer_folder/locale/lt/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Matas Dailyda, 2015
|
||||
# Matas Dailyda <matas@dailyda.com>, 2016
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-07-18 09:19+0000\n"
|
||||
"Last-Translator: Matas Dailyda <matas@dailyda.com>\n"
|
||||
"Language-Team: Lithuanian (http://www.transifex.com/divio/cmsplugin-filer/language/lt/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: lt\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr "Aplankas"
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr "Sąrašas"
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr "Sąrašas su paveikslėliais"
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr "pavadinimas"
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr "Stilius"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr "Aplankai"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr "Bylos"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr "Paveikslėliai"
|
||||
50
cmsplugin_filer_folder/locale/lt_LT/LC_MESSAGES/django.po
Normal file
50
cmsplugin_filer_folder/locale/lt_LT/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# 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: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-06-22 17:49+0000\n"
|
||||
"Last-Translator: Martin Koistinen <mkoistinen@gmail.com>\n"
|
||||
"Language-Team: Lithuanian (Lithuania) (http://www.transifex.com/divio/cmsplugin-filer/language/lt_LT/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: lt_LT\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr ""
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr ""
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr ""
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr ""
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr ""
|
||||
50
cmsplugin_filer_folder/locale/nb/LC_MESSAGES/django.po
Normal file
50
cmsplugin_filer_folder/locale/nb/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# 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: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-06-22 17:49+0000\n"
|
||||
"Last-Translator: Martin Koistinen <mkoistinen@gmail.com>\n"
|
||||
"Language-Team: Norwegian Bokmål (http://www.transifex.com/divio/cmsplugin-filer/language/nb/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: nb\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr ""
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr ""
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr ""
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr ""
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr ""
|
||||
52
cmsplugin_filer_folder/locale/nl/LC_MESSAGES/django.po
Normal file
52
cmsplugin_filer_folder/locale/nl/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Maikel Wever, 2013
|
||||
# kurdyma <transifex.com@kurdyenviolien.nl>, 2016
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-06-27 20:24+0000\n"
|
||||
"Last-Translator: kurdyma <transifex.com@kurdyenviolien.nl>\n"
|
||||
"Language-Team: Dutch (http://www.transifex.com/divio/cmsplugin-filer/language/nl/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: nl\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr "Map"
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr "Lijst"
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr "Slideshow"
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr "titel"
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr "Stijl"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr "Mappen"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr "Bestanden"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr "Afbeeldingen"
|
||||
50
cmsplugin_filer_folder/locale/nn/LC_MESSAGES/django.po
Normal file
50
cmsplugin_filer_folder/locale/nn/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# 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: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-06-22 17:49+0000\n"
|
||||
"Last-Translator: Martin Koistinen <mkoistinen@gmail.com>\n"
|
||||
"Language-Team: Norwegian Nynorsk (http://www.transifex.com/divio/cmsplugin-filer/language/nn/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: nn\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr ""
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr ""
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr ""
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr ""
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr ""
|
||||
51
cmsplugin_filer_folder/locale/pl_PL/LC_MESSAGES/django.po
Normal file
51
cmsplugin_filer_folder/locale/pl_PL/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Mateusz Marzantowicz <mmarzantowicz@osdf.com.pl>, 2013
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-06-22 17:49+0000\n"
|
||||
"Last-Translator: Martin Koistinen <mkoistinen@gmail.com>\n"
|
||||
"Language-Team: Polish (Poland) (http://www.transifex.com/divio/cmsplugin-filer/language/pl_PL/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pl_PL\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr "Katalog"
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr "Lista"
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr "Pokaz slajdów"
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr "tytuł"
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr "Katalogi"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr "Pliki"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr "Obrazy"
|
||||
51
cmsplugin_filer_folder/locale/pt_BR/LC_MESSAGES/django.po
Normal file
51
cmsplugin_filer_folder/locale/pt_BR/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Rodrigo <rprior@infranology.com.br>, 2013
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-06-22 17:49+0000\n"
|
||||
"Last-Translator: Martin Koistinen <mkoistinen@gmail.com>\n"
|
||||
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/divio/cmsplugin-filer/language/pt_BR/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pt_BR\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr "Pasta"
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr "Lista"
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr "Slideshow"
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr "título"
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr "Pastas"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr "Arquivos"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr "Imagens"
|
||||
51
cmsplugin_filer_folder/locale/ru/LC_MESSAGES/django.po
Normal file
51
cmsplugin_filer_folder/locale/ru/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Pavel <neoascetic@gmail.com>, 2012
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-06-22 17:49+0000\n"
|
||||
"Last-Translator: Martin Koistinen <mkoistinen@gmail.com>\n"
|
||||
"Language-Team: Russian (http://www.transifex.com/divio/cmsplugin-filer/language/ru/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: ru\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr "Папка"
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr "Список"
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr "Слайдшоу"
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr "заголовок"
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr "Папки"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr "Файлы"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr "Изображения"
|
||||
51
cmsplugin_filer_folder/locale/zh_CN/LC_MESSAGES/django.po
Normal file
51
cmsplugin_filer_folder/locale/zh_CN/LC_MESSAGES/django.po
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Calvin-He <xhe.com@gmail.com>, 2015
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: django Filer Plugins\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-23 10:26-0400\n"
|
||||
"PO-Revision-Date: 2016-06-22 17:49+0000\n"
|
||||
"Last-Translator: Martin Koistinen <mkoistinen@gmail.com>\n"
|
||||
"Language-Team: Chinese (China) (http://www.transifex.com/divio/cmsplugin-filer/language/zh_CN/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: zh_CN\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
|
||||
#: cms_plugins.py:16
|
||||
msgid "Folder"
|
||||
msgstr "文件夹"
|
||||
|
||||
#: conf.py:9
|
||||
msgid "List"
|
||||
msgstr "列表"
|
||||
|
||||
#: conf.py:10
|
||||
msgid "Slideshow"
|
||||
msgstr "幻灯片"
|
||||
|
||||
#: models.py:22
|
||||
msgid "title"
|
||||
msgstr "标题"
|
||||
|
||||
#: models.py:25
|
||||
msgid "Style"
|
||||
msgstr ""
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:23
|
||||
msgid "Folders"
|
||||
msgstr "文件夹"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:31
|
||||
msgid "Files"
|
||||
msgstr "文件"
|
||||
|
||||
#: templates/cmsplugin_filer_folder/plugins/folder/default.html:39
|
||||
msgid "Images"
|
||||
msgstr "图片"
|
||||
30
cmsplugin_filer_folder/migrations/0001_initial.py
Normal file
30
cmsplugin_filer_folder/migrations/0001_initial.py
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.conf import settings
|
||||
import filer.fields.folder
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('cms', '0003_auto_20140926_2347'),
|
||||
('filer', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='FilerFolder',
|
||||
fields=[
|
||||
('cmsplugin_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='cms.CMSPlugin', on_delete=models.CASCADE)),
|
||||
('title', models.CharField(max_length=255, null=True, verbose_name='title', blank=True)),
|
||||
('style', models.CharField(default=settings.CMSPLUGIN_FILER_FOLDER_DEFAULT_STYLE, max_length=50, verbose_name='Style', choices=settings.CMSPLUGIN_FILER_FOLDER_STYLE_CHOICES)),
|
||||
('folder', filer.fields.folder.FilerFolderField(to='filer.Folder', on_delete=models.CASCADE)),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
},
|
||||
bases=('cms.cmsplugin',),
|
||||
),
|
||||
]
|
||||
21
cmsplugin_filer_folder/migrations/0002_auto_20160113_1318.py
Normal file
21
cmsplugin_filer_folder/migrations/0002_auto_20160113_1318.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import filer.fields.folder
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('cmsplugin_filer_folder', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='filerfolder',
|
||||
name='folder',
|
||||
field=filer.fields.folder.FilerFolderField(on_delete=django.db.models.deletion.SET_NULL, to='filer.Folder', null=True),
|
||||
),
|
||||
]
|
||||
19
cmsplugin_filer_folder/migrations/0003_auto_20160713_1853.py
Normal file
19
cmsplugin_filer_folder/migrations/0003_auto_20160713_1853.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('cmsplugin_filer_folder', '0002_auto_20160113_1318'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='filerfolder',
|
||||
name='cmsplugin_ptr',
|
||||
field=models.OneToOneField(parent_link=True, related_name='cmsplugin_filer_folder_filerfolder', primary_key=True, serialize=False, to='cms.CMSPlugin', on_delete=models.CASCADE),
|
||||
),
|
||||
]
|
||||
0
cmsplugin_filer_folder/migrations/__init__.py
Normal file
0
cmsplugin_filer_folder/migrations/__init__.py
Normal file
49
cmsplugin_filer_folder/models.py
Normal file
49
cmsplugin_filer_folder/models.py
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import warnings
|
||||
from django.db import models
|
||||
from cms.models import CMSPlugin
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from filer.fields.folder import FilerFolderField
|
||||
from .conf import settings
|
||||
from cmsplugin_filer_utils import FilerPluginManager
|
||||
|
||||
|
||||
class FilerFolder(CMSPlugin):
|
||||
"""
|
||||
Plugin for storing any type of Folder.
|
||||
|
||||
Default template displays files store inside this folder.
|
||||
"""
|
||||
STYLE_CHOICES = settings.CMSPLUGIN_FILER_FOLDER_STYLE_CHOICES
|
||||
DEFAULT_STYLE = settings.CMSPLUGIN_FILER_FOLDER_DEFAULT_STYLE
|
||||
title = models.CharField(_("title"), max_length=255, null=True, blank=True)
|
||||
folder = FilerFolderField(null=True, on_delete=models.SET_NULL)
|
||||
style = models.CharField(
|
||||
_('Style'), choices=STYLE_CHOICES, default=DEFAULT_STYLE, max_length=50)
|
||||
cmsplugin_ptr = models.OneToOneField(
|
||||
to=CMSPlugin,
|
||||
related_name='%(app_label)s_%(class)s',
|
||||
parent_link=True,
|
||||
on_delete=models.CASCADE
|
||||
)
|
||||
|
||||
objects = FilerPluginManager(select_related=('folder',))
|
||||
|
||||
@property
|
||||
def view_option(self):
|
||||
warnings.warn("view_option on cmsplugin_filer_folder.FilderFolder is deprecated. Use .style instead.",
|
||||
DeprecationWarning)
|
||||
return self.style
|
||||
|
||||
def __str__(self):
|
||||
return self.get_display_name()
|
||||
|
||||
def get_display_name(self):
|
||||
if self.title:
|
||||
return self.title
|
||||
elif self.folder_id and self.folder.name:
|
||||
return self.folder.name
|
||||
return "<empty>"
|
||||
|
||||
search_fields = ('title',)
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
.cmsplugin_filer_folder_slideshow { padding: 5px; }
|
||||
.cmsplugin_filer_folder_slideshow img { padding: 15px; border: 1px solid #ccc; background-color: #eee; }
|
||||
|
|
@ -0,0 +1,235 @@
|
|||
/*!
|
||||
* jQuery Cycle Lite Plugin
|
||||
* http://malsup.com/jquery/cycle/lite/
|
||||
* Copyright (c) 2008-2012 M. Alsup
|
||||
* Version: 1.7 (20-FEB-2013)
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
* Requires: jQuery v1.3.2 or later
|
||||
*/
|
||||
;(function($) {
|
||||
"use strict";
|
||||
|
||||
var ver = 'Lite-1.7';
|
||||
var msie = /MSIE/.test(navigator.userAgent);
|
||||
|
||||
$.fn.cycle = function(options) {
|
||||
return this.each(function() {
|
||||
options = options || {};
|
||||
|
||||
if (this.cycleTimeout)
|
||||
clearTimeout(this.cycleTimeout);
|
||||
|
||||
this.cycleTimeout = 0;
|
||||
this.cyclePause = 0;
|
||||
|
||||
var $cont = $(this);
|
||||
var $slides = options.slideExpr ? $(options.slideExpr, this) : $cont.children();
|
||||
var els = $slides.get();
|
||||
if (els.length < 2) {
|
||||
if (window.console)
|
||||
console.log('terminating; too few slides: ' + els.length);
|
||||
return; // don't bother
|
||||
}
|
||||
|
||||
// support metadata plugin (v1.0 and v2.0)
|
||||
var opts = $.extend({}, $.fn.cycle.defaults, options || {}, $.metadata ? $cont.metadata() : $.meta ? $cont.data() : {});
|
||||
var meta = $.isFunction($cont.data) ? $cont.data(opts.metaAttr) : null;
|
||||
if (meta)
|
||||
opts = $.extend(opts, meta);
|
||||
|
||||
opts.before = opts.before ? [opts.before] : [];
|
||||
opts.after = opts.after ? [opts.after] : [];
|
||||
opts.after.unshift(function(){ opts.busy=0; });
|
||||
|
||||
// allow shorthand overrides of width, height and timeout
|
||||
var cls = this.className;
|
||||
opts.width = parseInt((cls.match(/w:(\d+)/)||[])[1], 10) || opts.width;
|
||||
opts.height = parseInt((cls.match(/h:(\d+)/)||[])[1], 10) || opts.height;
|
||||
opts.timeout = parseInt((cls.match(/t:(\d+)/)||[])[1], 10) || opts.timeout;
|
||||
|
||||
if ($cont.css('position') == 'static')
|
||||
$cont.css('position', 'relative');
|
||||
if (opts.width)
|
||||
$cont.width(opts.width);
|
||||
if (opts.height && opts.height != 'auto')
|
||||
$cont.height(opts.height);
|
||||
|
||||
var first = 0;
|
||||
$slides.css({position: 'absolute', top:0}).each(function(i) {
|
||||
$(this).css('z-index', els.length-i);
|
||||
});
|
||||
|
||||
$(els[first]).css('opacity',1).show(); // opacity bit needed to handle reinit case
|
||||
if (msie)
|
||||
els[first].style.removeAttribute('filter');
|
||||
|
||||
if (opts.fit && opts.width)
|
||||
$slides.width(opts.width);
|
||||
if (opts.fit && opts.height && opts.height != 'auto')
|
||||
$slides.height(opts.height);
|
||||
if (opts.pause)
|
||||
$cont.hover(function(){this.cyclePause=1;}, function(){this.cyclePause=0;});
|
||||
|
||||
var txFn = $.fn.cycle.transitions[opts.fx];
|
||||
if (txFn)
|
||||
txFn($cont, $slides, opts);
|
||||
|
||||
$slides.each(function() {
|
||||
var $el = $(this);
|
||||
this.cycleH = (opts.fit && opts.height) ? opts.height : $el.height();
|
||||
this.cycleW = (opts.fit && opts.width) ? opts.width : $el.width();
|
||||
});
|
||||
|
||||
if (opts.cssFirst)
|
||||
$($slides[first]).css(opts.cssFirst);
|
||||
|
||||
if (opts.timeout) {
|
||||
// ensure that timeout and speed settings are sane
|
||||
if (opts.speed.constructor == String)
|
||||
opts.speed = {slow: 600, fast: 200}[opts.speed] || 400;
|
||||
if (!opts.sync)
|
||||
opts.speed = opts.speed / 2;
|
||||
while((opts.timeout - opts.speed) < 250)
|
||||
opts.timeout += opts.speed;
|
||||
}
|
||||
opts.speedIn = opts.speed;
|
||||
opts.speedOut = opts.speed;
|
||||
|
||||
opts.slideCount = els.length;
|
||||
opts.currSlide = first;
|
||||
opts.nextSlide = 1;
|
||||
|
||||
// fire artificial events
|
||||
var e0 = $slides[first];
|
||||
if (opts.before.length)
|
||||
opts.before[0].apply(e0, [e0, e0, opts, true]);
|
||||
if (opts.after.length > 1)
|
||||
opts.after[1].apply(e0, [e0, e0, opts, true]);
|
||||
|
||||
if (opts.click && !opts.next)
|
||||
opts.next = opts.click;
|
||||
if (opts.next)
|
||||
$(opts.next).unbind('click.cycle').bind('click.cycle', function(){return advance(els,opts,opts.rev?-1:1);});
|
||||
if (opts.prev)
|
||||
$(opts.prev).unbind('click.cycle').bind('click.cycle', function(){return advance(els,opts,opts.rev?1:-1);});
|
||||
|
||||
if (opts.timeout)
|
||||
this.cycleTimeout = setTimeout(function() {
|
||||
go(els,opts,0,!opts.rev);
|
||||
}, opts.timeout + (opts.delay||0));
|
||||
});
|
||||
};
|
||||
|
||||
function go(els, opts, manual, fwd) {
|
||||
if (opts.busy)
|
||||
return;
|
||||
var p = els[0].parentNode, curr = els[opts.currSlide], next = els[opts.nextSlide];
|
||||
if (p.cycleTimeout === 0 && !manual)
|
||||
return;
|
||||
|
||||
if (manual || !p.cyclePause) {
|
||||
if (opts.before.length)
|
||||
$.each(opts.before, function(i,o) { o.apply(next, [curr, next, opts, fwd]); });
|
||||
var after = function() {
|
||||
if (msie)
|
||||
this.style.removeAttribute('filter');
|
||||
$.each(opts.after, function(i,o) { o.apply(next, [curr, next, opts, fwd]); });
|
||||
queueNext(opts);
|
||||
};
|
||||
|
||||
if (opts.nextSlide != opts.currSlide) {
|
||||
opts.busy = 1;
|
||||
$.fn.cycle.custom(curr, next, opts, after);
|
||||
}
|
||||
var roll = (opts.nextSlide + 1) == els.length;
|
||||
opts.nextSlide = roll ? 0 : opts.nextSlide+1;
|
||||
opts.currSlide = roll ? els.length-1 : opts.nextSlide-1;
|
||||
} else {
|
||||
queueNext(opts);
|
||||
}
|
||||
|
||||
function queueNext(opts) {
|
||||
if (opts.timeout)
|
||||
p.cycleTimeout = setTimeout(function() { go(els,opts,0,!opts.rev); }, opts.timeout);
|
||||
}
|
||||
}
|
||||
|
||||
// advance slide forward or back
|
||||
function advance(els, opts, val) {
|
||||
var p = els[0].parentNode, timeout = p.cycleTimeout;
|
||||
if (timeout) {
|
||||
clearTimeout(timeout);
|
||||
p.cycleTimeout = 0;
|
||||
}
|
||||
opts.nextSlide = opts.currSlide + val;
|
||||
if (opts.nextSlide < 0) {
|
||||
opts.nextSlide = els.length - 1;
|
||||
}
|
||||
else if (opts.nextSlide >= els.length) {
|
||||
opts.nextSlide = 0;
|
||||
}
|
||||
go(els, opts, 1, val>=0);
|
||||
return false;
|
||||
}
|
||||
|
||||
$.fn.cycle.custom = function(curr, next, opts, cb) {
|
||||
var $l = $(curr), $n = $(next);
|
||||
$n.css(opts.cssBefore);
|
||||
var fn = function() {$n.animate(opts.animIn, opts.speedIn, opts.easeIn, cb);};
|
||||
$l.animate(opts.animOut, opts.speedOut, opts.easeOut, function() {
|
||||
$l.css(opts.cssAfter);
|
||||
if (!opts.sync)
|
||||
fn();
|
||||
});
|
||||
if (opts.sync)
|
||||
fn();
|
||||
};
|
||||
|
||||
$.fn.cycle.transitions = {
|
||||
fade: function($cont, $slides, opts) {
|
||||
$slides.not(':eq(0)').hide();
|
||||
opts.cssBefore = { opacity: 0, display: 'block' };
|
||||
opts.cssAfter = { display: 'none' };
|
||||
opts.animOut = { opacity: 0 };
|
||||
opts.animIn = { opacity: 1 };
|
||||
},
|
||||
fadeout: function($cont, $slides, opts) {
|
||||
opts.before.push(function(curr,next,opts,fwd) {
|
||||
$(curr).css('zIndex',opts.slideCount + (fwd === true ? 1 : 0));
|
||||
$(next).css('zIndex',opts.slideCount + (fwd === true ? 0 : 1));
|
||||
});
|
||||
$slides.not(':eq(0)').hide();
|
||||
opts.cssBefore = { opacity: 1, display: 'block', zIndex: 1 };
|
||||
opts.cssAfter = { display: 'none', zIndex: 0 };
|
||||
opts.animOut = { opacity: 0 };
|
||||
opts.animIn = { opacity: 1 };
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.cycle.ver = function() { return ver; };
|
||||
|
||||
// @see: http://malsup.com/jquery/cycle/lite/
|
||||
$.fn.cycle.defaults = {
|
||||
animIn: {},
|
||||
animOut: {},
|
||||
fx: 'fade',
|
||||
after: null,
|
||||
before: null,
|
||||
cssBefore: {},
|
||||
cssAfter: {},
|
||||
delay: 0,
|
||||
fit: 0,
|
||||
height: 'auto',
|
||||
metaAttr: 'cycle',
|
||||
next: null,
|
||||
pause: false,
|
||||
prev: null,
|
||||
speed: 1000,
|
||||
slideExpr: null,
|
||||
sync: true,
|
||||
timeout: 4000
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
{% load i18n thumbnail sekizai_tags staticfiles %}
|
||||
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'cmsplugin_filer_folder/css/slideshow.css' %}" media="screen, projection" />{% endaddtoblock "css" %}
|
||||
{% addtoblock "js" %}<script type="text/javascript" src="{% static 'cmsplugin_filer_folder/js/jquery.cycle.lite-1.7.js' %}"></script>{% endaddtoblock "js" %}
|
||||
{% addtoblock "js" %}
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
jQuery(document).ready(function ($) {
|
||||
$('.cmsplugin_filer_folder_slideshow').cycle({
|
||||
fx: 'fade'
|
||||
});
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
{% endaddtoblock %}
|
||||
|
||||
|
||||
{{ object.get_display_name }}
|
||||
|
||||
{% if object.view_option == "list" %}
|
||||
<div class="cmsplugin_filer_folder_list" id="folder_{{ instance.id }}">
|
||||
<!--The files should go there -->
|
||||
{% if folder_folders %}
|
||||
<p>{% trans "Folders" %}</p>
|
||||
<ul>
|
||||
{% for folder in folder_folders %}
|
||||
<li>{{ folder }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% if folder_files %}
|
||||
<p>{% trans "Files" %}</p>
|
||||
<ul>
|
||||
{% for files in folder_files %}
|
||||
<li>{{ files }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% if folder_images %}
|
||||
<p>{% trans "Images" %}</p>
|
||||
<ul>
|
||||
{% for image in folder_images %}
|
||||
<li><img src="{% thumbnail image.file 32x32 crop="True" upscale="True" %}" width="32" height="32" alt="{{ image.label }}"></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% else %}
|
||||
<!-- start: slideshow -->
|
||||
<div class="cmsplugin_filer_folder_slideshow" id="folder_{{ object.id }}">
|
||||
{% for image in folder_images %}
|
||||
<img src="{% thumbnail image.file 200x200 crop="True" upscale="True" %}">
|
||||
{% endfor %}
|
||||
</div>
|
||||
<!-- end: gallery -->
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue