build/tincan.js
function (prop, lang) {
            var langDict = this[prop],
                key;

            if (typeof lang !== "undefined" && typeof langDict[lang] !== "undefined") {
                return langDict[lang];
            }
            if (typeof langDict.und !== "undefined") {
                return langDict.und;
            }
            if (typeof langDict["en-US"] !== "undefined") {
                return langDict["en-US"];
            }
            for (key in langDict) {
                if (langDict.hasOwnProperty(key)) {
                    return langDict[key];
                }
            }

            return "";
        }
function (prop, lang) {
            var langDict = this[prop],
                key;

            if (typeof lang !== "undefined" && typeof langDict[lang] !== "undefined") {
                return langDict[lang];
            }
            if (typeof langDict.und !== "undefined") {
                return langDict.und;
            }
            if (typeof langDict["en-US"] !== "undefined") {
                return langDict["en-US"];
            }
            for (key in langDict) {
                if (langDict.hasOwnProperty(key)) {
                    return langDict[key];
                }
            }

            return "";
        }
function ( prop , lang ) { var langDict = this [ prop ] , key ; if ( typeof lang !== "undefined" && typeof langDict [ lang ] !== "undefined" ) { return langDict [ lang ] ; } if ( typeof langDict . und !== "undefined" ) { return langDict . und ; } if ( typeof langDict [ "en-US" ] !== "undefined" ) { return langDict [ "en-US" ] ; } for ( key in langDict ) { if ( langDict . hasOwnProperty ( key ) ) { return langDict [ key ] ; } } return "" ; }
Intended to be inherited by objects with properties that store
display values in a language based "dictionary"

@method getLangDictionaryValue
@param {String} prop Property name storing the dictionary
@param {String} [lang] Language to return
@return {String}
Intended to be inherited by objects with properties that store display values in a language based dictionary