[PATCH openEuler-20.03-LTS-SP3]lshw: add some chinese translation
category: bugfix bugzilla: https://gitee.com/src-openeuler/lshw/issues/I65DLI Signed-off-by: Guangzhong Yao <yaoguangzhong@xfusion.com>
This commit is contained in:
parent
1bcc414d4a
commit
3ce6e2c490
12
lshw.spec
12
lshw.spec
@ -1,10 +1,11 @@
|
||||
Name: lshw
|
||||
Version: B.02.18
|
||||
Release: 21
|
||||
Release: 22
|
||||
Summary: Hardware lister
|
||||
License: GPLv2
|
||||
URL: http://ezix.org/project/wiki/HardwareLiSter
|
||||
Source0: http://www.ezix.org/software/files/%{name}-%{version}.tar.gz
|
||||
Source1: zh_CN.po
|
||||
Patch0: lshw-B.02.18-scandir.patch
|
||||
Patch1: lshw-B.02.18-20cda77.patch
|
||||
Patch2: lshw-B.02.18-revert-json.patch
|
||||
@ -39,6 +40,8 @@ The %{name}-help package contains doc files for %{name}.
|
||||
%patch02 -R -p1
|
||||
%patch03 -p1
|
||||
|
||||
cp %{SOURCE1} src/po/
|
||||
|
||||
%build
|
||||
mkdir -p build && cd build
|
||||
%cmake .. -DNOLOGO=ON -DHWDATA=OFF -DPOLICYKIT=ON -DBUILD_SHARED_LIBS=OFF -GNinja
|
||||
@ -49,8 +52,6 @@ cd build
|
||||
%ninja_install
|
||||
ln -s gtk-lshw %{buildroot}/%{_sbindir}/lshw-gui
|
||||
|
||||
rm -rf %{buildroot}/%{_datadir}/locale/fr/
|
||||
|
||||
%check
|
||||
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
|
||||
cd build
|
||||
@ -72,8 +73,12 @@ src/lshw -json -disable usb -disable pcmcia -disable isapnp \
|
||||
%files help
|
||||
%doc README.md
|
||||
%{_mandir}/man1/lshw.1.gz
|
||||
%{_datadir}/locale/*
|
||||
|
||||
%changelog
|
||||
* Thu Dec 8 2022 yaoguangzhong <yaoguangzhong@xfusion.com> - B.02.18-22
|
||||
- add chinese translation
|
||||
|
||||
* Fri Feb 14 2020 chengquan <chengquan3@huawei.com> - B.02.18-21
|
||||
- Rollback some patches for bugfix
|
||||
|
||||
@ -82,3 +87,4 @@ src/lshw -json -disable usb -disable pcmcia -disable isapnp \
|
||||
|
||||
* Mon Sep 9 2019 luhuaxin <luhuaxin@huawei.com> - B.02.18-19
|
||||
- Package init
|
||||
|
||||
|
||||
30
zh_CN.po
Normal file
30
zh_CN.po
Normal file
@ -0,0 +1,30 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr "Project-Id-Version: lshw\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-07-29\n"
|
||||
"PO-Revision-Date: 2022-07-29\n"
|
||||
"Last-Translator: wutao <wutao1@xfusion.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
msgid "_File"
|
||||
msgstr "文件(_F)"
|
||||
|
||||
msgid "_View"
|
||||
msgstr "视图(_V)"
|
||||
|
||||
msgid "_Help"
|
||||
msgstr "帮助(_H)"
|
||||
|
||||
msgid "Click to select and double-click to navigate"
|
||||
msgstr "单击以选择并双击以导航"
|
||||
|
||||
msgid "This pane displays detailed information about the selected hardware node"
|
||||
msgstr "此窗格显示有关所选硬件节点的详细信息"
|
||||
Loading…
x
Reference in New Issue
Block a user