From 6f5934f66a9cfb53fb921e1606294d601b70239b Mon Sep 17 00:00:00 2001 From: "Martijn van Berkel (Flitskikker)" Date: Thu, 1 Sep 2022 10:49:32 +0200 Subject: [PATCH] Add missing language item --- src/ui/Forms/Ocr/VobSubOcr.cs | 1 + src/ui/Logic/Language.cs | 3 ++- src/ui/Logic/LanguageStructure.cs | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ui/Forms/Ocr/VobSubOcr.cs b/src/ui/Forms/Ocr/VobSubOcr.cs index 0b2ee51b2..f4155e5c6 100644 --- a/src/ui/Forms/Ocr/VobSubOcr.cs +++ b/src/ui/Forms/Ocr/VobSubOcr.cs @@ -588,6 +588,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr checkBoxNOcrItalic.Checked = Configuration.Settings.VobSubOcr.LineOcrAdvancedItalic; numericUpDownNOcrMaxWrongPixels.Value = Configuration.Settings.VobSubOcr.LineOcrMaxErrorPixels; + groupBoxCloudVision.Text = language.CloudVisionApi; labelCloudVisionApiKey.Text = language.ApiKey; labelCloudVisionLanguageHint.Text = language.Language; checkBoxCloudVisionSendOriginalImages.Text = language.SendOriginalImages; diff --git a/src/ui/Logic/Language.cs b/src/ui/Logic/Language.cs index 7cc6154b8..0db014a8e 100644 --- a/src/ui/Logic/Language.cs +++ b/src/ui/Logic/Language.cs @@ -3311,7 +3311,7 @@ Keep changes?", OcrViaImageCompare = "Binary image compare", OcrViaModi = "Microsoft Office Document Imaging (MODI). Requires Microsoft Office", OcrViaNOCR = "OCR via nOCR", - OcrViaCloudVision = "OCR via Cloud Vision API", + OcrViaCloudVision = "OCR via Google Cloud Vision API", TesseractEngineMode = "Engine mode", TesseractEngineModeLegacy = "Original Tesseract only (can detect italic)", TesseractEngineModeNeural = "Neural nets LSTM only", @@ -3381,6 +3381,7 @@ Keep changes?", StartTraining = "Start training", NowTraining = "Now training font '{1}'. Total chars trained: {0:#,###,##0}, {2:#,###,##0} known", ImagesWithTimeCodesInFileName = "Images with time codes in file name...", + CloudVisionApi = "Google Cloud Vision API", ApiKey = "API key", SendOriginalImages = "Send original images", }; diff --git a/src/ui/Logic/LanguageStructure.cs b/src/ui/Logic/LanguageStructure.cs index 05606a725..53ebeff4d 100644 --- a/src/ui/Logic/LanguageStructure.cs +++ b/src/ui/Logic/LanguageStructure.cs @@ -3227,7 +3227,8 @@ public string AlsoTrainBold { get; set; } public string StartTraining { get; set; } public string NowTraining { get; set; } - public string ImagesWithTimeCodesInFileName { get; set; } + public string ImagesWithTimeCodesInFileName { get; set; } + public string CloudVisionApi { get; set; } public string ApiKey { get; set; } public string SendOriginalImages { get; set; } }