Skip to content

Commit

Permalink
string changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 15, 2024
1 parent a70e028 commit 5c2829f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions src/calibre/gui2/dialogs/ff_doc_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
@author: chaley
'''

from qt.core import (QApplication, QCheckBox, QComboBox, QFrame, QLabel, QGridLayout,
QHBoxLayout, QPlainTextEdit, QPushButton, QSize, QTimer)
from qt.core import QApplication, QCheckBox, QComboBox, QFrame, QGridLayout, QHBoxLayout, QLabel, QPlainTextEdit, QPushButton, QSize, QTimer

from calibre.constants import iswindows
from calibre.gui2 import gprefs
Expand Down Expand Up @@ -78,7 +77,7 @@ def setup_ui(self):
hl.addWidget(f)
f.currentIndexChanged.connect(self.functions_box_index_changed)

so = self.show_in_english_cb = QCheckBox(_('Show original English'))
so = self.show_in_english_cb = QCheckBox(_('Show as &English'))
so.stateChanged.connect(self.first_row_checkbox_changed)
hl.addWidget(so)

Expand Down
2 changes: 1 addition & 1 deletion src/calibre/gui2/dialogs/template_dialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ Selecting a function will show only that function's documentation</string>
<item>
<widget class="QPushButton" name="general_info_button">
<property name="text">
<string>General &amp;Information</string>
<string>General &amp;information</string>
</property>
<property name="toolTip">
<string>Click this button to see general help about using template functions
Expand Down
4 changes: 2 additions & 2 deletions src/calibre/gui2/preferences/template_functions.ui
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<item>
<widget class="QPushButton" name="st_doc_edit_button">
<property name="text">
<string>Doc Editor</string>
<string>Edit docs</string>
</property>
<property name="toolTip">
<string>Open an editor for function documentation</string>
Expand Down Expand Up @@ -225,7 +225,7 @@ a new related user defined function.&lt;/p&gt;</string>
<item>
<widget class="QPushButton" name="doc_edit_button">
<property name="text">
<string>Doc Editor</string>
<string>Edit docs</string>
</property>
<property name="toolTip">
<string>Open an editor for function documentation</string>
Expand Down
4 changes: 2 additions & 2 deletions src/calibre/gui2/tweak_book/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
from calibre.gui2.tweak_book.widgets import Dialog
from calibre.gui2.webengine import RestartingWebEngineView
from calibre.utils.icu import numeric_sort_key, primary_contains
from calibre.utils.localization import calibre_langcode_to_name, canonicalize_lang
from calibre.utils.localization import calibre_langcode_to_name, canonicalize_lang, ngettext
from calibre.utils.unicode_names import character_name_from_code
from calibre.utils.webengine import secure_webengine
from polyglot.builtins import as_bytes, iteritems
Expand Down Expand Up @@ -265,7 +265,7 @@ def restore_table(self, name, sort_column=0, sort_order=Qt.SortOrder.AscendingOr

class FilesModel(FileCollection):

COLUMN_HEADERS = (_('Folder'), _('Name'), _('Size (KB)'), _('Type'), _('Word count'))
COLUMN_HEADERS = (ngettext('Folder', 'Folders', 1), _('Name'), _('Size (KB)'), _('Type'), _('Word count'))
alignments = Qt.AlignmentFlag.AlignLeft, Qt.AlignmentFlag.AlignLeft, Qt.AlignmentFlag.AlignRight, Qt.AlignmentFlag.AlignLeft, Qt.AlignmentFlag.AlignRight
CATEGORY_NAMES = {
'image':_('Image'),
Expand Down

0 comments on commit 5c2829f

Please sign in to comment.