mirror of
https://github.com/altlinux/ALTMediaWriter.git
synced 2024-10-26 08:55:03 +03:00
clean up translations dir
leave only ru ts and qm files
This commit is contained in:
parent
acf6340e76
commit
0b6f89afda
2
translations/.gitignore
vendored
2
translations/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
*.pot
|
||||
.zanata-cache
|
Binary file not shown.
Binary file not shown.
@ -1,4 +0,0 @@
|
||||
<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
|
||||
<its:translateRule translate="no" selector="/application"/>
|
||||
<its:translateRule translate="yes" selector="/application/name | /application/summary | /application/description | /application/screenshots/screenshot/caption | /application/developer_name"/>
|
||||
</its:rules>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,65 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -f *.qm *.po websites/getfedora/*.po websites/spins/*.po websites/labs/*.po
|
||||
|
||||
zanata-cli --batch-mode pull &
|
||||
pushd websites
|
||||
pushd getfedora
|
||||
zanata-cli --batch-mode pull &
|
||||
popd
|
||||
pushd spins
|
||||
zanata-cli --batch-mode pull &
|
||||
popd
|
||||
pushd labs
|
||||
zanata-cli --batch-mode pull &
|
||||
popd
|
||||
popd
|
||||
|
||||
wait
|
||||
|
||||
for i in `ls *-*.po`; do
|
||||
mv $i ${i/-/_}
|
||||
done
|
||||
|
||||
echo -e '<RCC>' > translations.qrc
|
||||
echo -e '\t<qresource prefix="/translations/">' >> translations.qrc
|
||||
for i in `ls websites/getfedora/*.po`; do
|
||||
LANGCODE=$(basename -s .po $i)
|
||||
touch websites/getfedora/$LANGCODE.po websites/labs/$LANGCODE.po websites/spins/$LANGCODE.po mediawriter_$LANGCODE.po
|
||||
sed -i '/msgid ["].*/imsgctxt "Release|"' websites/getfedora/$LANGCODE.po
|
||||
sed -i '0,/msgctxt .*/{/msgctxt .*/d}' websites/getfedora/$LANGCODE.po
|
||||
sed -i '/msgid ["].*/imsgctxt "Release|"' websites/labs/$LANGCODE.po
|
||||
sed -i '0,/msgctxt .*/{/msgctxt .*/d}' websites/labs/$LANGCODE.po
|
||||
sed -i '/msgid ["].*/imsgctxt "Release|"' websites/spins/$LANGCODE.po
|
||||
sed -i '0,/msgctxt .*/{/msgctxt .*/d}' websites/spins/$LANGCODE.po
|
||||
msgcat websites/getfedora/$LANGCODE.po websites/labs/$LANGCODE.po websites/spins/$LANGCODE.po mediawriter_$LANGCODE.po -o merged_$LANGCODE.po
|
||||
sed -i '/"Language:.*/a "X-Qt-Contexts: true\\n"' merged_$LANGCODE.po
|
||||
sed -i '/"#-#-#-#-#.*/d' merged_$LANGCODE.po
|
||||
lrelease-qt5 merged_$LANGCODE.po -qm $LANGCODE.qm
|
||||
echo -e "\t\t<file>${LANGCODE}.qm</file>" >> translations.qrc
|
||||
done
|
||||
echo -e '\t</qresource>' >> translations.qrc
|
||||
echo -e '</RCC>' >> translations.qrc
|
||||
|
||||
rm mediawriter_*.po
|
||||
rm merged_*.po
|
||||
|
||||
for i in `ls appstream_*.po`; do
|
||||
echo $i
|
||||
LANGCODE=$(sed 's/appstream_\([^.]*\).po/\1/' <<< "$i")
|
||||
msgfmt $i -o "${LANGCODE}.mo"
|
||||
done
|
||||
|
||||
itstool -i as-metainfo.its -j ../dist/linux/mediawriter.appdata.xml.in -o ../dist/linux/mediawriter.appdata.xml *.mo
|
||||
|
||||
rm appstream_*.po *.mo
|
||||
|
||||
for i in `ls desktop_*.po`; do
|
||||
echo $i
|
||||
LANGCODE=$(sed 's/desktop_\([^.]*\).po/\1/' <<< "$i")
|
||||
mv $i "$LANGCODE.po"
|
||||
done
|
||||
|
||||
intltool-merge -d . ../dist/linux/mediawriter.desktop.in ../dist/linux/mediawriter.desktop
|
||||
|
||||
rm *.po
|
@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -f mediawriter.pot mediawriter.ts
|
||||
lupdate-qt5 ../mediawriter.pro -ts mediawriter.ts
|
||||
lconvert-qt5 -of po -o mediawriter.pot mediawriter.ts
|
||||
xgettext ../dist/linux/mediawriter.desktop -o desktop.pot
|
||||
itstool -i as-metainfo.its -o appstream.pot ../dist/linux/mediawriter.appdata.xml.in
|
||||
zanata-cli push -B
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,65 +1,5 @@
|
||||
<RCC>
|
||||
<qresource prefix="/translations/">
|
||||
<file>af.qm</file>
|
||||
<file>ar.qm</file>
|
||||
<file>as.qm</file>
|
||||
<file>ast.qm</file>
|
||||
<file>bal.qm</file>
|
||||
<file>bg.qm</file>
|
||||
<file>bn_IN.qm</file>
|
||||
<file>bn.qm</file>
|
||||
<file>br.qm</file>
|
||||
<file>ca.qm</file>
|
||||
<file>cs.qm</file>
|
||||
<file>da.qm</file>
|
||||
<file>de.qm</file>
|
||||
<file>el.qm</file>
|
||||
<file>en_GB.qm</file>
|
||||
<file>eo.qm</file>
|
||||
<file>es.qm</file>
|
||||
<file>eu.qm</file>
|
||||
<file>fa.qm</file>
|
||||
<file>fi.qm</file>
|
||||
<file>fr.qm</file>
|
||||
<file>fur.qm</file>
|
||||
<file>gl.qm</file>
|
||||
<file>gu.qm</file>
|
||||
<file>he.qm</file>
|
||||
<file>hi.qm</file>
|
||||
<file>hu.qm</file>
|
||||
<file>ia.qm</file>
|
||||
<file>id.qm</file>
|
||||
<file>is.qm</file>
|
||||
<file>it.qm</file>
|
||||
<file>ja.qm</file>
|
||||
<file>ka.qm</file>
|
||||
<file>km.qm</file>
|
||||
<file>kn.qm</file>
|
||||
<file>ko.qm</file>
|
||||
<file>lv.qm</file>
|
||||
<file>ml.qm</file>
|
||||
<file>mr.qm</file>
|
||||
<file>nb.qm</file>
|
||||
<file>nl.qm</file>
|
||||
<file>or.qm</file>
|
||||
<file>pa.qm</file>
|
||||
<file>pl.qm</file>
|
||||
<file>pt_BR.qm</file>
|
||||
<file>pt.qm</file>
|
||||
<file>ro.qm</file>
|
||||
<file>ru.qm</file>
|
||||
<file>sk.qm</file>
|
||||
<file>sq.qm</file>
|
||||
<file>sr.qm</file>
|
||||
<file>sv.qm</file>
|
||||
<file>ta.qm</file>
|
||||
<file>te.qm</file>
|
||||
<file>tg.qm</file>
|
||||
<file>th.qm</file>
|
||||
<file>tr.qm</file>
|
||||
<file>uk.qm</file>
|
||||
<file>vi.qm</file>
|
||||
<file>zh_CN.qm</file>
|
||||
<file>zh_TW.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<config xmlns="http://zanata.org/namespace/config/">
|
||||
<url>https://fedora.zanata.org/</url>
|
||||
<project>fedora-web</project>
|
||||
<project-version>getfedora.org</project-version>
|
||||
<project-type>gettext</project-type>
|
||||
<rules>
|
||||
<rule pattern="**/*.pot">{locale}.po</rule>
|
||||
</rules>
|
||||
</config>
|
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<config xmlns="http://zanata.org/namespace/config/">
|
||||
<url>https://fedora.zanata.org/</url>
|
||||
<project>fedora-web</project>
|
||||
<project-version>labs.fedoraproject.org</project-version>
|
||||
<project-type>gettext</project-type>
|
||||
<rules>
|
||||
<rule pattern="**/*.pot">{locale}.po</rule>
|
||||
</rules>
|
||||
</config>
|
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<config xmlns="http://zanata.org/namespace/config/">
|
||||
<url>https://fedora.zanata.org/</url>
|
||||
<project>fedora-web</project>
|
||||
<project-version>spins.fedoraproject.org</project-version>
|
||||
<project-type>gettext</project-type>
|
||||
<rules>
|
||||
<rule pattern="**/*.pot">{locale}.po</rule>
|
||||
</rules>
|
||||
</config>
|
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<config xmlns="http://zanata.org/namespace/config/">
|
||||
<url>https://fedora.zanata.org/</url>
|
||||
<project>mediawriter</project>
|
||||
<project-version>master</project-version>
|
||||
<project-type>gettext</project-type>
|
||||
<rules>
|
||||
<rule pattern="**/*.pot">{filename}_{locale}.po</rule>
|
||||
</rules>
|
||||
</config>
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user