Commit cf8391e0 authored by Antoni Bella Pérez's avatar Antoni Bella Pérez 🚵🏻
Browse files

GUI l10n improves

* Add @title:window helpers
parent 6b9607fb
......@@ -127,7 +127,7 @@ class RulesetDiffer(QDialog):
layout.addLayout(cmdLayout)
self.setLayout(layout)
decorateWindow(self, i18n("Compare"))
decorateWindow(self, i18nc("@title:window", "Compare"))
self.setObjectName('RulesetDiffer')
self.cbRuleset1.currentIndexChanged.connect(self.leftRulesetChanged)
......
......@@ -109,7 +109,7 @@ class Games(QDialog):
super(Games, self).__init__(parent)
self.selectedGame = None
self.onlyPending = True
decorateWindow(self, i18nc('kajongg', 'Games'))
decorateWindow(self, i18nc("@title:window" "Games"))
self.setObjectName('Games')
self.resize(700, 400)
self.model = GamesModel()
......
......@@ -485,7 +485,7 @@ class KStandardAction:
action = QAction(mainWindow)
action.triggered.connect(slot)
action.setText(i18n('Configure &Kajongg'))
action.setText(i18n('Configure &Kajongg...'))
action.setIcon(KIcon('configure'))
action.setIconText(i18n('Configure'))
actionCollection.addAction('options_configure', action)
......
......@@ -403,7 +403,7 @@ class AddUserDialog(KDialog):
def __init__(self, url, username, password):
KDialog.__init__(self)
decorateWindow(self, i18n('Create User Account'))
decorateWindow(self, i18nc("@title:window", "Create User Account"))
self.setButtons(KDialog.ButtonCode(KDialog.Ok | KDialog.Cancel))
vbox = QVBoxLayout()
grid = QFormLayout()
......
......@@ -493,7 +493,7 @@ class RulesetSelector(QWidget):
def setupUi(self):
"""layout the window"""
decorateWindow(self, i18n('Customize rulesets'))
decorateWindow(self, i18nc("@title:window", "Customize rulesets"))
self.setObjectName('Rulesets')
hlayout = QHBoxLayout(self)
v1layout = QVBoxLayout()
......
......@@ -50,7 +50,7 @@ class SwapDialog(QMessageBox):
def __init__(self, swappers):
QMessageBox.__init__(self)
decorateWindow(self, i18n("Swap Seats"))
decorateWindow(self, i18nc("@title:window", "Swap Seats"))
self.setText(
i18n("By the rules, %1 and %2 should now exchange their seats. ",
swappers[0].name, swappers[1].name))
......@@ -67,7 +67,7 @@ class SelectPlayers(SelectRuleset):
def __init__(self):
SelectRuleset.__init__(self)
Players.load()
decorateWindow(self, i18n('Select four players'))
decorateWindow(self, i18nc("@title:window", "Select four players"))
self.names = None
self.nameWidgets = []
for idx, wind in enumerate(Wind.all4):
......
......@@ -572,7 +572,7 @@ class ExplainView(QListView):
def __init__(self, scene):
QListView.__init__(self)
self.scene = scene
decorateWindow(self, i18n('Explain Scores').replace('&', ''))
decorateWindow(self, i18nc("@title:window", "Explain Scores").replace('&', ''))
self.setGeometry(0, 0, 300, 400)
self.model = QStringListModel()
self.setModel(self.model)
......@@ -808,7 +808,7 @@ class ScoringDialog(QWidget):
def __init__(self, scene):
QWidget.__init__(self)
self.scene = scene
decorateWindow(self, i18n('Scoring for this Hand'))
decorateWindow(self, i18nc("@title:window", "Scoring for this Hand"))
self.nameLabels = [None] * 4
self.spValues = [None] * 4
self.windLabels = [None] * 4
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment