From 88e088e3bc46adf3bf13cf765666d22de5ff0581 Mon Sep 17 00:00:00 2001 From: yaniv14 Date: Sun, 17 Jul 2016 11:43:48 +0300 Subject: [PATCH] Validating community group role upon save to be from same community. Added member groups list display in admin. --- src/acl/locale/he/LC_MESSAGES/django.mo | Bin 4346 -> 4346 bytes src/acl/locale/he/LC_MESSAGES/django.po | 2 +- .../locale/he/LC_MESSAGES/django.mo | Bin 16554 -> 16816 bytes .../locale/he/LC_MESSAGES/django.po | 152 +++++++++--------- .../locale/he/LC_MESSAGES/djangojs.mo | Bin 499 -> 499 bytes .../locale/he/LC_MESSAGES/djangojs.po | 2 +- src/communities/models.py | 13 ++ src/issues/locale/he/LC_MESSAGES/django.mo | Bin 9910 -> 9910 bytes src/issues/locale/he/LC_MESSAGES/django.po | 2 +- src/issues/locale/he/LC_MESSAGES/djangojs.mo | Bin 541 -> 541 bytes src/issues/locale/he/LC_MESSAGES/djangojs.po | 2 +- src/meetings/locale/he/LC_MESSAGES/django.mo | Bin 3938 -> 3938 bytes src/meetings/locale/he/LC_MESSAGES/django.po | 6 +- src/ocd/locale/he/LC_MESSAGES/django.mo | Bin 6157 -> 6157 bytes src/ocd/locale/he/LC_MESSAGES/django.po | 2 +- src/users/admin.py | 14 +- src/users/locale/he/LC_MESSAGES/django.mo | Bin 8077 -> 8146 bytes src/users/locale/he/LC_MESSAGES/django.po | 118 +++++++------- 18 files changed, 174 insertions(+), 139 deletions(-) diff --git a/src/acl/locale/he/LC_MESSAGES/django.mo b/src/acl/locale/he/LC_MESSAGES/django.mo index 5892504b325c937a6e36777be2629abc7a89fefa..dfcb65dd9531183139dc5acedf6db75b7bc5c263 100644 GIT binary patch delta 22 dcmeyR_)BraAx=(nT|;vPLqjX$&8Io_*#Th#2QvTw delta 16 YcmeyR_)BraA&*)_FBM)$ zQSnv_vgyo!YEGBdT#06z4E>+kIqq!B&7v(&XL@RD=j{9YzYn$d`1^mJ=e<3b_jzAA zvM%KKh7k8w=dfDC)@(Di ze2q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/he/LC_MESSAGES/django.po b/src/communities/locale/he/LC_MESSAGES/django.po index ac32d7d1..4d22c100 100644 --- a/src/communities/locale/he/LC_MESSAGES/django.po +++ b/src/communities/locale/he/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: Open Community\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-06-07 11:26+0300\n" -"PO-Revision-Date: 2016-06-05 14:45+0300\n" +"POT-Creation-Date: 2016-07-17 11:37+0300\n" +"PO-Revision-Date: 2016-07-17 11:39+0300\n" "Last-Translator: Yaniv Mirel \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -22,7 +22,7 @@ msgstr "" msgid "Communities & Committees" msgstr "קהילות וועדות" -#: .\forms.py:35 .\models.py:619 +#: .\forms.py:35 .\models.py:621 msgid "Title" msgstr "כותרת" @@ -44,213 +44,217 @@ msgstr "רקע" msgid "Me only" msgstr "רק לי (לבדיקה)" -#: .\models.py:32 .\models.py:39 +#: .\models.py:33 .\models.py:40 msgid "Me only (review)" msgstr "רק לי (לבדיקה)" -#: .\models.py:33 +#: .\models.py:34 msgid "Only attendees" msgstr "למשתתפים בפגישה בלבד" -#: .\models.py:34 .\models.py:40 +#: .\models.py:35 .\models.py:41 msgid "The board" msgstr "לועד בלבד" -#: .\models.py:35 .\models.py:41 +#: .\models.py:36 .\models.py:42 msgid "All members" msgstr "לכל חברי הקהילה" -#: .\models.py:47 .\models.py:144 .\models.py:607 -#: .\templates\communities\participants_form.html:120 +#: .\models.py:48 .\models.py:145 .\models.py:609 +#: .\templates\communities\participants_form.html:70 msgid "Name" msgstr "שם" -#: .\models.py:48 .\models.py:145 +#: .\models.py:49 .\models.py:146 msgid "Friendly URL" msgstr "URL ידידותי" -#: .\models.py:49 .\models.py:146 +#: .\models.py:50 .\models.py:147 msgid "Public community" msgstr "פתוחה לציבור" -#: .\models.py:51 +#: .\models.py:52 msgid "Community logo" msgstr "לוגו קהילה" -#: .\models.py:53 +#: .\models.py:54 msgid "Community identifier" msgstr "מזהה קהילה" -#: .\models.py:57 .\models.py:186 +#: .\models.py:58 .\models.py:187 msgid "Straw voting enabled" msgstr "אפשר הצבעת קש" -#: .\models.py:61 .\models.py:190 +#: .\models.py:62 .\models.py:191 msgid "Issue ranking votes enabled" msgstr "אפשר תיעדוף נושאים" -#: .\models.py:63 .\models.py:192 +#: .\models.py:64 .\models.py:193 msgid "Straw Vote ends at" msgstr "הצבעת שבשבת עד" -#: .\models.py:66 .\models.py:195 +#: .\models.py:67 .\models.py:196 msgid "Referendum started" msgstr "משאל התחיל" -#: .\models.py:69 .\models.py:198 +#: .\models.py:70 .\models.py:199 msgid "Referendum started at" msgstr "משאל התחיל ב" -#: .\models.py:72 .\models.py:201 +#: .\models.py:73 .\models.py:202 msgid "Referendum ends at" msgstr "משאל הסתיים ב" -#: .\models.py:75 .\models.py:204 +#: .\models.py:76 .\models.py:205 msgid "Default quorum" msgstr "" -#: .\models.py:79 .\models.py:208 +#: .\models.py:80 .\models.py:209 msgid "Allow links inside emails" msgstr "אפשר קישורים בתוך אימייל" -#: .\models.py:81 .\models.py:210 +#: .\models.py:82 .\models.py:211 msgid "Send mails to invitees" msgstr "שלח מייל למוזמנים" -#: .\models.py:85 .\models.py:214 +#: .\models.py:86 .\models.py:215 msgid "Register missing board members" msgstr "רישום חברי ועד חסרים" -#: .\models.py:88 .\models.py:217 +#: .\models.py:89 .\models.py:218 msgid "Inform System Manager" msgstr "להודיע למנהל המערכת" -#: .\models.py:91 +#: .\models.py:92 msgid "Community without meetings?" msgstr "קהילות ללא פגישות?" -#: .\models.py:94 .\models.py:142 .\models.py:618 +#: .\models.py:95 .\models.py:143 .\models.py:620 msgid "Community" msgstr "קהילה" -#: .\models.py:95 +#: .\models.py:96 msgid "Communities" msgstr "קהילות" -#: .\models.py:148 +#: .\models.py:149 msgid "Committee logo" msgstr "לוגו ועדה" -#: .\models.py:150 +#: .\models.py:151 msgid "Committee identifier" msgstr "מזהה ועדה" -#: .\models.py:154 +#: .\models.py:155 msgid "Meeting started" msgstr "הפגישה התחילה" -#: .\models.py:156 +#: .\models.py:157 msgid "Upcoming meeting title" msgstr "כותרת הפגישה הקרובה" -#: .\models.py:160 +#: .\models.py:161 msgid "Upcoming meeting scheduled at" msgstr "מועד הפגישה הקרובה" -#: .\models.py:162 +#: .\models.py:163 msgid "Upcoming meeting location" msgstr "מיקום הפגישה הקרובה" -#: .\models.py:163 +#: .\models.py:164 msgid "Upcoming meeting background" msgstr "רקע לפגישה הקרובה" -#: .\models.py:168 +#: .\models.py:169 msgid "Participants in upcoming meeting" msgstr "משתתפים בפגישה הקרובה" -#: .\models.py:171 +#: .\models.py:172 msgid "Guests in upcoming meeting" msgstr "אורחים בפגישה הקרובה" -#: .\models.py:172 +#: .\models.py:173 msgid "Enter each guest in a separate line" msgstr "נא לרשום כל שם בשורה נפרדת" -#: .\models.py:175 +#: .\models.py:176 msgid "Upcoming meeting version" msgstr "מספר גרסת נתוני הפגישה הקרובה" -#: .\models.py:178 +#: .\models.py:179 msgid "Upcoming meeting is published" msgstr "האם הפגישה הקרובה פורסמה?" -#: .\models.py:181 +#: .\models.py:182 msgid "Upcoming meeting published at" msgstr "מועד פרסום הפגישה הקרובה" -#: .\models.py:183 +#: .\models.py:184 msgid "Upcoming meeting summary" msgstr "סיכום הפגישה הקרובה" -#: .\models.py:220 +#: .\models.py:221 msgid "Committee without meetings?" msgstr "ועדה ללא פגישות?" -#: .\models.py:223 .\models.py:642 +#: .\models.py:224 .\models.py:644 #: .\templates\communities\communitygrouprole_list.html:14 msgid "Committee" msgstr "ועדה" -#: .\models.py:224 .\templates\_committee_panel.html:6 +#: .\models.py:225 .\templates\_committee_panel.html:6 #: .\templates\_community_panel.html:13 #: .\templates\communities\communitygroup_list.html:31 msgid "Committees" msgstr "ועדות" -#: .\models.py:595 +#: .\models.py:597 msgid "Confidential Reason" msgstr "סיבה עבור נושא חסוי" -#: .\models.py:596 +#: .\models.py:598 msgid "Confidential Reasons" msgstr "סיבות עבור נושאים חסויים" -#: .\models.py:603 +#: .\models.py:605 msgid "" "A reason that can be used for marking items as confidential in your " "community." msgstr "הגדרת סיבה עבור נושאים חסויים" -#: .\models.py:609 +#: .\models.py:611 msgid "The title to give this reason." msgstr "כותרת עבור סיבה זו" -#: .\models.py:622 .\models.py:639 +#: .\models.py:624 .\models.py:641 #: .\templates\communities\communitygrouprole_list.html:15 msgid "Group" msgstr "קבוצה" -#: .\models.py:623 .\templates\communities\communitygroup_detail.html:4 +#: .\models.py:625 .\templates\communities\communitygroup_detail.html:4 #: .\templates\communities\communitygroup_list.html:10 #: .\templates\communities\communitygroup_list.html:45 #: .\templates\communities\communitygrouprole_list.html:4 msgid "Groups" msgstr "קבוצות" -#: .\models.py:640 .\templates\communities\communitygrouprole_list.html:16 +#: .\models.py:642 .\templates\communities\communitygrouprole_list.html:16 msgid "Role" msgstr "הרשאות" -#: .\models.py:645 +#: .\models.py:647 msgid "Group Role" msgstr "קבוצת Role" -#: .\models.py:646 +#: .\models.py:648 msgid "Group Roles" msgstr "קבוצות Role" #: .\models.py:664 +msgid "Group, Role & Committee need to be from same community" +msgstr "קבוצות, הרשאות וועדות צריכים להיות מאותה קהילה" + +#: .\models.py:678 #: .\south_migrations\0011_auto__add_field_community_register_missing_board_members__chg_field_co.py:17 msgid "Board" msgstr "ועד" @@ -292,7 +296,6 @@ msgid "History" msgstr "היסטוריה" #: .\templates\_community_panel.html:35 -#: .\templates\communities\participants_form.html:193 msgid "Members" msgstr "חברים" @@ -662,39 +665,47 @@ msgstr "רשימה" msgid "List of participants" msgstr "רשימת משתתפים בפגישה" -#: .\templates\communities\participants_form.html:39 -#: .\templates\communities\participants_form.html:205 +#: .\templates\communities\participants_form.html:31 +#: .\templates\communities\participants_form.html:137 #: .\templates\emails\_protocol.html:65 msgid "Guests" msgstr "אורחים" -#: .\templates\communities\participants_form.html:113 +#: .\templates\communities\participants_form.html:49 +msgid "No members" +msgstr "אין חברים" + +#: .\templates\communities\participants_form.html:63 msgid "Delete" msgstr "מחק" -#: .\templates\communities\participants_form.html:129 +#: .\templates\communities\participants_form.html:79 msgid "Email" msgstr "אימייל" -#: .\templates\communities\participants_form.html:136 -#: .\templates\communities\participants_form.html:157 +#: .\templates\communities\participants_form.html:86 +#: .\templates\communities\participants_form.html:107 #: .\templates\communities\upcoming.html:182 msgid "Add" msgstr "הוסף" -#: .\templates\communities\participants_form.html:147 +#: .\templates\communities\participants_form.html:97 msgid "Previous participants" msgstr "משתתפים מפגישות קודמות" -#: .\templates\communities\participants_form.html:171 +#: .\templates\communities\participants_form.html:121 msgid "Please select participants for upcoming meeting" msgstr "בחר משתתפים לפגישה הקרובה" -#: .\templates\communities\participants_form.html:222 +#: .\templates\communities\participants_form.html:125 +msgid "Committee members" +msgstr "חברי ועדה" + +#: .\templates\communities\participants_form.html:154 msgid "Cancel" msgstr "ביטול" -#: .\templates\communities\participants_form.html:223 +#: .\templates\communities\participants_form.html:155 #: .\templates\communities\upcoming.html:276 msgid "Save" msgstr "שמירה" @@ -949,24 +960,24 @@ msgstr "הצבעה פעילה" msgid "Published" msgstr "פורסם" -#: .\views.py:273 +#: .\views.py:279 #, python-format msgid "Sending to %d users" msgstr "שולח ל-%d משתמשים" -#: .\views.py:371 +#: .\views.py:377 msgid "Not a valid number for page." msgstr "מספר עמוד לא תקין" -#: .\views.py:374 +#: .\views.py:380 msgid "Pages should be 1 or greater." msgstr "מספר עמוד צריך להיות 1 או יותר." -#: .\views.py:383 +#: .\views.py:389 msgid "No such page!" msgstr "דף לא קיים!" -#: .\views.py:456 .\views.py:503 +#: .\views.py:462 .\views.py:509 msgid "Group already exists" msgstr "קבוצה בשם זה כבר קיימת" @@ -1113,6 +1124,3 @@ msgstr "קבוצה בשם זה כבר קיימת" #~ msgid "Is Secretary" #~ msgstr "מזכיר" - -#~ msgid "Community Members" -#~ msgstr "חברי קהילה" diff --git a/src/communities/locale/he/LC_MESSAGES/djangojs.mo b/src/communities/locale/he/LC_MESSAGES/djangojs.mo index b4753b538c17b9f705cf42b091e40f4b2a265d5b..e4822164a366c26f9c6dccb9597aed479c069a01 100644 GIT binary patch delta 21 ccmey&{F!;eYA$nKLvsZ~Ln~wRja%&)0aFDA$p8QV delta 21 ccmey&{F!;eYA!Qf19JsKLn|Y*ja%&)0aD-w#Q*>R diff --git a/src/communities/locale/he/LC_MESSAGES/djangojs.po b/src/communities/locale/he/LC_MESSAGES/djangojs.po index ca350ce6..dccefe41 100644 --- a/src/communities/locale/he/LC_MESSAGES/djangojs.po +++ b/src/communities/locale/he/LC_MESSAGES/djangojs.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Open Community\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-06-07 11:26+0300\n" +"POT-Creation-Date: 2016-07-17 11:37+0300\n" "PO-Revision-Date: 2014-02-11 12:50+0200\n" "Last-Translator: Yaniv Mirel \n" "Language-Team: LANGUAGE \n" diff --git a/src/communities/models.py b/src/communities/models.py index fe7fc909..513f3791 100644 --- a/src/communities/models.py +++ b/src/communities/models.py @@ -4,6 +4,7 @@ from acl.models import Role from django.conf import settings +from django.core.exceptions import ValidationError from django.core.urlresolvers import reverse from django.db import models, transaction from django.db.models.signals import post_save @@ -656,6 +657,18 @@ def __str__(self): def get_absolute_url(self): return reverse("group_role:detail", args=(self.committee.community.slug, self.pk)) + def clean(self): + if self.group.community_id == self.role.community_id == self.committee.community_id: + return self + else: + raise ValidationError(_('Group, Role & Committee need to be from same community')) + + def save(self, *args, **kwargs): + if self.group.community_id == self.role.community_id == self.committee.community_id: + super(CommunityGroupRole, self).save(*args, **kwargs) + else: + return + @receiver(post_save, sender=Community) def set_default_confidental_reasons(sender, instance, created, diff --git a/src/issues/locale/he/LC_MESSAGES/django.mo b/src/issues/locale/he/LC_MESSAGES/django.mo index 6580f5afa318eefc67378f8f57cfa12af17185bc..147c8103dbd904b96b5365610635dcef8590ea8f 100644 GIT binary patch delta 23 fcmdnyyUlmQ6>%%;zT?2CkLqjVgv(5L!Z}0&CXEO*W diff --git a/src/issues/locale/he/LC_MESSAGES/django.po b/src/issues/locale/he/LC_MESSAGES/django.po index b237f874..3d4d9a56 100644 --- a/src/issues/locale/he/LC_MESSAGES/django.po +++ b/src/issues/locale/he/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Open Community\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-06-07 11:26+0300\n" +"POT-Creation-Date: 2016-07-17 11:37+0300\n" "PO-Revision-Date: 2015-05-14 13:18+0200\n" "Last-Translator: Yaniv Mirel \n" "Language-Team: \n" diff --git a/src/issues/locale/he/LC_MESSAGES/djangojs.mo b/src/issues/locale/he/LC_MESSAGES/djangojs.mo index c16c57633e04dec67ec3d8a382d6645d0ba966a6..5ef3da0407a59d53b70ec020489dcc648c52f8ae 100644 GIT binary patch delta 21 ccmbQsGM8n-X)beJLvsZ~Ln~wRjaNMw0Z1\n" "Language-Team: \n" diff --git a/src/meetings/locale/he/LC_MESSAGES/django.mo b/src/meetings/locale/he/LC_MESSAGES/django.mo index e15ffd5f9c982899cf00d1f92f30234a7f2d89ff..2d8d449e3a050e588952f9ba5050e473831cf490 100644 GIT binary patch delta 22 dcmaDP_egF-6ep*-uA#Ytp`n%W=48(QtN>N92KxX2 delta 22 dcmaDP_egF-6ep*du7SCNp`n%0=48(QtN>M!2KWE~ diff --git a/src/meetings/locale/he/LC_MESSAGES/django.po b/src/meetings/locale/he/LC_MESSAGES/django.po index 47cae5c2..5085385d 100644 --- a/src/meetings/locale/he/LC_MESSAGES/django.po +++ b/src/meetings/locale/he/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Open Community\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-06-07 11:27+0300\n" +"POT-Creation-Date: 2016-07-17 11:37+0300\n" "PO-Revision-Date: 2015-05-14 13:18+0200\n" "Last-Translator: Yaniv Mirel \n" "Language-Team: \n" @@ -30,11 +30,11 @@ msgstr "שלח אל" msgid "The selected issues will be archived" msgstr "הנושאים המסומנים יועברו לארכיון" -#: .\forms.py:42 +#: .\forms.py:38 msgid "Issue was not modified in this meeting" msgstr "לא התבצעו שינויים בנושא זה במהלך הפגישה" -#: .\forms.py:45 +#: .\forms.py:41 msgid "Undecided proposals" msgstr "הצעות ללא החלטה" diff --git a/src/ocd/locale/he/LC_MESSAGES/django.mo b/src/ocd/locale/he/LC_MESSAGES/django.mo index d600da8ef86af3973c3b76be331c200995af0d73..be67920cebea7d0652ab860cccaa55e540e0b018 100644 GIT binary patch delta 22 dcmeA*=r!1&z{hE>YiO=uXlP};S(EPxCjdqI1@r&_ delta 22 dcmeA*=r!1&z{hE(YhbQmXlP}$S(EPxCjdp-1@Qm? diff --git a/src/ocd/locale/he/LC_MESSAGES/django.po b/src/ocd/locale/he/LC_MESSAGES/django.po index 2e838be8..c5744110 100644 --- a/src/ocd/locale/he/LC_MESSAGES/django.po +++ b/src/ocd/locale/he/LC_MESSAGES/django.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Open Community\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-06-07 11:27+0300\n" +"POT-Creation-Date: 2016-07-17 11:37+0300\n" "PO-Revision-Date: 2015-06-17 21:56+0200\n" "Last-Translator: Yaniv Mirel \n" "Language-Team: \n" diff --git a/src/users/admin.py b/src/users/admin.py index 4735c667..18d2c8a7 100644 --- a/src/users/admin.py +++ b/src/users/admin.py @@ -1,3 +1,4 @@ +from communities.models import CommunityGroupRole from django import forms from django.utils.translation import ugettext, ugettext_lazy as _ from django.contrib import admin @@ -79,8 +80,8 @@ class OCUserAdmin(UserAdmin): # The fields to be used in displaying the User model. # These override the definitions on the base UserAdmin # that reference specific fields on auth.User. - list_display = ('email', 'display_name', 'is_staff', 'is_superuser') - list_filter = ('is_staff', 'is_superuser',) + list_display = ('email', 'display_name', 'get_groups') + list_filter = () fieldsets = ( (None, {'fields': ('email', 'password', 'is_active')}), ('Personal info', {'fields': ('display_name',)}), @@ -99,6 +100,15 @@ class OCUserAdmin(UserAdmin): inlines = [UserMembershipInline] + def get_groups(self, obj): + memberships = obj.memberships.all().values_list('group_name_id', flat=True) + groups = CommunityGroupRole.objects.filter(group_id__in=memberships) + l = [] + for g in groups: + l.append(u'{0}: {1}'.format(g.group.title, g.committee.name)) + return " | ".join(l) + get_groups.short_description = _('Committee & Groups') + admin.site.register(OCUser, OCUserAdmin) admin.site.unregister(Group) diff --git a/src/users/locale/he/LC_MESSAGES/django.mo b/src/users/locale/he/LC_MESSAGES/django.mo index 8d030c1fda695ab65913ecff33c24473b593132f..da7622d187491d7c7a5a9692bc3b13717152c193 100644 GIT binary patch delta 2379 zcmY+_du$X{6vy#XO0_MpY-@`av-}Lf_H+$~q&U9w( znR92RM_Vqoq<<)#nKfFHxS80QZ*~MIj`~s`+5?+r5MP?;92j}2I)cz38 z#VAH`BXUVQfVyNFb^Noqm`yvzpnx6kVkv%r{Okf<5WhoB^efKBf3X;g>0~*bF6`lI zta97EsOu(i7VdTX_oEVe2CJFhh8Za1H&G{ii2Up`I$ii1w|@fXvHd+Np(*5N1zddr z22lyuq9$yn)A{YFJMKUo-|g(fdCYGE3})gHR07YVPB@Obz$j|sGpG`O>iiOQ-bD;x z4mH6~s09B&ewI(!D4Na1+pz*exE|BGz&-}bd=NF^A!M0t1k3S+a}1ThIqb%-P{-Af zEkkR-;}}DomqRV-6;vY1Qi;x{)4U4;)L$3$*r5wl<06cr66wTB>_%1QAO`ZxhA_nT zi>zB6evG>F-?0L(q9!QkuIA%>Y{Mv);nP@+nIQGo0cY8v66H{tPNF8ff+TNKsD$#U z>ryO4U7!w^U>E8J4x%PLj5_~0JV3%()I24;N;O!Es$6H9flAebH{u{_q7hW-vKYrV zP?frhy3>4agP{db6i`V0ep_6eO%m_QFFQHjjp zC}moNDs`#bUWfYoCTznvDv_5_*LfdxL!YA(yM(&VFX-VE@=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6GO@D6mK-PNf|ks2`oW9oUJ_ zqEmGOz0*_37Jgyp44p$0DC740y%HHSEJORXMD1>Lz^%v@cCxd7dYDR_%6>F~kI@W2 z!{zuz)V>(~KAWqway*76(1Tv+3G_yGp$Y9nuX6z7co5mbm+b6+8u{L&!&xd$QH-VT ziB;%{Ddh2mCS(ii*zvDy}X#aQ63m(EG9*Np#a53$FqIMbC*{=e9R5e)a`=6xZ zvtEPqu?xMkp-hJmUP3=Gqj)`jhYp-iXBXW<%p{Bs(1hM;8=7bza!Pm_AHmnqezQ2a z)b~F|zsghI}?U5zHxf)3P&Y+)Na7wv9bhOeTDeS+8F@u+oH*OuD|7u)}fQ|c>e@sETYGwZ_kJ?<#YL>IAw za3*|=4a7{Tr&1F&;yA$gnd0}kmv~^h8D`=7s4jJcQ~e;Zj&P;lOIT6_Z)c{ovfoT} z5PsM!{z\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -16,13 +16,13 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Language: he\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.8.5\n" +"X-Generator: Poedit 1.8.8\n" -#: .\admin.py:42 .\forms.py:45 +#: .\admin.py:43 .\forms.py:58 msgid "Password" msgstr "סיסמא" -#: .\admin.py:43 +#: .\admin.py:44 msgid "" "Raw passwords are not stored, so there is no way to see this user's " "password, but you can change the password using this " @@ -31,155 +31,171 @@ msgstr "" "סיסמאות אינם נשמרות כטקסט, אז אין אפשרות לראות את הסיסמא של המשתמש, אבל ניתן " "לשנות סיסמא בעזרת הקישור הזה." +#: .\admin.py:110 +msgid "Committee & Groups" +msgstr "ועדות וקבוצות" + #: .\apps.py:8 msgid "Users, memberships & rolls" msgstr "משתמשים, חברי קהילה, תפקידים והזמנות" -#: .\forms.py:14 +#: .\forms.py:11 #, python-format msgid "" "Please enter a correct %(username)s and password. Note that both fields may " "be case-sensitive." msgstr "אנא הכנס %(username)s וסיסמא תיקניים. שים לב לאותיות קטנות וגדולות." -#: .\forms.py:46 +#: .\forms.py:38 .\tests\invitation_test.py:99 .\views.py:38 +msgid "This user already a member of this community." +msgstr "משתמש זה כבר חבר בקהילה" + +#: .\forms.py:40 .\tests\invitation_test.py:89 .\views.py:41 +msgid "This user is already invited to this community." +msgstr "משתמש זה כבר הוזמן לקהילה" + +#: .\forms.py:48 .\tests\invitation_test.py:80 .\views.py:70 .\views.py:396 +msgid "Form error. Please supply a valid email." +msgstr "יש בעיה בטופס. אנא בדוק את כתובת האימייל" + +#: .\forms.py:59 msgid "Password confirmation" msgstr "אימות סיסמא" -#: .\forms.py:60 +#: .\forms.py:73 msgid "Passwords don't match" msgstr "סיסמא לא תואמת" -#: .\forms.py:103 +#: .\forms.py:116 msgid "Upload CSV file to import" msgstr "העלאת קובץ csv" -#: .\forms.py:107 +#: .\forms.py:120 msgid "Choose groups" msgstr "בחר קבוצות" -#: .\models.py:69 +#: .\models.py:70 msgid "email address" msgstr "כתובת דואל" -#: .\models.py:72 +#: .\models.py:73 msgid "Your name" msgstr "שמך" -#: .\models.py:74 +#: .\models.py:75 msgid "staff status" msgstr "חבר בצוות האתר" -#: .\models.py:75 +#: .\models.py:76 msgid "Designates whether the user can log into this admin site." msgstr "יכול להכנס לאדמין" -#: .\models.py:77 +#: .\models.py:78 msgid "date joined" msgstr "תאריך הצטרפות" -#: .\models.py:85 +#: .\models.py:86 msgid "user" msgstr "משתמש" -#: .\models.py:86 +#: .\models.py:87 msgid "users" msgstr "משתמשים" -#: .\models.py:124 .\models.py:269 +#: .\models.py:125 .\models.py:272 msgid "Community" msgstr "קהילה" -#: .\models.py:125 .\models.py:284 +#: .\models.py:127 .\models.py:287 msgid "User" msgstr "משתמש" -#: .\models.py:126 .\models.py:291 .\models.py:294 +#: .\models.py:128 .\models.py:294 .\models.py:297 #: .\templates\users\member_update_form.html:9 msgid "Group" msgstr "קבוצה" -#: .\models.py:127 +#: .\models.py:130 msgid "Old group" msgstr "קבוצה ישנה" -#: .\models.py:129 .\models.py:272 +#: .\models.py:132 .\models.py:275 msgid "Created at" msgstr "נוצר בתאריך" -#: .\models.py:132 +#: .\models.py:135 msgid "Invited by" msgstr "הוזמן על ידי" -#: .\models.py:135 +#: .\models.py:138 msgid "In position since" msgstr "מכהן מתאריך" -#: .\models.py:140 +#: .\models.py:143 msgid "Community Member" msgstr "חבר קהילה" -#: .\models.py:141 +#: .\models.py:144 msgid "Community Members" msgstr "חברי קהילה" -#: .\models.py:259 +#: .\models.py:262 msgid "Pending" msgstr "ממתין למשלוח" -#: .\models.py:260 +#: .\models.py:263 msgid "Sent" msgstr "נשלח" -#: .\models.py:261 +#: .\models.py:264 msgid "Failed" msgstr "נכשל" -#: .\models.py:275 +#: .\models.py:278 msgid "Created by" msgstr "נוצר על ידי" -#: .\models.py:278 +#: .\models.py:281 msgid "Name" msgstr "שם" -#: .\models.py:279 .\templates\users\member_profile.html:24 +#: .\models.py:282 .\templates\users\member_profile.html:24 msgid "Email" msgstr "דואל" -#: .\models.py:280 +#: .\models.py:283 msgid "Message" msgstr "הודעה" -#: .\models.py:287 +#: .\models.py:290 msgid "Groups" msgstr "קבוצות" -#: .\models.py:297 +#: .\models.py:300 msgid "Status" msgstr "סטאטוס" -#: .\models.py:299 +#: .\models.py:302 msgid "Times Sent" msgstr "מספר הפעמים שההזמנה נשלחה" -#: .\models.py:300 +#: .\models.py:303 msgid "Error count" msgstr "מספר הפעימים שהמשלוח נכשל" -#: .\models.py:301 +#: .\models.py:304 msgid "Sent at" msgstr "נשלח לאחרונה ב" -#: .\models.py:306 +#: .\models.py:309 msgid "Invitation" msgstr "הזמנה" -#: .\models.py:307 +#: .\models.py:310 msgid "Invitations" msgstr "הזמנות" -#: .\models.py:309 +#: .\models.py:312 #, python-format msgid "" "The system will allow you to take part in the decision making process of %s. " @@ -191,7 +207,7 @@ msgstr "" "אחרי אישור ההצטרפות ניתן לראות את הנושאים לדיון, את סדר היום לישיבה הקרובה, " "ואת סיכום ההחלטות מהישיבות הקודמות, ובעתיד ניתן יהיה גם לדון ולהשפיע עליהם." -#: .\models.py:324 +#: .\models.py:327 #, python-format msgid "Invitation to %s" msgstr "הזמנה לקהילה %s" @@ -435,27 +451,15 @@ msgstr "הזמן" msgid "Open invitations" msgstr "הזמנות פתוחות" -#: .\tests\invitation_test.py:80 .\views.py:74 .\views.py:398 .\views.py:493 -msgid "Form error. Please supply a valid email." -msgstr "יש בעיה בטופס. אנא בדוק את כתובת האימייל" - -#: .\tests\invitation_test.py:89 .\views.py:45 -msgid "This user is already invited to this community." -msgstr "משתמש זה כבר הוזמן לקהילה" - -#: .\tests\invitation_test.py:99 .\views.py:40 -msgid "This user already a member of this community." -msgstr "משתמש זה כבר חבר בקהילה" - -#: .\views.py:149 +#: .\views.py:145 msgid "member" msgstr "חבר" -#: .\views.py:178 +#: .\views.py:176 msgid "Oops. Something went wrong. Please try again." msgstr "אופס. משהו השתבש. אנה נסה שוב." -#: .\views.py:315 +#: .\views.py:313 #, python-format msgid "%d Invitations sent" msgstr "%d הזמנות נשלחו"