Merge pull request #437 from Arthur-Milchior/translationCorrection2

correct missing french translation
This commit is contained in:
Damien Elmes 2020-02-07 07:43:51 +10:00 committed by GitHub
commit 1fa1c4eb07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 14 additions and 9 deletions

View File

@ -457,6 +457,10 @@ group by day order by day"""
self._line( self._line(
i, i,
_("Average answer time"), _("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), _("%(a)0.1fs (%(b)s)") % dict(a=(tot * 60) / total, b=text),
) )
return self._lineTbl(i), int(tot) return self._lineTbl(i), int(tot)

View File

@ -1053,6 +1053,11 @@ class DownloaderInstaller(QObject):
def _progress_callback(self, up: int, down: int) -> None: def _progress_callback(self, up: int, down: int) -> None:
self.dl_bytes += down self.dl_bytes += down
self.mgr.mw.progress.update( 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)...") label=_("Downloading %(a)d/%(b)d (%(kb)0.2fKB)...")
% dict(a=len(self.log) + 1, b=len(self.ids), kb=self.dl_bytes / 1024) % dict(a=len(self.log) + 1, b=len(self.ids), kb=self.dl_bytes / 1024)
) )

View File

@ -573,7 +573,7 @@ class Browser(QMainWindow):
f = self.form f = self.form
f.previewButton.clicked.connect(self.onTogglePreview) f.previewButton.clicked.connect(self.onTogglePreview)
f.previewButton.setToolTip( 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") f.previewButton.setShortcut("Ctrl+Shift+P")

View File

@ -29,9 +29,7 @@ class DeckChooser(QHBoxLayout):
self.deck = QPushButton(clicked=self.onDeckChange) self.deck = QPushButton(clicked=self.onDeckChange)
self.deck.setAutoDefault(False) self.deck.setAutoDefault(False)
self.deck.setToolTip(shortcut(_("Target Deck (Ctrl+D)"))) self.deck.setToolTip(shortcut(_("Target Deck (Ctrl+D)")))
s = QShortcut( s = QShortcut(QKeySequence("Ctrl+D"), self.widget, activated=self.onDeckChange)
QKeySequence(_("Ctrl+D")), self.widget, activated=self.onDeckChange
)
self.addWidget(self.deck) self.addWidget(self.deck)
# starting label # starting label
if self.mw.col.conf.get("addToCur", True): if self.mw.col.conf.get("addToCur", True):

View File

@ -1086,7 +1086,7 @@ title="%s" %s>%s</button>""" % (
m.actionAbout.triggered.connect(self.onAbout) m.actionAbout.triggered.connect(self.onAbout)
m.actionUndo.triggered.connect(self.onUndo) m.actionUndo.triggered.connect(self.onUndo)
if qtminor < 11: if qtminor < 11:
m.actionUndo.setShortcut(QKeySequence(_("Ctrl+Alt+Z"))) m.actionUndo.setShortcut(QKeySequence("Ctrl+Alt+Z"))
m.actionFullDatabaseCheck.triggered.connect(self.onCheckDB) m.actionFullDatabaseCheck.triggered.connect(self.onCheckDB)
m.actionCheckMediaDatabase.triggered.connect(self.onCheckMediaDB) m.actionCheckMediaDatabase.triggered.connect(self.onCheckMediaDB)
m.actionDocumentation.triggered.connect(self.onDocumentation) m.actionDocumentation.triggered.connect(self.onDocumentation)

View File

@ -29,9 +29,7 @@ class ModelChooser(QHBoxLayout):
self.models = QPushButton() self.models = QPushButton()
# self.models.setStyleSheet("* { text-align: left; }") # self.models.setStyleSheet("* { text-align: left; }")
self.models.setToolTip(shortcut(_("Change Note Type (Ctrl+N)"))) self.models.setToolTip(shortcut(_("Change Note Type (Ctrl+N)")))
s = QShortcut( s = QShortcut(QKeySequence("Ctrl+N"), self.widget, activated=self.onModelChange)
QKeySequence(_("Ctrl+N")), self.widget, activated=self.onModelChange
)
self.models.setAutoDefault(False) self.models.setAutoDefault(False)
self.addWidget(self.models) self.addWidget(self.models)
self.models.clicked.connect(self.onModelChange) self.models.clicked.connect(self.onModelChange)

View File

@ -170,7 +170,7 @@
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text"> <property name="text">
<string>1 10</string> <string notr="true">1 10</string>
</property> </property>
</widget> </widget>
</item> </item>