covering JS side of translations (#7), added the messages to the

translation files and translated the german ones
This commit is contained in:
El RIDO
2015-09-06 13:07:46 +02:00
parent 5e47feb7e1
commit eee7b0144a
6 changed files with 364 additions and 102 deletions

View File

@@ -51,13 +51,8 @@ class i18n
*/
public static function translate($messageId)
{
if (empty($messageId))
{
return $messageId;
}
if (count(self::$_translations) === 0) {
self::loadTranslations();
}
if (empty($messageId)) return $messageId;
if (count(self::$_translations) === 0) self::loadTranslations();
if (!array_key_exists($messageId, self::$_translations))
{
self::$_translations[$messageId] = $messageId;

View File

@@ -183,7 +183,7 @@ class zerobin_db extends zerobin_abstract
public function create($pasteid, $paste)
{
if (
array_key_exists($pasteid, self::$_cache)
array_key_exists($pasteid, self::$_cache)
) {
if(false !== self::$_cache[$pasteid]) {
return false;