在服务器上添加语言环境 [英] adding locale on server

查看:190
本文介绍了在服务器上添加语言环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我计划使用strftime(),但是当我通过(locale -a)检查服务器有关可用语言环境的信息时,我只有以下内容:

I am planning to use strftime(), however when I check my server regarding what's available locale, via (locale -a), I only have this:

C
en_US.utf8 
POSIX

我非常需要这个 de_DE.utf8 ,以便将我的约会日期更改为德语.如何添加其他语言环境?还有其他更好的方法吗?

I badly need to have this de_DE.utf8, in order to turn my dates to German. How can I add additional locale? Is there any other better way?

推荐答案

您需要在服务器中生成de_DE.utf8语言环境.

You need to generate de_DE.utf8 locale in your server.

该过程非常简单.例如,在Debian/Ubuntu发行版上,您可以通过发出以下命令来添加/删除语言环境:

The process is pretty straightforward. For example on Debian/Ubuntu distros, you can add/remove locales by issuing the following command:

sudo dpkg-reconfigure locales

然后将为您提供可用语言环境的列表(基本上是所有语言环境).选中/取消选中您喜欢的一个,然后单击确定".祝你好运!

You will be then presented with a list of available locales (basically all of them). Check/uncheck the one you like and click on OK. Good luck!

这篇关于在服务器上添加语言环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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