I am currently creating an application for an architecture running in the Amazon cloud (some w / php5.3 web servers, load balancing, PostgreSQL).
A key feature of my (PHP5) application is that everything (on the interface) must be translated into different languages, so there will be many lines that are represented by a βtokenβ that should be translated.
My question ist: Where do you save these translations?
- Save translations in files on local (web servers) drives?
- Save translations in files on a central repository?
- Keep translations in the database?
- In the other place?
Additional information: Regardless of where the translations will be stored, there will be some caching (Redis, + cache cache), therefore files / databases will not be requested on each displayed page.
Each of the above solutions has pros and cons, and after many discussions in my team, we did not find a solution that we were all happy with.
Some of our thoughts:
- Files are easier to maintain (update translations by overwriting files)
- DB-Tables are more flexible (create a good translation interface around translation data)
- DB-Tables are saved only once; so itβs cheaper than a lot of files in the cloud, I think (we pay for storage and data transfer).
- Central file storage might be a bottleneck
So what is your position?
Hi Robert
source share