diff --git a/Aaru.CommonTypes/AaruMetadata/Barcode.cs b/Aaru.CommonTypes/AaruMetadata/Barcode.cs index 0600c17f2..181fc3612 100644 --- a/Aaru.CommonTypes/AaruMetadata/Barcode.cs +++ b/Aaru.CommonTypes/AaruMetadata/Barcode.cs @@ -42,6 +42,7 @@ using System; using System.Diagnostics.CodeAnalysis; using System.Text.Json.Serialization; +using Aaru.Localization; namespace Aaru.CommonTypes.AaruMetadata; @@ -49,33 +50,61 @@ namespace Aaru.CommonTypes.AaruMetadata; [SuppressMessage("ReSharper", "InconsistentNaming")] public enum BarcodeType { + [LocalizedDescription(nameof(UI.BarcodeType_Aztec))] Aztec, + [LocalizedDescription(nameof(UI.BarcodeType_Codabar))] Codabar, + [LocalizedDescription(nameof(UI.BarcodeType_Code11))] Code11, + [LocalizedDescription(nameof(UI.BarcodeType_Code128))] Code128, + [LocalizedDescription(nameof(UI.BarcodeType_Code39))] Code39, + [LocalizedDescription(nameof(UI.BarcodeType_Code93))] Code93, + [LocalizedDescription(nameof(UI.BarcodeType_CPC_Binary))] CPC_Binary, + [LocalizedDescription(nameof(UI.BarcodeType_EZcode))] EZcode, + [LocalizedDescription(nameof(UI.BarcodeType_FIM))] FIM, + [LocalizedDescription(nameof(UI.BarcodeType_ITF))] ITF, + [LocalizedDescription(nameof(UI.BarcodeType_ITF14))] ITF14, + [LocalizedDescription(nameof(UI.BarcodeType_EAN13))] EAN13, + [LocalizedDescription(nameof(UI.BarcodeType_EAN8))] EAN8, + [LocalizedDescription(nameof(UI.BarcodeType_MaxiCode))] MaxiCode, + [LocalizedDescription(nameof(UI.BarcodeType_ISBN))] ISBN, + [LocalizedDescription(nameof(UI.BarcodeType_ISRC))] ISRC, + [LocalizedDescription(nameof(UI.BarcodeType_MSI))] MSI, + [LocalizedDescription(nameof(UI.BarcodeType_ShotCode))] ShotCode, + [LocalizedDescription(nameof(UI.BarcodeType_RM4SCC))] RM4SCC, + [LocalizedDescription(nameof(UI.BarcodeType_QR))] QR, + [LocalizedDescription(nameof(UI.BarcodeType_EAN5))] EAN5, + [LocalizedDescription(nameof(UI.BarcodeType_EAN2))] EAN2, + [LocalizedDescription(nameof(UI.BarcodeType_POSTNET))] POSTNET, + [LocalizedDescription(nameof(UI.BarcodeType_PostBar))] PostBar, + [LocalizedDescription(nameof(UI.BarcodeType_Plessey))] Plessey, + [LocalizedDescription(nameof(UI.BarcodeType_Pharmacode))] Pharmacode, + [LocalizedDescription(nameof(UI.BarcodeType_PDF417))] PDF417, + [LocalizedDescription(nameof(UI.BarcodeType_PatchCode))] PatchCode } @@ -92,4 +121,4 @@ public class Barcode Type = (BarcodeType)cicm.type, Value = cicm.Value }; -} \ No newline at end of file +} diff --git a/Aaru.Gui/ViewModels/Windows/MetadataEditorViewModel.cs b/Aaru.Gui/ViewModels/Windows/MetadataEditorViewModel.cs index 429404bee..fd668ca62 100644 --- a/Aaru.Gui/ViewModels/Windows/MetadataEditorViewModel.cs +++ b/Aaru.Gui/ViewModels/Windows/MetadataEditorViewModel.cs @@ -169,7 +169,8 @@ public sealed partial class MetadataEditorViewModel : ViewModelBase public IEnumerable> AvailableArchitectures => LocalizedEnumHelper.GetLocalizedValues().OrderBy(static x => x.Description); [NotNull] - public IEnumerable AvailableBarcodeTypes => Enum.GetValues(); + public IEnumerable> AvailableBarcodeTypes => + LocalizedEnumHelper.GetLocalizedValues().OrderBy(static x => x.Description); void LoadMetadata([NotNull] string path) { diff --git a/Aaru.Localization/UI.Designer.cs b/Aaru.Localization/UI.Designer.cs index 0c69dc81b..ead7842be 100644 --- a/Aaru.Localization/UI.Designer.cs +++ b/Aaru.Localization/UI.Designer.cs @@ -10311,5 +10311,173 @@ namespace Aaru.Localization { return ResourceManager.GetString("Architecture_8085", resourceCulture); } } + + public static string BarcodeType_Aztec { + get { + return ResourceManager.GetString("BarcodeType_Aztec", resourceCulture); + } + } + + public static string BarcodeType_CPC_Binary { + get { + return ResourceManager.GetString("BarcodeType_CPC_Binary", resourceCulture); + } + } + + public static string BarcodeType_Codabar { + get { + return ResourceManager.GetString("BarcodeType_Codabar", resourceCulture); + } + } + + public static string BarcodeType_Code11 { + get { + return ResourceManager.GetString("BarcodeType_Code11", resourceCulture); + } + } + + public static string BarcodeType_Code128 { + get { + return ResourceManager.GetString("BarcodeType_Code128", resourceCulture); + } + } + + public static string BarcodeType_Code39 { + get { + return ResourceManager.GetString("BarcodeType_Code39", resourceCulture); + } + } + + public static string BarcodeType_Code93 { + get { + return ResourceManager.GetString("BarcodeType_Code93", resourceCulture); + } + } + + public static string BarcodeType_EAN13 { + get { + return ResourceManager.GetString("BarcodeType_EAN13", resourceCulture); + } + } + + public static string BarcodeType_EAN2 { + get { + return ResourceManager.GetString("BarcodeType_EAN2", resourceCulture); + } + } + + public static string BarcodeType_EAN5 { + get { + return ResourceManager.GetString("BarcodeType_EAN5", resourceCulture); + } + } + + public static string BarcodeType_EAN8 { + get { + return ResourceManager.GetString("BarcodeType_EAN8", resourceCulture); + } + } + + public static string BarcodeType_EZcode { + get { + return ResourceManager.GetString("BarcodeType_EZcode", resourceCulture); + } + } + + public static string BarcodeType_FIM { + get { + return ResourceManager.GetString("BarcodeType_FIM", resourceCulture); + } + } + + public static string BarcodeType_ISBN { + get { + return ResourceManager.GetString("BarcodeType_ISBN", resourceCulture); + } + } + + public static string BarcodeType_ISRC { + get { + return ResourceManager.GetString("BarcodeType_ISRC", resourceCulture); + } + } + + public static string BarcodeType_ITF { + get { + return ResourceManager.GetString("BarcodeType_ITF", resourceCulture); + } + } + + public static string BarcodeType_ITF14 { + get { + return ResourceManager.GetString("BarcodeType_ITF14", resourceCulture); + } + } + + public static string BarcodeType_MSI { + get { + return ResourceManager.GetString("BarcodeType_MSI", resourceCulture); + } + } + + public static string BarcodeType_MaxiCode { + get { + return ResourceManager.GetString("BarcodeType_MaxiCode", resourceCulture); + } + } + + public static string BarcodeType_PDF417 { + get { + return ResourceManager.GetString("BarcodeType_PDF417", resourceCulture); + } + } + + public static string BarcodeType_POSTNET { + get { + return ResourceManager.GetString("BarcodeType_POSTNET", resourceCulture); + } + } + + public static string BarcodeType_PatchCode { + get { + return ResourceManager.GetString("BarcodeType_PatchCode", resourceCulture); + } + } + + public static string BarcodeType_Pharmacode { + get { + return ResourceManager.GetString("BarcodeType_Pharmacode", resourceCulture); + } + } + + public static string BarcodeType_Plessey { + get { + return ResourceManager.GetString("BarcodeType_Plessey", resourceCulture); + } + } + + public static string BarcodeType_PostBar { + get { + return ResourceManager.GetString("BarcodeType_PostBar", resourceCulture); + } + } + + public static string BarcodeType_QR { + get { + return ResourceManager.GetString("BarcodeType_QR", resourceCulture); + } + } + + public static string BarcodeType_RM4SCC { + get { + return ResourceManager.GetString("BarcodeType_RM4SCC", resourceCulture); + } + } + + public static string BarcodeType_ShotCode { + get { + return ResourceManager.GetString("BarcodeType_ShotCode", resourceCulture); + } + } } } diff --git a/Aaru.Localization/UI.es.resx b/Aaru.Localization/UI.es.resx index 22e0c7371..70380cd2a 100644 --- a/Aaru.Localization/UI.es.resx +++ b/Aaru.Localization/UI.es.resx @@ -5156,4 +5156,88 @@ Probadores: Intel 8085 + + Código Azteca + + + CPC Binario + + + Codabar + + + Código 11 + + + Código 128 + + + Código 39 + + + Código 93 + + + EAN-13 + + + EAN-2 + + + EAN-5 + + + EAN-8 + + + EZcode + + + FIM (Marca de Identificación de Orientación) + + + ISBN + + + ISRC (Código Internacional Normalizado para Grabaciones) + + + ITF (Intercalado 2 de 5) + + + ITF-14 + + + MSI (Plessey Modificado) + + + MaxiCode + + + PDF417 + + + POSTNET + + + Código de Parche + + + Pharmacode + + + Plessey + + + PostBar + + + Código QR + + + RM4SCC (Código de Cliente de 4 Estados de Royal Mail) + + + ShotCode + \ No newline at end of file diff --git a/Aaru.Localization/UI.resx b/Aaru.Localization/UI.resx index a95ab382e..8ae91fd43 100644 --- a/Aaru.Localization/UI.resx +++ b/Aaru.Localization/UI.resx @@ -5234,4 +5234,88 @@ Do you want to continue? Intel 8085 + + Aztec Code + + + CPC Binary + + + Codabar + + + Code 11 + + + Code 128 + + + Code 39 + + + Code 93 + + + EAN-13 + + + EAN-2 + + + EAN-5 + + + EAN-8 + + + EZcode + + + FIM (Facing Identification Mark) + + + ISBN + + + ISRC (International Standard Recording Code) + + + ITF (Interleaved 2 of 5) + + + ITF-14 + + + MSI (Modified Plessey) + + + MaxiCode + + + PDF417 + + + POSTNET + + + Patch Code + + + Pharmacode + + + Plessey + + + PostBar + + + QR Code + + + RM4SCC (Royal Mail 4-State Customer Code) + + + ShotCode + \ No newline at end of file