Transifex integration (#655)
* Add: Transifex file and renamed lang files * Translate Vocaluxe/Website/locales/en.json in tr 100% translated source file: 'Vocaluxe/Website/locales/en.json' on 'tr'. * Translate Vocaluxe/Website/locales/en.json in es 100% translated source file: 'Vocaluxe/Website/locales/en.json' on 'es'. * Rename all language files to match transifex. * Manual sync of translations * Another manual sync of translations * Adjust pr branch name * Translate Output/Languages/en.xml in pt 97% of minimum 90% translated source file: 'Output/Languages/en.xml' on 'pt'. Sync of partially translated files: untranslated content is included with an empty translation or source language content depending on file format * Translate Output/Languages/en.xml in cs 96% of minimum 90% translated source file: 'Output/Languages/en.xml' on 'cs'. Sync of partially translated files: untranslated content is included with an empty translation or source language content depending on file format * Translate Output/Languages/en.xml in it 100% translated source file: 'Output/Languages/en.xml' on 'it'. * Translate Output/Languages/en.xml in ru 100% translated source file: 'Output/Languages/en.xml' on 'ru'. * Translate Output/Languages/en.xml in sv 100% translated source file: 'Output/Languages/en.xml' on 'sv'. * Translate Output/Languages/en.xml in de 100% translated source file: 'Output/Languages/en.xml' on 'de'. * Translate Output/Languages/en.xml in fr 100% translated source file: 'Output/Languages/en.xml' on 'fr'. * Translate Vocaluxe/Website/locales/en.json in hu 100% translated source file: 'Vocaluxe/Website/locales/en.json' on 'hu'. * Translate Vocaluxe/Website/locales/en.json in ru 100% translated source file: 'Vocaluxe/Website/locales/en.json' on 'ru'. * Fix: Unescape String during xml reading * Translate Output/Languages/en.xml in ru 100% translated source file: 'Output/Languages/en.xml' on 'ru'. * Translate Output/Languages/en.xml in ru 100% translated source file: 'Output/Languages/en.xml' on 'ru'. * Translate Output/Languages/en.xml in ru 100% translated source file: 'Output/Languages/en.xml' on 'ru'. * Translate Output/Languages/en.xml in ru 100% translated source file: 'Output/Languages/en.xml' on 'ru'. * Fix: Seperate handling of unescaping * Fix: Typo * Fix: Typo --------- Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
b038f5a1ff
commit
990707d678
49 files changed
+736
-73
No files matched your search
@@ -371,6 +371,38 @@ namespace Tests.VocaluxeLib.XML
|
||||
</root>", newXml);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestEscapedValues()
|
||||
{
|
||||
const string s = _Head + @"<root>
|
||||
<S>Foo\'Bar</S>
|
||||
<Sub>
|
||||
<S>Foo\'Bar</S>
|
||||
</Sub>
|
||||
</root>";
|
||||
_AssertSerDeserMatch<SUnescaping>(s);
|
||||
var xml = new CXmlDeserializer(new CXmlErrorHandler(exception => { }));
|
||||
SUnescaping foo = xml.DeserializeString<SUnescaping>(@"<root />");
|
||||
Assert.AreEqual(foo.S, "Foo\'Bar");
|
||||
Assert.AreEqual(foo.Sub.S, "Foo\'Bar");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestUnescapedValues()
|
||||
{
|
||||
const string s = _Head + @"<root>
|
||||
<S>Foo\'Bar</S>
|
||||
<Sub>
|
||||
<S>Foo\'Bar</S>
|
||||
</Sub>
|
||||
</root>";
|
||||
_AssertSerDeserMatch<SUnescaping>(s);
|
||||
var xml = new CXmlDeserializer(new CXmlErrorHandler(exception => { }), true);
|
||||
SUnescaping foo = xml.DeserializeString<SUnescaping>(@"<root />");
|
||||
Assert.AreEqual(foo.S, "Foo'Bar");
|
||||
Assert.AreEqual(foo.Sub.S, "Foo'Bar");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestRealFiles([Values(typeof(SThemeCover), typeof(CConfig.SConfig), /*typeof(SThemeScreen),*/ typeof(SDefaultFonts), typeof(SSkin), typeof(STheme), typeof(Dictionary<string, string>))] Type type)
|
||||
{
|
||||
@@ -491,6 +523,20 @@ namespace Tests.VocaluxeLib.XML
|
||||
public SDefaultSub Sub;
|
||||
}
|
||||
|
||||
private struct SUnescaping
|
||||
{
|
||||
[DefaultValue("Foo\'Bar")]
|
||||
public string S;
|
||||
public SUnescapingSub Sub;
|
||||
}
|
||||
|
||||
private struct SUnescapingSub
|
||||
{
|
||||
[DefaultValue("Foo\'Bar")]
|
||||
public string S;
|
||||
}
|
||||
|
||||
|
||||
#pragma warning restore 169
|
||||
#pragma warning restore 649
|
||||
|
||||
|
||||
Reference in new issue
Block a user