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

Lab 6 improvements #4

Merged
merged 11 commits into from
Jun 6, 2023
Merged

Lab 6 improvements #4

merged 11 commits into from
Jun 6, 2023

Conversation

butvinm
Copy link
Member

@butvinm butvinm commented Jun 6, 2023

Some changes at TextLocale and other minor improvements

butvinm added 11 commits June 4, 2023 02:56
Rename alias method TextLocale._ for  TextLocale.getText to
TextLocale.t for compliance with Java naming convention

Also fix docsting of TextLocale
Replace  TextLocale._ with TextLocale.t
Add text resources to test folder and add resources loading before tests
Create utility for processing nested map of texts
Add TextPacakge and TextSupplier classes.

TextPackage add ability to get access of specific package and use it
localt (as static class member, eg). It always has updated texts
and locale provided from TextLocat by suppliers

TextSupplier is functional interface that can be used for simple
accessing of getText function. It also provides methods for easy
formatting and short aliases.
Relace static memebers of TextLocale, create TextPackage instance instead
@butvinm butvinm merged commit 08d9c10 into master Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant