PHP 8.2.30
Preview: TranslatorInterface.php Size: 1.97 KB
/opt/cloudlinux/alt-php54/root/usr/share/pear/Symfony/Component/Translation/TranslatorInterface.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Translation;

/**
 * TranslatorInterface.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 *
 * @api
 */
interface TranslatorInterface
{
    /**
     * Translates the given message.
     *
     * @param string      $id         The message id (may also be an object that can be cast to string)
     * @param array       $parameters An array of parameters for the message
     * @param string|null $domain     The domain for the message or null to use the default
     * @param string|null $locale     The locale or null to use the default
     *
     * @return string The translated string
     *
     * @api
     */
    public function trans($id, array $parameters = array(), $domain = null, $locale = null);

    /**
     * Translates the given choice message by choosing a translation according to a number.
     *
     * @param string      $id         The message id (may also be an object that can be cast to string)
     * @param integer     $number     The number to use to find the indice of the message
     * @param array       $parameters An array of parameters for the message
     * @param string|null $domain     The domain for the message or null to use the default
     * @param string|null $locale     The locale or null to use the default
     *
     * @return string The translated string
     *
     * @api
     */
    public function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null);

    /**
     * Sets the current locale.
     *
     * @param string $locale The locale
     *
     * @api
     */
    public function setLocale($locale);

    /**
     * Returns the current locale.
     *
     * @return string The locale
     *
     * @api
     */
    public function getLocale();
}

Directory Contents

Dirs: 6 × Files: 10

Name Size Perms Modified Actions
Catalogue DIR
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
Dumper DIR
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
Exception DIR
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
Extractor DIR
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
Loader DIR
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
Writer DIR
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
341 B lrw-r--r-- 2019-12-18 11:22:58
Edit Download
1.56 KB lrw-r--r-- 2019-12-18 11:22:58
Edit Download
2.73 KB lrw-r--r-- 2019-12-18 11:22:58
Edit Download
6.38 KB lrw-r--r-- 2019-12-18 11:22:58
Edit Download
4.15 KB lrw-r--r-- 2019-12-18 11:22:58
Edit Download
3.08 KB lrw-r--r-- 2019-12-18 11:22:58
Edit Download
1.51 KB lrw-r--r-- 2019-12-18 11:22:58
Edit Download
6.11 KB lrw-r--r-- 2019-12-18 11:22:58
Edit Download
6.88 KB lrw-r--r-- 2019-12-18 11:22:58
Edit Download
1.97 KB lrw-r--r-- 2019-12-18 11:22:58
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).