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

Unable to get my view to find its corresponding .properties file. #1255

Open
SKeeneCode opened this issue Jul 7, 2020 · 1 comment
Open

Comments

@SKeeneCode
Copy link

SKeeneCode commented Jul 7, 2020

I'm probably making a juvenile error here, so hoping someone can come and give me a little smack on the head.

I've been following the guide on Internalization.

Which states:

The bundle is automatically loaded by looking up a base name equal to the fully qualified class name of the Component. For a Component named views.CustomerList, the corresponding resource bundle in /views/CustomerList.properties

I believe my directories are laid out in the required convention:

image

WelcomeView
class WelcomeView : View() { init { title = this.messages["TITLE"] } }

WelcomeView.properties contains TITLE=test title.

When running the app, the title is [TITLE], from the documentation this is because it couldn't find the correct key/value pair. But the correct pair is in the .properties file, which means it wasn't looking in the right place.

So I suppose my .properties file is in the wrong location. Where should it be? Or am I making a different error?

@SchweinchenFuntik
Copy link
Contributor

and what is the package name of WelcomeView, does it match the folder hierarchy?

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

No branches or pull requests

2 participants