开发者

How to install a "locale" to be used in php on a osx machine?

I'm developing a website that needs multilingual support. I am trying to use locales in php but a certain locale (es-CO) is not available in my development machine. It is on my hosting server. I've researched on how to add new locales but can't find how or where to get the new locale files.开发者_StackOverflow社区 Should this be installed in the OS, on apache or on php? and where can I get these files? in linux i've found that running sudo-apt get language-pack-es-base does this but no idea how to do this in osx. Knowing how to do it in windows should come in handy also.

Thanks!


If i'm correct you can install more locales using the Max OS X install disk


As @alombarte said here Just type in Terminal

cd /usr/share/locale
sudo cp -R es_ES es_CO

check by executing locale -a OR

locale -a | grep es_
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜