Module implementing a class used to display the translations part of the project.
None |
ProjectTranslationsBrowser | A class used to display the translations part of the project. |
None |
A class used to display the translations part of the project.
None |
None |
ProjectTranslationsBrowser | Constructor |
__TRPreview | Private slot to handle the Preview translations action. |
__TRPreviewAll | Private slot to handle the Preview all translations action. |
__addTranslationFiles | Private method to add translation files to the project. |
__deleteLanguageFile | Private method to delete a translation file from the project. |
__extractMessages | Private slot to extract the messages to form a messages template file. |
__generateAll | Private method to generate all translation files (.ts) for Qt Linguist. |
__generateObsoleteAll | Private method to generate all translation files (.ts) for Qt Linguist. |
__generateObsoleteSelected | Private method to generate selected translation files (.ts) for Qt Linguist. |
__generateSelected | Private method to generate selected translation files (.ts) for Qt Linguist. |
__generateTSFile | Private method used to run pylupdate5/pyside2-lupdate to generate the .ts files. |
__generateTSFileDone | Private slot to handle the finished signal of the pylupdate process. |
__openFileInEditor | Private slot to handle the Open in Editor menu action. |
__readStderr | Private method to read from a process' stderr channel. |
__readStderrLrelease | Private slot to handle the readyReadStandardError signal of the lrelease process. |
__readStderrLupdate | Private slot to handle the readyReadStandardError signal of the pylupdate5/pyside2-lupdate process. |
__readStdout | Private method to read from a process' stdout channel. |
__readStdoutLrelease | Private slot to handle the readyReadStandardOutput signal of the lrelease process. |
__readStdoutLupdate | Private slot to handle the readyReadStandardOutput signal of the pylupdate process. |
__releaseAll | Private method to release the translation files (.qm). |
__releaseSelected | Private method to release the translation files (.qm). |
__releaseTSFile | Private method to run lrelease to release the translation files (.qm). |
__releaseTSFileDone | Private slot to handle the finished signal of the lrelease process. |
__removeLanguageFile | Private method to remove a translation from the project. |
__showContextMenu | Private slot called by the menu aboutToShow signal. |
__showContextMenuBack | Private slot called by the backMenu aboutToShow signal. |
__showContextMenuDir | Private slot called by the dirMenu aboutToShow signal. |
__showContextMenuMulti | Private slot called by the multiMenu aboutToShow signal. |
__writeTempProjectFile | Private method to write a temporary project file suitable for pylupdate and lrelease. |
_contextMenuRequested | Protected slot to show the context menu. |
_createPopupMenus | Protected overloaded method to generate the popup menu. |
_initHookMethods | Protected method to initialize the hooks dictionary. |
_openItem | Protected slot to handle the open popup menu entry. |
None |
Constructor
Private slot to handle the Preview translations action.
Private slot to handle the Preview all translations action.
Private method to add translation files to the project.
Private method to delete a translation file from the project.
Private slot to extract the messages to form a messages template file.
Private method to generate all translation files (.ts) for Qt Linguist.
All obsolete strings are removed from the .ts file.
Private method to generate all translation files (.ts) for Qt Linguist.
Obsolete strings are kept.
Private method to generate selected translation files (.ts) for Qt Linguist.
Obsolete strings are kept.
Private method to generate selected translation files (.ts) for Qt Linguist.
All obsolete strings are removed from the .ts file.
Private method used to run pylupdate5/pyside2-lupdate to generate the .ts files.
Private slot to handle the finished signal of the pylupdate process.
Private slot to handle the Open in Editor menu action.
Private method to read from a process' stderr channel.
Private slot to handle the readyReadStandardError signal of the lrelease process.
Private slot to handle the readyReadStandardError signal of the pylupdate5/pyside2-lupdate process.
Private method to read from a process' stdout channel.
Private slot to handle the readyReadStandardOutput signal of the lrelease process.
Private slot to handle the readyReadStandardOutput signal of the pylupdate process.
Private method to release the translation files (.qm).
Private method to release the translation files (.qm).
Private method to run lrelease to release the translation files (.qm).
Private slot to handle the finished signal of the lrelease process.
Private method to remove a translation from the project.
Private slot called by the menu aboutToShow signal.
Private slot called by the backMenu aboutToShow signal.
Private slot called by the dirMenu aboutToShow signal.
Private slot called by the multiMenu aboutToShow signal.
Private method to write a temporary project file suitable for pylupdate and lrelease.
Protected slot to show the context menu.
Protected overloaded method to generate the popup menu.
Protected method to initialize the hooks dictionary.
Supported hook methods are:
Note: Filenames are relative to the project directory.
Protected slot to handle the open popup menu entry.