Permalink
Browse files

Add farsi locale

  • Loading branch information...
alireza-m committed Jun 9, 2012
1 parent 7f1d8aa commit 18d652a1001d9aaadde7b757b4c0ea27e0e09fe1
Showing with 56 additions and 0 deletions.
  1. +28 −0 src/Date/HumanDiff/Locale/fa.php
  2. +28 −0 src/Date/HumanDiff/Locale/fa.php~
@@ -0,0 +1,28 @@
+<?php
+require_once 'Date/HumanDiff/LocaleArray.php';
+
+class Date_HumanDiff_Locale_de extends Date_HumanDiff_LocaleArray
+{
+ /**
+ * Translation array.
+ * Key is the english variant, value the persian translation.
+ *
+ * @var array
+ */
+ public $trans = array(
+ 'just now' => 'در حال حاضر',
+ 'a minute ago' => 'یک دقیقه پیش',
+ '%d minutes ago' => '%d دقیقه پیش',
+ 'an hour ago' => 'یک ساعت پیش',
+ '%d hours ago' => '%d ساعت پیش',
+ 'yesterday' => 'دیروز',
+ '%d days ago' => '%d روز پیش',
+ 'a week ago' => 'یک هفته پیش',
+ '%d weeks ago' => '%d هفته پیش',
+ 'a month ago' => 'یک ماه پیش',
+ '%d months ago' => '%d ماه پیش',
+ 'a year ago' => 'یک سال پیش',
+ '%d years ago' => '%d سال پیش',
+ );
+}
+?>
@@ -0,0 +1,28 @@
+<?php
+require_once 'Date/HumanDiff/LocaleArray.php';
+
+class Date_HumanDiff_Locale_de extends Date_HumanDiff_LocaleArray
+{
+ /**
+ * Translation array.
+ * Key is the english variant, value the persian translation.
+ *
+ * @var array
+ */
+ public $trans = array(
+ 'just now' => 'در حال حاضر',
+ 'a minute ago' => 'یک دقیقه قبل',
+ '%d minutes ago' => 'vor %d Minuten',
+ 'an hour ago' => 'vor einer Stunde',
+ '%d hours ago' => 'vor %d Stunden',
+ 'yesterday' => 'gestern',
+ '%d days ago' => 'vor %d Tagen',
+ 'a week ago' => 'vor einer Woche',
+ '%d weeks ago' => 'vor %d Wochen',
+ 'a month ago' => 'vor einem Monat',
+ '%d months ago' => 'vor %d Monaten',
+ 'a year ago' => 'vor einem Jahr',
+ '%d years ago' => 'vor %d Jahren',
+ );
+}
+?>

0 comments on commit 18d652a

Please sign in to comment.