implemented function to change language on the fly

This commit is contained in:
Herwig Birke
2018-06-26 10:44:56 +02:00
parent e45284783b
commit b205d8e8fb
8 changed files with 1785 additions and 195 deletions
+20 -7
View File
@@ -68,7 +68,8 @@ cMainWindow::cMainWindow(cSplashScreen *lpSplashScreen, QTranslator *lpTranslato
m_lpEditToolBar(0),
m_lpTextToolBar(0),
m_lpFormatToolBar(0),
m_lpOldTextEdit(0)
m_lpOldTextEdit(0),
m_lpOptionsDialog(0)
{
initUI();
createActions();
@@ -679,12 +680,16 @@ void cMainWindow::updateWindowTitle()
setWindowTitle(szWindowTitle);
}
void switchTranslator(QTranslator* lpTranslator, const QString& filename)
bool switchTranslator(QTranslator* lpTranslator, const QString& filename)
{
qApp->removeTranslator(lpTranslator);
if(lpTranslator->load(filename))
{
qApp->installTranslator(lpTranslator);
return(true);
}
return(false);
}
void cMainWindow::onLanguageChanged()
@@ -694,7 +699,8 @@ void cMainWindow::onLanguageChanged()
QLocale locale = QLocale(szLanguage);
QLocale::setDefault(locale);
switchTranslator(m_lpTranslator, QString(":/locale/storyWriter_%1.qm").arg(szLanguage));
if(!switchTranslator(m_lpTranslator, QString("%1%2storyWriter_%3.qm").arg(localePath()).arg(QDir::separator()).arg(szLanguage)))
switchTranslator(m_lpTranslator, QString(":/locale/storyWriter_%1.qm").arg(szLanguage));
// switchTranslator(m_translatorQt, QString("qt_%1.qm").arg(szLanguage));
}
@@ -847,6 +853,9 @@ void cMainWindow::retranslateWindows()
lpWidget->retranslateUI();
}
if(m_lpOptionsDialog)
m_lpOptionsDialog->retranslateUI();
}
void cMainWindow::onTextEditGotFocus(cTextEdit* lpTextEdit)
@@ -1555,12 +1564,16 @@ void cMainWindow::onFileProperties()
void cMainWindow::onToolsOptions()
{
cOptionsDialog* lpOptionsDialog = new cOptionsDialog(this);
if(m_lpOptionsDialog)
return;
connect(lpOptionsDialog, &cOptionsDialog::onLanguageChanged, this, &cMainWindow::onLanguageChanged);
lpOptionsDialog->exec();
m_lpOptionsDialog = new cOptionsDialog(this);
delete lpOptionsDialog;
connect(m_lpOptionsDialog, &cOptionsDialog::onLanguageChanged, this, &cMainWindow::onLanguageChanged);
m_lpOptionsDialog->exec();
delete m_lpOptionsDialog;
m_lpOptionsDialog = 0;
}
void cMainWindow::onHelpContents()
+2
View File
@@ -17,6 +17,7 @@
#include "cdoublespinbox.h"
#include "cdatetimeedit.h"
#include "ccombobox.h"
#include "coptionsdialog.h"
#include "csplashscreen.h"
@@ -755,6 +756,7 @@ private:
cTextEdit* m_lpOldTextEdit; /*!< TODO: describe */
QString m_szOldPath; /*!< TODO: describe */
cOptionsDialog* m_lpOptionsDialog; /*!< TODO: describe */
/*!
\brief
+30 -5
View File
@@ -12,7 +12,8 @@
cOptionsDialog::cOptionsDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::cOptionsDialog)
ui(new Ui::cOptionsDialog),
m_lpGeneralItem(0)
{
ui->setupUi(this);
@@ -23,8 +24,8 @@ cOptionsDialog::cOptionsDialog(QWidget *parent) :
ui->m_lpCategoryList->setModel(m_lpCategoryModel);
QIcon icon(":/category/category_core.png");
QStandardItem* lpItem = new QStandardItem(icon, tr("General"));
m_lpCategoryModel->appendRow(lpItem);
m_lpGeneralItem = new QStandardItem(icon, tr("General"));
m_lpCategoryModel->appendRow(m_lpGeneralItem);
ui->m_lpCategoryList->resizeColumnToContents(0);
@@ -51,12 +52,28 @@ cOptionsDialog::cOptionsDialog(QWidget *parent) :
szLanguage = QLocale::languageToString(QLocale(szLocale).language());
ui->m_lpLanguage->addItem(szLanguage, szLocale);
if(!szCur.compare(szLocale, Qt::CaseInsensitive))
ui->m_lpLanguage->setCurrentIndex(z+2);
}
localeList = QDir(szPath).entryList(QStringList() << "storyWriter*.qm");
for(int z = 0;z < localeList.count();z++)
{
QString szLocale = localeList[z];
szLocale.truncate(szLocale.lastIndexOf("."));
szLocale.remove(0, szLocale.indexOf('_') + 1);
szLanguage = QLocale::languageToString(QLocale(szLocale).language());
if(ui->m_lpLanguage->findText(szLanguage) == -1)
ui->m_lpLanguage->addItem(szLanguage, szLocale);
}
ui->m_lpLanguage->model()->sort(0);
ui->m_lpLanguage->setCurrentText(szCur);
connect(ui->m_lpLanguage, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &cOptionsDialog::onLanguageIndexChanged);
connect(ui->m_lpButtonBox, QDialogButtonBox::clicked, this, &cOptionsDialog::onButtonClicked);
retranslateUI();
}
cOptionsDialog::~cOptionsDialog()
@@ -64,6 +81,14 @@ cOptionsDialog::~cOptionsDialog()
delete ui;
}
void cOptionsDialog::retranslateUI()
{
ui->retranslateUi(this);
m_lpGeneralItem->setText(tr("General"));
// setWindowTitle(windowTitle() + m_lpPart->name());
}
void cOptionsDialog::onLanguageIndexChanged(int /*index*/)
{
QString szLanguage = ui->m_lpLanguage->currentData().toString();
+9
View File
@@ -36,6 +36,14 @@ public:
*/
~cOptionsDialog();
/*!
\brief
\fn retranslateUI
*/
void retranslateUI();
private slots:
/*!
\brief
@@ -52,6 +60,7 @@ signals:
private:
Ui::cOptionsDialog* ui; /*!< TODO: describe */
QStandardItemModel* m_lpCategoryModel; /*!< TODO: describe */
QStandardItem* m_lpGeneralItem; /*!< TODO: describe */
};
#endif // COPTIONSDIALOG_H
+34 -32
View File
@@ -83,52 +83,54 @@ void cWidget::retranslateUI()
switch(m_type)
{
case TYPE_part:
{
cPartWindow* lpWindow = (cPartWindow*)m_lpWidget;
lpWindow->retranslateUI();
}
{
cPartWindow* lpWindow = (cPartWindow*)m_lpWidget;
lpWindow->retranslateUI();
}
break;
case TYPE_chapter:
{
cChapterWindow* lpWindow = (cChapterWindow*)m_lpWidget;
lpWindow->retranslateUI();
}
{
cChapterWindow* lpWindow = (cChapterWindow*)m_lpWidget;
lpWindow->retranslateUI();
}
break;
case TYPE_scene:
{
cSceneWindow* lpWindow = (cSceneWindow*)m_lpWidget;
lpWindow->retranslateUI();
}
{
cSceneWindow* lpWindow = (cSceneWindow*)m_lpWidget;
lpWindow->retranslateUI();
}
break;
case TYPE_character:
{
cCharacterWindow* lpWindow = (cCharacterWindow*)m_lpWidget;
lpWindow->retranslateUI();
}
{
cCharacterWindow* lpWindow = (cCharacterWindow*)m_lpWidget;
lpWindow->retranslateUI();
}
break;
case TYPE_object:
{
cObjectWindow* lpWindow = (cObjectWindow*)m_lpWidget;
lpWindow->retranslateUI();
}
{
cObjectWindow* lpWindow = (cObjectWindow*)m_lpWidget;
lpWindow->retranslateUI();
}
break;
case TYPE_place:
{
cPlaceWindow* lpWindow = (cPlaceWindow*)m_lpWidget;
lpWindow->retranslateUI();
}
{
cPlaceWindow* lpWindow = (cPlaceWindow*)m_lpWidget;
lpWindow->retranslateUI();
}
break;
case TYPE_recherche:
{
cRechercheWindow* lpWindow = (cRechercheWindow*)m_lpWidget;
lpWindow->retranslateUI();
}
{
cRechercheWindow* lpWindow = (cRechercheWindow*)m_lpWidget;
lpWindow->retranslateUI();
}
break;
case TYPE_properties:
{
cPropertiesWindow* lpWindow = (cPropertiesWindow*)m_lpWidget;
lpWindow->retranslateUI();
}
{
cPropertiesWindow* lpWindow = (cPropertiesWindow*)m_lpWidget;
lpWindow->retranslateUI();
}
break;
default:
break;
}
}
+3 -2
View File
@@ -12,7 +12,7 @@ QMAKE_TARGET_COPYRIGHT = (c) 2018 WIN-DESIGN
QT += core gui xml sql
TRANSLATIONS = storyWriter_de.ts
TRANSLATIONS = storyWriter_de.ts storyWriter_fr.ts
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
@@ -155,7 +155,8 @@ DISTFILES += \
images/icon.ico \
resources/icon.png \
images/tango/32x32/actions/document-pdf.png \
storyWriter_de.ts
storyWriter_de.ts \
storyWriter_fr.ts
RESOURCES += \
storywriter.qrc
+224 -149
View File
@@ -302,10 +302,10 @@
</message>
<message>
<location filename="cmainwindow.ui" line="304"/>
<location filename="cmainwindow.cpp" line="126"/>
<location filename="cmainwindow.cpp" line="1341"/>
<location filename="cmainwindow.cpp" line="1378"/>
<location filename="cmainwindow.cpp" line="2277"/>
<location filename="cmainwindow.cpp" line="129"/>
<location filename="cmainwindow.cpp" line="1422"/>
<location filename="cmainwindow.cpp" line="1459"/>
<location filename="cmainwindow.cpp" line="2358"/>
<source>Save</source>
<translation>Speichern</translation>
</message>
@@ -315,630 +315,705 @@
<translation>&amp;Beenden</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="126"/>
<location filename="cmainwindow.cpp" line="1341"/>
<location filename="cmainwindow.cpp" line="1378"/>
<location filename="cmainwindow.cpp" line="2277"/>
<location filename="cmainwindow.cpp" line="129"/>
<location filename="cmainwindow.cpp" line="1422"/>
<location filename="cmainwindow.cpp" line="1459"/>
<location filename="cmainwindow.cpp" line="2358"/>
<source> has been changed.
Do you want to save?</source>
<translation> wurde geändert.\nMöchtest du speichern?</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="233"/>
<location filename="cmainwindow.cpp" line="234"/>
<location filename="cmainwindow.cpp" line="731"/>
<source>&amp;File</source>
<translation>&amp;Datei</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="234"/>
<location filename="cmainwindow.cpp" line="235"/>
<source>File Actions</source>
<translation>Datei</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="237"/>
<location filename="cmainwindow.cpp" line="238"/>
<location filename="cmainwindow.cpp" line="732"/>
<source>&amp;New</source>
<translation>&amp;Neu</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="243"/>
<location filename="cmainwindow.cpp" line="244"/>
<location filename="cmainwindow.cpp" line="733"/>
<source>&amp;Open...</source>
<translation>&amp;Öffnen...</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="250"/>
<location filename="cmainwindow.cpp" line="251"/>
<location filename="cmainwindow.cpp" line="734"/>
<source>&amp;Save</source>
<translation>&amp;Speichern</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="255"/>
<location filename="cmainwindow.cpp" line="256"/>
<location filename="cmainwindow.cpp" line="735"/>
<source>Save &amp;As...</source>
<translation>Speichern &amp;als...</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="261"/>
<location filename="cmainwindow.cpp" line="262"/>
<location filename="cmainwindow.cpp" line="738"/>
<source>&amp;Print...</source>
<translation>&amp;Drucken...</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="267"/>
<location filename="cmainwindow.cpp" line="268"/>
<location filename="cmainwindow.cpp" line="739"/>
<source>Print Preview...</source>
<translation>Druckvorschau...</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="270"/>
<location filename="cmainwindow.cpp" line="271"/>
<location filename="cmainwindow.cpp" line="740"/>
<source>&amp;Export PDF...</source>
<translation>&amp;Export PDF...</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="278"/>
<location filename="cmainwindow.cpp" line="279"/>
<location filename="cmainwindow.cpp" line="743"/>
<source>P&amp;roperties...</source>
<translation>&amp;Einstellungen...</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="292"/>
<location filename="cmainwindow.cpp" line="293"/>
<location filename="cmainwindow.cpp" line="744"/>
<source>&amp;Quit</source>
<translation>&amp;Beenden</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="298"/>
<location filename="cmainwindow.cpp" line="299"/>
<location filename="cmainwindow.cpp" line="747"/>
<source>&amp;Edit</source>
<translation>&amp;Bearbeiten</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="299"/>
<location filename="cmainwindow.cpp" line="300"/>
<source>Edit Actions</source>
<translation>Bearbeiten</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="302"/>
<location filename="cmainwindow.cpp" line="303"/>
<location filename="cmainwindow.cpp" line="748"/>
<source>&amp;Undo</source>
<translation>&amp;Rückgängig</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="307"/>
<location filename="cmainwindow.cpp" line="308"/>
<location filename="cmainwindow.cpp" line="749"/>
<source>&amp;Redo</source>
<translation>&amp;Wiederholen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="315"/>
<location filename="cmainwindow.cpp" line="316"/>
<location filename="cmainwindow.cpp" line="752"/>
<source>Cu&amp;t</source>
<translation>&amp;Ausschneiden</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="321"/>
<location filename="cmainwindow.cpp" line="322"/>
<location filename="cmainwindow.cpp" line="753"/>
<source>&amp;Copy</source>
<translation>&amp;Kopieren</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="327"/>
<location filename="cmainwindow.cpp" line="328"/>
<location filename="cmainwindow.cpp" line="754"/>
<source>&amp;Paste</source>
<translation>&amp;Einfügen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="338"/>
<location filename="cmainwindow.cpp" line="339"/>
<location filename="cmainwindow.cpp" line="758"/>
<source>F&amp;ormat</source>
<translation>F&amp;ormat</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="339"/>
<location filename="cmainwindow.cpp" line="421"/>
<location filename="cmainwindow.cpp" line="340"/>
<location filename="cmainwindow.cpp" line="422"/>
<source>Format Actions</source>
<translation>Format</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="342"/>
<location filename="cmainwindow.cpp" line="343"/>
<location filename="cmainwindow.cpp" line="759"/>
<source>&amp;Bold</source>
<translation>&amp;Fett</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="352"/>
<location filename="cmainwindow.cpp" line="353"/>
<location filename="cmainwindow.cpp" line="760"/>
<source>&amp;Italic</source>
<translation>&amp;Kursiv</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="362"/>
<location filename="cmainwindow.cpp" line="363"/>
<location filename="cmainwindow.cpp" line="761"/>
<source>&amp;Underline</source>
<translation>&amp;Unterstrichen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="374"/>
<location filename="cmainwindow.cpp" line="375"/>
<location filename="cmainwindow.cpp" line="762"/>
<source>&amp;Left</source>
<translation>&amp;Links</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="379"/>
<location filename="cmainwindow.cpp" line="380"/>
<location filename="cmainwindow.cpp" line="763"/>
<source>C&amp;enter</source>
<translation>&amp;Zentriert</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="384"/>
<location filename="cmainwindow.cpp" line="385"/>
<location filename="cmainwindow.cpp" line="764"/>
<source>&amp;Right</source>
<translation>&amp;Links</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="389"/>
<location filename="cmainwindow.cpp" line="390"/>
<location filename="cmainwindow.cpp" line="765"/>
<source>&amp;Justify</source>
<translation>&amp;Blocksatz</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="418"/>
<location filename="cmainwindow.cpp" line="419"/>
<location filename="cmainwindow.cpp" line="766"/>
<source>&amp;Color...</source>
<translation>&amp;Farbe...</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="445"/>
<location filename="cmainwindow.cpp" line="444"/>
<location filename="cmainwindow.cpp" line="769"/>
<source>&amp;Tools</source>
<translation>&amp;Tools</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="447"/>
<location filename="cmainwindow.cpp" line="445"/>
<location filename="cmainwindow.cpp" line="770"/>
<source>&amp;Options...</source>
<translation>&amp;Optionen...</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="458"/>
<location filename="cmainwindow.cpp" line="454"/>
<location filename="cmainwindow.cpp" line="774"/>
<source>&amp;Help</source>
<translation>&amp;Hilfe</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="460"/>
<location filename="cmainwindow.cpp" line="456"/>
<location filename="cmainwindow.cpp" line="775"/>
<source>&amp;Contents</source>
<translation>&amp;Inhalt</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="464"/>
<location filename="cmainwindow.cpp" line="460"/>
<location filename="cmainwindow.cpp" line="776"/>
<source>&amp;Index</source>
<translation>&amp;Index</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="466"/>
<location filename="cmainwindow.cpp" line="462"/>
<location filename="cmainwindow.cpp" line="777"/>
<source>&amp;About</source>
<translation>&amp;Über</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="473"/>
<location filename="cmainwindow.cpp" line="469"/>
<location filename="cmainwindow.cpp" line="780"/>
<source>add part</source>
<translation>Teil hinzufügen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="474"/>
<location filename="cmainwindow.cpp" line="470"/>
<location filename="cmainwindow.cpp" line="781"/>
<source>add a new part</source>
<translation>neuen Teil hinzufügen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="477"/>
<location filename="cmainwindow.cpp" line="473"/>
<location filename="cmainwindow.cpp" line="783"/>
<source>edit part</source>
<translation>Teil bearbeiten</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="478"/>
<location filename="cmainwindow.cpp" line="474"/>
<location filename="cmainwindow.cpp" line="784"/>
<source>edit the part</source>
<translation>Teil bearbeiten</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="481"/>
<location filename="cmainwindow.cpp" line="477"/>
<location filename="cmainwindow.cpp" line="786"/>
<source>delete part</source>
<translation>Teil löschen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="482"/>
<location filename="cmainwindow.cpp" line="478"/>
<location filename="cmainwindow.cpp" line="787"/>
<source>delete the part</source>
<translation>Teil löschen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="485"/>
<location filename="cmainwindow.cpp" line="481"/>
<location filename="cmainwindow.cpp" line="789"/>
<source>add chapter</source>
<translation>Kapitel hinzufügen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="486"/>
<location filename="cmainwindow.cpp" line="482"/>
<location filename="cmainwindow.cpp" line="790"/>
<source>add a new chapter</source>
<translation>neues Kapitel hinzufügen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="489"/>
<location filename="cmainwindow.cpp" line="485"/>
<location filename="cmainwindow.cpp" line="792"/>
<source>edit chapter</source>
<translation>Kapitel bearbeiten</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="490"/>
<location filename="cmainwindow.cpp" line="486"/>
<location filename="cmainwindow.cpp" line="793"/>
<source>edit the chapter</source>
<translation>Kapitel bearbeiten</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="493"/>
<location filename="cmainwindow.cpp" line="489"/>
<location filename="cmainwindow.cpp" line="795"/>
<source>delete chapter</source>
<translation>Kapitel löschen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="494"/>
<location filename="cmainwindow.cpp" line="490"/>
<location filename="cmainwindow.cpp" line="796"/>
<source>delete the chapter</source>
<translation>Kapitel löschen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="497"/>
<location filename="cmainwindow.cpp" line="493"/>
<location filename="cmainwindow.cpp" line="798"/>
<source>add scene</source>
<translation>Szene hinzufügen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="498"/>
<location filename="cmainwindow.cpp" line="494"/>
<location filename="cmainwindow.cpp" line="799"/>
<source>add a new scene</source>
<translation>neue Szene hinzufügen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="501"/>
<location filename="cmainwindow.cpp" line="497"/>
<location filename="cmainwindow.cpp" line="801"/>
<source>edit scene</source>
<translation>Szene bearbeiten</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="502"/>
<location filename="cmainwindow.cpp" line="498"/>
<location filename="cmainwindow.cpp" line="802"/>
<source>edit the scene</source>
<translation>Szene bearbeiten</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="505"/>
<location filename="cmainwindow.cpp" line="501"/>
<location filename="cmainwindow.cpp" line="804"/>
<source>delete scene</source>
<translation>Szene löschen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="506"/>
<location filename="cmainwindow.cpp" line="502"/>
<location filename="cmainwindow.cpp" line="805"/>
<source>delete the scene</source>
<translation>Szene löschen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="509"/>
<location filename="cmainwindow.cpp" line="505"/>
<location filename="cmainwindow.cpp" line="807"/>
<source>add character</source>
<translation>Figur hinzufügen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="510"/>
<location filename="cmainwindow.cpp" line="506"/>
<location filename="cmainwindow.cpp" line="808"/>
<source>add a new character</source>
<translation>neue Figur hinzufügen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="513"/>
<location filename="cmainwindow.cpp" line="509"/>
<location filename="cmainwindow.cpp" line="810"/>
<source>edit character</source>
<translation>Figur bearbeiten</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="514"/>
<location filename="cmainwindow.cpp" line="510"/>
<location filename="cmainwindow.cpp" line="811"/>
<source>edit the character</source>
<translation>Figur bearbeiten</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="517"/>
<location filename="cmainwindow.cpp" line="513"/>
<location filename="cmainwindow.cpp" line="813"/>
<source>delete character</source>
<translation>Figur löschen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="518"/>
<location filename="cmainwindow.cpp" line="514"/>
<location filename="cmainwindow.cpp" line="814"/>
<source>delete the character</source>
<translation>Figur löschen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="521"/>
<location filename="cmainwindow.cpp" line="517"/>
<location filename="cmainwindow.cpp" line="816"/>
<source>add place</source>
<translation>Ort hinzufügen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="522"/>
<location filename="cmainwindow.cpp" line="518"/>
<location filename="cmainwindow.cpp" line="817"/>
<source>add a new place</source>
<translation>neuen Ort hinzufügen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="525"/>
<location filename="cmainwindow.cpp" line="521"/>
<location filename="cmainwindow.cpp" line="819"/>
<source>edit place</source>
<translation>Ort bearbeiten</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="526"/>
<location filename="cmainwindow.cpp" line="522"/>
<location filename="cmainwindow.cpp" line="820"/>
<source>edit the place</source>
<translation>Ort bearbeiten</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="529"/>
<location filename="cmainwindow.cpp" line="525"/>
<location filename="cmainwindow.cpp" line="822"/>
<source>delete place</source>
<translation>Ort löschen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="530"/>
<location filename="cmainwindow.cpp" line="526"/>
<location filename="cmainwindow.cpp" line="823"/>
<source>delete the place</source>
<translation>Ort löschen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="533"/>
<location filename="cmainwindow.cpp" line="529"/>
<location filename="cmainwindow.cpp" line="825"/>
<source>add object</source>
<translation>Objekt hinzufügen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="534"/>
<location filename="cmainwindow.cpp" line="530"/>
<location filename="cmainwindow.cpp" line="826"/>
<source>add a new object</source>
<translation>neues Objekt hinzufügen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="537"/>
<location filename="cmainwindow.cpp" line="533"/>
<location filename="cmainwindow.cpp" line="828"/>
<source>edit object</source>
<translation>Objekt bearbeiten</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="538"/>
<location filename="cmainwindow.cpp" line="534"/>
<location filename="cmainwindow.cpp" line="829"/>
<source>edit the object</source>
<translation>Objekt bearbeiten</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="541"/>
<location filename="cmainwindow.cpp" line="537"/>
<location filename="cmainwindow.cpp" line="831"/>
<source>delete object</source>
<translation>Objekt löschen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="542"/>
<location filename="cmainwindow.cpp" line="538"/>
<location filename="cmainwindow.cpp" line="832"/>
<source>delete the object</source>
<translation>Objekt löschen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="545"/>
<location filename="cmainwindow.cpp" line="541"/>
<location filename="cmainwindow.cpp" line="834"/>
<source>add recherche</source>
<translation>Recherche hinzufügen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="546"/>
<location filename="cmainwindow.cpp" line="542"/>
<location filename="cmainwindow.cpp" line="835"/>
<source>add a new recherche</source>
<translation>neue Recherche hinzufügen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="549"/>
<location filename="cmainwindow.cpp" line="545"/>
<location filename="cmainwindow.cpp" line="837"/>
<source>edit recherche</source>
<translation>Recherche bearbeiten</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="550"/>
<location filename="cmainwindow.cpp" line="546"/>
<location filename="cmainwindow.cpp" line="838"/>
<source>edit the recherche</source>
<translation>Recherche bearbeiten</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="553"/>
<location filename="cmainwindow.cpp" line="549"/>
<location filename="cmainwindow.cpp" line="840"/>
<source>delete recherche</source>
<translation>Recherche löschen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="554"/>
<location filename="cmainwindow.cpp" line="550"/>
<location filename="cmainwindow.cpp" line="841"/>
<source>delete the recherche</source>
<translation>Recherche löschen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="557"/>
<location filename="cmainwindow.cpp" line="553"/>
<location filename="cmainwindow.cpp" line="843"/>
<source>open link</source>
<translation>Link öffnen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="558"/>
<location filename="cmainwindow.cpp" line="554"/>
<location filename="cmainwindow.cpp" line="844"/>
<source>open the link</source>
<translation>Link öffnen</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1548"/>
<location filename="cmainwindow.cpp" line="1554"/>
<location filename="cmainwindow.cpp" line="1565"/>
<location filename="cmainwindow.cpp" line="1629"/>
<location filename="cmainwindow.cpp" line="1635"/>
<location filename="cmainwindow.cpp" line="1646"/>
<source>New Part</source>
<translation>Neuer Teil</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1548"/>
<location filename="cmainwindow.cpp" line="1650"/>
<location filename="cmainwindow.cpp" line="1758"/>
<location filename="cmainwindow.cpp" line="1840"/>
<location filename="cmainwindow.cpp" line="1929"/>
<location filename="cmainwindow.cpp" line="2018"/>
<location filename="cmainwindow.cpp" line="2107"/>
<location filename="cmainwindow.cpp" line="1629"/>
<location filename="cmainwindow.cpp" line="1731"/>
<location filename="cmainwindow.cpp" line="1839"/>
<location filename="cmainwindow.cpp" line="1921"/>
<location filename="cmainwindow.cpp" line="2010"/>
<location filename="cmainwindow.cpp" line="2099"/>
<location filename="cmainwindow.cpp" line="2188"/>
<source>Name:</source>
<translation>Name:</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1554"/>
<location filename="cmainwindow.cpp" line="1635"/>
<source>Part Name is empty.</source>
<translation>Name des Teils ist leer.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1565"/>
<location filename="cmainwindow.cpp" line="1646"/>
<source>Part could not be created.</source>
<translation>Teil konnte nicht erzeugt werden.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1602"/>
<location filename="cmainwindow.cpp" line="1683"/>
<source>There are still some chapter in this part.
Please delete them before deleting the part.</source>
<translation>Es befinden sich noch Kapitel in diesem Teil.\nBitte lösche diese zuerst und dann den Teil.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1607"/>
<location filename="cmainwindow.cpp" line="1688"/>
<source>Are you sure you want to delete this part:&lt;br&gt;</source>
<translation>Bist du sicher, dass du den Teil löschen möchtest:&lt;br&gt;</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1650"/>
<location filename="cmainwindow.cpp" line="1656"/>
<location filename="cmainwindow.cpp" line="1667"/>
<location filename="cmainwindow.cpp" line="1731"/>
<location filename="cmainwindow.cpp" line="1737"/>
<location filename="cmainwindow.cpp" line="1748"/>
<source>New Chapter</source>
<translation>Neues Kapitel</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1656"/>
<location filename="cmainwindow.cpp" line="1737"/>
<source>Chapter Name is empty.</source>
<translation>Name des Kapitel ist leer.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1667"/>
<location filename="cmainwindow.cpp" line="1748"/>
<source>Chapter could not be created.</source>
<translation>Kapitel konnte nicht erstellt werden.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1704"/>
<location filename="cmainwindow.cpp" line="1785"/>
<source>There are still some scenes in this chapter.
Please delete them before deleting the chapter.</source>
<translation>Es befinden sich noch Scenen in diesem Kapitel.\nBitte lösche diese zuerst und dann das Kapitel.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1709"/>
<location filename="cmainwindow.cpp" line="1790"/>
<source>Are you sure you want to delete this chapter:&lt;br&gt;</source>
<translation>Bist du sicher, dass du das Kapitel löschen möchtest:&lt;br&gt;</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1709"/>
<location filename="cmainwindow.cpp" line="1790"/>
<source>&lt;br&gt;from part &lt;br&gt;</source>
<translation>&lt;br&gt;von Teil&lt;br&gt;</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1758"/>
<location filename="cmainwindow.cpp" line="1764"/>
<location filename="cmainwindow.cpp" line="1775"/>
<location filename="cmainwindow.cpp" line="1839"/>
<location filename="cmainwindow.cpp" line="1845"/>
<location filename="cmainwindow.cpp" line="1856"/>
<source>New Scene</source>
<translation>Neue Szene</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1764"/>
<location filename="cmainwindow.cpp" line="1845"/>
<source>Scene Name is empty.</source>
<translation>Der Name der Szene ist leer.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1775"/>
<location filename="cmainwindow.cpp" line="1856"/>
<source>Scene could not be created.</source>
<translation>Die Szene konnte nicht erstellt werden.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1810"/>
<location filename="cmainwindow.cpp" line="1891"/>
<source>Are you sure you want to delete this scene:&lt;br&gt;</source>
<translation>Bist du sicher, dass du die Szene löschen möchtest:&lt;br&gt;</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1810"/>
<location filename="cmainwindow.cpp" line="1891"/>
<source>&lt;br&gt;from chapter &lt;br&gt;</source>
<translation>&lt;br&gt;von Kapitel&lt;br&gt;</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1840"/>
<location filename="cmainwindow.cpp" line="1846"/>
<location filename="cmainwindow.cpp" line="1857"/>
<location filename="cmainwindow.cpp" line="1921"/>
<location filename="cmainwindow.cpp" line="1927"/>
<location filename="cmainwindow.cpp" line="1938"/>
<source>New Character</source>
<translation>Neue Figur</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1846"/>
<location filename="cmainwindow.cpp" line="1927"/>
<source>Character Name is empty.</source>
<translation>Name der Figur ist leer.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1857"/>
<location filename="cmainwindow.cpp" line="1938"/>
<source>Character could not be created.</source>
<translation>Figur konnte nicht erstellt werden.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1894"/>
<location filename="cmainwindow.cpp" line="1975"/>
<source>This character is still in use.
Please delete the usage before deleting the character.</source>
<translation>Diese Figur ist in Verwendung.\nBitte lösche zuerst die Verwendung und danach die Figur.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1899"/>
<location filename="cmainwindow.cpp" line="1980"/>
<source>Are you sure you want to delete this character:&lt;br&gt;</source>
<translation>Bist du sicher, dass du die Figur löschen möchtest:&lt;br&gt;</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1929"/>
<location filename="cmainwindow.cpp" line="1935"/>
<location filename="cmainwindow.cpp" line="1946"/>
<location filename="cmainwindow.cpp" line="2010"/>
<location filename="cmainwindow.cpp" line="2016"/>
<location filename="cmainwindow.cpp" line="2027"/>
<source>New Place</source>
<translation>Neuer Ort</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1935"/>
<location filename="cmainwindow.cpp" line="2016"/>
<source>Place Name is empty.</source>
<translation>Name des Ortes ist leer.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1946"/>
<location filename="cmainwindow.cpp" line="2027"/>
<source>Place could not be created.</source>
<translation>Ort konnte nicht erzeugt werden.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1983"/>
<location filename="cmainwindow.cpp" line="2064"/>
<source>This place is still in use.
Please delete the usage before deleting the place.</source>
<translation>Dieser Ort ist in Verwendung.\nBitte lösche zuerst die Verwendung und danach den Ort.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="1988"/>
<location filename="cmainwindow.cpp" line="2069"/>
<source>Are you sure you want to delete this place:&lt;br&gt;</source>
<translation>Bist du sicher, dass du den Ort löschen möchtest:&lt;br&gt;</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="2018"/>
<location filename="cmainwindow.cpp" line="2024"/>
<location filename="cmainwindow.cpp" line="2035"/>
<location filename="cmainwindow.cpp" line="2099"/>
<location filename="cmainwindow.cpp" line="2105"/>
<location filename="cmainwindow.cpp" line="2116"/>
<source>New Object</source>
<translation>Neues Objekt</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="2024"/>
<location filename="cmainwindow.cpp" line="2105"/>
<source>Object Name is empty.</source>
<translation>Name des Objekts ist leer.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="2035"/>
<location filename="cmainwindow.cpp" line="2116"/>
<source>Object could not be created.</source>
<translation>Objekt konnte nicht erzeugt werden.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="2072"/>
<location filename="cmainwindow.cpp" line="2153"/>
<source>This object is still in use.
Please delete the usage before deleting the object.</source>
<translation>Dieses Objekt ist in Verwendung.\nBitte lösche zuerst die Verwendung und danach das Objekt.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="2077"/>
<location filename="cmainwindow.cpp" line="2158"/>
<source>Are you sure you want to delete this object:&lt;br&gt;</source>
<translation>Bist du sicher, dass du das Objekt löschen möchtest:&lt;br&gt;</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="2107"/>
<location filename="cmainwindow.cpp" line="2113"/>
<location filename="cmainwindow.cpp" line="2124"/>
<location filename="cmainwindow.cpp" line="2188"/>
<location filename="cmainwindow.cpp" line="2194"/>
<location filename="cmainwindow.cpp" line="2205"/>
<source>New Recherche</source>
<translation>Neue Recherche</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="2113"/>
<location filename="cmainwindow.cpp" line="2194"/>
<source>Recherche Name is empty.</source>
<translation>Name der Recherche ist leer.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="2124"/>
<location filename="cmainwindow.cpp" line="2205"/>
<source>Recherche could not be created.</source>
<translation>Recherche konnte nicht angelegt werden.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="2161"/>
<location filename="cmainwindow.cpp" line="2242"/>
<source>This recherche is still in use.
Please delete the usage before deleting the recherche.</source>
<translation>Diese Recherche ist in Verwendung.\nBitte lösche zuerst die Verwendung und danach die Recherche.</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="2166"/>
<location filename="cmainwindow.cpp" line="2247"/>
<source>Are you sure you want to delete this recherche:&lt;br&gt;</source>
<translation>Bist du sicher, dass du die Recherche löschen möchtest:&lt;br&gt;</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="2212"/>
<location filename="cmainwindow.cpp" line="2226"/>
<location filename="cmainwindow.cpp" line="2293"/>
<location filename="cmainwindow.cpp" line="2307"/>
<source>Save Project</source>
<translation>Sichere Projekt</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="2212"/>
<location filename="cmainwindow.cpp" line="2226"/>
<location filename="cmainwindow.cpp" line="2293"/>
<location filename="cmainwindow.cpp" line="2307"/>
<source>StoryWriter Files (*.storyWriter)</source>
<translation>storyWriter Dateien (*.storyWriter)</translation>
</message>
<message>
<location filename="cmainwindow.cpp" line="2256"/>
<location filename="cmainwindow.cpp" line="2337"/>
<source>&amp;%1 %2</source>
<translation>&amp;%1 %2</translation>
</message>
+1463
View File
File diff suppressed because it is too large Load Diff