Merge pull request #437 from Arthur-Milchior/translationCorrection2
correct missing french translation
This commit is contained in:
commit
1fa1c4eb07
@ -457,6 +457,10 @@ group by day order by day"""
|
||||
self._line(
|
||||
i,
|
||||
_("Average answer time"),
|
||||
# T: For example, in the statistics line: " Average
|
||||
# answer time: 16.8s (3.6 cards/minute)", then
|
||||
# "%(a)0.1fs" represents "16.8s" and "%(b)s" represents
|
||||
# "3.6 cards/minutes")
|
||||
_("%(a)0.1fs (%(b)s)") % dict(a=(tot * 60) / total, b=text),
|
||||
)
|
||||
return self._lineTbl(i), int(tot)
|
||||
|
@ -1053,6 +1053,11 @@ class DownloaderInstaller(QObject):
|
||||
def _progress_callback(self, up: int, down: int) -> None:
|
||||
self.dl_bytes += down
|
||||
self.mgr.mw.progress.update(
|
||||
# T: "%(a)d" is the index of the element currently
|
||||
# downloaded. "%(b)d" is the number of element to download,
|
||||
# and "%(kb)0.2f" is the number of downloaded
|
||||
# kilobytes. This lead for example to "Downloading 3/5
|
||||
# (27KB)"
|
||||
label=_("Downloading %(a)d/%(b)d (%(kb)0.2fKB)...")
|
||||
% dict(a=len(self.log) + 1, b=len(self.ids), kb=self.dl_bytes / 1024)
|
||||
)
|
||||
|
@ -573,7 +573,7 @@ class Browser(QMainWindow):
|
||||
f = self.form
|
||||
f.previewButton.clicked.connect(self.onTogglePreview)
|
||||
f.previewButton.setToolTip(
|
||||
_("Preview Selected Card (%s)") % shortcut(_("Ctrl+Shift+P"))
|
||||
_("Preview Selected Card (%s)") % shortcut("Ctrl+Shift+P")
|
||||
)
|
||||
f.previewButton.setShortcut("Ctrl+Shift+P")
|
||||
|
||||
|
@ -29,9 +29,7 @@ class DeckChooser(QHBoxLayout):
|
||||
self.deck = QPushButton(clicked=self.onDeckChange)
|
||||
self.deck.setAutoDefault(False)
|
||||
self.deck.setToolTip(shortcut(_("Target Deck (Ctrl+D)")))
|
||||
s = QShortcut(
|
||||
QKeySequence(_("Ctrl+D")), self.widget, activated=self.onDeckChange
|
||||
)
|
||||
s = QShortcut(QKeySequence("Ctrl+D"), self.widget, activated=self.onDeckChange)
|
||||
self.addWidget(self.deck)
|
||||
# starting label
|
||||
if self.mw.col.conf.get("addToCur", True):
|
||||
|
@ -1086,7 +1086,7 @@ title="%s" %s>%s</button>""" % (
|
||||
m.actionAbout.triggered.connect(self.onAbout)
|
||||
m.actionUndo.triggered.connect(self.onUndo)
|
||||
if qtminor < 11:
|
||||
m.actionUndo.setShortcut(QKeySequence(_("Ctrl+Alt+Z")))
|
||||
m.actionUndo.setShortcut(QKeySequence("Ctrl+Alt+Z"))
|
||||
m.actionFullDatabaseCheck.triggered.connect(self.onCheckDB)
|
||||
m.actionCheckMediaDatabase.triggered.connect(self.onCheckMediaDB)
|
||||
m.actionDocumentation.triggered.connect(self.onDocumentation)
|
||||
|
@ -29,9 +29,7 @@ class ModelChooser(QHBoxLayout):
|
||||
self.models = QPushButton()
|
||||
# self.models.setStyleSheet("* { text-align: left; }")
|
||||
self.models.setToolTip(shortcut(_("Change Note Type (Ctrl+N)")))
|
||||
s = QShortcut(
|
||||
QKeySequence(_("Ctrl+N")), self.widget, activated=self.onModelChange
|
||||
)
|
||||
s = QShortcut(QKeySequence("Ctrl+N"), self.widget, activated=self.onModelChange)
|
||||
self.models.setAutoDefault(False)
|
||||
self.addWidget(self.models)
|
||||
self.models.clicked.connect(self.onModelChange)
|
||||
|
@ -170,7 +170,7 @@
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>1 10</string>
|
||||
<string notr="true">1 10</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
Reference in New Issue
Block a user