Sha256: d4c8e6d20606714042664ccf14e83090ce4160da63e44fdf4a182da8b7312d4e
Contents?: true
Size: 1.79 KB
Versions: 5
Compression:
Stored size: 1.79 KB
Contents
# 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: lconvert from qt4 (Thanks to Richard Hoyle for that tip) export LANG=en_US.UTF-8 echo "Create qm files (KDiff3 translation files for the qt-only version)" if [ "$1" = "local" ]; then if ["$2" = ""]; then path=. else path=$2 fi echo "destination: $path" for i in `ls ` ; do if [ -s $i/kdiff3.po ]; then echo Creating ./kdiff3_$i.qm lconvert -if po -of qm -o $path/kdiff3_$i.qm $i/kdiff3.po fi done elif [ "$1" = "install" ]; then for i in `ls` ; do if [ -s $i/kdiff3.po ]; then echo Installing /usr/share/locale/$i/LC_MESSAGES/kdiff3.qm sudo lconvert -if po -of qm -o /usr/share/locale/$i/LC_MESSAGES/kdiff3.qm $i/kdiff3.po fi done else echo "Usage 1: sh create_qm_files local <destination> (if empty current is used)" echo "Usage 2: sh create_qm_files install" fi
Version data entries
5 entries across 5 versions & 1 rubygems