Fix #1883481 [[Enhancement] Translate devices in the Welcome wizard](https://bugs.launchpad.net/calibre/+bug/1883481)

This commit is contained in:
Kovid Goyal 2020-06-15 21:39:51 +05:30
parent 54d14349e2
commit a9f9f8088e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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'