fixed stretching for narrow crossword quests
This commit is contained in:
commit
c1a314f6e7
3452 changed files with 593206 additions and 0 deletions
30
www/analytics/plugins/Overlay/client/translations.js
Normal file
30
www/analytics/plugins/Overlay/client/translations.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
var Piwik_Overlay_Translations = (function () {
|
||||
|
||||
/** Translations strings */
|
||||
var translations = [];
|
||||
|
||||
return {
|
||||
|
||||
/**
|
||||
* Initialize translations module.
|
||||
* Callback is triggered when data is available.
|
||||
*/
|
||||
initialize: function (callback) {
|
||||
// Load translation data
|
||||
Piwik_Overlay_Client.api('getTranslations', function (data) {
|
||||
translations = data[0];
|
||||
callback();
|
||||
});
|
||||
},
|
||||
|
||||
/** Get translation string */
|
||||
get: function (identifier) {
|
||||
if (typeof translations[identifier] == 'undefined') {
|
||||
return identifier;
|
||||
}
|
||||
return translations[identifier];
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue