-
Notifications
You must be signed in to change notification settings - Fork 4
Fr] create and fill the localization ua.properties file #81 #101
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
base: main
Are you sure you want to change the base?
Fr] create and fill the localization ua.properties file #81 #101
Conversation
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
1 similar comment
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
| <version>1</version> | ||
| </dependency> | ||
|
|
||
| </dependencies> |
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.
Нащо це тут? Схоже він ніде не використовуєтся.
| @Override | ||
| LocalizationService localizationService = new LocalizationService(Locale.getDefault()); | ||
|
|
||
| @Override |
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.
Це не сюди, це треба зробити у класі PhoneBookContext. Також ти встановлюєш локаль з стстеми, а в нас заплановано що локаль вибирає користувач і зберігає у файлі налаштувань. отже локаль треба взяти звідти.
| .addSubcommand("command.list", getBean(ListContacts.class)) | ||
| .addSubcommand("command.user", getBean(SetUser.class)) | ||
| .addSubcommand("command.locale", getBean(SetLocale.class)) | ||
| .execute(args); |
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.
Це не текст для користвача це назви команд для picocli їх не треба перекладати. Думаю так воно не заведется.
| localizationService.setLocale(new Locale(newLocale)); | ||
| System.out.println(localizationService.getMessage("success.locale.changed").replace("{0}", newLocale)); | ||
| System.out.println(localizationService.getMessage("locale.current").replace("{0}", newLocale)); | ||
| return 0; |
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.
ОК. хоча програма закінчить роботу після виконання цєї команди. Чи є потреба міняти поточну локаль?
| locale.current=Поточна мова: {0} | ||
| locale.available=Доступні мови: {0} | ||
|
|
||
|
|
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.
ОК . Але це тільки маленький шматочек тут потрібно внести всі тексти для користувача.
No description provided.