Commit a702623f authored by Urs Fleisch's avatar Urs Fleisch
Browse files

update translations

parent 2992af1d
......@@ -23,8 +23,10 @@ sub createTranslateSources(@)
my $outfn = basename($file);
open OF, ">$outfn" or die "Could not create $outfn: $!\n";
while (<IF>) {
s/i18n\(/tr(/;
s/I18N_NOOP\(/QT_TRANSLATE_NOOP("\@default", /;
s/i18n\(/tr(/g;
s/KCM_i18n1\(([^,]+), ([^)]+)\)/tr($1).arg($2)/g;
s/KCM_i18n2\(([^,]+), ([^,]+), ([^)]+)\)/tr($1).arg($2).arg($3)/g;
s/I18N_NOOP\(/QT_TRANSLATE_NOOP("\@default", /g;
print OF $_;
}
close OF;
......@@ -98,19 +100,21 @@ sub setTsTranslations($$%)
$source .= "\n$1";
$in_source = 0;
} else {
$source .= "\n$_";
my $line = $_;
chomp $line;
$source .= "\n$line";
}
} elsif (/<translation/) {
$source =~ s/&amp;/&/;
$source =~ s/&lt;/</;
$source =~ s/&gt;/>/;
$source =~ s/\n/\\n/;
$source =~ s/&amp;/&/g;
$source =~ s/&lt;/</g;
$source =~ s/&gt;/>/g;
$source =~ s/\n/\\n/g;
if (exists $trans{$source}) {
$translation = $trans{$source};
$translation =~ s/&/&amp;/;
$translation =~ s/</&lt;/;
$translation =~ s/>/&gt;/;
$translation =~ s/\\n/\n/;
$translation =~ s/&/&amp;/g;
$translation =~ s/</&lt;/g;
$translation =~ s/>/&gt;/g;
$translation =~ s/\\n/\n/g;
s/ type="unfinished"//;
s/<\/translation>/$translation<\/translation>/;
} else {
......
......@@ -142,7 +142,9 @@ BrowseCoverArtDialog::BrowseCoverArtDialog(QWidget* parent) :
#endif
if (tabbox) {
m_matchUrlTable = new ConfigTable(
QStringList() << i18n("Match") << i18n("Picture URL"),
QStringList()
<< i18n("Match")
<< i18n("Picture URL"),
tabbox);
#if QT_VERSION >= 0x040000
QVBoxLayout* tablayout = new QVBoxLayout;
......
......@@ -63,6 +63,10 @@
#include "taglibfile.h"
#endif
/* Only defined for generation of KDE3 translation files */
#define FOR_KDE3_PO_1 I18N_NOOP("Do you really want to delete these %1 items?")
#define FOR_KDE3_PO_2 I18N_NOOP("Error while deleting these %1 items:")
/**
* Replaces context command format codes in a string.
*/
......
......@@ -27,6 +27,9 @@
#include "httpclient.h"
#include "kid3.h"
/* Only defined for generation of KDE3 translation files */
#define FOR_KDE3_PO_1 I18N_NOOP("Data received: %1")
/**
* Constructor.
*/
......
......@@ -82,8 +82,9 @@ void PictureLabel::setPicture()
*/
void PictureLabel::clearPicture()
{
const char* const msg = I18N_NOOP("Drag album\nartwork\nhere");
setMargin(6);
setText(i18n("Drag album\nartwork\nhere"));
setText(QCM_translate(msg));
}
/**
......
......@@ -45,6 +45,14 @@
#include "miscconfig.h"
#include "rendirdialog.h"
/* Only defined for generation of KDE3 translation files */
#define FOR_KDE3_PO_1 I18N_NOOP("Create directory %1 failed\n")
#define FOR_KDE3_PO_2 I18N_NOOP("File %1 already exists\n")
#define FOR_KDE3_PO_3 I18N_NOOP("%1 is not a directory\n")
#define FOR_KDE3_PO_4 I18N_NOOP("Rename %1 to %2 failed\n")
#define FOR_KDE3_PO_5 I18N_NOOP("%1 already exists\n")
#define FOR_KDE3_PO_6 I18N_NOOP("%1 is not a file\n")
/**
* Constructor.
*
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment