From c26719a10de214a6ea1c352b13bdd52b34e5a070 Mon Sep 17 00:00:00 2001
From: Jakob Sack <kde@jakobsack.de>
Date: Sun, 19 Jun 2011 19:38:51 +0200
Subject: [PATCH] Fixed documentation of OC_L10N

---
 lib/l10n.php | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

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