这里阐述的是fuel工具部署的openstack 环境的dashboard进行简体中文汉化
1)直接运行“apt-get install gettext”命令。
2)转到fuel已经配置好的中文配置文件夹下
cd /usr/share/openstack-dashboard/openstack_dashboard/locale/zh_CN/LC_MESSAGES
3)编译语言包,运行如下命令:msgfmt --statistics --verbose -o django.mo django.po会生成django.mo文件
4)链接语言包;先转到相应目录,然后连接语言包
a) cd /usr/lib/python2.7/dist-packages/horizon/locale/zh_CN/LC_MESSAGES
b) ln-s /usr/share/openstack-dashboard/openstack_dashboard/locale/zh_CN/LC_MESSAGES/django.mo django.mo
5)重启服务
sudo service apache2 restart