Renpy translation helper

This commit is contained in:
Torsten Schulz
2024-02-26 18:23:30 +01:00
commit 963c46e909
7 changed files with 1070 additions and 0 deletions

356
mainwindow.ui Normal file
View File

@@ -0,0 +1,356 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1260</width>
<height>719</height>
</rect>
</property>
<property name="windowTitle">
<string>Renpy Translation Helper</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QWidget" name="">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>1233</width>
<height>681</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Project Directory</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="projectDir">
<property name="minimumSize">
<size>
<width>500</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="selectProjectDirButton">
<property name="maximumSize">
<size>
<width>27</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>...</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="reloadTranslationsButton">
<property name="text">
<string>Reload</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Language</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="languageCombo">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="reloadFilesButton">
<property name="text">
<string>Reload</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QTreeWidget" name="treeWidget">
<property name="minimumSize">
<size>
<width>1231</width>
<height>400</height>
</size>
</property>
<column>
<property name="text">
<string>File</string>
</property>
</column>
<column>
<property name="text">
<string>Original</string>
</property>
</column>
<column>
<property name="text">
<string>Translation</string>
</property>
</column>
<item>
<property name="text">
<string>All items</string>
</property>
<property name="text">
<string/>
</property>
<property name="text">
<string/>
</property>
</item>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QPushButton" name="nextUntranslatedButton">
<property name="text">
<string>Jump to next untranslated item</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_4">
<property name="maximumSize">
<size>
<width>137</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Deepl Translate from</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="deeplTranslateFrom"/>
</item>
<item>
<widget class="QLabel" name="label_5">
<property name="maximumSize">
<size>
<width>20</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>to</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="deeplTranslateTo"/>
</item>
<item>
<widget class="QPushButton" name="autoTranslateButton">
<property name="text">
<string>Auto translate</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Original Text:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="originalTextEdit">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="label_6">
<property name="text">
<string>Translation:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="translationEdit"/>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QPushButton" name="setTranslationButton">
<property name="text">
<string>Set translation</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="setTranslationAndJumpNextButton">
<property name="text">
<string>Set translation and jump to next untranslated</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="setAndNextAndAutoTranslate">
<property name="text">
<string>Set translation, jump to next untranslated and auto translate</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QLabel" name="label_7">
<property name="text">
<string>Enter action:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="enterActionCombo">
<property name="minimumSize">
<size>
<width>400</width>
<height>0</height>
</size>
</property>
<item>
<property name="text">
<string>Set translation, jump to next untranslated and auto translate</string>
</property>
</item>
<item>
<property name="text">
<string>Set translation and jump to next untranslated</string>
</property>
</item>
<item>
<property name="text">
<string>Set translation</string>
</property>
</item>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_8">
<property name="text">
<string>Untranslated:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="untranslatedLabel">
<property name="text">
<string>0</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<widget class="QPushButton" name="saveButton">
<property name="text">
<string>Save translations</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cleanupAndSaveButton">
<property name="text">
<string>Delete backups and save translations</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="cleanupButton">
<property name="text">
<string>Delete backups</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>