安装软件包
把openstack_dashboard简体中文汉化.rar解压
把../openstack_dashboard/django.po上传到
/usr/share/openstack-dashboard/openstack_dashboard/locale/zh_CN/LC_MESSAGES
把../horizon/django.po上传到
/usr/share/pyshared/horizon/locale/zh_CN/LC_MESSAGES
编译2个语言包
链接语言包
重启服务
[img]http://dl.iteye.com/upload/attachment/0075/9454/bac4d75a-d1a1-3ad8-9a52-957b07c1f176.jpg[/img]
apt-get install gettext
把openstack_dashboard简体中文汉化.rar解压
把../openstack_dashboard/django.po上传到
/usr/share/openstack-dashboard/openstack_dashboard/locale/zh_CN/LC_MESSAGES
把../horizon/django.po上传到
/usr/share/pyshared/horizon/locale/zh_CN/LC_MESSAGES
编译2个语言包
cd /usr/share/openstack-dashboard/openstack_dashboard/locale/zh_CN/LC_MESSAGES
msgfmt --statistics --verbose -o django.mo django.po
cd /usr/share/pyshared/horizon/locale/zh_CN/LC_MESSAGES
msgfmt --statistics --verbose -o django.mo django.po
链接语言包
cd /usr/lib/python2.7/dist-packages/horizon/locale/zh_CN/LC_MESSAGES
ln -s /usr/share/pyshared/horizon/locale/zh_CN/LC_MESSAGES/django.mo django.mo
重启服务
sudo service apache2 restart
[img]http://dl.iteye.com/upload/attachment/0075/9454/bac4d75a-d1a1-3ad8-9a52-957b07c1f176.jpg[/img]