Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.
Please keep in mind:
Support response
Support checklist
public static function getAvailableExpirations() {
$string = _s('After %n %t');
return [
NULL => _s("Don't autodelete"),
'PT5M' => strtr($string, ['%n' => 5, '%t' => _n('minute', 'minutes', 5)]),
'PT30M' => strtr($string, ['%n' => 30, '%t' => _n('minute', 'minutes', 30)]),
'PT1H' => strtr($string, ['%n' => 1, '%t' => _n('hour', 'hours', 1)]),
'PT2H' => strtr($string, ['%n' => 2, '%t' => _n('hour', 'hours', 2)]),
'PT6H' => strtr($string, ['%n' => 6, '%t' => _n('hour', 'hours', 6)]),
'PT12H' => strtr($string, ['%n' => 12, '%t' => _n('hour', 'hours', 12)]),
'P1D' => strtr($string, ['%n' => 1, '%t' => _n('day','days', 1)]),
'P2D' => strtr($string, ['%n' => 2, '%t' => _n('day','days', 2)])
];
}
View attachment 1277
app/lib/classes/class.image.php
PHP:public static function getAvailableExpirations() { }