Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
4d6d9525
Commit
4d6d9525
authored
Jun 16, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove FormatDefs file
we do not want our own i18n database. When this kind of data is needed intl extension is a requirement.
parent
d7b4ea85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
59 deletions
+0
-59
FormatDefs.php
framework/i18n/FormatDefs.php
+0
-59
No files found.
framework/i18n/FormatDefs.php
deleted
100644 → 0
View file @
d7b4ea85
<?php
namespace
yii\i18n
;
/**
* International format definitions for decimal separator, thousand separator, dates,
* times and datetimes.
*
* Is only used if php extension isn't loaded. Otherwise the official ICU standard is
* used.
*
* Returns an array per local settings. Set the option 'language' => 'de-CH' in yii
* config file.
*
* Each language has xxx elements in their array like:
* [0] = decimal separator ('.')
* [1] = thousand separator (',')
* [2] = date short ('y-m-d')
* [3] = date medium ('Y-m-d')
* [4] = date long ('F j, Y')
* [5] = date full ('l, F j, Y')
* [6] = time short ('H:i')
* [7] = time medium ('H:i:s')
* [8] = time long ('g:i:sA')
* [9] = time full ('g:i:sA T')
* [10] = datetime short ('y-m-d H:i')
* [11] = datetime medium ('Y-m-d H:i:s')
* [12] = datetime long ('F j, Y g:i:sA')
* [13] = datetime full ('l, F j, Y g:i:sA T')
* [14] = currency code
*
* @author Erik Ruedin <e.ruedin@guggach.com>
* @version 0.1
*/
Class
FormatDefs
{
static
function
definition
(
$local
)
{
$localDef
=
[
'en-US'
=>
[
'.'
,
','
,
'm/d/y'
,
'm/d/Y'
,
'F j, Y'
,
'l, F j, Y'
,
'H:i'
,
'H:i:s'
,
'g:i:sA'
,
'g:i:sA T'
,
'm/d/y H:i'
,
'm/d/Y H:i:s'
,
'F j, Y g:i:sA'
,
'l, F j, Y g:i:sA T'
,
'USD'
],
'de-CH'
=>
[
'.'
,
'\''
,
'd.m.y'
,
'd.m.Y'
,
'j. F Y'
,
'l, j. F Y'
,
'H:i'
,
'H:i:s'
,
'G:i:s'
,
'G:i:s T'
,
'd.m.y H:i'
,
'd.m.Y H:i:s'
,
'F j, Y g:i:sA'
,
'l, F j, Y g:i:sA T'
,
'CHF'
],
'de-DE'
=>
[
','
,
'.'
,
'd.m.y'
,
'd.m.Y'
,
'j. F Y'
,
'l, j. F Y'
,
'H:i'
,
'H:i:s'
,
'G:i:s'
,
'G:i:s T'
,
'd.m.y H:i'
,
'd.m.Y H:i:s'
,
'F j, Y g:i:sA'
,
'l, F j, Y g:i:sA T'
,
'EUR'
],
];
if
(
isset
(
$localDef
[
$local
])){
return
$localDef
[
$local
];
}
else
{
return
[];
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment