Remove the original translation directory layout.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/3/head
Slávek Banko 2 years ago
parent b02fdb4d70
commit 7fa4f1ed9b
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1,30 +1 @@
# make messages.pot
# the -x is for skipping messages already translated in tdelibs
messages:
echo Preparing documentation files handbook.pot and howto.pot...
mkdir -p tmp/
for XML_FILE in `cd ..; find docs -name "*.docbook"`; do\
echo " creating temporary POT file tmp/$$XML_FILE.pot";\
(cd tmp; mkdir -p `dirname $$XML_FILE.pot`; xml2pot ../../$$XML_FILE > $$XML_FILE.pot;)\
done
echo merging POT files...
msgcat --force-po -o handbook.pot `find tmp/docs/handbook -name "*.pot"`
msgcat --force-po -o howto.pot `find tmp/docs/howto/ -name "*.pot"`
rm -r ./tmp/
echo Finished creating handbook.pot and howto.pot.\n
echo Preparing program messages file messages.pot...
echo Before we start, run make to generate all the auto-generated .cpp and .h files
(sleep 5; cd ..; make) #needed for .ui files
echo Now extract the messages...
perl ./extractrc ../bibletime/xml/*.rc > ../bibletime/rc-dummy.cpp
perl ./preparetips ../docs/tips > ../bibletime/tips-dummy.cpp
$(XGETTEXT) -C -F -L C++ -ki18n -kI18N_NOOP -x `tde-config --prefix`/include/tde/kde.pot `find .. -type f -not -name clanguagemgr.cpp -and -name \*.cpp -or -name \*.h -or -name \*.cc` -o messages.pot
recode iso8859-1..utf-8 messages.pot
cp ../bibletime/backend/clanguagemgr.cpp clanguagemgr.cpp
$(XGETTEXT) --from-code=utf-8 --join-existing -C -F -L C++ -ki18n -kI18N_NOOP -x `tde-config --prefix`/include/tde/kde.pot clanguagemgr.cpp -o messages.pot
rm clanguagemgr.cpp
echo Finished creating messages.pot.
SUBDIRS = messages

@ -1,74 +0,0 @@
#! /usr/bin/perl
# NOTE: this script is part of the KDE SDK and added to KDevelop to support KDE 2 application development.
# The original is located in the KDE CVS module tdesdk/scripts. It gets installed in the same directory as
# the KDevelop binary to be in your PATH.
#
# What it does is extract the strings in an application´s .rc file, e.g. testappui.rc, and writes into the pot file
# where the translations are build with (po-files)
#
# Added to KDevelop 2000-10-29, Ralf Nolden (nolden@kde.org)
$linenr = 0;
$filename = "";
@filenames = ();
sub writeoutstring($)
{
print STDOUT "i18n(\"@_[0]\");\n";
}
while (defined ($ARGV[0]))
{
$_ = shift;
$filename = $_; # maybe check for options
if (! $filename) {
print STDERR "no file to open\n";
exit 1;
}
$string = "";
$intext = 0;
open(FILE, $filename);
while ( <FILE> ) {
$linenr++;
$string .= $_;
chomp($string);
$textstring = '([tT][eE][xX][tT]|string)>';
if ($intext == 0) {
if ($string =~ /<$textstring/) {
$string =~ s/^.*<$textstring//;
$intext = 1;
$starting_linenr = $linenr;
} else {
$string = "";
}
}
if (($intext == 1) && ($string =~ /<\/$textstring/)) {
my $text = $string;
$text =~ s/<\/$textstring.*$//;
$text =~ s/&lt;/</g;
$text =~ s/&gt;/>/g;
$text =~ s/&amp;/&/g;
writeoutstring($text);
$string =~ s/^.*<\/$textstring//;
$intext = 0;
if ($linenr != $starting_linenr) {
print STDERR "there is <text> floating\n";
}
}
}
if ($intext == 1) {
print STDERR "parsing error in $filename $linenr\n";
exit 1;
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,45 +0,0 @@
# !/usr/bin/perl
# little script to extract the text from the tips file
# and output it, so xgettext can add the tips to the po file
#
# 2000 by Matthias Kiefer <matthias.kiefer@gmx.de>
# Command line option added by Joachim Ansorg
open(FILE,"<$ARGV[0]") || die "unable to open tips file";
$inTip=0;
while(<FILE>)
{
chomp;
# tip starts with <html>
if(/^\s*<html>/i)
{
$inTip=1;
print "\ni18n(\n";
next;
}
if($inTip!=0)
{
# tip ends with </html>
if(/^\s*<\/html>/i)
{
print ");\n";
$inTip=0;
}
else
{
# replace \ with \\
s/\\/\\\\/g;
# replace " with \"
s/"/\\"/g;
print "\"$_\\n\"\n";
}
}
}
close(FILE);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save