diff --git a/i18n/manuskript_fr.qm b/i18n/manuskript_fr.qm index f581ca9..8babc02 100644 Binary files a/i18n/manuskript_fr.qm and b/i18n/manuskript_fr.qm differ diff --git a/i18n/manuskript_fr.ts b/i18n/manuskript_fr.ts index 9bf0b77..1481736 100644 --- a/i18n/manuskript_fr.ts +++ b/i18n/manuskript_fr.ts @@ -1,6 +1,6 @@ - + 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