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 3277640
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:23:30+00:00 2026-05-17T19:23:30+00:00

I recently joined a team that was formerly a one man show to maintain

  • 0

I recently joined a team that was formerly a one man show to maintain and develop a company’s PHP-mysql website.

The current localization method is, for each section of the site, there exists a file ending in _en.php and _fr.php that contains long lists of same named variables with text in the appropriate language. At the top of each content page, the user language is determined and then the appropriate ‘dictionary’ file is loaded.

I am trying to promote as an alternative is using a db table like (id, code, en, fr) and a function to lookup the correct translation in the current page.

My boss tells me that the benefits of the first approach are: having a context for each translation, and having the translations under source control

His concerns with my proposed approach are the lack of these things, and doesn’t like the idea of having two translation systems on the site.

My concerns are that, this is data in a code file, which i was taught as a bad idea. To search for a string you have to use an ide search tool, and so I don’t see how a none programmer would be comfortable editing these.

So, is his approach better? Is mine better but only marginally and not worth rocking the boat? Is the current system a disastor waiting to happen that I shouldn’t let go?

  • 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-17T19:23:31+00:00Added an answer on May 17, 2026 at 7:23 pm

    I think that for interface things (name, surname, text in buttons etc…) is more natural to use a resource file. In .NET we use .resx, in PHP, an include file is enough.

    To use an archive with an include is not resource-consuming, it would be to parse a XML.

    If we were talking about big texts I would put them in a db with a different code, merely because normally I would have a backoffice to modify these contents,not for performance issues.

    Take in mind that Db access is consuming too, it depends on the number of users.

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

Sidebar

Related Questions

I recently joined a team that is working on a ASP.NET MVC project.. they
I have recently joined a company that using typed datasets as their 'Dto'. I
I recently joined the IT department of a big insurance company. Although the department's
I recently joined a new company with a large existing codebase. Most of my
Background I recently joined a small start-up after working at a large company. I'm
I have recently joined a project that is using multiple different projects. A lot
I've recently joined a team with a code base which hasn't been under version
I recently joined this organisation that I am currently working at that has asked
Recently i've switched to PHP 5.3+ and after that migration i learned that the
I was a JaveEE developer. Recently I joined an Android development team. The structure

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.