From: Radek Czajka Date: Mon, 18 Mar 2019 12:39:10 +0000 (+0100) Subject: Translations. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/8d2be5a4bcb4ffd6f8383cba2dfc9288c828487f?ds=sidebyside Translations. --- diff --git a/src/social/locale/pl/LC_MESSAGES/django.mo b/src/social/locale/pl/LC_MESSAGES/django.mo index 455ec071e..127985396 100644 Binary files a/src/social/locale/pl/LC_MESSAGES/django.mo and b/src/social/locale/pl/LC_MESSAGES/django.mo differ diff --git a/src/social/locale/pl/LC_MESSAGES/django.po b/src/social/locale/pl/LC_MESSAGES/django.po index d9ef2d4e1..5217cf9a6 100644 --- a/src/social/locale/pl/LC_MESSAGES/django.po +++ b/src/social/locale/pl/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-18 13:30+0100\n" +"POT-Creation-Date: 2019-03-18 13:38+0100\n" "PO-Revision-Date: 2014-01-24 10:06+0100\n" "Last-Translator: Radek Czajka \n" "Language-Team: LANGUAGE \n" @@ -51,7 +51,7 @@ msgstr "" msgid "created at" msgstr "utworzone" -#: models.py:19 +#: models.py:19 models.py:101 msgid "banner group" msgstr "grupa bannerów" @@ -95,7 +95,7 @@ msgstr "przyklejony" msgid "Sticky cites will take precedense." msgstr "Przyklejone cytaty mają pierwszeństwo." -#: models.py:41 +#: models.py:41 models.py:100 msgid "banner" msgstr "banner" @@ -150,7 +150,7 @@ msgstr "cytaty" msgid "slug" msgstr "slug" -#: models.py:91 +#: models.py:91 models.py:99 msgid "carousel" msgstr "karuzela" @@ -158,15 +158,19 @@ msgstr "karuzela" msgid "carousels" msgstr "karuzele" -#: models.py:104 +#: models.py:98 +msgid "order" +msgstr "kolejność" + +#: models.py:106 msgid "carousel item" msgstr "element karuzeli" -#: models.py:105 +#: models.py:107 msgid "carousel items" msgstr "elementy karuzeli" -#: models.py:109 models.py:111 +#: models.py:114 models.py:116 msgid "Either banner or banner group is required." msgstr "Proszę wskazać banner albo grupę bannerów." diff --git a/src/social/migrations/0007_auto_20190318_1339.py b/src/social/migrations/0007_auto_20190318_1339.py new file mode 100644 index 000000000..0f3fdae31 --- /dev/null +++ b/src/social/migrations/0007_auto_20190318_1339.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.20 on 2019-03-18 12:39 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('social', '0006_legacy_group'), + ] + + operations = [ + migrations.AlterField( + model_name='carouselitem', + name='banner', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='social.Cite', verbose_name='banner'), + ), + migrations.AlterField( + model_name='carouselitem', + name='banner_group', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='social.BannerGroup', verbose_name='banner group'), + ), + migrations.AlterField( + model_name='carouselitem', + name='carousel', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='social.Carousel', verbose_name='carousel'), + ), + migrations.AlterField( + model_name='carouselitem', + name='order', + field=models.PositiveSmallIntegerField(unique=True, verbose_name='order'), + ), + ] diff --git a/src/social/models.py b/src/social/models.py index c6a1815bf..58f551104 100644 --- a/src/social/models.py +++ b/src/social/models.py @@ -95,10 +95,10 @@ class Carousel(models.Model): return self.slug class CarouselItem(models.Model): - order = models.PositiveSmallIntegerField(unique=True) - carousel = models.ForeignKey(Carousel, models.CASCADE) - banner = models.ForeignKey(Cite, models.CASCADE, null=True, blank=True) - banner_group = models.ForeignKey(BannerGroup, models.CASCADE, null=True, blank=True) + order = models.PositiveSmallIntegerField(_('order'), unique=True) + carousel = models.ForeignKey(Carousel, models.CASCADE, verbose_name=_('carousel')) + banner = models.ForeignKey(Cite, models.CASCADE, null=True, blank=True, verbose_name=_('banner')) + banner_group = models.ForeignKey(BannerGroup, models.CASCADE, null=True, blank=True, verbose_name=_('banner group')) class Meta: ordering = ('order',)