From f050ebbf22640cafafa430c423693504a841eb94 Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Thu, 10 Mar 2011 12:38:21 +1300 Subject: [PATCH] Moved to a convention of _records and _actions to make up the index template. Completely backwards compatible but we'll make better use of these partials in future releases. --- .../app/views/admin/users/_actions.html.erb | 5 ++ .../app/views/admin/users/_records.html.erb | 3 + .../app/views/admin/users/index.html.erb | 18 ++--- authentication/config/locales/cs.yml | 20 +++--- authentication/config/locales/da.yml | 18 ++--- authentication/config/locales/de.yml | 34 ++++----- authentication/config/locales/el.yml | 18 ++--- authentication/config/locales/en.yml | 8 +-- authentication/config/locales/es.yml | 8 +-- authentication/config/locales/fr.yml | 2 +- authentication/config/locales/it.yml | 2 +- authentication/config/locales/lolcat.yml | 16 ++--- authentication/config/locales/lt.yml | 16 ++--- authentication/config/locales/lv.yml | 40 +++++------ authentication/config/locales/nb.yml | 6 +- authentication/config/locales/nl.yml | 20 +++--- authentication/config/locales/pl.yml | 4 +- authentication/config/locales/pt-BR.yml | 8 +-- authentication/config/locales/rs.yml | 26 +++---- authentication/config/locales/ru.yml | 14 ++-- authentication/config/locales/sk.yml | 10 +-- authentication/config/locales/sl.yml | 12 ++-- authentication/config/locales/sv.yml | 16 ++--- authentication/config/locales/vi.yml | 8 +-- authentication/config/locales/zh-CN.yml | 12 ++-- authentication/config/locales/zh-TW.yml | 24 +++---- .../views/admin/dashboard/_actions.html.erb | 57 +++++++++++++++ .../views/admin/dashboard/_records.html.erb | 2 + .../app/views/admin/dashboard/index.html.erb | 69 ++----------------- dashboard/config/locales/cs.yml | 1 + dashboard/config/locales/da.yml | 1 + dashboard/config/locales/de.yml | 1 + dashboard/config/locales/el.yml | 1 + dashboard/config/locales/en.yml | 1 + dashboard/config/locales/es.yml | 1 + dashboard/config/locales/fr.yml | 1 + dashboard/config/locales/it.yml | 1 + dashboard/config/locales/lolcat.yml | 1 + dashboard/config/locales/lt.yml | 1 + dashboard/config/locales/lv.yml | 1 + dashboard/config/locales/nb.yml | 1 + dashboard/config/locales/nl.yml | 1 + dashboard/config/locales/pl.yml | 1 + dashboard/config/locales/pt-BR.yml | 1 + dashboard/config/locales/rs.yml | 1 + dashboard/config/locales/ru.yml | 1 + dashboard/config/locales/sk.yml | 1 + dashboard/config/locales/sl.yml | 1 + dashboard/config/locales/sv.yml | 1 + dashboard/config/locales/vi.yml | 1 + dashboard/config/locales/zh-CN.yml | 1 + dashboard/config/locales/zh-TW.yml | 1 + .../app/views/admin/images/_actions.html.erb | 16 +++++ .../app/views/admin/images/_records.html.erb | 18 +++++ images/app/views/admin/images/index.html.erb | 44 ++---------- images/app/views/admin/images/insert.html.erb | 2 +- images/config/locales/cs.yml | 4 +- images/config/locales/da.yml | 4 +- images/config/locales/de.yml | 4 +- images/config/locales/el.yml | 4 +- images/config/locales/en.yml | 4 +- images/config/locales/es.yml | 4 +- images/config/locales/fr.yml | 4 +- images/config/locales/it.yml | 4 +- images/config/locales/lolcat.yml | 4 +- images/config/locales/lt.yml | 4 +- images/config/locales/lv.yml | 4 +- images/config/locales/nb.yml | 4 +- images/config/locales/nl.yml | 4 +- images/config/locales/pl.yml | 4 +- images/config/locales/pt-BR.yml | 4 +- images/config/locales/rs.yml | 4 +- images/config/locales/ru.yml | 4 +- images/config/locales/sk.yml | 4 +- images/config/locales/sl.yml | 4 +- images/config/locales/sv.yml | 4 +- images/config/locales/vi.yml | 4 +- images/config/locales/zh-CN.yml | 4 +- images/config/locales/zh-TW.yml | 4 +- pages/app/views/admin/pages/_actions.html.erb | 20 ++++++ pages/app/views/admin/pages/_records.html.erb | 14 ++++ pages/app/views/admin/pages/index.html.erb | 44 ++---------- pages/config/locales/cs.yml | 3 +- pages/config/locales/da.yml | 3 +- pages/config/locales/de.yml | 3 +- pages/config/locales/el.yml | 3 +- pages/config/locales/en.yml | 3 +- pages/config/locales/es.yml | 3 +- pages/config/locales/fr.yml | 3 +- pages/config/locales/it.yml | 3 +- pages/config/locales/lolcat.yml | 3 +- pages/config/locales/lt.yml | 3 +- pages/config/locales/lv.yml | 3 +- pages/config/locales/nb.yml | 3 +- pages/config/locales/nl.yml | 3 +- pages/config/locales/pl.yml | 3 +- pages/config/locales/pt-BR.yml | 3 +- pages/config/locales/rs.yml | 3 +- pages/config/locales/ru.yml | 3 +- pages/config/locales/sk.yml | 3 +- pages/config/locales/sl.yml | 3 +- pages/config/locales/sv.yml | 3 +- pages/config/locales/vi.yml | 3 +- pages/config/locales/zh-CN.yml | 3 +- pages/config/locales/zh-TW.yml | 3 +- .../views/admin/resources/_actions.html.erb | 11 +++ .../views/admin/resources/_records.html.erb | 16 +++++ .../app/views/admin/resources/index.html.erb | 29 +------- resources/config/locales/cs.yml | 3 +- resources/config/locales/da.yml | 3 +- resources/config/locales/de.yml | 3 +- resources/config/locales/el.yml | 3 +- resources/config/locales/en.yml | 3 +- resources/config/locales/es.yml | 3 +- resources/config/locales/fr.yml | 3 +- resources/config/locales/it.yml | 3 +- resources/config/locales/lolcat.yml | 3 +- resources/config/locales/lt.yml | 3 +- resources/config/locales/lv.yml | 3 +- resources/config/locales/nb.yml | 3 +- resources/config/locales/nl.yml | 3 +- resources/config/locales/pl.yml | 3 +- resources/config/locales/pt-BR.yml | 3 +- resources/config/locales/rs.yml | 3 +- resources/config/locales/ru.yml | 3 +- resources/config/locales/sk.yml | 3 +- resources/config/locales/sl.yml | 3 +- resources/config/locales/sv.yml | 3 +- resources/config/locales/vi.yml | 3 +- resources/config/locales/zh-CN.yml | 3 +- resources/config/locales/zh-TW.yml | 3 +- .../admin/refinery_settings/_actions.html.erb | 15 ++++ .../admin/refinery_settings/_records.html.erb | 21 ++++++ .../admin/refinery_settings/index.html.erb | 38 +--------- settings/config/locales/cs.yml | 3 +- settings/config/locales/da.yml | 3 +- settings/config/locales/de.yml | 3 +- settings/config/locales/el.yml | 3 +- settings/config/locales/en.yml | 5 +- settings/config/locales/es.yml | 3 +- settings/config/locales/fr.yml | 3 +- settings/config/locales/it.yml | 3 +- settings/config/locales/lolcat.yml | 3 +- settings/config/locales/lt.yml | 3 +- settings/config/locales/lv.yml | 3 +- settings/config/locales/nb.yml | 3 +- settings/config/locales/nl.yml | 3 +- settings/config/locales/pl.yml | 3 +- settings/config/locales/pt-BR.yml | 3 +- settings/config/locales/rs.yml | 3 +- settings/config/locales/ru.yml | 3 +- settings/config/locales/sk.yml | 3 +- settings/config/locales/sl.yml | 3 +- settings/config/locales/sv.yml | 3 +- settings/config/locales/vi.yml | 3 +- settings/config/locales/zh-CN.yml | 3 +- settings/config/locales/zh-TW.yml | 3 +- 157 files changed, 629 insertions(+), 479 deletions(-) create mode 100644 authentication/app/views/admin/users/_actions.html.erb create mode 100644 authentication/app/views/admin/users/_records.html.erb create mode 100644 dashboard/app/views/admin/dashboard/_actions.html.erb create mode 100644 dashboard/app/views/admin/dashboard/_records.html.erb create mode 100644 images/app/views/admin/images/_actions.html.erb create mode 100644 images/app/views/admin/images/_records.html.erb create mode 100644 pages/app/views/admin/pages/_actions.html.erb create mode 100644 pages/app/views/admin/pages/_records.html.erb create mode 100644 resources/app/views/admin/resources/_actions.html.erb create mode 100644 resources/app/views/admin/resources/_records.html.erb create mode 100644 settings/app/views/admin/refinery_settings/_actions.html.erb create mode 100644 settings/app/views/admin/refinery_settings/_records.html.erb diff --git a/authentication/app/views/admin/users/_actions.html.erb b/authentication/app/views/admin/users/_actions.html.erb new file mode 100644 index 0000000000..4257f01b1e --- /dev/null +++ b/authentication/app/views/admin/users/_actions.html.erb @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/authentication/app/views/admin/users/_records.html.erb b/authentication/app/views/admin/users/_records.html.erb new file mode 100644 index 0000000000..ab18af8a4b --- /dev/null +++ b/authentication/app/views/admin/users/_records.html.erb @@ -0,0 +1,3 @@ +
+ <%= render :partial => 'users' %> +
\ No newline at end of file diff --git a/authentication/app/views/admin/users/index.html.erb b/authentication/app/views/admin/users/index.html.erb index f55a3009d6..39482e963d 100644 --- a/authentication/app/views/admin/users/index.html.erb +++ b/authentication/app/views/admin/users/index.html.erb @@ -1,12 +1,6 @@ -
-
- <%= render :partial => 'users' %> -
-
-
- -
+
+ <%= render :partial => 'records' %> +
+ \ No newline at end of file diff --git a/authentication/config/locales/cs.yml b/authentication/config/locales/cs.yml index 20c42eff08..f5875a7166 100644 --- a/authentication/config/locales/cs.yml +++ b/authentication/config/locales/cs.yml @@ -14,35 +14,35 @@ cs: plugin_access: Přístup k pluginům role_access: Přiřadit role enable_all: povolit vše - index: + actions: create_new_user: Přidat nového uživatele user: email_user: Poslat uživateli email - preview: (%{who}) přidán %{created_at} + preview: '(%{who}) přidán %{created_at}' sessions: new: hello_please_sign_in: Prosím přihlašte se sign_in: Přihlášení forgot_password: Zapomenuté heslo users: - setup_website_name_html: Dejte vašemu webu jméno. Zde můžete jméno editovat + setup_website_name_html: "Dejte vašemu webu jméno. Zde můžete jméno editovat" new: fill_form: Vyplňte údaje níže a můžeme začít. sign_up: Registrace create: - welcome: Vítejte %{who} + welcome: 'Vítejte %{who}' forgot: email_address: Emailová adresa enter_email_address: Prosím zadejte emailovou adresu. reset_password: Resetovat heslo blank_email: Musíte zadat emailovou adresu. - email_not_associated_with_account_html: Email '%{email}' není asociován z žádným uživatelským kontem.
Jste si jisti, že jste použili správnou adresu? + email_not_associated_with_account_html: "Email '%{email}' není asociován z žádným uživatelským kontem.
Jste si jisti, že jste použili správnou adresu?" email_reset_sent: Byl vám odeslán email s odkazem na resetování hesla. - password_encryption: Musíte si změnit heslo, protože nastala změna v šifrovací metodě ukládáných hesel. Refinery se stává více bezpečnější než dříve. + password_encryption: 'Musíte si změnit heslo, protože nastala změna v šifrovací metodě ukládáných hesel. Refinery se stává více bezpečnější než dříve.' reset: - code_invalid: Omlouváme se, ale kód pro resetování hesla je buď chybný nebo expirovaný. Zkuste zkopírovat adresu pro resetování hesle z emailu který jste obdržel/a, nebo si nechejte email zaslat znovu. - successful: Heslo bylo úspěšně resetováno pro '%{email}' - pick_new_password_for: Zadejte nové heslo pro %{email} + code_invalid: 'Omlouváme se, ale kód pro resetování hesla je buď chybný nebo expirovaný. Zkuste zkopírovat adresu pro resetování hesle z emailu který jste obdržel/a, nebo si nechejte email zaslat znovu.' + successful: "Heslo bylo úspěšně resetováno pro '%{email}'" + pick_new_password_for: 'Zadejte nové heslo pro %{email}' reset_password: Reset hesla user_mailer: reset_notification: @@ -52,7 +52,7 @@ cs: subject: Odkaz pro vytvoření nového hesla reset_request_received_for: "Požadavek pro vytvoření nového hesla pro uživatelský účet %{username}" visit_this_url: Navštivte tuto URL pro zvolení nového hesla - remain_same_if_no_action: Vaše heslo zůstane nezměněné, pokud neprovedete žádnou akci. + remain_same_if_no_action: 'Vaše heslo zůstane nezměněné, pokud neprovedete žádnou akci.' devise: failure: unauthenticated: Pro pokračování se musíte přihlásit. diff --git a/authentication/config/locales/da.yml b/authentication/config/locales/da.yml index 0fdd6b1058..2f756ccded 100644 --- a/authentication/config/locales/da.yml +++ b/authentication/config/locales/da.yml @@ -8,29 +8,29 @@ da: delete: Slet bruger edit: Redigér bruger update: - cannot_remove_user_plugin_from_current_user: Du kan ikke deaktivere 'Brugere' for en bruger, der er logget på. + cannot_remove_user_plugin_from_current_user: "Du kan ikke deaktivere 'Brugere' for en bruger, der er logget på." form: - blank_password_keeps_current: Hvis du ikke indtaster noget, beholdes den nuværende adgangskode + blank_password_keeps_current: 'Hvis du ikke indtaster noget, beholdes den nuværende adgangskode' plugin_access: Plugin adgang role_access: Rolle adgang enable_all: aktivér alle - index: + actions: create_new_user: Tilføj en ny bruger user: email_user: Send email - preview: (%{who}) oprettet %{created_at} + preview: '(%{who}) oprettet %{created_at}' sessions: new: hello_please_sign_in: Hej! Du skal logge ind. sign_in: Log ind forgot_password: Jeg har glemt mit password users: - setup_website_name_html: Lad os først give websitet et navn. Her kan du rette navnet + setup_website_name_html: "Lad os først give websitet et navn. Her kan du rette navnet" new: - fill_form: Indtast dine oplysninger, så vi kan få dig i gang med Refinery. + fill_form: 'Indtast dine oplysninger, så vi kan få dig i gang med Refinery.' sign_up: Opret bruger create: - welcome: Velkommen til Refinery, %{who} + welcome: 'Velkommen til Refinery, %{who}' forgot: email_address: Email-adresse enter_email_address: Indtast den email-adresse du har tilknyttet din konto. @@ -38,7 +38,7 @@ da: blank_email: Du har ikke angivet en email-adresse. email_not_associated_with_account_html: "Beklager, '%{email}' er ikke tilknyttet nogen konto.
Er du sikker på du har skrevet den rigtige email-adresse?" email_reset_sent: En email er blevet sendt til dig med et link til nulstille din adgangskode. - password_encryption: Du er nødt til at nulstille dit password, da vi har opdateret den kryptering som Refinery bruger. + password_encryption: 'Du er nødt til at nulstille dit password, da vi har opdateret den kryptering som Refinery bruger.' reset: code_invalid: "Vi beklager, men denne nulstillingskode er udløbet eller ugyldig. Hvis du har spørgsmål kan du prøve at kopiere og indsætte webadressen fra din email til din browser eller prøve igen." successful: "Adgangskode er nulstillet for %{email}" @@ -49,7 +49,7 @@ da: subject: Link til nulstilling af din adgangskode reset_request_received_for: "%{username} har bedt om at få ændret adgangskode" visit_this_url: Gå til denne URL for at vælge en ny adgangskode - remain_same_if_no_action: Foretager du dig ikke yderligere, så ændres din adgangskode ikke + remain_same_if_no_action: 'Foretager du dig ikke yderligere, så ændres din adgangskode ikke' devise: failure: unauthenticated: Du skal logge ind for at kunne fortsætte. diff --git a/authentication/config/locales/de.yml b/authentication/config/locales/de.yml index 74e3d34d01..dae245b786 100644 --- a/authentication/config/locales/de.yml +++ b/authentication/config/locales/de.yml @@ -10,50 +10,50 @@ de: update: cannot_remove_user_plugin_from_current_user: Sie können die Erweiterung 'Benutzer' nicht vom aktuellen Konto entfernen. form: - blank_password_keeps_current: Wird das Passwort leer gelassen, wird das aktuelle Passwort beibehalten + blank_password_keeps_current: 'Wird das Passwort leer gelassen, wird das aktuelle Passwort beibehalten' plugin_access: Zugriff auf Erweiterungen role_access: Zugriff auf Funktionen enable_all: Alles aktivieren - index: + actions: create_new_user: Neuen Benutzer anlegen user: email_user: Diesem Benutzer emailen - preview: (%{who}) angelegt am %{created_at} + preview: '(%{who}) angelegt am %{created_at}' sessions: new: hello_please_sign_in: Hallo! Bitte melden Sie sich an. sign_in: Anmelden forgot_password: Ich habe mein Passwort vergessen users: - setup_website_name_html: Als ersten können wir der Seite einen Namen geben. Hier klicken, um den Namen der Webseite zu bearbeiten + setup_website_name_html: "Als ersten können wir der Seite einen Namen geben. Hier klicken, um den Namen der Webseite zu bearbeiten" new: - fill_form: Füllen Sie die Details unten aus, damit wir anfangen können. + fill_form: 'Füllen Sie die Details unten aus, damit wir anfangen können.' sign_up: Anmelden create: - welcome: Willkommen bei Refinery, %{who} + welcome: 'Willkommen bei Refinery, %{who}' forgot: email_address: E-Mail-Adresse enter_email_address: Bitte geben Sie die E-Mail-Adresse für Ihre Konto an. reset_password: Passwort zurücksetzen blank_email: Sie haben keine E-Mail-Adresse angegeben. - email_not_associated_with_account_html: Tut mir leid, '%{email}' ist mit keinem Konto verbunden.
Sind Sie sicher, dass Sie die richtige E-Mail-Adresse eingegeben haben? - email_reset_sent: Es wurde Ihnen eine E-Mail mit einem Link geschickt, durch den Sie ihr Passwort zurücksetzen können. - password_encryption: Sie müssen ihr Passwort zurücksetzen, da es Änderungen in der Art der Passwortverschlüsselung gab, die Refinery nutzt, so dass Passwörter sogar noch stärker verschlüsselt werden als vorher. + email_not_associated_with_account_html: "Tut mir leid, '%{email}' ist mit keinem Konto verbunden.
Sind Sie sicher, dass Sie die richtige E-Mail-Adresse eingegeben haben?" + email_reset_sent: 'Es wurde Ihnen eine E-Mail mit einem Link geschickt, durch den Sie ihr Passwort zurücksetzen können.' + password_encryption: 'Sie müssen ihr Passwort zurücksetzen, da es Änderungen in der Art der Passwortverschlüsselung gab, die Refinery nutzt, so dass Passwörter sogar noch stärker verschlüsselt werden als vorher.' reset: - code_invalid: Tut mir leid, aber dieser Zurücksetzungscode ist abgelaufen oder ungültig. Wenn Sie Probleme haben, versuchen Sie, den Link aus der E-Mail zu kopieren und in Ihren Browser einzufügen, oder wiederholen Sie den Vorgang mit dem Passwort zurücksetzen. - successful: Passwort für '%{email}' erfolgreich zurückgesetzt - pick_new_password_for: Wählen Sie ein neues Passwort für %{email} + code_invalid: 'Tut mir leid, aber dieser Zurücksetzungscode ist abgelaufen oder ungültig. Wenn Sie Probleme haben, versuchen Sie, den Link aus der E-Mail zu kopieren und in Ihren Browser einzufügen, oder wiederholen Sie den Vorgang mit dem Passwort zurücksetzen.' + successful: "Passwort für '%{email}' erfolgreich zurückgesetzt" + pick_new_password_for: 'Wählen Sie ein neues Passwort für %{email}' reset_password: Passwort zurücksetzen user_mailer: reset_notification: subject: Link zum Zurücksetzen Ihres Passworts - reset_request_received_for: Anfrage zum Zurücksetzen des Passworts für %{username} erhalten - visit_this_url: Besuchen Sie diese URL, um ein neues Passwort zu wählen - remain_same_if_no_action: Das Passwort bleibt das gleiche, wenn nichts unternommen wird + reset_request_received_for: 'Anfrage zum Zurücksetzen des Passworts für %{username} erhalten' + visit_this_url: 'Besuchen Sie diese URL, um ein neues Passwort zu wählen' + remain_same_if_no_action: 'Das Passwort bleibt das gleiche, wenn nichts unternommen wird' devise: failure: - unauthenticated: Sie müssen sich anmelden, um fortzufahren. - invalid: Tut mir leid, Ihr Login oder Passwort war nicht korrekt. + unauthenticated: 'Sie müssen sich anmelden, um fortzufahren.' + invalid: 'Tut mir leid, Ihr Login oder Passwort war nicht korrekt.' sessions: signed_in: Erfolgreich angemeldet. roles: diff --git a/authentication/config/locales/el.yml b/authentication/config/locales/el.yml index 63c4b5ff9d..90a013deff 100644 --- a/authentication/config/locales/el.yml +++ b/authentication/config/locales/el.yml @@ -14,46 +14,46 @@ el: plugin_access: Πρόσβαση Plugin role_access: Ρόλος Πρόσβασης enable_all: ενεργοποίηση όλων - index: + actions: create_new_user: Προσθήκη χρήστη user: email_user: Αποστολή email σε χρήστη - preview: (%{who}) προσθέθηκε στις %{created_at} + preview: '(%{who}) προσθέθηκε στις %{created_at}' sessions: new: hello_please_sign_in: Γεια! Παρακαλώ συνδεθείτε. sign_in: Σύνδεση forgot_password: Ξέχασα τον κωδικό μου users: - setup_website_name_html: Αρχικά να δώσουμε ένα όνομα στον ιστότοπο. Κάνε κλικ εδώ για να αλλάξεις το όνομα του ιστότοπου. + setup_website_name_html: "Αρχικά να δώσουμε ένα όνομα στον ιστότοπο. Κάνε κλικ εδώ για να αλλάξεις το όνομα του ιστότοπου." new: fill_form: Συμπλήρωσε τα στοιχεία σου παρακάτω για να ξεκινήσουμε. sign_up: Εγγραφή create: - welcome: Καλώς ήλθατε στο Refinery, %{who} + welcome: 'Καλώς ήλθατε στο Refinery, %{who}' forgot: email_address: Διεύθυνση Email enter_email_address: Παρακαλώ γράψτε το ηλεκτρονικό σας ταχυδρομείο. reset_password: Αλλαγή κωδικού blank_email: Δε γράψατε το email σας. - email_not_associated_with_account_html: Συγγνώμη, '%{email}' δεν αντιστοιχεί σε κάποιο λογαριασμό.
Γράψατε σίγουρα το email σας σωστά; + email_not_associated_with_account_html: "Συγγνώμη, '%{email}' δεν αντιστοιχεί σε κάποιο λογαριασμό.
Γράψατε σίγουρα το email σας σωστά;" email_reset_sent: Σας έχει αποσταλεί email με ένα σύνδεσμο για να αλλάξετε κωδικό. password_encryption: Πρέπει να αλλάξετε τον κωδικό σας γιατί υπήρχαν αλλαγές στον τρόπο που το Refinery κρυπτογραφεί τον κωδικό σας με στόχο την μεγαλύτερη ασφάλειά σας. reset: code_invalid: Συγγνώμη αλλά ο κωδικός έληξε. Αν έχετε προβλήματα επαναλάβετε τη διαδικασία αλλαγής κωδικού. - successful: Ο κωδικός άλλαξε για '%{email}' - pick_new_password_for: Διαλέξτε έναν νέο κωδικό για το %{email} + successful: "Ο κωδικός άλλαξε για '%{email}'" + pick_new_password_for: 'Διαλέξτε έναν νέο κωδικό για το %{email}' reset_password: Αλλαγή κωδικού user_mailer: reset_notification: subject: Σύνδεσμος για την αλλαγή του κωδικού σας - reset_request_received_for: Αίτημα αλλαγής κωδικού από %{username} + reset_request_received_for: 'Αίτημα αλλαγής κωδικού από %{username}' visit_this_url: Επισκεφθείτε αυτόν τον σύνδεσμο για να αλλάξετε κωδικό. remain_same_if_no_action: Ο κωδικός σας θα παραμείνει ο ίδιος αν δεν προβείται σε κάποια ενέργεια. devise: failure: unauthenticated: Πρέπει να συνδεθείτε για να συνεχίσετε. - invalid: Συγγνώμη, το όνομα χρήστη ή ο κωδικός δεν είναι έγκυρα. + invalid: 'Συγγνώμη, το όνομα χρήστη ή ο κωδικός δεν είναι έγκυρα.' sessions: signed_in: Συνδεθείκατε επιτυχώς. roles: diff --git a/authentication/config/locales/en.yml b/authentication/config/locales/en.yml index 96fc777625..02d1691ff7 100644 --- a/authentication/config/locales/en.yml +++ b/authentication/config/locales/en.yml @@ -14,23 +14,23 @@ en: plugin_access: Plugin access role_access: Role access enable_all: enable all - index: + actions: create_new_user: Add new user user: email_user: Email this user - preview: (%{who}) added %{created_at} + preview: '(%{who}) added %{created_at}' sessions: new: hello_please_sign_in: Hello! Please sign in. sign_in: Sign in forgot_password: I forgot my password users: - setup_website_name_html: First let's give the site a name. Go here to edit your website's name + setup_website_name_html: "First let's give the site a name. Go here to edit your website's name" new: fill_form: Fill out your details below so that we can get you started. sign_up: Sign up create: - welcome: Welcome to Refinery, %{who} + welcome: 'Welcome to Refinery, %{who}' forgot: email_address: Email Address enter_email_address: Please enter the email address for your account. diff --git a/authentication/config/locales/es.yml b/authentication/config/locales/es.yml index 746a78cd50..08859d18dc 100644 --- a/authentication/config/locales/es.yml +++ b/authentication/config/locales/es.yml @@ -14,14 +14,14 @@ es: plugin_access: Gestionar plugins role_access: Gestionar roles enable_all: permitir todo - index: + actions: create_new_user: Crear nuevo usuario user: email_user: Enviar un email a este usuario - preview: (%{who}) creado %{created_at} + preview: '(%{who}) creado %{created_at}' sessions: new: - hello_please_sign_in: Hola! Por favor, identifícate. + hello_please_sign_in: 'Hola! Por favor, identifícate.' sign_in: Entrar forgot_password: He olvidado mi contraseña users: @@ -30,7 +30,7 @@ es: fill_form: Rellena los detalles siguientes para poder comenzar. sign_up: Registrarme create: - welcome: Bienvenido a Refinery, %{who} + welcome: 'Bienvenido a Refinery, %{who}' forgot: email_address: Dirección e-mail enter_email_address: Indica el e-mail de tu cuenta. diff --git a/authentication/config/locales/fr.yml b/authentication/config/locales/fr.yml index a5cc08c337..5f543bea1e 100644 --- a/authentication/config/locales/fr.yml +++ b/authentication/config/locales/fr.yml @@ -14,7 +14,7 @@ fr: plugin_access: Plugin d'accès role_access: Rôle d'accès enable_all: tout activer - index: + actions: create_new_user: Créer un nouvel utilisateur user: email_user: Envoyer un e-mail à cet utilisateur diff --git a/authentication/config/locales/it.yml b/authentication/config/locales/it.yml index f5142ecc9a..fcf86fdd22 100644 --- a/authentication/config/locales/it.yml +++ b/authentication/config/locales/it.yml @@ -14,7 +14,7 @@ it: plugin_access: "Abilitare l'accesso alle sezioni" role_access: Ruoli autorizzati enable_all: seleziona tutto - index: + actions: create_new_user: Crea un nuovo utente user: email_user: E-mail a questo utente diff --git a/authentication/config/locales/lolcat.yml b/authentication/config/locales/lolcat.yml index 630e3e4cb2..5e3e743407 100644 --- a/authentication/config/locales/lolcat.yml +++ b/authentication/config/locales/lolcat.yml @@ -12,34 +12,34 @@ lolcat: form: blank_password_keeps_current: LEAVIN PASWORD BLANK KEEPS TEH CURRENT PASWORD enable_all: ENABLE ALL - index: + actions: create_new_user: ADD NEW USR user: email_user: EMAIL DIS USR - preview: (%{who}) ADDD %{created_at} + preview: '(%{who}) ADDD %{created_at}' sessions: new: hello_please_sign_in: Y HALO THAR! PLZ SIGN IN. sign_in: SIGN IN forgot_password: I FORGOT MAH PASWORD users: - setup_website_name_html: FURST LETS GIV TEH SIET NAYM. R U SURE U TYPD TEH CORRECT EMAIL ADDRES? + email_not_associated_with_account_html: 'SRY, %{email} ISNT ASSOCIATD WIF ANY ACCOUNTS.
R U SURE U TYPD TEH CORRECT EMAIL ADDRES?' email_reset_sent: AN EMAIL HAS BEEN SENT 2 U WIF LINK 2 RESET UR PASWORD. reset: - code_invalid: WERE SRY, BUT DIS RESET CODE HAS EXPIRD OR IZ INVALID. IF U R HAVIN ISSUEZ TRY COPYIN AN PASTIN TEH URL FRUM UR EMAIL INTO UR BROWSR OR RESTARTIN TEH RESET PASWORD PROCES. - successful: PASWORD RESET SUCCESFULLY 4 %{email} - pick_new_password_for: PICK NEW PASWORD 4 %{email} + code_invalid: 'WERE SRY, BUT DIS RESET CODE HAS EXPIRD OR IZ INVALID. IF U R HAVIN ISSUEZ TRY COPYIN AN PASTIN TEH URL FRUM UR EMAIL INTO UR BROWSR OR RESTARTIN TEH RESET PASWORD PROCES.' + successful: 'PASWORD RESET SUCCESFULLY 4 %{email}' + pick_new_password_for: 'PICK NEW PASWORD 4 %{email}' reset_password: RESET PASWORD user_mailer: reset_notification: diff --git a/authentication/config/locales/lt.yml b/authentication/config/locales/lt.yml index d069c3800e..3c27093cc7 100644 --- a/authentication/config/locales/lt.yml +++ b/authentication/config/locales/lt.yml @@ -12,34 +12,34 @@ lt: form: blank_password_keeps_current: "Jei paliksite slaptažodžio laukelį tuščią, jis išliks nepakites" enable_all: aktyvuoti visus - index: + actions: create_new_user: Pridėti naują vartotoją user: email_user: Siųsti el. laišką vartotojui - preview: (%{who}) sukurtas %{created_at} + preview: '(%{who}) sukurtas %{created_at}' sessions: new: hello_please_sign_in: Sveiki! Prašome prisijungti. sign_in: Prisijungti forgot_password: Aš pamiršau slaptažodį users: - setup_website_name_html: Pirmiausiai nurodykime svetainės pavadinimą.
Eikite čia norėdami pakeisti svetainės pavadinimą + setup_website_name_html: "Pirmiausiai nurodykime svetainės pavadinimą. Eikite čia norėdami pakeisti svetainės pavadinimą" new: - fill_form: Įveskite savo informaciją, kad galėtume pradėti. + fill_form: 'Įveskite savo informaciją, kad galėtume pradėti.' sign_up: Registruotis create: - welcome: Sveiki prisijungę prie Refinery, %{who} + welcome: 'Sveiki prisijungę prie Refinery, %{who}' forgot: email_address: El. pašto adresas enter_email_address: Prašome nurodyti el. pašto adresą savo paskyrai. reset_password: Slaptažodžio keitimas blank_email: Jūs neįvedėte slaptažodžio - email_not_associated_with_account_html: Atsiprašome, '%{email}' nėra susietas su jokia paskyra.
Ar tikrai nurodėte teisingą el. pašto adresą? + email_not_associated_with_account_html: "Atsiprašome, '%{email}' nėra susietas su jokia paskyra.
Ar tikrai nurodėte teisingą el. pašto adresą?" email_reset_sent: El. laiškas buvo nusiųstas jums su nuoroda kur galite pakeisti slaptažodį. reset: - code_invalid: Atsiprašome, bet šio kodo galiojimo laikas baigėsi arba jis neteisingas. Jeigu susiduriate su nesklandumais, pabandykite nukopijuoti ir įterpti adresą iš laiško į naršyklę arba iš naujo pradėti slaptažodžio keitimo procedūrą. + code_invalid: 'Atsiprašome, bet šio kodo galiojimo laikas baigėsi arba jis neteisingas. Jeigu susiduriate su nesklandumais, pabandykite nukopijuoti ir įterpti adresą iš laiško į naršyklę arba iš naujo pradėti slaptažodžio keitimo procedūrą.' successful: "'%{email}' slaptažodis sėkmingai atnaujintas" - pick_new_password_for: Nurodykite naują %{email} slaptažodį + pick_new_password_for: 'Nurodykite naują %{email} slaptažodį' reset_password: Pakeisti slaptažodį user_mailer: reset_notification: diff --git a/authentication/config/locales/lv.yml b/authentication/config/locales/lv.yml index b8e4a1136e..7a05403281 100644 --- a/authentication/config/locales/lv.yml +++ b/authentication/config/locales/lv.yml @@ -10,50 +10,50 @@ lv: update: cannot_remove_user_plugin_from_current_user: Jūs nevarat dzēst pieeju 'Lietotāju' spraudnim kontam ar kuru pašlaik esat pieslēdzies. form: - blank_password_keeps_current: Atstājot paroles lauku tukšu, tiks paturēta pašreizējā parole + blank_password_keeps_current: 'Atstājot paroles lauku tukšu, tiks paturēta pašreizējā parole' plugin_access: Spraudņu piekļuve role_access: Lomu piekļuve enable_all: iespējot visu - index: + actions: create_new_user: Izveidot jaunu lietotāju user: email_user: Sūtīt epastu šim lietotājam - preview: (%{who}) izveidots %{created_at} + preview: '(%{who}) izveidots %{created_at}' sessions: new: - hello_please_sign_in: Sveicināti! Lūdzu, veiciet autentifikāciju. + hello_please_sign_in: 'Sveicināti! Lūdzu, veiciet autentifikāciju.' sign_in: Ienākt forgot_password: Aizmirsu paroli users: - setup_website_name_html: Pirmkārt šim saitam vajadzētu uzstādīt nosaukumu. Spiediet šeit, lai uzstādītu sava saita nosaukumu + setup_website_name_html: "Pirmkārt šim saitam vajadzētu uzstādīt nosaukumu. Spiediet šeit, lai uzstādītu sava saita nosaukumu" new: - fill_form: Aizpildiet zemāk redzamos laukus, lai varam sākt. + fill_form: 'Aizpildiet zemāk redzamos laukus, lai varam sākt.' sign_up: Izveidot create: - welcome: Laipni lūdzam Refinery, %{who} + welcome: 'Laipni lūdzam Refinery, %{who}' forgot: email_address: Epasta adrese - enter_email_address: Lūdzu, norādiet sava konta epasta adresi. + enter_email_address: 'Lūdzu, norādiet sava konta epasta adresi.' reset_password: Atjaunot paroli blank_email: Jūs nenorādījāt epasta adresi. - email_not_associated_with_account_html: Atvainojiet, epasts '%{email}' nav piesaistīts nevienam kontam.
Vai tiešām norādījāt korektu epastu? - email_reset_sent: Uz jūsu epastu tika izsūtīta vēstule, kura satur saiti, lai atjaunotu paroli. - password_encryption: Jums ir jāatjauno parole, jo tika veiktas izmaiņas Refinery paroļu kriptēšanas sistēmā. + email_not_associated_with_account_html: "Atvainojiet, epasts '%{email}' nav piesaistīts nevienam kontam.
Vai tiešām norādījāt korektu epastu?" + email_reset_sent: "Uz jūsu epastu tika izsūtīta vēstule, kura satur saiti, lai atjaunotu paroli." + password_encryption: 'Jums ir jāatjauno parole, jo tika veiktas izmaiņas Refinery paroļu kriptēšanas sistēmā.' reset: - code_invalid: Atvainojiet, šim paroles atjaunošanas kodam ir beidzies izmantošanas termiņš vai arī tas nav derīgs. Ja Jums ir radušās problēmas, tad pamēģiniet nokopēt saņemto saiti no epasta un iekopēt to pārluka adrešu laukā vai arī mēģiniet sākt atjuanošanas procesu no sākuma. - successful: Paroles atjaunošana noritēja sekmīgi priekš '%{email}' - pick_new_password_for: Izveidojiet jaunu paroli priekš %{email} + code_invalid: 'Atvainojiet, šim paroles atjaunošanas kodam ir beidzies izmantošanas termiņš vai arī tas nav derīgs. Ja Jums ir radušās problēmas, tad pamēģiniet nokopēt saņemto saiti no epasta un iekopēt to pārluka adrešu laukā vai arī mēģiniet sākt atjuanošanas procesu no sākuma.' + successful: "Paroles atjaunošana noritēja sekmīgi priekš '%{email}'" + pick_new_password_for: 'Izveidojiet jaunu paroli priekš %{email}' reset_password: Atjaunot paroli user_mailer: reset_notification: - subject: Saite, lai atjaunotu paroli - reset_request_received_for: Paroles nomaiņas pieprasījums priekš %{username} - visit_this_url: Apmeklējiet šo adresi, lai izveidotu jaunu paroli - remain_same_if_no_action: Esošā parole netiks mainīta, ja neveiksiet turpmākās darbības + subject: 'Saite, lai atjaunotu paroli' + reset_request_received_for: 'Paroles nomaiņas pieprasījums priekš %{username}' + visit_this_url: 'Apmeklējiet šo adresi, lai izveidotu jaunu paroli' + remain_same_if_no_action: 'Esošā parole netiks mainīta, ja neveiksiet turpmākās darbības' devise: failure: - unauthenticated: Pirms turpināt, jums ir jāveic autentifikācija. - invalid: Atvainojiet, nepareizs lietotāja vārds/epasts vai parole. + unauthenticated: 'Pirms turpināt, jums ir jāveic autentifikācija.' + invalid: 'Atvainojiet, nepareizs lietotāja vārds/epasts vai parole.' sessions: signed_in: Autentifikācija noritēja veiksmīgi. roles: diff --git a/authentication/config/locales/nb.yml b/authentication/config/locales/nb.yml index aeba15d00b..eb9126d5ee 100644 --- a/authentication/config/locales/nb.yml +++ b/authentication/config/locales/nb.yml @@ -14,11 +14,11 @@ nb: plugin_access: Tilgang til komponenter role_access: Rolletilgang enable_all: merk alle - index: + actions: create_new_user: Lag ny bruker user: email_user: Send en e-post til denne brukeren - preview: (%{who}) opprettet %{created_at} + preview: '(%{who}) opprettet %{created_at}' sessions: new: hello_please_sign_in: "Hei! Vennligst logg inn." @@ -30,7 +30,7 @@ nb: fill_form: Fyll ut detaljene dine nedenfor slik at vi kan komme i gang. sign_up: Registrer deg create: - welcome: Velkommen til Refinery, %{who} + welcome: 'Velkommen til Refinery, %{who}' forgot: email_address: E-post Adresse enter_email_address: Vennligst tast inn e-post adressen for din konto. diff --git a/authentication/config/locales/nl.yml b/authentication/config/locales/nl.yml index 24d814eea1..6efaa03ce7 100644 --- a/authentication/config/locales/nl.yml +++ b/authentication/config/locales/nl.yml @@ -10,15 +10,15 @@ nl: update: cannot_remove_user_plugin_from_current_user: "U kunt de 'Gebruikers' plugin niet deactiveren voor uw huidige ingelogde account." form: - blank_password_keeps_current: Als u dit veld leeg laat, blijft het oude wachtwoord behouden. + blank_password_keeps_current: 'Als u dit veld leeg laat, blijft het oude wachtwoord behouden.' plugin_access: Toegang tot een plugin role_access: Rol toegang enable_all: maak alles beschikbaar - index: + actions: create_new_user: Maak een nieuwe gebruiker user: email_user: Email deze gebruiker - preview: (%{who}) is aangemaakt op %{created_at} + preview: '(%{who}) is aangemaakt op %{created_at}' sessions: new: hello_please_sign_in: Hallo! Log in om verder te kunnen. @@ -27,10 +27,10 @@ nl: users: setup_website_name_html: "Laten we eerst de website een naam geven. Klik hier om de naam van de website te bewerken" new: - fill_form: Vul het onderstaande formulier in, zodat u kan beginnen. + fill_form: 'Vul het onderstaande formulier in, zodat u kan beginnen.' sign_up: Registreer create: - welcome: Welkom bij Refinery, %{who} + welcome: 'Welkom bij Refinery, %{who}' forgot: email_address: E-mailadres enter_email_address: Vul het e-mailadres voor uw account. @@ -38,22 +38,22 @@ nl: blank_email: Je hebt geen e-mail adres. email_not_associated_with_account_html: "Sorry, '%{email}' is niet geassocieerd met alle rekeningen.
Weet u zeker dat u typte het juiste e-mailadres?" email_reset_sent: Een e-mail is naar u verzonden met een link om je wachtwoord te resetten. - password_encryption: Je moet je wachtwoord resetten, omdat er wijzigingen zijn gemaakt in de cryptografische methoden waarop wachtwoorden worden opgeslagen, zodat ze nog veilger bewaard worden. + password_encryption: 'Je moet je wachtwoord resetten, omdat er wijzigingen zijn gemaakt in de cryptografische methoden waarop wachtwoorden worden opgeslagen, zodat ze nog veilger bewaard worden.' reset: code_invalid: "Het spijt ons, maar dit reset code is verlopen of ongeldig. Als u problemen hebt proberen te kopiëren en plakken van de URL van uw e-mail in uw browser of het herstarten van de reset wachtwoord proces." successful: "Wachtwoord resetten succes voor %{email}" - pick_new_password_for: Kiees een nieuw wachtwoord voor %{email} + pick_new_password_for: 'Kiees een nieuw wachtwoord voor %{email}' reset_password: Reset het wachtwoord user_mailer: reset_notification: subject: Link om uw wachtwoord te resetten - reset_request_received_for: Aanvraag om het wachtwoord te resetten ontvangen voor %{username} + reset_request_received_for: 'Aanvraag om het wachtwoord te resetten ontvangen voor %{username}' visit_this_url: Bezoek dit adres om een nieuw wachtwoord in te stellen - remain_same_if_no_action: Je wachtwoord blijft hetzelfde, als je niet op dit bericht reageert + remain_same_if_no_action: 'Je wachtwoord blijft hetzelfde, als je niet op dit bericht reageert' devise: failure: unauthenticated: Je moet inloggen om verder te kunnen - invalid: Sorry, je wachtwoord, of gebruikersnaam is onjuist. + invalid: 'Sorry, je wachtwoord, of gebruikersnaam is onjuist.' sessions: signed_in: Je bent ingelogd. roles: diff --git a/authentication/config/locales/pl.yml b/authentication/config/locales/pl.yml index 9983e9b27b..a2d193a616 100644 --- a/authentication/config/locales/pl.yml +++ b/authentication/config/locales/pl.yml @@ -15,7 +15,7 @@ pl: plugin_access: Plugin dostępu role_access: Rola dostępu enable_all: aktywuj wszystkich - index: + actions: create_new_user: Dodaj nowego użytkownika user: email_user: Wyślij e-mail do tego użytkownika @@ -48,7 +48,7 @@ pl: user_mailer: reset_notification: subject: Link do resetu hasła - reset_request_received_for: Prośba o zmianę hasła dla %{username} + reset_request_received_for: 'Prośba o zmianę hasła dla %{username}' visit_this_url: Odwiedź stronę aby ustawić nowe hasło remain_same_if_no_action: Twoje hasło nie zostanie zmienione jeśli nie odwiedzisz strony activerecord: diff --git a/authentication/config/locales/pt-BR.yml b/authentication/config/locales/pt-BR.yml index 81e588d3b9..75a54082b6 100644 --- a/authentication/config/locales/pt-BR.yml +++ b/authentication/config/locales/pt-BR.yml @@ -14,7 +14,7 @@ pt-BR: plugin_access: Acesso role_access: Nível de Permissão enable_all: habilitar todos - index: + actions: create_new_user: Criar Novo Usuário user: email_user: Enviar e-mail para este usuário @@ -30,7 +30,7 @@ pt-BR: fill_form: Preencha o formulário abaixo com seus detalhes pra que você possa começar. sign_up: Cadastrar create: - welcome: Bem-vindo, %{who} + welcome: 'Bem-vindo, %{who}' forgot: email_address: Endereço de email enter_email_address: "Por favor, preencha o endereço de email da sua conta." @@ -47,12 +47,12 @@ pt-BR: user_mailer: reset_notification: subject: Link para alterar sua senha - reset_request_received_for: Solicitação para alterar a senha foi recebida por %{username} + reset_request_received_for: 'Solicitação para alterar a senha foi recebida por %{username}' visit_this_url: Visite esse endereço para escolher uma nova senha remain_same_if_no_action: Sua senha irá continuar a mesma caso não prossiga devise: failure: - unauthenticated: Para continuar, faça login. + unauthenticated: 'Para continuar, faça login.' invalid: Email ou senha inválidos. sessions: signed_in: Fez login com sucesso. diff --git a/authentication/config/locales/rs.yml b/authentication/config/locales/rs.yml index 538fc928a3..3f19646e88 100644 --- a/authentication/config/locales/rs.yml +++ b/authentication/config/locales/rs.yml @@ -14,46 +14,46 @@ rs: plugin_access: Pristup plugin-ovima role_access: Pristup ulogama enable_all: omogući sve - index: + actions: create_new_user: Dodaj novog administratora user: email_user: Pošalji email ovom administratoru - preview: (%{who}) added %{created_at} + preview: '(%{who}) added %{created_at}' sessions: new: - hello_please_sign_in: Zdravo! Molim te, uloguj se. + hello_please_sign_in: 'Zdravo! Molim te, uloguj se.' sign_in: Uloguj se forgot_password: Zaboravio sam lozinku users: - setup_website_name_html: Kao prvo, hajde da damo sajtu ime. Klikni ovde da promeniš naziv sajta + setup_website_name_html: "Kao prvo, hajde da damo sajtu ime. Klikni ovde da promeniš naziv sajta" new: - fill_form: Popuni polja dole, da bi mogli da počnemo. + fill_form: 'Popuni polja dole, da bi mogli da počnemo.' sign_up: Prijavi se create: - welcome: Dobrodošao u Refinery, %{who} + welcome: 'Dobrodošao u Refinery, %{who}' forgot: email_address: Email adresa enter_email_address: Molimo unesi email adresu za tvoj nalog. reset_password: Resetuj lozinku blank_email: Nisi uneo email adresu. - email_not_associated_with_account_html: Izvini, '%{email}' ne pripada nijednom nalogu.
Da li si siguran da si ukucao tačnu email adresu? + email_not_associated_with_account_html: "Izvini, '%{email}' ne pripada nijednom nalogu.
Da li si siguran da si ukucao tačnu email adresu?" email_reset_sent: Poslat ti je mail sa linkom za resetovanje lozinke. - password_encryption: Moraš da resetuješ lozinku, zato što je došlo do promene u metodama za enkripciju koje Refinery koristi za zaštitu podataka.Podaci će od sada biti sigurniji nego ranije. + password_encryption: "Moraš da resetuješ lozinku, zato što je došlo do promene u metodama za enkripciju koje Refinery koristi za zaštitu podataka.Podaci će od sada biti sigurniji nego ranije." reset: - code_invalid: Izvinjavamo se, ali ovaj kod za resetovanje je istekao ili nije validan. Ako imaš problema, probaj da kopiraš URL iz tvog email-a u tvoj brauzer ili ponovo pokreni postupak za reset lozinke. - successful: Lozinka uspešno resetovana za '%{email}' - pick_new_password_for: Izaberi novu lozinku za %{email} + code_invalid: 'Izvinjavamo se, ali ovaj kod za resetovanje je istekao ili nije validan. Ako imaš problema, probaj da kopiraš URL iz tvog email-a u tvoj brauzer ili ponovo pokreni postupak za reset lozinke.' + successful: "Lozinka uspešno resetovana za '%{email}'" + pick_new_password_for: 'Izaberi novu lozinku za %{email}' reset_password: Resetuj lozinku user_mailer: reset_notification: subject: Link za resetovanje lozinke - reset_request_received_for: Primljen zahtev za resetovanje lozinke za %{username} + reset_request_received_for: 'Primljen zahtev za resetovanje lozinke za %{username}' visit_this_url: Poseti ovu stranu da izabereš novu lozinku remain_same_if_no_action: Tvoja lozinka će ostati ne promenjena ako ništa ne uneseš devise: failure: unauthenticated: Moraš da se uloguješ da bi nastavio. - invalid: Izvinjavamo se, pogrešio si username ili lozinku. + invalid: 'Izvinjavamo se, pogrešio si username ili lozinku.' sessions: signed_in: Uspešno logovanje. roles: diff --git a/authentication/config/locales/ru.yml b/authentication/config/locales/ru.yml index f2b67e8563..781b3e590d 100644 --- a/authentication/config/locales/ru.yml +++ b/authentication/config/locales/ru.yml @@ -10,16 +10,16 @@ ru: update: cannot_remove_user_plugin_from_current_user: "Нельзя отключить модуль «Пользователи» у самого себя." form: - blank_password_keeps_current: Оставьте поле пустым, если не хотите изменить пароль + blank_password_keeps_current: 'Оставьте поле пустым, если не хотите изменить пароль' enable_all: включить все - index: + actions: create_new_user: Создать нового пользователя user: email_user: Написать эл. письмо этому пользователю - preview: (%{who}) создан %{created_at} + preview: '(%{who}) создан %{created_at}' sessions: new: - hello_please_sign_in: Пожалуйста, войдите. + hello_please_sign_in: 'Пожалуйста, войдите.' sign_in: Войти forgot_password: Я забыл свой пароль users: @@ -28,15 +28,15 @@ ru: fill_form: Заполните данные ниже. sign_up: Зарегистрироваться create: - welcome: Добро пожаловать в Refinery, %{who} + welcome: 'Добро пожаловать в Refinery, %{who}' forgot: email_address: Эл. почта - enter_email_address: Пожалуйста, введите адрес электронной почты вашего акаунта. + enter_email_address: 'Пожалуйста, введите адрес электронной почты вашего акаунта.' reset_password: Сбросить пароль blank_email: Вы не ввели адрес электронной почты email_not_associated_with_account_html: "%{email} не принадлежит ни одному акаунту.
Вы уверены, что ввели правильный адрес электронной почты?" email_reset_sent: Вам выслано электронное письмо с ссылкой для сброса пароля. - password_encryption: В Refinery изменились алгоритмы шифрования пароля для ещё более надёжного хранения, поэтому вам нужно заново его установить. + password_encryption: 'В Refinery изменились алгоритмы шифрования пароля для ещё более надёжного хранения, поэтому вам нужно заново его установить.' reset: code_invalid: "Код для сброса пароля истек или неверен. Попробуйте скопировать и вставить адрес из письма в адресную строку браузера или заново начать процесс восстановления." successful: "Пароль успешно изменен для %{email}" diff --git a/authentication/config/locales/sk.yml b/authentication/config/locales/sk.yml index 6a1e26d5bf..b6095b5123 100644 --- a/authentication/config/locales/sk.yml +++ b/authentication/config/locales/sk.yml @@ -14,18 +14,18 @@ sk: plugin_access: Prístup k modulom role_access: Priradiť role enable_all: povoliť všetko - index: + actions: create_new_user: Pridať nového užívateľa user: email_user: Poslať užívateľovi email - preview: (%{who}) pridaný %{created_at} + preview: '(%{who}) pridaný %{created_at}' sessions: new: hello_please_sign_in: Prosím prihláste sa. sign_in: Prihlásenie forgot_password: Zabudol som heslo users: - setup_website_name_html: Dajte vášmu webu meno. Tu môžete meno editovať. + setup_website_name_html: "Dajte vášmu webu meno. Tu môžete meno editovať." new: fill_form: Vyplňte údaje a môžeme začať. sign_up: Registrácia @@ -38,7 +38,7 @@ sk: blank_email: Musíte zadať emailovú adresu. email_not_associated_with_account_html: "Email '%{email}' nie je asociovaný z žiadnym užívateľským kontom.
Ste si istí, že ste použili správnu adresu?" email_reset_sent: Bol vám zaslaný email s odkazom na resetovanie hesla. - password_encryption: Musíte si zmeniť heslo, pretože nastala zmena v šifrovacie metóde uložených hesiel. Refinery sa stáva viac bezpečnejšie ako predtým. + password_encryption: 'Musíte si zmeniť heslo, pretože nastala zmena v šifrovacie metóde uložených hesiel. Refinery sa stáva viac bezpečnejšie ako predtým.' reset: code_invalid: "Ospravedlňujeme sa, ale kód pre resetovanie hesla je buď chybný alebo expirovaný. Skúste skopírovať adresu pre resetovanie hesle z emailu ktorý ste obdržal/a, alebo si nechajte email zaslať znova." successful: "Heslo bolo úspešne resetované pre '%{email}'" @@ -49,7 +49,7 @@ sk: subject: Odkaz pre reset hesla reset_request_received_for: "Požiadavka na vytvorenie nového hesla pre používateľské konto %{username}" visit_this_url: Navštívte túto URL pre zvolenie nového hesla. - remain_same_if_no_action: Vaše heslo zostane nezmenené, ak nevykonáte žiadnu akciu. + remain_same_if_no_action: 'Vaše heslo zostane nezmenené, ak nevykonáte žiadnu akciu.' devise: failure: unauthenticated: Pre pokračovanie sa musíte prihlásiť. diff --git a/authentication/config/locales/sl.yml b/authentication/config/locales/sl.yml index ab6757ed73..e37748ff90 100644 --- a/authentication/config/locales/sl.yml +++ b/authentication/config/locales/sl.yml @@ -13,11 +13,11 @@ sl: enable_all: omogoči vse plugin_access: Dostop do vtičnikov role_access: Dostop do vlog - index: + actions: create_new_user: Dodaj Novega Uporabnika user: email_user: Pošlji email spročilo uporabniku - preview: (%{who}) je bil ustvarjen %{created_at} + preview: '(%{who}) je bil ustvarjen %{created_at}' sessions: new: hello_please_sign_in: "Pozdravljeni! Prosimo prijavite se." @@ -29,7 +29,7 @@ sl: fill_form: Izpolnite spodnji obrazec z vašimi podatki. sign_up: Registriraj se create: - welcome: Pzdravljeni v Refinery, %{who} + welcome: 'Pzdravljeni v Refinery, %{who}' forgot: email_address: Email Naslov enter_email_address: Prosimo vnesite email naslov za vaš račun. @@ -37,16 +37,16 @@ sl: blank_email: Niste vnesli email naslova. email_not_associated_with_account_html: "Oprostite, '%{email}' ni povezan z nobenim računom.
Ali ste prepričani, a ste vnesli pravilen naslov?" email_reset_sent: Poslali smo vam email sporočilo s povezavo za ponastavitev gesla. - password_encryption: Morate ponastaviti geslo, ker je prišlo do sprememb v metodah šifriranja gesla, ki jih uporablja Refinery tako, da so gesla shranjenja še z močnejšo enkripcijo kot prej. + password_encryption: 'Morate ponastaviti geslo, ker je prišlo do sprememb v metodah šifriranja gesla, ki jih uporablja Refinery tako, da so gesla shranjenja še z močnejšo enkripcijo kot prej.' reset: code_invalid: "Se opravičujemo, vendar je ponastavitvena koda že potekla ali pa je neveljvna. V kolikor imate težave poizkusite kopirati in prilepiti URL naslov iz email sporočila v vaš brskalnik ali ponovite proces ponastavitve gesla." successful: "Ponastavitev gesla za %{email} je bila uspešna." - pick_new_password_for: Izberite novo geslo za %{email} + pick_new_password_for: 'Izberite novo geslo za %{email}' reset_password: Ponastavi geslo user_mailer: reset_notification: subject: Povezava za ponastavitev vašega gesla - reset_request_received_for: Zahteva za ponastavitev gesla za %{username} + reset_request_received_for: 'Zahteva za ponastavitev gesla za %{username}' visit_this_url: Za izbiro novega gesla obiščite to povezavo remain_same_if_no_action: V kolikor ne boste izvedli nobene akcije bo vaše ostalo nespremenjeno devise: diff --git a/authentication/config/locales/sv.yml b/authentication/config/locales/sv.yml index 3811a115f9..65d07cba13 100644 --- a/authentication/config/locales/sv.yml +++ b/authentication/config/locales/sv.yml @@ -14,35 +14,35 @@ sv: plugin_access: Åtkomst för plugin role_access: Åtkomst för roller enable_all: markera alla - index: + actions: create_new_user: Lägg till ny användare user: email_user: Skicka e-post till denna användare - preview: (%{who}) la till %{created_at} + preview: '(%{who}) la till %{created_at}' sessions: new: hello_please_sign_in: Hej! Vänligen logga in. sign_in: Logga in forgot_password: Jag har glömt mitt lösenord users: - setup_website_name_html: Låt oss först ge webbplatsen ett namn. Klicka här för att redigera din webbplats namn. + setup_website_name_html: "Låt oss först ge webbplatsen ett namn. Klicka här för att redigera din webbplats namn." new: fill_form: Fyll i detaljerna nedan så vi kan sätta igång. sign_up: Registrera create: - welcome: Välkommen till Refinery, %{who} + welcome: 'Välkommen till Refinery, %{who}' forgot: email_address: E-postadress enter_email_address: Var god fyll i e-postadress för ditt konto. reset_password: Återställ lösenord blank_email: Du fyllde inte i någon e-postadress. - email_not_associated_with_account_html: Tyvärr, '%{email}' finns inte med i systemet.
Är du säker på att du fyllde i rätt e-postadress? + email_not_associated_with_account_html: "Tyvärr, '%{email}' finns inte med i systemet.
Är du säker på att du fyllde i rätt e-postadress?" email_reset_sent: Ett e-post har skickats till dig med instruktioner om hur du återställer ditt lösenord. password_encryption: Du måste sätt ett nytt lösenord på grund av att krypteringmetoden som Refinery använder sig av har bytts ut så att lösenorden sparas med starkare kryptering än tidigare. reset: - code_invalid: Tyvärr, men din återställningskod har är ogiltlig eller har utgått. Om du har problem, pröva att kopiera den URL som du mottagit på din e-post, klistra sedan in i webbläsaren. Eller så börjar du om från början. - successful: Återställde lösenordet för '%{email}' - pick_new_password_for: Välj ett nytt lösenord för %{email} + code_invalid: "Tyvärr, men din återställningskod har är ogiltlig eller har utgått. Om du har problem, pröva att kopiera den URL som du mottagit på din e-post, klistra sedan in i webbläsaren. Eller så börjar du om från början." + successful: "Återställde lösenordet för '%{email}'" + pick_new_password_for: 'Välj ett nytt lösenord för %{email}' reset_password: Återställ lösenord user_mailer: reset_notification: diff --git a/authentication/config/locales/vi.yml b/authentication/config/locales/vi.yml index 0e93febb10..a237498510 100644 --- a/authentication/config/locales/vi.yml +++ b/authentication/config/locales/vi.yml @@ -14,23 +14,23 @@ vi: plugin_access: Truy cập plugin role_access: Truy cập phân quyền enable_all: kích hoạt tất cả - index: + actions: create_new_user: Thêm người dùng mới user: email_user: Gửi thư điện tử tới người dùng này - preview: (%{who}) được thêm tại %{created_at} + preview: '(%{who}) được thêm tại %{created_at}' sessions: new: hello_please_sign_in: Xin vui lòng đăng nhập. sign_in: Đăng nhập forgot_password: Quên mật khẩu users: - setup_website_name_html: Xin vui lòng đặt tên cho trang web. Nhấn vào đây để chỉnh sửa tên trang web cuả bạn. + setup_website_name_html: "Xin vui lòng đặt tên cho trang web. Nhấn vào đây để chỉnh sửa tên trang web cuả bạn." new: fill_form: Điền thông tin chi tiết cuả bạn để có thể bắt đầu. sign_up: Đăng ký create: - welcome: Chào mừng tới hệ quản trị nội dung, %{who} + welcome: 'Chào mừng tới hệ quản trị nội dung, %{who}' forgot: email_address: Địa chỉ thư điện tử enter_email_address: Xin vui lòng nhận địa chỉ thư điện tử cho tài khoản cuả bạn. diff --git a/authentication/config/locales/zh-CN.yml b/authentication/config/locales/zh-CN.yml index ce893f1f33..0868e9c2ae 100755 --- a/authentication/config/locales/zh-CN.yml +++ b/authentication/config/locales/zh-CN.yml @@ -14,23 +14,23 @@ zh-CN: plugin_access: 插件 role_access: 角色 enable_all: 选中所有 - index: + actions: create_new_user: 添加新用户 user: email_user: 发邮件到此用户 - preview: (%{who}) 添加于 %{created_at} + preview: '(%{who}) 添加于 %{created_at}' sessions: new: hello_please_sign_in: 您好! 请登录. sign_in: 登录 forgot_password: 找回密码 users: - setup_website_name_html: 首先让我们给这个站点一个名字. 点击这里 去编辑您的站点名. + setup_website_name_html: "首先让我们给这个站点一个名字. 点击这里 去编辑您的站点名." new: fill_form: 在下面填写您的详细信息以做好开始的准备. sign_up: 注册 create: - welcome: 欢迎使用 Refinery, %{who} + welcome: '欢迎使用 Refinery, %{who}' forgot: email_address: 邮件地址 enter_email_address: 请为您的帐号输入邮件地址. @@ -38,7 +38,7 @@ zh-CN: blank_email: 您没有输入邮件地址. email_not_associated_with_account_html: "对不起, '%{email}' 并没有关联到任何的帐号.
您确认输入了正确的邮件地址?" email_reset_sent: 一封包含有重置密码连接的邮件已经发送到您的邮箱. - password_encryption: 由于密码加密算法改变了以保障Refinery用户帐号的安全, 您需要重置您的密码. + password_encryption: '由于密码加密算法改变了以保障Refinery用户帐号的安全, 您需要重置您的密码. ' reset: code_invalid: "我们很抱歉, 但这个重置号已经过期或者不可用, 如果您遇到问题的话请试着从您的邮件中复制粘贴里面的URL到您的浏览器中以便重新进入密码修改流程." successful: "'%{email}' 密码重置成功" @@ -49,7 +49,7 @@ zh-CN: subject: 密码重置的连接 reset_request_received_for: "Request to reset password received for %{username}" visit_this_url: 浏览此URL去选择一个新密码 - remain_same_if_no_action: 如果你不进行操作, 你的密码将维持不变 + remain_same_if_no_action: '如果你不进行操作, 你的密码将维持不变' devise: failure: unauthenticated: 您须要先登录以便继续. diff --git a/authentication/config/locales/zh-TW.yml b/authentication/config/locales/zh-TW.yml index e87eca9458..7001598c86 100644 --- a/authentication/config/locales/zh-TW.yml +++ b/authentication/config/locales/zh-TW.yml @@ -14,46 +14,46 @@ zh-TW: plugin_access: 插件存取權限 role_access: 角色存取權限 enable_all: 全部開啟 - index: + actions: create_new_user: 新增使用者 user: email_user: 發送電子郵件給這個使用者 - preview: (%{who}) 加入 %{created_at} + preview: '(%{who}) 加入 %{created_at}' sessions: new: hello_please_sign_in: 您好! 請登入 sign_in: 登入 forgot_password: 我忘記了密碼 users: - setup_website_name_html: 先給這個網站一個名字吧. 到這裡來編輯您的網站名稱 + setup_website_name_html: "先給這個網站一個名字吧. 到這裡來編輯您的網站名稱" new: fill_form: 在底下填入您的資料好繼續之後的流程. sign_up: 登入 create: - welcome: 歡迎使用 Refinery, %{who} + welcome: '歡迎使用 Refinery, %{who}' forgot: email_address: 電子郵件地址 enter_email_address: 請為您的帳號輸入電子郵件地址 reset_password: 重設密碼 blank_email: 您沒有輸入電子郵件地址. - email_not_associated_with_account_html: 抱歉, '%{email}' 不是任何帳號的電子郵件地址.
您確定輸入了正確的電子郵件地址嗎? + email_not_associated_with_account_html: "抱歉, '%{email}' 不是任何帳號的電子郵件地址.
您確定輸入了正確的電子郵件地址嗎?" email_reset_sent: 一封附上可重設您密碼的連結的電子郵件已經寄給您 - password_encryption: 因為 Refinery 有些密碼加密演算法的改變, 所以您必須重設您的密碼, 如此您的密碼會比以往更安全地儲存著. + password_encryption: "因為 Refinery 有些密碼加密演算法的改變, 所以您必須重設您的密碼, 如此您的密碼會比以往更安全地儲存著." reset: - code_invalid: 很抱歉, 但這個重設碼過期或是失效了. 如果您遇到問題, 試著複製貼上您電子郵件上的網址到您的瀏覽器或是重新啟動重設密碼的流程. - successful: 成功地重設 '%{email}' 的密碼 - pick_new_password_for: 為 %{email} 挑選新的密碼 + code_invalid: "很抱歉, 但這個重設碼過期或是失效了. 如果您遇到問題, 試著複製貼上您電子郵件上的網址到您的瀏覽器或是重新啟動重設密碼的流程." + successful: "成功地重設 '%{email}' 的密碼" + pick_new_password_for: "為 %{email} 挑選新的密碼" reset_password: 重設密碼 user_mailer: reset_notification: subject: 重設您的密碼的連結 - reset_request_received_for: 請求重設 %{username} 的密碼 + reset_request_received_for: '請求重設 %{username} 的密碼' visit_this_url: 到這個網址來設定新的密碼 - remain_same_if_no_action: 如果您不做任何動作, 您的密碼將會維持不變 + remain_same_if_no_action: '如果您不做任何動作, 您的密碼將會維持不變' devise: failure: unauthenticated: 您必須登入之後才能繼續. - invalid: 抱歉, 您輸入的帳號或是密碼不正確. + invalid: '抱歉, 您輸入的帳號或是密碼不正確.' sessions: signed_in: 登入成功. roles: diff --git a/dashboard/app/views/admin/dashboard/_actions.html.erb b/dashboard/app/views/admin/dashboard/_actions.html.erb new file mode 100644 index 0000000000..3f7ea67d87 --- /dev/null +++ b/dashboard/app/views/admin/dashboard/_actions.html.erb @@ -0,0 +1,57 @@ + + +<% if defined?(::Refinery::I18n) and ::Refinery::I18n.enabled? %> + <% locales = ::Refinery::I18n.locales.clone %> + <% current_locale = ::I18n.locale %> + <% current_locale_title = locales.delete(current_locale) %> + + +<% end %> \ No newline at end of file diff --git a/dashboard/app/views/admin/dashboard/_records.html.erb b/dashboard/app/views/admin/dashboard/_records.html.erb new file mode 100644 index 0000000000..40b3d5ffe8 --- /dev/null +++ b/dashboard/app/views/admin/dashboard/_records.html.erb @@ -0,0 +1,2 @@ +<%= render :partial => "recent_activity" if @recent_activity.present? %> +<%= render :partial => "recent_inquiries" if @recent_inquiries.present? %> \ No newline at end of file diff --git a/dashboard/app/views/admin/dashboard/index.html.erb b/dashboard/app/views/admin/dashboard/index.html.erb index 038f0ca535..fa19df772e 100644 --- a/dashboard/app/views/admin/dashboard/index.html.erb +++ b/dashboard/app/views/admin/dashboard/index.html.erb @@ -1,68 +1,11 @@
-
'> - <%= render :partial => "recent_activity" if @recent_activity.present? %> - <%= render :partial => "recent_inquiries" if @recent_inquiries.present? %> -
-
+
'> + <%= render :partial => 'records' %> +
+
+ <%= render :partial => 'actions' %> +
<% if request.env["HTTP_USER_AGENT"] =~ /MSIE/ and RefinerySetting.find_or_set(:show_internet_explorer_upgrade_message, true, :scoping => 'refinery') %> diff --git a/dashboard/config/locales/cs.yml b/dashboard/config/locales/cs.yml index af43068653..cfeecf59a0 100644 --- a/dashboard/config/locales/cs.yml +++ b/dashboard/config/locales/cs.yml @@ -7,6 +7,7 @@ cs: dashboard: index: quick_tasks: Rychlé příkazy + actions: add_a_new_page: Přidat novou stránku update_a_page: Upravit stránku upload_a_image: Nahrát obrázek diff --git a/dashboard/config/locales/da.yml b/dashboard/config/locales/da.yml index 1c7232baf6..85dee4ff84 100644 --- a/dashboard/config/locales/da.yml +++ b/dashboard/config/locales/da.yml @@ -7,6 +7,7 @@ da: dashboard: index: quick_tasks: Handlinger + actions: add_a_new_page: Tilføj en ny side update_a_page: Redigér en side upload_a_image: Upload et billede diff --git a/dashboard/config/locales/de.yml b/dashboard/config/locales/de.yml index 214b4f0c70..5695956ec9 100644 --- a/dashboard/config/locales/de.yml +++ b/dashboard/config/locales/de.yml @@ -7,6 +7,7 @@ de: dashboard: index: quick_tasks: Allgemeine Aufgaben + actions: add_a_new_page: Neue Seite erstellen update_a_page: Eine Seite aktualisieren upload_a_image: Ein Bild hochladen diff --git a/dashboard/config/locales/el.yml b/dashboard/config/locales/el.yml index a3286f2c15..42cbeb5c40 100644 --- a/dashboard/config/locales/el.yml +++ b/dashboard/config/locales/el.yml @@ -7,6 +7,7 @@ el: dashboard: index: quick_tasks: Γρήγορες ενέργειες + actions: add_a_new_page: Προσθήκη σελίδας update_a_page: Ενημέρωση σελίδας upload_a_image: Μεταφόρτωση εικόνας diff --git a/dashboard/config/locales/en.yml b/dashboard/config/locales/en.yml index c45d768cca..f3c526ca8f 100644 --- a/dashboard/config/locales/en.yml +++ b/dashboard/config/locales/en.yml @@ -7,6 +7,7 @@ en: dashboard: index: quick_tasks: Quick tasks + actions: add_a_new_page: Add a new page update_a_page: Update a page upload_a_image: Upload an image diff --git a/dashboard/config/locales/es.yml b/dashboard/config/locales/es.yml index 8e0769d288..7f3e56223a 100644 --- a/dashboard/config/locales/es.yml +++ b/dashboard/config/locales/es.yml @@ -7,6 +7,7 @@ es: dashboard: index: quick_tasks: Tareas comunes + actions: add_a_new_page: Añadir nueva página update_a_page: Actualizar una página upload_a_image: Subir una imagen diff --git a/dashboard/config/locales/fr.yml b/dashboard/config/locales/fr.yml index 46aba59ef0..ea68650a1e 100644 --- a/dashboard/config/locales/fr.yml +++ b/dashboard/config/locales/fr.yml @@ -7,6 +7,7 @@ fr: dashboard: index: quick_tasks: Tâches courantes + actions: add_a_new_page: Ajouter une page update_a_page: Mettre à jour une page upload_a_image: Ajouter une image diff --git a/dashboard/config/locales/it.yml b/dashboard/config/locales/it.yml index 65004525a2..7f56dbb25a 100644 --- a/dashboard/config/locales/it.yml +++ b/dashboard/config/locales/it.yml @@ -6,6 +6,7 @@ it: dashboard: index: quick_tasks: Accesso rapido + actions: add_a_new_page: Crea una nuova pagina update_a_page: Modifica una pagina upload_a_image: "Carica un'immagine" diff --git a/dashboard/config/locales/lolcat.yml b/dashboard/config/locales/lolcat.yml index 294042fbdc..2a2a428e05 100644 --- a/dashboard/config/locales/lolcat.yml +++ b/dashboard/config/locales/lolcat.yml @@ -7,6 +7,7 @@ lolcat: dashboard: index: quick_tasks: QUICK TASKZ + actions: add_a_new_page: ADD NEW PAEG update_a_page: UPDATE PAEG upload_a_image: UPLOAD AN IMAGE diff --git a/dashboard/config/locales/lt.yml b/dashboard/config/locales/lt.yml index 8ee65b4880..44da99abae 100644 --- a/dashboard/config/locales/lt.yml +++ b/dashboard/config/locales/lt.yml @@ -7,6 +7,7 @@ lt: dashboard: index: quick_tasks: Greiti veiksmai + actions: add_a_new_page: Pridėti naują puslapį update_a_page: Atnaujinti puslapį upload_a_image: Įkelti paveikslėlį diff --git a/dashboard/config/locales/lv.yml b/dashboard/config/locales/lv.yml index d3f9db1398..b6609f2c0d 100644 --- a/dashboard/config/locales/lv.yml +++ b/dashboard/config/locales/lv.yml @@ -7,6 +7,7 @@ lv: dashboard: index: quick_tasks: Ātrie uzdevumi + actions: add_a_new_page: Pievienot jaunu lapu update_a_page: Atjaunināt lapu upload_a_image: Augšupielādēt bildi diff --git a/dashboard/config/locales/nb.yml b/dashboard/config/locales/nb.yml index 3804137f26..2cb3cc7f98 100644 --- a/dashboard/config/locales/nb.yml +++ b/dashboard/config/locales/nb.yml @@ -7,6 +7,7 @@ nb: dashboard: index: quick_tasks: Vanlige oppgaver + actions: add_a_new_page: Legg til en ny side update_a_page: Oppdater en side upload_a_image: Last opp et bilde diff --git a/dashboard/config/locales/nl.yml b/dashboard/config/locales/nl.yml index f7315ff9e9..433025fb25 100644 --- a/dashboard/config/locales/nl.yml +++ b/dashboard/config/locales/nl.yml @@ -7,6 +7,7 @@ nl: dashboard: index: quick_tasks: Algemene taken + actions: add_a_new_page: Voeg een nieuwe pagina toe update_a_page: Bewerk een pagina upload_a_image: Upload een afbeelding diff --git a/dashboard/config/locales/pl.yml b/dashboard/config/locales/pl.yml index 45cbc08d9b..b6bddc108d 100644 --- a/dashboard/config/locales/pl.yml +++ b/dashboard/config/locales/pl.yml @@ -7,6 +7,7 @@ pl: dashboard: index: quick_tasks: Szybkie zadania + actions: add_a_new_page: Dodaj nową stronę update_a_page: Aktualizuj stronę upload_a_image: Wgraj obrazek diff --git a/dashboard/config/locales/pt-BR.yml b/dashboard/config/locales/pt-BR.yml index f81ed785dc..e43b0fd474 100644 --- a/dashboard/config/locales/pt-BR.yml +++ b/dashboard/config/locales/pt-BR.yml @@ -7,6 +7,7 @@ pt-BR: dashboard: index: quick_tasks: Tarefas comuns + actions: add_a_new_page: Adicionar uma nova página update_a_page: Atualizar uma página upload_a_image: Enviar uma imagem diff --git a/dashboard/config/locales/rs.yml b/dashboard/config/locales/rs.yml index 4cc4942abd..25af17e577 100644 --- a/dashboard/config/locales/rs.yml +++ b/dashboard/config/locales/rs.yml @@ -7,6 +7,7 @@ rs: dashboard: index: quick_tasks: Brzi zadaci + actions: add_a_new_page: Dodaj novu stranu update_a_page: Izmeni stranu upload_a_image: Upload-uj sliku diff --git a/dashboard/config/locales/ru.yml b/dashboard/config/locales/ru.yml index 0be510dc42..33b3083414 100644 --- a/dashboard/config/locales/ru.yml +++ b/dashboard/config/locales/ru.yml @@ -7,6 +7,7 @@ ru: dashboard: index: quick_tasks: Быстрые задачи + actions: add_a_new_page: Добавить новую страницу update_a_page: Изменить страницу upload_a_image: Загрузить изображение diff --git a/dashboard/config/locales/sk.yml b/dashboard/config/locales/sk.yml index 7f1cd06aa5..b2882ace02 100644 --- a/dashboard/config/locales/sk.yml +++ b/dashboard/config/locales/sk.yml @@ -7,6 +7,7 @@ sk: dashboard: index: quick_tasks: Rýchle príkazy + actions: add_a_new_page: Pridať novú stránku update_a_page: Upraviť stránku upload_a_image: Nahrať obrázok diff --git a/dashboard/config/locales/sl.yml b/dashboard/config/locales/sl.yml index f4df208b72..9432b1339e 100644 --- a/dashboard/config/locales/sl.yml +++ b/dashboard/config/locales/sl.yml @@ -7,6 +7,7 @@ sl: dashboard: index: quick_tasks: Pogosta opravila + actions: add_a_new_page: Dodaj novo stran update_a_page: Uredi stran upload_a_image: Naloži sliko diff --git a/dashboard/config/locales/sv.yml b/dashboard/config/locales/sv.yml index b423da1e1f..5975e3a1f0 100644 --- a/dashboard/config/locales/sv.yml +++ b/dashboard/config/locales/sv.yml @@ -7,6 +7,7 @@ sv: dashboard: index: quick_tasks: Genvägar + actions: add_a_new_page: Lägg till en ny sida update_a_page: Redigera en sida upload_a_image: Ladda upp en bild diff --git a/dashboard/config/locales/vi.yml b/dashboard/config/locales/vi.yml index 297e296537..2ed7886d2c 100644 --- a/dashboard/config/locales/vi.yml +++ b/dashboard/config/locales/vi.yml @@ -7,6 +7,7 @@ vi: dashboard: index: quick_tasks: Truy cập nhanh các tác vụ + actions: add_a_new_page: Thêm một trang mới update_a_page: Cập nhật một trang upload_a_image: Upload một tệp hình ảnh diff --git a/dashboard/config/locales/zh-CN.yml b/dashboard/config/locales/zh-CN.yml index 11b2abcd68..bf3dae6331 100755 --- a/dashboard/config/locales/zh-CN.yml +++ b/dashboard/config/locales/zh-CN.yml @@ -7,6 +7,7 @@ zh-CN: dashboard: index: quick_tasks: 快速任务 + actions: add_a_new_page: 添加页面 update_a_page: 更新页面 upload_a_image: 上传图片 diff --git a/dashboard/config/locales/zh-TW.yml b/dashboard/config/locales/zh-TW.yml index dd2b7c3dcd..1c9646b83c 100644 --- a/dashboard/config/locales/zh-TW.yml +++ b/dashboard/config/locales/zh-TW.yml @@ -7,6 +7,7 @@ zh-TW: dashboard: index: quick_tasks: 快速啟動 + actions: add_a_new_page: 新增頁面 update_a_page: 更新頁面 upload_a_image: 上傳圖片 diff --git a/images/app/views/admin/images/_actions.html.erb b/images/app/views/admin/images/_actions.html.erb new file mode 100644 index 0000000000..87e71a1a93 --- /dev/null +++ b/images/app/views/admin/images/_actions.html.erb @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/images/app/views/admin/images/_records.html.erb b/images/app/views/admin/images/_records.html.erb new file mode 100644 index 0000000000..a5839cb7d3 --- /dev/null +++ b/images/app/views/admin/images/_records.html.erb @@ -0,0 +1,18 @@ +<% if searching? %> +

<%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %>

+<% end %> +<% if @images.any? %> +
+ <%= render :partial => 'images' %> +
+<% else %> +

+ <% unless searching? %> + + <%= t('.no_images_yet') %> + + <% else %> + <%= t('no_results', :scope => 'shared.admin.search') %> + <% end %> +

+<% end %> \ No newline at end of file diff --git a/images/app/views/admin/images/index.html.erb b/images/app/views/admin/images/index.html.erb index 2467aa9bf8..51707415a9 100644 --- a/images/app/views/admin/images/index.html.erb +++ b/images/app/views/admin/images/index.html.erb @@ -1,38 +1,6 @@ -
- <% if searching? %> -

<%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %>

- <% end %> - <% if @images.any? %> -
- <%= render :partial => 'images' %> -
- <% else %> -

- <% unless searching? %> - - <%= t('.no_images_yet') %> - - <% else %> - <%= t('no_results', :scope => 'shared.admin.search') %> - <% end %> -

- <% end %> -
-
- -
+
+ <%= render :partial => 'records' %> +
+
+ <%= render :partial => 'actions' %> +
diff --git a/images/app/views/admin/images/insert.html.erb b/images/app/views/admin/images/insert.html.erb index 56cf168414..f7dfcf5954 100644 --- a/images/app/views/admin/images/insert.html.erb +++ b/images/app/views/admin/images/insert.html.erb @@ -24,7 +24,7 @@ <% end %> <% else %> - <% flash.now[:error] = t('no_images_yet', :scope => 'admin.images.index').split('.').first.html_safe + "." %> + <% flash.now[:error] = t('no_images_yet', :scope => 'admin.images.records').split('.').first.html_safe + "." %> <%= render :partial => "/shared/admin/form_actions", :locals => { :f => nil, diff --git a/images/config/locales/cs.yml b/images/config/locales/cs.yml index d40c478408..849c2f7ca0 100644 --- a/images/config/locales/cs.yml +++ b/images/config/locales/cs.yml @@ -14,9 +14,11 @@ cs: replace_image: " nahradit jej tímto..." current_image: Vybraný obrázek maximum_image_size: Maximální velikost obrázku je %{megabytes} MB. - index: + actions: create_new_image: Přidat nový obrázek + records: no_images_yet: Zatím nebyl nahraný žádný obrázek. + index: view: switch_to: "Přepnout pohled na: %{view_name}" list: seznam diff --git a/images/config/locales/da.yml b/images/config/locales/da.yml index aa105ddf4b..f4937fc052 100644 --- a/images/config/locales/da.yml +++ b/images/config/locales/da.yml @@ -14,9 +14,11 @@ da: replace_image: " erstat med dette..." current_image: Nuværende billede maximum_image_size: Billedet må maksimalt fylde %{megabytes} megabytes. - index: + actions: create_new_image: Tilføj et nyt billede + records: no_images_yet: Der er ingen billeder endnu. Klik "Tilføj et nyt billede" for at oprette det første. + index: view: switch_to: Skift til %{view_name}visning list: liste diff --git a/images/config/locales/de.yml b/images/config/locales/de.yml index 2c7878df03..4522dbd301 100644 --- a/images/config/locales/de.yml +++ b/images/config/locales/de.yml @@ -14,9 +14,11 @@ de: replace_image: " mit diesem ersetzen..." current_image: Aktuelles Bild maximum_image_size: Die maximale Größe eines Bildes beträgt %{megabytes} Megabytes. - index: + actions: create_new_image: Neues Bild anlegen + records: no_images_yet: Es sind noch keine Bilder vorhanden. Klicken Sie auf "Neues Bild anlegen", um Ihr estes Bild hinzuzufügen. + index: view: switch_to: Zur %{view_name}-Ansicht wechseln list: Listen diff --git a/images/config/locales/el.yml b/images/config/locales/el.yml index 3825730725..c991f46244 100644 --- a/images/config/locales/el.yml +++ b/images/config/locales/el.yml @@ -14,9 +14,11 @@ el: replace_image: " αλλαγή με αυτήν..." current_image: Τρέχουσα εικόνα maximum_image_size: Το μέγιστο μέγεθος εικόνας είναι %{megabytes} megabytes. - index: + actions: create_new_image: Προσθήκη νέας εικόνας + records: no_images_yet: Δεν υπάρχουν εικόνες. Κάντε κλικ στο "Προσθήκη εικόνας" για να προσθέτε την πρώτη εικόνα. + index: view: switch_to: Αλλαγή σε %{view_name} view list: λίστα diff --git a/images/config/locales/en.yml b/images/config/locales/en.yml index ec277ce57d..337d5d24ed 100644 --- a/images/config/locales/en.yml +++ b/images/config/locales/en.yml @@ -14,9 +14,11 @@ en: replace_image: " replace it with this one..." current_image: Current Image maximum_image_size: The maximum image size is %{megabytes} megabytes. - index: + actions: create_new_image: Add new image + records: no_images_yet: There are no images yet. Click "Add new image" to add your first image. + index: view: switch_to: Switch to %{view_name} view list: list diff --git a/images/config/locales/es.yml b/images/config/locales/es.yml index 0681bda3be..7874b76f44 100644 --- a/images/config/locales/es.yml +++ b/images/config/locales/es.yml @@ -15,9 +15,11 @@ es: replace_image: " reemplazarla con esta otra..." current_image: Imagen actual maximum_image_size: El peso máximo para una imagen son %{megabytes} megabytes. - index: + actions: create_new_image: Crear nueva imagen + records: no_images_yet: Aún no hay imágenes. Haz click en "Crear nueva imagen" para añadir la primera. + index: view: switch_to: Cambiar a vista %{view_name} list: lista diff --git a/images/config/locales/fr.yml b/images/config/locales/fr.yml index c9e8988d05..dba0410402 100644 --- a/images/config/locales/fr.yml +++ b/images/config/locales/fr.yml @@ -14,9 +14,11 @@ fr: replace_image: " la remplacer par celle-ci..." current_image: Image actuelle maximum_image_size: "La taille de l'image ne doit pas excéder %{megabytes} megaoctets." - index: + actions: create_new_image: Ajouter une image + records: no_images_yet: "Il n'y a pas encore d'image. Cliquer sur 'Ajouter une image' pour en ajouter une." + index: view: switch_to: Afficher sous forme de %{view_name} list: liste diff --git a/images/config/locales/it.yml b/images/config/locales/it.yml index b88211bceb..11e92d0a63 100644 --- a/images/config/locales/it.yml +++ b/images/config/locales/it.yml @@ -14,9 +14,11 @@ it: replace_image: Sostituirla con questa... current_image: Immagine corrente maximum_image_size: "La dimensione massima per l'immagine è %{megabytes} megabytes." - index: + actions: create_new_image: Carica una nuova immagine + records: no_images_yet: "Nessuna immagine presente. Fare clic su \"Carica una nuova immagine\" per aggiungere un'immagine." + index: view: switch_to: Passa alla modalità di visualizzazione "%{view_name}" list: Lista diff --git a/images/config/locales/lolcat.yml b/images/config/locales/lolcat.yml index 17c08aebea..1bcf8bcff7 100644 --- a/images/config/locales/lolcat.yml +++ b/images/config/locales/lolcat.yml @@ -14,9 +14,11 @@ lolcat: replace_image: " REPLACE IT WIF DIS WAN..." current_image: CURRENT IMAGE maximum_image_size: TEH MAXIMUM IMAGE SIZE IZ %{megabytes} MEGABYTEZ. - index: + actions: create_new_image: ADD NEW IMAGE + records: no_images_yet: THAR R NO IMAGEZ YET. CLICK "ADD NEW IMAGE" 2 ADD UR FURST IMAGE. + index: view: switch_to: SWITCH 2 %{view_name} VIEW list: LIST diff --git a/images/config/locales/lt.yml b/images/config/locales/lt.yml index 6a68d630bc..3cd12a00a0 100644 --- a/images/config/locales/lt.yml +++ b/images/config/locales/lt.yml @@ -14,9 +14,11 @@ lt: replace_image: " pakeisti jį šiuo..." current_image: Pasirinktas paveikslėlis maximum_image_size: Maksimalus paveikslėlio dydis yra %{megabytes} megabaitų. - index: + actions: create_new_image: Pridėti naują paveikslėlį + records: no_images_yet: Dar nėra paveikslėlių. Paspauskite "Pridėti naują paveikslėlį" norėdami sukurti jūsų pirmą paveikslėlį. + index: view: switch_to: Persijungti į %{view_name} vaizdą list: sąrašo diff --git a/images/config/locales/lv.yml b/images/config/locales/lv.yml index 0ef947a99a..462f6dac0f 100644 --- a/images/config/locales/lv.yml +++ b/images/config/locales/lv.yml @@ -14,9 +14,11 @@ lv: replace_image: " aizstāt to ar šo..." current_image: Pašreizējā Bilde maximum_image_size: Maksimāli pieļaujamais bildes izmērs ir %{megabytes} megabaiti. - index: + actions: create_new_image: Augšupielādēt bildi + records: no_images_yet: Vēl nav nevienas bildes. Spied "Augšupielādēt bildi", lai ielādētu bildi. + index: view: switch_to: Pārslēgt uz %{view_name} skatu list: saraksta diff --git a/images/config/locales/nb.yml b/images/config/locales/nb.yml index 1b39668b4f..f32dd171d8 100644 --- a/images/config/locales/nb.yml +++ b/images/config/locales/nb.yml @@ -14,9 +14,11 @@ nb: replace_image: Erstatt det med dette ... current_image: Gjeldende bilde maximum_image_size: "Den største tillatte størrelsen på et bilde er %{megabytes} MB." - index: + actions: create_new_image: Lag et nytt bilde + records: no_images_yet: Det er ingen bilder her enda. Trykk på "Lag et nytt bilde" for å legge til ditt første bilde. + index: view: switch_to: "Endre til %{view_name} visning" list: liste diff --git a/images/config/locales/nl.yml b/images/config/locales/nl.yml index f426cd5ef6..cf75009840 100644 --- a/images/config/locales/nl.yml +++ b/images/config/locales/nl.yml @@ -13,9 +13,11 @@ nl: replace_image: Vervang de afbeelding door deze current_image: Huidige afbeelding maximum_image_size: "The maximum image size is %{megabytes} megabytes." - index: + actions: create_new_image: Upload een nieuwe afbeelding + records: no_images_yet: Er zijn nog geen afbeeldingen. Klik op "Upload een nieuwe afbeelding" om uw eerste afbleelding toe te voegen. + index: view: switch_to: Bekijk de %{view_name} versie list: lijst diff --git a/images/config/locales/pl.yml b/images/config/locales/pl.yml index aa39e0ad9e..68d96d5c09 100644 --- a/images/config/locales/pl.yml +++ b/images/config/locales/pl.yml @@ -15,9 +15,11 @@ pl: replace_image: " zastąp go tym..." current_image: Obecny obraz maximum_image_size: Maksymalny rozmiar obrazu to %{megabytes} megabajtów. - index: + actions: create_new_image: Dodaj nowy obraz + records: no_images_yet: Nie ma jeszcze żadnych obrazów. Kliknij "Dodaj nowy obraz" aby dodać pierwszy. + index: view: switch_to: Przełącz do widoku %{view_name} list: lista diff --git a/images/config/locales/pt-BR.yml b/images/config/locales/pt-BR.yml index d44321af28..970ffd2b73 100644 --- a/images/config/locales/pt-BR.yml +++ b/images/config/locales/pt-BR.yml @@ -15,9 +15,11 @@ pt-BR: replace_image: " substituir por esta..." current_image: Imagem atual maximum_image_size: "O tamanho máximo permitido é de %{megabytes} megabytes." - index: + actions: create_new_image: Criar Nova Imagem + records: no_images_yet: Ainda não existem imagens. Clique em "Criar Nova Imagem" para adicionar sua primeira imagem. + index: view: switch_to: Trocar para visão em %{view_name} list: lista diff --git a/images/config/locales/rs.yml b/images/config/locales/rs.yml index 8b34657656..affbaa0b19 100644 --- a/images/config/locales/rs.yml +++ b/images/config/locales/rs.yml @@ -14,9 +14,11 @@ rs: replace_image: " zameni sa ovom..." current_image: Trenutna slika maximum_image_size: Maksimalna veličina slike je %{megabytes} megabajta. - index: + actions: create_new_image: Dodaj novu sliku + records: no_images_yet: Ne postoje slike. Klikni "Dodaj novu sliku" da dodaš. + index: view: switch_to: Prebaci na %{view_name} list: listu diff --git a/images/config/locales/ru.yml b/images/config/locales/ru.yml index 868055ead6..1a65d5f07c 100644 --- a/images/config/locales/ru.yml +++ b/images/config/locales/ru.yml @@ -23,9 +23,11 @@ ru: replace_image: " заменить его этим" current_image: Текущее изображение maximum_image_size: "Максимальный размер изображения — %{megabytes} МБ." - index: + actions: create_new_image: Создать новое изображение + records: no_images_yet: "Изображений пока что нет. Нажмите «Создать новое изображение», чтобы добавить ваше первое изображение." + index: view: switch_to: Показать %{view_name} list: списком diff --git a/images/config/locales/sk.yml b/images/config/locales/sk.yml index 123670c46d..568ed726d9 100644 --- a/images/config/locales/sk.yml +++ b/images/config/locales/sk.yml @@ -14,9 +14,11 @@ sk: replace_image: " nahradiť ho týmto..." current_image: Vybraný obrázok maximum_image_size: Maximálna veľkosť obrázku je %{megabytes}MB. - index: + actions: create_new_image: Pridať nový obrázok + records: no_images_yet: Zatiaľ nebol nahraný žiadny obrázok. Klikni na "Pridať nový obrázok" pre pridanie. + index: view: switch_to: Prepnúť pohľad na %{view_name} list: zoznam diff --git a/images/config/locales/sl.yml b/images/config/locales/sl.yml index 1c772d6c82..a3b8a38d60 100644 --- a/images/config/locales/sl.yml +++ b/images/config/locales/sl.yml @@ -13,9 +13,11 @@ sl: replace_image: " zamenjaj jo s tole..." current_image: Trenutna Slika maximum_image_size: "Največja dovoljena velikost slike je lahko %{megabytes} megabajtov." - index: + actions: create_new_image: Ustvari Novo Sliko + records: no_images_yet: Trenutno še ni nobene slike. Za prenos prve slike kliknite "Ustvari Novo Sliko". + index: view: switch_to: Preklopi pogled v %{view_name} list: seznam diff --git a/images/config/locales/sv.yml b/images/config/locales/sv.yml index fb8bcaba7d..e0aeafaa2f 100644 --- a/images/config/locales/sv.yml +++ b/images/config/locales/sv.yml @@ -14,9 +14,11 @@ sv: replace_image: " ersätt den med den här..." current_image: Denna bild maximum_image_size: Maximal filstorlek för bilden är %{megabytes} megabytes. - index: + actions: create_new_image: Ladda upp en bild + records: no_images_yet: Det finns inga bilder än. Klicka på "Ladda upp en bild" för att ladda upp en bild. + index: view: switch_to: Byt till %{view_name} vyn list: lista diff --git a/images/config/locales/vi.yml b/images/config/locales/vi.yml index d5e55fb0be..598d98253d 100644 --- a/images/config/locales/vi.yml +++ b/images/config/locales/vi.yml @@ -14,9 +14,11 @@ vi: replace_image: " thay bằng ảnh khác..." current_image: Ảnh hiện tại maximum_image_size: Dung lượng ảnh tối đa là %{megabytes} megabytes. - index: + actions: create_new_image: Tạo ảnh mới + records: no_images_yet: Hiện chưa có ảnh nào. Ấn vào "Tạo ảnh mới" để tạo ảnh. + index: view: switch_to: Đổi sang kiểu xem %{view_name} list: danh sách diff --git a/images/config/locales/zh-CN.yml b/images/config/locales/zh-CN.yml index 6da1226b6f..91e616cf0e 100755 --- a/images/config/locales/zh-CN.yml +++ b/images/config/locales/zh-CN.yml @@ -14,9 +14,11 @@ zh-CN: replace_image: " 使用这个去覆盖..." current_image: 当前图片 maximum_image_size: 最大的图片大小为 %{megabytes} MB. - index: + actions: create_new_image: 添加新图片 + records: no_images_yet: 这里还没有图片. 点击 "添加新图片" 去添加您的第一张图片. + index: view: switch_to: 切换到 %{view_name} 视图 list: 列表 diff --git a/images/config/locales/zh-TW.yml b/images/config/locales/zh-TW.yml index b6dec951af..0833a6ea06 100644 --- a/images/config/locales/zh-TW.yml +++ b/images/config/locales/zh-TW.yml @@ -14,9 +14,11 @@ zh-TW: replace_image: " 用這個來取代..." current_image: 目前圖片 maximum_image_size: 圖片大小限制為 %{megabytes} MB. - index: + actions: create_new_image: 新增圖片 + records: no_images_yet: 目前沒有任何圖片. 點選 "新增圖片" 來加入您的第一張圖片. + index: view: switch_to: 切換到%{view_name}模式 list: 列表 diff --git a/pages/app/views/admin/pages/_actions.html.erb b/pages/app/views/admin/pages/_actions.html.erb new file mode 100644 index 0000000000..c12c117452 --- /dev/null +++ b/pages/app/views/admin/pages/_actions.html.erb @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/pages/app/views/admin/pages/_records.html.erb b/pages/app/views/admin/pages/_records.html.erb new file mode 100644 index 0000000000..757db7113c --- /dev/null +++ b/pages/app/views/admin/pages/_records.html.erb @@ -0,0 +1,14 @@ +<% if searching? %> +

<%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %>

+<% end %> +<% if @pages.any? %> + <%= render :partial => 'sortable_list' %> +<% else %> +

+ <% unless searching? %> + <%=t('.no_pages_yet')%> + <% else %> + <%= t('no_results', :scope => 'shared.admin.search') %> + <% end %> +

+<% end %> \ No newline at end of file diff --git a/pages/app/views/admin/pages/index.html.erb b/pages/app/views/admin/pages/index.html.erb index e1e3d39e42..ca190ec1ee 100644 --- a/pages/app/views/admin/pages/index.html.erb +++ b/pages/app/views/admin/pages/index.html.erb @@ -1,40 +1,8 @@ -
- <% if searching? %> -

<%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %>

- <% end %> - <% if @pages.any? %> - <%= render :partial => 'sortable_list' %> - <% else %> -

- <% unless searching? %> - <%=t('.no_pages_yet')%> - <% else %> - <%= t('no_results', :scope => 'shared.admin.search') %> - <% end %> -

- <% end %> -
-
- -
+
+ <%= render :partial => 'records' %> +
+
+ <%= render :partial => 'actions' %> +
<%= render :partial => "/shared/admin/make_sortable", :locals => {:tree => true} if @pages.many? -%> diff --git a/pages/config/locales/cs.yml b/pages/config/locales/cs.yml index 1f87dca968..6b49e32d8a 100644 --- a/pages/config/locales/cs.yml +++ b/pages/config/locales/cs.yml @@ -71,10 +71,11 @@ cs: meta_keywords_help: Vložte 5-10 klíčových slov oddělených čárkou, které se vztahují k obsahu stránky. meta_description_title: Popisek meta_description_help: Vložte 2-3 krátké věty shrnující obsah stránky. - index: + actions: create_new_page: Přidat novou stránku reorder_pages: Přeuspořádat stránky reorder_pages_done: Uložit uspořádání + records: no_pages_yet: Zatím nebyly vytvořeny žádné stránky. activerecord: models: diff --git a/pages/config/locales/da.yml b/pages/config/locales/da.yml index e595194669..22841ab2ca 100644 --- a/pages/config/locales/da.yml +++ b/pages/config/locales/da.yml @@ -71,10 +71,11 @@ da: meta_keywords_help: Indtast 5-10 nøgleord der er relaterede til siden. Adskil nøgleordene med kommaer. meta_description_title: Meta description meta_description_help: Indtast to eller tre sætninger, der beskriver siden. - index: + actions: create_new_page: Tilføj en ny side reorder_pages: Redigér rækkefølgen af siderne reorder_pages_done: Gem rækkefølgen + records: no_pages_yet: Der er ingen sider endnu. Klik på "Tilføj en ny side" for at oprette den første." activerecord: models: diff --git a/pages/config/locales/de.yml b/pages/config/locales/de.yml index 782fe7584b..27e42294d3 100644 --- a/pages/config/locales/de.yml +++ b/pages/config/locales/de.yml @@ -71,10 +71,11 @@ de: meta_keywords_help: Geben Sie 5-10 Schlüsselwörter für diese Seite an. Trennen Sie Schlüsselwörter mit einem Komma. meta_description_title: Meta-Beschreibung meta_description_help: Beschreiben Sie in knappen zwei oder drei Sätzen, um was es sich bei dieser Seite handelt. - index: + actions: create_new_page: Neue Seite anlegen reorder_pages: Seiten umsortieren reorder_pages_done: Umsortieren erledigt + records: no_pages_yet: Es sind noch keine Seiten vorhanden. Klicken Sie auf "Neue Seite anlegen", um Ihre erste Seite zu erstellen. activerecord: models: diff --git a/pages/config/locales/el.yml b/pages/config/locales/el.yml index db9c09ef63..c9fe073cc3 100644 --- a/pages/config/locales/el.yml +++ b/pages/config/locales/el.yml @@ -71,10 +71,11 @@ el: meta_keywords_help: Enter 5-10 keywords that relate to this page. Separate keywords by a comma. meta_description_title: Meta description meta_description_help: Enter a concise two or three sentences describing what this page is about. - index: + actions: create_new_page: Προσθήκη νέας σελίδας reorder_pages: Αναδιάταξη σελιδών reorder_pages_done: Έγινε αναδιάταξη σελιδών + records: no_pages_yet: There are no pages yet. Click "Add new page" to add your first page. activerecord: models: diff --git a/pages/config/locales/en.yml b/pages/config/locales/en.yml index a39ad344f8..276da7b97e 100644 --- a/pages/config/locales/en.yml +++ b/pages/config/locales/en.yml @@ -71,10 +71,11 @@ en: meta_keywords_help: Enter 5-10 keywords that relate to this page. Separate keywords by a comma. meta_description_title: Meta description meta_description_help: Enter a concise two or three sentences describing what this page is about. - index: + actions: create_new_page: Add new page reorder_pages: Reorder pages reorder_pages_done: Done reordering pages + records: no_pages_yet: There are no pages yet. Click "Add new page" to add your first page. activerecord: models: diff --git a/pages/config/locales/es.yml b/pages/config/locales/es.yml index 9448c1fad7..deba7e971e 100644 --- a/pages/config/locales/es.yml +++ b/pages/config/locales/es.yml @@ -72,10 +72,11 @@ es: meta_keywords_help: Introduce 5-10 palabras clave relacionadas con esta página, separadas por comas. meta_description_title: Meta-descripción meta_description_help: Describe en dos o tres frases de qué tema trata esta página. - index: + actions: create_new_page: Crear nueva página reorder_pages: Reordenar páginas reorder_pages_done: Reordenación de páginas completada + records: no_pages_yet: "Aún no hay páginas. Pulsa \"Crear nueva página\" para añadir tu primera página." activerecord: models: diff --git a/pages/config/locales/fr.yml b/pages/config/locales/fr.yml index fd93ced5ba..bab50a421c 100644 --- a/pages/config/locales/fr.yml +++ b/pages/config/locales/fr.yml @@ -71,10 +71,11 @@ fr: meta_keywords_help: Entrez entre 5 et 10 mots clefs en relation avec votre page (Séparer les mots clefs par des virgules). meta_description_title: Description meta_description_help: Entrez deux ou trois phrases concises décrivants le sujet de votre page. - index: + actions: create_new_page: Créer une nouvelle page reorder_pages: Réordonner les pages reorder_pages_done: Fin de réordonnancement des pages + records: no_pages_yet: "Il n'y a actuellement aucune page. Cliquer sur 'Créer une nouvelle page' pour en ajouter une." activerecord: models: diff --git a/pages/config/locales/it.yml b/pages/config/locales/it.yml index 14640301fa..8831e06143 100644 --- a/pages/config/locales/it.yml +++ b/pages/config/locales/it.yml @@ -86,11 +86,12 @@ it: already_exists: Una sezione di contenuti con quel titolo e già esistente, si prega di modificarlo. title_empty: Non è stato inserito un titolo per la sezione dei contenuti, inseriscine uno. confirm_delete: Ciò eliminerà la sezione dei contenuti %{section_name} e cancellerà tutti i contenuti che sono stati inseriti al suo interno. Sei sicuro? - index: + actions: create_new_page: Crea una nuova pagina reorder_pages: Riordina le pagine reorder_pages_done: Riordino Pagine terminato sorry_no_results: La ricerca non ha prodotto risultati. + records: no_pages_yet: Non è stata ancora creata nessuna pagina. Clicca su "Crea nuova pagina" per aggiungere la tua prima pagina. activerecord: attributes: diff --git a/pages/config/locales/lolcat.yml b/pages/config/locales/lolcat.yml index a1d27cefbe..37b15a0781 100644 --- a/pages/config/locales/lolcat.yml +++ b/pages/config/locales/lolcat.yml @@ -70,10 +70,11 @@ lolcat: meta_keywords_help: ENTR 5-10 KEYWORDZ DAT RELATE 2 DIS PAEG. SEPARATE KEYWORDZ BY COMMA. meta_description_title: META DESCRIPSHUN meta_description_help: ENTR CONCIZE 2 OR 3 SENTENCEZ DESCRIBIN WUT DIS PAEG IZ BOUT. - index: + actions: create_new_page: ADD NEW PAEG reorder_pages: REORDR PAGEZ reorder_pages_done: DUN REORDERIN PAGEZ + records: no_pages_yet: THAR R NO PAGEZ YET. CLICK "ADD NEW PAEG" 2 ADD UR FURST PAEG. activerecord: models: diff --git a/pages/config/locales/lt.yml b/pages/config/locales/lt.yml index d64dd6dd69..2876300148 100644 --- a/pages/config/locales/lt.yml +++ b/pages/config/locales/lt.yml @@ -72,10 +72,11 @@ lt: meta_keywords_help: "Įveskite 5-10 raktinių žodžių, kurie susiję su šiuo puslapiu. Atskirkite raktinius žodžius kableliais." meta_description_title: Meta aprašymas meta_description_help: Įveskite rišlius du ar tris sakinius nusakančius apie ką šis puslapis. - index: + actions: create_new_page: Pridėti naują puslapį reorder_pages: Keisti puslapių tvarką reorder_pages_done: Baigti keisti puslapių tvarką + records: no_pages_yet: Dar nėra puslapių. Paspauskite "Pridėti naują puslapį" norėdami sukurti pirmą puslapį. activerecord: models: diff --git a/pages/config/locales/lv.yml b/pages/config/locales/lv.yml index 3725b22787..6ba50500a2 100644 --- a/pages/config/locales/lv.yml +++ b/pages/config/locales/lv.yml @@ -73,10 +73,11 @@ lv: meta_keywords_help: Ievadiet 5-10 atslēgvārdus, kuriem ir saistība ar šo lapu. Atslēgvārdus atdaliet ar komatu meta_description_title: Meta apraksts meta_description_help: Īsi, divos vai trijos teikumos, aprakstiet šīs lapas saturu. - index: + actions: create_new_page: Izveidot jaunu lapu reorder_pages: Pārkārtot lapas reorder_pages_done: Pabeigt lapu pārkārtošanu + records: no_pages_yet: Vēl nav nevienas lapas. Spied "Izveidot jaunu lapu", lai izveidotu pirmo lapu. activerecord: models: diff --git a/pages/config/locales/nb.yml b/pages/config/locales/nb.yml index 64083c66ce..a00f94121e 100644 --- a/pages/config/locales/nb.yml +++ b/pages/config/locales/nb.yml @@ -71,10 +71,11 @@ nb: meta_keywords_help: Skriv inn 5-10 stikkord som relaterer til denne siden. Separer stikkordene med komma. meta_description_title: Meta beskrivelse meta_description_help: Skriv en kort beskrivelse på to eller tre setninger som forteller hva denne siden inneholder. - index: + actions: create_new_page: Legg til ny side reorder_pages: Endre rekkefølgen reorder_pages_done: Ferdig med endring av rekkefølgen + records: no_pages_yet: Det er ingen sider her enda. Klikk på "Legg til ny side" for å legge til din første side. activerecord: models: diff --git a/pages/config/locales/nl.yml b/pages/config/locales/nl.yml index cc5a3a58d5..f10cae92aa 100644 --- a/pages/config/locales/nl.yml +++ b/pages/config/locales/nl.yml @@ -71,10 +71,11 @@ nl: meta_keywords_help: Voeg 5 tot 10 meta zoekwoorden toe. Gebruik een komma om de zoekwoorden te scheiden. meta_description_title: Meta omschrijving meta_description_help: Voer een compacte (twee a drie zinnen) pagina beschrijving in. - index: + actions: create_new_page: Maak een nieuwe pagina reorder_pages: "Wijzig de volgorde van de pagina's" reorder_pages_done: "Klaar met het wijzingen van de volgorde van de pagina's" + records: no_pages_yet: "Er zijn nog geen pagina's. Druk op 'Maak een nieuwe pagina' om de eerste aan te maken." activerecord: models: diff --git a/pages/config/locales/pl.yml b/pages/config/locales/pl.yml index f45da8f150..9b3290e18c 100644 --- a/pages/config/locales/pl.yml +++ b/pages/config/locales/pl.yml @@ -72,10 +72,11 @@ pl: meta_keywords_help: Wpisz 5-10 słów kluczowych związanych z zawartością tej strony. Rozdziel słowa kluczowe przecinkiem. meta_description_title: Opis meta meta_description_help: Podaj dwu-trzyzdaniowy opis tego, o czym jest ta strona. - index: + actions: create_new_page: Dodaj nową stronę reorder_pages: Zmień kolejność stron reorder_pages_done: Zakończono zmianę kolejności stron + records: no_pages_yet: Nie ma jeszcze żadnej strony. Kliknij "Dodaj nową stronę" aby stworzyć pierwszą. activerecord: models: diff --git a/pages/config/locales/pt-BR.yml b/pages/config/locales/pt-BR.yml index 321e3894ec..6d55bde04b 100644 --- a/pages/config/locales/pt-BR.yml +++ b/pages/config/locales/pt-BR.yml @@ -72,10 +72,11 @@ pt-BR: meta_keywords_help: Digite de 5 a 10 palavras-chave presentes nesta página. Separe elas com vírgula. meta_description_title: Meta descrição meta_description_help: Digite duas ou três sentenças concisas descrevendo sobre o que é essa página. - index: + actions: create_new_page: Criar uma nova página reorder_pages: Reordenar as Páginas reorder_pages_done: Terminei de reordenar as Páginas + records: no_pages_yet: Ainda não existem páginas. Clique em "Criar Nova Página" para adicionar sua primeira página. activerecord: models: diff --git a/pages/config/locales/rs.yml b/pages/config/locales/rs.yml index 2f1c991cb5..c1d1970437 100644 --- a/pages/config/locales/rs.yml +++ b/pages/config/locales/rs.yml @@ -71,10 +71,11 @@ rs: meta_keywords_help: Unesi 5 do 10 reči, odvojene zarezom, koje ukazuju na sadržaj ove strane. meta_description_title: Opis meta_description_help: Unesi opis sadržaja ove strane u dve do tri rečenice. - index: + actions: create_new_page: Dodaj novu stranu reorder_pages: Promeni redosled strana reorder_pages_done: Završi sa promenom + records: no_pages_yet: Ne postoji nijedna strana. Klinki na "Dodaj novu stranu" da dodaš prvu stranu. activerecord: models: diff --git a/pages/config/locales/ru.yml b/pages/config/locales/ru.yml index 2033cbe0cb..b218feb55c 100644 --- a/pages/config/locales/ru.yml +++ b/pages/config/locales/ru.yml @@ -80,10 +80,11 @@ ru: meta_keywords_help: "Введите 5–10 ключевых слов, которые относятся к этой странице, разделяя запятой." meta_description_title: Описание meta_description_help: "Введите два-три коротких предложения, описывающих страницу." - index: + actions: create_new_page: Создать новую страницу reorder_pages: Изменить порядок страниц reorder_pages_done: Сохранить такой порядок страниц + records: no_pages_yet: Страниц ещё нет. reserved_system_word: Защищены системой слова refinery_settings: diff --git a/pages/config/locales/sk.yml b/pages/config/locales/sk.yml index a0261920e5..3d3d8620a9 100644 --- a/pages/config/locales/sk.yml +++ b/pages/config/locales/sk.yml @@ -71,10 +71,11 @@ sk: meta_keywords_help: Vložte 5-10 kľúčových slov oddelených čiarkou, ktoré sa vzťahujú k obsahu stránky. meta_description_title: Popis (Meta description) meta_description_help: Vložte 2-3 krátke vety sumarizujúce obsah stránky. - index: + actions: create_new_page: Pridať novú stránku reorder_pages: Zmeniť usporiadanie stránok reorder_pages_done: Uložiť usporiadanie + records: no_pages_yet: Zatiaľ neboli vytvorené žiadne stránky. Kliknite na "Pridať novú stránku" pre pridanie prvej. activerecord: models: diff --git a/pages/config/locales/sl.yml b/pages/config/locales/sl.yml index 860c6384b5..3606b33536 100644 --- a/pages/config/locales/sl.yml +++ b/pages/config/locales/sl.yml @@ -70,10 +70,11 @@ sl: meta_keywords_help: Vnesite 5-10 ključnih besed, ki se navezujejo na to spletno stran. Ključne besede ločite z vejicami. meta_description_title: Meta opis meta_description_help: V dveh do treh stavkih jedernato opišite kaj ta stran predstavlja. - index: + actions: create_new_page: Dodaj novo stran reorder_pages: Spremeni vrstni red Strani reorder_pages_done: Končaj s prerazporeditvijo Strani + records: no_pages_yet: Trenutno še ni nobene strani. Za dodajanje prve strani kliknite "Dodaj novo stran". activerecord: models: diff --git a/pages/config/locales/sv.yml b/pages/config/locales/sv.yml index 3709e50fbe..4503a6ef7d 100644 --- a/pages/config/locales/sv.yml +++ b/pages/config/locales/sv.yml @@ -71,10 +71,11 @@ sv: meta_keywords_help: Fyll i 5 till 10 nyckelord som relaterar till den här sidan. Separera dina nyckelord med komma-tecken. meta_description_title: Meta beskrivning meta_description_help: Fyll i konkret vad sidan handlar om. Använd en, två eller tre meningar. - index: + actions: create_new_page: Lägg till en ny sida reorder_pages: Ändra ordning på sidor reorder_pages_done: Spara ny ordning på sidor + records: no_pages_yet: Det finns inga sidor ännu. Klicka på "Lägg till en ny sida" för att skapa din första sida. activerecord: models: diff --git a/pages/config/locales/vi.yml b/pages/config/locales/vi.yml index 105a5b0d90..d63f081d07 100644 --- a/pages/config/locales/vi.yml +++ b/pages/config/locales/vi.yml @@ -71,10 +71,11 @@ vi: meta_keywords_help: Nhập 5-10 từ khóa liên quan tới trang này, phân cách bằng dấu phẩy. meta_description_title: Meta description meta_description_help: Nhập vào 2-3 câu thật súc tích mô tả trang này nói về gì. - index: + actions: create_new_page: Tạo trang mới reorder_pages: Sắp xếp lại các trang reorder_pages_done: Tôi xếp xong rồi + records: no_pages_yet: Hiện chưa có trang nào. Ấn vào "Tạo trang mới" để tạo trang. activerecord: models: diff --git a/pages/config/locales/zh-CN.yml b/pages/config/locales/zh-CN.yml index f1842f6ad6..aa8e737273 100755 --- a/pages/config/locales/zh-CN.yml +++ b/pages/config/locales/zh-CN.yml @@ -71,10 +71,11 @@ zh-CN: meta_keywords_help: 输入 5 到 10 个与这个页面有关的关键字. 用逗号分开每个关键字. meta_description_title: Meta 说明 meta_description_help: 简洁地输入两三句话来介绍这个页面. - index: + actions: create_new_page: 添加新页面 reorder_pages: 重新编排页面顺序 reorder_pages_done: 完成编排 + records: no_pages_yet: 这里还没有页面. 点击 "添加新页面" 去添加您的第一个页面. activerecord: models: diff --git a/pages/config/locales/zh-TW.yml b/pages/config/locales/zh-TW.yml index fa9fcb20ad..df85598a6b 100644 --- a/pages/config/locales/zh-TW.yml +++ b/pages/config/locales/zh-TW.yml @@ -71,10 +71,11 @@ zh-TW: meta_keywords_help: 輸入 5 到 10 個跟這個頁面有關的關鍵字. 用逗號分開每個關鍵字. meta_description_title: Meta 說明 meta_description_help: 簡潔地輸入兩三句話來介紹這個頁面. - index: + actions: create_new_page: 新增頁面 reorder_pages: 重新編排頁面順序 reorder_pages_done: 完成頁面順序編排 + records: no_pages_yet: 目前沒有任何頁面. 點選 "新增頁面" 來加入您的第一個頁面. activerecord: models: diff --git a/resources/app/views/admin/resources/_actions.html.erb b/resources/app/views/admin/resources/_actions.html.erb new file mode 100644 index 0000000000..77fbb87cfb --- /dev/null +++ b/resources/app/views/admin/resources/_actions.html.erb @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/resources/app/views/admin/resources/_records.html.erb b/resources/app/views/admin/resources/_records.html.erb new file mode 100644 index 0000000000..53ea44513a --- /dev/null +++ b/resources/app/views/admin/resources/_records.html.erb @@ -0,0 +1,16 @@ +<% if searching? %> +

<%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %>

+<% end %> +<% if @resources.any? %> +
+ <%= render :partial => 'resources' %> +
+<% else %> +

+ <% unless searching? %> + <%= t('.no_files_yet') %> + <% else %> + <%= t('no_results', :scope => 'shared.admin.search') %> + <% end %> +

+<% end %> \ No newline at end of file diff --git a/resources/app/views/admin/resources/index.html.erb b/resources/app/views/admin/resources/index.html.erb index b79fdc1fa2..44bcf4f564 100644 --- a/resources/app/views/admin/resources/index.html.erb +++ b/resources/app/views/admin/resources/index.html.erb @@ -1,31 +1,6 @@
- <% if searching? %> -

<%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %>

- <% end %> - <% if @resources.any? %> -
- <%= render :partial => 'resources' %> -
- <% else %> -

- <% unless searching? %> - <%= t('.no_files_yet') %> - <% else %> - <%= t('no_results', :scope => 'shared.admin.search') %> - <% end %> -

- <% end %> + <%= render :partial => 'records' %>
- + <%= render :partial => 'actions' %>
diff --git a/resources/config/locales/cs.yml b/resources/config/locales/cs.yml index 489c870da2..06a93735a0 100644 --- a/resources/config/locales/cs.yml +++ b/resources/config/locales/cs.yml @@ -14,8 +14,9 @@ cs: maximum_file_size: Maximální velikost souboru je %{megabytes} MB. resource: download: Stáhnout soubor (%{size}) - index: + actions: upload_new: Nahrát nový soubor + records: no_files_yet: Zatím nebyly nahrány žádné soubory. insert: existing: Existující soubor diff --git a/resources/config/locales/da.yml b/resources/config/locales/da.yml index b530828023..0438a41cdf 100644 --- a/resources/config/locales/da.yml +++ b/resources/config/locales/da.yml @@ -14,8 +14,9 @@ da: maximum_file_size: Filen må maksimalt fylde %{megabytes} megabytes. resource: download: Download fil (%{size}) - index: + actions: upload_new: Tilføj en ny fil + records: no_files_yet: Der er ingen filer endnu. Klik på "Tilføj en ny fil" for at oprette den første. insert: existing: Eksisterende fil diff --git a/resources/config/locales/de.yml b/resources/config/locales/de.yml index 3d0dd30cfb..a94ddc0d65 100644 --- a/resources/config/locales/de.yml +++ b/resources/config/locales/de.yml @@ -14,8 +14,9 @@ de: maximum_file_size: "Die maximale Dateigröße beträgt %{megabytes} Megabyte." resource: download: Diese Datei herunterladen (%{size}) - index: + actions: upload_new: Neue Datei Hochladen + records: no_files_yet: Keine Dateien vorhanden. Klicken Sie auf "Neue Datei Hochladen" um Ihre erste Datei hinzuzufügen. insert: existing: Vorhandene Datei diff --git a/resources/config/locales/el.yml b/resources/config/locales/el.yml index 731247c501..8826fe3c3f 100644 --- a/resources/config/locales/el.yml +++ b/resources/config/locales/el.yml @@ -14,8 +14,9 @@ el: maximum_file_size: Το μέγιστο μέγεθος του αρχείου είναι %{megabytes} megabytes. resource: download: Μεταφόρτωση αυτού του αρχείου (%{size}) - index: + actions: upload_new: Ανέβασμα νέου αρχείου + records: no_files_yet: Δεν υπαχουν αρχεία. Κάντε κλικ στο "Ανέβασμα αρχείου" για να προσθέσετε το πρώτο σας αρχείο. insert: existing: Υπάρχον αρχείο diff --git a/resources/config/locales/en.yml b/resources/config/locales/en.yml index faa48b9903..54e1e4bd4c 100644 --- a/resources/config/locales/en.yml +++ b/resources/config/locales/en.yml @@ -14,8 +14,9 @@ en: maximum_file_size: The maximum file size is %{megabytes} megabytes. resource: download: Download this file (%{size}) - index: + actions: upload_new: Upload new file + records: no_files_yet: There are no files yet. Click "Upload new file" to add your first file. insert: existing: Existing File diff --git a/resources/config/locales/es.yml b/resources/config/locales/es.yml index edb6545e5c..a736640850 100644 --- a/resources/config/locales/es.yml +++ b/resources/config/locales/es.yml @@ -15,8 +15,9 @@ es: maximum_file_size: El peso máximo para el archivo es de %{megabytes} megabytes. resource: download: Descargar este archivo (%{size}) - index: + actions: upload_new: Subir nuevo archivo + records: no_files_yet: Aún no hay archivos. Pulsa "Subir nuevo archivo" para añadir tu primer archivo. insert: existing: Archivo existente diff --git a/resources/config/locales/fr.yml b/resources/config/locales/fr.yml index 9f4e38aef3..f2fa47bef9 100644 --- a/resources/config/locales/fr.yml +++ b/resources/config/locales/fr.yml @@ -14,8 +14,9 @@ fr: maximum_file_size: "La taille du fichier ne doit pas excéder %{megabytes} megaoctets." resource: download: Télécharger ce fichier (%{size}) - index: + actions: upload_new: Ajouter un nouveau fichier + records: no_files_yet: Il n'y a actuellement aucun fichier. Cliquez sur 'Ajouter un nouveau fichier' afin d'en ajouter un. insert: existing: Fichier existant diff --git a/resources/config/locales/it.yml b/resources/config/locales/it.yml index 4947415419..e0b8843402 100644 --- a/resources/config/locales/it.yml +++ b/resources/config/locales/it.yml @@ -18,8 +18,9 @@ it: delete: message: Sei sicuro di voler eliminare '%{title}'? title: Elimina il file corrente - index: + actions: upload_new: Carica un nuovo file + records: no_files_yet: Nessun file presente. Fai clic su "Carica un nuovo file" per aggiungere un file. insert: existing: File esistente diff --git a/resources/config/locales/lolcat.yml b/resources/config/locales/lolcat.yml index 09f44e92f0..440337d79d 100644 --- a/resources/config/locales/lolcat.yml +++ b/resources/config/locales/lolcat.yml @@ -14,8 +14,9 @@ lolcat: maximum_file_size: TEH MAXIMUM FILE SIZE IZ %{megabytes} MEGABYTEZ. resource: download: DOWNLOAD DIS FILE (%{size}) - index: + actions: upload_new: UPLOAD NEW FILE + records: no_files_yet: THAR R NO FILEZ YET. CLICK "UPLOAD NEW FILEZ" 2 ADD UR FURST FILE. insert: existing: EXISTIN FILE diff --git a/resources/config/locales/lt.yml b/resources/config/locales/lt.yml index d26775f7ba..6f9f2654f0 100644 --- a/resources/config/locales/lt.yml +++ b/resources/config/locales/lt.yml @@ -14,8 +14,9 @@ lt: maximum_file_size: Maksimalus failo dydis yra %{megabytes} megabaitų. resource: download: Parsisiųsti failą (%{size}) - index: + actions: upload_new: Įkelti naują failą + records: no_files_yet: Dar nėra failų. Paspauskite "Įkelti naują failą" norėdami pridėti pirmąjį failą. insert: existing: Egzistuojantis failas diff --git a/resources/config/locales/lv.yml b/resources/config/locales/lv.yml index acce24a5a9..f8a4fe81fe 100644 --- a/resources/config/locales/lv.yml +++ b/resources/config/locales/lv.yml @@ -14,8 +14,9 @@ lv: maximum_file_size: Maksimāli pieļaujamais faila izmērs ir %{megabytes} megabaiti. resource: download: Lejupielādēt šo failu (%{size}) - index: + actions: upload_new: Augšupielādēt failu + records: no_files_yet: Vēl nav neviena faila. Spied "Augšupielādēt failu", lai ielādētu failu. insert: existing: Esošs Fails diff --git a/resources/config/locales/nb.yml b/resources/config/locales/nb.yml index 0190e7ab95..e90f3f6345 100644 --- a/resources/config/locales/nb.yml +++ b/resources/config/locales/nb.yml @@ -14,8 +14,9 @@ nb: maximum_file_size: Største tillatte filstørrelse er %{megabytes} MB. resource: download: Last ned denne filen (%{size}) - index: + actions: upload_new: Last opp en ny fil + records: no_files_yet: Det er ingen filer her enda. Klikk på "Last opp en ny fil" for å legge til din første fil. insert: existing: Eksisterende fil diff --git a/resources/config/locales/nl.yml b/resources/config/locales/nl.yml index fd425fc61f..c831f4e246 100644 --- a/resources/config/locales/nl.yml +++ b/resources/config/locales/nl.yml @@ -13,8 +13,9 @@ nl: maximum_file_size: "The maximum file size is %{megabytes} megabytes." resource: download: Download dit bestand (%{size}) - index: + actions: upload_new: Upload een nieuw bestand. + records: no_files_yet: Er zijn nog geen bestanden. Klik op "Upload een nieuw bestand" om uw eerste bestand toe te voegen. insert: existing: Bestaand bestand diff --git a/resources/config/locales/pl.yml b/resources/config/locales/pl.yml index 724dc04057..02c790a496 100644 --- a/resources/config/locales/pl.yml +++ b/resources/config/locales/pl.yml @@ -15,8 +15,9 @@ pl: maximum_file_size: Maksymalny rozmiaj plik to %{megabytes} megabajtów. resource: download: Pobierz ten plik (%{size}) - index: + actions: upload_new: Wgraj nowe pliki + records: no_files_yet: Nie ma jeszcze żadnych plików. Kliknij "Wgraj nowe pliki" aby dodać pierwszy. insert: existing: Istniejący plik diff --git a/resources/config/locales/pt-BR.yml b/resources/config/locales/pt-BR.yml index 1aae6a5b75..a669e6df83 100644 --- a/resources/config/locales/pt-BR.yml +++ b/resources/config/locales/pt-BR.yml @@ -14,8 +14,9 @@ pt-BR: maximum_file_size: "O tamanho máximo permitido é de %{megabytes} megabytes." resource: download: Baixar este arquivo (%{size}) - index: + actions: upload_new: Enviar Novo Arquivo + records: no_files_yet: Ainda não existem arquivos. Clique em "Enviar Novo Arquivo" para adicionar seu primeiro arquivo. insert: existing: O Arquivo já existe. diff --git a/resources/config/locales/rs.yml b/resources/config/locales/rs.yml index 5f72b0a754..59c05d0196 100644 --- a/resources/config/locales/rs.yml +++ b/resources/config/locales/rs.yml @@ -14,8 +14,9 @@ rs: maximum_file_size: Maksimalna veličina fajla je %{megabytes} megabajta. resource: download: Download-uj fajl (%{size}) - index: + actions: upload_new: Upload-uj novi fajl + records: no_files_yet: Ne postoje fajlovi. Klikni "Upload-uj novi fajl" da dodaš. insert: existing: Postojeći fajl diff --git a/resources/config/locales/ru.yml b/resources/config/locales/ru.yml index 9221622b52..facb3996aa 100644 --- a/resources/config/locales/ru.yml +++ b/resources/config/locales/ru.yml @@ -14,8 +14,9 @@ ru: maximum_file_size: "Максимальный размер файла — %{megabytes} МБ." resource: download: "Скачать файл (%{size})" - index: + actions: upload_new: Загрузить новый файл + records: no_files_yet: "Здесь пока нет файлов. Нажмите «Загрузить новые файлы», чтобы добавить первый файл." insert: existing: Существующий файл diff --git a/resources/config/locales/sk.yml b/resources/config/locales/sk.yml index d7c70af0e2..0568de3338 100644 --- a/resources/config/locales/sk.yml +++ b/resources/config/locales/sk.yml @@ -14,8 +14,9 @@ sk: maximum_file_size: Maximálna veľkosť súboru je %{megabytes} MB. resource: download: Stiahnuť súbor (%{size}) - index: + actions: upload_new: Nahrať nový súbor + records: no_files_yet: Zatiaľ neboli nahraté žiadne súbory. insert: existing: Existujúci súbor diff --git a/resources/config/locales/sl.yml b/resources/config/locales/sl.yml index 7d4d601148..876d6cee59 100644 --- a/resources/config/locales/sl.yml +++ b/resources/config/locales/sl.yml @@ -13,8 +13,9 @@ sl: maximum_file_size: "Največja dovoljena velikost datoteke je %{megabytes} megabajtov." resource: download: Prenesi datoteko (%{size}) - index: + actions: upload_new: Prenesi Novo Datoteko + records: no_files_yet: Trenutno še ni nobene datoteke. Za prenos prve datoteke kliknite "Prenesi Novo Datoteko". insert: existing: Obstoječo Datoteko diff --git a/resources/config/locales/sv.yml b/resources/config/locales/sv.yml index 465c3f4434..dc810ee2c6 100644 --- a/resources/config/locales/sv.yml +++ b/resources/config/locales/sv.yml @@ -14,8 +14,9 @@ sv: maximum_file_size: Maximal storlek är %{megabytes} megabytes. resource: download: Ladda ner den här filen (%{size}) - index: + actions: upload_new: Ladda upp en fil + records: no_files_yet: Det finns inga filer ännu. Klicka på "Ladda upp en fil" för att ladda upp din första fil. insert: existing: Redan existerande fil diff --git a/resources/config/locales/vi.yml b/resources/config/locales/vi.yml index 3275dc8a4b..8115a7a936 100644 --- a/resources/config/locales/vi.yml +++ b/resources/config/locales/vi.yml @@ -14,8 +14,9 @@ vi: maximum_file_size: Kích thước file tối đa là %{megabytes} megabytes. resource: download: Tải về file này (%{size}) - index: + actions: upload_new: Tải lên tập tin mới + records: no_files_yet: Chưa có tập tin nào. Nhấp vào "Tải lên tập tin mới" để thêm tập tin đầu tiên của bạn. insert: existing: Tập tin đang tồn tại diff --git a/resources/config/locales/zh-CN.yml b/resources/config/locales/zh-CN.yml index cf01a57c74..e1b1ee15bd 100755 --- a/resources/config/locales/zh-CN.yml +++ b/resources/config/locales/zh-CN.yml @@ -14,8 +14,9 @@ zh-CN: maximum_file_size: 最大的文件大小是 %{megabytes} MB. resource: download: 下载此文件 (%{size}) - index: + actions: upload_new: 上传新文件 + records: no_files_yet: 这里还没有文件. 点击 "上传新文件" 去添加您第一个文件. insert: existing: 已存在的文件 diff --git a/resources/config/locales/zh-TW.yml b/resources/config/locales/zh-TW.yml index 66bf7ca55e..e3843063e3 100644 --- a/resources/config/locales/zh-TW.yml +++ b/resources/config/locales/zh-TW.yml @@ -14,8 +14,9 @@ zh-TW: maximum_file_size: 檔案大小限制為 %{megabytes} MB. resource: download: 下載這個檔案 (%{size}) - index: + actions: upload_new: 上傳新檔案 + records: no_files_yet: 目前沒有任何的檔案. 點選 "上傳新檔案" 來加入您的第一個檔案. insert: existing: 已存在的檔案 diff --git a/settings/app/views/admin/refinery_settings/_actions.html.erb b/settings/app/views/admin/refinery_settings/_actions.html.erb new file mode 100644 index 0000000000..5fb64dd73e --- /dev/null +++ b/settings/app/views/admin/refinery_settings/_actions.html.erb @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/settings/app/views/admin/refinery_settings/_records.html.erb b/settings/app/views/admin/refinery_settings/_records.html.erb new file mode 100644 index 0000000000..55e0d8a11d --- /dev/null +++ b/settings/app/views/admin/refinery_settings/_records.html.erb @@ -0,0 +1,21 @@ +<% if searching? %> +

+ <%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %> +

+<% end %> +<% if @refinery_settings.any? %> +
+ <%= render :partial => 'refinery_settings' %> +
+<% else %> +

+ <% if searching? %> + <%= t('no_results', :scope => 'shared.admin.search') %> + <% else %> + + <%= t('.empty_set') %> + <%= t('.create_first', :link => t('new', :scope => 'admin.refinery_settings.actions')) %> + + <% end %> +

+<% end %> \ No newline at end of file diff --git a/settings/app/views/admin/refinery_settings/index.html.erb b/settings/app/views/admin/refinery_settings/index.html.erb index 7a001f45d4..1c240f6f0e 100644 --- a/settings/app/views/admin/refinery_settings/index.html.erb +++ b/settings/app/views/admin/refinery_settings/index.html.erb @@ -1,42 +1,8 @@
- <% if searching? %> -

- <%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %> -

- <% end %> - <% if @refinery_settings.any? %> -
- <%= render :partial => 'refinery_settings' %> -
- <% else %> -

- <% if searching? %> - <%= t('no_results', :scope => 'shared.admin.search') %> - <% else %> - - <%= t('.empty_set') %> - <%= t('.create_first', :link => t('.new')) %> - - <% end %> -

- <% end %> + <%= render :partial => 'records' %>
- + <%= render :partial => 'actions' %>
<% content_for :javascripts do %>