Translation support working

This commit is contained in:
Olivier Keshavjee 2015-06-08 12:01:45 +02:00
parent 1048a7e34a
commit 0758b88910
16 changed files with 865 additions and 724 deletions

16
i18n/snowflaQe.pro Normal file
View file

@ -0,0 +1,16 @@
FORMS += ../src/ui/mainWindow.ui
FORMS += ../src/ui/sldImportance_ui.ui
FORMS += ../src/ui/editors/editorWidget_ui.ui
SOURCES += ../src/main.py
SOURCES += ../src/loadSave.py
SOURCES += ../src/mainWindow.py
SOURCES += ../src/ui/helpLabel.py
SOURCES += ../src/ui/sldImportance.py
SOURCES += ../src/ui/editors/customTextEdit.py
SOURCES += ../src/ui/editors/editorWidget.py
TRANSLATIONS += snowflaQe_fr.ts

BIN
i18n/snowflaQe_fr.qm Normal file

Binary file not shown.

657
i18n/snowflaQe_fr.ts Normal file
View file

@ -0,0 +1,657 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS><TS version="2.0" language="fr" sourcelanguage="en">
<context>
<name>MainWindow</name>
<message>
<location filename="../src/ui/mainWindow.ui" line="14"/>
<source>MainWindow</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="28"/>
<source>Overview</source>
<translation>Aperçu</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="36"/>
<source>Book infos</source>
<translation>Informations sur le livre</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="51"/>
<source>Title</source>
<translation>Titre</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="61"/>
<source>Subtitle</source>
<translation>Sous-titre</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="71"/>
<source>Serie</source>
<translation>Série</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="81"/>
<source>Volume</source>
<translation>Volume</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="108"/>
<source>Genre</source>
<translation>Genre</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="118"/>
<source>License</source>
<translation>License</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="131"/>
<source>Author</source>
<translation>Informations sur l&apos;auteur</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="572"/>
<source>Name</source>
<translation>Nom</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="156"/>
<source>Email</source>
<translation>Email</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1205"/>
<source>Summary</source>
<translation>Résumé</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="188"/>
<source>One sentance</source>
<translation>Une phrase</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="252"/>
<source>One sentance summary</source>
<translation>Résumé en une phrase</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="815"/>
<source>Next</source>
<translation>Suivant</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1218"/>
<source>One paragraph</source>
<translation>Un paragraphe</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="349"/>
<source>One paragraph summary</source>
<translation>Résumé en un paragraphe</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1223"/>
<source>One page</source>
<translation>Une page</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="399"/>
<source>Expand each sentence of your one paragraph summary to a paragraph</source>
<translation>Développez chaque phrase du paragraphe précédent en un paragraphe complet</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1228"/>
<source>Full</source>
<translation>Complet</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="427"/>
<source>One page summary</source>
<translation>Résumé en une page</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="467"/>
<source>Full summary</source>
<translation>Résumé complet</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="491"/>
<source>Characters</source>
<translation>Personnages</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="504"/>
<source>Names</source>
<translation>Noms</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1953"/>
<source>Filter</source>
<translation>Filtre</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="946"/>
<source>Basic infos</source>
<translation>Informations générales</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="965"/>
<source>Importance</source>
<translation>Importance</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="589"/>
<source>Motivation</source>
<translation>Motivation</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1847"/>
<source>Goal</source>
<translation>Goal</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="609"/>
<source>Conflict</source>
<translation>Conflit</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="619"/>
<source>Epiphany</source>
<translation>Épiphanie</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="629"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;right&quot;&gt;One sentance&lt;br/&gt;summary&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;right&quot;&gt;Résumé&lt;br/&gt;en une phrase&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="639"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;right&quot;&gt;One paragraph&lt;br/&gt;summary&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;right&quot;&gt;Résumé&lt;br/&gt;en un paragraphe&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1910"/>
<source>Notes</source>
<translation>Notes</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="738"/>
<source>Detailed infos</source>
<translation>Informations détaillées</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="845"/>
<source>Plots</source>
<translation>Intrigues</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="864"/>
<source>Principale</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="874"/>
<source>Autre intrigue</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="955"/>
<source>Plot</source>
<translation>Intrigue</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="972"/>
<source>Character(s)</source>
<translation>Personnage(s)</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="979"/>
<source>Description</source>
<translation>Description</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="989"/>
<source>Result</source>
<translation>Résultat</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1008"/>
<source>Albert</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1013"/>
<source>Sylvestre</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1018"/>
<source>Gentiana</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1067"/>
<source>Resolution steps</source>
<translation>Étapes de résolution</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1281"/>
<source>Context</source>
<translation>Contexte</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2043"/>
<source>Outline</source>
<translation>Plan</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1303"/>
<source>Scenes list</source>
<translation>Liste des scènes</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1323"/>
<source>Intrigue secondaire</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1387"/>
<source>POV:</source>
<translation>POV:</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1404"/>
<source>Goal:</source>
<translation>Goal:</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1897"/>
<source>One line scene summary</source>
<translation>Résumé en une ligne</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1448"/>
<source>Few sentences summary:</source>
<translation>Résumé en quelques phrases:</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1538"/>
<source>Redaction</source>
<translation>Rédaction</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1719"/>
<source>F11</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1757"/>
<source>Scene</source>
<translation>Scène</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1775"/>
<source>Properties</source>
<translation>Propriétés</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1790"/>
<source>POV</source>
<translation>POV</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1810"/>
<source>Status</source>
<translation></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1833"/>
<source>Compile</source>
<translation>Compile</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1879"/>
<source>Scene summary</source>
<translation>Résumé de la scène</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2098"/>
<source>Tools</source>
<translation>Outils</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1941"/>
<source>Cheat sheet</source>
<translation>Aide-mémoire</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1961"/>
<source>Albert - perso</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1966"/>
<source>Jean - perso</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1971"/>
<source>Crapoquak - animal</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1976"/>
<source>La revenche du capitaine - intrigue</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1996"/>
<source>Debug</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2009"/>
<source>FlatData</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2019"/>
<source>Persos</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2029"/>
<source>Perso Infos</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2074"/>
<source>File</source>
<translation>Fichier</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2092"/>
<source>Help</source>
<translation>Aide</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2115"/>
<source>Open</source>
<translation>Ouvrir</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2118"/>
<source>Ctrl+O</source>
<translation></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2128"/>
<source>Recents</source>
<translation>Récents</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2131"/>
<source>Ctrl+R</source>
<translation></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2141"/>
<source>Save</source>
<translation>Enregistrer</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2144"/>
<source>Ctrl+S</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2154"/>
<source>Save as...</source>
<translation>Enregistrer sous...</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2157"/>
<source>Ctrl+Shift+S</source>
<translation></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2167"/>
<source>Quit</source>
<translation>Quitter</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2170"/>
<source>Ctrl+Q</source>
<translation></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2181"/>
<source>&amp;Snowflake</source>
<translation></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2191"/>
<source>New</source>
<translation>Nouveau</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2194"/>
<source>Ctrl+N</source>
<translation></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2210"/>
<source>Show help texts</source>
<translation>Montrer les bulles d&apos;aides</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2213"/>
<source>Ctrl+Shift+B</source>
<translation></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2229"/>
<source>Spellcheck</source>
<translation>Correcteur orthographique</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2232"/>
<source>F8</source>
<translation></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1869"/>
<source>Word count</source>
<translation>Nombre de mots</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2086"/>
<source>Mode</source>
<translation>Mode</translation>
</message>
<message>
<location filename="../src/mainWindow.py" line="281"/>
<source>New character</source>
<translation>Nouveau perso</translation>
</message>
<message>
<location filename="../src/mainWindow.py" line="413"/>
<source> (~{} pages)</source>
<translation> (~{} pages)</translation>
</message>
<message>
<location filename="../src/mainWindow.py" line="440"/>
<source>Enter infos about your book, and yourself.</source>
<translation>Entrez toutes les informations relatives au livre, ainsi qu&apos;à vous.</translation>
</message>
<message>
<location filename="../src/mainWindow.py" line="442"/>
<source>Take time to think about a one sentance (~50 words) summary of your book. Then expand it to a paragraph, then to a page, then to a full summary.</source>
<translation>Prenez le temps de réfléchir à un résumé de votre livre, en une phrase (~50 mots). Puis augmentez cette phrase en un paragraphe, puis en une page, puis en un résumé complet.</translation>
</message>
<message>
<location filename="../src/mainWindow.py" line="444"/>
<source>Create your characters.</source>
<translation>Créez ici vos personnage.</translation>
</message>
<message>
<location filename="../src/mainWindow.py" line="446"/>
<source>Develop plots.</source>
<translation>Développez vos intrigues.</translation>
</message>
<message>
<location filename="../src/mainWindow.py" line="448"/>
<source>Create the outline of your masterpiece.</source>
<translation>Créez le plan de votre chef-d&apos;œuvre.</translation>
</message>
<message>
<location filename="../src/mainWindow.py" line="450"/>
<source>Write.</source>
<translation>Écrivez.</translation>
</message>
<message>
<location filename="../src/mainWindow.py" line="452"/>
<source>Debug infos. Sometimes useful.</source>
<translation>Des infos pour débugger des fois pendant qu&apos;on code c&apos;est utile.</translation>
</message>
<message>
<location filename="../src/mainWindow.py" line="465"/>
<source>Dictionary</source>
<translation>Dictionnaire</translation>
</message>
<message>
<location filename="../src/mainWindow.py" line="486"/>
<source>Install PyEnchant to use spellcheck</source>
<translation>Installez PyEnchant pour profiter du correcteur orthographique</translation>
</message>
<message>
<location filename="../src/mainWindow.py" line="416"/>
<source>Words: {}{}</source>
<translation>Mots: {}{}</translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1074"/>
<source>Un bâteau arrive au port et personne ne sait pourquoi</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1079"/>
<source>Le roi envoie des émissaires à bord. Ils ne reviennent jamais.</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1084"/>
<source>Le roi envoie son armée.</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1308"/>
<source>Intrigue général</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1327"/>
<source>Scène 1</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1332"/>
<source>Scène 2</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SpellAction</name>
<message>
<location filename="../src/ui/editors/customTextEdit.py" line="137"/>
<source>Spelling Suggestions</source>
<translation>Suggestions</translation>
</message>
</context>
<context>
<name>app</name>
<message>
<location filename="../src/main.py" line="24"/>
<source>Loaded transation: {}.</source>
<translation>Traduction chargée: {}.</translation>
</message>
<message>
<location filename="../src/main.py" line="26"/>
<source>Failed to load translator for {}...</source>
<translation>La traduction pour {} n&apos;a pas pu être chargée...</translation>
</message>
</context>
<context>
<name>editorWidget</name>
<message>
<location filename="../src/ui/editors/editorWidget.py" line="126"/>
<source>{} words / {}</source>
<translation>{} mots / {}</translation>
</message>
<message>
<location filename="../src/ui/editors/editorWidget.py" line="129"/>
<source>{} words</source>
<translation>{} mots</translation>
</message>
</context>
<context>
<name>editorWidget_ui</name>
<message>
<location filename="../src/ui/editors/editorWidget_ui.ui" line="14"/>
<source>Form</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>helpLabel</name>
<message>
<location filename="../src/ui/helpLabel.py" line="16"/>
<source>If you don&apos;t wanna see me, you can hide me in Help menu.</source>
<translation>Infobulle: Si tu me trouve dérengant, tu peux me cacher via le menu Aide.</translation>
</message>
</context>
<context>
<name>qApp</name>
<message>
<location filename="../src/loadSave.py" line="41"/>
<source>Saving to {}.</source>
<translation>Enregistrement de {}.</translation>
</message>
<message>
<location filename="../src/loadSave.py" line="48"/>
<source>Loading {}... </source>
<translation>Chargement de {}...</translation>
</message>
</context>
<context>
<name>sldImportance</name>
<message>
<location filename="../src/ui/sldImportance_ui.ui" line="14"/>
<source>Form</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/sldImportance_ui.ui" line="39"/>
<source>TextLabel</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/sldImportance.py" line="28"/>
<source>Minor</source>
<translation>Mineur</translation>
</message>
<message>
<location filename="../src/ui/sldImportance.py" line="29"/>
<source>Secondary</source>
<translation>Secondaire</translation>
</message>
<message>
<location filename="../src/ui/sldImportance.py" line="30"/>
<source>Main</source>
<translation>Principal</translation>
</message>
</context>
</TS>

View file

@ -1,3 +0,0 @@
FORMS += ../src/ui/mainWindow.ui
SOURCES += ../src/main.py
TRANSLATIONS += snowflaQe_fr.ts

Binary file not shown.

View file

@ -1,536 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS><TS version="2.0" language="fr" sourcelanguage="en">
<context>
<name>MainWindow</name>
<message>
<location filename="../src/ui/mainWindow.ui" line="14"/>
<source>MainWindow</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="28"/>
<source>Aper&#xe7;u</source>
<translation type="obsolete">Test</translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="36"/>
<source>Information sur le livre</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="51"/>
<source>Titre</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="61"/>
<source>Sous titre</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="81"/>
<source>Volume</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="108"/>
<source>Genre</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="118"/>
<source>License</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="131"/>
<source>Informations sur l&apos;auteur</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="572"/>
<source>Nom</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="156"/>
<source>Email</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="188"/>
<source>Une phrase</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="815"/>
<source>Suivant</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1218"/>
<source>Un paragraphe</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1223"/>
<source>Une page</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="419"/>
<source>4 pages</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="491"/>
<source>Personnages</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="504"/>
<source>Noms</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1948"/>
<source>Filter</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="965"/>
<source>Importance</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="589"/>
<source>Motivation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1842"/>
<source>Goal</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="609"/>
<source>Conflit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="619"/>
<source>Epiphanie</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="728"/>
<source>Notes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="845"/>
<source>Intrigues</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="864"/>
<source>Principale</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="874"/>
<source>Autre intrigue</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="955"/>
<source>Intrigue</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="972"/>
<source>Perso(s)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="979"/>
<source>Description</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1008"/>
<source>Albert</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1013"/>
<source>Sylvestre</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1018"/>
<source>Gentiana</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1228"/>
<source>Complet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1281"/>
<source>Contexte</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1286"/>
<source>Plan</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1323"/>
<source>Intrigue secondaire</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1387"/>
<source>POV:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1404"/>
<source>Goal:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1864"/>
<source>Nombre de mots</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1714"/>
<source>F11</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1785"/>
<source>POV</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1805"/>
<source>Status</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1828"/>
<source>Compile</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1927"/>
<source>Tools</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1956"/>
<source>Albert - perso</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1961"/>
<source>Jean - perso</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1966"/>
<source>Crapoquak - animal</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1971"/>
<source>La revenche du capitaine - intrigue</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="1991"/>
<source>Debug</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2004"/>
<source>FlatData</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2014"/>
<source>Persos</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2024"/>
<source>Perso Infos</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2038"/>
<source>Outline</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2069"/>
<source>&amp;Fichier</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2081"/>
<source>Mo&amp;de</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2087"/>
<source>&amp;Aide</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2093"/>
<source>&amp;Outlis</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2110"/>
<source>&amp;Ouvrir</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2113"/>
<source>Ctrl+O</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2126"/>
<source>Ctrl+R</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2136"/>
<source>&amp;Enregistrer</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2139"/>
<source>Ctrl+S</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2149"/>
<source>Enregistrer &amp;sous...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2152"/>
<source>Ctrl+Shift+S</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2162"/>
<source>&amp;Quitter</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2165"/>
<source>Ctrl+Q</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2176"/>
<source>&amp;Snowflake</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2186"/>
<source>&amp;Nouveau</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2189"/>
<source>Ctrl+N</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2205"/>
<source>Afficher les &amp;bulles d&apos;aide</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2208"/>
<source>Ctrl+Shift+B</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2222"/>
<source>Correcteur ortographique</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2225"/>
<source>F8</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/ui/mainWindow.ui" line="2230"/>
<source>Dictionnaire</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="28"/>
<source>Aperçu</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="71"/>
<source>Série</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1205"/>
<source>Résumé</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="252"/>
<source>Résumé en une phrase</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="349"/>
<source>Résumé en un paragraphe</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="399"/>
<source>Écrire chaque phrase du paragraphe précédent en une paragraphe.</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="427"/>
<source>Résumé en 1 page</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="467"/>
<source>Résumé complet</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="946"/>
<source>Informations générales</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="629"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;right&quot;&gt;Résumé&lt;br/&gt;une phrase&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="639"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;right&quot;&gt;Résumé&lt;br/&gt;un paragraphe&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="738"/>
<source>Informations détaillées</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="989"/>
<source>Résultat</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1067"/>
<source>Étapes de résolution</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1074"/>
<source>Un bâteau arrive au port et personne ne sait pourquoi</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1079"/>
<source>Le roi envoie des émissaires à bord. Ils ne reviennent jamais.</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1084"/>
<source>Le roi envoie son armée.</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1303"/>
<source>Liste de scènes</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1308"/>
<source>Intrigue général</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1327"/>
<source>Scène 1</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1332"/>
<source>Scène 2</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1892"/>
<source>Résumé de la scène en une ligne</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1445"/>
<source>Résumé en quelques phrases:</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1535"/>
<source>Rédaction</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1752"/>
<source>Scène</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1770"/>
<source>Propriétés</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1874"/>
<source>Résumé de la scène</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1905"/>
<source>Notes pour la scène</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="1936"/>
<source>Aide mémoire</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">
<location filename="../src/ui/mainWindow.ui" line="2123"/>
<source>&amp;Récents</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View file

@ -1,6 +1,7 @@
UI := $(wildcard src/ui/*.ui) $(wildcard src/ui/*/*.ui) $(wildcard src/ui/*.qrc)
UIs= $(UI:.ui=.py) $(UI:.qrc=_rc.py)
TS := $(wildcard i18n/*.ts)
QMs= $(TS:.ts=.qm)
ui: $(UIs)
@ -20,10 +21,12 @@ compile:
cd src && python3 setup.py build_ext --inplace
translation:
pylupdate5 languages/snowflaQe.pro
pylupdate5 -noobsolete i18n/snowflaQe.pro
linguist:
linguist languages/snowflaQe_fr.ts
linguist i18n/snowflaQe_fr.ts
i18n: $(QMs)
%_rc.py : %.qrc
pyrcc5 "$<" -o "$@"
@ -32,4 +35,6 @@ linguist:
# pyuic4 "$<" > "$@"
pyuic5 "$<" > "$@"
%.qm: %.ts
lrelease "$<"

View file

@ -38,14 +38,14 @@ def saveStandardItemModelXML(mdl, xml):
if mdl.data(mdl.index(x, y)) != "":
col.text = mdl.data(mdl.index(x, y))
print("Saving to {}.".format(xml))
print(qApp.tr("Saving to {}.").format(xml))
ET.ElementTree(root).write(xml, encoding="UTF-8", xml_declaration=True, pretty_print=True)
def loadStandardItemModelXML(mdl, xml):
print("Loading {}... ".format(xml), end="")
print(qApp.tr("Loading {}... ").format(xml), end="")
try:
tree = ET.parse(xml)

View file

@ -14,14 +14,16 @@ def run():
### Translation process
locale = QLocale.system().name()
locale = "fr_CH"
#qtTranslator = QTranslator()
#if qtTranslator.load("qt_" + locale):
#app.installTranslator(qtTranslator)
appTranslator = QTranslator()
if appTranslator.load("languages/snowflaQe_{}".format(locale)):
if appTranslator.load("i18n/snowflaQe_{}.qm".format(locale)):
app.installTranslator(appTranslator)
print(app.tr("Loaded transation: {}.").format(locale))
else:
print("Failed to load translator...")
print(app.tr("Failed to load translator for {}...").format(locale))
from mainWindow import MainWindow

View file

@ -278,7 +278,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
def createPerso(self):
"Creates a perso by adding a row in mdlPersos and a column in mdlPersosInfos with same ID"
p = QStandardItem("Nouveau perso")
p = QStandardItem(self.tr("New character"))
self.mdlPersos.appendRow(p)
pid = self.getPersosID()
self.checkPersosID() # Attributes a persoID (which is logically pid)
@ -410,9 +410,9 @@ class MainWindow(QMainWindow, Ui_MainWindow):
}[i]
wc = wordCount(src.toPlainText())
if i in [2, 3]: pages = " (~{} pages)".format(int(wc / 25) / 10.)
if i in [2, 3]: pages = self.tr(" (~{} pages)").format(int(wc / 25) / 10.)
else: pages = ""
lbl.setText("Mots: {}{}".format(wc, pages))
lbl.setText(self.tr("Words: {}{}").format(wc, pages))
def setupMoreUi(self):
@ -437,19 +437,19 @@ class MainWindow(QMainWindow, Ui_MainWindow):
# Help box
references = [
(self.lytTabOverview,
"Entrez toutes les informations relatives au livre, ainsi qu'à vous."),
self.tr("Enter infos about your book, and yourself.")),
(self.lytTabSummary,
"Prenez le temps de réfléchir à un résumé de votre livre, en une phrase. Puis augmentez cette phrase en un paragraphe, puis en une page, puis en un résumé complet."),
self.tr("Take time to think about a one sentance (~50 words) summary of your book. Then expand it to a paragraph, then to a page, then to a full summary.")),
(self.lytTabPersos,
"Créez ici vos personnage."),
self.tr("Create your characters.")),
(self.lytTabPlot,
"Développez vos intrigues."),
self.tr("Develop plots.")),
(self.lytTabOutline,
"Créez le plan de votre chef-d'œuvre."),
self.tr("Create the outline of your masterpiece.")),
(self.lytTabRedac,
"Écrivez."),
self.tr("Write.")),
(self.lytTabDebug,
"Des infos pour débugger des fois pendant qu'on code c'est utile."),
self.tr("Debug infos. Sometimes useful."),)
]
for widget, text in references:
@ -461,7 +461,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
# Spellcheck
if enchant:
self.menuDict = QMenu("Dictionary")
self.menuDict = QMenu(self.tr("Dictionary"))
self.menuDictGroup = QActionGroup(self)
for i in enchant.list_dicts():
@ -482,7 +482,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
else:
# No Spell check support
self.actSpellcheck.setVisible(False)
a = QAction("Install PyEnchant to use spellcheck", self)
a = QAction(self.tr("Install PyEnchant to use spellcheck"), self)
a.setIcon(self.style().standardIcon(QStyle.SP_MessageBoxWarning))
a.triggered.connect(self.openPyEnchantWebPage)
self.menuTools.addAction(a)

View file

@ -133,7 +133,7 @@ class customTextEdit(QTextEdit):
if self.textCursor().hasSelection():
text = str(self.textCursor().selectedText())
if not self.dict.check(text):
spell_menu = QMenu('Spelling Suggestions')
spell_menu = QMenu(self.tr('Spelling Suggestions'))
for word in self.dict.suggest(text):
action = self.SpellAction(word, spell_menu)
action.correct.connect(self.correctWord)

View file

@ -122,10 +122,10 @@ class editorWidget(QWidget, Ui_editorWidget_ui):
drawProgress(p, rect, pg, 2)
del p
mw.lblRedacProgress.setPixmap(self.px)
mw.lblRedacWC.setText("{} mots / {}".format(wc, goal))
mw.lblRedacWC.setText(self.tr("{} words / {}").format(wc, goal))
else:
mw.lblRedacProgress.hide()
mw.lblRedacWC.setText("{} mots".format(wc))
mw.lblRedacWC.setText(self.tr("{} words").format(wc))
def toggleSpellcheck(self, v):
self.spellcheck = v

View file

@ -13,7 +13,7 @@ class helpLabel(QLabel):
self.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Maximum)
self.setStatusTip("Infobulle: Si tu me trouve dérengant, tu peux me cacher via le menu Aide.")
self.setStatusTip(self.tr("If you don't wanna see me, you can hide me in Help menu."))
self.setStyleSheet("""
QLabel {

View file

@ -745,6 +745,7 @@ class Ui_MainWindow(object):
self.horizontalLayout_11.addWidget(self.txtOutlineGoal)
self.verticalLayout_13.addLayout(self.horizontalLayout_11)
self.txtPlanSummarySentance = QtWidgets.QLineEdit(self.frame)
self.txtPlanSummarySentance.setText("")
self.txtPlanSummarySentance.setObjectName("txtPlanSummarySentance")
self.verticalLayout_13.addWidget(self.txtPlanSummarySentance)
self.label_9 = QtWidgets.QLabel(self.frame)
@ -1112,8 +1113,6 @@ class Ui_MainWindow(object):
icon = QtGui.QIcon.fromTheme("tools-check-spelling")
self.actSpellcheck.setIcon(icon)
self.actSpellcheck.setObjectName("actSpellcheck")
self.actSpellcheckDict = QtWidgets.QAction(MainWindow)
self.actSpellcheckDict.setObjectName("actSpellcheckDict")
self.menu_Fichier.addAction(self.actionNouveau)
self.menu_Fichier.addAction(self.actionOuvrir)
self.menu_Fichier.addAction(self.action_R_cents)
@ -1149,53 +1148,53 @@ class Ui_MainWindow(object):
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.grpBookInfos.setTitle(_translate("MainWindow", "Information sur le livre"))
self.label_10.setText(_translate("MainWindow", "Titre"))
self.label_11.setText(_translate("MainWindow", "Sous titre"))
self.label_12.setText(_translate("MainWindow", "Série"))
self.grpBookInfos.setTitle(_translate("MainWindow", "Book infos"))
self.label_10.setText(_translate("MainWindow", "Title"))
self.label_11.setText(_translate("MainWindow", "Subtitle"))
self.label_12.setText(_translate("MainWindow", "Serie"))
self.label_13.setText(_translate("MainWindow", "Volume"))
self.label_14.setText(_translate("MainWindow", "Genre"))
self.label_16.setText(_translate("MainWindow", "License"))
self.grpAuthor.setTitle(_translate("MainWindow", "Informations sur l\'auteur"))
self.label_15.setText(_translate("MainWindow", "Nom"))
self.grpAuthor.setTitle(_translate("MainWindow", "Author"))
self.label_15.setText(_translate("MainWindow", "Name"))
self.label_19.setText(_translate("MainWindow", "Email"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabOverview), _translate("MainWindow", "Aperçu"))
self.label.setText(_translate("MainWindow", "Résumé en une phrase"))
self.btnStepTwo.setText(_translate("MainWindow", "Suivant"))
self.tabSummary.setTabText(self.tabSummary.indexOf(self.tab_14), _translate("MainWindow", "Une phrase"))
self.label_21.setText(_translate("MainWindow", "Résumé en une phrase"))
self.label_2.setText(_translate("MainWindow", "Résumé en un paragraphe"))
self.btnStepThree.setText(_translate("MainWindow", "Suivant"))
self.tabSummary.setTabText(self.tabSummary.indexOf(self.tab_13), _translate("MainWindow", "Un paragraphe"))
self.label_22.setText(_translate("MainWindow", "Résumé en un paragraphe"))
self.btnStepFive.setText(_translate("MainWindow", "Suivant"))
self.label_17.setText(_translate("MainWindow", "Écrire chaque phrase du paragraphe précédent en une paragraphe."))
self.tabSummary.setTabText(self.tabSummary.indexOf(self.tabWidgetPage1), _translate("MainWindow", "Une page"))
self.label_23.setText(_translate("MainWindow", "Résumé en 1 page"))
self.btnStepSeven.setText(_translate("MainWindow", "Suivant"))
self.label_20.setText(_translate("MainWindow", "Résumé complet"))
self.tabSummary.setTabText(self.tabSummary.indexOf(self.tabWidgetPage2), _translate("MainWindow", "4 pages"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabSummary), _translate("MainWindow", "Résumé"))
self.groupBox.setTitle(_translate("MainWindow", "Noms"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabOverview), _translate("MainWindow", "Overview"))
self.label.setText(_translate("MainWindow", "One sentance summary"))
self.btnStepTwo.setText(_translate("MainWindow", "Next"))
self.tabSummary.setTabText(self.tabSummary.indexOf(self.tab_14), _translate("MainWindow", "One sentance"))
self.label_21.setText(_translate("MainWindow", "One sentance summary"))
self.label_2.setText(_translate("MainWindow", "One paragraph summary"))
self.btnStepThree.setText(_translate("MainWindow", "Next"))
self.tabSummary.setTabText(self.tabSummary.indexOf(self.tab_13), _translate("MainWindow", "One paragraph"))
self.label_22.setText(_translate("MainWindow", "One paragraph summary"))
self.btnStepFive.setText(_translate("MainWindow", "Next"))
self.label_17.setText(_translate("MainWindow", "Expand each sentence of your one paragraph summary to a paragraph"))
self.tabSummary.setTabText(self.tabSummary.indexOf(self.tabWidgetPage1), _translate("MainWindow", "One page"))
self.label_23.setText(_translate("MainWindow", "One page summary"))
self.btnStepSeven.setText(_translate("MainWindow", "Next"))
self.label_20.setText(_translate("MainWindow", "Full summary"))
self.tabSummary.setTabText(self.tabSummary.indexOf(self.tabWidgetPage2), _translate("MainWindow", "Full"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabSummary), _translate("MainWindow", "Summary"))
self.groupBox.setTitle(_translate("MainWindow", "Names"))
self.txtPersosFilter.setPlaceholderText(_translate("MainWindow", "Filter"))
self.label_3.setText(_translate("MainWindow", "Nom"))
self.label_3.setText(_translate("MainWindow", "Name"))
self.label_18.setText(_translate("MainWindow", "Importance"))
self.label_4.setText(_translate("MainWindow", "Motivation"))
self.label_5.setText(_translate("MainWindow", "Goal"))
self.label_6.setText(_translate("MainWindow", "Conflit"))
self.label_7.setText(_translate("MainWindow", "Epiphanie"))
self.label_24.setText(_translate("MainWindow", "<html><head/><body><p align=\"right\">Résumé<br/>une phrase</p></body></html>"))
self.label_8.setText(_translate("MainWindow", "<html><head/><body><p align=\"right\">Résumé<br/>un paragraphe</p></body></html>"))
self.btnStepFour.setText(_translate("MainWindow", "Suivant"))
self.tabPersos.setTabText(self.tabPersos.indexOf(self.infos), _translate("MainWindow", "Informations générales"))
self.btnStepSix.setText(_translate("MainWindow", "Suivant"))
self.tabPersos.setTabText(self.tabPersos.indexOf(self.tab_11), _translate("MainWindow", "Résumé"))
self.label_6.setText(_translate("MainWindow", "Conflict"))
self.label_7.setText(_translate("MainWindow", "Epiphany"))
self.label_24.setText(_translate("MainWindow", "<html><head/><body><p align=\"right\">One sentance<br/>summary</p></body></html>"))
self.label_8.setText(_translate("MainWindow", "<html><head/><body><p align=\"right\">One paragraph<br/>summary</p></body></html>"))
self.btnStepFour.setText(_translate("MainWindow", "Next"))
self.tabPersos.setTabText(self.tabPersos.indexOf(self.infos), _translate("MainWindow", "Basic infos"))
self.btnStepSix.setText(_translate("MainWindow", "Next"))
self.tabPersos.setTabText(self.tabPersos.indexOf(self.tab_11), _translate("MainWindow", "Summary"))
self.tabPersos.setTabText(self.tabPersos.indexOf(self.tab_19), _translate("MainWindow", "Notes"))
self.lineEdit.setPlaceholderText(_translate("MainWindow", "Filter"))
self.btnStepEight.setText(_translate("MainWindow", "Suivant"))
self.tabPersos.setTabText(self.tabPersos.indexOf(self.tab_12), _translate("MainWindow", "Informations détaillées"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabPersos), _translate("MainWindow", "Personnages"))
self.groupBox_2.setTitle(_translate("MainWindow", "Intrigues"))
self.btnStepEight.setText(_translate("MainWindow", "Next"))
self.tabPersos.setTabText(self.tabPersos.indexOf(self.tab_12), _translate("MainWindow", "Detailed infos"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabPersos), _translate("MainWindow", "Characters"))
self.groupBox_2.setTitle(_translate("MainWindow", "Plots"))
__sortingEnabled = self.listWidget_3.isSortingEnabled()
self.listWidget_3.setSortingEnabled(False)
item = self.listWidget_3.item(0)
@ -1206,11 +1205,11 @@ class Ui_MainWindow(object):
item.setText(_translate("MainWindow", "Autre intrigue"))
self.listWidget_3.setSortingEnabled(__sortingEnabled)
self.lineEdit_7.setPlaceholderText(_translate("MainWindow", "Filter"))
self.label_25.setText(_translate("MainWindow", "Intrigue"))
self.label_25.setText(_translate("MainWindow", "Plot"))
self.label_31.setText(_translate("MainWindow", "Importance"))
self.label_26.setText(_translate("MainWindow", "Perso(s)"))
self.label_26.setText(_translate("MainWindow", "Character(s)"))
self.label_27.setText(_translate("MainWindow", "Description"))
self.label_28.setText(_translate("MainWindow", "Résultat"))
self.label_28.setText(_translate("MainWindow", "Result"))
__sortingEnabled = self.listWidget_4.isSortingEnabled()
self.listWidget_4.setSortingEnabled(False)
item = self.listWidget_4.item(0)
@ -1220,7 +1219,7 @@ class Ui_MainWindow(object):
item = self.listWidget_4.item(2)
item.setText(_translate("MainWindow", "Gentiana"))
self.listWidget_4.setSortingEnabled(__sortingEnabled)
self.tabPlot.setTabText(self.tabPlot.indexOf(self.infos_2), _translate("MainWindow", "Informations générales"))
self.tabPlot.setTabText(self.tabPlot.indexOf(self.infos_2), _translate("MainWindow", "Basic infos"))
__sortingEnabled = self.listWidget_2.isSortingEnabled()
self.listWidget_2.setSortingEnabled(False)
item = self.listWidget_2.item(0)
@ -1230,14 +1229,14 @@ class Ui_MainWindow(object):
item = self.listWidget_2.item(2)
item.setText(_translate("MainWindow", "Le roi envoie son armée."))
self.listWidget_2.setSortingEnabled(__sortingEnabled)
self.tabPlot.setTabText(self.tabPlot.indexOf(self.tab_15), _translate("MainWindow", "Étapes de résolution"))
self.grpPlotSummary.setTitle(_translate("MainWindow", "Résumé"))
self.comboBox_2.setItemText(0, _translate("MainWindow", "Un paragraphe"))
self.comboBox_2.setItemText(1, _translate("MainWindow", "Une page"))
self.comboBox_2.setItemText(2, _translate("MainWindow", "Complet"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabPlot), _translate("MainWindow", "Intrigues"))
self.tabMain.setTabText(self.tabMain.indexOf(self.tab_5), _translate("MainWindow", "Contexte"))
self.treeWidget_2.headerItem().setText(0, _translate("MainWindow", "Liste de scènes"))
self.tabPlot.setTabText(self.tabPlot.indexOf(self.tab_15), _translate("MainWindow", "Resolution steps"))
self.grpPlotSummary.setTitle(_translate("MainWindow", "Summary"))
self.comboBox_2.setItemText(0, _translate("MainWindow", "One paragraph"))
self.comboBox_2.setItemText(1, _translate("MainWindow", "One page"))
self.comboBox_2.setItemText(2, _translate("MainWindow", "Full"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabPlot), _translate("MainWindow", "Plots"))
self.tabMain.setTabText(self.tabMain.indexOf(self.tab_5), _translate("MainWindow", "Context"))
self.treeWidget_2.headerItem().setText(0, _translate("MainWindow", "Scenes list"))
__sortingEnabled = self.treeWidget_2.isSortingEnabled()
self.treeWidget_2.setSortingEnabled(False)
self.treeWidget_2.topLevelItem(0).setText(0, _translate("MainWindow", "Intrigue général"))
@ -1249,22 +1248,22 @@ class Ui_MainWindow(object):
self.treeWidget_2.setSortingEnabled(__sortingEnabled)
self.lblPlanPOV.setText(_translate("MainWindow", "POV:"))
self.lblPlanGoal.setText(_translate("MainWindow", "Goal:"))
self.txtOutlineGoal.setPlaceholderText(_translate("MainWindow", "Nombre de mots"))
self.txtPlanSummarySentance.setPlaceholderText(_translate("MainWindow", "Résumé de la scène en une ligne"))
self.label_9.setText(_translate("MainWindow", "Résumé en quelques phrases:"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabOutline), _translate("MainWindow", "Plan"))
self.txtOutlineGoal.setPlaceholderText(_translate("MainWindow", "Word count"))
self.txtPlanSummarySentance.setPlaceholderText(_translate("MainWindow", "One line scene summary"))
self.label_9.setText(_translate("MainWindow", "Few sentences summary:"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabOutline), _translate("MainWindow", "Outline"))
self.btnRedacFullscreen.setShortcut(_translate("MainWindow", "F11"))
self.groupBox_4.setTitle(_translate("MainWindow", "Propriétés"))
self.groupBox_4.setTitle(_translate("MainWindow", "Properties"))
self.lblRedacPOV.setText(_translate("MainWindow", "POV"))
self.label_30.setText(_translate("MainWindow", "Status"))
self.label_32.setText(_translate("MainWindow", "Compile"))
self.label_29.setText(_translate("MainWindow", "Goal"))
self.txtRedacGoal.setPlaceholderText(_translate("MainWindow", "Nombre de mots"))
self.groupBox_5.setTitle(_translate("MainWindow", "Résumé de la scène"))
self.txtRedacSummarySentance.setPlaceholderText(_translate("MainWindow", "Résumé de la scène en une ligne"))
self.groupBox_6.setTitle(_translate("MainWindow", "Notes pour la scène"))
self.tabRedacInfos.setTabText(self.tabRedacInfos.indexOf(self.tab_17), _translate("MainWindow", "Scène"))
self.groupBox_3.setTitle(_translate("MainWindow", "Aide mémoire"))
self.txtRedacGoal.setPlaceholderText(_translate("MainWindow", "Word count"))
self.groupBox_5.setTitle(_translate("MainWindow", "Scene summary"))
self.txtRedacSummarySentance.setPlaceholderText(_translate("MainWindow", "One line scene summary"))
self.groupBox_6.setTitle(_translate("MainWindow", "Notes"))
self.tabRedacInfos.setTabText(self.tabRedacInfos.indexOf(self.tab_17), _translate("MainWindow", "Scene"))
self.groupBox_3.setTitle(_translate("MainWindow", "Cheat sheet"))
self.lineEdit_3.setPlaceholderText(_translate("MainWindow", "Filter"))
__sortingEnabled = self.listWidget_5.isSortingEnabled()
self.listWidget_5.setSortingEnabled(False)
@ -1278,38 +1277,37 @@ class Ui_MainWindow(object):
item.setText(_translate("MainWindow", "La revenche du capitaine - intrigue"))
self.listWidget_5.setSortingEnabled(__sortingEnabled)
self.tabRedacInfos.setTabText(self.tabRedacInfos.indexOf(self.tab_18), _translate("MainWindow", "Tools"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabRedac), _translate("MainWindow", "Rédaction"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabRedac), _translate("MainWindow", "Redaction"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_9), _translate("MainWindow", "FlatData"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_10), _translate("MainWindow", "Persos"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_16), _translate("MainWindow", "Perso Infos"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_20), _translate("MainWindow", "Outline"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabDebug), _translate("MainWindow", "Debug"))
self.menu_Fichier.setTitle(_translate("MainWindow", "&Fichier"))
self.menuMode.setTitle(_translate("MainWindow", "Mo&de"))
self.menu_Aide.setTitle(_translate("MainWindow", "&Aide"))
self.menuTools.setTitle(_translate("MainWindow", "&Outlis"))
self.actionOuvrir.setText(_translate("MainWindow", "&Ouvrir"))
self.menu_Fichier.setTitle(_translate("MainWindow", "File"))
self.menuMode.setTitle(_translate("MainWindow", "Mode"))
self.menu_Aide.setTitle(_translate("MainWindow", "Help"))
self.menuTools.setTitle(_translate("MainWindow", "Tools"))
self.actionOuvrir.setText(_translate("MainWindow", "Open"))
self.actionOuvrir.setShortcut(_translate("MainWindow", "Ctrl+O"))
self.action_R_cents.setText(_translate("MainWindow", "&Récents"))
self.action_R_cents.setText(_translate("MainWindow", "Recents"))
self.action_R_cents.setShortcut(_translate("MainWindow", "Ctrl+R"))
self.actionEnregistrer.setText(_translate("MainWindow", "&Enregistrer"))
self.actionEnregistrer.setText(_translate("MainWindow", "Save"))
self.actionEnregistrer.setShortcut(_translate("MainWindow", "Ctrl+S"))
self.actionEnregistrer_sous.setText(_translate("MainWindow", "Enregistrer &sous..."))
self.actionEnregistrer_sous.setText(_translate("MainWindow", "Save as..."))
self.actionEnregistrer_sous.setShortcut(_translate("MainWindow", "Ctrl+Shift+S"))
self.actionQuitter.setText(_translate("MainWindow", "&Quitter"))
self.actionQuitter.setText(_translate("MainWindow", "Quit"))
self.actionQuitter.setShortcut(_translate("MainWindow", "Ctrl+Q"))
self.actionSnowflakeMode.setText(_translate("MainWindow", "&Snowflake"))
self.actionNouveau.setText(_translate("MainWindow", "&Nouveau"))
self.actionNouveau.setText(_translate("MainWindow", "New"))
self.actionNouveau.setShortcut(_translate("MainWindow", "Ctrl+N"))
self.actShowHelp.setText(_translate("MainWindow", "Afficher les &bulles d\'aide"))
self.actShowHelp.setText(_translate("MainWindow", "Show help texts"))
self.actShowHelp.setShortcut(_translate("MainWindow", "Ctrl+Shift+B"))
self.actSpellcheck.setText(_translate("MainWindow", "Correcteur ortographique"))
self.actSpellcheck.setText(_translate("MainWindow", "Spellcheck"))
self.actSpellcheck.setShortcut(_translate("MainWindow", "F8"))
self.actSpellcheckDict.setText(_translate("MainWindow", "Dictionnaire"))
from ui.cmbOutlinePersoChoser import cmbOutlinePersoChoser
from ui.cmbOutlineStatusChoser import cmbOutlineStatusChoser
from ui.sldImportance import sldImportance
from ui.chkOutlineCompile import chkOutlineCompile
from ui.editors.editorWidget import editorWidget
from ui.collapsibleGroupBox2 import collapsibleGroupBox2
from ui.cmbOutlinePersoChoser import cmbOutlinePersoChoser
from ui.sldImportance import sldImportance
from ui.editors.editorWidget import editorWidget

View file

@ -25,7 +25,7 @@
</property>
<widget class="QWidget" name="lytTabOverview">
<attribute name="title">
<string>Aperçu</string>
<string>Overview</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_23">
<item>
@ -33,7 +33,7 @@
<item>
<widget class="QGroupBox" name="grpBookInfos">
<property name="title">
<string>Information sur le livre</string>
<string>Book infos</string>
</property>
<layout class="QFormLayout" name="formLayout_3">
<property name="leftMargin">
@ -48,7 +48,7 @@
<item row="0" column="0">
<widget class="QLabel" name="label_10">
<property name="text">
<string>Titre</string>
<string>Title</string>
</property>
</widget>
</item>
@ -58,7 +58,7 @@
<item row="1" column="0">
<widget class="QLabel" name="label_11">
<property name="text">
<string>Sous titre</string>
<string>Subtitle</string>
</property>
</widget>
</item>
@ -68,7 +68,7 @@
<item row="2" column="0">
<widget class="QLabel" name="label_12">
<property name="text">
<string>Série</string>
<string>Serie</string>
</property>
</widget>
</item>
@ -128,7 +128,7 @@
<item>
<widget class="QGroupBox" name="grpAuthor">
<property name="title">
<string>Informations sur l'auteur</string>
<string>Author</string>
</property>
<layout class="QFormLayout" name="formLayout_4">
<property name="leftMargin">
@ -143,7 +143,7 @@
<item row="0" column="0">
<widget class="QLabel" name="label_15">
<property name="text">
<string>Nom</string>
<string>Name</string>
</property>
</widget>
</item>
@ -172,7 +172,7 @@
</widget>
<widget class="QWidget" name="lytTabSummary">
<attribute name="title">
<string>Résumé</string>
<string>Summary</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_24">
<item>
@ -185,13 +185,13 @@
</property>
<widget class="QWidget" name="tab_14">
<attribute name="title">
<string>Une phrase</string>
<string>One sentance</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Résumé en une phrase</string>
<string>One sentance summary</string>
</property>
</widget>
</item>
@ -228,7 +228,7 @@
<item>
<widget class="QPushButton" name="btnStepTwo">
<property name="text">
<string>Suivant</string>
<string>Next</string>
</property>
<property name="icon">
<iconset theme="go-next">
@ -241,7 +241,7 @@
</widget>
<widget class="QWidget" name="tab_13">
<attribute name="title">
<string>Un paragraphe</string>
<string>One paragraph</string>
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
@ -249,7 +249,7 @@
<item>
<widget class="QLabel" name="label_21">
<property name="text">
<string>Résumé en une phrase</string>
<string>One sentance summary</string>
</property>
</widget>
</item>
@ -293,7 +293,7 @@
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Résumé en un paragraphe</string>
<string>One paragraph summary</string>
</property>
</widget>
</item>
@ -323,7 +323,7 @@
<item>
<widget class="QPushButton" name="btnStepThree">
<property name="text">
<string>Suivant</string>
<string>Next</string>
</property>
<property name="icon">
<iconset theme="go-next">
@ -338,7 +338,7 @@
</widget>
<widget class="QWidget" name="tabWidgetPage1">
<attribute name="title">
<string>Une page</string>
<string>One page</string>
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
@ -346,7 +346,7 @@
<item>
<widget class="QLabel" name="label_22">
<property name="text">
<string>Résumé en un paragraphe</string>
<string>One paragraph summary</string>
</property>
</widget>
</item>
@ -373,7 +373,7 @@
<item>
<widget class="QPushButton" name="btnStepFive">
<property name="text">
<string>Suivant</string>
<string>Next</string>
</property>
<property name="icon">
<iconset theme="go-next">
@ -396,7 +396,7 @@
<item>
<widget class="QLabel" name="label_17">
<property name="text">
<string>Écrire chaque phrase du paragraphe précédent en une paragraphe.</string>
<string>Expand each sentence of your one paragraph summary to a paragraph</string>
</property>
</widget>
</item>
@ -416,7 +416,7 @@
</widget>
<widget class="QWidget" name="tabWidgetPage2">
<attribute name="title">
<string>4 pages</string>
<string>Full</string>
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
@ -424,7 +424,7 @@
<item>
<widget class="QLabel" name="label_23">
<property name="text">
<string>Résumé en 1 page</string>
<string>One page summary</string>
</property>
</widget>
</item>
@ -441,7 +441,7 @@
<item>
<widget class="QPushButton" name="btnStepSeven">
<property name="text">
<string>Suivant</string>
<string>Next</string>
</property>
<property name="icon">
<iconset theme="go-next">
@ -464,7 +464,7 @@
<item>
<widget class="QLabel" name="label_20">
<property name="text">
<string>Résumé complet</string>
<string>Full summary</string>
</property>
</widget>
</item>
@ -488,7 +488,7 @@
</widget>
<widget class="QWidget" name="lytTabPersos">
<attribute name="title">
<string>Personnages</string>
<string>Characters</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_25">
<item>
@ -501,7 +501,7 @@
</property>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Noms</string>
<string>Names</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_8">
<item>
@ -560,7 +560,7 @@
</property>
<widget class="QWidget" name="infos">
<attribute name="title">
<string>Informations générales</string>
<string>Basic infos</string>
</attribute>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
@ -569,7 +569,7 @@
<item row="0" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Nom</string>
<string>Name</string>
</property>
</widget>
</item>
@ -606,7 +606,7 @@
<item row="4" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Conflit</string>
<string>Conflict</string>
</property>
</widget>
</item>
@ -616,7 +616,7 @@
<item row="5" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Epiphanie</string>
<string>Epiphany</string>
</property>
</widget>
</item>
@ -626,7 +626,7 @@
<item row="6" column="0">
<widget class="QLabel" name="label_24">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;right&quot;&gt;Résumé&lt;br/&gt;une phrase&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;right&quot;&gt;One sentance&lt;br/&gt;summary&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
@ -636,7 +636,7 @@
<item row="7" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;right&quot;&gt;Résumé&lt;br/&gt;un paragraphe&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;right&quot;&gt;One paragraph&lt;br/&gt;summary&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
@ -661,7 +661,7 @@
<item>
<widget class="QPushButton" name="btnStepFour">
<property name="text">
<string>Suivant</string>
<string>Next</string>
</property>
<property name="icon">
<iconset theme="go-next">
@ -686,7 +686,7 @@
</widget>
<widget class="QWidget" name="tab_11">
<attribute name="title">
<string>Résumé</string>
<string>Summary</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_17">
<item>
@ -710,7 +710,7 @@
<item>
<widget class="QPushButton" name="btnStepSix">
<property name="text">
<string>Suivant</string>
<string>Next</string>
</property>
<property name="icon">
<iconset theme="go-next">
@ -735,7 +735,7 @@
</widget>
<widget class="QWidget" name="tab_12">
<attribute name="title">
<string>Informations détaillées</string>
<string>Detailed infos</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
@ -812,7 +812,7 @@
<item>
<widget class="QPushButton" name="btnStepEight">
<property name="text">
<string>Suivant</string>
<string>Next</string>
</property>
<property name="icon">
<iconset theme="go-next">
@ -832,7 +832,7 @@
</widget>
<widget class="QWidget" name="lytTabPlot">
<attribute name="title">
<string>Intrigues</string>
<string>Plots</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_26">
<item>
@ -842,7 +842,7 @@
</property>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>Intrigues</string>
<string>Plots</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_10">
<item>
@ -943,7 +943,7 @@
</property>
<widget class="QWidget" name="infos_2">
<attribute name="title">
<string>Informations générales</string>
<string>Basic infos</string>
</attribute>
<layout class="QFormLayout" name="formLayout_2">
<property name="fieldGrowthPolicy">
@ -952,7 +952,7 @@
<item row="0" column="0">
<widget class="QLabel" name="label_25">
<property name="text">
<string>Intrigue</string>
<string>Plot</string>
</property>
</widget>
</item>
@ -969,7 +969,7 @@
<item row="2" column="0">
<widget class="QLabel" name="label_26">
<property name="text">
<string>Perso(s)</string>
<string>Character(s)</string>
</property>
</widget>
</item>
@ -986,7 +986,7 @@
<item row="4" column="0">
<widget class="QLabel" name="label_28">
<property name="text">
<string>Résultat</string>
<string>Result</string>
</property>
</widget>
</item>
@ -1064,7 +1064,7 @@
</widget>
<widget class="QWidget" name="tab_15">
<attribute name="title">
<string>Étapes de résolution</string>
<string>Resolution steps</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_11">
<item>
@ -1202,7 +1202,7 @@
</widget>
<widget class="QGroupBox" name="grpPlotSummary">
<property name="title">
<string>Résumé</string>
<string>Summary</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_18">
<item>
@ -1215,17 +1215,17 @@
</property>
<item>
<property name="text">
<string>Un paragraphe</string>
<string>One paragraph</string>
</property>
</item>
<item>
<property name="text">
<string>Une page</string>
<string>One page</string>
</property>
</item>
<item>
<property name="text">
<string>Complet</string>
<string>Full</string>
</property>
</item>
</widget>
@ -1278,12 +1278,12 @@
</widget>
<widget class="QWidget" name="tab_5">
<attribute name="title">
<string>Contexte</string>
<string>Context</string>
</attribute>
</widget>
<widget class="QWidget" name="lytTabOutline">
<attribute name="title">
<string>Plan</string>
<string>Outline</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_27">
<item>
@ -1300,7 +1300,7 @@
</property>
<column>
<property name="text">
<string>Liste de scènes</string>
<string>Scenes list</string>
</property>
</column>
<item>
@ -1426,7 +1426,7 @@
<bool>false</bool>
</property>
<property name="placeholderText">
<string>Nombre de mots</string>
<string>Word count</string>
</property>
</widget>
</item>
@ -1434,15 +1434,18 @@
</item>
<item>
<widget class="QLineEdit" name="txtPlanSummarySentance">
<property name="text">
<string/>
</property>
<property name="placeholderText">
<string>Résumé de la scène en une ligne</string>
<string>One line scene summary</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_9">
<property name="text">
<string>Résumé en quelques phrases:</string>
<string>Few sentences summary:</string>
</property>
</widget>
</item>
@ -1532,7 +1535,7 @@
</widget>
<widget class="QWidget" name="lytTabRedac">
<attribute name="title">
<string>Rédaction</string>
<string>Redaction</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_19">
<item>
@ -1708,7 +1711,9 @@
<string/>
</property>
<property name="icon">
<iconset theme="view-fullscreen"/>
<iconset theme="view-fullscreen">
<normaloff/>
</iconset>
</property>
<property name="shortcut">
<string>F11</string>
@ -1749,7 +1754,7 @@
</property>
<widget class="QWidget" name="tab_17">
<attribute name="title">
<string>Scène</string>
<string>Scene</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_20" stretch="0,0,0">
<property name="sizeConstraint">
@ -1767,7 +1772,7 @@
</sizepolicy>
</property>
<property name="title">
<string>Propriétés</string>
<string>Properties</string>
</property>
<property name="flat">
<bool>true</bool>
@ -1861,7 +1866,7 @@
<bool>false</bool>
</property>
<property name="placeholderText">
<string>Nombre de mots</string>
<string>Word count</string>
</property>
</widget>
</item>
@ -1871,7 +1876,7 @@
<item>
<widget class="collapsibleGroupBox2" name="groupBox_5">
<property name="title">
<string>Résumé de la scène</string>
<string>Scene summary</string>
</property>
<property name="flat">
<bool>true</bool>
@ -1889,7 +1894,7 @@
<string/>
</property>
<property name="placeholderText">
<string>Résumé de la scène en une ligne</string>
<string>One line scene summary</string>
</property>
</widget>
</item>
@ -1902,7 +1907,7 @@
<item>
<widget class="collapsibleGroupBox2" name="groupBox_6">
<property name="title">
<string>Notes pour la scène</string>
<string>Notes</string>
</property>
<property name="flat">
<bool>true</bool>
@ -1933,7 +1938,7 @@
<item>
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>Aide mémoire</string>
<string>Cheat sheet</string>
</property>
<property name="flat">
<bool>true</bool>
@ -2066,7 +2071,7 @@
</property>
<widget class="QMenu" name="menu_Fichier">
<property name="title">
<string>&amp;Fichier</string>
<string>File</string>
</property>
<addaction name="actionNouveau"/>
<addaction name="actionOuvrir"/>
@ -2078,19 +2083,19 @@
</widget>
<widget class="QMenu" name="menuMode">
<property name="title">
<string>Mo&amp;de</string>
<string>Mode</string>
</property>
<addaction name="actionSnowflakeMode"/>
</widget>
<widget class="QMenu" name="menu_Aide">
<property name="title">
<string>&amp;Aide</string>
<string>Help</string>
</property>
<addaction name="actShowHelp"/>
</widget>
<widget class="QMenu" name="menuTools">
<property name="title">
<string>&amp;Outlis</string>
<string>Tools</string>
</property>
<addaction name="actSpellcheck"/>
</widget>
@ -2107,7 +2112,7 @@
</iconset>
</property>
<property name="text">
<string>&amp;Ouvrir</string>
<string>Open</string>
</property>
<property name="shortcut">
<string>Ctrl+O</string>
@ -2120,7 +2125,7 @@
</iconset>
</property>
<property name="text">
<string>&amp;Récents</string>
<string>Recents</string>
</property>
<property name="shortcut">
<string>Ctrl+R</string>
@ -2133,7 +2138,7 @@
</iconset>
</property>
<property name="text">
<string>&amp;Enregistrer</string>
<string>Save</string>
</property>
<property name="shortcut">
<string>Ctrl+S</string>
@ -2146,7 +2151,7 @@
</iconset>
</property>
<property name="text">
<string>Enregistrer &amp;sous...</string>
<string>Save as...</string>
</property>
<property name="shortcut">
<string>Ctrl+Shift+S</string>
@ -2159,7 +2164,7 @@
</iconset>
</property>
<property name="text">
<string>&amp;Quitter</string>
<string>Quit</string>
</property>
<property name="shortcut">
<string>Ctrl+Q</string>
@ -2183,7 +2188,7 @@
</iconset>
</property>
<property name="text">
<string>&amp;Nouveau</string>
<string>New</string>
</property>
<property name="shortcut">
<string>Ctrl+N</string>
@ -2202,7 +2207,7 @@
</iconset>
</property>
<property name="text">
<string>Afficher les &amp;bulles d'aide</string>
<string>Show help texts</string>
</property>
<property name="shortcut">
<string>Ctrl+Shift+B</string>
@ -2216,20 +2221,17 @@
<bool>true</bool>
</property>
<property name="icon">
<iconset theme="tools-check-spelling"/>
<iconset theme="tools-check-spelling">
<normaloff/>
</iconset>
</property>
<property name="text">
<string>Correcteur ortographique</string>
<string>Spellcheck</string>
</property>
<property name="shortcut">
<string>F8</string>
</property>
</action>
<action name="actSpellcheckDict">
<property name="text">
<string>Dictionnaire</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>

View file

@ -25,9 +25,9 @@ class sldImportance(QWidget, Ui_sldImportance):
def changed(self, v):
val = [
"Mineur",
"Secondaire",
"Principal",
self.tr("Minor"),
self.tr("Secondary"),
self.tr("Main"),
]
self.lbl.setText(val[v])