Internationalise a couple of forgotten strings

Change-Id: Ia17cbcd7d5127ca83a925ce9f31bf095a23062e8
Partial-Bug: #1224338
Closes-Bug: #1224289
This commit is contained in:
Julie Pichon 2013-09-11 20:05:32 +01:00
parent eac6a1ce4a
commit 89c648e3b4
4 changed files with 9 additions and 8 deletions

View File

@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Horizon\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-09-10 18:20-0500\n"
"POT-Creation-Date: 2013-09-11 18:57+0000\n"
"PO-Revision-Date: 2013-04-29 08:33+0000\n"
"Last-Translator: Gabriel Hurley <gabriel@strikeawe.com>\n"
"Language-Team: English (http://www.transifex.com/projects/p/openstack/"
@ -48,10 +48,6 @@ msgstr "Unauthorized. Please try logging in again."
msgid "Session timed out."
msgstr ""
#: middleware.py:98
msgid "Unauthorized."
msgstr ""
#: browsers/base.py:90
msgid "Navigation Item"
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-09-10 18:20-0500\n"
"POT-Creation-Date: 2013-09-11 18:58+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"
@ -39,6 +39,10 @@ msgstr ""
msgid "No roles"
msgstr ""
#: static/horizon/js/horizon.modals.js:33
msgid "Cancel"
msgstr ""
#: static/horizon/js/horizon.modals.js:125
msgid "There was an error submitting the form. Please try again."
msgstr ""

View File

@ -30,7 +30,7 @@ horizon.modals.initModal = function (modal) {
/* Creates a modal dialog from the client-side template. */
horizon.modals.create = function (title, body, confirm, cancel) {
if (!cancel) {
cancel = "Cancel";
cancel = gettext("Cancel");
}
var template = horizon.templates.compiled_templates["#modal_template"],
params = {title: title, body: body, confirm: confirm, cancel: cancel},

View File

@ -104,7 +104,8 @@ class UpdateInstanceSecurityGroups(workflows.UpdateMembersStep):
class UpdateInstanceInfoAction(workflows.Action):
name = forms.CharField(required=True)
name = forms.CharField(required=True,
label=_("Name"))
def handle(self, request, data):
try: