Index: trunk/phase3/languages/Language.php |
— | — | @@ -3095,8 +3095,12 @@ |
3096 | 3096 | } |
3097 | 3097 | |
3098 | 3098 | /** |
3099 | | - * This translates the duration ("1 week", "4 days", etc) |
3100 | | - * as well as the expiry time (which is an absolute timestamp). |
| 3099 | + * @todo Maybe translate block durations. Note that this function is somewhat misnamed: it |
| 3100 | + * deals with translating the *duration* ("1 week", "4 days", etc), not the expiry time |
| 3101 | + * (which is an absolute timestamp). Please note: do NOT add this blindly, as it is used |
| 3102 | + * on old expiry lengths recorded in log entries. You'd need to provide the start date to |
| 3103 | + * match up with it. |
| 3104 | + * |
3101 | 3105 | * @param $str String: the validated block duration in English |
3102 | 3106 | * @return Somehow translated block duration |
3103 | 3107 | * @see LanguageFi.php for example implementation |
— | — | @@ -3120,8 +3124,8 @@ |
3121 | 3125 | } |
3122 | 3126 | } |
3123 | 3127 | } |
3124 | | - // If no duration is given, but a timestamp, display that |
3125 | | - return ( strtotime( $str ) ? $this->timeanddate( strtotime( $str ) ) : $str ); |
| 3128 | + // If all else fails, return the original string. |
| 3129 | + return $str; |
3126 | 3130 | } |
3127 | 3131 | |
3128 | 3132 | /** |