Esempio n. 1
0
 def links(self):
     return [
         PluginLink(u'veekun', url('/'), children=[
             PluginLink(u'', None, children=[
                 PluginLink(u'About + contact',  url('/about')),
                 PluginLink(u'Chat',             url('/chat')),
                 PluginLink(u'Credits',          url('/props')),
                 PluginLink(u'Link or embed veekun', url('/link')),
                 PluginLink(u'Pokédex history',  url('/dex/history')),
             ]),
         ]),
     ]
Esempio n. 2
0
 def links(self):
     return [
         PluginLink(
             u"veekun",
             url("/"),
             children=[
                 PluginLink(
                     u"",
                     None,
                     children=[
                         PluginLink(u"About + contact", url("/about")),
                         PluginLink(u"Chat", url("/chat")),
                         PluginLink(u"Credits", url("/props")),
                         PluginLink(u"Link or embed veekun", url("/link")),
                         PluginLink(u"Projects", url("/projects")),
                         PluginLink(u"Pokédex history", url("/dex/history")),
                     ],
                 )
             ],
         )
     ]
Esempio n. 3
0
 def links(self):
     return [
         PluginLink(u'veekun',
                    url('/'),
                    children=[
                        PluginLink(u'',
                                   None,
                                   children=[
                                       PluginLink(u'About + contact',
                                                  url('/about')),
                                       PluginLink(u'Chat', url('/chat')),
                                       PluginLink(u'Credits',
                                                  url('/props')),
                                       PluginLink(u'Link or embed veekun',
                                                  url('/link')),
                                       PluginLink(u'Projects',
                                                  url('/projects')),
                                       PluginLink(u'Pokédex history',
                                                  url('/dex/history')),
                                   ]),
                    ]),
     ]
Esempio n. 4
0
    def links(self):
        _ = unicode  # _ is a no-op here, only used for marking the texts for translation

        # Wrap PluginLink do that the correct translator is given
        # (Unfortunately it's too early in the bootstrapping process to actually translate now)
        def TranslatablePluginLink(*args, **kwargs):
            kwargs.setdefault('translator_class', i18n.Translator)
            return PluginLink(*args, **kwargs)

        # All good, return the structure now
        return [
            TranslatablePluginLink(
                _(u'Pokédex'),
                url('/dex'),
                children=[
                    TranslatablePluginLink(
                        _(u'Core pages'),
                        None,
                        children=[
                            TranslatablePluginLink(
                                _(u'Pokémon'),
                                url(controller='dex', action='pokemon_list'),
                                i18n_context='plural',
                                children=[
                                    TranslatablePluginLink(
                                        _(u'Awesome search'),
                                        url(controller='dex_search',
                                            action='pokemon_search')),
                                ]),
                            TranslatablePluginLink(
                                _(u'Moves'),
                                url(controller='dex', action='moves_list'),
                                children=[
                                    TranslatablePluginLink(
                                        _(u'Awesome search'),
                                        url(controller='dex_search',
                                            action='move_search')),
                                ]),
                            TranslatablePluginLink(
                                _(u'Types'),
                                url(controller='dex', action='types_list')),
                            TranslatablePluginLink(
                                _(u'Abilities'),
                                url(controller='dex',
                                    action='abilities_list')),
                            TranslatablePluginLink(
                                _(u'Items'),
                                url(controller='dex', action='items_list')),
                            TranslatablePluginLink(
                                _(u'Natures'),
                                url(controller='dex', action='natures_list')),
                            TranslatablePluginLink(
                                _(u'Locations'),
                                url(controller='dex',
                                    action='locations_list')),
                        ]),
                    TranslatablePluginLink(
                        _(u'Gadgets'),
                        None,
                        children=[
                            TranslatablePluginLink(
                                _(u'Compare Pokémon'),
                                url(controller='dex_gadgets',
                                    action='compare_pokemon')),
                            TranslatablePluginLink(
                                _(u'Pokéball performance'),
                                url(controller='dex_gadgets',
                                    action='capture_rate')),
                            TranslatablePluginLink(
                                _(u'Stat calculator'),
                                url(controller='dex_gadgets',
                                    action='stat_calculator')),
                        ]),
                    TranslatablePluginLink(
                        _(u'Conquest'),
                        url('/dex/conquest'),
                        children=[
                            TranslatablePluginLink(
                                _(u'Pokémon'),
                                url(controller='dex_conquest',
                                    action='pokemon_list')),
                            TranslatablePluginLink(
                                _(u'Warriors'),
                                url(controller='dex_conquest',
                                    action='warriors_list')),
                            TranslatablePluginLink(
                                _(u'Abilties'),
                                url(controller='dex_conquest',
                                    action='abilities_list')),
                            TranslatablePluginLink(
                                _(u'Moves'),
                                url(controller='dex_conquest',
                                    action='moves_list')),
                            TranslatablePluginLink(
                                _(u'Warrior Skills'),
                                url(controller='dex_conquest',
                                    action='skills_list'))
                        ]),
                    TranslatablePluginLink(_(u'Etc.'),
                                           None,
                                           children=[
                                               TranslatablePluginLink(
                                                   _(u'Downloads'),
                                                   url('/dex/downloads')),
                                           ]),
                ]),
        ]
Esempio n. 5
0
 def links(self):
     return [
         PluginLink(u'Forums', url(controller='forum', action='forums')),
     ]
Esempio n. 6
0
 def links(self):
     _ = unicode  # _ is a no-op here, only used for marking the texts for translation
     # Wrap PluginLink do that the correct translator is given
     # (Unfortunately it's too early in the bootstrapping process to actually translate now)
     def TranslatablePluginLink(*args, **kwargs):
         kwargs.setdefault('translator_class', i18n.Translator)
         return PluginLink(*args, **kwargs)
     # All good, return the structure now
     return [
         TranslatablePluginLink(_(u'Pokédex'), url('/dex'), children=[
             TranslatablePluginLink(_(u'Core pages'), None, children=[
                 TranslatablePluginLink(_(u'Pokémon'), url(controller='dex', action='pokemon_list'), i18n_context='plural', children=[
                     TranslatablePluginLink(_(u'Awesome search'), url(controller='dex_search', action='pokemon_search')),
                 ]),
                 TranslatablePluginLink(_(u'Moves'), url(controller='dex', action='moves_list'), children=[
                     TranslatablePluginLink(_(u'Awesome search'), url(controller='dex_search', action='move_search')),
                 ]),
                 TranslatablePluginLink(_(u'Types'), url(controller='dex', action='types_list')),
                 TranslatablePluginLink(_(u'Abilities'), url(controller='dex', action='abilities_list')),
                 TranslatablePluginLink(_(u'Items'), url(controller='dex', action='items_list')),
                 TranslatablePluginLink(_(u'Natures'), url(controller='dex', action='natures_list')),
             ]),
             TranslatablePluginLink(_(u'Gadgets'), None, children=[
                 TranslatablePluginLink(_(u'Compare Pokémon'), url(controller='dex_gadgets', action='compare_pokemon')),
                 TranslatablePluginLink(_(u'Pokéball performance'), url(controller='dex_gadgets', action='capture_rate')),
                 TranslatablePluginLink(_(u'Stat calculator'), url(controller='dex_gadgets', action='stat_calculator')),
             ]),
             TranslatablePluginLink(_(u'Conquest'), url('/dex/conquest'), children=[
                 TranslatablePluginLink(_(u'Pokémon'), url(controller='dex_conquest', action='pokemon_list')),
                 TranslatablePluginLink(_(u'Warriors'), url(controller='dex_conquest', action='warriors_list')),
                 TranslatablePluginLink(_(u'Abilties'), url(controller='dex_conquest', action='abilities_list')),
                 TranslatablePluginLink(_(u'Moves'), url(controller='dex_conquest', action='moves_list')),
                 TranslatablePluginLink(_(u'Warrior Skills'), url(controller='dex_conquest', action='skills_list'))
             ]),
             TranslatablePluginLink(_(u'Etc.'), None, children=[
                 TranslatablePluginLink(_(u'Downloads'), url('/dex/downloads')),
             ]),
         ]),
     ]