Changeset 3289

Show
Ignore:
Timestamp:
07/27/07 16:53:43 (1 year ago)
Author:
paul
Message:

If the app's shortName has spaces in it, replace with "_".

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/dLocalize.py

    r3288 r3289  
    6666            _appInitialized = True 
    6767            # If appShortName not changed in user app, defaults to "daboapplication" 
    68             shortName = app.getAppInfo("appShortName") 
    69             if shortName is not None: 
    70                 _appHasLocale = setLanguage(domain=shortName.lower(), 
     68            appName = app.getAppInfo("appShortName") 
     69            if appName is not None: 
     70                _appHasLocale = setLanguage(domain=appName.lower().replace(" ", "_"), 
    7171                        localedir=os.path.join(app.HomeDirectory, _localeDir)) 
    7272