]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Ceph dashboard supports multiple languages
authorTomNewChao <chaotomzhu@gmail.com>
Tue, 25 Jul 2023 07:08:44 +0000 (15:08 +0800)
committerRongqi Sun <sunrongqi@huawei.com>
Thu, 21 Mar 2024 08:33:30 +0000 (08:33 +0000)
mgr/dashboard/frontend:Ceph dashboard supports multiple languages

Signed-off-by: TomNewChao <chaotomzhu@gmail.com>
(cherry picked from commit 1a2744282c46ca113f5f9f168d1f4d66c734e64d)

ceph.spec.in

index e4cbbef6943b88fdc5882656e8063159efb91763..11ee54d9d3183e3141da5b4e6051b5d44eadd1a7 100644 (file)
@@ -24,6 +24,7 @@
 %bcond_with zbd
 %bcond_with cmake_verbose_logging
 %bcond_without ceph_test_package
+%bcond_without mgr_dashboard_frontend_support_multi_language
 %ifarch s390
 %bcond_with tcmalloc
 %else
@@ -458,6 +459,9 @@ BuildRequires:  libnuma-devel
 %if 0%{?rhel} >= 8
 BuildRequires:  /usr/bin/pathfix.py
 %endif
+%if 0%{with mgr_dashboard_frontend_support_multi_language}
+BuildRequires:  npm
+%endif
 
 %description
 Ceph is a massively scalable, open-source, distributed storage system that runs
@@ -1330,7 +1334,13 @@ cmake .. \
     -DSYSTEMD_SYSTEM_UNIT_DIR:PATH=%{_unitdir} \
     -DWITH_MANPAGE:BOOL=ON \
     -DWITH_PYTHON3:STRING=%{python3_version} \
+%if 0%{with mgr_dashboard_frontend_support_multi_language}
+    -DWITH_MGR_DASHBOARD_FRONTEND:BOOL=ON \
+    -DDASHBOARD_FRONTEND_LANGS:STRING="cs,de,es,fr,id,it,ja,ko,pl,zh-Hans,zh-Hant,pt" \
+    -DWITH_SYSTEM_NPM:BOOL=ON \
+%else
     -DWITH_MGR_DASHBOARD_FRONTEND:BOOL=OFF \
+%endif
 %if 0%{?suse_version}
     -DWITH_RADOSGW_SELECT_PARQUET:BOOL=OFF \
 %endif