-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix localization task hints #2031
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -156,7 +156,7 @@ public void findObsoleteLocalizationKeys() throws IOException { | |
System.out.println(); | ||
System.out.println("1. CAREFULLY CHECK IF THE KEY IS REALLY NOT USED ANYMORE"); | ||
System.out.println("2. REMOVE THESE FROM THE ENGLISH LANGUAGE FILE"); | ||
System.out.println("3. EXECUTE gradlew -b localization.gradle generateMissingTranslationKeys TO"); | ||
System.out.println("3. EXECUTE gradlew update"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope, |
||
System.out.println("REMOVE THESE FROM THE NON-ENGLISH LANGUAGE FILES"); | ||
fail("Obsolete keys " + obsoleteKeys + " found in properties file which should be removed"); | ||
} | ||
|
@@ -172,7 +172,7 @@ public void findObsoleteMenuLocalizationKeys() throws IOException { | |
System.out.println(obsoleteKeys.stream().map(Object::toString).collect(Collectors.joining("\n"))); | ||
System.out.println(); | ||
System.out.println("1. REMOVE THESE FROM THE ENGLISH LANGUAGE FILE"); | ||
System.out.println("2. EXECUTE gradlew -b localization.gradle generateMissingTranslationKeys" + " TO"); | ||
System.out.println("3. EXECUTE gradlew update"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see above, but fixed wrong item enumeration. |
||
System.out.println("REMOVE THESE FROM THE NON-ENGLISH LANGUAGE FILES"); | ||
fail("Obsolete keys " + obsoleteKeys + " found in menu properties file which should be removed"); | ||
} | ||
|
@@ -189,6 +189,7 @@ private void printInfos(List<LocalizationEntry> missingKeys) { | |
|
||
private String convertToEnglishPropertiesFile(List<LocalizationEntry> missingKeys) { | ||
System.out.println("PASTE THIS INTO THE ENGLISH LANGUAGE FILE"); | ||
System.out.println("AND EXECUTE gradlew update"); | ||
StringJoiner result = new StringJoiner("\n"); | ||
for (LocalizationEntry key : missingKeys) { | ||
result.add(String.format("%s=%s", key.getKey(), key.getKey())); | ||
|
@@ -197,7 +198,7 @@ private String convertToEnglishPropertiesFile(List<LocalizationEntry> missingKey | |
} | ||
|
||
private String convertPropertiesFile(List<LocalizationEntry> missingKeys) { | ||
System.out.println("EXECUTE gradlew -b localization.gradle generateMissingTranslationKeys TO"); | ||
System.out.println("EXECUTE gradlew update"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above |
||
System.out.println("PASTE THIS INTO THE NON-ENGLISH LANGUAGE FILES"); | ||
StringJoiner result = new StringJoiner("\n"); | ||
for (LocalizationEntry key : missingKeys) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I don't like the current task name. It should say what it does, like
updateLocalization
. Please also change the other Gradle tasks accordingly.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. I use the gradle tasks out of IntelliJ IDEA which groups them by its category.
I added
localization
as a prefix to each of them.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also use them that way, thats the reason why I only realized this problem when looking at the PR code.