Mercurial > hg > easyhg-kdiff3
changeset 93:7756588e8519
File create_qm_files added
author | joachim99 |
---|---|
date | Sun, 28 Feb 2010 19:32:54 +0000 |
parents | 4e6ebbbae925 |
children | b2f22ae5f810 |
files | kdiff3/po/create_qm_files |
diffstat | 1 files changed, 45 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/kdiff3/po/create_qm_files Sun Feb 28 19:32:54 2010 +0000 @@ -0,0 +1,45 @@ +# Copyright (C) 2009 by Joachim Eibl +# Licence: GPL V2 +# GNU GENERAL PUBLIC LICENSE, Version 2, June 1991 +# 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 2 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., 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307 USA +# +# For details see file "COPYING". + +# create_qm_files: +# Create translation files needed by qt-only version. +# Requirements: qt3-devel-tools + +echo "Create qm files (KDiff3 translation files for the qt-only version)" +if [ "$1" = "local" ]; then + for i in `ls` ; do + if [ -s $i/kdiff3.po ]; then + # (msg2qm is from "qt3-devel-tools"-package.) + echo Creating ./kdiff3_$i.qm + /usr/lib/qt3/bin/msg2qm $i/kdiff3.po kdiff3_$i.qm + fi + done +elif [ "$1" = "install" ]; then + for i in `ls` ; do + if [ -s $i/kdiff3.po ]; then + # (msg2qm is from "qt3-devel-tools"-package.) + echo Installing /usr/share/locale/$i/LC_MESSAGES/kdiff3.qm + sudo /usr/lib/qt3/bin/msg2qm $i/kdiff3.po /usr/share/locale/$i/LC_MESSAGES/kdiff3.qm + fi + done +else + echo Usage 1: sh create_qm_files local + echo Usage 2: sh create_qm_files install +fi +