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

风流意气都作罢 提交于 2019-12-10 17:55:04

问题


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. 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!


回答1:


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_



回答2:


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



来源:https://stackoverflow.com/questions/4627061/how-to-install-a-locale-to-be-used-in-php-on-a-osx-machine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!