mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-07 11:25:58 +02:00
- using ResXManager plugin for VisualStudio to translate strings
- fixed a few missing German translations - added russian translation from resources.dll back to .resx - extracted all localized strings to a .xlsx spreadsheet to allow easier translation
This commit is contained in:
15
source/ChanSort.Loader.Samsung/Resource.Designer.cs
generated
15
source/ChanSort.Loader.Samsung/Resource.Designer.cs
generated
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34014
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
@@ -59,18 +59,5 @@ namespace ChanSort.Loader.Samsung {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to This file contains no data, all bytes in it are set to 0.
|
||||
///
|
||||
///Please make sure your USB stick is formatted as FAT32 and preferrably not larger than 4GB.
|
||||
///If that still does not work, try to reset your TV to factory defaults and run a new channel search.
|
||||
///(This might be necessary after a firmware update.).
|
||||
/// </summary>
|
||||
internal static string ScmSerializer_AllBytesInFileAreZero {
|
||||
get {
|
||||
return ResourceManager.GetString("ScmSerializer_AllBytesInFileAreZero", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,11 +98,4 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="ScmSerializer_AllBytesInFileAreZero" xml:space="preserve">
|
||||
<value>Diese Datei enthält keine Daten, alle Bytes darin haben den Wert 0.
|
||||
|
||||
Bitte stellen Sie sicher, dass der USB Stick mit FAT32 formatiert ist und wenn möglich nicht größer als 4GB ist.
|
||||
Sollte es danach weiterhin nicht funktionieren, versuchen Sie bitte das Gerät auf Werkseinstellungen zurückzusetzen und einen Suchlauf durchzuführen.
|
||||
(Dies kann nach machen Firmwareupdates nötig sein, damit Export/Import wieder funktionieren.)</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -98,11 +98,4 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="ScmSerializer_AllBytesInFileAreZero" xml:space="preserve">
|
||||
<value>This file contains no data, all bytes in it are set to 0.
|
||||
|
||||
Please make sure your USB stick is formatted as FAT32 and preferrably not larger than 4GB.
|
||||
If that still does not work, try to reset your TV to factory defaults and run a new channel search.
|
||||
(This might be necessary after a firmware update.)</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -4,7 +4,6 @@ using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using ChanSort.Api;
|
||||
using ICSharpCode.SharpZipLib.Zip;
|
||||
|
||||
@@ -109,8 +108,6 @@ namespace ChanSort.Loader.Samsung
|
||||
#region Load()
|
||||
public override void Load()
|
||||
{
|
||||
if (AllBytesInFileAreZero())
|
||||
return;
|
||||
using (ZipFile zip = new ZipFile(this.FileName))
|
||||
{
|
||||
DetectModelConstants(zip);
|
||||
@@ -142,20 +139,6 @@ namespace ChanSort.Loader.Samsung
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region AllBytesInFileAreZero()
|
||||
private bool AllBytesInFileAreZero()
|
||||
{
|
||||
byte[] content = File.ReadAllBytes(this.FileName);
|
||||
foreach (var b in content)
|
||||
{
|
||||
if (b != 0)
|
||||
return false;
|
||||
}
|
||||
|
||||
throw new FileLoadException(Resource.ScmSerializer_AllBytesInFileAreZero);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region DetectModelConstants()
|
||||
private void DetectModelConstants(ZipFile zip)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user