Ubuntu Server 12.04版本下APT成功安装了OpenStack

dashboard里面虽然有简体中文的设置,但汉化没有完成(繁体中文已经完全汉化了)

 

1. 把繁体中文的po文件用工具转换成简体后覆盖到对应的简体中文目录下

有两个文件需要翻译:

 

/usr/share/openstack-dashboard/openstack_dashboard/locale/zh_TW/LC_MESSAGES/django.po

/usr/share/pyshared/horizon/locale/zh_TW/LC_MESSAGES/django.po  

 

2. 复制到简体中文目录后,编译po文件:msgfmt --statistics --verbose -o django.mo django.po 

3. 最后一步还需要建立一个连接:

 

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

 

重启apache2服务就可以了 

 

相关文章:

  • 2021-11-02
  • 2021-07-01
  • 2021-09-23
  • 2021-04-16
  • 2021-11-11
  • 2021-06-17
  • 2021-09-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案