Skip to content

Commit

Permalink
adding translations
Browse files Browse the repository at this point in the history
  • Loading branch information
agitator committed May 2, 2018
1 parent 37d0220 commit b22cd7f
Show file tree
Hide file tree
Showing 7 changed files with 521 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/plone/login/browser/login.py
Expand Up @@ -65,7 +65,7 @@ def updateWidgets(self):

if self.use_email_as_login():
self.widgets[fieldname_name].label = _(u'label_email',
default=u'E-mail')
default=u'Email')
self.widgets['came_from'].mode = HIDDEN_MODE
self.widgets['came_from'].value = self.get_came_from()

Expand Down
Expand Up @@ -7,7 +7,7 @@

<metal:title fill-slot="content-title">
<h1 class="documentFirstHeading"
i18n:translate="heading_welcome">Time to change your password!</h1>
i18n:translate="heading_change_password">Time to change your password!</h1>
</metal:title>

<metal:description fill-slot="content-description">
Expand Down
2 changes: 1 addition & 1 deletion src/plone/login/browser/templates/login_help.pt
Expand Up @@ -34,7 +34,7 @@
<div class="footer"
tal:define="portal_state context/@@plone_portal_state;
portal_url portal_state/portal_url">
<p class="trouble">Need more help? <a tal:attributes="href string:${portal_url}/contact-info" href="contact-info">Contact an admin.</a></p>
<p class="trouble"><span i18n:translate="need_more_help" tal:omit-tag="">Need more help?</span> <a tal:attributes="href string:${portal_url}/contact-info" href="contact-info" i18n:translate="contact_an_admin">Contact an admin.</a></p>
</div>
</div>

Expand Down
3 changes: 3 additions & 0 deletions src/plone/login/configure.zcml
@@ -1,7 +1,10 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:i18n="http://namespaces.zope.org/i18n"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup">

<i18n:registerTranslations directory="locales" />

<includeDependencies package="." />
<include package=".browser" />

Expand Down
250 changes: 250 additions & 0 deletions src/plone/login/locales/de/LC_MESSAGES/plone.po
@@ -0,0 +1,250 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2018-05-02 17:11+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0\n"
"Language-Code: en\n"
"Language-Name: English\n"
"Preferred-Encodings: utf-8 latin1\n"
"Domain: DOMAIN\n"

#: ../browser/templates/logged_out.pt:29
msgid "${text_logged_out_link} and click 'Cancel' when prompted with an authentication prompt."
msgstr ""

#: ../browser/templates/login.pt:13
msgid "Error"
msgstr ""

#: ../browser/login.py:106
msgid "Log in"
msgstr ""

#: ../browser/login.py:116
msgid "Login failed. Both email address and password are case sensitive, check that caps lock is not enabled."
msgstr ""

#: ../browser/login.py:121
msgid "Login failed. Both login name and password are case sensitive, check that caps lock is not enabled."
msgstr ""

#: ../browser/login_help.py:167
msgid "Recipient address rejected by server."
msgstr ""

#: ../browser/templates/logged_out.pt:29
msgid "Visit this link"
msgstr ""

#. Default: "Get your username"
#: ../browser/login_help.py:107
msgid "button_pwreset_get_username"
msgstr ""

#. Default: "Reset your password"
#: ../browser/login_help.py:67
msgid "button_pwreset_reset_password"
msgstr ""

#. Default: "Contact an admin."
#: ../browser/templates/login_help.pt:37
msgid "contact_an_admin"
msgstr "Hier können Sie den Website-Verantwortlichen kontaktieren."

#. Default: "Before you start exploring, you need to change your original password. This ensures that the password you received via email cannot be used in a malicious manner."
#: ../browser/templates/initial_login_password_change.pt:19
msgid "description_change_initial_password"
msgstr ""

#. Default: "Before you continue, you need to change your password."
#: ../browser/templates/forced_password_change.pt:15
msgid "description_forced_password_change"
msgstr ""

#. Default: "This is the first time that you've logged in to ${here}."
#: ../browser/templates/initial_login_password_change.pt:17
msgid "description_logged_in"
msgstr ""

#. Default: "You do not have sufficient privileges to view this page. If you believe you are receiving this message in error, contact the ${site_admin}."
#: ../browser/templates/insufficient_privileges.pt:26
msgid "description_no_privileges_for_page"
msgstr ""

#. Default: "You are logged in via HTTP authentication (i.e. the Zope Management Interface). In order to log out, you must:"
#: ../browser/templates/logged_out.pt:22
msgid "description_quit_to_log_out"
msgstr ""

#. Default: "Cookies are not enabled. You must enable cookies before you can log in."
#: ../browser/templates/login.pt:16
msgid "enable_cookies_message_before_login"
msgstr ""

#. Default: "Get help"
#: ../browser/templates/login.pt:98
#: ../browser/templates/reset_password.pt:85
msgid "footer_login_link_get_help"
msgstr "Hier finden Sie Unterstützung."

#. Default: "Sign up here &raquo;"
#: ../browser/templates/login.pt:100
#: ../browser/templates/reset_password.pt:87
msgid "footer_login_link_signup"
msgstr "Hier geht's zur Registrierung."

#. Default: "Need an account? ${link_login_signup}"
#: ../browser/templates/login.pt:99
#: ../browser/templates/reset_password.pt:86
msgid "footer_login_signup"
msgstr "Sie haben kein Benutzerkonto? ${link_login_signup}"

#. Default: "Trouble logging in? ${link_login_help}."
#: ../browser/templates/login.pt:97
#: ../browser/templates/reset_password.pt:84
msgid "footer_login_trouble"
msgstr "Probleme beim anmelden? ${link_login_help}."

#. Default: "Time to change your password!"
#: ../browser/templates/forced_password_change.pt:9
msgid "heading_change_password"
msgstr ""

#. Default: "Need Help?"
#: ../browser/login_help.py:191
msgid "heading_login_form_help"
msgstr "Hier finden Sie Unterstützung"

#. Default: "Uh oh!"
#: ../browser/templates/login.pt:24
msgid "heading_login_uhoh"
msgstr ""

#. Default: "Insufficient Privileges"
#: ../browser/templates/insufficient_privileges.pt:18
msgid "heading_no_privileges"
msgstr ""

#. Default: "Still logged in as a Zope user"
#: ../browser/templates/logged_out.pt:19
msgid "heading_quit_to_log_out"
msgstr ""

#. Default: "Welcome!"
#: ../browser/templates/initial_login_password_change.pt:9
msgid "heading_welcome"
msgstr ""

#. Default: "Enter your email and we’ll send you your username."
#: ../interfaces.py:73
msgid "help_pwreset_email"
msgstr "Geben Sie ihre E-Mail an und wir schicken den Benutzernamen zu."

#. Default: "Enter your username or email and we’ll send you a password reset link."
#: ../interfaces.py:66
msgid "help_pwreset_username"
msgstr "Geben Sie ihren Benutzernamen oder ihre E-Mail an und wir schicken einen Link um das Passwort neu setzen zu können."

#. Default: "Change Password"
#: ../browser/login.py:222
msgid "label_change_password"
msgstr ""

#. Default: "Email"
#: ../browser/login.py:67
#: ../browser/login_help.py:63
msgid "label_email"
msgstr ""

#. Default: "Log in"
#: ../browser/login.py:37
msgid "label_log_in"
msgstr ""

#. Default: "Login"
#: ../interfaces.py:26
msgid "label_login"
msgstr ""

#. Default: "Login Name"
#: ../interfaces.py:42
msgid "label_login_name"
msgstr ""

#. Default: "Password"
#: ../interfaces.py:30
msgid "label_password"
msgstr ""

#. Default: "Email"
#: ../interfaces.py:72
msgid "label_pwreset_email"
msgstr ""

#. Default: "Username"
#: ../interfaces.py:65
msgid "label_pwreset_username"
msgstr ""

#. Default: "(Required)"
#: ../browser/templates/reset_password.pt:47
msgid "label_required"
msgstr ""

#. Default: "site administration"
#: ../browser/templates/insufficient_privileges.pt:26
msgid "label_site_administration"
msgstr ""

#. Default: "get some help remembering here"
#: ../browser/templates/login.pt:29
msgid "link_login_failed_getting_help"
msgstr ""

#. Default: "Please try again or ${link_get_help}."
#: ../browser/templates/login.pt:29
msgid "message_login_failed_getting_help"
msgstr ""

#. Default: "Looks like your username or password was incorrect."
#: ../browser/templates/login.pt:26
msgid "message_login_failed_incorrect_username_or_password"
msgstr ""

#. Default: "Need more help?"
#: ../browser/templates/login_help.pt:37
msgid "need_more_help"
msgstr "Brauchen Sie Hilfe?"

#. Default: "You have been logged out."
#: ../browser/logout.py:50
msgid "statusmessage_logged_out"
msgstr ""

#. Default: "An email has been sent with instructions on how to reset your password."
#: ../browser/login_help.py:86
msgid "statusmessage_pwreset_password_mail_sent"
msgstr ""

#. Default: "An email has been sent with your username."
#: ../browser/login_help.py:134
msgid "statusmessage_pwreset_username_mail_sent"
msgstr ""

#. Default: "Required"
#: ../browser/templates/login.pt:53
#: ../browser/templates/reset_password.pt:47
#: ../browser/templates/subform_render.pt:30
msgid "title_required"
msgstr ""

#. Default: "Welcome! You are now logged in."
#: ../browser/login.py:135
msgid "you_are_now_logged_in"
msgstr ""

0 comments on commit b22cd7f

Please sign in to comment.