Przeglądaj źródła

Enable translation support for Chinese, German, and Ukrainian

Jeremy Stretch 1 rok temu
rodzic
commit
dba36fafa7

+ 1 - 1
README.md

@@ -5,7 +5,7 @@
   <a href="https://github.com/netbox-community/netbox/blob/master/LICENSE.txt"><img src="https://img.shields.io/badge/license-Apache_2.0-blue.svg" alt="License" /></a>
   <a href="https://github.com/netbox-community/netbox/blob/master/LICENSE.txt"><img src="https://img.shields.io/badge/license-Apache_2.0-blue.svg" alt="License" /></a>
   <a href="https://github.com/netbox-community/netbox/graphs/contributors"><img src="https://img.shields.io/github/contributors/netbox-community/netbox?color=blue" alt="Contributors" /></a>
   <a href="https://github.com/netbox-community/netbox/graphs/contributors"><img src="https://img.shields.io/github/contributors/netbox-community/netbox?color=blue" alt="Contributors" /></a>
   <a href="https://github.com/netbox-community/netbox/stargazers"><img src="https://img.shields.io/github/stars/netbox-community/netbox?style=flat" alt="GitHub stars" /></a>
   <a href="https://github.com/netbox-community/netbox/stargazers"><img src="https://img.shields.io/github/stars/netbox-community/netbox?style=flat" alt="GitHub stars" /></a>
-  <a href="https://explore.transifex.com/netbox-community/netbox/"><img src="https://img.shields.io/badge/languages-7-blue" alt="Languages supported" /></a>
+  <a href="https://explore.transifex.com/netbox-community/netbox/"><img src="https://img.shields.io/badge/languages-10-blue" alt="Languages supported" /></a>
   <a href="https://github.com/netbox-community/netbox/actions/workflows/ci.yml"><img src="https://github.com/netbox-community/netbox/workflows/CI/badge.svg?branch=master" alt="CI status" /></a>
   <a href="https://github.com/netbox-community/netbox/actions/workflows/ci.yml"><img src="https://github.com/netbox-community/netbox/workflows/CI/badge.svg?branch=master" alt="CI status" /></a>
   <p></p>
   <p></p>
 </div>
 </div>

+ 6 - 0
docs/release-notes/version-4.0.md

@@ -2,6 +2,12 @@
 
 
 ## v4.0.3 (FUTURE)
 ## v4.0.3 (FUTURE)
 
 
+### Enhancements
+
+* [#14639](https://github.com/netbox-community/netbox/issues/14639) - Add Ukrainian translation support
+* [#14686](https://github.com/netbox-community/netbox/issues/14686) - Add German translation support
+* [#14855](https://github.com/netbox-community/netbox/issues/14855) - Add Chinese translation support
+
 ---
 ---
 
 
 ## v4.0.2 (2024-05-14)
 ## v4.0.2 (2024-05-14)

+ 3 - 0
netbox/netbox/settings.py

@@ -712,6 +712,7 @@ RQ_QUEUES.update({
 
 
 # Supported translation languages
 # Supported translation languages
 LANGUAGES = (
 LANGUAGES = (
+    ('de', _('German')),
     ('en', _('English')),
     ('en', _('English')),
     ('es', _('Spanish')),
     ('es', _('Spanish')),
     ('fr', _('French')),
     ('fr', _('French')),
@@ -719,6 +720,8 @@ LANGUAGES = (
     ('pt', _('Portuguese')),
     ('pt', _('Portuguese')),
     ('ru', _('Russian')),
     ('ru', _('Russian')),
     ('tr', _('Turkish')),
     ('tr', _('Turkish')),
+    ('uk', _('Ukrainian')),
+    ('zh', _('Chinese')),
 )
 )
 LOCALE_PATHS = (
 LOCALE_PATHS = (
     BASE_DIR + '/translations',
     BASE_DIR + '/translations',

BIN
netbox/translations/de/LC_MESSAGES/django.mo


BIN
netbox/translations/ja/LC_MESSAGES/django.mo


BIN
netbox/translations/uk/LC_MESSAGES/django.mo


BIN
netbox/translations/zh/LC_MESSAGES/django.mo