Skip to content
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

Language file #25

Closed
5 tasks
robkap94 opened this issue Jan 12, 2022 · 1 comment
Closed
5 tasks

Language file #25

robkap94 opened this issue Jan 12, 2022 · 1 comment
Assignees
Labels
code code related enhancement upgrade related
Milestone

Comments

@robkap94
Copy link
Owner

robkap94 commented Jan 12, 2022

It's not good to keep strings values somewhere in the code. Therefore, we need to create language file, class which will contain all of the phrases used in the program.

This is good opportunity to make multi-language app just by adding new Lang file + language position in settings.

TIP(?): Lang Interface with all of the consts (final) and classes LangPL or LangEN which implement this interface.

  • Create Language interface with all of the consts for words/sentences,
  • Create LanguageEN class which implements interface Language and fill it with English words,
  • Create LanguagePL class which implements interface Language and fill it with Polish (translated) words,
  • Change all of hard-coded words/sentences into consts from LanguageEN,
  • Create MenuCategory "Languages" and list of current languages available to be chosen. (This particular task needs to be moved to the settings during task Settings in menu bar #26).
@robkap94 robkap94 added enhancement upgrade related code code related design design related labels Jan 12, 2022
@robkap94 robkap94 added this to the v.alpha milestone Jan 12, 2022
@robkap94 robkap94 self-assigned this Jan 12, 2022
@robkap94 robkap94 removed the design design related label Jan 12, 2022
@robkap94 robkap94 mentioned this issue Jan 29, 2022
3 tasks
@robkap94
Copy link
Owner Author

robkap94 commented Apr 6, 2022

Cancelling this due to aborting the project and switching to Spring Framework.

@robkap94 robkap94 closed this as completed Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code code related enhancement upgrade related
Projects
Status: Cancelled
Development

No branches or pull requests

1 participant