如何安装"区域"在PHP中使用的OSX机器上? [英] How to install a "locale" to be used in php on a osx machine?

查看:94
本文介绍了如何安装"区域"在PHP中使用的OSX机器上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个网站,需要多语言支持。我想在PHP中使用的语言环境,但在一定的语言环境(ES-CO)是不是在我的机器可用。这是我的托管服务器上。我已经研究了如何添加新的语言环境,但无法找到如何或在哪里得到新的区域设置文件。如果这种安装在操作系统,在Apache或PHP?和我在哪里可以得到这些文件?在Linux中我发现,运行sudo的,容易获取语言包-ES-基地做到这一点,但不知道如何在OSX做到这一点。知道如何做到这一点的窗口应该进来也得心应手。

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.

谢谢!

推荐答案

由于@alombarte说的这里只要输入端子

As @alombarte said here Just type in Terminal

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

检查执行区域-A或

check by executing locale -a OR

locale -a | grep es_

这篇关于如何安装"区域"在PHP中使用的OSX机器上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆