Файловый менеджер - Редактировать - /home/gqdcvggs/hizhat.com/vendor.zip
Назад
PK v �[����� � gettext/gettext/composer.jsonnu �Iw�� { "name": "gettext/gettext", "type": "library", "description": "PHP gettext manager", "keywords": ["js", "gettext", "i18n", "translation", "po", "mo"], "homepage": "https://github.com/php-gettext/Gettext", "license": "MIT", "authors": [ { "name": "Oscar Otero", "email": "oom@oscarotero.com", "homepage": "http://oscarotero.com", "role": "Developer" } ], "support": { "email": "oom@oscarotero.com", "issues": "https://github.com/php-gettext/Gettext/issues" }, "require": { "php": "^7.2|^8.0", "gettext/languages": "^2.3" }, "require-dev": { "phpunit/phpunit": "^8.0|^9.0", "squizlabs/php_codesniffer": "^3.0", "brick/varexporter": "^0.3.5", "friendsofphp/php-cs-fixer": "^3.2", "oscarotero/php-cs-fixer-config": "^2.0" }, "autoload": { "psr-4": { "Gettext\\": "src" } }, "autoload-dev": { "psr-4": { "Gettext\\Tests\\": "tests" } }, "scripts": { "test": [ "phpunit", "phpcs" ], "cs-fix": "php-cs-fixer fix" } } PK v �[ �O= = gettext/gettext/LICENSEnu �Iw�� The MIT License (MIT) Copyright (c) 2019 Oscar Otero Marzoa Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. PK v �[Bf�� � gettext/gettext/CONTRIBUTING.mdnu �Iw�� Contributing to Gettext ======================= Looking to contribute something to this library? Here's how you can help. ## Bugs A bug is a demonstrable problem that is caused by the code in the repository. Good bug reports are extremely helpful – thank you! Please try to be as detailed as possible in your report. Include specific information about the environment – version of PHP, version of gettext, etc, and steps required to reproduce the issue. ## Pull Requests Good pull requests – patches, improvements, new features – are a fantastic help. New extractors or generator are welcome. Before create a pull request, please follow these instructions: * The code must be PSR-2 compliant * Write some tests PK v �[��㐇 � gettext/gettext/src/Headers.phpnu �Iw�� <?php declare(strict_types = 1); namespace Gettext; use ArrayIterator; use Countable; use InvalidArgumentException; use IteratorAggregate; use JsonSerializable; use ReturnTypeWillChange; /** * Class to manage the headers of translations. */ class Headers implements JsonSerializable, Countable, IteratorAggregate { public const HEADER_LANGUAGE = 'Language'; public const HEADER_PLURAL = 'Plural-Forms'; public const HEADER_DOMAIN = 'X-Domain'; protected $headers = []; public static function __set_state(array $state): Headers { return new static($state['headers']); } public function __construct(array $headers = []) { $this->headers = $headers; ksort($this->headers); } public function __debugInfo() { return $this->toArray(); } public function set(string $name, string $value): self { $this->headers[$name] = trim($value); ksort($this->headers); return $this; } public function get(string $name): ?string { return $this->headers[$name] ?? null; } public function delete(string $name): self { unset($this->headers[$name]); return $this; } public function clear(): self { $this->headers = []; return $this; } #[ReturnTypeWillChange] public function jsonSerialize() { return $this->toArray(); } #[ReturnTypeWillChange] public function getIterator() { return new ArrayIterator($this->toArray()); } public function count(): int { return count($this->headers); } public function setLanguage(string $language): self { return $this->set(self::HEADER_LANGUAGE, $language); } public function getLanguage(): ?string { return $this->get(self::HEADER_LANGUAGE); } public function setDomain(string $domain): self { return $this->set(self::HEADER_DOMAIN, $domain); } public function getDomain(): ?string { return $this->get(self::HEADER_DOMAIN); } public function setPluralForm(int $count, string $rule): self { if (preg_match('/[a-z]/i', str_replace('n', '', $rule))) { throw new InvalidArgumentException(sprintf('Invalid Plural form: "%s"', $rule)); } return $this->set(self::HEADER_PLURAL, sprintf('nplurals=%d; plural=%s;', $count, $rule)); } /** * Returns the parsed plural definition. * * @return array|null [count, rule] */ public function getPluralForm(): ?array { $header = $this->get(self::HEADER_PLURAL); if (!empty($header) && preg_match('/^nplurals\s*=\s*(\d+)\s*;\s*plural\s*=\s*([^;]+)\s*;$/', $header, $matches) ) { return [intval($matches[1]), $matches[2]]; } return null; } public function toArray(): array { return $this->headers; } public function mergeWith(Headers $headers): Headers { $merged = clone $this; $merged->headers = $headers->headers + $merged->headers; ksort($merged->headers); return $merged; } } PK v �[��z� gettext/gettext/src/Merge.phpnu �Iw�� <?php declare(strict_types = 1); namespace Gettext; /** * Merge contants. */ final class Merge { public const TRANSLATIONS_OURS = 1 << 0; public const TRANSLATIONS_THEIRS = 1 << 1; public const TRANSLATIONS_OVERRIDE = 1 << 2; public const HEADERS_OURS = 1 << 3; public const HEADERS_THEIRS = 1 << 4; public const HEADERS_OVERRIDE = 1 << 5; public const COMMENTS_OURS = 1 << 6; public const COMMENTS_THEIRS = 1 << 7; public const EXTRACTED_COMMENTS_OURS = 1 << 8; public const EXTRACTED_COMMENTS_THEIRS = 1 << 9; public const FLAGS_OURS = 1 << 10; public const FLAGS_THEIRS = 1 << 11; public const REFERENCES_OURS = 1 << 12; public const REFERENCES_THEIRS = 1 << 13; //Merge strategies public const SCAN_AND_LOAD = Merge::HEADERS_OVERRIDE | Merge::TRANSLATIONS_OURS | Merge::TRANSLATIONS_OVERRIDE | Merge::EXTRACTED_COMMENTS_OURS | Merge::REFERENCES_OURS | Merge::FLAGS_THEIRS | Merge::COMMENTS_THEIRS; } PK v �[A>H� � "