123456789101112131415161718192021222324252627282930313233 |
- /*
- IBM Confidential
- OCO Source Materials
- IBM Cognos Products: authoring
- (C) Copyright IBM Corp. 2015, 2015
- The source code for this program is not published or otherwise divested
- of its trade secrets, irrespective of what has been deposited with the
- U.S. Copyright Office.
- */
- define(['i18n!bi/classicviewer/nls/ClassicViewerMessages', 'bi/glass/utils/Lexicon'], function(localeResources, Lexicon) {
- 'use strict';
- var lexicon = new Lexicon( {data : localeResources, verbose : true} );
- var StringResources = function() {
- return undefined;
- };
- /**
- * Get the string resource for the given key and interpolation options
- *
- * @param key The key of the string to return
- * @param interpolationOptions Optional interpolation options (see poly.t documentation for details)
- * @returns The string to display
- */
- StringResources.prototype.get = function(key, interpolationOptions) {
- return lexicon.translate(key, interpolationOptions);
- };
- return new StringResources();
- });
|