Эх сурвалжийг харах

[core] Fix various problems of i18n extraction

Romain Rigaux 13 жил өмнө
parent
commit
10c9cf26cc

+ 1 - 1
apps/beeswax/src/beeswax/create_table.py

@@ -311,7 +311,7 @@ def _delim_preview(fs, file_form, encoding, file_types, delimiters):
                                             file_type=file_type,
                                             n_cols=n_cols))
   if not delim_form.is_valid():
-    assert False, _('Internal error when constructing the delimiter form: %(error)s' % {'error': delim_form.errors})
+    assert False, _('Internal error when constructing the delimiter form: %(error)s') % {'error': delim_form.errors}
   return fields_list, n_cols, delim_form
 
 

+ 4 - 4
apps/filebrowser/src/filebrowser/views.py

@@ -1072,9 +1072,9 @@ def _upload_file(request):
             except Exception:
               pass
             if already_exists:
-                msg = _('Destination %(name)s already exists.' % {'name': dest})
+                msg = _('Destination %(name)s already exists.')  % {'name': dest}
             else:
-                msg = _('Copy to "%(name)s failed: %(error)s') % {'name': dest, 'error': ex}
+                msg = _('Copy to %(name)s failed: %(error)s') % {'name': dest, 'error': ex}
             raise PopupException(msg)
 
         return {
@@ -1155,9 +1155,9 @@ def _upload_archive(request):
             except Exception:
               pass
             if already_exists:
-                msg = _('Destination %(name)s already exists.' % {'name': dest})
+                msg = _('Destination %(name)s already exists.') % {'name': dest}
             else:
-                msg = _('Copy to "%(name)s failed: %(error)s') % {'name': dest, 'error': ex}
+                msg = _('Copy to %(name)s failed: %(error)s') % {'name': dest, 'error': ex}
             raise PopupException(msg)
 
         return {

+ 3 - 3
apps/oozie/src/oozie/models.py

@@ -51,7 +51,7 @@ LOG = logging.getLogger(__name__)
 
 PATH_MAX = 512
 name_validator = RegexValidator(regex='[a-zA-Z_][\-_a-zA-Z0-9]{1,39}',
-                                message=_('Enter a valid value: combination of 2 and 40 letters and digits starting by a letter'))
+                                message=_('Enter a valid value: combination of 2 - 40 letters and digits starting by a letter'))
 
 
 """
@@ -879,7 +879,7 @@ class DistCp(Action):
                                            'This should be used exclusively for directory cleanup'))
   job_xml = models.CharField(max_length=PATH_MAX, default='', blank=True, verbose_name=_t('Job XML'),
                              help_text=_t('Refer to a Hadoop JobConf job.xml file bundled in the workflow deployment directory. '
-                                          'Properties specified in the Job Properteis element override properties specified in the '
+                                          'Properties specified in the Job Properties element override properties specified in the '
                                           'files specified in the Job XML element.'))
 
 
@@ -1248,7 +1248,7 @@ class DatasetManager(models.Manager):
 
 class Dataset(models.Model):
   name = models.CharField(max_length=40, validators=[name_validator], verbose_name=_t('Name'),
-                          help_text=_t('The name of the dataset.)'))
+                          help_text=_t('The name of the dataset.'))
   description = models.CharField(max_length=1024, blank=True, default='', verbose_name=_t('Description'),
                                  help_text=_t('A description of the dataset.'))
   start = models.DateTimeField(default=datetime.today(), verbose_name=_t('Start'),

+ 1 - 1
desktop/libs/liboozie/src/liboozie/conf.py

@@ -67,7 +67,7 @@ def config_validator():
   for cluster in get_all_hdfs().values():
     res.extend(validate_path(REMOTE_DEPLOYMENT_DIR, is_dir=True, fs=cluster,
                              message=_('The deployment directory of Oozie workflows does not exist. '
-                                       'Run "Setup App" on the Oozie workflow page.')))
+                                       'Run "Setup Example" on the Oozie workflow page.')))
     res.extend(validate_path(ConfigMock('/user/oozie/share/lib'), is_dir=True, fs=cluster,
                              message=_('Oozie Share Lib not installed in default location.')))