Logo Search packages:      
Sourcecode: jockey version File versions  Download package

def jockey::ui::AbstractUI::_ (   self,
  str,
  convert_keybindings = False 
) [private]

Keyboard accelerator aware gettext() wrapper.

This optionally converts keyboard accelerators to the appropriate
format for the frontend.

All strings in the source code should use the '_' prefix for key
accelerators (like in GTK). For inserting a real '_', use '__'.

Definition at line 65 of file ui.py.

00065                                                :
        '''Keyboard accelerator aware gettext() wrapper.
        
        This optionally converts keyboard accelerators to the appropriate
        format for the frontend.

        All strings in the source code should use the '_' prefix for key
        accelerators (like in GTK). For inserting a real '_', use '__'.
        '''
        # KDE compatible conversion
        result = unicode(gettext.gettext(str), 'UTF-8')

        if convert_keybindings:
            result = self.convert_keybindings(result)

        return result

    def init_strings(self):


Generated by  Doxygen 1.6.0   Back to index