[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [krita] plugins/python: i18n fixes
From:       Pino Toscano <null () kde ! org>
Date:       2018-06-15 21:28:28
Message-ID: E1fTwGi-0004VH-LV () code ! kde ! org
[Download RAW message or body]

Git commit 1e33bc1456f56ff2213c77739557a4473c3b3782 by Pino Toscano.
Committed on 15/06/2018 at 21:28.
Pushed by pino into branch 'master'.

i18n fixes

- translate visibile strings in Python plugins
- avoid string puzzles
- avoid contractions ("don't" -> "do not", etc)
- avoid extra exclamation marks, since it is not a game
- style fixes
- spell "JSON", and "URL" correctly

M  +2    -2    plugins/python/assignprofiledialog/assignprofiledialog.py
M  +2    -2    plugins/python/colorspace/colorspace.py
M  +8    -8    plugins/python/colorspace/uicolorspace.py
M  +19   -19   plugins/python/comics_project_management_tools/comics_export_dialog.py
M  +10   -10   plugins/python/comics_project_management_tools/comics_exporter.py
M  +9    -9    plugins/python/comics_project_management_tools/comics_metadata_dialog.py
 M  +8    -8    plugins/python/comics_project_management_tools/comics_project_manager_docker.py
 M  +8    -8    plugins/python/comics_project_management_tools/comics_project_settings_dialog.py
 M  +11   -11   plugins/python/comics_project_management_tools/comics_project_setup_wizard.py
 M  +4    -4    plugins/python/comics_project_management_tools/comics_template_dialog.py
 M  +2    -2    plugins/python/documenttools/documenttools.py
M  +5    -5    plugins/python/documenttools/uidocumenttools.py
M  +2    -2    plugins/python/exportlayers/exportlayers.py
M  +17   -17   plugins/python/exportlayers/uiexportlayers.py
M  +2    -2    plugins/python/filtermanager/filtermanager.py
M  +3    -3    plugins/python/filtermanager/uifiltermanager.py
M  +5    -5    plugins/python/highpass/highpass.py
M  +1    -1    plugins/python/scripter/scripter.py
M  +3    -3    plugins/python/tenbrushes/tenbrushes.py
M  +1    -1    plugins/python/tenbrushes/uitenbrushes.py
M  +5    -5    plugins/python/tenscripts/tenscripts.py
M  +4    -4    plugins/python/tenscripts/uitenscripts.py

https://commits.kde.org/krita/1e33bc1456f56ff2213c77739557a4473c3b3782

diff --git a/plugins/python/assignprofiledialog/assignprofiledialog.py \
b/plugins/python/assignprofiledialog/assignprofiledialog.py index \
                36e57198f58..443a4dde592 100644
--- a/plugins/python/assignprofiledialog/assignprofiledialog.py
+++ b/plugins/python/assignprofiledialog/assignprofiledialog.py
@@ -23,7 +23,7 @@ class AssignProfileDialog(Extension):
     def assignProfile(self):
         doc = Application.activeDocument()
         if doc is None:
-            QMessageBox.information(Application.activeWindow().qwindow(), "Assign \
Profile", "There is no active document.") +            \
QMessageBox.information(Application.activeWindow().qwindow(), i18n("Assign Profile"), \
i18n("There is no active document."))  return
 
         self.dialog = QDialog(Application.activeWindow().qwindow())
@@ -53,7 +53,7 @@ class AssignProfileDialog(Extension):
         pass
 
     def createActions(self, window):
-        action = window.createAction("assing_profile_to_image", "Assign Profile to \
Image") +        action = window.createAction("assing_profile_to_image", i18n("Assign \
Profile to Image"))  action.triggered.connect(self.assignProfile)
 
 
diff --git a/plugins/python/colorspace/colorspace.py \
b/plugins/python/colorspace/colorspace.py index 3d4c4bd8abb..fc5a4ab7103 100644
--- a/plugins/python/colorspace/colorspace.py
+++ b/plugins/python/colorspace/colorspace.py
@@ -22,8 +22,8 @@ class ColorSpaceExtension(krita.Extension):
         pass
 
     def createActions(self, window):
-        action = window.createAction("color_space", "Color Space")
-        action.setToolTip("Plugin to change color space to selected documents")
+        action = window.createAction("color_space", i18n("Color Space"))
+        action.setToolTip(i18n("Plugin to change color space of selected \
documents."))  action.triggered.connect(self.initialize)
 
     def initialize(self):
diff --git a/plugins/python/colorspace/uicolorspace.py \
b/plugins/python/colorspace/uicolorspace.py index f7c9a8378e4..d757a190f32 100644
--- a/plugins/python/colorspace/uicolorspace.py
+++ b/plugins/python/colorspace/uicolorspace.py
@@ -28,7 +28,7 @@ class UIColorSpace(object):
         self.mainLayout = QVBoxLayout(self.mainDialog)
         self.formLayout = QFormLayout()
         self.documentLayout = QVBoxLayout()
-        self.refreshButton = QPushButton(QIcon(':/icons/refresh.svg'), "Refresh")
+        self.refreshButton = QPushButton(QIcon(':/icons/refresh.svg'), \
i18n("Refresh"))  self.widgetDocuments = QListWidget()
         self.colorModelComboBox = colormodelcombobox.ColorModelComboBox(self)
         self.colorDepthComboBox = colordepthcombobox.ColorDepthComboBox(self)
@@ -58,10 +58,10 @@ class UIColorSpace(object):
         self.documentLayout.addWidget(self.widgetDocuments)
         self.documentLayout.addWidget(self.refreshButton)
 
-        self.formLayout.addRow('Documents', self.documentLayout)
-        self.formLayout.addRow('Color Model', self.colorModelComboBox)
-        self.formLayout.addRow('Color Depth', self.colorDepthComboBox)
-        self.formLayout.addRow('Color Profile', self.colorProfileComboBox)
+        self.formLayout.addRow(i18n("Documents:"), self.documentLayout)
+        self.formLayout.addRow(i18n("Color model:"), self.colorModelComboBox)
+        self.formLayout.addRow(i18n("Color depth:"), self.colorDepthComboBox)
+        self.formLayout.addRow(i18n("Color profile:"), self.colorProfileComboBox)
 
         self.line = QFrame()
         self.line.setFrameShape(QFrame.HLine)
@@ -72,7 +72,7 @@ class UIColorSpace(object):
         self.mainLayout.addWidget(self.buttonBox)
 
         self.mainDialog.resize(500, 300)
-        self.mainDialog.setWindowTitle("Color Space")
+        self.mainDialog.setWindowTitle(i18n("Color Space"))
         self.mainDialog.setSizeGripEnabled(True)
         self.mainDialog.show()
         self.mainDialog.activateWindow()
@@ -117,9 +117,9 @@ class UIColorSpace(object):
         self.msgBox = QMessageBox(self.mainDialog)
         if selectedDocuments:
             self.convertColorSpace(selectedDocuments)
-            self.msgBox.setText("The selected documents has been converted.")
+            self.msgBox.setText(i18n("The selected documents has been converted."))
         else:
-            self.msgBox.setText("Select at least one document.")
+            self.msgBox.setText(i18n("Select at least one document."))
         self.msgBox.exec_()
 
     def convertColorSpace(self, documents):
diff --git a/plugins/python/comics_project_management_tools/comics_export_dialog.py \
b/plugins/python/comics_project_management_tools/comics_export_dialog.py index \
                2d69c7680b5..4e77a45aed0 100644
--- a/plugins/python/comics_project_management_tools/comics_export_dialog.py
+++ b/plugins/python/comics_project_management_tools/comics_export_dialog.py
@@ -40,10 +40,10 @@ class comic_export_resize_widget(QGroupBox):
     def __init__(self, configName, batch=False, fileType=True):
         super().__init__()
         self.configName = configName
-        self.setTitle("Adjust Workingfile")
+        self.setTitle(i18n("Adjust Working File"))
         formLayout = QFormLayout()
         self.setLayout(formLayout)
-        self.crop = QCheckBox(i18n("Crop files before resize."))
+        self.crop = QCheckBox(i18n("Crop files before resize"))
         self.cmbFile = QComboBox()
         self.cmbFile.addItems(["png", "jpg", "webp"])
         self.resizeMethod = QComboBox()
@@ -217,7 +217,7 @@ class comic_export_setting_dialog(QDialog):
     def __init__(self):
         super().__init__()
         self.setLayout(QVBoxLayout())
-        self.setWindowTitle(i18n("Export settings"))
+        self.setWindowTitle(i18n("Export Settings"))
         buttons = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel)
 
         buttons.accepted.connect(self.accept)
@@ -230,14 +230,14 @@ class comic_export_setting_dialog(QDialog):
         # Set which layers to remove before export.
         mainExportSettings = QWidget()
         mainExportSettings.setLayout(QVBoxLayout())
-        groupExportCrop = QGroupBox(i18n("Crop settings"))
+        groupExportCrop = QGroupBox(i18n("Crop Settings"))
         formCrop = QFormLayout()
         groupExportCrop.setLayout(formCrop)
         self.chk_toOutmostGuides = QCheckBox(i18n("Crop to outmost guides"))
         self.chk_toOutmostGuides.setChecked(True)
         self.chk_toOutmostGuides.setToolTip(i18n("This will crop to the outmost \
guides if possible and otherwise use the underlying crop settings."))  \
                formCrop.addRow("", self.chk_toOutmostGuides)
-        btn_fromSelection = QPushButton(i18n("Set margins from active selection"))
+        btn_fromSelection = QPushButton(i18n("Set Margins from Active Selection"))
         btn_fromSelection.clicked.connect(self.slot_set_margin_from_selection)
         # This doesn't work.
         formCrop.addRow("", btn_fromSelection)
@@ -281,11 +281,11 @@ class comic_export_setting_dialog(QDialog):
         self.CBZgroupResize = comic_export_resize_widget("CBZ")
         CBZexportSettings.layout().addWidget(self.CBZgroupResize)
         self.CBZactive.clicked.connect(self.CBZgroupResize.setEnabled)
-        CBZgroupMeta = QGroupBox(i18n("Metadata to add"))
+        CBZgroupMeta = QGroupBox(i18n("Metadata to Add"))
         # CBZexportSettings.layout().addWidget(CBZgroupMeta)
         CBZgroupMeta.setLayout(QFormLayout())
 
-        mainWidget.addTab(CBZexportSettings, "CBZ")
+        mainWidget.addTab(CBZexportSettings, i18n("CBZ"))
 
         # ACBF, crop, resize, creator name, version history, panel layer, text \
layers.  ACBFExportSettings = QWidget()
@@ -297,25 +297,25 @@ class comic_export_setting_dialog(QDialog):
         self.lnACBFSource = QLineEdit()
         self.lnACBFSource.setToolTip(i18n("Whether the acbf file is an adaption of \
an existing source, and if so, how to find information about that source. So for \
example, for an adapted webcomic, the official website url should go here."))  \
                self.lnACBFID = QLabel()
-        self.lnACBFID.setToolTip(i18n("By default this will be filled with a \
generated universal unique identifier. The ID by itself is merely so that comic book \
library management programs can figure out if this particular comic is already in \
their database and whether it has been rated. Of course, the UUID can be changed into \
something else by manually changing the json, but this is advanced usage.")) +        \
self.lnACBFID.setToolTip(i18n("By default this will be filled with a generated \
universal unique identifier. The ID by itself is merely so that comic book library \
management programs can figure out if this particular comic is already in their \
database and whether it has been rated. Of course, the UUID can be changed into \
something else by manually changing the JSON, but this is advanced usage."))  \
self.spnACBFVersion = QSpinBox()  self.ACBFhistoryModel = QStandardItemModel()
         acbfHistoryList = QListView()
         acbfHistoryList.setModel(self.ACBFhistoryModel)
-        btn_add_history = QPushButton(i18n("Add history entry"))
+        btn_add_history = QPushButton(i18n("Add History Entry"))
         btn_add_history.clicked.connect(self.slot_add_history_item)
         self.chkIncludeTranslatorComments = QCheckBox()
-        self.chkIncludeTranslatorComments.setText(i18n("Include Translator's \
Comments")) +        self.chkIncludeTranslatorComments.setText(i18n("Include \
translator's comments"))  self.chkIncludeTranslatorComments.setToolTip(i18n("A PO \
file can contain translator's comments. If this is checked, the translations comments \
will be added as references into the ACBF file."))  self.lnTranslatorHeader = \
QLineEdit()  
         ACBFform.addRow(i18n("Source:"), self.lnACBFSource)
         ACBFform.addRow(i18n("ACBF UID:"), self.lnACBFID)
         ACBFform.addRow(i18n("Version:"), self.spnACBFVersion)
-        ACBFform.addRow(i18n("Version History:"), acbfHistoryList)
+        ACBFform.addRow(i18n("Version history:"), acbfHistoryList)
         ACBFform.addRow("", btn_add_history)
         ACBFform.addRow("", self.chkIncludeTranslatorComments)
-        ACBFform.addRow(i18n("Translator Header:"), self.lnTranslatorHeader)
+        ACBFform.addRow(i18n("Translator header:"), self.lnTranslatorHeader)
 
         ACBFAuthorInfo = QWidget()
         acbfAVbox = QVBoxLayout(ACBFAuthorInfo)
@@ -333,10 +333,10 @@ class comic_export_setting_dialog(QDialog):
         self.ACBFauthorTable.verticalHeader().setSectionsMovable(True)
         self.ACBFauthorTable.verticalHeader().sectionMoved.connect(self.slot_reset_author_row_visual)
  AuthorButtons = QHBoxLayout()
-        btn_add_author = QPushButton(i18n("Add author"))
+        btn_add_author = QPushButton(i18n("Add Author"))
         btn_add_author.clicked.connect(self.slot_add_author)
         AuthorButtons.addWidget(btn_add_author)
-        btn_remove_author = QPushButton(i18n("Remove author"))
+        btn_remove_author = QPushButton(i18n("Remove Author"))
         btn_remove_author.clicked.connect(self.slot_remove_author)
         AuthorButtons.addWidget(btn_remove_author)
         acbfAVbox.addLayout(AuthorButtons)
@@ -349,7 +349,7 @@ class comic_export_setting_dialog(QDialog):
         ACBFStyle.layout().addWidget(self.ACBFStyleClass)
         ACBFStyleEdit = QWidget()
         ACBFStyleEditVB = QVBoxLayout(ACBFStyleEdit)
-        self.ACBFuseFont = QCheckBox(i18n("Use Font"))
+        self.ACBFuseFont = QCheckBox(i18n("Use font"))
         self.ACBFFontList = QListView()
         self.ACBFFontList.setItemDelegate(font_list_delegate())
         self.ACBFuseFont.toggled.connect(self.font_slot_enable_font_view)
@@ -411,7 +411,7 @@ class comic_export_setting_dialog(QDialog):
         self.EPUBgroupResize = comic_export_resize_widget("EPUB")
         EPUBexportSettings.layout().addWidget(self.EPUBgroupResize)
         self.EPUBactive.clicked.connect(self.EPUBgroupResize.setEnabled)
-        mainWidget.addTab(EPUBexportSettings, "EPUB")
+        mainWidget.addTab(EPUBexportSettings, i18n("EPUB"))
 
         # For Print. Crop, no resize.
         TIFFExportSettings = QWidget()
@@ -421,12 +421,12 @@ class comic_export_setting_dialog(QDialog):
         self.TIFFgroupResize = comic_export_resize_widget("TIFF")
         TIFFExportSettings.layout().addWidget(self.TIFFgroupResize)
         self.TIFFactive.clicked.connect(self.TIFFgroupResize.setEnabled)
-        mainWidget.addTab(TIFFExportSettings, "TIFF")
+        mainWidget.addTab(TIFFExportSettings, i18n("TIFF"))
 
         # SVG, crop, resize, embed vs link.
         #SVGExportSettings = QWidget()
 
-        #mainWidget.addTab(SVGExportSettings, "SVG")
+        #mainWidget.addTab(SVGExportSettings, i18n("SVG"))
 
     """
     Add a history item to the acbf version history list.
@@ -434,7 +434,7 @@ class comic_export_setting_dialog(QDialog):
 
     def slot_add_history_item(self):
         newItem = QStandardItem()
-        newItem.setText("v" + str(self.spnACBFVersion.value()) + "-" + i18n("in this \
version...")) +        newItem.setText(str(i18n("v{version}-in this \
version...")).format(version=str(self.spnACBFVersion.value())))  \
self.ACBFhistoryModel.appendRow(newItem)  
     """
diff --git a/plugins/python/comics_project_management_tools/comics_exporter.py \
b/plugins/python/comics_project_management_tools/comics_exporter.py index \
                6b54f58d08b..9d9856f9b4b 100644
--- a/plugins/python/comics_project_management_tools/comics_exporter.py
+++ b/plugins/python/comics_project_management_tools/comics_exporter.py
@@ -146,8 +146,8 @@ class comicsExporter():
                     sizesList["TIFF"] = self.configDictionary["TIFF"]
             # Export the pngs according to the sizeslist.
             # Create a progress dialog.
-            self.progress = QProgressDialog("Preparing export.", str(), 0, \
                lengthProcess)
-            self.progress.setWindowTitle("Exporting comic...")
+            self.progress = QProgressDialog(i18n("Preparing export."), str(), 0, \
lengthProcess) +            self.progress.setWindowTitle(i18n("Exporting Comic..."))
             self.progress.setCancelButton(None)
             self.timer = QElapsedTimer()
             self.timer.start()
@@ -165,7 +165,7 @@ class comicsExporter():
                     self.acbfLocation = str(exportPath / "metadata" / str(title + \
".acbf"))  
                     locationStandAlone = str(exportPath / str(title + ".acbf"))
-                    self.progress.setLabelText("Saving out ACBF and\nACBF \
standalone") +                    self.progress.setLabelText(i18n("Saving out ACBF \
and\nACBF standalone"))  self.progress.setValue(self.progress.value()+2)
                     export_success = exporters.ACBF.write_xml(self.configDictionary, \
self.acbfPageData, self.pagesLocationList["CBZ"], self.acbfLocation, \
locationStandAlone, self.projectURL)  print("CPMT: Exported to ACBF", export_success)
@@ -176,12 +176,12 @@ class comicsExporter():
                     export_success = self.export_to_cbz(exportPath)
                     print("CPMT: Exported to CBZ", export_success)
                 if "EPUB" in sizesList.keys():
-                    self.progress.setLabelText("Saving out EPUB")
+                    self.progress.setLabelText(i18n("Saving out EPUB"))
                     self.progress.setValue(self.progress.value()+1)
                     export_success = exporters.EPUB.export(self.configDictionary, \
self.projectURL, self.pagesLocationList["EPUB"])  print("CPMT: Exported to EPUB", \
export_success)  else:
-            QMessageBox.warning(self, i18n("Export not possible"), i18n("Nothing to \
export,\nurl not set."), QMessageBox.Ok) +            QMessageBox.warning(self, \
i18n("Export not Possible"), i18n("Nothing to export, URL not set."), QMessageBox.Ok) \
print("CPMT: Nothing to export, url not set.")  
         return export_success
@@ -194,12 +194,12 @@ class comicsExporter():
         title = self.configDictionary["projectName"]
         if "title" in self.configDictionary.keys():
             title = self.configDictionary["title"]
-        self.progress.setLabelText("Saving out CoMet\nmetadata file")
+        self.progress.setLabelText(i18n("Saving out CoMet\nmetadata file"))
         self.progress.setValue(self.progress.value()+1)
         self.cometLocation = str(exportPath / "metadata" / str(title + " \
                CoMet.xml"))
         export_success = exporters.CoMet.write_xml(self.configDictionary, \
                self.pagesLocationList["CBZ"], self.cometLocation)
         self.comicRackInfo = str(exportPath / "metadata" / "ComicInfo.xml")
-        self.progress.setLabelText("Saving out Comicrack\nmetadata file")
+        self.progress.setLabelText(i18n("Saving out Comicrack\nmetadata file"))
         self.progress.setValue(self.progress.value()+1)
         export_success = exporters.comic_rack_xml.write_xml(self.configDictionary, \
self.pagesLocationList["CBZ"], self.comicRackInfo)  self.package_cbz(exportPath)
@@ -374,7 +374,7 @@ class comicsExporter():
             print("CPMT: Export has finished. If there are memory leaks, they are \
caused by file layers.")  return True
         print("CPMT: Export not happening because there aren't any pages.")
-        QMessageBox.warning(self, i18n("Export not possible"), i18n("Export not \
happening because\nthere aren't any pages."), QMessageBox.Ok) +        \
QMessageBox.warning(self, i18n("Export not Possible"), i18n("Export not happening \
because there are no pages."), QMessageBox.Ok)  return False
 
     """
@@ -631,7 +631,7 @@ class comicsExporter():
         cbzArchive.write(self.cometLocation, Path(self.cometLocation).name)
         cbzArchive.write(self.comicRackInfo, Path(self.comicRackInfo).name)
         comic_book_info_json_dump = str()
-        self.progress.setLabelText("Saving out Comicbook\ninfo metadata file")
+        self.progress.setLabelText(i18n("Saving out Comicbook\ninfo metadata file"))
         self.progress.setValue(self.progress.value()+1)
         comic_book_info_json_dump = \
exporters.comic_book_info.writeJson(self.configDictionary)  cbzArchive.comment = \
comic_book_info_json_dump.encode("utf-8") @@ -641,7 +641,7 @@ class comicsExporter():
             for page in self.pagesLocationList["CBZ"]:
                 if (Path(page).exists()):
                     cbzArchive.write(page, Path(page).name)
-        self.progress.setLabelText("Packaging CBZ")
+        self.progress.setLabelText(i18n("Packaging CBZ"))
         self.progress.setValue(self.progress.value()+1)
         # Close the zip file when done.
         cbzArchive.close()
diff --git a/plugins/python/comics_project_management_tools/comics_metadata_dialog.py \
b/plugins/python/comics_project_management_tools/comics_metadata_dialog.py index \
                c8fed7de9b1..d1cf198a697 100644
--- a/plugins/python/comics_project_management_tools/comics_metadata_dialog.py
+++ b/plugins/python/comics_project_management_tools/comics_metadata_dialog.py
@@ -270,7 +270,7 @@ class comic_meta_data_editor(QDialog):
         genreCompletion.setModel(QStringListModel(self.genreKeysList))
         self.lnGenre.setCompleter(genreCompletion)
         genreCompletion.setCaseSensitivity(False)
-        self.lnGenre.setToolTip(i18n("The genre of the work. Prefilled values are \
from the ACBF, but you can fill in your own. Separate genres with commas. Try to \
limit the amount to about two or three")) +        self.lnGenre.setToolTip(i18n("The \
genre of the work. Prefilled values are from the ACBF, but you can fill in your own. \
Separate genres with commas. Try to limit the amount to about two or three."))  
         self.lnCharacters = QLineEdit()
         characterCompletion = multi_entry_completer()
@@ -299,9 +299,9 @@ class comic_meta_data_editor(QDialog):
         self.lnSeriesName = QLineEdit()
         self.lnSeriesName.setToolTip(i18n("If this is part of a series, enter the \
name of the series and the number."))  self.spnSeriesNumber = QSpinBox()
-        self.spnSeriesNumber.setPrefix("No. ")
+        self.spnSeriesNumber.setPrefix(i18n("No. "))
         self.spnSeriesVol = QSpinBox()
-        self.spnSeriesVol.setPrefix("Vol. ")
+        self.spnSeriesVol.setPrefix(i18n("Vol. "))
         seriesLayout = QHBoxLayout()
         seriesLayout.addWidget(self.lnSeriesName)
         seriesLayout.addWidget(self.spnSeriesVol)
@@ -313,7 +313,7 @@ class comic_meta_data_editor(QDialog):
         otherCompletion.setFilterMode(Qt.MatchContains)
         self.lnOtherKeywords = QLineEdit()
         self.lnOtherKeywords.setCompleter(otherCompletion)
-        self.lnOtherKeywords.setToolTip(i18n("Other keywords that don't fit in the \
previously mentioned sets. As always, comma-separated")) +        \
self.lnOtherKeywords.setToolTip(i18n("Other keywords that do not fit in the \
previously mentioned sets. As always, comma-separated."))  
         self.cmbLanguage = language_combo_box()
         self.cmbCountry = country_combo_box()
@@ -323,14 +323,14 @@ class comic_meta_data_editor(QDialog):
         self.cmbReadingMode.addItem(i18n("Right to Left"))
 
         self.cmbCoverPage = QComboBox()
-        self.cmbCoverPage.setToolTip(i18n("Which page is the cover page? This will \
be empty if there's no pages.")) +        self.cmbCoverPage.setToolTip(i18n("Which \
page is the cover page? This will be empty if there are no pages."))  
         mformLayout.addRow(i18n("Title:"), self.lnTitle)
-        mformLayout.addRow(i18n("Cover Page:"), self.cmbCoverPage)
+        mformLayout.addRow(i18n("Cover page:"), self.cmbCoverPage)
         mformLayout.addRow(i18n("Summary:"), self.teSummary)
         mformLayout.addRow(i18n("Language:"), self.cmbLanguage)
         mformLayout.addRow("", self.cmbCountry)
-        mformLayout.addRow(i18n("Reading Direction:"), self.cmbReadingMode)
+        mformLayout.addRow(i18n("Reading direction:"), self.cmbReadingMode)
         mformLayout.addRow(i18n("Genre:"), self.lnGenre)
         mformLayout.addRow(i18n("Characters:"), self.lnCharacters)
         mformLayout.addRow(i18n("Format:"), self.lnFormat)
@@ -343,7 +343,7 @@ class comic_meta_data_editor(QDialog):
         # The page for the authors.
         authorPage = QWidget()
         authorPage.setLayout(QVBoxLayout())
-        explanation = QLabel(i18n("The following is a table of the authors that \
contributed to this comic. You can set their nickname, proper names (first, middle, \
last), Role (Penciller, Inker, etc), email and homepage.")) +        explanation = \
QLabel(i18n("The following is a table of the authors that contributed to this comic. \
You can set their nickname, proper names (first, middle, last), role (penciller, \
inker, etc), email and homepage."))  explanation.setWordWrap(True)
         self.authorModel = QStandardItemModel(0, 8)
         labels = [i18n("Nick Name"), i18n("Given Name"), i18n("Middle Name"), \
i18n("Family Name"), i18n("Role"), i18n("Email"), i18n("Homepage"), i18n("Language")] \
                @@ -393,7 +393,7 @@ class comic_meta_data_editor(QDialog):
         self.license.completer().setCompletionMode(QCompleter.PopupCompletion)
         dataBaseReference = QVBoxLayout()
         self.ln_database_name = QLineEdit()
-        self.ln_database_name.setToolTip(i18n("If there's an entry in a comics data \
base, that should be added here. It is unlikely to be a factor for comics from \
scratch, but useful when doing a conversion.")) +        \
self.ln_database_name.setToolTip(i18n("If there is an entry in a comics data base, \
that should be added here. It is unlikely to be a factor for comics from scratch, but \
useful when doing a conversion."))  self.cmb_entry_type = QComboBox()
         self.cmb_entry_type.addItems(["IssueID", "SeriesID", "URL"])
         self.cmb_entry_type.setEditable(True)
diff --git a/plugins/python/comics_project_management_tools/comics_project_manager_docker.py \
b/plugins/python/comics_project_management_tools/comics_project_manager_docker.py \
                index 353328dd5a2..5eec7e0e92c 100644
--- a/plugins/python/comics_project_management_tools/comics_project_manager_docker.py
+++ b/plugins/python/comics_project_management_tools/comics_project_manager_docker.py
@@ -285,7 +285,7 @@ class comics_project_manager_docker(DockWidget):
 
         self.action_add_page = QAction(i18n("Add Page"), self)
         self.action_add_page.triggered.connect(self.slot_add_new_page_single)
-        self.action_add_template = QAction(i18n("Add Page From Template"), self)
+        self.action_add_template = QAction(i18n("Add Page from Template"), self)
         self.action_add_template.triggered.connect(self.slot_add_new_page_from_template)
                
         self.action_add_existing = QAction(i18n("Add Existing Pages"), self)
         self.action_add_existing.triggered.connect(self.slot_add_page_from_url)
@@ -297,7 +297,7 @@ class comics_project_manager_docker(DockWidget):
         self.action_show_page_viewer = QAction(i18n("View Page In Window"), self)
         self.action_show_page_viewer.triggered.connect(self.slot_show_page_viewer)
         self.action_scrape_authors = QAction(i18n("Scrape Author Info"), self)
-        self.action_scrape_authors.setToolTip(i18n("Search for author information in \
documents and add it to the author list. This doesn't check for duplicates.")) +      \
self.action_scrape_authors.setToolTip(i18n("Search for author information in \
                documents and add it to the author list. This does not check for \
                duplicates."))
         self.action_scrape_authors.triggered.connect(self.slot_scrape_author_list)
         self.action_scrape_translations = QAction(i18n("Scrape Text for \
                Translation"), self)
         self.action_scrape_translations.triggered.connect(self.slot_scrape_translations)
 @@ -342,7 +342,7 @@ class comics_project_manager_docker(DockWidget):
     """
 
     def slot_open_config(self):
-        self.path_to_config = QFileDialog.getOpenFileName(caption=i18n("Please \
select the json comic config file."), filter=str(i18n("json files") + "(*.json)"))[0] \
+        self.path_to_config = QFileDialog.getOpenFileName(caption=i18n("Please \
select the JSON comic config file."), filter=str(i18n("JSON files") + "(*.json)"))[0] \
                if os.path.exists(self.path_to_config) is True:
             configFile = open(self.path_to_config, "r", newline="", \
encoding="utf-16")  self.setupDictionary = json.load(configFile)
@@ -374,7 +374,7 @@ class comics_project_manager_docker(DockWidget):
         progress = QProgressDialog()
         progress.setMinimum(0)
         progress.setMaximum(len(pagesList))
-        progress.setWindowTitle(i18n("Loading pages..."))
+        progress.setWindowTitle(i18n("Loading Pages..."))
         for url in pagesList:
             absurl = os.path.join(self.projecturl, url)
             if (os.path.exists(absurl)):
@@ -784,7 +784,7 @@ class comics_project_manager_docker(DockWidget):
         exportSuccess = exporter.export()
         if exportSuccess:
             print("CPMT: Export success! The files have been written to the export \
                folder!")
-            QMessageBox.information(self, "Export success!", "The files have been \
written to the export folder!", QMessageBox.Ok) +            \
QMessageBox.information(self, i18n("Export success"), i18n("The files have been \
written to the export folder."), QMessageBox.Ok)  
     """
     Calls up the comics project setup wizard so users can create a new json file \
with the basic information. @@ -833,7 +833,7 @@ class \
comics_project_manager_docker(DockWidget):  
     def slot_batch_resize(self):
         dialog = QDialog()
-        dialog.setWindowTitle(i18n("Resize all pages."))
+        dialog.setWindowTitle(i18n("Resize all Pages"))
         buttons = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel)
         buttons.accepted.connect(dialog.accept)
         buttons.rejected.connect(dialog.reject)
@@ -845,7 +845,7 @@ class comics_project_manager_docker(DockWidget):
 
         if dialog.exec_() == QDialog.Accepted:
             progress = QProgressDialog(i18n("Resizing pages..."), str(), 0, \
                len(self.setupDictionary["pages"]))
-            progress.setWindowTitle(i18n("Resizing pages."))
+            progress.setWindowTitle(i18n("Resizing Pages"))
             progress.setCancelButton(None)
             timer = QElapsedTimer()
             timer.start()
@@ -907,7 +907,7 @@ class comics_project_manager_docker(DockWidget):
         metadata["keywords"] = ", ".join(self.setupDictionary.get("otherKeywords", \
                [""]))
         metadata["transnotes"] = self.setupDictionary.get("translatorHeader", \
"Translator's Notes")  scraper.start(self.setupDictionary["pages"], language, \
                metadata)
-        QMessageBox.information(self, i18n("Scraping success!"), i18n("POT file has \
been written to: ")+fullTranslationPath, QMessageBox.Ok) +        \
QMessageBox.information(self, i18n("Scraping success"), str(i18n("POT file has been \
written to: {file}")).format(file=fullTranslationPath), QMessageBox.Ok)  """
     This is required by the dockwidget class, otherwise unused.
     """
diff --git a/plugins/python/comics_project_management_tools/comics_project_settings_dialog.py \
b/plugins/python/comics_project_management_tools/comics_project_settings_dialog.py \
                index 903b8117c6b..e80c6dcbf5e 100644
--- a/plugins/python/comics_project_management_tools/comics_project_settings_dialog.py
                
+++ b/plugins/python/comics_project_management_tools/comics_project_settings_dialog.py
 @@ -129,14 +129,14 @@ class comics_project_details_editor(QDialog):
         self.keyLocation.setToolTip(i18n("The location for extra autocompletion keys \
in the metadata editor. Point this at a folder containing \
key_characters/key_format/key_genre/key_rating/key_author_roles/key_other with inside \
txt files (csv for rating) containing the extra auto-completion keys, each on a new \
line. This path is stored in the Krita configuration, and not the project \
                configuration."))
         self.templateLocation.locationChanged.connect(self.refill_templates)
 
-        layout.addRow(i18n("Project Name:"), self.lnProjectName)
-        layout.addRow(i18n("Project Concept:"), self.lnProjectConcept)
-        layout.addRow(i18n("Pages Folder:"), self.pagesLocation)
-        layout.addRow(i18n("Export Folder:"), self.exportLocation)
-        layout.addRow(i18n("Template Folder:"), self.templateLocation)
-        layout.addRow(i18n("Translation Folder:"), self.translationLocation)
-        layout.addRow(i18n("Default Template:"), self.cmb_defaultTemplate)
-        layout.addRow(i18n("Extra Keys Folder:"), self.keyLocation)
+        layout.addRow(i18n("Project name:"), self.lnProjectName)
+        layout.addRow(i18n("Project concept:"), self.lnProjectConcept)
+        layout.addRow(i18n("Pages folder:"), self.pagesLocation)
+        layout.addRow(i18n("Export folder:"), self.exportLocation)
+        layout.addRow(i18n("Template folder:"), self.templateLocation)
+        layout.addRow(i18n("Translation folder:"), self.translationLocation)
+        layout.addRow(i18n("Default template:"), self.cmb_defaultTemplate)
+        layout.addRow(i18n("Extra keys folder:"), self.keyLocation)
 
         self.layout().addWidget(buttons)
 
diff --git a/plugins/python/comics_project_management_tools/comics_project_setup_wizard.py \
b/plugins/python/comics_project_management_tools/comics_project_setup_wizard.py index \
                a88c815b84a..7312b246368 100644
--- a/plugins/python/comics_project_management_tools/comics_project_setup_wizard.py
+++ b/plugins/python/comics_project_management_tools/comics_project_setup_wizard.py
@@ -85,7 +85,7 @@ class ComicsProjectSetupWizard():
         projectLayout.addWidget(self.lnProjectName)
         projectLayout.addWidget(btnRandom)
         lnConcept = QLineEdit()
-        lnConcept.setToolTip(i18n("What is your comic about? This is mostly for your \
own convenience so don't worry about what it says too much.")) +        \
lnConcept.setToolTip(i18n("What is your comic about? This is mostly for your own \
convenience so do not worry about what it says too much."))  self.cmbLanguage = \
                comics_metadata_dialog.language_combo_box()
         self.cmbLanguage.setToolTip(i18n("The main language the comic is in"))
         self.cmbLanguage.setEntryToCode(str(QLocale.system().name()).split("_")[0])
@@ -105,10 +105,10 @@ class ComicsProjectSetupWizard():
         self.chkMakeProjectDirectory.setChecked(True)
         self.lnPagesDirectory = QLineEdit()
         self.lnPagesDirectory.setText(i18n("pages"))
-        self.lnPagesDirectory.setToolTip(i18n("The name for the folder where the \
pages are contained. If it doesn't exist, it will be created.")) +        \
self.lnPagesDirectory.setToolTip(i18n("The name for the folder where the pages are \
contained. If it does not exist, it will be created."))  self.lnExportDirectory = \
QLineEdit()  self.lnExportDirectory.setText(i18n("export"))
-        self.lnExportDirectory.setToolTip(i18n("The name for the folder where the \
export is put. If it doesn't exist, it will be created.")) +        \
self.lnExportDirectory.setToolTip(i18n("The name for the folder where the export is \
put. If it does not exist, it will be created."))  self.lnTemplateLocation = \
QLineEdit()  self.lnTemplateLocation.setText(i18n("templates"))
         self.lnTemplateLocation.setToolTip(i18n("The name for the folder where the \
page templates are sought in.")) @@ -116,9 +116,9 @@ class \
ComicsProjectSetupWizard():  self.lnTranslationLocation = QLineEdit()
         self.lnTranslationLocation.setText(i18n("translations"))
         self.lnTranslationLocation.setToolTip("This is the location that POT files \
                will be stored to and PO files will be read from.")
-        formLayout.addRow(i18n("Comic Concept:"), lnConcept)
-        formLayout.addRow(i18n("Project Name:"), projectLayout)
-        formLayout.addRow(i18n("Main Language:"), self.cmbLanguage)
+        formLayout.addRow(i18n("Comic concept:"), lnConcept)
+        formLayout.addRow(i18n("Project name:"), projectLayout)
+        formLayout.addRow(i18n("Main language:"), self.cmbLanguage)
         formLayout.addRow("", self.cmbCountry)
 
         buttonMetaData = QPushButton(i18n("Meta Data"))
@@ -130,12 +130,12 @@ class ComicsProjectSetupWizard():
         foldersPage.setTitle(i18n("Folder names and other."))
         folderFormLayout = QFormLayout()
         foldersPage.setLayout(folderFormLayout)
-        folderFormLayout.addRow(i18n("Project Directory:"), self.lnProjectDirectory)
+        folderFormLayout.addRow(i18n("Project directory:"), self.lnProjectDirectory)
         folderFormLayout.addRow(self.chkMakeProjectDirectory, labelDirectory)
-        folderFormLayout.addRow(i18n("Pages Directory"), self.lnPagesDirectory)
-        folderFormLayout.addRow(i18n("Export Directory"), self.lnExportDirectory)
-        folderFormLayout.addRow(i18n("Template Directory"), self.lnTemplateLocation)
-        folderFormLayout.addRow(i18n("Translation Directory"), \
self.lnTranslationLocation) +        folderFormLayout.addRow(i18n("Pages directory"), \
self.lnPagesDirectory) +        folderFormLayout.addRow(i18n("Export directory"), \
self.lnExportDirectory) +        folderFormLayout.addRow(i18n("Template directory"), \
self.lnTemplateLocation) +        folderFormLayout.addRow(i18n("Translation \
directory"), self.lnTranslationLocation)  folderFormLayout.addRow("", buttonMetaData)
         wizard.addPage(foldersPage)
 
diff --git a/plugins/python/comics_project_management_tools/comics_template_dialog.py \
b/plugins/python/comics_project_management_tools/comics_template_dialog.py index \
                a9e1dc16038..c71df638868 100644
--- a/plugins/python/comics_project_management_tools/comics_template_dialog.py
+++ b/plugins/python/comics_project_management_tools/comics_template_dialog.py
@@ -84,7 +84,7 @@ class comics_template_dialog(QDialog):
     def __init__(self, templateDirectory):
         super().__init__()
         self.templateDirectory = templateDirectory
-        self.setWindowTitle(i18n("Add new template"))
+        self.setWindowTitle(i18n("Add new Template"))
         self.setLayout(QVBoxLayout())
 
         self.templates = QComboBox()
@@ -100,9 +100,9 @@ class comics_template_dialog(QDialog):
         self.layout().addWidget(self.buttons)
         mainWidget.setLayout(QVBoxLayout())
 
-        btn_create = QPushButton(i18n("Create a template"))
+        btn_create = QPushButton(i18n("Create Template"))
         btn_create.clicked.connect(self.slot_create_template)
-        btn_import = QPushButton(i18n("Import templates"))
+        btn_import = QPushButton(i18n("Import Templates"))
         btn_import.clicked.connect(self.slot_import_template)
         mainWidget.layout().addWidget(self.templates)
         mainWidget.layout().addWidget(btn_create)
@@ -142,7 +142,7 @@ class comics_template_create(QDialog):
     def __init__(self, templateDirectory):
         super().__init__()
         self.templateDirectory = templateDirectory
-        self.setWindowTitle(i18n("Create new template"))
+        self.setWindowTitle(i18n("Create new Template"))
         self.setLayout(QVBoxLayout())
         buttons = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel)
         buttons.accepted.connect(self.accept)
diff --git a/plugins/python/documenttools/documenttools.py \
b/plugins/python/documenttools/documenttools.py index cf498ef3497..2fbcdd6c774 100644
--- a/plugins/python/documenttools/documenttools.py
+++ b/plugins/python/documenttools/documenttools.py
@@ -22,8 +22,8 @@ class DocumentToolsExtension(krita.Extension):
         pass
 
     def createActions(self, window):
-        action = window.createAction("document_tools", "Document Tools")
-        action.setToolTip("Plugin to manipulate properties of selected documents")
+        action = window.createAction("document_tools", i18n("Document Tools"))
+        action.setToolTip(i18n("Plugin to manipulate properties of selected \
documents."))  action.triggered.connect(self.initialize)
 
     def initialize(self):
diff --git a/plugins/python/documenttools/uidocumenttools.py \
b/plugins/python/documenttools/uidocumenttools.py index eec5e51279d..ae85d202a60 \
                100644
--- a/plugins/python/documenttools/uidocumenttools.py
+++ b/plugins/python/documenttools/uidocumenttools.py
@@ -25,7 +25,7 @@ class UIDocumentTools(object):
         self.mainLayout = QVBoxLayout(self.mainDialog)
         self.formLayout = QFormLayout()
         self.documentLayout = QVBoxLayout()
-        self.refreshButton = QPushButton("Refresh")
+        self.refreshButton = QPushButton(i18n("Refresh"))
         self.widgetDocuments = QListWidget()
         self.tabTools = QTabWidget()
         self.buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | \
QDialogButtonBox.Cancel) @@ -48,7 +48,7 @@ class UIDocumentTools(object):
         self.documentLayout.addWidget(self.widgetDocuments)
         self.documentLayout.addWidget(self.refreshButton)
 
-        self.formLayout.addRow('Documents', self.documentLayout)
+        self.formLayout.addRow(i18n("Documents:"), self.documentLayout)
         self.formLayout.addRow(self.tabTools)
 
         self.line = QFrame()
@@ -60,7 +60,7 @@ class UIDocumentTools(object):
         self.mainLayout.addWidget(self.buttonBox)
 
         self.mainDialog.resize(500, 300)
-        self.mainDialog.setWindowTitle("Document Tools")
+        self.mainDialog.setWindowTitle(i18n("Document Tools"))
         self.mainDialog.setSizeGripEnabled(True)
         self.mainDialog.show()
         self.mainDialog.activateWindow()
@@ -101,7 +101,7 @@ class UIDocumentTools(object):
         if selectedDocuments:
             widget = self.tabTools.currentWidget()
             widget.adjust(selectedDocuments)
-            self.msgBox.setText("The selected documents has been modified.")
+            self.msgBox.setText(i18n("The selected documents has been modified."))
         else:
-            self.msgBox.setText("Select at least one document.")
+            self.msgBox.setText(i18n("Select at least one document."))
         self.msgBox.exec_()
diff --git a/plugins/python/exportlayers/exportlayers.py \
b/plugins/python/exportlayers/exportlayers.py index c6336f62a5e..17cb698d710 100644
--- a/plugins/python/exportlayers/exportlayers.py
+++ b/plugins/python/exportlayers/exportlayers.py
@@ -22,8 +22,8 @@ class ExportLayersExtension(krita.Extension):
         pass
 
     def createActions(self, window):
-        action = window.createAction("export_layers", "Export Layers")
-        action.setToolTip("Plugin to export layers from a document")
+        action = window.createAction("export_layers", i18n("Export Layers"))
+        action.setToolTip(i18n("Plugin to export layers from a document."))
         action.triggered.connect(self.initialize)
 
     def initialize(self):
diff --git a/plugins/python/exportlayers/uiexportlayers.py \
b/plugins/python/exportlayers/uiexportlayers.py index 9b8c3239d9c..8d0f66966af 100644
--- a/plugins/python/exportlayers/uiexportlayers.py
+++ b/plugins/python/exportlayers/uiexportlayers.py
@@ -32,13 +32,13 @@ class UIExportLayers(object):
         self.optionsLayout = QVBoxLayout()
         self.resolutionLayout = QHBoxLayout()
 
-        self.refreshButton = QPushButton("Refresh")
+        self.refreshButton = QPushButton(i18n("Refresh"))
         self.widgetDocuments = QListWidget()
         self.directoryTextField = QLineEdit()
-        self.directoryDialogButton = QPushButton("...")
-        self.exportFilterLayersCheckBox = QCheckBox("Export filter layers")
-        self.batchmodeCheckBox = QCheckBox("Export in batchmode")
-        self.ignoreInvisibleLayersCheckBox = QCheckBox("Ignore invisible layers")
+        self.directoryDialogButton = QPushButton(i18n("..."))
+        self.exportFilterLayersCheckBox = QCheckBox(i18n("Export filter layers"))
+        self.batchmodeCheckBox = QCheckBox(i18n("Export in batchmode"))
+        self.ignoreInvisibleLayersCheckBox = QCheckBox(i18n("Ignore invisible \
layers"))  self.xResSpinBox = QSpinBox()
         self.yResSpinBox = QSpinBox()
         self.formatsComboBox = QComboBox()
@@ -65,8 +65,8 @@ class UIExportLayers(object):
         self.xResSpinBox.setRange(1, 10000)
         self.yResSpinBox.setRange(1, 10000)
 
-        self.formatsComboBox.addItem("jpeg")
-        self.formatsComboBox.addItem("png")
+        self.formatsComboBox.addItem(i18n("JPEG"))
+        self.formatsComboBox.addItem(i18n("PNG"))
 
         self.documentLayout.addWidget(self.widgetDocuments)
         self.documentLayout.addWidget(self.refreshButton)
@@ -81,11 +81,11 @@ class UIExportLayers(object):
         self.resolutionLayout.addWidget(self.xResSpinBox)
         self.resolutionLayout.addWidget(self.yResSpinBox)
 
-        self.formLayout.addRow('Documents', self.documentLayout)
-        self.formLayout.addRow('Initial directory', self.directorySelectorLayout)
-        self.formLayout.addRow('Export options', self.optionsLayout)
-        self.formLayout.addRow('Resolution', self.resolutionLayout)
-        self.formLayout.addRow('Images Extensions', self.formatsComboBox)
+        self.formLayout.addRow(i18n("Documents:"), self.documentLayout)
+        self.formLayout.addRow(i18n("Initial directory:"), \
self.directorySelectorLayout) +        self.formLayout.addRow(i18n("Export \
options:"), self.optionsLayout) +        self.formLayout.addRow(i18n("Resolution:"), \
self.resolutionLayout) +        self.formLayout.addRow(i18n("Images extensions:"), \
self.formatsComboBox)  
         self.line = QFrame()
         self.line.setFrameShape(QFrame.HLine)
@@ -96,7 +96,7 @@ class UIExportLayers(object):
         self.mainLayout.addWidget(self.buttonBox)
 
         self.mainDialog.resize(500, 300)
-        self.mainDialog.setWindowTitle("Export Layers")
+        self.mainDialog.setWindowTitle(i18n("Export Layers"))
         self.mainDialog.setSizeGripEnabled(True)
         self.mainDialog.show()
         self.mainDialog.activateWindow()
@@ -118,12 +118,12 @@ class UIExportLayers(object):
 
         self.msgBox = QMessageBox(self.mainDialog)
         if not selectedDocuments:
-            self.msgBox.setText("Select one document.")
+            self.msgBox.setText(i18n("Select one document."))
         elif not self.directoryTextField.text():
-            self.msgBox.setText("Select the initial directory.")
+            self.msgBox.setText(i18n("Select the initial directory."))
         else:
             self.export(selectedDocuments[0])
-            self.msgBox.setText("All layers has been exported.")
+            self.msgBox.setText(i18n("All layers has been exported."))
         self.msgBox.exec_()
 
     def mkdir(self, directory):
@@ -175,7 +175,7 @@ class UIExportLayers(object):
                 self._exportLayers(node, fileFormat, newDir)
 
     def _selectDir(self):
-        directory = QFileDialog.getExistingDirectory(self.mainDialog, "Select a \
folder", os.path.expanduser("~"), QFileDialog.ShowDirsOnly) +        directory = \
QFileDialog.getExistingDirectory(self.mainDialog, i18n("Select a Folder"), \
os.path.expanduser("~"), QFileDialog.ShowDirsOnly)  \
self.directoryTextField.setText(directory)  
     def _setResolution(self, index):
diff --git a/plugins/python/filtermanager/filtermanager.py \
b/plugins/python/filtermanager/filtermanager.py index 63ea46f32b3..806ce710c9f 100644
--- a/plugins/python/filtermanager/filtermanager.py
+++ b/plugins/python/filtermanager/filtermanager.py
@@ -22,8 +22,8 @@ class FilterManagerExtension(krita.Extension):
         pass
 
     def createActions(self, window):
-        action = window.createAction("filter_manager", "Filter Manager")
-        action.setToolTip("Plugin to filters management")
+        action = window.createAction("filter_manager", i18n("Filter Manager"))
+        action.setToolTip(i18n("Plugin to filters management."))
         action.triggered.connect(self.initialize)
 
     def initialize(self):
diff --git a/plugins/python/filtermanager/uifiltermanager.py \
b/plugins/python/filtermanager/uifiltermanager.py index fa6b794686f..a270bbdf851 \
                100644
--- a/plugins/python/filtermanager/uifiltermanager.py
+++ b/plugins/python/filtermanager/uifiltermanager.py
@@ -42,12 +42,12 @@ class UIFilterManager(object):
 
     def initialize(self):
         self.documentsTreeView.setModel(self.treeModel)
-        self.documentsTreeView.setWindowTitle("Document Tree Model")
+        self.documentsTreeView.setWindowTitle(i18n("Document Tree Model"))
         self.documentsTreeView.resizeColumnToContents(0)
         self.documentsTreeView.resizeColumnToContents(1)
         self.documentsTreeView.resizeColumnToContents(2)
 
-        self.formLayout.addRow("Filters", self.filterComboBox)
+        self.formLayout.addRow(i18n("Filters:"), self.filterComboBox)
 
         self.line = QFrame()
         self.line.setFrameShape(QFrame.HLine)
@@ -59,7 +59,7 @@ class UIFilterManager(object):
         self.mainLayout.addWidget(self.buttonBox)
 
         self.mainDialog.resize(500, 300)
-        self.mainDialog.setWindowTitle("Filter Manager")
+        self.mainDialog.setWindowTitle(i18n("Filter Manager"))
         self.mainDialog.setSizeGripEnabled(True)
         self.mainDialog.show()
         self.mainDialog.activateWindow()
diff --git a/plugins/python/highpass/highpass.py \
b/plugins/python/highpass/highpass.py index a5a92a24dae..3ce1616b3aa 100644
--- a/plugins/python/highpass/highpass.py
+++ b/plugins/python/highpass/highpass.py
@@ -24,13 +24,13 @@ class HighpassExtension(Extension):
         pass
     
     def createActions(self, window):
-        action = window.createAction("high_pass_filter", "High Pass")
+        action = window.createAction("high_pass_filter", i18n("High Pass"))
         action.triggered.connect(self.showDialog)
 
     def showDialog(self):
         doc = Application.activeDocument()
         if doc == None:
-            QMessageBox.information(Application.activeWindow().qwindow(), "Highpass \
Filter", "There is no active image.") +            \
QMessageBox.information(Application.activeWindow().qwindow(), i18n("High Pass \
Filter"), i18n("There is no active image."))  return
 
         self.dialog = QDialog(Application.activeWindow().qwindow())
@@ -41,11 +41,11 @@ class HighpassExtension(Extension):
 
         self.cmbMode = QComboBox()
         self.cmbMode.addItems(["Color", "Preserve DC", "Greyscale", "Greyscale, \
                Apply Chroma", "Redrobes"])
-        self.keepOriginal = QCheckBox("Keep Original Layer")
+        self.keepOriginal = QCheckBox(i18n("Keep original layer"))
         self.keepOriginal.setChecked(True)
         form = QFormLayout()
-        form.addRow("Filter Radius", self.intRadius)
-        form.addRow("Mode", self.cmbMode)
+        form.addRow(i18n("Filter radius:"), self.intRadius)
+        form.addRow(i18n("Mode:"), self.cmbMode)
         form.addRow("", self.keepOriginal)
 
         self.buttonBox = QDialogButtonBox(self.dialog)
diff --git a/plugins/python/scripter/scripter.py \
b/plugins/python/scripter/scripter.py index 35b63d1bd9a..30192234e2c 100644
--- a/plugins/python/scripter/scripter.py
+++ b/plugins/python/scripter/scripter.py
@@ -29,7 +29,7 @@ class ScripterExtension(Extension):
         pass
 
     def createActions(self, window):
-        action = window.createAction("python_scripter", "Scripter")
+        action = window.createAction("python_scripter", i18n("Scripter"))
         action.triggered.connect(self.initialize)
 
     def initialize(self):
diff --git a/plugins/python/tenbrushes/tenbrushes.py \
b/plugins/python/tenbrushes/tenbrushes.py index ee0387ac1aa..d640a998f6f 100644
--- a/plugins/python/tenbrushes/tenbrushes.py
+++ b/plugins/python/tenbrushes/tenbrushes.py
@@ -27,8 +27,8 @@ class TenBrushesExtension(krita.Extension):
         self.readSettings()
 
     def createActions(self, window):
-        action = window.createAction("ten_brushes", "Ten Brushes")
-        action.setToolTip("Assign ten brush presets to ten shortcuts.")
+        action = window.createAction("ten_brushes", i18n("Ten Brushes"))
+        action.setToolTip(i18n("Assign ten brush presets to ten shortcuts."))
         action.triggered.connect(self.initialize)
         self.loadActions(window)
 
@@ -51,7 +51,7 @@ class TenBrushesExtension(krita.Extension):
         allPresets = Application.resources("preset")
 
         for index, item in enumerate(['1', '2', '3', '4', '5', '6', '7', '8', '9', \
                '0']):
-            action = window.createAction("activate_preset_" + item, "Activate Brush \
Preset " + item, "") +            action = window.createAction("activate_preset_" + \
item, str(i18n("Activate Brush Preset {num}")).format(num=item), "")  \
action.triggered.connect(self.activatePreset)  
             if index < len(self.selectedPresets) and self.selectedPresets[index] in \
                allPresets:
diff --git a/plugins/python/tenbrushes/uitenbrushes.py \
b/plugins/python/tenbrushes/uitenbrushes.py index 72826374ccb..fbbe040d405 100644
--- a/plugins/python/tenbrushes/uitenbrushes.py
+++ b/plugins/python/tenbrushes/uitenbrushes.py
@@ -40,7 +40,7 @@ class UITenBrushes(object):
         self.loadButtons()
 
         self.vbox.addLayout(self.hbox)
-        self.vbox.addWidget(QLabel("Select the brush preset, then click on the \
button you want to use to select the preset")) +        \
self.vbox.addWidget(QLabel(i18n("Select the brush preset, then click on the button \
you want to use to select the preset")))  self.vbox.addWidget(self.presetChooser)
         self.vbox.addWidget(self.buttonBox)
 
diff --git a/plugins/python/tenscripts/tenscripts.py \
b/plugins/python/tenscripts/tenscripts.py index 983b9777212..32a375b3618 100644
--- a/plugins/python/tenscripts/tenscripts.py
+++ b/plugins/python/tenscripts/tenscripts.py
@@ -33,8 +33,8 @@ class TenScriptsExtension(krita.Extension):
         self.readSettings()
 
     def createActions(self, window):
-        action = window.createAction("ten_scripts", "Ten Scripts")
-        action.setToolTip("Assign ten scripts to ten shortcuts.")
+        action = window.createAction("ten_scripts", i18n("Ten Scripts"))
+        action.setToolTip(i18n("Assign ten scripts to ten shortcuts."))
         action.triggered.connect(self.initialize)
         self.loadActions(window)
 
@@ -55,7 +55,7 @@ class TenScriptsExtension(krita.Extension):
 
     def loadActions(self, window):
         for index, item in enumerate(['1', '2', '3', '4', '5', '6', '7', '8', '9', \
                '10']):
-            action = window.createAction("execute_script_" + item, "Execute Script " \
+ item, "") +            action = window.createAction("execute_script_" + item, \
str(i18n("Execute Script {num}")).format(num=item), "")  action.script = None
             action.triggered.connect(self._executeScript)
 
@@ -78,11 +78,11 @@ class TenScriptsExtension(krita.Extension):
                 if hasattr(users_module, 'main') and callable(users_module.main):
                     users_module.main()
 
-                self.showMessage('script {0} executed'.format(self.sender().script))
+                self.showMessage(str(i18n("Script {0} \
executed")).format(self.sender().script))  except Exception as e:
                 self.showMessage(str(e))
         else:
-            self.showMessage("You didn't assign a script to that action")
+            self.showMessage(i18n("You did not assign a script to that action"))
 
     def showMessage(self, message):
         self.msgBox  = QMessageBox(Application.activeWindow().qwindow())
diff --git a/plugins/python/tenscripts/uitenscripts.py \
b/plugins/python/tenscripts/uitenscripts.py index 2eec3c15b68..6ac83c9d482 100644
--- a/plugins/python/tenscripts/uitenscripts.py
+++ b/plugins/python/tenscripts/uitenscripts.py
@@ -58,12 +58,12 @@ class UITenScripts(object):
         rowLayout = QHBoxLayout()
         label = QLabel()
         directoryTextField = QLineEdit()
-        directoryDialogButton = QPushButton("...")
+        directoryDialogButton = QPushButton(i18n("..."))
 
         directoryTextField.setReadOnly(True)
         label.setText(self.tenscripts.actions[key].shortcut().toString())
-        directoryTextField.setToolTip("Selected Path")
-        directoryDialogButton.setToolTip("Select the script")
+        directoryTextField.setToolTip(i18n("Selected path"))
+        directoryDialogButton.setToolTip(i18n("Select the script"))
         directoryDialogButton.clicked.connect(self._selectScript)
 
         self.scriptsLayout.addWidget(label, rowPosition, 0, \
Qt.AlignLeft|Qt.AlignTop) @@ -84,7 +84,7 @@ class UITenScripts(object):
 
     def _selectScript(self):
         dialog = QFileDialog(self.mainDialog)
-        dialog.setNameFilter('Python files (*.py)')
+        dialog.setNameFilter(i18n("Python files (*.py)"))
 
         if dialog.exec_():
             selectedFile = dialog.selectedFiles()[0]


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic