From a9f9f8088e9a701f1a9abc369ef92598f2ecbbcd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 15 Jun 2020 21:39:51 +0530 Subject: [PATCH] Fix #1883481 [[Enhancement] Translate devices in the Welcome wizard](https://bugs.launchpad.net/calibre/+bug/1883481) --- src/calibre/gui2/wizard/__init__.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/calibre/gui2/wizard/__init__.py b/src/calibre/gui2/wizard/__init__.py index 3590242bd7..df782af96f 100644 --- a/src/calibre/gui2/wizard/__init__.py +++ b/src/calibre/gui2/wizard/__init__.py @@ -68,14 +68,14 @@ class Device(object): class Smartphone(Device): id = 'smartphone' - name = 'Smartphone' + name = _('Smartphone') supports_color = True class Tablet(Device): id = 'tablet' - name = 'iPad like tablet' + name = _('iPad like tablet') output_profile = 'tablet' supports_color = True @@ -84,7 +84,7 @@ class Kindle(Device): output_profile = 'kindle' output_format = 'MOBI' - name = 'Kindle Basic (all models)' + name = _('Kindle Basic (all models)') manufacturer = 'Amazon' id = 'kindle' @@ -116,7 +116,7 @@ class KindleDX(Kindle): class KindleFire(KindleDX): - name = 'Kindle Fire and Fire HD' + name = _('{0} and {1}').format('Kindle Fire', 'Fire HD') id = 'kindle_fire' output_profile = 'kindle_fire' supports_color = True @@ -137,14 +137,14 @@ class KindleVoyage(Kindle): class Sony505(Device): output_profile = 'sony' - name = 'All other SONY devices' + name = _('All other SONY devices') output_format = 'EPUB' manufacturer = 'SONY' id = 'prs505' class Kobo(Device): - name = 'Kobo and Kobo Touch Readers' + name = _('Kobo and Kobo Touch Readers') manufacturer = 'Kobo' output_profile = 'kobo' output_format = 'EPUB' @@ -152,7 +152,7 @@ class Kobo(Device): class KoboVox(Kobo): - name = 'Kobo Vox, Aura and Glo families' + name = _('Kobo Vox, Aura and Glo families') output_profile = 'tablet' id = 'kobo_vox' @@ -222,7 +222,7 @@ class SonyT3(Sony505): class Nook(Sony505): id = 'nook' - name = 'Nook and Nook Simple Reader' + name = _('{0} and {1}').format('Nook', 'Nook Simple Reader') manufacturer = 'Barnes & Noble' output_profile = 'nook' @@ -286,7 +286,7 @@ class BookeenDiva(CybookOpus): class PocketBook360(CybookOpus): manufacturer = 'PocketBook' - name = 'PocketBook 360 and newer models' + name = _('PocketBook 360 and newer models') id = 'pocketbook360' output_profile = 'cybook_opus' @@ -325,7 +325,7 @@ class iPhone(Device): class Android(Device): - name = 'Android phone' + name = _('Android phone') output_format = 'EPUB' manufacturer = 'Android' id = 'android' @@ -342,14 +342,14 @@ class Android(Device): class AndroidTablet(Android): - name = 'Android tablet' + name = _('Android tablet') id = 'android_tablet' output_profile = 'tablet' class AndroidPhoneWithKindle(Android): - name = 'Android phone with Kindle reader' + name = _('Android phone with Kindle reader') output_format = 'MOBI' id = 'android_phone_with_kindle' output_profile = 'kindle' @@ -365,7 +365,7 @@ class AndroidPhoneWithKindle(Android): class AndroidTabletWithKindle(AndroidPhoneWithKindle): - name = 'Android tablet with Kindle reader' + name = _('Android tablet with Kindle reader') id = 'android_tablet_with_kindle' output_profile = 'kindle_fire'