more tr strings

This commit is contained in:
Patrick von Reth 2015-03-26 17:14:53 +01:00
parent 8d71edb748
commit 160f51afbb
5 changed files with 76 additions and 14 deletions

View File

@ -64,7 +64,7 @@
<message>
<location filename="../src/libsnore/settingsdialog.ui" line="115"/>
<source>Display Test Notification</source>
<translation>Zeige test Mitteilung an</translation>
<translation>Zeige eine Testitteilung an</translation>
</message>
</context>
<context>
@ -88,6 +88,37 @@
<translation>Passwort:</translation>
</message>
</context>
<context>
<name>Snore::PluginSettingsWidget</name>
<message>
<location filename="../src/libsnore/plugins/pluginsettingswidget.cpp" line="36"/>
<source>Enabled:</source>
<translation>Aktiv:</translation>
</message>
</context>
<context>
<name>Snore::SettingsDialog</name>
<message>
<location filename="../src/libsnore/settingsdialog.cpp" line="79"/>
<source>Hello World</source>
<translation>Hallo Welt</translation>
</message>
<message>
<location filename="../src/libsnore/settingsdialog.cpp" line="81"/>
<source>This is Snore</source>
<translation>Dies ist Snore</translation>
</message>
<message>
<location filename="../src/libsnore/settingsdialog.cpp" line="81"/>
<source>Project Website</source>
<translation>Projekt Webseite</translation>
</message>
<message>
<location filename="../src/libsnore/settingsdialog.cpp" line="83"/>
<source>Test Action</source>
<translation>Test Aktion</translation>
</message>
</context>
<context>
<name>SnoreNotifierSettings</name>
<message>
@ -120,13 +151,13 @@
<name>SoundSettings</name>
<message>
<location filename="../src/plugins/secondary_backends/sound/soundsettings.cpp" line="31"/>
<source>Sound File:</source>
<translation type="unfinished"></translation>
<source>Audio file:</source>
<translation>Audio Datei:</translation>
</message>
<message>
<location filename="../src/plugins/secondary_backends/sound/soundsettings.cpp" line="32"/>
<source>Select a sound File</source>
<translation type="unfinished"></translation>
<source>Select a audio file</source>
<translation>Wähle eine Audio Datei</translation>
</message>
<message>
<location filename="../src/plugins/secondary_backends/sound/soundsettings.cpp" line="35"/>

View File

@ -88,6 +88,37 @@
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Snore::PluginSettingsWidget</name>
<message>
<location filename="../src/libsnore/plugins/pluginsettingswidget.cpp" line="36"/>
<source>Enabled:</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Snore::SettingsDialog</name>
<message>
<location filename="../src/libsnore/settingsdialog.cpp" line="79"/>
<source>Hello World</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/libsnore/settingsdialog.cpp" line="81"/>
<source>This is Snore</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/libsnore/settingsdialog.cpp" line="81"/>
<source>Project Website</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/libsnore/settingsdialog.cpp" line="83"/>
<source>Test Action</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SnoreNotifierSettings</name>
<message>
@ -120,12 +151,12 @@
<name>SoundSettings</name>
<message>
<location filename="../src/plugins/secondary_backends/sound/soundsettings.cpp" line="31"/>
<source>Sound File:</source>
<source>Audio file:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/plugins/secondary_backends/sound/soundsettings.cpp" line="32"/>
<source>Select a sound File</source>
<source>Select a audio file</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -33,7 +33,7 @@ PluginSettingsWidget::PluginSettingsWidget(SnorePlugin *snorePlugin, QWidget *pa
setLayout(m_layout);
if (m_snorePlugin->type() != SnorePlugin::BACKEND) {
// backends are handled through a combo box.
addRow("Enabled:", m_enabled);
addRow(tr("Enabled:"), m_enabled);
}
}

View File

@ -76,11 +76,11 @@ void SettingsDialog::initTabs()
void Snore::SettingsDialog::on_pushButton_clicked()
{
Application app = SnoreCorePrivate::instance()->defaultApplication();
Notification noti(app, app.defaultAlert(), "Hello World",
"<i>This is Snore</i><br>"
"<a href=\"https://github.com/Snorenotify/Snorenotify\">Project Website</a><br>",
Notification noti(app, app.defaultAlert(),tr("Hello World"),
QString("<i>%1</i><br>"
"<a href=\"https://github.com/Snorenotify/Snorenotify\">%2</a><br>").arg(tr("This is Snore"), tr("Project Website") ),
app.icon());
noti.addAction(Action(1, "Test Action"));
noti.addAction(Action(1, tr("Test Action")));
SnoreCore::instance().broadcastNotification(noti);
}

View File

@ -28,8 +28,8 @@ SoundSettings::SoundSettings(SnorePlugin *snorePlugin, QWidget *parent) :
PluginSettingsWidget(snorePlugin, parent),
m_lineEdit(new QLineEdit)
{
addRow(tr("Sound File:"), m_lineEdit);
QPushButton *button = new QPushButton(tr("Select a sound File"));
addRow(tr("Audio file:"), m_lineEdit);
QPushButton *button = new QPushButton(tr("Select a audio file"));
connect(button, &QPushButton::clicked, [this]() {
QFileDialog dialog;
dialog.setNameFilter(tr("All Audio files").append("(*.mp3 *.wav *.ogg)"));