Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-02-18 02:27:30 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-02-25 04:15:24 +0400
commit8f6695722cc4d1e0161a9d1b6b1854652391a837 (patch)
tree6ce3da8de4013699d0c16bb179cedea95d4b3692 /core/Translate.php
parent8c2faf5d7d7b74d1e01a9d6a505cd502df634870 (diff)
refs #2174 all websites selector based on angularjs, also added the possibility to use %s and %1$s in JS translations
Diffstat (limited to 'core/Translate.php')
-rw-r--r--core/Translate.php3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/Translate.php b/core/Translate.php
index ef618c95fd..011453796b 100644
--- a/core/Translate.php
+++ b/core/Translate.php
@@ -161,9 +161,6 @@ class Translate
$js = 'var translations = ' . Common::json_encode($clientSideTranslations) . ';';
$js .= "\n" . 'if(typeof(piwik_translations) == \'undefined\') { var piwik_translations = new Object; }' .
'for(var i in translations) { piwik_translations[i] = translations[i];} ';
- $js .= 'function _pk_translate(translationStringId) { ' .
- 'if( typeof(piwik_translations[translationStringId]) != \'undefined\' ){ return piwik_translations[translationStringId]; }' .
- 'return "The string "+translationStringId+" was not loaded in javascript. Make sure it is added in the Translate.getClientSideTranslationKeys hook.";}';
return $js;
}