-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from fotografde/master-initial
Supporting 7 new languages
- Loading branch information
Showing
9 changed files
with
128 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Dater\Locale; | ||
use Dater\Dater; | ||
|
||
class EnUs extends \Dater\Locale { | ||
|
||
protected static $months = array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); | ||
protected static $weekDays = array('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'); | ||
protected static $weekDaysShort = array('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'); | ||
|
||
// Referring to https://en.wikipedia.org/wiki/Date_format_by_country | ||
protected static $formats = array( | ||
Dater::USER_DATE_FORMAT => 'm/d/Y', | ||
Dater::USER_TIME_FORMAT => 'H:i', | ||
Dater::USER_DATETIME_FORMAT => 'm/d/Y H:i', | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Dater\Locale; | ||
use Dater\Dater; | ||
|
||
class Es extends \Dater\Locale { | ||
|
||
protected static $months = array('Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'); | ||
protected static $weekDays = array('Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado', 'Domingo'); | ||
protected static $weekDaysShort = array('Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb', 'Dom'); | ||
|
||
// Referring to https://en.wikipedia.org/wiki/Date_format_by_country | ||
protected static $formats = array( | ||
Dater::USER_DATE_FORMAT => 'd/m/Y', | ||
Dater::USER_TIME_FORMAT => 'H:i', | ||
Dater::USER_DATETIME_FORMAT => 'd/m/Y H:i', | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Dater\Locale; | ||
use Dater\Dater; | ||
|
||
class Fr extends \Dater\Locale { | ||
|
||
protected static $months = array('Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'); | ||
protected static $weekDays = array('Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi', 'Dimanche'); | ||
protected static $weekDaysShort = array('Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam', 'Dim'); | ||
|
||
// Referring to https://en.wikipedia.org/wiki/Date_format_by_country | ||
protected static $formats = array( | ||
Dater::USER_DATE_FORMAT => 'd-m-Y', | ||
Dater::USER_TIME_FORMAT => 'H:i', | ||
Dater::USER_DATETIME_FORMAT => 'd-m-Y H:i', | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Dater\Locale; | ||
use Dater\Dater; | ||
|
||
class Jp extends \Dater\Locale { | ||
|
||
protected static $months = array('1月', '2月', '行進', '4月', '5月', '六月', '7月', '8月', '9月', '10月', '11月', '12月'); | ||
protected static $weekDays = array('月曜', '火曜日', '水曜日', '木曜日', '金曜日', '土曜日', '日曜日'); | ||
protected static $weekDaysShort = array('月曜', '火曜日', '水曜日', '木曜日', '金曜日', '土曜日', '日曜日'); | ||
|
||
// Referring to https://en.wikipedia.org/wiki/Date_format_by_country | ||
protected static $formats = array( | ||
Dater::USER_DATE_FORMAT => 'Y年m月d日', | ||
Dater::USER_TIME_FORMAT => 'H:i', | ||
Dater::USER_DATETIME_FORMAT => 'Y年m月d日 H:i', | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Dater\Locale; | ||
use Dater\Dater; | ||
|
||
class Nb extends \Dater\Locale { | ||
|
||
protected static $months = array('Januar', 'Februar', 'Mars', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Desember'); | ||
protected static $weekDays = array('Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag', 'Søndag'); | ||
protected static $weekDaysShort = array('Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør', 'Søn'); | ||
|
||
// Referring to https://en.wikipedia.org/wiki/Date_format_by_country | ||
protected static $formats = array( | ||
Dater::USER_DATE_FORMAT => 'd.m.Y', | ||
Dater::USER_TIME_FORMAT => 'H:i', | ||
Dater::USER_DATETIME_FORMAT => 'd.m.Y H:i', | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Dater\Locale; | ||
use Dater\Dater; | ||
|
||
class Pt extends \Dater\Locale { | ||
|
||
protected static $months = array('Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'); | ||
protected static $weekDays = array('Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sábado', 'Domingo'); | ||
protected static $weekDaysShort = array('Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb', 'Dom'); | ||
|
||
// Referring to https://en.wikipedia.org/wiki/Date_format_by_country | ||
protected static $formats = array( | ||
Dater::USER_DATE_FORMAT => 'd/m/Y', | ||
Dater::USER_TIME_FORMAT => 'H:i', | ||
Dater::USER_DATETIME_FORMAT => 'd/m/Y H:i', | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Dater\Locale; | ||
use Dater\Dater; | ||
|
||
class Tr extends \Dater\Locale { | ||
|
||
protected static $months = array('Ocak ayı', 'Şubat ayı', 'Mart', 'Nisan', 'Mayıs ayı', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'); | ||
protected static $weekDays = array('Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi', 'Pazar'); | ||
protected static $weekDaysShort = array('Pt', 'Sa', 'Ça', 'Pe', 'Cu', 'Ct', 'Pz'); | ||
|
||
// Referring to https://en.wikipedia.org/wiki/Date_format_by_country | ||
protected static $formats = array( | ||
Dater::USER_DATE_FORMAT => 'd.m.Y', | ||
Dater::USER_TIME_FORMAT => 'H:i', | ||
Dater::USER_DATETIME_FORMAT => 'd.m.Y H:i', | ||
); | ||
} |