Skip to content

Commit

Permalink
UI: missing JS modal messages translations #117
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Feb 22, 2015
1 parent 7c406a8 commit b962fb9
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 16 deletions.
Binary file modified nodeshot/ui/default/locale/it/LC_MESSAGES/djangojs.mo
Binary file not shown.
28 changes: 21 additions & 7 deletions nodeshot/ui/default/locale/it/LC_MESSAGES/djangojs.po
Expand Up @@ -7,9 +7,9 @@ msgid ""
msgstr ""
"Project-Id-Version: 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-02-21 21:25+0100\n"
"PO-Revision-Date: 2015-02-21 21:28+0050\n"
"Last-Translator: <nemesis@ninux.org>\n"
"POT-Creation-Date: 2015-02-22 21:45+0100\n"
"PO-Revision-Date: 2015-02-22 21:46+0020\n"
"Last-Translator: Admin Admin <admin@admin.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand All @@ -21,6 +21,10 @@ msgstr ""
msgid "Cancel"
msgstr "Annulla"

#: static/ui/nodeshot/js/app.js:220
msgid "confirmation mail sent"
msgstr "email di conferma inviata"

#: static/ui/nodeshot/js/models.js:242
msgid "Name"
msgstr "Nome"
Expand All @@ -45,6 +49,14 @@ msgstr "Elevazione"
msgid "Description"
msgstr "Descrizione"

#: static/ui/nodeshot/js/models.js:499
msgid "problem while logging out"
msgstr "problema durante il logout"

#: static/ui/nodeshot/js/utils.js:255
msgid "ok"
msgstr "ok"

#: static/ui/nodeshot/js/views/layer-list.js:30
msgid "Layer list"
msgstr "Lista layer"
Expand All @@ -69,6 +81,12 @@ msgstr "non ancora implementato"
msgid "Add node"
msgstr "Aggiungi nodo"

#: static/ui/nodeshot/js/views/node-details.js:241
#: static/ui/nodeshot/js/views/node-details.js:323
#: static/ui/nodeshot/js/views/node-details.js:472
msgid "error"
msgstr "errore"

#: static/ui/nodeshot/js/views/node-details.js:408
msgid "Edit"
msgstr "Modifica"
Expand All @@ -81,10 +99,6 @@ msgstr "Salva"
msgid "drag to change coordinates"
msgstr "trascina per cambiare le coordinate"

#: static/ui/nodeshot/js/views/node-details.js:472
msgid "error"
msgstr "errore"

#: static/ui/nodeshot/js/views/node-list.js:52
msgid "Node list"
msgstr "Lista nodi"
Expand Down
4 changes: 1 addition & 3 deletions nodeshot/ui/default/static/ui/nodeshot/js/app.js
Expand Up @@ -217,9 +217,7 @@

}).done(function (response) {
$('#signup-modal').modal('hide');
$.createModal({
message: 'sent confirmation mail'
});
$.createModal({ message: gettext('confirmation mail sent') });
});
});

Expand Down
4 changes: 1 addition & 3 deletions nodeshot/ui/default/static/ui/nodeshot/js/models.js
Expand Up @@ -496,9 +496,7 @@

$.post(Ns.url('account/logout/')).error(function () {
// TODO: improve!
$.createModal({
message: 'problem while logging out'
});
$.createModal({ message: gettext('problem while logging out') });
}).done(function () {
// trigger custom event
self.trigger('loggedout');
Expand Down
2 changes: 1 addition & 1 deletion nodeshot/ui/default/static/ui/nodeshot/js/utils.js
Expand Up @@ -252,7 +252,7 @@
},
options = $.extend({
message: '',
successMessage: 'ok',
successMessage: gettext('ok'),
successAction: function () {},
defaultMessage: null,
defaultAction: function () {}
Expand Down
Expand Up @@ -238,7 +238,7 @@
// rollback in case of error
.error(function(http){
self.model.set('relationships', backup);
$.createModal({ message: 'error' });
$.createModal({ message: gettext('error') });
});
},

Expand Down Expand Up @@ -320,7 +320,7 @@
self.model.set('relationships', relationships);
self.model.trigger('change');
// display error
$.createModal({ message: 'error' });
$.createModal({ message: gettext('error') });
});
},

Expand Down

0 comments on commit b962fb9

Please sign in to comment.