From 8d2be5a4bcb4ffd6f8383cba2dfc9288c828487f Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 18 Mar 2019 13:39:10 +0100 Subject: [PATCH 1/1] Translations. --- src/social/locale/pl/LC_MESSAGES/django.mo | Bin 2980 -> 3014 bytes src/social/locale/pl/LC_MESSAGES/django.po | 18 +++++---- .../migrations/0007_auto_20190318_1339.py | 36 ++++++++++++++++++ src/social/models.py | 8 ++-- 4 files changed, 51 insertions(+), 11 deletions(-) create mode 100644 src/social/migrations/0007_auto_20190318_1339.py diff --git a/src/social/locale/pl/LC_MESSAGES/django.mo b/src/social/locale/pl/LC_MESSAGES/django.mo index 455ec071ee561ae31821ed296be07878a9c6b07f..12798539632f4f06e2b6a55de9a2579ab0b26cbb 100644 GIT binary patch delta 838 zcmX}rKS*0q6vy$Ce^wK`9DZZnb57sE{&vbh ziOV^57e2uV4q_XQVhWd02hHOn{D~^CH;chXcOtS3`vi<(>u- xp(N3!Tz?=@7H6dYf?A9BIk4>yr88sW882Rx3Pq;U)8msL(=DWSAKw6T`w+#zF}T*(ha&owBk)y;90fntW|+MoLjM zWhWN0Q*10G8^wZ+vaqo5KRVpro8P@>-o59{y>G4~`w{o4Ja1EIP2APoGaiv1Jo55E z+i^q|a2I13$`c7-Cw5^P^KlWIaRqDf7z^+Q!+4LC_>NKZ_(ZBiTxp=g+R}qV*pGf( zGuN?*@fH?i7Fk11Q4^e5`~piD-(Vp=qCWS6T=K?;7XD%5?_XUJFWEFfff+`f7)AYM z3Dk*6)P=h3`?QS*kxND_K5p>|a|(0p>NFnlT!gAqc!dG-%NLzqbSOKBX>7$&?7$_| z0#C34&r!GZ4jb_mYp|3mbtjWJk15oGvq)|^#1NjCm*_HAZs|~iJYXq4V;O#0+)q`y zPzZIQFzUQ&i^t6t)FWs&2T-3ILza?B)cLchM>!Yd{B^4r31|Wrxn$MG8>kbuZM=u< z7KkEPh 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',) -- 2.20.1