Graeme MacFarlane
Graeme MacFarlane

Reputation: 217

Multilingual site: what is the best way to store translations?

Is it more efficient to store translated text in a database or inside a file using an array?

Upvotes: -1

Views: 1016

Answers (2)

Jorge Ferrari
Jorge Ferrari

Reputation: 152

Really depends on what you're usign to develop, some Frameworks have localization functions, you should check if first. After that, if none is provided, database is a little bit complicated, imagine queries at every word. Id use some sort of INI file, if no localization functions are provided, or you could always check for some localization libraries. But since i don't know what language you're using to develop, there's no much i can do to help. If you want any help to find a library, let me know.

Upvotes: 1

Remy
Remy

Reputation: 12703

Really depends on your app. For massive CMS I would store it in a DB. For a small iOS app I would use a file that you read into an array.

Upvotes: 0

Related Questions