~eapl/mebo-es

3823f97c458b8fcd1ce15e6d9f6fea69a545cbc4 — eapl.mx 1 year, 2 months ago 056165e master
Fixed plural in months
1 files changed, 5 insertions(+), 1 deletions(-)

M public/includes/app.php
M public/includes/app.php => public/includes/app.php +5 -1
@@ 88,7 88,11 @@ function time_ago_es($time)

    $difference = round($difference);

    $period =  $periods[$j] . ($difference > 1 ? 's' : '');
    $plural_str = 's';
    if (substr($periods[$j], -1) === 's') {
        $plural_str = 'es';
    }
    $period =  $periods[$j] . ($difference > 1 ? $plural_str : '');
    return "{$pre_tense} {$difference} {$period} {$post_tense} ";
}