Jump to content
Larry Ullman's Book Forums

Recommended Posts

If I would like to make a website bilingual, I guess I can follow the example from "internationalization" chapter with the multilanguage forum. However, because I want only two languages isn't faster that instead of having a table with the dictionary and running a query on every page to get the words for a particular language, to have a multidimensional array on every page with the words related only to that page? Certainly is not as flexible as your implementation, but is this a bad approach?

Link to comment
Share on other sites

So you're suggesting that for each page you go to, you would load all the text for that page for both languages into an array?

If that's the case, it seems kind of wasteful, since it would probably be a lot faster to simply get the one language for the page from the DB.

 

Although, I'm not sure if what I'm suggesting is what you're asking for.

  • Upvote 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...