Changeset 1412

Show
Ignore:
Timestamp:
14/12/09 13:24:35 (3 months ago)
Author:
karel
Message:

When messages are set, but the message for the specific key is missing, return the key instead of undefined

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/modules/kauri-jquery/src/main/kauri/static-{build}.key/kauri.util/locale.js

    r1410 r1412  
    4747        if (I18N_PREFIX_REGEX.test(key)) { 
    4848            text = locale.getMessage(RegExp.$1); 
     49            if ( 
    4950        } 
    5051 
     
    220221    Locale.prototype.getMessage = function( key) { 
    221222 
    222         if (this.messages) 
     223        if (this.messages && this.messages[key]) { 
    223224            return this.messages[key]; 
     225        } 
    224226        return key; 
    225227    }