Changeset 4271

Show
Ignore:
Timestamp:
07/10/2008 07:50:31 PM (1 month ago)
Author:
ed
Message:

Added localization to latest change, along with some minor coding style changes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/ui/uiwx/dMenuItem.py

    r4266 r4271  
    8787    def _setCaption(self, val): 
    8888        if self._constructed(): 
    89             if len(val.split("\t")) == 1: 
     89            if val.count("\t"): 
     90                # They're using the technique of caption + tab + hotkey 
     91                raise ValueError, _("Please put HotKey combination in HotKey property.") 
     92            else: 
    9093                self._caption = val 
    91             else: 
    92                 raise ValueError, "Please put HotKey combination in HotKey property." 
    9394            self._redefine() 
    9495        else: