mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 11:41:31 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -159,6 +159,8 @@ abstract class AbstractTranslator extends Translation\Translator
|
||||
return true;
|
||||
}
|
||||
|
||||
$this->assertValidLocale($locale);
|
||||
|
||||
foreach ($this->getDirectories() as $directory) {
|
||||
$data = @include sprintf('%s/%s.php', rtrim($directory, '\\/'), $locale);
|
||||
|
||||
|
||||
@@ -994,6 +994,10 @@ trait Comparison
|
||||
return $this->year === (int) $tester;
|
||||
}
|
||||
|
||||
if (preg_match('/^(?:Jan|January|Feb|February|Mar|March|Apr|April|May|Jun|June|Jul|July|Aug|August|Sep|September|Oct|October|Nov|November|Dec|December)$/i', $tester)) {
|
||||
return $this->isSameMonth(static::parse($tester), false);
|
||||
}
|
||||
|
||||
if (preg_match('/^\d{3,}-\d{1,2}$/', $tester)) {
|
||||
return $this->isSameMonth(static::parse($tester));
|
||||
}
|
||||
|
||||
@@ -96,9 +96,9 @@ trait Options
|
||||
'v' => '([0-9]{1,3})',
|
||||
'e' => '([a-zA-Z]{1,5})|([a-zA-Z]*\\/[a-zA-Z]*)',
|
||||
'I' => '(0|1)',
|
||||
'O' => '([+-](1[012]|0[0-9])[0134][05])',
|
||||
'P' => '([+-](1[012]|0[0-9]):[0134][05])',
|
||||
'p' => '(Z|[+-](1[012]|0[0-9]):[0134][05])',
|
||||
'O' => '([+-](1[0123]|0[0-9])[0134][05])',
|
||||
'P' => '([+-](1[0123]|0[0-9]):[0134][05])',
|
||||
'p' => '(Z|[+-](1[0123]|0[0-9]):[0134][05])',
|
||||
'T' => '([a-zA-Z]{1,5})',
|
||||
'Z' => '(-?[1-5]?[0-9]{1,4})',
|
||||
'U' => '([0-9]*)',
|
||||
|
||||
Reference in New Issue
Block a user