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

View file

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

View file

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

View file

@ -278,7 +278,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
def createPerso(self): def createPerso(self):
"Creates a perso by adding a row in mdlPersos and a column in mdlPersosInfos with same ID" "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) self.mdlPersos.appendRow(p)
pid = self.getPersosID() pid = self.getPersosID()
self.checkPersosID() # Attributes a persoID (which is logically pid) self.checkPersosID() # Attributes a persoID (which is logically pid)
@ -410,9 +410,9 @@ class MainWindow(QMainWindow, Ui_MainWindow):
}[i] }[i]
wc = wordCount(src.toPlainText()) 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 = "" else: pages = ""
lbl.setText("Mots: {}{}".format(wc, pages)) lbl.setText(self.tr("Words: {}{}").format(wc, pages))
def setupMoreUi(self): def setupMoreUi(self):
@ -437,19 +437,19 @@ class MainWindow(QMainWindow, Ui_MainWindow):
# Help box # Help box
references = [ references = [
(self.lytTabOverview, (self.lytTabOverview,
"Entrez toutes les informations relatives au livre, ainsi qu'à vous."), self.tr("Enter infos about your book, and yourself.")),
(self.lytTabSummary, (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, (self.lytTabPersos,
"Créez ici vos personnage."), self.tr("Create your characters.")),
(self.lytTabPlot, (self.lytTabPlot,
"Développez vos intrigues."), self.tr("Develop plots.")),
(self.lytTabOutline, (self.lytTabOutline,
"Créez le plan de votre chef-d'œuvre."), self.tr("Create the outline of your masterpiece.")),
(self.lytTabRedac, (self.lytTabRedac,
"Écrivez."), self.tr("Write.")),
(self.lytTabDebug, (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: for widget, text in references:
@ -461,7 +461,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
# Spellcheck # Spellcheck
if enchant: if enchant:
self.menuDict = QMenu("Dictionary") self.menuDict = QMenu(self.tr("Dictionary"))
self.menuDictGroup = QActionGroup(self) self.menuDictGroup = QActionGroup(self)
for i in enchant.list_dicts(): for i in enchant.list_dicts():
@ -482,7 +482,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
else: else:
# No Spell check support # No Spell check support
self.actSpellcheck.setVisible(False) 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.setIcon(self.style().standardIcon(QStyle.SP_MessageBoxWarning))
a.triggered.connect(self.openPyEnchantWebPage) a.triggered.connect(self.openPyEnchantWebPage)
self.menuTools.addAction(a) self.menuTools.addAction(a)

View file

@ -133,7 +133,7 @@ class customTextEdit(QTextEdit):
if self.textCursor().hasSelection(): if self.textCursor().hasSelection():
text = str(self.textCursor().selectedText()) text = str(self.textCursor().selectedText())
if not self.dict.check(text): 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): for word in self.dict.suggest(text):
action = self.SpellAction(word, spell_menu) action = self.SpellAction(word, spell_menu)
action.correct.connect(self.correctWord) action.correct.connect(self.correctWord)

View file

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

View file

@ -13,7 +13,7 @@ class helpLabel(QLabel):
self.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Maximum) 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(""" self.setStyleSheet("""
QLabel { QLabel {

View file

@ -745,6 +745,7 @@ class Ui_MainWindow(object):
self.horizontalLayout_11.addWidget(self.txtOutlineGoal) self.horizontalLayout_11.addWidget(self.txtOutlineGoal)
self.verticalLayout_13.addLayout(self.horizontalLayout_11) self.verticalLayout_13.addLayout(self.horizontalLayout_11)
self.txtPlanSummarySentance = QtWidgets.QLineEdit(self.frame) self.txtPlanSummarySentance = QtWidgets.QLineEdit(self.frame)
self.txtPlanSummarySentance.setText("")
self.txtPlanSummarySentance.setObjectName("txtPlanSummarySentance") self.txtPlanSummarySentance.setObjectName("txtPlanSummarySentance")
self.verticalLayout_13.addWidget(self.txtPlanSummarySentance) self.verticalLayout_13.addWidget(self.txtPlanSummarySentance)
self.label_9 = QtWidgets.QLabel(self.frame) self.label_9 = QtWidgets.QLabel(self.frame)
@ -1112,8 +1113,6 @@ class Ui_MainWindow(object):
icon = QtGui.QIcon.fromTheme("tools-check-spelling") icon = QtGui.QIcon.fromTheme("tools-check-spelling")
self.actSpellcheck.setIcon(icon) self.actSpellcheck.setIcon(icon)
self.actSpellcheck.setObjectName("actSpellcheck") self.actSpellcheck.setObjectName("actSpellcheck")
self.actSpellcheckDict = QtWidgets.QAction(MainWindow)
self.actSpellcheckDict.setObjectName("actSpellcheckDict")
self.menu_Fichier.addAction(self.actionNouveau) self.menu_Fichier.addAction(self.actionNouveau)
self.menu_Fichier.addAction(self.actionOuvrir) self.menu_Fichier.addAction(self.actionOuvrir)
self.menu_Fichier.addAction(self.action_R_cents) self.menu_Fichier.addAction(self.action_R_cents)
@ -1149,53 +1148,53 @@ class Ui_MainWindow(object):
def retranslateUi(self, MainWindow): def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate _translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.grpBookInfos.setTitle(_translate("MainWindow", "Information sur le livre")) self.grpBookInfos.setTitle(_translate("MainWindow", "Book infos"))
self.label_10.setText(_translate("MainWindow", "Titre")) self.label_10.setText(_translate("MainWindow", "Title"))
self.label_11.setText(_translate("MainWindow", "Sous titre")) self.label_11.setText(_translate("MainWindow", "Subtitle"))
self.label_12.setText(_translate("MainWindow", "Série")) self.label_12.setText(_translate("MainWindow", "Serie"))
self.label_13.setText(_translate("MainWindow", "Volume")) self.label_13.setText(_translate("MainWindow", "Volume"))
self.label_14.setText(_translate("MainWindow", "Genre")) self.label_14.setText(_translate("MainWindow", "Genre"))
self.label_16.setText(_translate("MainWindow", "License")) self.label_16.setText(_translate("MainWindow", "License"))
self.grpAuthor.setTitle(_translate("MainWindow", "Informations sur l\'auteur")) self.grpAuthor.setTitle(_translate("MainWindow", "Author"))
self.label_15.setText(_translate("MainWindow", "Nom")) self.label_15.setText(_translate("MainWindow", "Name"))
self.label_19.setText(_translate("MainWindow", "Email")) self.label_19.setText(_translate("MainWindow", "Email"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabOverview), _translate("MainWindow", "Aperçu")) self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabOverview), _translate("MainWindow", "Overview"))
self.label.setText(_translate("MainWindow", "Résumé en une phrase")) self.label.setText(_translate("MainWindow", "One sentance summary"))
self.btnStepTwo.setText(_translate("MainWindow", "Suivant")) self.btnStepTwo.setText(_translate("MainWindow", "Next"))
self.tabSummary.setTabText(self.tabSummary.indexOf(self.tab_14), _translate("MainWindow", "Une phrase")) self.tabSummary.setTabText(self.tabSummary.indexOf(self.tab_14), _translate("MainWindow", "One sentance"))
self.label_21.setText(_translate("MainWindow", "Résumé en une phrase")) self.label_21.setText(_translate("MainWindow", "One sentance summary"))
self.label_2.setText(_translate("MainWindow", "Résumé en un paragraphe")) self.label_2.setText(_translate("MainWindow", "One paragraph summary"))
self.btnStepThree.setText(_translate("MainWindow", "Suivant")) self.btnStepThree.setText(_translate("MainWindow", "Next"))
self.tabSummary.setTabText(self.tabSummary.indexOf(self.tab_13), _translate("MainWindow", "Un paragraphe")) self.tabSummary.setTabText(self.tabSummary.indexOf(self.tab_13), _translate("MainWindow", "One paragraph"))
self.label_22.setText(_translate("MainWindow", "Résumé en un paragraphe")) self.label_22.setText(_translate("MainWindow", "One paragraph summary"))
self.btnStepFive.setText(_translate("MainWindow", "Suivant")) self.btnStepFive.setText(_translate("MainWindow", "Next"))
self.label_17.setText(_translate("MainWindow", "Écrire chaque phrase du paragraphe précédent en une paragraphe.")) 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", "Une page")) self.tabSummary.setTabText(self.tabSummary.indexOf(self.tabWidgetPage1), _translate("MainWindow", "One page"))
self.label_23.setText(_translate("MainWindow", "Résumé en 1 page")) self.label_23.setText(_translate("MainWindow", "One page summary"))
self.btnStepSeven.setText(_translate("MainWindow", "Suivant")) self.btnStepSeven.setText(_translate("MainWindow", "Next"))
self.label_20.setText(_translate("MainWindow", "Résumé complet")) self.label_20.setText(_translate("MainWindow", "Full summary"))
self.tabSummary.setTabText(self.tabSummary.indexOf(self.tabWidgetPage2), _translate("MainWindow", "4 pages")) self.tabSummary.setTabText(self.tabSummary.indexOf(self.tabWidgetPage2), _translate("MainWindow", "Full"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabSummary), _translate("MainWindow", "Résumé")) self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabSummary), _translate("MainWindow", "Summary"))
self.groupBox.setTitle(_translate("MainWindow", "Noms")) self.groupBox.setTitle(_translate("MainWindow", "Names"))
self.txtPersosFilter.setPlaceholderText(_translate("MainWindow", "Filter")) 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_18.setText(_translate("MainWindow", "Importance"))
self.label_4.setText(_translate("MainWindow", "Motivation")) self.label_4.setText(_translate("MainWindow", "Motivation"))
self.label_5.setText(_translate("MainWindow", "Goal")) self.label_5.setText(_translate("MainWindow", "Goal"))
self.label_6.setText(_translate("MainWindow", "Conflit")) self.label_6.setText(_translate("MainWindow", "Conflict"))
self.label_7.setText(_translate("MainWindow", "Epiphanie")) self.label_7.setText(_translate("MainWindow", "Epiphany"))
self.label_24.setText(_translate("MainWindow", "<html><head/><body><p align=\"right\">Résumé<br/>une phrase</p></body></html>")) 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\">Résumé<br/>un paragraphe</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", "Suivant")) self.btnStepFour.setText(_translate("MainWindow", "Next"))
self.tabPersos.setTabText(self.tabPersos.indexOf(self.infos), _translate("MainWindow", "Informations générales")) self.tabPersos.setTabText(self.tabPersos.indexOf(self.infos), _translate("MainWindow", "Basic infos"))
self.btnStepSix.setText(_translate("MainWindow", "Suivant")) self.btnStepSix.setText(_translate("MainWindow", "Next"))
self.tabPersos.setTabText(self.tabPersos.indexOf(self.tab_11), _translate("MainWindow", "Résumé")) 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.tabPersos.setTabText(self.tabPersos.indexOf(self.tab_19), _translate("MainWindow", "Notes"))
self.lineEdit.setPlaceholderText(_translate("MainWindow", "Filter")) self.lineEdit.setPlaceholderText(_translate("MainWindow", "Filter"))
self.btnStepEight.setText(_translate("MainWindow", "Suivant")) self.btnStepEight.setText(_translate("MainWindow", "Next"))
self.tabPersos.setTabText(self.tabPersos.indexOf(self.tab_12), _translate("MainWindow", "Informations détaillées")) self.tabPersos.setTabText(self.tabPersos.indexOf(self.tab_12), _translate("MainWindow", "Detailed infos"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabPersos), _translate("MainWindow", "Personnages")) self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabPersos), _translate("MainWindow", "Characters"))
self.groupBox_2.setTitle(_translate("MainWindow", "Intrigues")) self.groupBox_2.setTitle(_translate("MainWindow", "Plots"))
__sortingEnabled = self.listWidget_3.isSortingEnabled() __sortingEnabled = self.listWidget_3.isSortingEnabled()
self.listWidget_3.setSortingEnabled(False) self.listWidget_3.setSortingEnabled(False)
item = self.listWidget_3.item(0) item = self.listWidget_3.item(0)
@ -1206,11 +1205,11 @@ class Ui_MainWindow(object):
item.setText(_translate("MainWindow", "Autre intrigue")) item.setText(_translate("MainWindow", "Autre intrigue"))
self.listWidget_3.setSortingEnabled(__sortingEnabled) self.listWidget_3.setSortingEnabled(__sortingEnabled)
self.lineEdit_7.setPlaceholderText(_translate("MainWindow", "Filter")) 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_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_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() __sortingEnabled = self.listWidget_4.isSortingEnabled()
self.listWidget_4.setSortingEnabled(False) self.listWidget_4.setSortingEnabled(False)
item = self.listWidget_4.item(0) item = self.listWidget_4.item(0)
@ -1220,7 +1219,7 @@ class Ui_MainWindow(object):
item = self.listWidget_4.item(2) item = self.listWidget_4.item(2)
item.setText(_translate("MainWindow", "Gentiana")) item.setText(_translate("MainWindow", "Gentiana"))
self.listWidget_4.setSortingEnabled(__sortingEnabled) 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() __sortingEnabled = self.listWidget_2.isSortingEnabled()
self.listWidget_2.setSortingEnabled(False) self.listWidget_2.setSortingEnabled(False)
item = self.listWidget_2.item(0) item = self.listWidget_2.item(0)
@ -1230,14 +1229,14 @@ class Ui_MainWindow(object):
item = self.listWidget_2.item(2) item = self.listWidget_2.item(2)
item.setText(_translate("MainWindow", "Le roi envoie son armée.")) item.setText(_translate("MainWindow", "Le roi envoie son armée."))
self.listWidget_2.setSortingEnabled(__sortingEnabled) self.listWidget_2.setSortingEnabled(__sortingEnabled)
self.tabPlot.setTabText(self.tabPlot.indexOf(self.tab_15), _translate("MainWindow", "Étapes de résolution")) self.tabPlot.setTabText(self.tabPlot.indexOf(self.tab_15), _translate("MainWindow", "Resolution steps"))
self.grpPlotSummary.setTitle(_translate("MainWindow", "Résumé")) self.grpPlotSummary.setTitle(_translate("MainWindow", "Summary"))
self.comboBox_2.setItemText(0, _translate("MainWindow", "Un paragraphe")) self.comboBox_2.setItemText(0, _translate("MainWindow", "One paragraph"))
self.comboBox_2.setItemText(1, _translate("MainWindow", "Une page")) self.comboBox_2.setItemText(1, _translate("MainWindow", "One page"))
self.comboBox_2.setItemText(2, _translate("MainWindow", "Complet")) self.comboBox_2.setItemText(2, _translate("MainWindow", "Full"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabPlot), _translate("MainWindow", "Intrigues")) self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabPlot), _translate("MainWindow", "Plots"))
self.tabMain.setTabText(self.tabMain.indexOf(self.tab_5), _translate("MainWindow", "Contexte")) self.tabMain.setTabText(self.tabMain.indexOf(self.tab_5), _translate("MainWindow", "Context"))
self.treeWidget_2.headerItem().setText(0, _translate("MainWindow", "Liste de scènes")) self.treeWidget_2.headerItem().setText(0, _translate("MainWindow", "Scenes list"))
__sortingEnabled = self.treeWidget_2.isSortingEnabled() __sortingEnabled = self.treeWidget_2.isSortingEnabled()
self.treeWidget_2.setSortingEnabled(False) self.treeWidget_2.setSortingEnabled(False)
self.treeWidget_2.topLevelItem(0).setText(0, _translate("MainWindow", "Intrigue général")) 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.treeWidget_2.setSortingEnabled(__sortingEnabled)
self.lblPlanPOV.setText(_translate("MainWindow", "POV:")) self.lblPlanPOV.setText(_translate("MainWindow", "POV:"))
self.lblPlanGoal.setText(_translate("MainWindow", "Goal:")) self.lblPlanGoal.setText(_translate("MainWindow", "Goal:"))
self.txtOutlineGoal.setPlaceholderText(_translate("MainWindow", "Nombre de mots")) self.txtOutlineGoal.setPlaceholderText(_translate("MainWindow", "Word count"))
self.txtPlanSummarySentance.setPlaceholderText(_translate("MainWindow", "Résumé de la scène en une ligne")) self.txtPlanSummarySentance.setPlaceholderText(_translate("MainWindow", "One line scene summary"))
self.label_9.setText(_translate("MainWindow", "Résumé en quelques phrases:")) self.label_9.setText(_translate("MainWindow", "Few sentences summary:"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabOutline), _translate("MainWindow", "Plan")) self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabOutline), _translate("MainWindow", "Outline"))
self.btnRedacFullscreen.setShortcut(_translate("MainWindow", "F11")) 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.lblRedacPOV.setText(_translate("MainWindow", "POV"))
self.label_30.setText(_translate("MainWindow", "Status")) self.label_30.setText(_translate("MainWindow", "Status"))
self.label_32.setText(_translate("MainWindow", "Compile")) self.label_32.setText(_translate("MainWindow", "Compile"))
self.label_29.setText(_translate("MainWindow", "Goal")) self.label_29.setText(_translate("MainWindow", "Goal"))
self.txtRedacGoal.setPlaceholderText(_translate("MainWindow", "Nombre de mots")) self.txtRedacGoal.setPlaceholderText(_translate("MainWindow", "Word count"))
self.groupBox_5.setTitle(_translate("MainWindow", "Résumé de la scène")) self.groupBox_5.setTitle(_translate("MainWindow", "Scene summary"))
self.txtRedacSummarySentance.setPlaceholderText(_translate("MainWindow", "Résumé de la scène en une ligne")) self.txtRedacSummarySentance.setPlaceholderText(_translate("MainWindow", "One line scene summary"))
self.groupBox_6.setTitle(_translate("MainWindow", "Notes pour la scène")) self.groupBox_6.setTitle(_translate("MainWindow", "Notes"))
self.tabRedacInfos.setTabText(self.tabRedacInfos.indexOf(self.tab_17), _translate("MainWindow", "Scène")) self.tabRedacInfos.setTabText(self.tabRedacInfos.indexOf(self.tab_17), _translate("MainWindow", "Scene"))
self.groupBox_3.setTitle(_translate("MainWindow", "Aide mémoire")) self.groupBox_3.setTitle(_translate("MainWindow", "Cheat sheet"))
self.lineEdit_3.setPlaceholderText(_translate("MainWindow", "Filter")) self.lineEdit_3.setPlaceholderText(_translate("MainWindow", "Filter"))
__sortingEnabled = self.listWidget_5.isSortingEnabled() __sortingEnabled = self.listWidget_5.isSortingEnabled()
self.listWidget_5.setSortingEnabled(False) self.listWidget_5.setSortingEnabled(False)
@ -1278,38 +1277,37 @@ class Ui_MainWindow(object):
item.setText(_translate("MainWindow", "La revenche du capitaine - intrigue")) item.setText(_translate("MainWindow", "La revenche du capitaine - intrigue"))
self.listWidget_5.setSortingEnabled(__sortingEnabled) self.listWidget_5.setSortingEnabled(__sortingEnabled)
self.tabRedacInfos.setTabText(self.tabRedacInfos.indexOf(self.tab_18), _translate("MainWindow", "Tools")) 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_9), _translate("MainWindow", "FlatData"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_10), _translate("MainWindow", "Persos")) 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_16), _translate("MainWindow", "Perso Infos"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_20), _translate("MainWindow", "Outline")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_20), _translate("MainWindow", "Outline"))
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabDebug), _translate("MainWindow", "Debug")) self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabDebug), _translate("MainWindow", "Debug"))
self.menu_Fichier.setTitle(_translate("MainWindow", "&Fichier")) self.menu_Fichier.setTitle(_translate("MainWindow", "File"))
self.menuMode.setTitle(_translate("MainWindow", "Mo&de")) self.menuMode.setTitle(_translate("MainWindow", "Mode"))
self.menu_Aide.setTitle(_translate("MainWindow", "&Aide")) self.menu_Aide.setTitle(_translate("MainWindow", "Help"))
self.menuTools.setTitle(_translate("MainWindow", "&Outlis")) self.menuTools.setTitle(_translate("MainWindow", "Tools"))
self.actionOuvrir.setText(_translate("MainWindow", "&Ouvrir")) self.actionOuvrir.setText(_translate("MainWindow", "Open"))
self.actionOuvrir.setShortcut(_translate("MainWindow", "Ctrl+O")) 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.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.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.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.actionQuitter.setShortcut(_translate("MainWindow", "Ctrl+Q"))
self.actionSnowflakeMode.setText(_translate("MainWindow", "&Snowflake")) 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.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.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.actSpellcheck.setShortcut(_translate("MainWindow", "F8"))
self.actSpellcheckDict.setText(_translate("MainWindow", "Dictionnaire"))
from ui.cmbOutlinePersoChoser import cmbOutlinePersoChoser
from ui.cmbOutlineStatusChoser import cmbOutlineStatusChoser from ui.cmbOutlineStatusChoser import cmbOutlineStatusChoser
from ui.sldImportance import sldImportance
from ui.chkOutlineCompile import chkOutlineCompile from ui.chkOutlineCompile import chkOutlineCompile
from ui.editors.editorWidget import editorWidget
from ui.collapsibleGroupBox2 import collapsibleGroupBox2 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> </property>
<widget class="QWidget" name="lytTabOverview"> <widget class="QWidget" name="lytTabOverview">
<attribute name="title"> <attribute name="title">
<string>Aperçu</string> <string>Overview</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_23"> <layout class="QVBoxLayout" name="verticalLayout_23">
<item> <item>
@ -33,7 +33,7 @@
<item> <item>
<widget class="QGroupBox" name="grpBookInfos"> <widget class="QGroupBox" name="grpBookInfos">
<property name="title"> <property name="title">
<string>Information sur le livre</string> <string>Book infos</string>
</property> </property>
<layout class="QFormLayout" name="formLayout_3"> <layout class="QFormLayout" name="formLayout_3">
<property name="leftMargin"> <property name="leftMargin">
@ -48,7 +48,7 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="label_10"> <widget class="QLabel" name="label_10">
<property name="text"> <property name="text">
<string>Titre</string> <string>Title</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -58,7 +58,7 @@
<item row="1" column="0"> <item row="1" column="0">
<widget class="QLabel" name="label_11"> <widget class="QLabel" name="label_11">
<property name="text"> <property name="text">
<string>Sous titre</string> <string>Subtitle</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -68,7 +68,7 @@
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="label_12"> <widget class="QLabel" name="label_12">
<property name="text"> <property name="text">
<string>Série</string> <string>Serie</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -128,7 +128,7 @@
<item> <item>
<widget class="QGroupBox" name="grpAuthor"> <widget class="QGroupBox" name="grpAuthor">
<property name="title"> <property name="title">
<string>Informations sur l'auteur</string> <string>Author</string>
</property> </property>
<layout class="QFormLayout" name="formLayout_4"> <layout class="QFormLayout" name="formLayout_4">
<property name="leftMargin"> <property name="leftMargin">
@ -143,7 +143,7 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="label_15"> <widget class="QLabel" name="label_15">
<property name="text"> <property name="text">
<string>Nom</string> <string>Name</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -172,7 +172,7 @@
</widget> </widget>
<widget class="QWidget" name="lytTabSummary"> <widget class="QWidget" name="lytTabSummary">
<attribute name="title"> <attribute name="title">
<string>Résumé</string> <string>Summary</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_24"> <layout class="QVBoxLayout" name="verticalLayout_24">
<item> <item>
@ -185,13 +185,13 @@
</property> </property>
<widget class="QWidget" name="tab_14"> <widget class="QWidget" name="tab_14">
<attribute name="title"> <attribute name="title">
<string>Une phrase</string> <string>One sentance</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_5"> <layout class="QVBoxLayout" name="verticalLayout_5">
<item> <item>
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="text"> <property name="text">
<string>Résumé en une phrase</string> <string>One sentance summary</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -228,7 +228,7 @@
<item> <item>
<widget class="QPushButton" name="btnStepTwo"> <widget class="QPushButton" name="btnStepTwo">
<property name="text"> <property name="text">
<string>Suivant</string> <string>Next</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="go-next"> <iconset theme="go-next">
@ -241,7 +241,7 @@
</widget> </widget>
<widget class="QWidget" name="tab_13"> <widget class="QWidget" name="tab_13">
<attribute name="title"> <attribute name="title">
<string>Un paragraphe</string> <string>One paragraph</string>
</attribute> </attribute>
<layout class="QHBoxLayout" name="horizontalLayout_4"> <layout class="QHBoxLayout" name="horizontalLayout_4">
<item> <item>
@ -249,7 +249,7 @@
<item> <item>
<widget class="QLabel" name="label_21"> <widget class="QLabel" name="label_21">
<property name="text"> <property name="text">
<string>Résumé en une phrase</string> <string>One sentance summary</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -293,7 +293,7 @@
<item> <item>
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="label_2">
<property name="text"> <property name="text">
<string>Résumé en un paragraphe</string> <string>One paragraph summary</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -323,7 +323,7 @@
<item> <item>
<widget class="QPushButton" name="btnStepThree"> <widget class="QPushButton" name="btnStepThree">
<property name="text"> <property name="text">
<string>Suivant</string> <string>Next</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="go-next"> <iconset theme="go-next">
@ -338,7 +338,7 @@
</widget> </widget>
<widget class="QWidget" name="tabWidgetPage1"> <widget class="QWidget" name="tabWidgetPage1">
<attribute name="title"> <attribute name="title">
<string>Une page</string> <string>One page</string>
</attribute> </attribute>
<layout class="QHBoxLayout" name="horizontalLayout_7"> <layout class="QHBoxLayout" name="horizontalLayout_7">
<item> <item>
@ -346,7 +346,7 @@
<item> <item>
<widget class="QLabel" name="label_22"> <widget class="QLabel" name="label_22">
<property name="text"> <property name="text">
<string>Résumé en un paragraphe</string> <string>One paragraph summary</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -373,7 +373,7 @@
<item> <item>
<widget class="QPushButton" name="btnStepFive"> <widget class="QPushButton" name="btnStepFive">
<property name="text"> <property name="text">
<string>Suivant</string> <string>Next</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="go-next"> <iconset theme="go-next">
@ -396,7 +396,7 @@
<item> <item>
<widget class="QLabel" name="label_17"> <widget class="QLabel" name="label_17">
<property name="text"> <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> </property>
</widget> </widget>
</item> </item>
@ -416,7 +416,7 @@
</widget> </widget>
<widget class="QWidget" name="tabWidgetPage2"> <widget class="QWidget" name="tabWidgetPage2">
<attribute name="title"> <attribute name="title">
<string>4 pages</string> <string>Full</string>
</attribute> </attribute>
<layout class="QHBoxLayout" name="horizontalLayout_8"> <layout class="QHBoxLayout" name="horizontalLayout_8">
<item> <item>
@ -424,7 +424,7 @@
<item> <item>
<widget class="QLabel" name="label_23"> <widget class="QLabel" name="label_23">
<property name="text"> <property name="text">
<string>Résumé en 1 page</string> <string>One page summary</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -441,7 +441,7 @@
<item> <item>
<widget class="QPushButton" name="btnStepSeven"> <widget class="QPushButton" name="btnStepSeven">
<property name="text"> <property name="text">
<string>Suivant</string> <string>Next</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="go-next"> <iconset theme="go-next">
@ -464,7 +464,7 @@
<item> <item>
<widget class="QLabel" name="label_20"> <widget class="QLabel" name="label_20">
<property name="text"> <property name="text">
<string>Résumé complet</string> <string>Full summary</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -488,7 +488,7 @@
</widget> </widget>
<widget class="QWidget" name="lytTabPersos"> <widget class="QWidget" name="lytTabPersos">
<attribute name="title"> <attribute name="title">
<string>Personnages</string> <string>Characters</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_25"> <layout class="QVBoxLayout" name="verticalLayout_25">
<item> <item>
@ -501,7 +501,7 @@
</property> </property>
<widget class="QGroupBox" name="groupBox"> <widget class="QGroupBox" name="groupBox">
<property name="title"> <property name="title">
<string>Noms</string> <string>Names</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_8"> <layout class="QVBoxLayout" name="verticalLayout_8">
<item> <item>
@ -560,7 +560,7 @@
</property> </property>
<widget class="QWidget" name="infos"> <widget class="QWidget" name="infos">
<attribute name="title"> <attribute name="title">
<string>Informations générales</string> <string>Basic infos</string>
</attribute> </attribute>
<layout class="QFormLayout" name="formLayout"> <layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy"> <property name="fieldGrowthPolicy">
@ -569,7 +569,7 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3">
<property name="text"> <property name="text">
<string>Nom</string> <string>Name</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -606,7 +606,7 @@
<item row="4" column="0"> <item row="4" column="0">
<widget class="QLabel" name="label_6"> <widget class="QLabel" name="label_6">
<property name="text"> <property name="text">
<string>Conflit</string> <string>Conflict</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -616,7 +616,7 @@
<item row="5" column="0"> <item row="5" column="0">
<widget class="QLabel" name="label_7"> <widget class="QLabel" name="label_7">
<property name="text"> <property name="text">
<string>Epiphanie</string> <string>Epiphany</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -626,7 +626,7 @@
<item row="6" column="0"> <item row="6" column="0">
<widget class="QLabel" name="label_24"> <widget class="QLabel" name="label_24">
<property name="text"> <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> </property>
</widget> </widget>
</item> </item>
@ -636,7 +636,7 @@
<item row="7" column="0"> <item row="7" column="0">
<widget class="QLabel" name="label_8"> <widget class="QLabel" name="label_8">
<property name="text"> <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> </property>
</widget> </widget>
</item> </item>
@ -661,7 +661,7 @@
<item> <item>
<widget class="QPushButton" name="btnStepFour"> <widget class="QPushButton" name="btnStepFour">
<property name="text"> <property name="text">
<string>Suivant</string> <string>Next</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="go-next"> <iconset theme="go-next">
@ -686,7 +686,7 @@
</widget> </widget>
<widget class="QWidget" name="tab_11"> <widget class="QWidget" name="tab_11">
<attribute name="title"> <attribute name="title">
<string>Résumé</string> <string>Summary</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_17"> <layout class="QVBoxLayout" name="verticalLayout_17">
<item> <item>
@ -710,7 +710,7 @@
<item> <item>
<widget class="QPushButton" name="btnStepSix"> <widget class="QPushButton" name="btnStepSix">
<property name="text"> <property name="text">
<string>Suivant</string> <string>Next</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="go-next"> <iconset theme="go-next">
@ -735,7 +735,7 @@
</widget> </widget>
<widget class="QWidget" name="tab_12"> <widget class="QWidget" name="tab_12">
<attribute name="title"> <attribute name="title">
<string>Informations détaillées</string> <string>Detailed infos</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_9"> <layout class="QVBoxLayout" name="verticalLayout_9">
<item> <item>
@ -812,7 +812,7 @@
<item> <item>
<widget class="QPushButton" name="btnStepEight"> <widget class="QPushButton" name="btnStepEight">
<property name="text"> <property name="text">
<string>Suivant</string> <string>Next</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="go-next"> <iconset theme="go-next">
@ -832,7 +832,7 @@
</widget> </widget>
<widget class="QWidget" name="lytTabPlot"> <widget class="QWidget" name="lytTabPlot">
<attribute name="title"> <attribute name="title">
<string>Intrigues</string> <string>Plots</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_26"> <layout class="QVBoxLayout" name="verticalLayout_26">
<item> <item>
@ -842,7 +842,7 @@
</property> </property>
<widget class="QGroupBox" name="groupBox_2"> <widget class="QGroupBox" name="groupBox_2">
<property name="title"> <property name="title">
<string>Intrigues</string> <string>Plots</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_10"> <layout class="QVBoxLayout" name="verticalLayout_10">
<item> <item>
@ -943,7 +943,7 @@
</property> </property>
<widget class="QWidget" name="infos_2"> <widget class="QWidget" name="infos_2">
<attribute name="title"> <attribute name="title">
<string>Informations générales</string> <string>Basic infos</string>
</attribute> </attribute>
<layout class="QFormLayout" name="formLayout_2"> <layout class="QFormLayout" name="formLayout_2">
<property name="fieldGrowthPolicy"> <property name="fieldGrowthPolicy">
@ -952,7 +952,7 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="label_25"> <widget class="QLabel" name="label_25">
<property name="text"> <property name="text">
<string>Intrigue</string> <string>Plot</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -969,7 +969,7 @@
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="label_26"> <widget class="QLabel" name="label_26">
<property name="text"> <property name="text">
<string>Perso(s)</string> <string>Character(s)</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -986,7 +986,7 @@
<item row="4" column="0"> <item row="4" column="0">
<widget class="QLabel" name="label_28"> <widget class="QLabel" name="label_28">
<property name="text"> <property name="text">
<string>Résultat</string> <string>Result</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -1064,7 +1064,7 @@
</widget> </widget>
<widget class="QWidget" name="tab_15"> <widget class="QWidget" name="tab_15">
<attribute name="title"> <attribute name="title">
<string>Étapes de résolution</string> <string>Resolution steps</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_11"> <layout class="QVBoxLayout" name="verticalLayout_11">
<item> <item>
@ -1202,7 +1202,7 @@
</widget> </widget>
<widget class="QGroupBox" name="grpPlotSummary"> <widget class="QGroupBox" name="grpPlotSummary">
<property name="title"> <property name="title">
<string>Résumé</string> <string>Summary</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_18"> <layout class="QVBoxLayout" name="verticalLayout_18">
<item> <item>
@ -1215,17 +1215,17 @@
</property> </property>
<item> <item>
<property name="text"> <property name="text">
<string>Un paragraphe</string> <string>One paragraph</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>Une page</string> <string>One page</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>Complet</string> <string>Full</string>
</property> </property>
</item> </item>
</widget> </widget>
@ -1278,12 +1278,12 @@
</widget> </widget>
<widget class="QWidget" name="tab_5"> <widget class="QWidget" name="tab_5">
<attribute name="title"> <attribute name="title">
<string>Contexte</string> <string>Context</string>
</attribute> </attribute>
</widget> </widget>
<widget class="QWidget" name="lytTabOutline"> <widget class="QWidget" name="lytTabOutline">
<attribute name="title"> <attribute name="title">
<string>Plan</string> <string>Outline</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_27"> <layout class="QVBoxLayout" name="verticalLayout_27">
<item> <item>
@ -1300,7 +1300,7 @@
</property> </property>
<column> <column>
<property name="text"> <property name="text">
<string>Liste de scènes</string> <string>Scenes list</string>
</property> </property>
</column> </column>
<item> <item>
@ -1426,7 +1426,7 @@
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="placeholderText"> <property name="placeholderText">
<string>Nombre de mots</string> <string>Word count</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -1434,15 +1434,18 @@
</item> </item>
<item> <item>
<widget class="QLineEdit" name="txtPlanSummarySentance"> <widget class="QLineEdit" name="txtPlanSummarySentance">
<property name="text">
<string/>
</property>
<property name="placeholderText"> <property name="placeholderText">
<string>Résumé de la scène en une ligne</string> <string>One line scene summary</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_9"> <widget class="QLabel" name="label_9">
<property name="text"> <property name="text">
<string>Résumé en quelques phrases:</string> <string>Few sentences summary:</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -1532,7 +1535,7 @@
</widget> </widget>
<widget class="QWidget" name="lytTabRedac"> <widget class="QWidget" name="lytTabRedac">
<attribute name="title"> <attribute name="title">
<string>Rédaction</string> <string>Redaction</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_19"> <layout class="QVBoxLayout" name="verticalLayout_19">
<item> <item>
@ -1708,7 +1711,9 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="view-fullscreen"/> <iconset theme="view-fullscreen">
<normaloff/>
</iconset>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>F11</string> <string>F11</string>
@ -1749,7 +1754,7 @@
</property> </property>
<widget class="QWidget" name="tab_17"> <widget class="QWidget" name="tab_17">
<attribute name="title"> <attribute name="title">
<string>Scène</string> <string>Scene</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_20" stretch="0,0,0"> <layout class="QVBoxLayout" name="verticalLayout_20" stretch="0,0,0">
<property name="sizeConstraint"> <property name="sizeConstraint">
@ -1767,7 +1772,7 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="title"> <property name="title">
<string>Propriétés</string> <string>Properties</string>
</property> </property>
<property name="flat"> <property name="flat">
<bool>true</bool> <bool>true</bool>
@ -1861,7 +1866,7 @@
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="placeholderText"> <property name="placeholderText">
<string>Nombre de mots</string> <string>Word count</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -1871,7 +1876,7 @@
<item> <item>
<widget class="collapsibleGroupBox2" name="groupBox_5"> <widget class="collapsibleGroupBox2" name="groupBox_5">
<property name="title"> <property name="title">
<string>Résumé de la scène</string> <string>Scene summary</string>
</property> </property>
<property name="flat"> <property name="flat">
<bool>true</bool> <bool>true</bool>
@ -1889,7 +1894,7 @@
<string/> <string/>
</property> </property>
<property name="placeholderText"> <property name="placeholderText">
<string>Résumé de la scène en une ligne</string> <string>One line scene summary</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -1902,7 +1907,7 @@
<item> <item>
<widget class="collapsibleGroupBox2" name="groupBox_6"> <widget class="collapsibleGroupBox2" name="groupBox_6">
<property name="title"> <property name="title">
<string>Notes pour la scène</string> <string>Notes</string>
</property> </property>
<property name="flat"> <property name="flat">
<bool>true</bool> <bool>true</bool>
@ -1933,7 +1938,7 @@
<item> <item>
<widget class="QGroupBox" name="groupBox_3"> <widget class="QGroupBox" name="groupBox_3">
<property name="title"> <property name="title">
<string>Aide mémoire</string> <string>Cheat sheet</string>
</property> </property>
<property name="flat"> <property name="flat">
<bool>true</bool> <bool>true</bool>
@ -2066,7 +2071,7 @@
</property> </property>
<widget class="QMenu" name="menu_Fichier"> <widget class="QMenu" name="menu_Fichier">
<property name="title"> <property name="title">
<string>&amp;Fichier</string> <string>File</string>
</property> </property>
<addaction name="actionNouveau"/> <addaction name="actionNouveau"/>
<addaction name="actionOuvrir"/> <addaction name="actionOuvrir"/>
@ -2078,19 +2083,19 @@
</widget> </widget>
<widget class="QMenu" name="menuMode"> <widget class="QMenu" name="menuMode">
<property name="title"> <property name="title">
<string>Mo&amp;de</string> <string>Mode</string>
</property> </property>
<addaction name="actionSnowflakeMode"/> <addaction name="actionSnowflakeMode"/>
</widget> </widget>
<widget class="QMenu" name="menu_Aide"> <widget class="QMenu" name="menu_Aide">
<property name="title"> <property name="title">
<string>&amp;Aide</string> <string>Help</string>
</property> </property>
<addaction name="actShowHelp"/> <addaction name="actShowHelp"/>
</widget> </widget>
<widget class="QMenu" name="menuTools"> <widget class="QMenu" name="menuTools">
<property name="title"> <property name="title">
<string>&amp;Outlis</string> <string>Tools</string>
</property> </property>
<addaction name="actSpellcheck"/> <addaction name="actSpellcheck"/>
</widget> </widget>
@ -2107,7 +2112,7 @@
</iconset> </iconset>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Ouvrir</string> <string>Open</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+O</string> <string>Ctrl+O</string>
@ -2120,7 +2125,7 @@
</iconset> </iconset>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Récents</string> <string>Recents</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+R</string> <string>Ctrl+R</string>
@ -2133,7 +2138,7 @@
</iconset> </iconset>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Enregistrer</string> <string>Save</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+S</string> <string>Ctrl+S</string>
@ -2146,7 +2151,7 @@
</iconset> </iconset>
</property> </property>
<property name="text"> <property name="text">
<string>Enregistrer &amp;sous...</string> <string>Save as...</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+Shift+S</string> <string>Ctrl+Shift+S</string>
@ -2159,7 +2164,7 @@
</iconset> </iconset>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Quitter</string> <string>Quit</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+Q</string> <string>Ctrl+Q</string>
@ -2183,7 +2188,7 @@
</iconset> </iconset>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Nouveau</string> <string>New</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+N</string> <string>Ctrl+N</string>
@ -2202,7 +2207,7 @@
</iconset> </iconset>
</property> </property>
<property name="text"> <property name="text">
<string>Afficher les &amp;bulles d'aide</string> <string>Show help texts</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+Shift+B</string> <string>Ctrl+Shift+B</string>
@ -2216,20 +2221,17 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="tools-check-spelling"/> <iconset theme="tools-check-spelling">
<normaloff/>
</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>Correcteur ortographique</string> <string>Spellcheck</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>F8</string> <string>F8</string>
</property> </property>
</action> </action>
<action name="actSpellcheckDict">
<property name="text">
<string>Dictionnaire</string>
</property>
</action>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget> <customwidget>

View file

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