From 04a76c8e033aa9f7235ef67c2655ef2dfc906ffe Mon Sep 17 00:00:00 2001 From: Kateryna Oblakevych Date: Thu, 8 Feb 2024 17:49:26 +0200 Subject: [PATCH] fix: label descriptions (#723) --- .../cli/commands/picocli/ScreenshotUploadSubcommand.java | 2 +- .../crowdin/cli/commands/picocli/StringListSubcommand.java | 2 +- src/main/resources/messages/messages.properties | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/crowdin/cli/commands/picocli/ScreenshotUploadSubcommand.java b/src/main/java/com/crowdin/cli/commands/picocli/ScreenshotUploadSubcommand.java index bacfd999..ea23f52d 100644 --- a/src/main/java/com/crowdin/cli/commands/picocli/ScreenshotUploadSubcommand.java +++ b/src/main/java/com/crowdin/cli/commands/picocli/ScreenshotUploadSubcommand.java @@ -34,7 +34,7 @@ class ScreenshotUploadSubcommand extends ActCommandScreenshot{ @CommandLine.Option(names = {"-b", "--branch"}, paramLabel = "...", descriptionKey = "crowdin.screenshot.upload.branch-name", order = -2) protected String branchName; - @CommandLine.Option(names = {"--label"}, paramLabel = "...", descriptionKey = "params.label", order = -2) + @CommandLine.Option(names = {"--label"}, paramLabel = "...", descriptionKey = "crowdin.screenshot.upload.label", order = -2) protected List labelNames; @CommandLine.Option(names = {"-d", "--directory"}, paramLabel = "...", descriptionKey = "crowdin.screenshot.upload.directory-path", order = -2) diff --git a/src/main/java/com/crowdin/cli/commands/picocli/StringListSubcommand.java b/src/main/java/com/crowdin/cli/commands/picocli/StringListSubcommand.java index e40b7c6d..09297120 100644 --- a/src/main/java/com/crowdin/cli/commands/picocli/StringListSubcommand.java +++ b/src/main/java/com/crowdin/cli/commands/picocli/StringListSubcommand.java @@ -26,7 +26,7 @@ class StringListSubcommand extends ActCommandProject { @CommandLine.Option(names = {"-b", "--branch"}, paramLabel = "...", order = -2) protected String branchName; - @CommandLine.Option(names = {"--label"}, paramLabel = "...", descriptionKey = "params.label", order = -2) + @CommandLine.Option(names = {"--label"}, paramLabel = "...", descriptionKey = "crowdin.string.list.label", order = -2) protected List labelNames; @CommandLine.Option(names = {"--croql"}, paramLabel = "...", order = -2) diff --git a/src/main/resources/messages/messages.properties b/src/main/resources/messages/messages.properties index 2638ca3f..06c9636e 100755 --- a/src/main/resources/messages/messages.properties +++ b/src/main/resources/messages/messages.properties @@ -28,7 +28,7 @@ params.skipUntranslatedStrings=Skip untranslated strings in exported files (does params.skipUntranslatedFiles=Omit downloading not fully translated files params.keepArchive=Do not remove the downloaded archive with translations after it's extracting params.exportOnlyApproved=Include approved translations only in exported files. If not combined with --skip-untranslated-strings option, strings without approval are fulfilled with the source language -params.label=Attach labels to strings (multiple labels could be specified) +params.label=Attach labels to strings (multiple labels can be specified) params.excluded-languages=Specify excluded languages (multiple languages could be specified) params.reviewedSources=Download only reviewed sources (Crowdin Enterprise only) @@ -196,6 +196,7 @@ crowdin.string.list.usage.customSynopsis=@|fg(green) crowdin string list|@ [CONF crowdin.string.list.file=Show a list of source strings filtered by file path crowdin.string.list.filter=Show a list of source strings filtered by identifier, text or context crowdin.string.list.croql=Retrieve needed localization resources from Crowdin based on specific conditions +crowdin.string.list.label=Filter strings by labels (multiple labels can be specified) # CROWDIN STRING EDIT COMMAND crowdin.string.edit.usage.description=Edit existing source string @@ -400,6 +401,7 @@ crowdin.screenshot.upload.file=File path to add crowdin.screenshot.upload.auto-tag=Choose whether or not to tag screenshot automatically crowdin.screenshot.upload.file-path=Path to the source file in Crowdin. Requires the '--auto-tag' to be passed crowdin.screenshot.upload.branch-name=Branch name. Requires the '--auto-tag' to be passed +crowdin.screenshot.upload.label=Attach labels to screenshot (multiple labels can be specified) crowdin.screenshot.upload.directory-path=Path to the directory in Crowdin. Requires the '--auto-tag' to be passed # CROWDIN LABEL COMMAND