php - Sharing gettext .mo file between multiple servers
Get the solution ↓↓↓I just started using gettext for php yesterday.
I created a .po file locally using poedit. (ubunt 12.04 64bit). I put this file and the compiled .mo file under version control because I plan on deploying to the production version of the site, which runs on rackspace cloud sites.
My question is:
Is .mo file platform dependent? Will it work on any server? If not how is this usually handled? The issue is there is no shell access to cloudsites so if I need to recompile it or something it will be a pain.
Thank you for your time.
Answer
Solution:
Yes, you can redistribute mo files among servers. The mo files are actually read by the apache webserver, and not by PHP.
Be aware however, that if your mo uses a locale that is not installed on the underlying os, your mo files will not work.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: port 80 in use by "unable to open process" with pid 4!
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.