Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the Sinicization of horizon components by Openstack

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

Editor to share with you how Openstack to achieve Chinese horizon components, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to understand it!

Local deployment of the development environment, coding horizon component source code to achieve secondary development, found that there is a problem with i18n (internationalization), the handling method is recorded as follows:

Problem description:

Normally, after the admin account logs in to dashboard, as shown in the figure above, if you configure the language step by step, the background language environment will change. However, after I configure Jian Han, it is still English.

Solution:

Consider that the i18n configuration file is not compiled properly, and the solution is as follows.

1. Enter the folder where the horizon project openstack_dashboard and horizon are located, and the specific address should be based on the local project address.

Cd / root/svn/horizon/openstack_dashboard/

two。 Run the following command

Django-admin compilemessages-locale=zh_CN

3. If the console echoes as follows, it is normal.

Processing file django.po in / root/svn/horizon/openstack_dashboard/locale/zh_CN/LC_MESSAGESprocessing file djangojs.po in / root/svn/horizon/openstack_dashboard/locale/zh_CN/LC_MESSAGES

4. Restart when you are finished

Python manage.py runserver 0.0.0.0:9000

Problem solving

These are all the contents of the article "how to Sinicize Openstack horizon components". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report