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:
authorsgiehl <stefan@piwik.org>2013-07-07 15:09:48 +0400
committersgiehl <stefan@piwik.org>2013-07-07 15:09:48 +0400
commit9dad6f3d57defdcb8b1466062c53159d807d46f3 (patch)
tree474f6bd30e0776766c6f5ef75827c17d1774a2b7 /core/Translate.php
parent9e87de8ca0798fad6cfa2b8c0ca250d04efd8b9e (diff)
fixed some doc blocks, unresolved variables
Diffstat (limited to 'core/Translate.php')
-rw-r--r--core/Translate.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Translate.php b/core/Translate.php
index 807638357c..d2b95e700b 100644
--- a/core/Translate.php
+++ b/core/Translate.php
@@ -69,6 +69,7 @@ class Piwik_Translate
private function loadTranslation($language)
{
+ $translations = array();
$path = PIWIK_INCLUDE_PATH . '/lang/' . $language . '.php';
if (!Piwik_Common::isValidFilename($language) || !is_readable($path)) {
throw new Exception(Piwik_TranslateException('General_ExceptionLanguageFileNotFound', array($language)));
@@ -181,7 +182,7 @@ class Piwik_Translate
* Returns translated string or given message if translation is not found.
*
* @param string $string Translation string index
- * @param array $args sprintf arguments
+ * @param array|string|int $args sprintf arguments
* @return string
*/
function Piwik_Translate($string, $args = array())