joachim99@93: # Copyright (C) 2009 by Joachim Eibl joachim99@93: # Licence: GPL V2 joachim99@93: # GNU GENERAL PUBLIC LICENSE, Version 2, June 1991 joachim99@93: # This program is free software; you can redistribute it and/or modify joachim99@93: # it under the terms of the GNU General Public License as published by joachim99@93: # the Free Software Foundation; either version 2 of the License, or joachim99@93: # (at your option) any later version. joachim99@93: # joachim99@93: # This program is distributed in the hope that it will be useful, joachim99@93: # but WITHOUT ANY WARRANTY; without even the implied warranty of joachim99@93: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the joachim99@93: # GNU General Public License for more details. joachim99@93: # joachim99@93: # You should have received a copy of the GNU General Public License joachim99@93: # along with this program; if not, write to the Free Software joachim99@93: # Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307 USA joachim99@93: # joachim99@93: # For details see file "COPYING". joachim99@93: joachim99@93: # create_qm_files: joachim99@93: # Create translation files needed by qt-only version. joachim99@93: # Requirements: qt3-devel-tools joachim99@93: joachim99@93: echo "Create qm files (KDiff3 translation files for the qt-only version)" joachim99@93: if [ "$1" = "local" ]; then joachim99@93: for i in `ls` ; do joachim99@93: if [ -s $i/kdiff3.po ]; then joachim99@93: # (msg2qm is from "qt3-devel-tools"-package.) joachim99@93: echo Creating ./kdiff3_$i.qm joachim99@93: /usr/lib/qt3/bin/msg2qm $i/kdiff3.po kdiff3_$i.qm joachim99@93: fi joachim99@93: done joachim99@93: elif [ "$1" = "install" ]; then joachim99@93: for i in `ls` ; do joachim99@93: if [ -s $i/kdiff3.po ]; then joachim99@93: # (msg2qm is from "qt3-devel-tools"-package.) joachim99@93: echo Installing /usr/share/locale/$i/LC_MESSAGES/kdiff3.qm joachim99@93: sudo /usr/lib/qt3/bin/msg2qm $i/kdiff3.po /usr/share/locale/$i/LC_MESSAGES/kdiff3.qm joachim99@93: fi joachim99@93: done joachim99@93: else joachim99@93: echo Usage 1: sh create_qm_files local joachim99@93: echo Usage 2: sh create_qm_files install joachim99@93: fi joachim99@93: