changeset d143c9fa9c8f in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=d143c9fa9c8f
description:
        Add missing end dot on translatable strings

        issue8670
        review252211037
diffstat:

 src/rpc.js    |   2 +-
 src/screen.js |  11 ++++++-----
 src/window.js |   5 +++--
 3 files changed, 10 insertions(+), 8 deletions(-)

diffs (64 lines):

diff -r ac02aca5e3d7 -r d143c9fa9c8f src/rpc.js
--- a/src/rpc.js        Sun Sep 29 23:43:37 2019 +0200
+++ b/src/rpc.js        Mon Sep 30 09:40:27 2019 +0200
@@ -33,7 +33,7 @@
         var ajax_success = function(data, status_, query) {
             if (data === null) {
                 Sao.common.warning.run('',
-                        Sao.i18n.gettext('Unable to reach the server'));
+                        Sao.i18n.gettext('Unable to reach the server.'));
                 dfd.reject();
             } else if (data.error) {
                 var name, msg, description;
diff -r ac02aca5e3d7 -r d143c9fa9c8f src/screen.js
--- a/src/screen.js     Sun Sep 29 23:43:37 2019 +0200
+++ b/src/screen.js     Mon Sep 30 09:40:27 2019 +0200
@@ -1724,20 +1724,21 @@
                     if ((invalid == 'required') ||
                             (Sao.common.compare(invalid,
                                                 [[field, '!=', null]]))) {
-                        fields.push(Sao.i18n.gettext('"%1" is required', 
string));
+                        fields.push(Sao.i18n.gettext(
+                                '"%1" is required.', string));
                     } else if (invalid == 'domain') {
                         fields.push(Sao.i18n.gettext(
-                                    '"%1" is not valid according to its 
domain',
-                                    string));
+                                '"%1" is not valid according to its domain.',
+                            string));
                     } else if (invalid == 'children') {
                         fields.push(Sao.i18n.gettext(
-                                'The values of "%1" are not valid', string));
+                                'The values of "%1" are not valid.', string));
                     } else {
                         if (domain_parser.stringable(invalid)) {
                             fields.push(domain_parser.string(invalid));
                         } else {
                             fields.push(Sao.i18n.gettext(
-                                    '"%1" is not valid according to its 
domain'),
+                                    '"%1" is not valid according to its 
domain.'),
                                 string);
                         }
                     }
diff -r ac02aca5e3d7 -r d143c9fa9c8f src/window.js
--- a/src/window.js     Sun Sep 29 23:43:37 2019 +0200
+++ b/src/window.js     Mon Sep 30 09:40:27 2019 +0200
@@ -1279,7 +1279,7 @@
             var fname = this.file_input.val();
             if(!fname) {
                 Sao.common.message.run(
-                    Sao.i18n.gettext('You must select an import file first'));
+                    Sao.i18n.gettext('You must select an import file first.'));
                 return;
             }
             this.fields_selected.empty();
@@ -1291,7 +1291,8 @@
                 encoding: this.el_csv_encoding.val(),
                 error: function(err, file, inputElem, reason) {
                     Sao.common.warning(
-                        Sao.i18n.gettext('Error occured in loading the file'));
+                        Sao.i18n.gettext(
+                            'An error occured in loading the file.'));
                 },
                 complete: function(results) {
                     results.data[0].forEach(function(word) {

Reply via email to