0

I am working on a project and suddenly I realize I mis-spelled the word "category" to "catagory" on almost every place- within my workspace.

It there any way to replace all occurrences of "catagory" in one shot?

1 Answer 1

0

Ok i find that answer. I need to use internationalization concept in my application and i have to make sure all the text used in my project will come form from one of more language configuration files.

example

resources/lang/messages.properties

something-went-wrong=Something went wrong!
success-created=Item Created Successfully!

so now i can access the value using keys something-went-wrong and success-created

Benifits :
  • whenever i need to change any string, I can change them form one centeralized place.
  • Ignore hardcoded text
  • It will useful when i try to use multilanguage support in my application
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.