Compare commits
11 Commits
2142cc7962
...
783d51f80a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
783d51f80a | ||
|
|
2979a8103d | ||
|
|
4f96bf97be | ||
|
|
4583b397d7 | ||
|
|
2ff442292b | ||
|
|
ebf72a2e59 | ||
|
|
42da889856 | ||
|
|
d4609effd2 | ||
|
|
c4f01288f8 | ||
|
|
3c12faafb5 | ||
|
|
d42988aac7 |
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# deepin-gettext-tools
|
|
||||||
|
|
||||||
#### Description
|
|
||||||
Deepin Gettext Tools
|
|
||||||
|
|
||||||
#### Software Architecture
|
|
||||||
Software architecture description
|
|
||||||
|
|
||||||
#### Installation
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Contribution
|
|
||||||
|
|
||||||
1. Fork the repository
|
|
||||||
2. Create Feat_xxx branch
|
|
||||||
3. Commit your code
|
|
||||||
4. Create Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### Gitee Feature
|
|
||||||
|
|
||||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
||||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
||||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
||||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
|||||||
# deepin-gettext-tools
|
|
||||||
|
|
||||||
#### 介绍
|
|
||||||
Deepin Gettext Tools
|
|
||||||
|
|
||||||
#### 软件架构
|
|
||||||
软件架构说明
|
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 使用说明
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 参与贡献
|
|
||||||
|
|
||||||
1. Fork 本仓库
|
|
||||||
2. 新建 Feat_xxx 分支
|
|
||||||
3. 提交代码
|
|
||||||
4. 新建 Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### 码云特技
|
|
||||||
|
|
||||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
||||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
|
||||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
|
||||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
BIN
deepin-gettext-tools-1.0.10.tar.gz
Normal file
BIN
deepin-gettext-tools-1.0.10.tar.gz
Normal file
Binary file not shown.
76
deepin-gettext-tools.spec
Normal file
76
deepin-gettext-tools.spec
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
Name: deepin-gettext-tools
|
||||||
|
Version: 1.0.10
|
||||||
|
Release: 1
|
||||||
|
Summary: Deepin Gettext Tools
|
||||||
|
License: GPLv3
|
||||||
|
URL: https://github.com/linuxdeepin/deepin-gettext-tools
|
||||||
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: perl(Exporter::Tiny)
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: perl(Config::Tiny)
|
||||||
|
BuildRequires: perl(XML::LibXML)
|
||||||
|
BuildRequires: perl(XML::LibXML::PrettyPrint)
|
||||||
|
Requires: gettext
|
||||||
|
Requires: qt5-linguist
|
||||||
|
Requires: perl(Config::Tiny)
|
||||||
|
Requires: perl(Exporter::Tiny)
|
||||||
|
Requires: perl(XML::LibXML)
|
||||||
|
Requires: perl(XML::LibXML::PrettyPrint)
|
||||||
|
|
||||||
|
%description
|
||||||
|
The tools of gettext function wrapper.
|
||||||
|
|
||||||
|
desktop-ts-convert - handling desktop file translations.
|
||||||
|
policy-ts-convert - convert PolicyKit Policy file to the ts file.
|
||||||
|
update-pot - scan msgid and generate pot file according to the ini file.
|
||||||
|
generate-mo - scan po files and generate mo files according to the ini file.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
# fix shebang
|
||||||
|
find -iname "*.py" | xargs sed -i '1s|.*|#!%{__python3}|'
|
||||||
|
sed -i '1s|.*|#!%{__perl}|' src/desktop_ts_convert.pl
|
||||||
|
|
||||||
|
sed -i 's|sudo cp|cp|' src/generate_mo.py
|
||||||
|
sed -i 's|lconvert|lconvert-qt5|; s|deepin-lupdate|lupdate-qt5|' src/update_pot.py
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d %{buildroot}%{_bindir}
|
||||||
|
install -m755 src/desktop_ts_convert.pl %{buildroot}%{_bindir}/deepin-desktop-ts-convert
|
||||||
|
install -m755 src/policy_ts_convert.py %{buildroot}%{_bindir}/deepin-policy-ts-convert
|
||||||
|
install -m755 src/generate_mo.py %{buildroot}%{_bindir}/deepin-generate-mo
|
||||||
|
install -m755 src/update_pot.py %{buildroot}%{_bindir}/deepin-update-pot
|
||||||
|
|
||||||
|
%check
|
||||||
|
/bin/perl src/desktop_ts_convert.pl --help
|
||||||
|
/bin/python3 src/generate_mo.py --help
|
||||||
|
/bin/python3 src/update_pot.py --help
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
%{_bindir}/deepin-desktop-ts-convert
|
||||||
|
%{_bindir}/deepin-policy-ts-convert
|
||||||
|
%{_bindir}/deepin-update-pot
|
||||||
|
%{_bindir}/deepin-generate-mo
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Jul 26 2023 leeffo <liweiganga@uniontech.com> - 1.0.10-1
|
||||||
|
- upgrade to version 1.0.10
|
||||||
|
|
||||||
|
* Tue Jul 19 2022 konglidong <konglidong@uniontech.com> - 1.0.9-1
|
||||||
|
- Update to 1.0.9
|
||||||
|
|
||||||
|
* Thu Sep 3 2020 weidong <weidong@uniontech.com> - 1.0.8-3
|
||||||
|
- fix source url in spec
|
||||||
|
|
||||||
|
* Fri Aug 28 2020 chenbo pan <panchenbo@uniontech.com> - 1.0.8-2
|
||||||
|
- fix check fail
|
||||||
|
|
||||||
|
* Mon Aug 17 2020 weidong <weidong@uniontech.com> - 1.0.8-1
|
||||||
|
- Initial release for OpenEuler
|
||||||
4
deepin-gettext-tools.yaml
Normal file
4
deepin-gettext-tools.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: linuxdeepin/deepin-gettext-tools
|
||||||
|
tag_prefix: ""
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user