diff options
Diffstat (limited to 'core/Translate.php')
-rw-r--r-- | core/Translate.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Translate.php b/core/Translate.php index 34bd35ba12..65381c0a2d 100644 --- a/core/Translate.php +++ b/core/Translate.php @@ -68,7 +68,7 @@ class Translate private static function loadCoreTranslationFile($language) { - if(empty($language)) { + if (empty($language)) { return; } $path = PIWIK_INCLUDE_PATH . '/lang/' . $language . '.json'; @@ -174,7 +174,7 @@ class Translate } $js = 'var translations = ' . Common::json_encode($clientSideTranslations) . ';'; - $js .= "\n" . 'if(typeof(piwik_translations) == \'undefined\') { var piwik_translations = new Object; }' . + $js .= "\n" . 'if (typeof(piwik_translations) == \'undefined\') { var piwik_translations = new Object; }' . 'for(var i in translations) { piwik_translations[i] = translations[i];} '; return $js; } |