mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
#11210: add script to update translation, remove po files that are no longer used
This commit is contained in:
74
gnome/po/update_translation.sh
Executable file
74
gnome/po/update_translation.sh
Executable file
@ -0,0 +1,74 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright (C) 2004-2012 Savoir-Faire Linux Inc.
|
||||
#
|
||||
# Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
#
|
||||
# Additional permission under GNU GPL version 3 section 7:
|
||||
#
|
||||
# If you modify this program, or any covered work, by linking or
|
||||
# combining it with the OpenSSL project's OpenSSL library (or a
|
||||
# modified version of that library), containing parts covered by the
|
||||
# terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
|
||||
# grants you additional permission to convey the resulting work.
|
||||
# Corresponding Source for a non-source form of such a combination
|
||||
# shall include the source code for the parts of OpenSSL used as well
|
||||
# as that of the covered work.
|
||||
#
|
||||
|
||||
# Script to update sflphone translation
|
||||
|
||||
LAUNCHPAD_PO_ARCHIVE=launchpad-export.tar.gz
|
||||
|
||||
LAUNCHPAD_DIR=launchpad-import/sflphone
|
||||
LAUNCHPAD_PATH=$PWD/$LAUNCHPAD_DIR
|
||||
|
||||
SFL_PO_DIR=.
|
||||
SFL_PO_PATH=$PWD/$SFL_PO_DIR
|
||||
|
||||
if [ ! -e ${LAUNCHPAD_PO_ARCHIVE} ]; then
|
||||
echo "Error, "$LAUNCHPAD_PO_ARCHIVE" is required in current directory"
|
||||
exit
|
||||
fi
|
||||
|
||||
tar -zxvf $LAUNCHPAD_PO_ARCHIVE
|
||||
|
||||
if [ ! -d ${LAUNCHPAD_PATH} ]; then
|
||||
echo "Error, directory "$LAUNCHPAD_PATH" does not exist"
|
||||
exit
|
||||
fi
|
||||
|
||||
pushd $LAUNCHPAD_PATH
|
||||
|
||||
for filename in $(ls)
|
||||
do
|
||||
splitname=$(echo $filename | cut -d- -f2)
|
||||
|
||||
if [ -e $SFL_PO_PATH/$splitname ]; then
|
||||
msgmerge --update $filename $SFL_PO_PATH/$splitname
|
||||
else
|
||||
cp $filename $SFL_PO_PATH/$splitname
|
||||
fi
|
||||
done
|
||||
|
||||
popd
|
||||
|
||||
# Cleanup once translation are updated
|
||||
rm -rf launchpad-import
|
||||
rm -rf sflphone
|
||||
rm -rf sflphone-manual
|
||||
rm -rf sflphone_usermanual
|
@ -1,8 +1,36 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Script used by Hudson continious integration server to build SFLphone
|
||||
# Copyright (C) 2004-2012 Savoir-Faire Linux Inc.
|
||||
#
|
||||
# Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
|
||||
# Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
#
|
||||
# Additional permission under GNU GPL version 3 section 7:
|
||||
#
|
||||
# If you modify this program, or any covered work, by linking or
|
||||
# combining it with the OpenSSL project's OpenSSL library (or a
|
||||
# modified version of that library), containing parts covered by the
|
||||
# terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
|
||||
# grants you additional permission to convey the resulting work.
|
||||
# Corresponding Source for a non-source form of such a combination
|
||||
# shall include the source code for the parts of OpenSSL used as well
|
||||
# as that of the covered work.
|
||||
#
|
||||
|
||||
# Script used by Hudson continious integration server to build SFLphone
|
||||
|
||||
XML_RESULTS="cppunitresults.xml"
|
||||
TEST=0
|
||||
|
22
lang/README
22
lang/README
@ -1,22 +0,0 @@
|
||||
If you need to update the translations files :
|
||||
|
||||
First, compile the KDE client in order to update generated c++ files (from ui files, etc).
|
||||
For more details about how to compile KDE client, see the README file in sflphone-client-kde folder.
|
||||
Then just execute:
|
||||
|
||||
./update.sh
|
||||
|
||||
in the current directory.
|
||||
|
||||
|
||||
Now that the global po files are updated, you can copy them in both Gnome and KDE clients using :
|
||||
|
||||
./copy-in-gnome.sh
|
||||
|
||||
and
|
||||
|
||||
./copy-in-kde.sh
|
||||
|
||||
This will replace the po files in clients with those in lang folder.
|
||||
|
||||
ALL CHANGES MADE DIRECTLY IN PO FILES IN THE CLIENTS FOLDERS WILL BE LOST!
|
1226
lang/ar.po
1226
lang/ar.po
File diff suppressed because it is too large
Load Diff
1306
lang/ast.po
1306
lang/ast.po
File diff suppressed because it is too large
Load Diff
1278
lang/ca.po
1278
lang/ca.po
File diff suppressed because it is too large
Load Diff
@ -1 +0,0 @@
|
||||
cp *.po ../gnome/po
|
@ -1,5 +0,0 @@
|
||||
for i in *.po
|
||||
do
|
||||
locale=`echo $i | cut -d. -f1`
|
||||
cp -v $i ../kde/po/$locale/sflphone-client-kde.po
|
||||
done
|
1482
lang/da.po
1482
lang/da.po
File diff suppressed because it is too large
Load Diff
1696
lang/de.po
1696
lang/de.po
File diff suppressed because it is too large
Load Diff
1268
lang/el.po
1268
lang/el.po
File diff suppressed because it is too large
Load Diff
1974
lang/es.po
1974
lang/es.po
File diff suppressed because it is too large
Load Diff
2046
lang/fr.po
2046
lang/fr.po
File diff suppressed because it is too large
Load Diff
1257
lang/hu.po
1257
lang/hu.po
File diff suppressed because it is too large
Load Diff
1564
lang/it.po
1564
lang/it.po
File diff suppressed because it is too large
Load Diff
1297
lang/ja.po
1297
lang/ja.po
File diff suppressed because it is too large
Load Diff
1282
lang/ko.po
1282
lang/ko.po
File diff suppressed because it is too large
Load Diff
1272
lang/nl.po
1272
lang/nl.po
File diff suppressed because it is too large
Load Diff
1236
lang/oc.po
1236
lang/oc.po
File diff suppressed because it is too large
Load Diff
1261
lang/pl.po
1261
lang/pl.po
File diff suppressed because it is too large
Load Diff
1388
lang/pt.po
1388
lang/pt.po
File diff suppressed because it is too large
Load Diff
1679
lang/pt_BR.po
1679
lang/pt_BR.po
File diff suppressed because it is too large
Load Diff
1658
lang/ru.po
1658
lang/ru.po
File diff suppressed because it is too large
Load Diff
1216
lang/sflphone.pot
1216
lang/sflphone.pot
File diff suppressed because it is too large
Load Diff
1281
lang/sv.po
1281
lang/sv.po
File diff suppressed because it is too large
Load Diff
1225
lang/te.po
1225
lang/te.po
File diff suppressed because it is too large
Load Diff
1232
lang/tr.po
1232
lang/tr.po
File diff suppressed because it is too large
Load Diff
@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Parse the GNOME client only to build the langage template
|
||||
|
||||
xgettext --from-code=utf-8 --language=C -k_ -kN_ -kc_:1c,2 -kn_:1,2 -ktr2i18n -ktr2i18n:2c,1 -kki18nc:1c,2 -kki18n -ki18n -ki18nc:1c,2 -o sflphone.pot `find ../gnome/src -name \*.c`
|
||||
|
||||
# Merge template into the existing po files
|
||||
|
||||
for file in *.po
|
||||
do
|
||||
msgmerge --update $file sflphone.pot
|
||||
done
|
1883
lang/zh_CN.po
1883
lang/zh_CN.po
File diff suppressed because it is too large
Load Diff
1887
lang/zh_HK.po
1887
lang/zh_HK.po
File diff suppressed because it is too large
Load Diff
1883
lang/zh_TW.po
1883
lang/zh_TW.po
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user