Add localization conversion states

This commit is contained in:
Tichau committed 2016-07-01 08:27:00 +02:00
1 parent 36645b4a12
commit 4e81f4637d
4 files changed
+87 -3

No files matched your search

@@ -114,7 +114,7 @@ namespace FileConverter.ConversionJobs
Debug.Log("Starting CDA extraction.");
this.UserState = "Extraction";
this.UserState = Properties.Resources.ConversionStateExtraction;
if (!this.cdDrive.IsCDReady())
{
@@ -160,7 +160,7 @@ namespace FileConverter.ConversionJobs
Debug.Log(string.Empty);
Debug.Log("Start compression.");
this.UserState = "Conversion";
this.UserState = Properties.Resources.ConversionStateConversion;
this.compressionThread.Start();
@@ -66,7 +66,7 @@ namespace FileConverter.ConversionJobs
if (this.pngConversionJob != null)
{
this.UserState = "Read input image";
this.UserState = Properties.Resources.ConversionStateReadIntputImage;
Diagnostics.Debug.Log(string.Empty);
Diagnostics.Debug.Log("Convert image to PNG (intermediate format).");
@@ -168,6 +168,69 @@ namespace FileConverter.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Conversion.
/// </summary>
public static string ConversionStateConversion {
get {
return ResourceManager.GetString("ConversionStateConversion", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Done.
/// </summary>
public static string ConversionStateDone {
get {
return ResourceManager.GetString("ConversionStateDone", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Extraction.
/// </summary>
public static string ConversionStateExtraction {
get {
return ResourceManager.GetString("ConversionStateExtraction", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Failed.
/// </summary>
public static string ConversionStateFailed {
get {
return ResourceManager.GetString("ConversionStateFailed", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to In queue.
/// </summary>
public static string ConversionStateInQueue {
get {
return ResourceManager.GetString("ConversionStateInQueue", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Read input image.
/// </summary>
public static string ConversionStateReadIntputImage {
get {
return ResourceManager.GetString("ConversionStateReadIntputImage", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Read document.
/// </summary>
public static string ConversionStateReadPdf {
get {
return ResourceManager.GetString("ConversionStateReadPdf", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Converted from.
/// </summary>
@@ -382,4 +382,25 @@ Special paths:
<data name="ZeroDegreesRotationTooltip" xml:space="preserve">
<value>No rotation</value>
</data>
<data name="ConversionStateConversion" xml:space="preserve">
<value>Conversion</value>
</data>
<data name="ConversionStateDone" xml:space="preserve">
<value>Done</value>
</data>
<data name="ConversionStateExtraction" xml:space="preserve">
<value>Extraction</value>
</data>
<data name="ConversionStateFailed" xml:space="preserve">
<value>Failed</value>
</data>
<data name="ConversionStateInQueue" xml:space="preserve">
<value>In queue</value>
</data>
<data name="ConversionStateReadIntputImage" xml:space="preserve">
<value>Read input image</value>
</data>
<data name="ConversionStateReadPdf" xml:space="preserve">
<value>Read document</value>
</data>
</root>