Skip to content

Commit

Permalink
Merge pull request #11 from fotografde/master-initial
Browse files Browse the repository at this point in the history
Supporting 7 new languages
  • Loading branch information
barbushin authored Aug 23, 2017
2 parents 8017616 + 79918a0 commit 316b5c1
Show file tree
Hide file tree
Showing 9 changed files with 128 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Dater/Locale/En.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class En extends \Dater\Locale {

protected static $months = array('January', 'February', 'March', 'April', 'May', 'June', 'Jule', 'August', 'September', 'October', 'November', 'December');
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');

Expand Down
2 changes: 1 addition & 1 deletion src/Dater/Locale/EnUk.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class EnUk extends \Dater\Locale {

protected static $months = array('January', 'February', 'March', 'April', 'May', 'June', 'Jule', 'August', 'September', 'October', 'November', 'December');
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');

Expand Down
18 changes: 18 additions & 0 deletions src/Dater/Locale/EnUs.php
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',
);
}
18 changes: 18 additions & 0 deletions src/Dater/Locale/Es.php
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',
);
}
18 changes: 18 additions & 0 deletions src/Dater/Locale/Fr.php
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',
);
}
18 changes: 18 additions & 0 deletions src/Dater/Locale/Jp.php
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',
);
}
18 changes: 18 additions & 0 deletions src/Dater/Locale/Nb.php
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',
);
}
18 changes: 18 additions & 0 deletions src/Dater/Locale/Pt.php
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',
);
}
18 changes: 18 additions & 0 deletions src/Dater/Locale/Tr.php
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',
);
}

0 comments on commit 316b5c1

Please sign in to comment.