Upload files to 'includes'

This commit is contained in:
2022-09-24 06:28:07 +00:00
parent 186f9d43fc
commit e9d431635d
536 changed files with 61227 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
<?php
/**
* This file is part of the POMO package.
*
* @copyright 2014 POMO
* @license GPL
*/
namespace POMO\Translations;
/**
* Provides the same interface as Translations, but doesn't do anything.
*/
class NOOPTranslations implements TranslationsInterface
{
public $entries = array();
public $headers = array();
public function add_entry($entry)
{
return true;
}
public function set_header($header, $value)
{
}
public function set_headers($headers)
{
}
public function get_header($header)
{
return false;
}
public function translate_entry(EntryTranslations &$entry)
{
return false;
}
public function translate($singular, $context = null)
{
return $singular;
}
public function select_plural_form($count)
{
return 1 == $count ? 0 : 1;
}
public function get_plural_forms_count()
{
return 2;
}
public function translate_plural(
$singular,
$plural,
$count,
$context = null
) {
return 1 == $count ? $singular : $plural;
}
public function merge_with(TranslationsInterface &$other)
{
}
}