Permalink
Browse files

add german translation for future dates

  • Loading branch information...
1 parent 88cff9f commit 597b8eee4013c49691d28f9cbd7c7b6a7d7ab226 @cweiske cweiske committed Mar 25, 2013
Showing with 15 additions and 0 deletions.
  1. +14 −0 src/Date/HumanDiff/Locale/de.php
  2. +1 −0 tests/Date/HumanDiff/LocaleArrayTest.php
@@ -44,6 +44,20 @@ class Date_HumanDiff_Locale_de extends Date_HumanDiff_LocaleArray
'%d months ago' => 'vor %d Monaten',
'a year ago' => 'vor einem Jahr',
'%d years ago' => 'vor %d Jahren',
+
+ 'in a moment' => 'gleich',
+ 'in a minute' => 'in einer Minute',
+ 'in %d minutes' => 'in %d Minuten',
+ 'in an hour' => 'in einer Stunde',
+ 'in %d hours' => 'in %d Stunden',
+ 'tomorrow' => 'morgen',
+ 'in %d days' => 'in %d Tagen',
+ 'in a week' => 'in einer Woche',
+ 'in %d weeks' => 'in %d Wochen',
+ 'in a month' => 'in einem Monat',
+ 'in %d months' => 'in %d Monaten',
+ 'in a year' => 'in einem Jahr',
+ 'in %d years' => 'in %d Jahren',
);
}
?>
@@ -17,6 +17,7 @@ public function testNoTranslation()
public function testTranslation()
{
$this->assertEquals('gerade eben', $this->la->get('just now', 0));
+ $this->assertEquals('morgen', $this->la->get('tomorrow', 0));
}
}

0 comments on commit 597b8ee

Please sign in to comment.