src/basis/l10n.js
function internalResolveDictionary(source, noFetch) {
    var dictionary;

    if (typeof source == 'string')
    {
      var location = source;
      var extname = basis.path.extname(location);

      if (extname != '.l10n')
        location = location.replace(new RegExp(extname + '([#?]|$)'), '.l10n$1');

      source = basis.resource(location);
    }

    if (basis.resource.isResource(source))
      dictionary = dictionaryByUrl[source.url];

    return dictionary || new Dictionary(source, noFetch);
  }
function internalResolveDictionary(source, noFetch) {
    var dictionary;

    if (typeof source == 'string')
    {
      var location = source;
      var extname = basis.path.extname(location);

      if (extname != '.l10n')
        location = location.replace(new RegExp(extname + '([#?]|$)'), '.l10n$1');

      source = basis.resource(location);
    }

    if (basis.resource.isResource(source))
      dictionary = dictionaryByUrl[source.url];

    return dictionary || new Dictionary(source, noFetch);
  }
function internalResolveDictionary ( source , noFetch ) { var dictionary ; if ( typeof source == 'string' ) { var location = source ; var extname = basis . path . extname ( location ) ; if ( extname != '.l10n' ) location = location . replace ( new RegExp ( extname + '([#?]|$)' ) , '.l10n$1' ) ; source = basis . resource ( location ) ; } if ( basis . resource . isResource ( source ) ) dictionary = dictionaryByUrl [ source . url ] ; return dictionary || new Dictionary ( source , noFetch ) ; }
Currently for internal use only, with additional argument
Currently for internal use only with additional argument