Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 832497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:22:17+00:00 2026-05-15T04:22:17+00:00

Definitions: Files: Having the localization phrases stored in a physical file that gets read

  • 0

Definitions:

Files:

Having the localization phrases stored in a physical file that gets read at application start-up and the phrases are stored in the memory to be accessed via util-methods. The phrases are stored in key-value format. One file per language.

Variables:

The localization texts are stored as hard code variables in the application’s source code. The variables are complex data types and depending on the current language, the appropriate phrase is returned.

Background:

The application is a Java Servlet and the developers use Eclipse as their primary IDE.

Some brief pro and cons:

Since Eclipse is use, tracking and finding unused localizations are easier when they are saved as variables, compared to having them in a file. However the application’s source code becomes bigger and bloated.

What are the pro and cons of having localization text in files versus hard coded varibles in source code? What do you do and why?

Update 1: In my specific case, recompiling and deploying is not an issue, since it is done since we have test-phases that gives us a chance to find typos, etc. Because of that we rarely need to change the phrases once the application is on production.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:22:18+00:00Added an answer on May 15, 2026 at 4:22 am

    Having the localization of app in its source code has many disadvantages – probably the biggest being, that when you want to fix/add/remove some localization, you have to recompile it and redistribute a new version. With separate files, the updates are more flexible, faster and easier to maintain and of course others can add localization to your app without the need to have access to the code.

    So i would recommend going with the separate files option, not hardcoding it into the app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a struct defined in a header file with three other files that
Ok so I've got 3 files: definitions.h which contains #ifndef COMPLEX_H #define COMPLEX_H class
I want to find all stylesheet definitions in a XHTML file with lxml.etree.findall .
I have all the class definitions in a header file: ModelModule.h. I have provided
I have a .sql file from a MySQL dump containing tables, definitions and data
I'm new to C++, and I'm having a problem with my class definitions in
I am having a rather frustrating issue trying to call a web service that
I'm having trouble deserializing a ruby class that I wrote to YAML. Where I
When you have inline definitions of functions in the header file, and you want
I'm working to create a rudimentary file system in c++ and am having issues

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.