Exemplo n.º 1
0
 def __init__(self, archive, **kwargs):
     super(GuideLoadFailedWarning, self).__init__(**kwargs)
     self.message = transl.translate(
         '"[b]{}[/b]"\n guide load failed!').format(
             os.path.basename(archive))
     self.title = transl.translate('Error')
     self.ok_button_text = transl.translate('OK')
Exemplo n.º 2
0
 def __init__(self, guide_name, guide_title, **kwargs):
     super(RemoveGuideWarningPopup, self).__init__(**kwargs)
     self.guide_name = guide_name
     self.title = transl.translate('Warning')
     self.message = (transl.translate('Delete guide') +
                     '\n"[b]{}[/b]"?').format(guide_title)
     self.cancel_button_text = transl.translate('Cancel')
     self.delete_button_text = transl.translate('Delete')
Exemplo n.º 3
0
 def _translate_ui(self, *args):
     self.search_button_title = transl.translate('Search')
     self.categories_button_title = transl.translate('Categories')
     self.tags_button_title = transl.translate('Tags')
     self.articles_button_title = transl.translate('Articles')
     self.bookmarks_button_title = transl.translate('Bookmarks')
     self.guides_button_title = transl.translate('Guides')
     self.settings_button_title = transl.translate('Settings')
Exemplo n.º 4
0
 def __init__(self, guide_name, guide_icon, guide_title, guide_description,
              guide_lang, guide_from_place, guide_to_place, **kwargs):
     super(GuidesMenuItem, self).__init__(**kwargs)
     self.guide_name = guide_name
     self.guide_icon = guide_icon
     self.guide_title = guide_title
     self.guide_description = guide_description
     self.guide_lang = guide_lang
     self.guide_from_place = guide_from_place
     self.guide_from_place_label = (transl.translate('From') +
                                    ': [b]{}[/b]').format(
                                        self.guide_from_place)
     self.guide_to_place = guide_to_place
     self.guide_to_place_label = (transl.translate('To') +
                                  ': [b]{}[/b]').format(self.guide_to_place)
     self.is_active_guide = (guides.active_guide is not None
                             and self.guide_name
                             == guides.active_guide.guide_name)
     ev.bind(on_active_guide=self._check_is_guide_active)
     ev.bind(on_ui_lang_code=self._translate_ui)
Exemplo n.º 5
0
 def _translate_ui(self, *args):
     self.screen_title = transl.translate('Guide')
     self.lang_name_label = transl.translate(
         'Language') + ': [b]{}[/b]'.format(self.guide_lang[0])
     self.from_place_label = transl.translate(
         'From') + ': [b]{}[/b]'.format(self.guide_from_place)
     self.to_place_label = transl.translate('To') + ': [b]{}[/b]'.format(
         self.guide_to_place)
     self.activate_guide_button_text = transl.translate(
         'Activate the guide')
     self.guide_is_active_label_text = transl.translate(
         'The guide is active')
     self.delete_guide_button_text = transl.translate('Delete guide')
Exemplo n.º 6
0
 def _translate_ui(self, *args):
     self.screen_title = transl.translate('Tags')
Exemplo n.º 7
0
 def _translate_ui(self, *args):
     self.screen_title = transl.translate('Tag')
     self.tagged_categories_subtitle = transl.translate('Tagged categories')
     self.tagged_articles_subtitle = transl.translate('Tagged articles')
Exemplo n.º 8
0
 def _translate_ui(self, *args):
     self.screen_title = transl.translate('Settings')
     self.app_lang_subtitle = transl.translate('Application language')
Exemplo n.º 9
0
 def _translate_ui(self, *args):
     self.screen_title = transl.translate('Articles')
Exemplo n.º 10
0
 def _translate_ui(self, *args):
     self.screen_title = transl.translate('Article')
     self.related_categories_subtitle = transl.translate(
         'Related categories')
     self.related_articles_subtitle = transl.translate('Related articles')
Exemplo n.º 11
0
 def _translate_ui(self, *args):
     self.screen_title = transl.translate('Categories')
Exemplo n.º 12
0
 def _translate_ui(self, *args):
     self.title = transl.translate('Warning')
     self.prompt_text = transl.translate('Do you want to leave the app?')
     self.cancel_button_text = transl.translate('Cancel')
     self.quit_button_text = transl.translate('Quit')
Exemplo n.º 13
0
 def _translate_ui(self, *args):
     self.screen_title = transl.translate('Bookmarks')
Exemplo n.º 14
0
 def _translate_ui(self, *args):
     self.screen_title = transl.translate('Guides')
     self.import_button_text = transl.translate('Import guide')
Exemplo n.º 15
0
 def _translate_ui(self, *args):
     self.guide_from_place_label = (transl.translate('From') +
                                    ': [b]{}[/b]').format(
                                        self.guide_from_place)
     self.guide_to_place_label = (transl.translate('To') +
                                  ': [b]{}[/b]').format(self.guide_to_place)
Exemplo n.º 16
0
 def __init__(self, **kwargs):
     super(LoadGuidePopup, self).__init__(**kwargs)
     self.title = transl.translate('Select guide (zip) archive file')
     self.cancel_button_text = transl.translate('Cancel')
     self.load_button_text = transl.translate('Load')