From 7a05bd67980713252394888c4fd0bbdcaf85c23a Mon Sep 17 00:00:00 2001 From: Olivier Keshavjee Date: Fri, 5 Feb 2016 12:09:25 +0100 Subject: [PATCH] Minor changes --- i18n/manuskript_fr.qm | Bin 42758 -> 43288 bytes i18n/manuskript_fr.ts | 299 ++++++++++++++++-------------- makefile | 3 +- src/main.py | 2 +- src/ui/editors/editorWidget_ui.py | 6 +- 5 files changed, 163 insertions(+), 147 deletions(-) diff --git a/i18n/manuskript_fr.qm b/i18n/manuskript_fr.qm index f581ca94c306d5267977f06c2151161f0f74175f..8babc02c7e3115590551ecb66a60e2e6d814e79b 100644 GIT binary patch delta 4744 zcmYk92~-qU7KSg~Rn=Q{H^?GUL{xA^MQ}qUCW3$nD2pJgG@F18DBUWcQYa{^3UK4WUjl^Aqq1p=K+9HYE$1~O%z@SU9j0LtID3RpE2FkF( zbtj^5GjTt-6X~LedoZ6!@4+}Qi7~M&W6nXwyj{fo?16c4#Jx!bmw@|-%B~PU;0lpP zXW~b^BbqpiG58P0IIj*$MANRZ0Yf3Y}jXvSOO$8RC(G@5w-#b7$| zfy2P_j7k5cF`D?`kKtm>4}L*p+l%I*d8(h#@*e5d1`+kWP9D3i6Ma@h-gmr+2HKE+TRoA+l>*8~ z5f%7Qz@{&VQrA=9TyKc>AO#&cM5NqE!6V*6D=#TH;0Ro=rw|UID;r56!xs|OdQnJP zAvBXmAuWp$A{m87zkz1{PEy!WEIhcH!t;+3*$iPEe3UUUkTK^0Me@mrVFP1`4`bX6 z#-z@S#@>wCw-}{G6j^ctA$mnqvOwF#G{uO0Dgr605}uAL=6D@j`NEDq;C7lL>w`ko`6H!eU+T0B;A2gk| z^pztNt7+G`xd`pov}<=B@;}9&njLeA=0BpZ(r=>(J)-Y_dJ31-GMZ}W`^UCKmc4Y3 zgCQkmx}O70ShZUX6qgaLs$oL$had%|XXSHDCtFnv^u}&+I72dr;G<%M$D5DA0?SZVkaTW^IW7*c(Phj|9 z*|x4FL?bWBwwp?cCT)~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qJVRI;8R(_107@u;Q4ydIQdT zL7%$18#&$(qTVqIf%w&^57d1I_kXGW!W!4I@p1J@2^2QXVw_Z?)}3p#qwTuhyFfMG@G#-Oj(rPrvaE;K&2u<5|C?o9Cv|Ysaw0Vry zK8(wpG(RkccNRx#elEs*M%OfdMgD-wdRO!M&UZx1bZ0bgQUdXithE~s50nhm+Fif` z{B5nn+a@%RA88%O>8 - + MainWindow @@ -219,12 +219,12 @@ Rédaction - + Tools Outils - + Cheat sheet Aide-mémoire @@ -249,17 +249,17 @@ Fichier - + Help Aide - + Open Ouvrir - + Ctrl+O @@ -269,57 +269,57 @@ Récents - + Save Enregistrer - + Ctrl+S Ctrl+S - + Save as... Enregistrer sous... - + Ctrl+Shift+S - + Quit Quitter - + Ctrl+Q - + Show help texts Montrer les bulles d'aides - + Ctrl+Shift+B - + Spellcheck Correcteur orthographique - + F8 - + Mode Mode @@ -329,17 +329,17 @@ Labels - + Edit Édition - + Labels... Labels... - + Status... Status... @@ -364,12 +364,12 @@ Cartes - + View Vue - + F9 F9 @@ -379,22 +379,22 @@ Arbre - + Normal Normal - + Simple Simple - + Fractal Fractal - + Settings Réglages @@ -404,17 +404,17 @@ Compilation - + Close project Fermer le projet - + Search Recherche - + F6 F6 @@ -451,167 +451,167 @@ The file {} does not exist. Try again. - Le fichier {} n'existe pas. Essayez encore. + Le fichier {} n'existe pas. Essayez encore. Project {} saved. - Le projet {} a été enregistré. + Le projet {} a été enregistré. Project {} loaded. - Le projet {} a été chargé. + Le projet {} a été chargé. Project {} loaded with some errors: - Le projet {} a été chargé, avec des erreurs: + Le projet {} a été chargé, avec des erreurs: * {} wasn't found in project file. - * {} n'a pas été trouvé dans le fichier du projet. + * {} n'a pas été trouvé dans le fichier du projet. Project {} loaded with some errors. - Le projet {} a été chargé avec des erreurs. + Le projet {} a été chargé avec des erreurs. (~{} pages) - (~{} pages) + (~{} pages) Words: {}{} - Mots: {}{} + Mots: {}{} Book summary - + Résumé du livre Project tree - + Arborescence Metadata - Métadonnées + Métadonnées Enter infos about your book, and yourself. - Entrez toutes les informations relatives au livre, ainsi qu'à vous. + Entrez toutes les informations relatives au livre, ainsi qu'à vous. The basic situation, in the form of a 'What if...?' question. Ex: 'What if the most dangerous evil wizard could wasn't abled to kill a baby?' (Harry Potter) - La situation de base, sous la forme d'une question: "Et si...?" Par exemple: "Et si le plus dangereux magiciens mauvais n'était pas capable de tuer un bébé?" (Harry Potter) + La situation de base, sous la forme d'une question: "Et si...?" Par exemple: "Et si le plus dangereux magiciens mauvais n'était pas capable de tuer un bébé?" (Harry Potter) 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. - 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. + 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. Create your characters. - Créez ici vos personnage. + Créez ici vos personnage. Develop plots. - Développez vos intrigues. + Développez vos intrigues. Create the outline of your masterpiece. - Créez le plan de votre chef-d'œuvre. + Créez le plan de votre chef-d'œuvre. Write. - Écrivez. + Écrivez. Debug infos. Sometimes useful. - Des infos pour débugger des fois pendant qu'on code c'est utile. + Des infos pour débugger des fois pendant qu'on code c'est utile. Dictionary - Dictionnaire + Dictionnaire Install PyEnchant to use spellcheck - Installez PyEnchant pour profiter du correcteur orthographique + Installez PyEnchant pour profiter du correcteur orthographique Nothing - Rien + Rien POV - POV + POV Label - Label + Label Progress - Progrès + Progrès Icon color - Couleur de l'icone + Couleur de l'icone Text color - Couleur du texte + Couleur du texte Background color - Couleur de l'arrière-plan + Couleur de l'arrière-plan Icon - Icone + Icone Text - Texte + Texte Background - Arrière-plan + Arrière-plan Border - Bordure + Bordure Corner - Coin + Coin @@ -1141,7 +1141,7 @@ des lignes: SpellAction - + Spelling Suggestions Suggestions @@ -1149,12 +1149,12 @@ des lignes: app - + Loaded transation: {}. Traduction chargée: {}. - + Failed to load translator for {}... La traduction pour {} n'a pas pu être chargée... @@ -1289,7 +1289,7 @@ des lignes: Dock Widgets Toolbar - + @@ -1623,47 +1623,47 @@ des lignes: outlineModel - + Title Titre - + POV POV - + Label Label - + Status Status - + Compile Compilation - + Word count Nombre de mots - + Goal Goal - + {} words / {} ({}) {} mots / {} ({}) - + {} words {} mots @@ -2017,67 +2017,67 @@ des lignes: references - + Unknown reference: {}. Référence inconnue: {}. - + Text: <b>{}</b> Texte: <b>{}</b> - + Character: <b>{}</b> Personnage: <b>{}</b> - + Basic infos Informations générales - + Detailed infos Informations détaillées - + POV of: POV de: - + Referenced in: Référencé dans: - + Motivation Motivation - + Goal Goal - + Conflict Conflit - + Epiphany Épiphanie - + Short summary Résumé court - + Longer summary Résumé long @@ -2122,52 +2122,52 @@ des lignes: Notes: - + Not a reference: {}. Pas une référence: {}. - + Go to {}. Aller à {}. - + Description Description - + Result Résultat - + Characters Personnages - + Resolution steps Étapes de résolution - + Plot: <b>{}</b> Intrigue: <b>{}</b> - + Passion Passion - + World: <b>{name}</b>{path} Monde: <b>{name}</b>{path} - + <b>Unknown reference:</b> {}. <b>Référence inconnue:</b> {}. @@ -2180,37 +2180,37 @@ des lignes: Form - + Restore Restaurer - + Delete Supprimer - + 1 day ago Il y a un jour - + {} days ago Il y a {} jours - + {} hours ago Il y a {} heures - + {} minutes ago Il y a {} minutes - + {} seconds ago Il y a {} secondes @@ -2220,30 +2220,45 @@ des lignes: Options - + Show modifications Montrer les modifications - + Show ancient version Montrer la version ancienne - + Show spaces Montrer les espaces - + Show modifications only Montrer les modifications seulement - + Line {}: Ligne {}: + + + {} years ago + Il y a {} ans + + + + {} months ago + Il y a {} mois + + + + Clear all + Effacer tout + settingsWindow @@ -2413,37 +2428,37 @@ des lignes: - + Templates Modèles - + Empty Vide - + Novel Roman - + Novella Nouvelle - + Short Story - + Histoire courte - + Research paper - + Demo projects Projets de démonstration @@ -2478,107 +2493,107 @@ des lignes: Créer - + Open project Ouvrir le projet - + Manuskript project (*.msk) Projet Manuskript (*.msk) - + Save project as... Enregistrer le projer sous... - + Create New Project Créer un nouveau projet - + Chapter Chapitre - + Scene Scène - + Trilogy Trilogie - + Book Livre - + Section Section - + words each. mots chacun(e). - + of de - + Text Texte - + Something Quelque chose - + <b>Total:</b> {} words (~ {} pages) <b>Total:</b> {} mots (~ {} pages) - + Idea Idée - + Note Note - + Research Recherche - + TODO TODO - + First draft Premier brouillon - + Second draft Second brouillon - + Final Final @@ -2588,17 +2603,17 @@ des lignes: Type de texte par défaut: - + Txt2Tags Txt2Tags - + Rich Text (html) Texte riche (html) - + Plain Text Texte simple diff --git a/makefile b/makefile index e56fa9e..e423f96 100644 --- a/makefile +++ b/makefile @@ -27,7 +27,8 @@ translation: pylupdate5 -noobsolete i18n/manuskript.pro linguist: - linguist i18n/manuskript_fr.ts + linguist i18n/manuskript_fr.ts + lrelease i18n/manuskript_fr.ts i18n: $(QMs) diff --git a/src/main.py b/src/main.py index cb5058c..068028d 100644 --- a/src/main.py +++ b/src/main.py @@ -26,7 +26,7 @@ def run(): #if qtTranslator.load("qt_" + locale): #app.installTranslator(qtTranslator) appTranslator = QTranslator() - if appTranslator.load("i18n/manuskript_{}.qm".format(locale)): + if appTranslator.load(appPath("i18n/manuskript_{}.qm").format(locale)): app.installTranslator(appTranslator) print(app.tr("Loaded transation: {}.").format(locale)) else: diff --git a/src/ui/editors/editorWidget_ui.py b/src/ui/editors/editorWidget_ui.py index aa93edd..2e29028 100644 --- a/src/ui/editors/editorWidget_ui.py +++ b/src/ui/editors/editorWidget_ui.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'src/ui/editors/editorWidget_ui.ui' # -# Created by: PyQt5 UI code generator 5.4.1 +# Created by: PyQt5 UI code generator 5.4.2 # # WARNING! All changes made in this file will be lost! @@ -29,8 +29,8 @@ class Ui_editorWidget_ui(object): self.folder = QtWidgets.QWidget() self.folder.setObjectName("folder") self.verticalLayout = QtWidgets.QVBoxLayout(self.folder) - self.verticalLayout.setSpacing(0) self.verticalLayout.setContentsMargins(0, 0, 0, 0) + self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName("verticalLayout") self.scroll = QtWidgets.QScrollArea(self.folder) self.scroll.setAutoFillBackground(True) @@ -70,6 +70,6 @@ class Ui_editorWidget_ui(object): _translate = QtCore.QCoreApplication.translate editorWidget_ui.setWindowTitle(_translate("editorWidget_ui", "Form")) -from ui.views.textEditView import textEditView from ui.views.corkView import corkView from ui.views.outlineView import outlineView +from ui.views.textEditView import textEditView