liquid_feedback_frontend

changeset 180:02aacb3dffe0

Added support for null delegation in upcoming core release
author bsw
date Sun Oct 31 23:38:43 2010 +0100 (2010-10-31)
parents b363a2407d8d
children 105abd1d4996
files app/main/delegation/_action/update.lua app/main/delegation/_show_box.lua app/main/delegation/new.lua locale/translations.de.lua static/icons/16/table_go_crossed.png
line diff
     1.1 --- a/app/main/delegation/_action/update.lua	Sun Oct 31 23:38:23 2010 +0100
     1.2 +++ b/app/main/delegation/_action/update.lua	Sun Oct 31 23:38:43 2010 +0100
     1.3 @@ -43,8 +43,11 @@
     1.4        delegation.scope = "global"
     1.5      end
     1.6    end
     1.7 -
     1.8 -  delegation.trustee_id = trustee_id
     1.9 +  if trustee_id == 0 then
    1.10 +    delegation.trustee_id = nil
    1.11 +  else
    1.12 +    delegation.trustee_id = trustee_id
    1.13 +  end
    1.14  
    1.15    delegation:save()
    1.16  
     2.1 --- a/app/main/delegation/_show_box.lua	Sun Oct 31 23:38:23 2010 +0100
     2.2 +++ b/app/main/delegation/_show_box.lua	Sun Oct 31 23:38:43 2010 +0100
     2.3 @@ -117,15 +117,26 @@
     2.4              onclick = "document.getElementById('delegation_content').style.display = 'block';"
     2.5            },
     2.6            content = function()
     2.7 -            ui.image{
     2.8 -              static = "icons/16/error.png"
     2.9 -            }
    2.10 -            if delegation.issue_id then
    2.11 -              slot.put(_"Issue delegation active")
    2.12 -            elseif delegation.area_id then
    2.13 -              slot.put(_"Area wide delegation active")
    2.14 +            if delegation.trustee_id then
    2.15 +              ui.image{
    2.16 +                static = "icons/16/table_go.png"
    2.17 +              }
    2.18 +              if delegation.issue_id then
    2.19 +                slot.put(_"Issue delegation active")
    2.20 +              elseif delegation.area_id then
    2.21 +                slot.put(_"Area wide delegation active")
    2.22 +              else
    2.23 +                slot.put(_"Global delegation active")
    2.24 +              end
    2.25              else
    2.26 -              slot.put(_"Global delegation active")
    2.27 +              ui.image{
    2.28 +                static = "icons/16/table_go_crossed.png"
    2.29 +              }
    2.30 +              if delegation.issue_id then
    2.31 +                slot.put(_"Delegation turned off for issue")
    2.32 +              elseif delegation.area_id then
    2.33 +                slot.put(_"Delegation turned off for area")
    2.34 +              end
    2.35              end
    2.36              ui.image{
    2.37                static = "icons/16/dropdown.png"
     3.1 --- a/app/main/delegation/new.lua	Sun Oct 31 23:38:23 2010 +0100
     3.2 +++ b/app/main/delegation/new.lua	Sun Oct 31 23:38:43 2010 +0100
     3.3 @@ -76,12 +76,41 @@
     3.4      }
     3.5    },
     3.6    content = function()
     3.7 -    local records = {
     3.8 -      {
     3.9 -        id = "-1",
    3.10 -        name = _"No delegation"
    3.11 +    local records
    3.12 +
    3.13 +    if issue then
    3.14 +      records = {
    3.15 +        {
    3.16 +          id = -1,
    3.17 +          name = _"Inherit delegation from area"
    3.18 +        },
    3.19 +        {
    3.20 +          id = 0,
    3.21 +          name = _"No delegation (override area delegation)"
    3.22 +        },
    3.23 +
    3.24        }
    3.25 -    }
    3.26 +    elseif area then
    3.27 +      records = {
    3.28 +        {
    3.29 +          id = -1,
    3.30 +          name = _"Inherit global delegation"
    3.31 +        },
    3.32 +        {
    3.33 +          id = 0,
    3.34 +          name = _"No delegation (override global delegation)"
    3.35 +        }
    3.36 +      }
    3.37 +
    3.38 +    else
    3.39 +      records = {
    3.40 +        {
    3.41 +          id = -1,
    3.42 +          name = _"No delegation"
    3.43 +        }
    3.44 +      }
    3.45 +
    3.46 +    end
    3.47  
    3.48      for i, record in ipairs(contact_members) do
    3.49        records[#records+1] = record
     4.1 --- a/locale/translations.de.lua	Sun Oct 31 23:38:23 2010 +0100
     4.2 +++ b/locale/translations.de.lua	Sun Oct 31 23:38:43 2010 +0100
     4.3 @@ -36,7 +36,6 @@
     4.4  ["Admin"] = "Admin";
     4.5  ["Admin menu"] = "Admin Menü";
     4.6  ["Admin?"] = "Admin?";
     4.7 -["Administrator"] = "Administrator";
     4.8  ["Admission time"] = "Zeit für die Zulassung";
     4.9  ["Admitted"] = "zugelassen";
    4.10  ["Alternative initiatives"] = "Alternative Initiativen";
    4.11 @@ -123,12 +122,14 @@
    4.12  ["Current status"] = "Aktueller Status";
    4.13  ["Current votings in areas you are member of and issues you are interested in:"] = "Jetzt laufende Abstimmungen zu Themen aus Deinen Themenbereichen oder solchen an denen Du interessiert bist:";
    4.14  ["Currently no API key is set."] = "Zur Zeit ist kein API-Schlüssel festgelegt.";
    4.15 -["Currently required"] = false;
    4.16 +["Currently required"] = "Zur Zeit benötigt";
    4.17  ["Date"] = "Datum";
    4.18  ["Date format is not valid. Please use following format: YYYY-MM-DD"] = "Datumsformat nicht korrekt. Bitte verwende: JJJJ-MM-TT, also z.B. 1945-05-23";
    4.19 -["Default Policy"] = false;
    4.20 +["Default Policy"] = "Standard-Regelwerk";
    4.21  ["Degree"] = "Grad";
    4.22  ["Delegation problems"] = "Delegationsprobleme";
    4.23 +["Delegation turned off for area"] = "Delegation für Themengebiet ausgesetzt";
    4.24 +["Delegation turned off for issue"] = "Delegation für Thema ausgesetzt";
    4.25  ["Delegations"] = "Delegationen";
    4.26  ["Delete API key"] = "API-Schlüssel löschen";
    4.27  ["Delete filter"] = "Filter löschen";
    4.28 @@ -168,9 +169,9 @@
    4.29  ["Email address confirmation"] = "Bestätigung der E-Mail-Adresse";
    4.30  ["Email address is confirmed now"] = "E-Mail-Adresse ist jetzt bestätigt";
    4.31  ["Email address too short!"] = "E-Mail-Adresse ist zu kurz!";
    4.32 -["Email confirmation request"] = false;
    4.33 +["Email confirmation request"] = "E-Mail-Bestätigungsanfrage";
    4.34  ["Email unconfirmed"] = "Unbestätigte E-Mail-Adresse";
    4.35 -["Empty help text: #{id}.#{lang}.txt"] = false;
    4.36 +["Empty help text: #{id}.#{lang}.txt"] = "Leerer Hilfetext: #{id}.#{lang}.txt";
    4.37  ["Enable autosupport for this initiative"] = false;
    4.38  ["Error while converting image. Please note, that only JPG files are supported!"] = "Fehler beim Konvertieren des Bilds. Bitte beachte, dass nur JPG-Dateien unterstützt werden.";
    4.39  ["Error while resolving openid. Internal message: '#{errmsg}'"] = "Fehler beim Auflösen der OpenID. Interne Fehlermeldung: '#{errmsg}'";
    4.40 @@ -207,6 +208,8 @@
    4.41  ["Incoming delegations"] = "Eingehende Delegationen";
    4.42  ["Information about the available policies"] = "Informationen zu den verfügbaren Regelwerken";
    4.43  ["Inherit autoreject from area"] = "Auto-Ablehnen vom Themengebiet übernehmen";
    4.44 +["Inherit delegation from area"] = "Delegation von Themengebiet übernehmen";
    4.45 +["Inherit global delegation"] = "Globale Delegation übernehmen";
    4.46  ["Initiated"] = "Initiiert";
    4.47  ["Initiated initiatives"] = "Initiierte Initiativen";
    4.48  ["Initiative ##{id}"] = "Initiative ##{id}";
    4.49 @@ -256,7 +259,7 @@
    4.50  ["JavaScript is disabled or not available."] = "JavaScript ist abgeschaltet oder nicht verfügbar.";
    4.51  ["Last author"] = "Letzter Autor";
    4.52  ["Last snapshot:"] = "Letzte Auszählung:";
    4.53 -["Legend:"] = false;
    4.54 +["Legend:"] = "Legende:";
    4.55  ["License"] = "Lizenz";
    4.56  ["Locked?"] = "Gesperrt?";
    4.57  ["Login"] = "Anmeldung";
    4.58 @@ -294,7 +297,7 @@
    4.59  ["Membership updated"] = "Mitgliedschaft aktualisiert";
    4.60  ["Memberships"] = "Mitgliedschaften";
    4.61  ["Message of the day"] = "Hinweise";
    4.62 -["Missing help text: #{id}.#{lang}.txt"] = false;
    4.63 +["Missing help text: #{id}.#{lang}.txt"] = "Fehlender Hilfetext: #{id}.#{lang}.txt";
    4.64  ["Mobile phone"] = "Mobiltelefon";
    4.65  ["Monday"] = "Montag";
    4.66  ["Move down"] = "Runter schieben";
    4.67 @@ -317,8 +320,10 @@
    4.68  ["Next state"] = "Nächster Zustand";
    4.69  ["No"] = "Nein";
    4.70  ["No changes to your images were made"] = "An Deinen Bildern wurde nichts geändert";
    4.71 -["No default"] = false;
    4.72 +["No default"] = "Kein Standard";
    4.73  ["No delegation"] = "Keine Delegation";
    4.74 +["No delegation (override area delegation)"] = "Keine Delegation (überschreibe Themengebietsdelegation)";
    4.75 +["No delegation (override global delegation)"] = "Keine Delegation (überschreibe globale)";
    4.76  ["No events selected to list"] = "Keine Ereignisse ausgewählt";
    4.77  ["No membership at all"] = "Gar keine Mitgliedschaft";
    4.78  ["No support at all"] = "Gar keine Unterstützung";
    4.79 @@ -337,7 +342,7 @@
    4.80  ["Old password"] = "Altes Kennwort";
    4.81  ["Old password is wrong"] = "Das alte Kennwort ist falsch";
    4.82  ["Oldest"] = "Älteste";
    4.83 -["On that page please enter the confirmation code:\n\n"] = false;
    4.84 +["On that page please enter the confirmation code:\n\n"] = "Auf dieser Seite gibt bitte folgenden Bestätigungscode ein:\n\n";
    4.85  ["On that page please enter the reset code:\n\n"] = "Auf dieser Seite gib bitte den folgenden Rücksetzcode ein:\n\n";
    4.86  ["One issue"] = "Ein Thema";
    4.87  ["One issue you are interested in"] = "Ein Thema, das Dich interessiert";
    4.88 @@ -366,7 +371,7 @@
    4.89  ["Please choose a policy"] = "Bitte wähle ein Regelwerk";
    4.90  ["Please choose two different versions of the draft to compare"] = "Bitte wähle zwei verschiedene Versionen des Drafts, um sie zu vergleichen.";
    4.91  ["Please choose two versions of the draft to compare"] = "Bitte wähle zwei Versionen des Drafts, um sie zu vergleichen.";
    4.92 -["Please confirm your email address by clicking the following link:\n\n"] = false;
    4.93 +["Please confirm your email address by clicking the following link:\n\n"] = "Bitte bestätige Deine E-Mail-Adresse, indem du den folgenden Link anklickst:\n\n";
    4.94  ["Please enter the email reset code you have received:"] = "Bitte gib den Rücksetzcode ein, den Du erhalten hast:";
    4.95  ["Please enter the invite code you've received."] = "Bitte gib den Invite-Code ein, den Du erhalten hast.";
    4.96  ["Please enter your email address. This address will be used for automatic notifications (if you request them) and in case you've lost your password. This address will not be published. After registration you will receive an email with a confirmation link."] = "Bitte gib Deine E-Mail-Adresse ein. Diese Adresse wird für automatische Benachrichtigungen (wenn Du diese anforderst) sowie zum Zurücksetzen des Kennworts verwendet. Diese Adresse wird nicht veröffentlicht. Nach Abschluß der Registration wirst Du eine E-Mail mit einem Link zum Bestätigen der Adresse erhalten.";
    4.97 @@ -405,7 +410,7 @@
    4.98  ["Remove my membership"] = "Mitgliedschaft aufgeben";
    4.99  ["Remove my request to vote later"] = "Meinen Wunsch später abzustimmen zurückziehen";
   4.100  ["Remove my support from this initiative"] = "Meine Unterstützung der Initiative entziehen";
   4.101 -["Rendered"] = false;
   4.102 +["Rendered"] = "Formatiert";
   4.103  ["Repeat new password"] = "Neues Kennwort wiederholen";
   4.104  ["Request password reset link"] = "Link zum Rücksetzen des Kennworts anfordern";
   4.105  ["Resend activation email to '#{email}'"] = "E-Mail mit Aktivierungslink erneut an '#{email}' senden";
   4.106 @@ -458,7 +463,7 @@
   4.107  ["Sorry, it was not possible to verify your OpenID."] = "Sorry, es war nicht möglich deine OpenID zu verifizieren.";
   4.108  ["Sorry, you have reached your personal flood limit. Please be slower..."] = "Sorry, Du hast Dein persönliches Flood-Limit erreicht. Bitte sei langsamer...";
   4.109  ["Sorry, your contingent for creating initiatives has been used up. Please try again later."] = "Sorry, Dein Antragskontingent ist zur Zeit ausgeschöpft. Bitte versuche es später erneut!";
   4.110 -["Source"] = false;
   4.111 +["Source"] = "Quelltext";
   4.112  ["State"] = "Zustand";
   4.113  ["Statement"] = "Statement";
   4.114  ["Status"] = false;
     5.1 Binary file static/icons/16/table_go_crossed.png has changed

Impressum / About Us