From b8a46c1024ded225febcec876b67a9318eebde4c Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Wed, 27 Sep 2023 00:44:43 +0100 Subject: [PATCH] Translate Aaru.Filters to Spanish (Spain). --- .../Localization/Localization.Designer.cs | 302 +++++++++++------- .../Localization/Localization.es.resx | 80 +++++ Aaru.Filters/Localization/Localization.resx | 3 - Aaru.Filters/OffsetStream.cs | 4 +- Aaru.Filters/SplitJoinStream.cs | 4 +- 5 files changed, 272 insertions(+), 121 deletions(-) create mode 100644 Aaru.Filters/Localization/Localization.es.resx diff --git a/Aaru.Filters/Localization/Localization.Designer.cs b/Aaru.Filters/Localization/Localization.Designer.cs index 61f90c77c..9c3f79d8e 100644 --- a/Aaru.Filters/Localization/Localization.Designer.cs +++ b/Aaru.Filters/Localization/Localization.Designer.cs @@ -11,32 +11,46 @@ namespace Aaru.Filters { using System; - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Localization { - private static System.Resources.ResourceManager resourceMan; + private static global::System.Resources.ResourceManager resourceMan; - private static System.Globalization.CultureInfo resourceCulture; + private static global::System.Globalization.CultureInfo resourceCulture; - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Localization() { } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - internal static System.Resources.ResourceManager ResourceManager { + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { get { - if (object.Equals(null, resourceMan)) { - System.Resources.ResourceManager temp = new System.Resources.ResourceManager("Aaru.Filters.Localization.Localization", typeof(Localization).Assembly); + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aaru.Filters.Localization.Localization", typeof(Localization).Assembly); resourceMan = temp; } return resourceMan; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - internal static System.Globalization.CultureInfo Culture { + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } @@ -45,138 +59,198 @@ namespace Aaru.Filters { } } + /// + /// Looks up a localized string similar to AppleDouble. + /// internal static string AppleDouble_Name { get { return ResourceManager.GetString("AppleDouble_Name", resourceCulture); } } + /// + /// Looks up a localized string similar to AppleSingle. + /// internal static string AppleSingle_Name { get { return ResourceManager.GetString("AppleSingle_Name", resourceCulture); } } - internal static string BZip2_Name { - get { - return ResourceManager.GetString("BZip2_Name", resourceCulture); - } - } - - internal static string Cannot_seek_before_stream_start { - get { - return ResourceManager.GetString("Cannot_seek_before_stream_start", resourceCulture); - } - } - - internal static string Cannot_seek_after_stream_end { - get { - return ResourceManager.GetString("Cannot_seek_after_stream_end", resourceCulture); - } - } - - internal static string GZip_Name { - get { - return ResourceManager.GetString("GZip_Name", resourceCulture); - } - } - - internal static string LZip_Name { - get { - return ResourceManager.GetString("LZip_Name", resourceCulture); - } - } - - internal static string MacBinary_Name { - get { - return ResourceManager.GetString("MacBinary_Name", resourceCulture); - } - } - - internal static string Start_cant_be_a_negative_number { - get { - return ResourceManager.GetString("Start_cant_be_a_negative_number", resourceCulture); - } - } - - internal static string End_cant_be_a_negative_number { - get { - return ResourceManager.GetString("End_cant_be_a_negative_number", resourceCulture); - } - } - - internal static string End_is_after_stream_end { - get { - return ResourceManager.GetString("End_is_after_stream_end", resourceCulture); - } - } - - internal static string Cannot_set_position_past_stream_end { - get { - return ResourceManager.GetString("Cannot_set_position_past_stream_end", resourceCulture); - } - } - - internal static string Cannot_read_past_stream_end { - get { - return ResourceManager.GetString("Cannot_read_past_stream_end", resourceCulture); - } - } - - internal static string Cannot_write_past_stream_end { - get { - return ResourceManager.GetString("Cannot_write_past_stream_end", resourceCulture); - } - } - - internal static string Cannot_seek_past_stream_end { - get { - return ResourceManager.GetString("Cannot_seek_past_stream_end", resourceCulture); - } - } - - internal static string Growing_OffsetStream_is_not_supported { - get { - return ResourceManager.GetString("Growing_OffsetStream_is_not_supported", resourceCulture); - } - } - - internal static string PcExchange_Name { - get { - return ResourceManager.GetString("PcExchange_Name", resourceCulture); - } - } - - internal static string Non_seekable_streams_are_not_supported { - get { - return ResourceManager.GetString("Non_seekable_streams_are_not_supported", resourceCulture); - } - } - - internal static string Non_readable_streams_are_not_supported { - get { - return ResourceManager.GetString("Non_readable_streams_are_not_supported", resourceCulture); - } - } - + /// + /// Looks up a localized string similar to Asynchronous I/O is not supported.. + /// internal static string Asynchronous_IO_is_not_supported { get { return ResourceManager.GetString("Asynchronous_IO_is_not_supported", resourceCulture); } } + /// + /// Looks up a localized string similar to BZip2. + /// + internal static string BZip2_Name { + get { + return ResourceManager.GetString("BZip2_Name", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot read past stream end.. + /// + internal static string Cannot_read_past_stream_end { + get { + return ResourceManager.GetString("Cannot_read_past_stream_end", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot seek after stream end.. + /// + internal static string Cannot_seek_after_stream_end { + get { + return ResourceManager.GetString("Cannot_seek_after_stream_end", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot seek before stream start.. + /// + internal static string Cannot_seek_before_stream_start { + get { + return ResourceManager.GetString("Cannot_seek_before_stream_start", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot set position past stream end.. + /// + internal static string Cannot_set_position_past_stream_end { + get { + return ResourceManager.GetString("Cannot_set_position_past_stream_end", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot write past stream end.. + /// + internal static string Cannot_write_past_stream_end { + get { + return ResourceManager.GetString("Cannot_write_past_stream_end", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to End can't be a negative number.. + /// + internal static string End_cant_be_a_negative_number { + get { + return ResourceManager.GetString("End_cant_be_a_negative_number", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to End is after stream end.. + /// + internal static string End_is_after_stream_end { + get { + return ResourceManager.GetString("End_is_after_stream_end", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Growing OffsetStream is not supported.. + /// + internal static string Growing_OffsetStream_is_not_supported { + get { + return ResourceManager.GetString("Growing_OffsetStream_is_not_supported", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to GZip. + /// + internal static string GZip_Name { + get { + return ResourceManager.GetString("GZip_Name", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to LZip. + /// + internal static string LZip_Name { + get { + return ResourceManager.GetString("LZip_Name", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to MacBinary. + /// + internal static string MacBinary_Name { + get { + return ResourceManager.GetString("MacBinary_Name", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Non-readable streams are not supported. + /// + internal static string Non_readable_streams_are_not_supported { + get { + return ResourceManager.GetString("Non_readable_streams_are_not_supported", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Non-seekable streams are not supported. + /// + internal static string Non_seekable_streams_are_not_supported { + get { + return ResourceManager.GetString("Non_seekable_streams_are_not_supported", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to PCExchange. + /// + internal static string PcExchange_Name { + get { + return ResourceManager.GetString("PcExchange_Name", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Start can't be a negative number.. + /// + internal static string Start_cant_be_a_negative_number { + get { + return ResourceManager.GetString("Start_cant_be_a_negative_number", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This stream is read-only. + /// internal static string This_stream_is_read_only { get { return ResourceManager.GetString("This_stream_is_read_only", resourceCulture); } } + /// + /// Looks up a localized string similar to XZ. + /// internal static string XZ_Name { get { return ResourceManager.GetString("XZ_Name", resourceCulture); } } + /// + /// Looks up a localized string similar to No filter. + /// internal static string ZZZNoFilter_Name { get { return ResourceManager.GetString("ZZZNoFilter_Name", resourceCulture); diff --git a/Aaru.Filters/Localization/Localization.es.resx b/Aaru.Filters/Localization/Localization.es.resx new file mode 100644 index 000000000..21a3667b2 --- /dev/null +++ b/Aaru.Filters/Localization/Localization.es.resx @@ -0,0 +1,80 @@ + + + text/microsoft-resx + + + 1.3 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + AppleDouble + + + AppleSingle + + + E/S asíncrona no soportada. + + + BZip2 + + + No se puede leer más allá del final de la secuencia. + + + No se puede posicionar después del final de la secuencia. + + + No se puede posicionar antes del comienzo de la secuencia. + + + No se puede establecer la posición más allá del final de la secuencia. + + + No se puede escribir después del final de la secuencia. + + + El final no puede ser un número negativo. + + + El final está después del final de la secuencia. + + + No se puede agrandar un OffsetStream. + + + GZip + + + LZip + + + MacBinary + + + Las secuencias no legíbles no están soportadas. + + + Las secuencias no posicionables no están soportadas. + + + PCExchange + + + El comienzo no puede ser un número negativo. + + + Esta secuencia es de sólo lectura. + + + XZ + + + Sin filtro + + \ No newline at end of file diff --git a/Aaru.Filters/Localization/Localization.resx b/Aaru.Filters/Localization/Localization.resx index 4132489f8..da287f65d 100644 --- a/Aaru.Filters/Localization/Localization.resx +++ b/Aaru.Filters/Localization/Localization.resx @@ -63,9 +63,6 @@ Cannot write past stream end. - - Cannot seek past stream end. - Growing OffsetStream is not supported. diff --git a/Aaru.Filters/OffsetStream.cs b/Aaru.Filters/OffsetStream.cs index 93dccf2f8..a89bb715c 100644 --- a/Aaru.Filters/OffsetStream.cs +++ b/Aaru.Filters/OffsetStream.cs @@ -652,7 +652,7 @@ namespace Aaru.Filters { case SeekOrigin.Begin: if(offset + _streamStart > _streamEnd) - throw new IOException(Localization.Cannot_seek_past_stream_end); + throw new IOException(Localization.Cannot_seek_after_stream_end); return _baseStream.Seek(offset + _streamStart, SeekOrigin.Begin) - _streamStart; case SeekOrigin.End: @@ -662,7 +662,7 @@ namespace Aaru.Filters return _baseStream.Seek(offset - (_baseStream.Length - _streamEnd), SeekOrigin.End) - _streamStart; default: if(offset + _baseStream.Position > _streamEnd) - throw new IOException(Localization.Cannot_seek_past_stream_end); + throw new IOException(Localization.Cannot_seek_after_stream_end); return _baseStream.Seek(offset, SeekOrigin.Current) - _streamStart; } diff --git a/Aaru.Filters/SplitJoinStream.cs b/Aaru.Filters/SplitJoinStream.cs index 2e9414175..adc95df2a 100644 --- a/Aaru.Filters/SplitJoinStream.cs +++ b/Aaru.Filters/SplitJoinStream.cs @@ -343,7 +343,7 @@ public class SplitJoinStream : Stream { case SeekOrigin.Begin: if(offset >= _streamLength) - throw new IOException(Localization.Cannot_seek_past_stream_end); + throw new IOException(Localization.Cannot_seek_after_stream_end); _position = offset; @@ -357,7 +357,7 @@ public class SplitJoinStream : Stream break; default: if(_position + offset >= _streamLength) - throw new IOException(Localization.Cannot_seek_past_stream_end); + throw new IOException(Localization.Cannot_seek_after_stream_end); _position += offset;