]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixed documentation of OC_L10N
authorJakob Sack <kde@jakobsack.de>
Sun, 19 Jun 2011 17:38:51 +0000 (19:38 +0200)
committerJakob Sack <kde@jakobsack.de>
Sun, 19 Jun 2011 17:38:51 +0000 (19:38 +0200)
lib/l10n.php

index 4eae109cb522d746ba70ec093e4cc9b714a63a6d..2f72b9711739f54f0d869fac24fc3431cd25879e 100644 (file)
@@ -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 );