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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:11:06+00:00 2026-06-05T00:11:06+00:00

In my website there are several english strings in the HTML and JS code

  • 0

In my website there are several english strings in the HTML and JS code ( NOT in the database ) and I need to translate these strings in others languages ( spanish, italian, etc ).

What is the best way to do that ?

I can save a cookie where there is the language but where can I put these translated strings ?

  • 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-06-05T00:11:07+00:00Added an answer on June 5, 2026 at 12:11 am

    If you don’t use a framework like, for instance, symfony2 (that have a component called translation) or Zend (that i’m sure will have some corrispective standalone “component”), a way for achive this is to keep a php file with key=> value pairs (or better, an array) and include that file onto your page. In that way, you could lookup everytime and, then, load the “right” labels and similar …

    Also, symfony2 translation component could be used as a standalone part so take a look if it could satisfy your needs.

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

Sidebar

Related Questions

I have a legacy ASP.NET/VB.NET WebSite. There several App_Code modules/code files that use types
I have a url which could be www.website.com/order/?pg3=2 or www.website.com/orderstatus/?pg2= There could be several
I'm developing a new admin website to update several tables. There is no complicated
i I can not understand one thing.. On my website there is a button
I know that there are several very similarly-related questions on this website, however after
I have created several Q about correctly mapping a website with a database so
I have read it on the official website that there are several ways in
I have a website that I am creating in Flash CS5. There are several
I am looking at putting a code base that runs several website into version
My Website As you can see on the above link there are several 'kids',

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.