From ec37b872cd3e50923b4df493b739ac9472a250f2 Mon Sep 17 00:00:00 2001 From: Erik Stein Date: Wed, 27 Apr 2022 00:26:02 +0200 Subject: [PATCH] Tweaks. --- CHANGES | 3 + .../locale/de/LC_MESSAGES/django.mo | Bin 0 -> 952 bytes .../locale/de/LC_MESSAGES/django.po | 253 +++++++++++++++++ .../locale/en/LC_MESSAGES/django.mo | Bin 0 -> 380 bytes .../locale/en/LC_MESSAGES/django.po | 254 ++++++++++++++++++ shared/media_archive/models.py | 4 + 6 files changed, 514 insertions(+) create mode 100644 shared/media_archive/locale/de/LC_MESSAGES/django.mo create mode 100644 shared/media_archive/locale/de/LC_MESSAGES/django.po create mode 100644 shared/media_archive/locale/en/LC_MESSAGES/django.mo create mode 100644 shared/media_archive/locale/en/LC_MESSAGES/django.po diff --git a/CHANGES b/CHANGES index 00e05f6..ddc5111 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +Next +- + 0.1.8 2021-04-26 - Django 2.0 compatibility diff --git a/shared/media_archive/locale/de/LC_MESSAGES/django.mo b/shared/media_archive/locale/de/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..18d1075d3e4f855887800632406c917f019eb1b6 GIT binary patch literal 952 zcmb7?!EVz)5QY~hP>kSEi313vL2v*e7g`CaavD^(aZ1!UiPE%EQ7_wgYA`ghke|IV)G=fd2Xz?cUQ!9KVRK7n$41s?bY z?t$;%8u$h7gFoN_n7<;#Yv>bb1-b`a2WMab>mOHzcm(|oorB(jN$GbNdI$Oxx&d8= zhR|auQpF8Wj_aVT5!>P>C_P{`8)1@A<4C6LL^)L#Qz~*wrPgduM5wh0ol~iyzAQM+ z?MeB094KlkRfW_PbD|{Gm1YWUKU2pn#;!EVR6nDU(wYvK%rXyit@DvG>9o>7bZq_}iGCyTciB3Xn}9mu##Xo)(Qee;ZnRro zmj}5m{Me-`@z;l`^Lu$fUZ?GM`B;@Xeht?QXfF!8e%$tJA-!z}apT3ib}RCl(iMKs zO5?OFavM;6r`e=d7)P`k#bKkl7S?LrXnXq&LQOiv!}>jzM*%g%*5*!G$!fE?rqyC@ z(^(8Eh#PS12mA8?bf(?#48K9nmKNc?sS}Ie)t4Zs)sP6RY{>m(_EbEZ1ADMoh z;AH|@IZ%by(L*b>U(fB43&;#Emae*7q4Bi(%+TX1Ej_PzVqNKkEoI7_4iC@2q->^J zr$gG5=m^D^zM?&N8uDS>A9zK!NGyATO@d7bIt71!=u#e?f6g>6Mw7EfY!j^Dk6(%d W%k#G;PLs1zE^8_N&*M_HQ-{CHu@eda literal 0 HcmV?d00001 diff --git a/shared/media_archive/locale/de/LC_MESSAGES/django.po b/shared/media_archive/locale/de/LC_MESSAGES/django.po new file mode 100644 index 0000000..550fa1a --- /dev/null +++ b/shared/media_archive/locale/de/LC_MESSAGES/django.po @@ -0,0 +1,253 @@ +# 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 , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-03-13 19:29+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "All" +msgstr "Alle" + +msgid "Texte" +msgstr "" + +msgid "Ordnung" +msgstr "" + +msgid "Foto" +msgstr "" + +msgid "Name" +msgstr "" + +msgid "Arbeitsmappen" +msgstr "" + +msgid "Bild" +msgstr "" + +msgid "Bilder" +msgstr "" + +msgid "Weiteres" +msgstr "" + +msgid "Add images to gallery" +msgstr "Bilder zu Galerie hinzufügen" + +msgid "The selected images will be added to the following gallery:" +msgstr "Die ausgewählten Bilder werden zu folgender Galerie hinzugefügt" + +msgid "Add Images" +msgstr "Bilder hinzufügen" + +msgid "Assign category to images" +msgstr "Bilder kategorisieren" + +msgid "Images which will be assigned to the chosen category:" +msgstr "Die ausgewählten Bilder werden zu folgender Kategorie hinzugefügt" + +msgid "Nicht veröffentlicht" +msgstr "" + +msgid "Veröffentlicht" +msgstr "" + +#, python-format +msgid "Successfully set %(count)d media file to %(chosen_is_public)s." +msgid_plural "Successfully set %(count)d media files to %(chosen_is_public)s." +msgstr[0] "" +msgstr[1] "" + +msgid "Zugriff für ausgewählte Mediendateien setzen" +msgstr "" + +msgid "Digital Media File Archive" +msgstr "Mediendateien" + +msgid "This would create a loop in the hierarchy" +msgstr "" + +msgid "name" +msgstr "" + +msgid "Übergeordnet" +msgstr "" + +msgid "slug" +msgstr "" + +msgid "Working Folder" +msgstr "" + +msgid "Working Folders" +msgstr "" + +msgid "Internal Name" +msgstr "" + +msgid "Internal use only, not publicly visible." +msgstr "" + +msgid "Publicly visible name." +msgstr "" + +msgid "Slug" +msgstr "" + +msgid "Credits" +msgstr "" + +msgid "Caption" +msgstr "" + +msgid "Active" +msgstr "" + +msgid "Order Index" +msgstr "" + +msgid "Images" +msgstr "" + +msgid "Image Gallery" +msgstr "" + +msgid "Image Galleries" +msgstr "" + +msgid "file type" +msgstr "" + +msgid "Dieser Wert wird in der Programmierung benutzt und darf nicht verändert werden." +msgstr "" + +msgid "Bild-Typ" +msgstr "" + +msgid "Bild-Typen" +msgstr "" + +msgid "Hochgeladen" +msgstr "" + +msgid "Geändert" +msgstr "" + +msgid "Nur als \"öffentlich sichtbar\" markierte Mediendaten werden öffentlich angezeigt." +msgstr "" + +msgid "file size" +msgstr "" + +msgid "Typ" +msgstr "" + +msgid "Bildunterschrift" +msgstr "" + +msgid "Rechteinhaber/in" +msgstr "" + +msgid "Arbeitsmappe" +msgstr "" + +msgid "image width" +msgstr "" + +msgid "image height" +msgstr "" + +msgid "primary point of interest" +msgstr "" + +msgid "image" +msgstr "" + +msgid "Datei" +msgstr "" + +msgid "Download" +msgstr "" + +msgid "Downloads" +msgstr "" + +msgid "Image" +msgstr "" + +msgid "Video" +msgstr "" + +msgid "Audio" +msgstr "" + +msgid "PDF document" +msgstr "" + +msgid "Flash" +msgstr "" + +msgid "Text" +msgstr "" + +msgid "Rich Text" +msgstr "" + +msgid "Zip archive" +msgstr "" + +msgid "Microsoft Word" +msgstr "" + +msgid "Microsoft Excel" +msgstr "" + +msgid "Microsoft PowerPoint" +msgstr "" + +msgid "Binary" +msgstr "" + +msgid "Add to working folder" +msgstr "" + +msgid "Add files to working folder" +msgstr "" + +msgid "Files to add:" +msgstr "" + +msgid "Add" +msgstr "" + +msgid "Cancel" +msgstr "" + +msgid "Set access mode for media files" +msgstr "" + +msgid "Select access mode:" +msgstr "" + +msgid "The following media files' access mode will be changed:" +msgstr "" + +msgid "Change access mode" +msgstr "" + +#, python-format +msgid " By %(filter_title)s " +msgstr "" diff --git a/shared/media_archive/locale/en/LC_MESSAGES/django.mo b/shared/media_archive/locale/en/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..71cbdf3e9d8d54be31066ec4ad8628bc2c1f2845 GIT binary patch literal 380 zcmYL@K~KUk7=|%=+R?Lz&%}d9i{c3jGZa>EvE7z2Nc2{r&Y96JZ6W$Y{CoZuJ5A(G zp7i_Dx9RhJeDu}vIq;l#&OC>nD^HugXY4QU{MmN?lNtRkR}RH%w3NnHT4Bh@vF%H^(V-=Ii1iQ$Qo9Pt!I1Rhe%oml#`f^NEGFCKEL->Rc=KoQ6a?!10%_7(V7ey8`V`;n{war z20Z3;uifk31QV^CRQ|iq#``$=;jWunRB8aLH({)F;i8zL{=V00y-I_qTIqGAN(}v% i$^}`yHKImSZ8jEzYJOK6-VWez49^vuhS0kh1f3tbb!oc* literal 0 HcmV?d00001 diff --git a/shared/media_archive/locale/en/LC_MESSAGES/django.po b/shared/media_archive/locale/en/LC_MESSAGES/django.po new file mode 100644 index 0000000..1d2f9b4 --- /dev/null +++ b/shared/media_archive/locale/en/LC_MESSAGES/django.po @@ -0,0 +1,254 @@ +# 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 , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-03-13 19:29+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "All" +msgstr "" + +msgid "Texte" +msgstr "" + +msgid "Ordnung" +msgstr "" + +msgid "Foto" +msgstr "" + +msgid "Name" +msgstr "" + +msgid "Arbeitsmappen" +msgstr "" + +msgid "Bild" +msgstr "" + +msgid "Bilder" +msgstr "" + +msgid "Weiteres" +msgstr "" + +msgid "Add images to gallery" +msgstr "" + +msgid "The selected images will be added to the following gallery:" +msgstr "" + +msgid "Add Images" +msgstr "" + +msgid "Assign category to images" +msgstr "" + +msgid "Images which will be assigned to the chosen category:" +msgstr "" + +msgid "Nicht veröffentlicht" +msgstr "" + +msgid "Veröffentlicht" +msgstr "" + +#, python-format +msgid "Successfully set %(count)d media file to %(chosen_is_public)s." +msgid_plural "Successfully set %(count)d media files to %(chosen_is_public)s." +msgstr[0] "" +msgstr[1] "" + +msgid "Zugriff für ausgewählte Mediendateien setzen" +msgstr "" + +msgid "Digital Media File Archive" +msgstr "" + +msgid "This would create a loop in the hierarchy" +msgstr "" + +msgid "name" +msgstr "" + +msgid "Übergeordnet" +msgstr "" + +msgid "slug" +msgstr "" + +msgid "Working Folder" +msgstr "" + +msgid "Working Folders" +msgstr "" + +msgid "Internal Name" +msgstr "" + +msgid "Internal use only, not publicly visible." +msgstr "" + +msgid "Publicly visible name." +msgstr "" + +msgid "Slug" +msgstr "" + +msgid "Credits" +msgstr "" + +msgid "Caption" +msgstr "" + +msgid "Active" +msgstr "" + +msgid "Order Index" +msgstr "" + +msgid "Images" +msgstr "" + +msgid "Image Gallery" +msgstr "" + +msgid "Image Galleries" +msgstr "" + +msgid "file type" +msgstr "" + +msgid "Dieser Wert wird in der Programmierung benutzt und darf nicht verändert werden." +msgstr "" + +msgid "Bild-Typ" +msgstr "" + +msgid "Bild-Typen" +msgstr "" + +msgid "Hochgeladen" +msgstr "" + +msgid "Geändert" +msgstr "" + +msgid "Nur als \"öffentlich sichtbar\" markierte Mediendaten werden öffentlich angezeigt." +msgstr "" + +msgid "file size" +msgstr "" + +msgid "Typ" +msgstr "" + +msgid "Bildunterschrift" +msgstr "" + +msgid "Rechteinhaber/in" +msgstr "" + +msgid "Arbeitsmappe" +msgstr "" + +msgid "image width" +msgstr "" + +msgid "image height" +msgstr "" + +msgid "primary point of interest" +msgstr "" + +msgid "image" +msgstr "" + +msgid "Datei" +msgstr "" + +msgid "Download" +msgstr "" + +msgid "Downloads" +msgstr "" + +msgid "Image" +msgstr "" + +msgid "Video" +msgstr "" + +msgid "Audio" +msgstr "" + +msgid "PDF document" +msgstr "" + +msgid "Flash" +msgstr "" + +msgid "Text" +msgstr "" + +msgid "Rich Text" +msgstr "" + +msgid "Zip archive" +msgstr "" + +msgid "Microsoft Word" +msgstr "" + +msgid "Microsoft Excel" +msgstr "" + +msgid "Microsoft PowerPoint" +msgstr "" + +msgid "Binary" +msgstr "" + +msgid "Add to working folder" +msgstr "" + +msgid "Add files to working folder" +msgstr "" + +msgid "Files to add:" +msgstr "" + +msgid "Add" +msgstr "" + +msgid "Cancel" +msgstr "" + +msgid "Set access mode for media files" +msgstr "" + +msgid "Select access mode:" +msgstr "" + +msgid "The following media files' access mode will be changed:" +msgstr "" + +msgid "Change access mode" +msgstr "" + +#, python-format +msgid " By %(filter_title)s " +msgstr "" diff --git a/shared/media_archive/models.py b/shared/media_archive/models.py index 7b198d5..07ceaa6 100644 --- a/shared/media_archive/models.py +++ b/shared/media_archive/models.py @@ -231,6 +231,7 @@ class Image(MediaBase): # file = models.ImageField(_("Datei")) file = ImageField( _("image"), + max_length=200, upload_to=UPLOAD_TO, width_field="image_width", height_field="image_height", @@ -323,6 +324,9 @@ class Download(FileTypeMixin, MediaBase): return self.name or posixpath.basename(self.file.name) +File = Download + + Download.register_filetypes( # Should we be using imghdr.what instead of extension guessing? ('image', _('Image'), lambda f: re.compile(