From: TomNewChao Date: Tue, 25 Jul 2023 07:08:44 +0000 (+0800) Subject: Ceph dashboard supports multiple languages X-Git-Tag: v19.1.0~180^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8a5cab4f4c4fd89fec727fbd1c2ffa3df7f864ed;p=ceph.git Ceph dashboard supports multiple languages mgr/dashboard/frontend:Ceph dashboard supports multiple languages Signed-off-by: TomNewChao (cherry picked from commit 1a2744282c46ca113f5f9f168d1f4d66c734e64d) --- diff --git a/ceph.spec.in b/ceph.spec.in index ed3674655277..89f5cc5823c1 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -23,6 +23,7 @@ %bcond_with make_check %bcond_with cmake_verbose_logging %bcond_without ceph_test_package +%bcond_without mgr_dashboard_frontend_support_multi_language %ifarch s390 %bcond_with tcmalloc %else @@ -478,6 +479,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 @@ -1382,7 +1386,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