Skip to content

Commit

Permalink
More string fixes and make a few more available for translation
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ committed Dec 11, 2022
1 parent 6a4684b commit 9f127b2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 24 deletions.
45 changes: 22 additions & 23 deletions python/plugins/db_manager/db_plugins/oracle/info_model.py
Expand Up @@ -76,10 +76,10 @@ def spatialInfo(self):
HtmlParagraph(
QApplication.translate(
"DBManagerPlugin",
(u"<warning> ALL_SDO_GEOM_METADATA"
u" view doesn't exist!\n"
u"This view is essential for many"
u"GIS applications for enumeration of tables."))))
"<warning> ALL_SDO_GEOM_METADATA"
" view doesn't exist!\n"
"This view is essential for many"
" GIS applications for enumeration of tables.")))

return ret

Expand Down Expand Up @@ -176,8 +176,8 @@ def generalInfo(self):
"DBManagerPlugin", "Privileges:"),
QApplication.translate(
"DBManagerPlugin",
(u"<warning> This user doesn't have usage privileges"
u"for this schema!"))))
"<warning> This user doesn't have usage privileges"
" for this schema!")))
else:
table_priv = self.table.database().connector.getTablePrivileges(
(self.table.schemaName(), self.table.name))
Expand Down Expand Up @@ -244,9 +244,9 @@ def getSpatialInfo(self):
ret.append(HtmlParagraph(
QApplication.translate(
"DBManagerPlugin",
(u"<warning> ALL_SDO_GEOM_METADATA table doesn't exist!\n"
u"This table is essential for many GIS"
u"applications for enumeration of tables."))))
"<warning> ALL_SDO_GEOM_METADATA table doesn't exist!\n"
"This table is essential for many GIS"
" applications for enumeration of tables.")))

return ret

Expand Down Expand Up @@ -378,10 +378,10 @@ def triggersDetails(self):
HtmlParagraph(
QApplication.translate(
"DBManagerPlugin",
(u'<a href="action:triggers/enable">'
u'Enable all triggers</a> / '
u'<a href="action:triggers/disable">'
u'Disable all triggers</a>'))))
'<a href="action:triggers/enable">'
'Enable all triggers</a> / '
'<a href="action:triggers/disable">'
'Disable all triggers</a>')))

return ret

Expand Down Expand Up @@ -509,10 +509,9 @@ def getMViewInfo(self):
tbl.append((QApplication.translate("DBManagerPlugin",
"Use no index:"),
values[9]))
tbl.append((QApplication.translate(
"DBManagerPlugin",
(u'<a href="action:mview/refresh">Refresh the materialized view</a>')),
u""))
tbl.append(('<a href="action:mview/refresh">{0}</a>'.format(
QApplication.translate("DBManagerPlugin", "Refresh the materialized view")),
""))
ret.append(HtmlTable(tbl))

return ret
Expand Down Expand Up @@ -644,9 +643,9 @@ def spatialInfo(self):
HtmlParagraph(
QApplication.translate(
"DBManagerPlugin",
(u'<warning> Metadata extent is different from'
u'real extent. You should <a href="action:extent'
u'/update">update it</a>!'))))
'<warning> Metadata extent is different from'
' real extent. You should <a href="action:extent'
'/update">update it</a>!')))

# is there an entry in geometry_columns?
if self.table.geomType.lower() == 'geometry':
Expand All @@ -663,8 +662,8 @@ def spatialInfo(self):
HtmlParagraph(
QApplication.translate(
"DBManagerPlugin",
(u'<warning> No spatial index defined (<a href='
u'"action:spatialindex/create">'
u'create it</a>).'))))
'<warning> No spatial index defined (<a href='
'"action:spatialindex/create">'
'create it</a>).')))

return ret
2 changes: 1 addition & 1 deletion src/ui/editorwidgets/qgsrelationreferenceconfigdlgbase.ui
Expand Up @@ -122,7 +122,7 @@
<item row="5" column="0" colspan="3">
<widget class="QCheckBox" name="mCbxChainFilters">
<property name="toolTip">
<string>When activated, the filters will restrict the choices of fields to options that are (MISSING WORDS?)</string>
<string>When activated, filters restrict the option of subsequent filters based on the selection of a previous filter.</string>
</property>
<property name="text">
<string>Chain filters</string>
Expand Down

0 comments on commit 9f127b2

Please sign in to comment.