Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add german translation for future dates

  • Loading branch information...
commit 597b8eee4013c49691d28f9cbd7c7b6a7d7ab226 1 parent 88cff9f
Christian Weiske cweiske authored
14 src/Date/HumanDiff/Locale/de.php
View
@@ -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',
);
}
?>
1  tests/Date/HumanDiff/LocaleArrayTest.php
View
@@ -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));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.