Fixed documentation of OC_L10N

This commit is contained in:
Jakob Sack 2011-06-19 19:38:51 +02:00
parent e8e483d079
commit c26719a10d
1 changed files with 5 additions and 3 deletions

View File

@ -121,18 +121,20 @@ class OC_L10N{
* - date * - date
* - Creates a date * - Creates a date
* - l10n-field: date * - l10n-field: date
* - params: timestamp (int) * - params: timestamp (int/string)
* - datetime * - datetime
* - Creates date and time * - Creates date and time
* - l10n-field: datetime * - l10n-field: datetime
* - params: timestamp (int) * - params: timestamp (int/string)
* - time * - time
* - Creates a time * - Creates a time
* - l10n-field: time * - l10n-field: time
* - params: timestamp (int) * - params: timestamp (int/string)
*/ */
public function l($type, $data){ public function l($type, $data){
switch($type){ switch($type){
// If you add something don't forget to add it to $localizations
// at the top of the page
case 'date': case 'date':
if( is_string( $data )) $data = strtotime( $data ); if( is_string( $data )) $data = strtotime( $data );
return date( $this->localizations['date'], $data ); return date( $this->localizations['date'], $data );