From 33765433f54eb58e66d63e12474d8ff9aecad743 Mon Sep 17 00:00:00 2001 From: Andrii Bodnar Date: Mon, 8 Jan 2024 13:00:00 +0200 Subject: [PATCH] chore: update init command success message (#704) --- .../com/crowdin/cli/commands/actions/GenerateAction.java | 7 +------ src/main/resources/messages/messages.properties | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/crowdin/cli/commands/actions/GenerateAction.java b/src/main/java/com/crowdin/cli/commands/actions/GenerateAction.java index aa0d5ee3..f638e8a5 100644 --- a/src/main/java/com/crowdin/cli/commands/actions/GenerateAction.java +++ b/src/main/java/com/crowdin/cli/commands/actions/GenerateAction.java @@ -42,9 +42,6 @@ class GenerateAction implements NewAction { private boolean isEnterprise; private boolean withBrowser; - public static final String LINK = "https://support.crowdin.com/configuration-file/"; - public static final String ENTERPRISE_LINK = "https://support.crowdin.com/enterprise/configuration-file/"; - private final FilesInterface files; private final String token; private final String baseUrl; @@ -76,10 +73,8 @@ public void act(Outputter out, NoProperties noProperties, NoClient noClient) { } files.writeToFile( destinationPath.toString(), new ByteArrayInputStream(StringUtils.join(fileLines, "\n").getBytes(StandardCharsets.UTF_8))); - out.println(String.format( - RESOURCE_BUNDLE.getString("message.generate_successful"), - this.isEnterprise ? ENTERPRISE_LINK : LINK)); + out.println(String.format(RESOURCE_BUNDLE.getString("message.generate_successful"))); } catch (Exception e) { throw new RuntimeException(RESOURCE_BUNDLE.getString("error.create_file"), e); } diff --git a/src/main/resources/messages/messages.properties b/src/main/resources/messages/messages.properties index afed2d56..1594f9cc 100755 --- a/src/main/resources/messages/messages.properties +++ b/src/main/resources/messages/messages.properties @@ -612,7 +612,7 @@ message.already_exists=File @|bold '%s'|@ already exists. Fill it out accordingl @|cyan https://developer.crowdin.com/configuration-file/#configuration-file-structure|@ message.generate_successful=%nYour configuration skeleton has been successfully generated. \ %nSpecify your source and translation paths in the files section. \ -%nFor more details see @|cyan %s|@ +%nFor more details see @|cyan https://crowdin.github.io/crowdin-cli/configuration|@ message.ask_project_directory=Your project directory message.ask_is_enterprise=For Crowdin Enterprise message.ask_auth_via_browser=Authorize via browser?