Skip to content

Commit

Permalink
Translations have been updated.
Browse files Browse the repository at this point in the history
*.ui files have been added to the vitables.pro file and *.ts files
have been updated. The first version of the Spanish translation is
complete.
  • Loading branch information
uvemas committed Nov 6, 2014
1 parent 0217f64 commit e3bb763
Show file tree
Hide file tree
Showing 6 changed files with 898 additions and 693 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
ViTables ChangeLog
==================
** November 06, 2014 **
Project file (i.e vitables.pro) and translations have all been updated.

** December 12, 2013 **
Context menus on views are now allowed which is a good thing for plugins.

Expand Down
12 changes: 12 additions & 0 deletions vitables.pro
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,15 @@ SOURCES = vitables/queries/query.py \
vitables/calculator/calculator.py \
vitables/calculator/calculator_dlg.py

FORMS = vitables/plugins/about_page.ui \
vitables/plugins/dbstreesort/dbs_tree_sort_page.ui \
vitables/plugins/timeseries/timeformatter_page.ui \
vitables/calculator/calculator.ui \
vitables/nodeprops/link_prop_dlg.ui \
vitables/nodeprops/group_prop_page.ui \
vitables/nodeprops/attr_prop_dlg.ui \
vitables/nodeprops/leaf_prop_page.ui \
vitables/vtwidgets/rename_dlg.ui \
vitables/vtwidgets/nodename_dlg.ui \
vitables/queries/query_dlg.ui \
vitables/preferences/settings_dlg.ui
33 changes: 19 additions & 14 deletions vitables/plugins/columnorg/columnar_org.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ def customizeView(self, datasheet):

if not isinstance(leaf, tables.Table):
cb = QtGui.QCheckBox(datasheet)
cb.setToolTip("Group Arrays into a unique view")
cb.setToolTip(translate('ArrayColsOrganizer',
"Group Arrays into a unique view",
'Checkbox tooltip text'))
datasheet.leaf_view.setCornerWidget(cb)
# Attributes for retrieving the state of the checkbox from the
# datasheet being customized
Expand Down Expand Up @@ -142,8 +144,7 @@ def helpAbout(self, parent):
'module_name': os.path.join(os.path.basename(__file__)),
'folder': os.path.join(os.path.dirname(__file__)),
'author': 'Vicent Mas <[email protected]>',
'comment': translate(
'ArraysColsOrganizer',
'comment': translate('ArrayColsOrganizer',
'<qt><p>Plugin that provides an alternative view for '
'arrays with the same number of rows. <p>'
'The user selects the arrays which he want to see in '
Expand Down Expand Up @@ -182,16 +183,16 @@ def addEntry(self):
QtGui.QIcon.On)

self.group_action = QtGui.QAction(
translate('ArrayColsOrganizer',
translate('MenuUpdater',
"&Group Arrays",
"Group separated arrays with the same number of rows"),
self,
shortcut=QtGui.QKeySequence.UnknownKey,
triggered=self.groupArrays,
icon=object_group_icon,
statusTip=translate(
'MenuUpdater', 'Use a unique widget to display Arrays as if '
'they where columns of a Table',
statusTip=translate('MenuUpdater',
"""Use a unique widget to display Arrays as if """
"""they where columns of a Table""",
"Status bar text for the Node -> Group Arrays action"))

object_ungroup_icon = QtGui.QIcon()
Expand All @@ -202,14 +203,14 @@ def addEntry(self):
QtGui.QIcon.On)

self.ungroup_action = QtGui.QAction(
translate('MenuUpdater', "&Ungroup Arrays",
translate('MenuUpdater',
"&Ungroup Arrays",
"Ungroup previously grouped arrays."),
self,
shortcut=QtGui.QKeySequence.UnknownKey,
triggered=self.ungroupArrays,
icon=object_ungroup_icon,
statusTip=translate(
'MenuUpdater',
statusTip=translate('MenuUpdater',
"""Ungroup previously grouped arrays.""",
"Status bar text for the Node -> Ungroup Arrays action"))

Expand Down Expand Up @@ -257,9 +258,11 @@ def updateNodeMenu(self):
if numrows.count(numrows[0]) == len(numrows):
self.group_action.setEnabled(True)
else:
print("""\nError: grouping arrays, operation cancelled. """
"""Not all the selected arrays have the same number """
"""of rows.""")
print(translate('MenuUpdater',
"""\nError: grouping arrays, operation cancelled. """
"""Not all the selected arrays have the same number """
"""of rows.""",
'An error message in the ArraysColsOrganizer plugin'))

def groupArrays(self):
"""Group a set of individual arrays into the same view widget.
Expand Down Expand Up @@ -505,7 +508,9 @@ def ungroupArrays(self):
datasheet.widget().verticalScrollBar().show()
datasheet.widget().verticalHeader().show()
cb = QtGui.QCheckBox(datasheet)
cb.setToolTip("Group Arrays into a unique view")
cb.setToolTip(translate('GroupedArrays',
"Group Arrays into a unique view",
'Checkbox tooltip'))
datasheet.leaf_view.setCornerWidget(cb)
# Attributes for retrieving the state of the checkbox from the
# datasheet being customized
Expand Down
Loading

0 comments on commit e3bb763

Please sign in to comment.