mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-07-29 23:58:09 -05:00
Fixed gettext usage:
- fixed gettext usage with .format() only for original text with %s
- fixed typos
- fixed translation yes/no buttons in the dialog.
- improved translating sentences without "connecting" words (eg. see web/pgadmin/dashboard/static/js/dashboard.js,
word 'cancel' needs to be translated in the Czech language as 'zrušit' but in another sentence as 'zrušení')
- added gettext for text translations.
This commit is contained in:
@@ -295,9 +295,8 @@ class TablespaceView(PGChildNodeView):
|
||||
status=410,
|
||||
success=0,
|
||||
errormsg=gettext(
|
||||
"Could not find the required parameter (%s)." %
|
||||
required_args[arg]
|
||||
)
|
||||
"Could not find the required parameter (%s).") %
|
||||
required_args[arg]
|
||||
)
|
||||
|
||||
# To format privileges coming from client
|
||||
|
||||
@@ -261,7 +261,7 @@ define('pgadmin.node.tablespace', [
|
||||
self.__internal.buttons[2].element.disabled = false;
|
||||
} else {
|
||||
self.__internal.buttons[2].element.disabled = true;
|
||||
this.errorModel.set('tblspc', gettext('Please select tablespace'));
|
||||
this.errorModel.set('tblspc', gettext('Please select tablespace.'));
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user