String changes

This commit is contained in:
Kovid Goyal 2021-03-27 20:39:10 +05:30
parent b3ba942ce6
commit 3848fb45d0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
21 changed files with 24 additions and 24 deletions

View File

@ -39,7 +39,7 @@
:: bug fixes
- [1920613] MOBI Output: Fix latest kindle firmware not displaying select publisher font option for calibre produced azw3 files
- [1920613] MOBI Output: Fix latest Kindle firmware not displaying select publisher font option for calibre produced AZW3 files
- [1919033] E-book viewer: Fix errors when viewing books with mathematics that are split over multiple internal files

View File

@ -566,7 +566,7 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine
if (wcslen(fdest) > 58) {
_snwprintf_s(buf, 4*MAX_PATH, _TRUNCATE,
L"Path to Calibre Portable (%s) too long. Must be less than 59 characters.", fdest);
L"Path to Calibre Portable (%s) too long. It must be less than 59 characters.", fdest);
if (!existing) RemoveDirectory(fdest);
show_error(buf);
tgt = get_directory_from_user();

View File

@ -102,7 +102,7 @@ get_app_dir(std::wstring& ans, std::wstring& exe_name) {
std::wstring msg;
msg.append(L"Path to Calibre Portable (");
msg.append(ans);
msg.append(L") too long. Must be less than 59 characters.");
msg.append(L") too long. It must be less than 59 characters.");
show_error(msg.c_str());
return false;
}

View File

@ -838,7 +838,7 @@ to another standard page size or a completely custom size in the :guilabel:`PDF
section of the conversion dialog. If you are generating a PDF to be used on a
specific device, you can turn on the option to use the page size from the
:guilabel:`output profile` instead. So if your output profile is set to Kindle, calibre
will create a PDF with page size suitable for viewing on the small kindle
will create a PDF with page size suitable for viewing on the small Kindle
screen.
Headers and Footers

View File

@ -210,7 +210,7 @@ Follow these steps to find the problem:
no longer allows third party software to connect to their devices using a
USB cable. Instead use a wireless connection, via the calibre Content
server.
* If you are connecting a Kindle Fire HD or other Android device, read the note
* If you are connecting a Kindle Fire or other Android device, read the note
under :ref:`android_usb`.
* On macOS if you get permission errors when connecting a device to calibre, you can
fix that by looking under :guilabel:`System Preferences > Security and

View File

@ -25,7 +25,7 @@ Click the book you want to edit and then click the :guilabel:`Edit metadata` but
Downloading metadata
^^^^^^^^^^^^^^^^^^^^^
The nicest feature of the edit metadata dialog is its ability to automatically fill in many metadata fields by getting metadata from various websites. Currently, calibre uses isbndb.com, Google Books, Amazon and Library Thing. The metadata download can fill in Title, author, series, tags, rating, description and ISBN for you.
The nicest feature of the edit metadata dialog is its ability to automatically fill in many metadata fields by getting metadata from various websites. Currently, calibre uses Google Books and Amazon. The metadata download can fill in Title, author, series, tags, rating, description and ISBN for you.
To use the download, fill in the title and author fields and click the :guilabel:`Fetch metadata` button. calibre will present you with a list of books that most closely match the title and author. If you fill in the ISBN field first, it will be used in preference to the title and author. If no matches are found, try making your search a little less specific by including only some key words in the title and only the author last name.

View File

@ -469,7 +469,7 @@ In `GPM` the functions described in `Single Function Mode` all require an additi
var_0 = 'one';
var_1 = 'two';
var_3 = 'foo
var_2 = 'foo
* ``list_union(list1, list2, separator)`` -- return a list made by merging the items in ``list1`` and ``list2``, removing duplicate items using a case-insensitive comparison. If items differ in case, the one in ``list1`` is used. The items in ``list1`` and ``list2`` are separated by ``separator``, as are the items in the returned list. Aliases: ``merge_lists()``, ``list_union()``
* ``mod(x, y)`` -- returns the ``floor`` of the remainder of ``x / y``. Throws an exception if either ``x`` or ``y`` is not a number.

View File

@ -420,7 +420,7 @@ class DB(object):
if iswindows and len(self.library_path) + 4*self.PATH_LIMIT + 10 > 259:
raise ValueError(_(
'Path to library ({0}) too long. Must be less than'
'Path to library ({0}) too long. It must be less than'
' {1} characters.').format(self.library_path, 259-4*self.PATH_LIMIT-10))
exists = self._exists = os.path.exists(self.dbpath)
if not exists:
@ -428,7 +428,7 @@ class DB(object):
# allowed for max path lengths of 265 chars.
if (iswindows and len(self.library_path) > self.WINDOWS_LIBRARY_PATH_LIMIT):
raise ValueError(_(
'Path to library too long. Must be less than'
'Path to library too long. It must be less than'
' %d characters.')%self.WINDOWS_LIBRARY_PATH_LIMIT)
if read_only and os.path.exists(self.dbpath):

View File

@ -54,7 +54,7 @@ def main(opts, args, dbctx):
)
if iswindows and len(loc) > LibraryDatabase.WINDOWS_LIBRARY_PATH_LIMIT:
raise SystemExit(
_('Path to library too long. Must be less than'
_('Path to library too long. It must be less than'
' %d characters.') % LibraryDatabase.WINDOWS_LIBRARY_PATH_LIMIT
)
LibraryDatabase(loc, default_prefs=prefs)

View File

@ -307,7 +307,7 @@ def _config(): # {{{
# This option is no longer used. It remains for compatibility with upgrades
# so the value can be migrated
c.add_opt('tag_browser_hidden_categories', default=set(),
help=_('tag browser categories not to display'))
help=_('Tag browser categories not to display'))
c.add_opt
return ConfigProxy(c)

View File

@ -445,7 +445,7 @@ class ChooseLibraryAction(InterfaceAction):
newloc, show=True)
if (iswindows and len(newloc) > LibraryDatabase.WINDOWS_LIBRARY_PATH_LIMIT):
return error_dialog(self.gui, _('Too long'),
_('Path to library too long. Must be less than'
_('Path to library too long. It must be less than'
' %d characters.')%LibraryDatabase.WINDOWS_LIBRARY_PATH_LIMIT,
show=True)
if not os.path.exists(loc):
@ -505,7 +505,7 @@ class ChooseLibraryAction(InterfaceAction):
db = m.db
if (iswindows and len(db.library_path) > LibraryDatabase.WINDOWS_LIBRARY_PATH_LIMIT):
return error_dialog(self.gui, _('Too long'),
_('Path to library too long. Must be less than'
_('Path to library too long. It must be less than'
' %d characters. Move your library to a location with'
' a shorter path using Windows Explorer, then point'
' calibre to the new location and try again.')%

View File

@ -121,7 +121,7 @@ class ChooseLibrary(QDialog, Ui_Dialog):
if (iswindows and len(loc) >
LibraryDatabase.WINDOWS_LIBRARY_PATH_LIMIT):
error_dialog(self, _('Too long'),
_('Path to library too long. Must be less than'
_('Path to library too long. It must be less than'
' %d characters.')%LibraryDatabase.WINDOWS_LIBRARY_PATH_LIMIT,
show=True)
return False

View File

@ -102,7 +102,7 @@ class DeviceCategoryEditor(QDialog, Ui_DeviceCategoryEditor):
def _rename_tag(self, item):
if item is None:
error_dialog(self, _('No item selected'),
_('You must select one item from the list of Available items.')).exec_()
_('You must select one item from the list of available items.')).exec_()
return
self.available_tags.editItem(item)

View File

@ -305,7 +305,7 @@ class EximDialog(Dialog):
continue
if iswindows and len(newloc) > LibraryDatabase.WINDOWS_LIBRARY_PATH_LIMIT:
error_dialog(self, _('Too long'),
_('Path to library ({0}) too long. Must be less than'
_('Path to library ({0}) too long. It must be less than'
' {1} characters.').format(newloc, LibraryDatabase.WINDOWS_LIBRARY_PATH_LIMIT), show=True)
return False
if not os.path.isdir(newloc):

View File

@ -556,7 +556,7 @@ class TagListEditor(QDialog, Ui_TagListEditor):
indexes = self.table.selectionModel().selectedRows()
if not indexes:
error_dialog(self, _('No item selected'),
_('You must select one item from the list of Available items.')).exec_()
_('You must select one item from the list of available items.')).exec_()
return
if not confirm(
@ -581,7 +581,7 @@ class TagListEditor(QDialog, Ui_TagListEditor):
def _rename_tag(self, item):
if item is None:
error_dialog(self, _('No item selected'),
_('You must select one item from the list of Available items.')).exec_()
_('You must select one item from the list of available items.')).exec_()
return
for col_zero_item in self.table.selectedItems():
if col_zero_item.is_deleted:

View File

@ -99,7 +99,7 @@ def find_portable_library():
if len(lib) > 74:
error_dialog(None, _('Path too long'),
_("Path to Calibre Portable (%s) "
'too long. Must be less than 59 characters.')%base, show=True)
'too long. It must be less than 59 characters.')%base, show=True)
raise AbortInit()
prefs.set('library_path', lib)

View File

@ -23,7 +23,7 @@ Use this dialog to define a 'plugboard' for a format (or all formats) and a devi
Often templates will contain simple references to composite columns, but this is not necessary. You can use any template in a source box that you can use elsewhere in calibre.
One possible use for a plugboard is to alter the title to contain series information. Another would be to change the author sort, something that MOBI users might do to force it to use the ';' that the kindle requires. A third would be to specify the language.</string>
One possible use for a plugboard is to alter the title to contain series information. Another would be to change the author sort, something that MOBI users might do to force it to use the ';' that the Kindle requires. A third would be to specify the language.</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>

View File

@ -62,7 +62,7 @@ class Tool(object):
def register_shortcut(self, qaction, unique_name, default_keys=(), short_text=None, description=None, **extra_data):
'''
Register a keyboard shortcut that will trigger the specified ``qaction``. This keyboard shortcut
will become automatically customizable by the user in the Keyboard section of the editor preferences.
will become automatically customizable by the user in the Keyboard shortcuts section of the editor preferences.
:param qaction: A QAction object, it will be triggered when the
configured key combination is pressed by the user.

View File

@ -766,7 +766,7 @@ class LibraryPage(QWizardPage, LibraryUI):
if x:
if (iswindows and len(x) > LibraryDatabase.WINDOWS_LIBRARY_PATH_LIMIT):
return error_dialog(self, _('Too long'),
_('Path to library too long. Must be less than'
_('Path to library too long. It must be less than'
' %d characters.')%(LibraryDatabase.WINDOWS_LIBRARY_PATH_LIMIT),
show=True)
if not os.path.exists(x):

View File

@ -1160,7 +1160,7 @@ def get_appdata():
'summary':_('Edit the text and styles inside e-books'),
'description':(
_('The calibre E-book editor allows you to edit the text and styles inside the book with a live preview of your changes.'),
_('It can edit books in both the EPUB and AZW3 (kindle) formats. It includes various useful tools for checking the book for errors, editing the Table of Contents, performing automated cleanups, etc.'), # noqa
_('It can edit books in both the EPUB and AZW3 (Kindle) formats. It includes various useful tools for checking the book for errors, editing the Table of Contents, performing automated cleanups, etc.'), # noqa
),
'screenshots':(
(1408, 792, 'https://lh5.googleusercontent.com/-M2MAVc3A8e4/UvHMWqGRa8I/AAAAAAAAATA/cecQeWUYBVs/w1408-h792-no/edit-default.png',),

View File

@ -431,7 +431,7 @@ class BuiltinListSplit(BuiltinFormatterFunction):
"of the value in the list. The first item has position 0 (zero). "
"The function returns the last element in the list. "
"Example: split('one:two:foo', ':', 'var') is equivalent "
"to var_0 = 'one'; var_1 = 'two'; var_3 = 'foo'.")
"to var_0 = 'one'; var_1 = 'two'; var_2 = 'foo'.")
def evaluate(self, formatter, kwargs, mi, locals, list_val, sep, id_prefix):
l = [v.strip() for v in list_val.split(sep)]