Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
蜕变的菜鸟
glances
提交
91adde89
G
glances
项目概览
蜕变的菜鸟
/
glances
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
glances
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
91adde89
编写于
3月 14, 2012
作者:
L
Laurent Bachelier
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Simple building and packaging of i18n
上级
471db3b0
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
27 addition
and
43 deletion
+27
-43
MANIFEST.in
MANIFEST.in
+1
-0
Makefile
Makefile
+10
-0
i18n_espanol_generate.sh
i18n_espanol_generate.sh
+0
-16
i18n_francais_generate.sh
i18n_francais_generate.sh
+0
-16
setup.py
setup.py
+16
-11
未找到文件。
MANIFEST.in
浏览文件 @
91adde89
...
@@ -7,3 +7,4 @@ include NEWS
...
@@ -7,3 +7,4 @@ include NEWS
include screenshot.png
include screenshot.png
recursive-include doc *.png
recursive-include doc *.png
recursive-include man *.1
recursive-include man *.1
recursive-include i18n *.mo
Makefile
0 → 100644
浏览文件 @
91adde89
MSGFMT
=
msgfmt
-v
.SUFFIXES
:
.po .mo
MSGOBJ
:=
$(
patsubst
%.po,%.mo,
$(
wildcard
i18n/
*
/LC_MESSAGES/
*
.po
))
.po.mo
:
$(MSGFMT)
-o
$@
$<
all
:
$(MSGOBJ)
i18n_espanol_generate.sh
已删除
100755 → 0
浏览文件 @
471db3b0
#!/bin/bash
### Generating Spanish Locale
echo
"Para instalar correctamente la traducción española,
\n
"
echo
"debe ejecutar este script como root o con sudo.
\n
"
echo
"
\n\n
"
echo
"Traducción de JeanBoB <jeanbob@jeanbob.eu>
\n\n
"
echo
"Generación del idioma española...
\n
"
msgfmt i18n/es/LC_MESSAGES/glances.po
-o
i18n/es/LC_MESSAGES/glances.mo
echo
"Instalación en el siguiente directorio: /usr/share/locale/es/LC_MESSAGES/
\n
"
cp
i18n/es/LC_MESSAGES/glances.mo /usr/share/locale/es/LC_MESSAGES/glances.mo
echo
"¡Instalación terminado!
\n\n
"
\ No newline at end of file
i18n_francais_generate.sh
已删除
100755 → 0
浏览文件 @
471db3b0
#!/bin/bash
### Generating French Locale
echo
"Pour réussir l'installation de la localisation française,
\n
"
echo
"vous devez executer ce script sous l'utilisateur root ou avec sudo.
\n
"
echo
"
\n\n
"
echo
"Traduction par JeanBoB <jeanbob@jeanbob.eu>
\n\n
"
echo
"Genération de la langue française...
\n
"
msgfmt i18n/fr/LC_MESSAGES/glances.po
-o
i18n/fr/LC_MESSAGES/glances.mo
echo
"Installation dans le répertoire /usr/share/locale/fr/LC_MESSAGES/
\n
"
cp
i18n/fr/LC_MESSAGES/glances.mo /usr/share/locale/fr/LC_MESSAGES/glances.mo
echo
"Installation terminée
\n\n
"
\ No newline at end of file
setup.py
浏览文件 @
91adde89
#!/usr/bin/env python
#!/usr/bin/env python
from
glob
import
glob
from
glob
import
glob
from
os.path
import
dirname
from
setuptools
import
setup
from
setuptools
import
setup
data_files
=
[
(
'share/man/man1'
,
[
'man/glances.1'
]),
(
'share/doc/glances'
,
[
'README'
,
'README-fr'
,
'COPYING'
,
'AUTHORS'
,
'ChangeLog'
,
'NEWS'
,
'screenshot.png'
]),
(
'share/doc/glances/doc'
,
glob
(
'doc/*.png'
)),
]
for
mo
in
glob
(
'i18n/*/LC_MESSAGES/*.mo'
):
data_files
.
append
((
dirname
(
mo
).
replace
(
'i18n/'
,
'share/locale/'
),
[
mo
]))
setup
(
name
=
'Glances'
,
setup
(
name
=
'Glances'
,
version
=
'1.4b'
,
version
=
'1.4b'
,
download_url
=
'https://github.com/downloads/nicolargo/glances/glances-1.4b.tar.gz'
,
download_url
=
'https://github.com/downloads/nicolargo/glances/glances-1.4b.tar.gz'
,
...
@@ -17,16 +32,6 @@ setup(name='Glances',
...
@@ -17,16 +32,6 @@ setup(name='Glances',
install_requires
=
[
'psutil>=0.4.1'
],
install_requires
=
[
'psutil>=0.4.1'
],
packages
=
[
'glances'
],
packages
=
[
'glances'
],
include_package_data
=
True
,
include_package_data
=
True
,
data_files
=
[
data_files
=
data_files
,
(
'share/man/man1'
,
[
'man/glances.1'
]),
(
'share/doc/glances'
,
[
'README'
,
'README-fr'
,
'COPYING'
,
'AUTHORS'
,
'ChangeLog'
,
'NEWS'
,
'screenshot.png'
]),
(
'share/doc/glances/doc'
,
glob
(
'doc/*.png'
)),
],
entry_points
=
{
"console_scripts"
:
[
"glances = glances.glances:main"
]},
entry_points
=
{
"console_scripts"
:
[
"glances = glances.glances:main"
]},
)
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录