update2
This commit is contained in:
parent
98419bd18d
commit
8a69e45efa
4919 changed files with 28311 additions and 224136 deletions
0
pfosten/vendor/symfony/translation/Tests/Catalogue/AbstractOperationTest.php
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/Catalogue/AbstractOperationTest.php
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/Catalogue/MergeOperationTest.php
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/Catalogue/MergeOperationTest.php
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/Catalogue/TargetOperationTest.php
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/Catalogue/TargetOperationTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/DataCollector/TranslationDataCollectorTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/DataCollector/TranslationDataCollectorTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\DataCollector;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\DataCollectorTranslator;
|
||||
use Symfony\Component\Translation\DataCollector\TranslationDataCollector;
|
||||
use Symfony\Component\Translation\DataCollectorTranslator;
|
||||
|
||||
class TranslationDataCollectorTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/DataCollectorTranslatorTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/DataCollectorTranslatorTest.php
vendored
Executable file → Normal file
|
|
@ -12,9 +12,9 @@
|
|||
namespace Symfony\Component\Translation\Tests;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\Translator;
|
||||
use Symfony\Component\Translation\DataCollectorTranslator;
|
||||
use Symfony\Component\Translation\Loader\ArrayLoader;
|
||||
use Symfony\Component\Translation\Translator;
|
||||
|
||||
class DataCollectorTranslatorTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Dumper/CsvFileDumperTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Dumper/CsvFileDumperTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Dumper;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
use Symfony\Component\Translation\Dumper\CsvFileDumper;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
|
||||
class CsvFileDumperTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
4
pfosten/vendor/symfony/translation/Tests/Dumper/FileDumperTest.php
vendored
Executable file → Normal file
4
pfosten/vendor/symfony/translation/Tests/Dumper/FileDumperTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Dumper;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
use Symfony\Component\Translation\Dumper\FileDumper;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
|
||||
class FileDumperTest extends TestCase
|
||||
{
|
||||
|
|
@ -28,6 +28,8 @@ class FileDumperTest extends TestCase
|
|||
$dumper->dump($catalogue, array('path' => $tempDir));
|
||||
|
||||
$this->assertFileExists($tempDir.'/messages.en.concrete');
|
||||
|
||||
@unlink($tempDir.'/messages.en.concrete');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Dumper/IcuResFileDumperTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Dumper/IcuResFileDumperTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Dumper;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
use Symfony\Component\Translation\Dumper\IcuResFileDumper;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
|
||||
class IcuResFileDumperTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Dumper/IniFileDumperTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Dumper/IniFileDumperTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Dumper;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
use Symfony\Component\Translation\Dumper\IniFileDumper;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
|
||||
class IniFileDumperTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Dumper/JsonFileDumperTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Dumper/JsonFileDumperTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Dumper;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
use Symfony\Component\Translation\Dumper\JsonFileDumper;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
|
||||
class JsonFileDumperTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Dumper/MoFileDumperTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Dumper/MoFileDumperTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Dumper;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
use Symfony\Component\Translation\Dumper\MoFileDumper;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
|
||||
class MoFileDumperTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Dumper/PhpFileDumperTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Dumper/PhpFileDumperTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Dumper;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
use Symfony\Component\Translation\Dumper\PhpFileDumper;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
|
||||
class PhpFileDumperTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Dumper/PoFileDumperTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Dumper/PoFileDumperTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Dumper;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
use Symfony\Component\Translation\Dumper\PoFileDumper;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
|
||||
class PoFileDumperTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Dumper/QtFileDumperTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Dumper/QtFileDumperTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Dumper;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
use Symfony\Component\Translation\Dumper\QtFileDumper;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
|
||||
class QtFileDumperTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
27
pfosten/vendor/symfony/translation/Tests/Dumper/XliffFileDumperTest.php
vendored
Executable file → Normal file
27
pfosten/vendor/symfony/translation/Tests/Dumper/XliffFileDumperTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Dumper;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
use Symfony\Component\Translation\Dumper\XliffFileDumper;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
|
||||
class XliffFileDumperTest extends TestCase
|
||||
{
|
||||
|
|
@ -87,4 +87,29 @@ class XliffFileDumperTest extends TestCase
|
|||
$dumper->formatCatalogue($catalogue, 'messages', array('default_locale' => 'fr_FR'))
|
||||
);
|
||||
}
|
||||
|
||||
public function testFormatCatalogueWithNotesMetadata()
|
||||
{
|
||||
$catalogue = new MessageCatalogue('en_US');
|
||||
$catalogue->add(array(
|
||||
'foo' => 'bar',
|
||||
'baz' => 'biz',
|
||||
));
|
||||
$catalogue->setMetadata('foo', array('notes' => array(
|
||||
array('category' => 'state', 'content' => 'new'),
|
||||
array('category' => 'approved', 'content' => 'true'),
|
||||
array('category' => 'section', 'content' => 'user login', 'priority' => '1'),
|
||||
)));
|
||||
$catalogue->setMetadata('baz', array('notes' => array(
|
||||
array('id' => 'x', 'content' => 'x_content'),
|
||||
array('appliesTo' => 'target', 'category' => 'quality', 'content' => 'Fuzzy'),
|
||||
)));
|
||||
|
||||
$dumper = new XliffFileDumper();
|
||||
|
||||
$this->assertStringEqualsFile(
|
||||
__DIR__.'/../fixtures/resources-notes-meta.xlf',
|
||||
$dumper->formatCatalogue($catalogue, 'messages', array('default_locale' => 'fr_FR', 'xliff_version' => '2.0'))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Dumper/YamlFileDumperTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Dumper/YamlFileDumperTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Dumper;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
use Symfony\Component\Translation\Dumper\YamlFileDumper;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
|
||||
class YamlFileDumperTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
0
pfosten/vendor/symfony/translation/Tests/IdentityTranslatorTest.php
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/IdentityTranslatorTest.php
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/IntervalTest.php
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/IntervalTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Loader/CsvFileLoaderTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Loader/CsvFileLoaderTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Loader;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\Loader\CsvFileLoader;
|
||||
use Symfony\Component\Config\Resource\FileResource;
|
||||
use Symfony\Component\Translation\Loader\CsvFileLoader;
|
||||
|
||||
class CsvFileLoaderTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Loader/IcuDatFileLoaderTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Loader/IcuDatFileLoaderTest.php
vendored
Executable file → Normal file
|
|
@ -11,8 +11,8 @@
|
|||
|
||||
namespace Symfony\Component\Translation\Tests\Loader;
|
||||
|
||||
use Symfony\Component\Translation\Loader\IcuDatFileLoader;
|
||||
use Symfony\Component\Config\Resource\FileResource;
|
||||
use Symfony\Component\Translation\Loader\IcuDatFileLoader;
|
||||
|
||||
/**
|
||||
* @requires extension intl
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Loader/IcuResFileLoaderTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Loader/IcuResFileLoaderTest.php
vendored
Executable file → Normal file
|
|
@ -11,8 +11,8 @@
|
|||
|
||||
namespace Symfony\Component\Translation\Tests\Loader;
|
||||
|
||||
use Symfony\Component\Translation\Loader\IcuResFileLoader;
|
||||
use Symfony\Component\Config\Resource\DirectoryResource;
|
||||
use Symfony\Component\Translation\Loader\IcuResFileLoader;
|
||||
|
||||
/**
|
||||
* @requires extension intl
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Loader/IniFileLoaderTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Loader/IniFileLoaderTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Loader;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\Loader\IniFileLoader;
|
||||
use Symfony\Component\Config\Resource\FileResource;
|
||||
use Symfony\Component\Translation\Loader\IniFileLoader;
|
||||
|
||||
class IniFileLoaderTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Loader/JsonFileLoaderTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Loader/JsonFileLoaderTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Loader;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\Loader\JsonFileLoader;
|
||||
use Symfony\Component\Config\Resource\FileResource;
|
||||
use Symfony\Component\Translation\Loader\JsonFileLoader;
|
||||
|
||||
class JsonFileLoaderTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Loader/LocalizedTestCase.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Loader/LocalizedTestCase.php
vendored
Executable file → Normal file
|
|
@ -17,7 +17,7 @@ abstract class LocalizedTestCase extends TestCase
|
|||
{
|
||||
protected function setUp()
|
||||
{
|
||||
if (!extension_loaded('intl')) {
|
||||
if (!\extension_loaded('intl')) {
|
||||
$this->markTestSkipped('Extension intl is required.');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Loader/MoFileLoaderTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Loader/MoFileLoaderTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Loader;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\Loader\MoFileLoader;
|
||||
use Symfony\Component\Config\Resource\FileResource;
|
||||
use Symfony\Component\Translation\Loader\MoFileLoader;
|
||||
|
||||
class MoFileLoaderTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Loader/PhpFileLoaderTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Loader/PhpFileLoaderTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Loader;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\Loader\PhpFileLoader;
|
||||
use Symfony\Component\Config\Resource\FileResource;
|
||||
use Symfony\Component\Translation\Loader\PhpFileLoader;
|
||||
|
||||
class PhpFileLoaderTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Loader/PoFileLoaderTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Loader/PoFileLoaderTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Loader;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\Loader\PoFileLoader;
|
||||
use Symfony\Component\Config\Resource\FileResource;
|
||||
use Symfony\Component\Translation\Loader\PoFileLoader;
|
||||
|
||||
class PoFileLoaderTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Loader/QtFileLoaderTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Loader/QtFileLoaderTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Loader;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\Loader\QtFileLoader;
|
||||
use Symfony\Component\Config\Resource\FileResource;
|
||||
use Symfony\Component\Translation\Loader\QtFileLoader;
|
||||
|
||||
class QtFileLoaderTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
71
pfosten/vendor/symfony/translation/Tests/Loader/XliffFileLoaderTest.php
vendored
Executable file → Normal file
71
pfosten/vendor/symfony/translation/Tests/Loader/XliffFileLoaderTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Loader;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\Loader\XliffFileLoader;
|
||||
use Symfony\Component\Config\Resource\FileResource;
|
||||
use Symfony\Component\Translation\Loader\XliffFileLoader;
|
||||
|
||||
class XliffFileLoaderTest extends TestCase
|
||||
{
|
||||
|
|
@ -188,4 +188,73 @@ class XliffFileLoaderTest extends TestCase
|
|||
// target attributes
|
||||
$this->assertEquals(array('target-attributes' => array('order' => 1)), $catalogue->getMetadata('bar', 'domain1'));
|
||||
}
|
||||
|
||||
public function testLoadVersion2WithNoteMeta()
|
||||
{
|
||||
$loader = new XliffFileLoader();
|
||||
$resource = __DIR__.'/../fixtures/resources-notes-meta.xlf';
|
||||
$catalogue = $loader->load($resource, 'en', 'domain1');
|
||||
|
||||
$this->assertEquals('en', $catalogue->getLocale());
|
||||
$this->assertEquals(array(new FileResource($resource)), $catalogue->getResources());
|
||||
$this->assertSame(array(), libxml_get_errors());
|
||||
|
||||
// test for "foo" metadata
|
||||
$this->assertTrue($catalogue->defines('foo', 'domain1'));
|
||||
$metadata = $catalogue->getMetadata('foo', 'domain1');
|
||||
$this->assertNotEmpty($metadata);
|
||||
$this->assertCount(3, $metadata['notes']);
|
||||
|
||||
$this->assertEquals('state', $metadata['notes'][0]['category']);
|
||||
$this->assertEquals('new', $metadata['notes'][0]['content']);
|
||||
|
||||
$this->assertEquals('approved', $metadata['notes'][1]['category']);
|
||||
$this->assertEquals('true', $metadata['notes'][1]['content']);
|
||||
|
||||
$this->assertEquals('section', $metadata['notes'][2]['category']);
|
||||
$this->assertEquals('1', $metadata['notes'][2]['priority']);
|
||||
$this->assertEquals('user login', $metadata['notes'][2]['content']);
|
||||
|
||||
// test for "baz" metadata
|
||||
$this->assertTrue($catalogue->defines('baz', 'domain1'));
|
||||
$metadata = $catalogue->getMetadata('baz', 'domain1');
|
||||
$this->assertNotEmpty($metadata);
|
||||
$this->assertCount(2, $metadata['notes']);
|
||||
|
||||
$this->assertEquals('x', $metadata['notes'][0]['id']);
|
||||
$this->assertEquals('x_content', $metadata['notes'][0]['content']);
|
||||
|
||||
$this->assertEquals('target', $metadata['notes'][1]['appliesTo']);
|
||||
$this->assertEquals('quality', $metadata['notes'][1]['category']);
|
||||
$this->assertEquals('Fuzzy', $metadata['notes'][1]['content']);
|
||||
}
|
||||
|
||||
public function testLoadVersion2WithMultiSegmentUnit()
|
||||
{
|
||||
$loader = new XliffFileLoader();
|
||||
$resource = __DIR__.'/../fixtures/resources-2.0-multi-segment-unit.xlf';
|
||||
$catalog = $loader->load($resource, 'en', 'domain1');
|
||||
|
||||
$this->assertSame('en', $catalog->getLocale());
|
||||
$this->assertEquals(array(new FileResource($resource)), $catalog->getResources());
|
||||
$this->assertFalse(libxml_get_last_error());
|
||||
|
||||
// test for "foo" metadata
|
||||
$this->assertTrue($catalog->defines('foo', 'domain1'));
|
||||
$metadata = $catalog->getMetadata('foo', 'domain1');
|
||||
$this->assertNotEmpty($metadata);
|
||||
$this->assertCount(1, $metadata['notes']);
|
||||
|
||||
$this->assertSame('processed', $metadata['notes'][0]['category']);
|
||||
$this->assertSame('true', $metadata['notes'][0]['content']);
|
||||
|
||||
// test for "bar" metadata
|
||||
$this->assertTrue($catalog->defines('bar', 'domain1'));
|
||||
$metadata = $catalog->getMetadata('bar', 'domain1');
|
||||
$this->assertNotEmpty($metadata);
|
||||
$this->assertCount(1, $metadata['notes']);
|
||||
|
||||
$this->assertSame('processed', $metadata['notes'][0]['category']);
|
||||
$this->assertSame('true', $metadata['notes'][0]['content']);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/Loader/YamlFileLoaderTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/Loader/YamlFileLoaderTest.php
vendored
Executable file → Normal file
|
|
@ -12,8 +12,8 @@
|
|||
namespace Symfony\Component\Translation\Tests\Loader;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\Loader\YamlFileLoader;
|
||||
use Symfony\Component\Config\Resource\FileResource;
|
||||
use Symfony\Component\Translation\Loader\YamlFileLoader;
|
||||
|
||||
class YamlFileLoaderTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
4
pfosten/vendor/symfony/translation/Tests/LoggingTranslatorTest.php
vendored
Executable file → Normal file
4
pfosten/vendor/symfony/translation/Tests/LoggingTranslatorTest.php
vendored
Executable file → Normal file
|
|
@ -12,9 +12,9 @@
|
|||
namespace Symfony\Component\Translation\Tests;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\Translator;
|
||||
use Symfony\Component\Translation\LoggingTranslator;
|
||||
use Symfony\Component\Translation\Loader\ArrayLoader;
|
||||
use Symfony\Component\Translation\LoggingTranslator;
|
||||
use Symfony\Component\Translation\Translator;
|
||||
|
||||
class LoggingTranslatorTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
0
pfosten/vendor/symfony/translation/Tests/MessageCatalogueTest.php
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/MessageCatalogueTest.php
vendored
Executable file → Normal file
4
pfosten/vendor/symfony/translation/Tests/MessageSelectorTest.php
vendored
Executable file → Normal file
4
pfosten/vendor/symfony/translation/Tests/MessageSelectorTest.php
vendored
Executable file → Normal file
|
|
@ -128,6 +128,10 @@ class MessageSelectorTest extends TestCase
|
|||
array("This is a text with a\nnew-line in it. Selector = 1.", "{0}This is a text with a\nnew-line in it. Selector = 0.|{1}This is a text with a\nnew-line in it. Selector = 1.|[1,Inf]This is a text with a\nnew-line in it. Selector > 1.", 1),
|
||||
// esacape pipe
|
||||
array('This is a text with | in it. Selector = 0.', '{0}This is a text with || in it. Selector = 0.|{1}This is a text with || in it. Selector = 1.', 0),
|
||||
// Empty plural set (2 plural forms) from a .PO file
|
||||
array('', '|', 1),
|
||||
// Empty plural set (3 plural forms) from a .PO file
|
||||
array('', '||', 1),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
8
pfosten/vendor/symfony/translation/Tests/PluralizationRulesTest.php
vendored
Executable file → Normal file
8
pfosten/vendor/symfony/translation/Tests/PluralizationRulesTest.php
vendored
Executable file → Normal file
|
|
@ -91,8 +91,8 @@ class PluralizationRulesTest extends TestCase
|
|||
/**
|
||||
* We validate only on the plural coverage. Thus the real rules is not tested.
|
||||
*
|
||||
* @param string $nplural plural expected
|
||||
* @param array $matrix containing langcodes and their plural index values
|
||||
* @param string $nplural Plural expected
|
||||
* @param array $matrix Containing langcodes and their plural index values
|
||||
* @param bool $expectSuccess
|
||||
*/
|
||||
protected function validateMatrix($nplural, $matrix, $expectSuccess = true)
|
||||
|
|
@ -100,9 +100,9 @@ class PluralizationRulesTest extends TestCase
|
|||
foreach ($matrix as $langCode => $data) {
|
||||
$indexes = array_flip($data);
|
||||
if ($expectSuccess) {
|
||||
$this->assertEquals($nplural, count($indexes), "Langcode '$langCode' has '$nplural' plural forms.");
|
||||
$this->assertEquals($nplural, \count($indexes), "Langcode '$langCode' has '$nplural' plural forms.");
|
||||
} else {
|
||||
$this->assertNotEquals((int) $nplural, count($indexes), "Langcode '$langCode' has '$nplural' plural forms.");
|
||||
$this->assertNotEquals((int) $nplural, \count($indexes), "Langcode '$langCode' has '$nplural' plural forms.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/TranslatorCacheTest.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/TranslatorCacheTest.php
vendored
Executable file → Normal file
|
|
@ -15,8 +15,8 @@ use PHPUnit\Framework\TestCase;
|
|||
use Symfony\Component\Config\Resource\SelfCheckingResourceInterface;
|
||||
use Symfony\Component\Translation\Loader\ArrayLoader;
|
||||
use Symfony\Component\Translation\Loader\LoaderInterface;
|
||||
use Symfony\Component\Translation\Translator;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
use Symfony\Component\Translation\Translator;
|
||||
|
||||
class TranslatorCacheTest extends TestCase
|
||||
{
|
||||
|
|
|
|||
37
pfosten/vendor/symfony/translation/Tests/TranslatorTest.php
vendored
Executable file → Normal file
37
pfosten/vendor/symfony/translation/Tests/TranslatorTest.php
vendored
Executable file → Normal file
|
|
@ -12,10 +12,9 @@
|
|||
namespace Symfony\Component\Translation\Tests;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Translation\Translator;
|
||||
use Symfony\Component\Translation\MessageSelector;
|
||||
use Symfony\Component\Translation\Loader\ArrayLoader;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
use Symfony\Component\Translation\Translator;
|
||||
|
||||
class TranslatorTest extends TestCase
|
||||
{
|
||||
|
|
@ -25,7 +24,7 @@ class TranslatorTest extends TestCase
|
|||
*/
|
||||
public function testConstructorInvalidLocale($locale)
|
||||
{
|
||||
$translator = new Translator($locale, new MessageSelector());
|
||||
new Translator($locale);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -33,14 +32,14 @@ class TranslatorTest extends TestCase
|
|||
*/
|
||||
public function testConstructorValidLocale($locale)
|
||||
{
|
||||
$translator = new Translator($locale, new MessageSelector());
|
||||
$translator = new Translator($locale);
|
||||
|
||||
$this->assertEquals($locale, $translator->getLocale());
|
||||
}
|
||||
|
||||
public function testConstructorWithoutLocale()
|
||||
{
|
||||
$translator = new Translator(null, new MessageSelector());
|
||||
$translator = new Translator(null);
|
||||
|
||||
$this->assertNull($translator->getLocale());
|
||||
}
|
||||
|
|
@ -61,7 +60,7 @@ class TranslatorTest extends TestCase
|
|||
*/
|
||||
public function testSetInvalidLocale($locale)
|
||||
{
|
||||
$translator = new Translator('fr', new MessageSelector());
|
||||
$translator = new Translator('fr');
|
||||
$translator->setLocale($locale);
|
||||
}
|
||||
|
||||
|
|
@ -70,7 +69,7 @@ class TranslatorTest extends TestCase
|
|||
*/
|
||||
public function testSetValidLocale($locale)
|
||||
{
|
||||
$translator = new Translator($locale, new MessageSelector());
|
||||
$translator = new Translator($locale);
|
||||
$translator->setLocale($locale);
|
||||
|
||||
$this->assertEquals($locale, $translator->getLocale());
|
||||
|
|
@ -144,7 +143,7 @@ class TranslatorTest extends TestCase
|
|||
*/
|
||||
public function testSetFallbackInvalidLocales($locale)
|
||||
{
|
||||
$translator = new Translator('fr', new MessageSelector());
|
||||
$translator = new Translator('fr');
|
||||
$translator->setFallbackLocales(array('fr', $locale));
|
||||
}
|
||||
|
||||
|
|
@ -153,7 +152,7 @@ class TranslatorTest extends TestCase
|
|||
*/
|
||||
public function testSetFallbackValidLocales($locale)
|
||||
{
|
||||
$translator = new Translator($locale, new MessageSelector());
|
||||
$translator = new Translator($locale);
|
||||
$translator->setFallbackLocales(array('fr', $locale));
|
||||
// no assertion. this method just asserts that no exception is thrown
|
||||
$this->addToAssertionCount(1);
|
||||
|
|
@ -176,7 +175,7 @@ class TranslatorTest extends TestCase
|
|||
*/
|
||||
public function testAddResourceInvalidLocales($locale)
|
||||
{
|
||||
$translator = new Translator('fr', new MessageSelector());
|
||||
$translator = new Translator('fr');
|
||||
$translator->addResource('array', array('foo' => 'foofoo'), $locale);
|
||||
}
|
||||
|
||||
|
|
@ -185,7 +184,7 @@ class TranslatorTest extends TestCase
|
|||
*/
|
||||
public function testAddResourceValidLocales($locale)
|
||||
{
|
||||
$translator = new Translator('fr', new MessageSelector());
|
||||
$translator = new Translator('fr');
|
||||
$translator->addResource('array', array('foo' => 'foofoo'), $locale);
|
||||
// no assertion. this method just asserts that no exception is thrown
|
||||
$this->addToAssertionCount(1);
|
||||
|
|
@ -288,7 +287,7 @@ class TranslatorTest extends TestCase
|
|||
|
||||
public function testFallbackCatalogueResources()
|
||||
{
|
||||
$translator = new Translator('en_GB', new MessageSelector());
|
||||
$translator = new Translator('en_GB');
|
||||
$translator->addLoader('yml', new \Symfony\Component\Translation\Loader\YamlFileLoader());
|
||||
$translator->addResource('yml', __DIR__.'/fixtures/empty.yml', 'en_GB');
|
||||
$translator->addResource('yml', __DIR__.'/fixtures/resources.yml', 'en');
|
||||
|
|
@ -298,12 +297,12 @@ class TranslatorTest extends TestCase
|
|||
|
||||
$resources = $translator->getCatalogue('en')->getResources();
|
||||
$this->assertCount(1, $resources);
|
||||
$this->assertContains(__DIR__.DIRECTORY_SEPARATOR.'fixtures'.DIRECTORY_SEPARATOR.'resources.yml', $resources);
|
||||
$this->assertContains(__DIR__.\DIRECTORY_SEPARATOR.'fixtures'.\DIRECTORY_SEPARATOR.'resources.yml', $resources);
|
||||
|
||||
$resources = $translator->getCatalogue('en_GB')->getResources();
|
||||
$this->assertCount(2, $resources);
|
||||
$this->assertContains(__DIR__.DIRECTORY_SEPARATOR.'fixtures'.DIRECTORY_SEPARATOR.'empty.yml', $resources);
|
||||
$this->assertContains(__DIR__.DIRECTORY_SEPARATOR.'fixtures'.DIRECTORY_SEPARATOR.'resources.yml', $resources);
|
||||
$this->assertContains(__DIR__.\DIRECTORY_SEPARATOR.'fixtures'.\DIRECTORY_SEPARATOR.'empty.yml', $resources);
|
||||
$this->assertContains(__DIR__.\DIRECTORY_SEPARATOR.'fixtures'.\DIRECTORY_SEPARATOR.'resources.yml', $resources);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -324,7 +323,7 @@ class TranslatorTest extends TestCase
|
|||
*/
|
||||
public function testTransInvalidLocale($locale)
|
||||
{
|
||||
$translator = new Translator('en', new MessageSelector());
|
||||
$translator = new Translator('en');
|
||||
$translator->addLoader('array', new ArrayLoader());
|
||||
$translator->addResource('array', array('foo' => 'foofoo'), 'en');
|
||||
|
||||
|
|
@ -336,7 +335,7 @@ class TranslatorTest extends TestCase
|
|||
*/
|
||||
public function testTransValidLocale($locale)
|
||||
{
|
||||
$translator = new Translator($locale, new MessageSelector());
|
||||
$translator = new Translator($locale);
|
||||
$translator->addLoader('array', new ArrayLoader());
|
||||
$translator->addResource('array', array('test' => 'OK'), $locale);
|
||||
|
||||
|
|
@ -374,7 +373,7 @@ class TranslatorTest extends TestCase
|
|||
*/
|
||||
public function testTransChoiceInvalidLocale($locale)
|
||||
{
|
||||
$translator = new Translator('en', new MessageSelector());
|
||||
$translator = new Translator('en');
|
||||
$translator->addLoader('array', new ArrayLoader());
|
||||
$translator->addResource('array', array('foo' => 'foofoo'), 'en');
|
||||
|
||||
|
|
@ -386,7 +385,7 @@ class TranslatorTest extends TestCase
|
|||
*/
|
||||
public function testTransChoiceValidLocale($locale)
|
||||
{
|
||||
$translator = new Translator('en', new MessageSelector());
|
||||
$translator = new Translator('en');
|
||||
$translator->addLoader('array', new ArrayLoader());
|
||||
$translator->addResource('array', array('foo' => 'foofoo'), 'en');
|
||||
|
||||
|
|
|
|||
0
pfosten/vendor/symfony/translation/Tests/Util/ArrayConverterTest.php
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/Util/ArrayConverterTest.php
vendored
Executable file → Normal file
18
pfosten/vendor/symfony/translation/Tests/Writer/TranslationWriterTest.php
vendored
Executable file → Normal file
18
pfosten/vendor/symfony/translation/Tests/Writer/TranslationWriterTest.php
vendored
Executable file → Normal file
|
|
@ -18,6 +18,10 @@ use Symfony\Component\Translation\Writer\TranslationWriter;
|
|||
|
||||
class TranslationWriterTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @group legacy
|
||||
* @expectedDeprecation The "Symfony\Component\Translation\Writer\TranslationWriter::writeTranslations()" method is deprecated since Symfony 3.4 and will be removed in 4.0. Use write() instead.
|
||||
*/
|
||||
public function testWriteTranslations()
|
||||
{
|
||||
$dumper = $this->getMockBuilder('Symfony\Component\Translation\Dumper\DumperInterface')->getMock();
|
||||
|
|
@ -27,7 +31,19 @@ class TranslationWriterTest extends TestCase
|
|||
|
||||
$writer = new TranslationWriter();
|
||||
$writer->addDumper('test', $dumper);
|
||||
$writer->writeTranslations(new MessageCatalogue(array()), 'test');
|
||||
$writer->writeTranslations(new MessageCatalogue('en'), 'test');
|
||||
}
|
||||
|
||||
public function testWrite()
|
||||
{
|
||||
$dumper = $this->getMockBuilder('Symfony\Component\Translation\Dumper\DumperInterface')->getMock();
|
||||
$dumper
|
||||
->expects($this->once())
|
||||
->method('dump');
|
||||
|
||||
$writer = new TranslationWriter();
|
||||
$writer->addDumper('test', $dumper);
|
||||
$writer->write(new MessageCatalogue(array()), 'test');
|
||||
}
|
||||
|
||||
public function testDisableBackup()
|
||||
|
|
|
|||
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty-translation.mo
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty-translation.mo
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty-translation.po
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty-translation.po
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty.csv
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty.csv
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty.ini
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty.ini
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty.json
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty.json
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty.mo
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty.mo
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty.po
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty.po
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty.yml
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/empty.yml
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/encoding.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/encoding.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/escaped-id-plurals.po
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/escaped-id-plurals.po
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/escaped-id.po
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/escaped-id.po
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/fuzzy-translations.po
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/fuzzy-translations.po
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/invalid-xml-resources.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/invalid-xml-resources.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/malformed.json
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/malformed.json
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/messages.yml
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/messages.yml
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/messages_linear.yml
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/messages_linear.yml
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/non-valid.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/non-valid.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/non-valid.yml
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/non-valid.yml
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/plurals.mo
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/plurals.mo
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/plurals.po
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/plurals.po
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resname.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resname.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resourcebundle/corrupted/resources.dat
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resourcebundle/corrupted/resources.dat
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/en.res
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/en.res
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/en.txt
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/en.txt
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/fr.res
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/fr.res
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/fr.txt
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/fr.txt
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/packagelist.txt
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/packagelist.txt
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/resources.dat
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resourcebundle/dat/resources.dat
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resourcebundle/res/en.res
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resourcebundle/res/en.res
vendored
Executable file → Normal file
6
pfosten/vendor/symfony/translation/Tests/fixtures/resources-2.0-clean.xlf
vendored
Executable file → Normal file
6
pfosten/vendor/symfony/translation/Tests/fixtures/resources-2.0-clean.xlf
vendored
Executable file → Normal file
|
|
@ -1,19 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" version="2.0" srcLang="fr-FR" trgLang="en-US">
|
||||
<file id="messages.en_US">
|
||||
<unit id="acbd18db4cc2f85cedef654fccc4a4d8">
|
||||
<unit id="LCa0a2j">
|
||||
<segment>
|
||||
<source>foo</source>
|
||||
<target>bar</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="3c6e0b8a9c15224a8228b9a98ca1531d">
|
||||
<unit id="LHDhK3o">
|
||||
<segment>
|
||||
<source>key</source>
|
||||
<target order="1"></target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="18e6a493872558d949b4c16ea1fa6ab6">
|
||||
<unit id="2DA_bnh">
|
||||
<segment>
|
||||
<source>key.with.cdata</source>
|
||||
<target><![CDATA[<source> & <target>]]></target>
|
||||
|
|
|
|||
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources-2.0.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources-2.0.xlf
vendored
Executable file → Normal file
6
pfosten/vendor/symfony/translation/Tests/fixtures/resources-clean.xlf
vendored
Executable file → Normal file
6
pfosten/vendor/symfony/translation/Tests/fixtures/resources-clean.xlf
vendored
Executable file → Normal file
|
|
@ -5,18 +5,18 @@
|
|||
<tool tool-id="symfony" tool-name="Symfony"/>
|
||||
</header>
|
||||
<body>
|
||||
<trans-unit id="acbd18db4cc2f85cedef654fccc4a4d8" resname="foo">
|
||||
<trans-unit id="LCa0a2j" resname="foo">
|
||||
<source>foo</source>
|
||||
<target>bar</target>
|
||||
<note priority="1" from="bar">baz</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="3c6e0b8a9c15224a8228b9a98ca1531d" resname="key">
|
||||
<trans-unit id="LHDhK3o" resname="key">
|
||||
<source>key</source>
|
||||
<target></target>
|
||||
<note>baz</note>
|
||||
<note>qux</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="18e6a493872558d949b4c16ea1fa6ab6" resname="key.with.cdata">
|
||||
<trans-unit id="2DA_bnh" resname="key.with.cdata">
|
||||
<source>key.with.cdata</source>
|
||||
<target><![CDATA[<source> & <target>]]></target>
|
||||
</trans-unit>
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/fixtures/resources-target-attributes.xlf
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/fixtures/resources-target-attributes.xlf
vendored
Executable file → Normal file
|
|
@ -5,7 +5,7 @@
|
|||
<tool tool-id="symfony" tool-name="Symfony"/>
|
||||
</header>
|
||||
<body>
|
||||
<trans-unit id="acbd18db4cc2f85cedef654fccc4a4d8" resname="foo">
|
||||
<trans-unit id="LCa0a2j" resname="foo">
|
||||
<source>foo</source>
|
||||
<target state="needs-translation">bar</target>
|
||||
</trans-unit>
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/translation/Tests/fixtures/resources-tool-info.xlf
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/translation/Tests/fixtures/resources-tool-info.xlf
vendored
Executable file → Normal file
|
|
@ -5,7 +5,7 @@
|
|||
<tool tool-id="foo" tool-name="foo" tool-version="0.0" tool-company="Foo"/>
|
||||
</header>
|
||||
<body>
|
||||
<trans-unit id="acbd18db4cc2f85cedef654fccc4a4d8" resname="foo">
|
||||
<trans-unit id="LCa0a2j" resname="foo">
|
||||
<source>foo</source>
|
||||
<target>bar</target>
|
||||
</trans-unit>
|
||||
|
|
|
|||
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.csv
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.csv
vendored
Executable file → Normal file
|
Can't render this file because it contains an unexpected character in line 2 and column 2.
|
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.dump.json
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.dump.json
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.ini
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.ini
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.json
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.json
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.mo
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.mo
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.php
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.php
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.po
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.po
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.ts
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.ts
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.yml
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/resources.yml
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/valid.csv
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/valid.csv
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/with-attributes.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/with-attributes.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/withdoctype.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/withdoctype.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/withnote.xlf
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/translation/Tests/fixtures/withnote.xlf
vendored
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue