Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117882632
pykolab-update-lang
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
736 B
Referenced Files
None
Subscribers
None
pykolab-update-lang
View Options
#!/bin/bash
echo
"Updating language files"
> po/POTFILES.in
> po/POTFILES.skip
find . -type f -name
"*.py"
-o -name
"*.py.in"
|
\
sort
|
\
sed -e
's/^.\///g'
|
\
while
read
file
;
do
if
[
$(
git ls-files --error-unmatch
"
${
file
}
"
>/dev/null
2
>
&
1
;
echo
$?
)
-eq
0
]
;
then
echo
"
${
file
}
"
>> po/POTFILES.in
else
echo
"
${
file
}
"
>> po/POTFILES.skip
fi
done
cd
po/
intltool-update --pot --gettext-package
=
pykolab
if
[
"
$1
"
==
"po"
]
;
then
for
lang_file
in
`
ls -1 *.po
`
;
do
lang
=
$(
echo
${
lang_file
}
|
cut -f1 -d
'.'
)
tx pull -f -l
${
lang
}
intltool-update -d
${
lang
}
done
fi
echo
"Push the new .pot file back to transifex"
tx push -s
cd
..
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Mon, Apr 6, 12:38 AM (6 d, 4 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e7/54/aaaf1094ae4221fa99c0eb36ccdc
Default Alt Text
pykolab-update-lang (736 B)
Attached To
Mode
rP pykolab
Attached
Detach File
Event Timeline