PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/v1world.us/wp-content/plugins/comet-cache/src/includes/traits/Shared/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/v1world.us/wp-content/plugins/comet-cache/src/includes/traits/Shared/I18nUtils.php

<?php
namespace WebSharks\CometCache\Traits\Shared;

use WebSharks\CometCache\Classes;

trait I18nUtils
{
    /**
     * `X file` or `X files`, translated w/ singlular/plural context.
     *
     * @since 150422 Rewrite.
     *
     * @param int $counter Total files; i.e. the counter.
     *
     * @return string The phrase `X file` or `X files`.
     */
    public function i18nFiles($counter)
    {
        $counter = (integer) $counter;
        return sprintf(_n('%1$s file', '%1$s files', $counter, 'comet-cache'), $counter);
    }

    /**
     * `X directory` or `X directories`, translated w/ singlular/plural context.
     *
     * @since 150422 Rewrite.
     *
     * @param int $counter Total directories; i.e. the counter.
     *
     * @return string The phrase `X directory` or `X directories`.
     */
    public function i18nDirs($counter)
    {
        $counter = (integer) $counter;
        return sprintf(_n('%1$s directory', '%1$s directories', $counter, 'comet-cache'), $counter);
    }

    /**
     * `X file/directory` or `X files/directories`, translated w/ singlular/plural context.
     *
     * @since 150422 Rewrite.
     *
     * @param int $counter Total files/directories; i.e. the counter.
     *
     * @return string The phrase `X file/directory` or `X files/directories`.
     */
    public function i18nFilesDirs($counter)
    {
        $counter = (integer) $counter;
        return sprintf(_n('%1$s file/directory', '%1$s files/directories', $counter, 'comet-cache'), $counter);
    }
}