Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117884756
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
701 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
echo
"Push the new .pot file back to transifex"
tx push -s
if
[
"
$1
"
==
"po"
]
;
then
for
lang_file
in
`
ls -1 *.po
`
;
do
lang
=
$(
echo
${
lang_file
}
|
cut -f1 -d
'.'
)
tx pull -f -l
${
lang
}
done
fi
cd
..
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Mon, Apr 6, 1:37 AM (2 d, 8 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b3/84/406ede957edaa433126054270c8d
Default Alt Text
pykolab-update-lang (701 B)
Attached To
Mode
rP pykolab
Attached
Detach File
Event Timeline