mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
update designer references
This commit is contained in:
parent
9d1b6231d7
commit
11dca54471
42 changed files with 339 additions and 321 deletions
|
@ -17,7 +17,7 @@
|
|||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>About Anki</string>
|
||||
<string>ABOUT_ABOUT_ANKI</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout">
|
||||
<property name="leftMargin">
|
||||
|
@ -36,7 +36,7 @@
|
|||
<widget class="AnkiWebView" name="label" native="true">
|
||||
<property name="url" stdset="0">
|
||||
<url>
|
||||
<string>about:blank</string>
|
||||
<string notr="true">about:blank</string>
|
||||
</url>
|
||||
</property>
|
||||
</widget>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Add</string>
|
||||
<string>ACTIONS_ADD</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="icons.qrc">
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Add Field</string>
|
||||
<string>FIELDS_ADD_FIELD</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
|
@ -19,14 +19,14 @@
|
|||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Field:</string>
|
||||
<string>FIELDS_FIELD</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Size:</string>
|
||||
<string>FIELDS_SIZE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -49,7 +49,7 @@
|
|||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Font:</string>
|
||||
<string>FIELDS_FONT</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Add Note Type</string>
|
||||
<string>NOTETYPES_ADD_NOTE_TYPE</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout">
|
||||
<item>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Configuration</string>
|
||||
<string>ADDONS_CONFIGURATION</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Changes will take effect when Anki is restarted.</string>
|
||||
<string>ADDONS_CHANGES_WILL_TAKE_EFFECT_WHEN_ANKI</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -43,21 +43,21 @@
|
|||
<item>
|
||||
<widget class="QPushButton" name="getAddons">
|
||||
<property name="text">
|
||||
<string>Get Add-ons...</string>
|
||||
<string>ADDONS_GET_ADDONS</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="installFromFile">
|
||||
<property name="text">
|
||||
<string>Install from file...</string>
|
||||
<string>ADDONS_INSTALL_FROM_FILE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="checkForUpdates">
|
||||
<property name="text">
|
||||
<string>Check for Updates</string>
|
||||
<string>ADDONS_CHECK_FOR_UPDATES</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -77,35 +77,35 @@
|
|||
<item>
|
||||
<widget class="QPushButton" name="viewPage">
|
||||
<property name="text">
|
||||
<string>View Add-on Page</string>
|
||||
<string>ADDONS_VIEW_ADDON_PAGE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="config">
|
||||
<property name="text">
|
||||
<string>Config</string>
|
||||
<string>ADDONS_CONFIG</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="viewFiles">
|
||||
<property name="text">
|
||||
<string>View Files</string>
|
||||
<string>ADDONS_VIEW_FILES</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="toggleEnabled">
|
||||
<property name="text">
|
||||
<string>Toggle Enabled</string>
|
||||
<string>ADDONS_TOGGLE_ENABLED</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="delete_2">
|
||||
<property name="text">
|
||||
<string>Delete</string>
|
||||
<string>ACTIONS_DELETE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -110,14 +110,14 @@
|
|||
<item row="0" column="2">
|
||||
<widget class="QPushButton" name="searchButton">
|
||||
<property name="text">
|
||||
<string>Search</string>
|
||||
<string>ACTIONS_SEARCH</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QPushButton" name="previewButton">
|
||||
<property name="text">
|
||||
<string>Preview</string>
|
||||
<string>ACTIONS_PREVIEW</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Shift+P</string>
|
||||
|
@ -130,7 +130,7 @@
|
|||
<item row="0" column="0">
|
||||
<widget class="QPushButton" name="filter">
|
||||
<property name="text">
|
||||
<string>Filter...</string>
|
||||
<string>BROWSING_FILTER</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -241,7 +241,7 @@
|
|||
</property>
|
||||
<widget class="QMenu" name="menuEdit">
|
||||
<property name="title">
|
||||
<string>&Edit</string>
|
||||
<string>QT_ACCEL_EDIT</string>
|
||||
</property>
|
||||
<addaction name="actionUndo"/>
|
||||
<addaction name="separator"/>
|
||||
|
@ -253,7 +253,7 @@
|
|||
</widget>
|
||||
<widget class="QMenu" name="menuJump">
|
||||
<property name="title">
|
||||
<string>&Go</string>
|
||||
<string>QT_ACCEL_GO</string>
|
||||
</property>
|
||||
<addaction name="actionFind"/>
|
||||
<addaction name="actionTags"/>
|
||||
|
@ -268,17 +268,17 @@
|
|||
</widget>
|
||||
<widget class="QMenu" name="menu_Help">
|
||||
<property name="title">
|
||||
<string>&Help</string>
|
||||
<string>QT_ACCEL_HELP</string>
|
||||
</property>
|
||||
<addaction name="actionGuide"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menu_Cards">
|
||||
<property name="title">
|
||||
<string>&Cards</string>
|
||||
<string>QT_ACCEL_CARDS</string>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFlag">
|
||||
<property name="title">
|
||||
<string>Flag</string>
|
||||
<string>BROWSING_FLAG</string>
|
||||
</property>
|
||||
<addaction name="actionRed_Flag"/>
|
||||
<addaction name="actionOrange_Flag"/>
|
||||
|
@ -298,7 +298,7 @@
|
|||
</widget>
|
||||
<widget class="QMenu" name="menu_Notes">
|
||||
<property name="title">
|
||||
<string>&Notes</string>
|
||||
<string>QT_ACCEL_NOTES</string>
|
||||
</property>
|
||||
<addaction name="actionAdd"/>
|
||||
<addaction name="actionExport"/>
|
||||
|
@ -325,7 +325,7 @@
|
|||
</widget>
|
||||
<action name="actionReschedule">
|
||||
<property name="text">
|
||||
<string>&Reschedule...</string>
|
||||
<string>QT_ACCEL_RESCHEDULE</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Alt+R</string>
|
||||
|
@ -333,7 +333,7 @@
|
|||
</action>
|
||||
<action name="actionSelectAll">
|
||||
<property name="text">
|
||||
<string>Select &All</string>
|
||||
<string>QT_ACCEL_SELECT_ALL</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Alt+A</string>
|
||||
|
@ -341,7 +341,7 @@
|
|||
</action>
|
||||
<action name="actionUndo">
|
||||
<property name="text">
|
||||
<string>&Undo</string>
|
||||
<string>QT_ACCEL_UNDO</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Alt+Z</string>
|
||||
|
@ -349,7 +349,7 @@
|
|||
</action>
|
||||
<action name="actionInvertSelection">
|
||||
<property name="text">
|
||||
<string>&Invert Selection</string>
|
||||
<string>QT_ACCEL_INVERT_SELECTION</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Alt+S</string>
|
||||
|
@ -357,7 +357,7 @@
|
|||
</action>
|
||||
<action name="actionFind">
|
||||
<property name="text">
|
||||
<string>&Find</string>
|
||||
<string>QT_ACCEL_FIND</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+F</string>
|
||||
|
@ -365,7 +365,7 @@
|
|||
</action>
|
||||
<action name="actionNote">
|
||||
<property name="text">
|
||||
<string>N&ote</string>
|
||||
<string>QT_ACCEL_NOTE</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Shift+N</string>
|
||||
|
@ -373,7 +373,7 @@
|
|||
</action>
|
||||
<action name="actionNextCard">
|
||||
<property name="text">
|
||||
<string>&Next Card</string>
|
||||
<string>QT_ACCEL_NEXT_CARD</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+N</string>
|
||||
|
@ -381,7 +381,7 @@
|
|||
</action>
|
||||
<action name="actionPreviousCard">
|
||||
<property name="text">
|
||||
<string>&Previous Card</string>
|
||||
<string>QT_ACCEL_PREVIOUS_CARD</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+P</string>
|
||||
|
@ -389,7 +389,7 @@
|
|||
</action>
|
||||
<action name="actionGuide">
|
||||
<property name="text">
|
||||
<string>&Guide...</string>
|
||||
<string>QT_ACCEL_GUIDE</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">F1</string>
|
||||
|
@ -397,7 +397,7 @@
|
|||
</action>
|
||||
<action name="actionChangeModel">
|
||||
<property name="text">
|
||||
<string>Change Note Type...</string>
|
||||
<string>BROWSING_CHANGE_NOTE_TYPE2</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Shift+M</string>
|
||||
|
@ -405,25 +405,20 @@
|
|||
</action>
|
||||
<action name="actionSelectNotes">
|
||||
<property name="text">
|
||||
<string>Select &Notes</string>
|
||||
<string>QT_ACCEL_SELECT_NOTES</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFindReplace">
|
||||
<property name="text">
|
||||
<string>Find and Re&place...</string>
|
||||
<string>QT_ACCEL_FIND_AND_REPLACE</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Alt+F</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCram">
|
||||
<property name="text">
|
||||
<string>&Cram...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionTags">
|
||||
<property name="text">
|
||||
<string>Fil&ter</string>
|
||||
<string>QT_ACCEL_FILTER</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Shift+F</string>
|
||||
|
@ -431,7 +426,7 @@
|
|||
</action>
|
||||
<action name="actionCardList">
|
||||
<property name="text">
|
||||
<string>Card List</string>
|
||||
<string>BROWSING_CARD_LIST</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Shift+L</string>
|
||||
|
@ -439,12 +434,12 @@
|
|||
</action>
|
||||
<action name="actionFindDuplicates">
|
||||
<property name="text">
|
||||
<string>Find &Duplicates...</string>
|
||||
<string>QT_ACCEL_FIND_DUPLICATES</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionReposition">
|
||||
<property name="text">
|
||||
<string>Reposition...</string>
|
||||
<string>BROWSING_REPOSITION</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Shift+S</string>
|
||||
|
@ -452,23 +447,23 @@
|
|||
</action>
|
||||
<action name="actionFirstCard">
|
||||
<property name="text">
|
||||
<string>First Card</string>
|
||||
<string>BROWSING_FIRST_CARD</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Home</string>
|
||||
<string/>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLastCard">
|
||||
<property name="text">
|
||||
<string>Last Card</string>
|
||||
<string>BROWSING_LAST_CARD</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>End</string>
|
||||
<string/>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionClose">
|
||||
<property name="text">
|
||||
<string>Close</string>
|
||||
<string>ACTIONS_CLOSE</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+W</string>
|
||||
|
@ -476,7 +471,7 @@
|
|||
</action>
|
||||
<action name="action_Info">
|
||||
<property name="text">
|
||||
<string>&Info...</string>
|
||||
<string>QT_ACCEL_INFO</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Shift+I</string>
|
||||
|
@ -484,7 +479,7 @@
|
|||
</action>
|
||||
<action name="actionAdd_Tags">
|
||||
<property name="text">
|
||||
<string>Add Tags...</string>
|
||||
<string>BROWSING_ADD_TAGS2</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Shift+A</string>
|
||||
|
@ -492,7 +487,7 @@
|
|||
</action>
|
||||
<action name="actionRemove_Tags">
|
||||
<property name="text">
|
||||
<string>Remove Tags...</string>
|
||||
<string>BROWSING_REMOVE_TAGS</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Shift+D</string>
|
||||
|
@ -500,7 +495,7 @@
|
|||
</action>
|
||||
<action name="actionToggle_Suspend">
|
||||
<property name="text">
|
||||
<string>Toggle Suspend</string>
|
||||
<string>BROWSING_TOGGLE_SUSPEND</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+J</string>
|
||||
|
@ -508,7 +503,7 @@
|
|||
</action>
|
||||
<action name="actionDelete">
|
||||
<property name="text">
|
||||
<string>Delete</string>
|
||||
<string>ACTIONS_DELETE</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Del</string>
|
||||
|
@ -516,7 +511,7 @@
|
|||
</action>
|
||||
<action name="actionAdd">
|
||||
<property name="text">
|
||||
<string>Add Notes...</string>
|
||||
<string>BROWSING_ADD_NOTES</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+E</string>
|
||||
|
@ -524,7 +519,7 @@
|
|||
</action>
|
||||
<action name="actionChange_Deck">
|
||||
<property name="text">
|
||||
<string>Change Deck...</string>
|
||||
<string>BROWSING_CHANGE_DECK2</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+D</string>
|
||||
|
@ -535,7 +530,7 @@
|
|||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Red Flag</string>
|
||||
<string>ACTIONS_RED_FLAG</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+1</string>
|
||||
|
@ -546,7 +541,7 @@
|
|||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Orange Flag</string>
|
||||
<string>ACTIONS_ORANGE_FLAG</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+2</string>
|
||||
|
@ -557,7 +552,7 @@
|
|||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Green Flag</string>
|
||||
<string>ACTIONS_GREEN_FLAG</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+3</string>
|
||||
|
@ -568,7 +563,7 @@
|
|||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Blue Flag</string>
|
||||
<string>ACTIONS_BLUE_FLAG</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+4</string>
|
||||
|
@ -576,7 +571,7 @@
|
|||
</action>
|
||||
<action name="actionSidebar">
|
||||
<property name="text">
|
||||
<string>Sidebar</string>
|
||||
<string>BROWSING_SIDEBAR</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Shift+R</string>
|
||||
|
@ -584,17 +579,17 @@
|
|||
</action>
|
||||
<action name="actionClear_Unused_Tags">
|
||||
<property name="text">
|
||||
<string>Clear Unused Tags</string>
|
||||
<string>BROWSING_CLEAR_UNUSED_TAGS</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionManage_Note_Types">
|
||||
<property name="text">
|
||||
<string>Manage Note Types...</string>
|
||||
<string>BROWSING_MANAGE_NOTE_TYPES</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionToggle_Mark">
|
||||
<property name="text">
|
||||
<string>Toggle Mark</string>
|
||||
<string>BROWSING_TOGGLE_MARK</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+K</string>
|
||||
|
@ -602,10 +597,10 @@
|
|||
</action>
|
||||
<action name="actionExport">
|
||||
<property name="text">
|
||||
<string>&Export Notes...</string>
|
||||
<string>QT_ACCEL_EXPORT_NOTES</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Shift+E</string>
|
||||
<string/>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Browser Appearance</string>
|
||||
<string>BROWSING_BROWSER_APPEARANCE</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Override front template:</string>
|
||||
<string>BROWSING_OVERRIDE_FRONT_TEMPLATE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -27,7 +27,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Override back template:</string>
|
||||
<string>BROWSING_OVERRIDE_BACK_TEMPLATE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -37,7 +37,7 @@
|
|||
<item>
|
||||
<widget class="QCheckBox" name="overrideFont">
|
||||
<property name="text">
|
||||
<string>Override font:</string>
|
||||
<string>BROWSING_OVERRIDE_FONT</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Browser Options</string>
|
||||
<string>BROWSING_BROWSER_OPTIONS</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
|
@ -19,7 +19,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string><b>Font</b>:</string>
|
||||
<string>BROWSING_FONT</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -33,7 +33,7 @@
|
|||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string><b>Font Size</b>:</string>
|
||||
<string>BROWSING_FONT_SIZE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -50,7 +50,7 @@
|
|||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string><b>Line Size</b>:</string>
|
||||
<string>BROWSING_LINE_SIZE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -75,7 +75,7 @@
|
|||
<item>
|
||||
<widget class="QCheckBox" name="fullSearch">
|
||||
<property name="text">
|
||||
<string>Search within formatting (slow)</string>
|
||||
<string>BROWSING_SEARCH_WITHIN_FORMATTING_SLOW</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -9,9 +9,12 @@ buf = io.StringIO()
|
|||
compileUi(open(ui_file), buf, from_imports=True)
|
||||
|
||||
outdata = buf.getvalue()
|
||||
outdata = outdata.replace("# -*- coding: utf-8 -*-", "# -*- coding: utf-8 -*-\nfrom anki.lang import _\n")
|
||||
outdata = re.sub(r'(QtGui\.QApplication\.)?_?translate\(".*?", ', '_(', outdata)
|
||||
outdata = re.sub(r', None.*', '))', outdata)
|
||||
outdata = outdata.replace(
|
||||
"# -*- coding: utf-8 -*-", "# -*- coding: utf-8 -*-\nfrom aqt.utils import tr, TR\n"
|
||||
)
|
||||
outdata = re.sub(
|
||||
r'(?:QtGui\.QApplication\.)?_?translate\(".*?", "(.*?)"', "tr(TR.\\1", outdata
|
||||
)
|
||||
|
||||
with open(py_file, "w") as file:
|
||||
file.write(outdata)
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Import</string>
|
||||
<string>ACTIONS_IMPORT</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Target field:</string>
|
||||
<string>BROWSING_TARGET_FIELD</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Change Note Type</string>
|
||||
<string>BROWSING_CHANGE_NOTE_TYPE</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="spacing">
|
||||
|
@ -25,7 +25,7 @@
|
|||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Current note type:</string>
|
||||
<string>BROWSING_CURRENT_NOTE_TYPE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -48,7 +48,7 @@
|
|||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>New note type:</string>
|
||||
<string>BROWSING_NEW_NOTE_TYPE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -73,7 +73,7 @@
|
|||
</sizepolicy>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Cards</string>
|
||||
<string>EDITING_CARDS</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<property name="margin">
|
||||
|
@ -114,7 +114,7 @@
|
|||
</sizepolicy>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Fields</string>
|
||||
<string>EDITING_FIELDS</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<property name="margin">
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
<string>CARD_TEMPLATES_FORM</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="spacing">
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Custom Study</string>
|
||||
<string>ACTIONS_CUSTOM_STUDY</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
|
@ -19,42 +19,42 @@
|
|||
<item row="3" column="0">
|
||||
<widget class="QRadioButton" name="radioAhead">
|
||||
<property name="text">
|
||||
<string>Review ahead</string>
|
||||
<string>CUSTOM_STUDY_REVIEW_AHEAD</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QRadioButton" name="radioForgot">
|
||||
<property name="text">
|
||||
<string>Review forgotten cards</string>
|
||||
<string>CUSTOM_STUDY_REVIEW_FORGOTTEN_CARDS</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QRadioButton" name="radioNew">
|
||||
<property name="text">
|
||||
<string>Increase today's new card limit</string>
|
||||
<string>CUSTOM_STUDY_INCREASE_TODAYS_NEW_CARD_LIMIT</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QRadioButton" name="radioRev">
|
||||
<property name="text">
|
||||
<string>Increase today's review card limit</string>
|
||||
<string>CUSTOM_STUDY_INCREASE_TODAYS_REVIEW_CARD_LIMIT</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QRadioButton" name="radioCram">
|
||||
<property name="text">
|
||||
<string>Study by card state or tag</string>
|
||||
<string>CUSTOM_STUDY_STUDY_BY_CARD_STATE_OR_TAG</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QRadioButton" name="radioPreview">
|
||||
<property name="text">
|
||||
<string>Preview new cards</string>
|
||||
<string>CUSTOM_STUDY_PREVIEW_NEW_CARDS</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -114,22 +114,22 @@
|
|||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>New cards only</string>
|
||||
<string>CUSTOM_STUDY_NEW_CARDS_ONLY</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Due cards only</string>
|
||||
<string>CUSTOM_STUDY_DUE_CARDS_ONLY</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>All review cards in random order</string>
|
||||
<string>CUSTOM_STUDY_ALL_REVIEW_CARDS_IN_RANDOM_ORDER</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>All cards in random order (don't reschedule)</string>
|
||||
<string>CUSTOM_STUDY_ALL_CARDS_IN_RANDOM_ORDER_DONT</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>587</width>
|
||||
<width>623</width>
|
||||
<height>514</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
@ -16,7 +16,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="label_31">
|
||||
<property name="text">
|
||||
<string>Options group:</string>
|
||||
<string>SCHEDULING_OPTIONS_GROUP</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -39,7 +39,7 @@
|
|||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Manage...</string>
|
||||
<string>ACTIONS_MANAGE</string>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
<enum>Qt::ToolButtonTextBesideIcon</enum>
|
||||
|
@ -74,7 +74,7 @@
|
|||
</property>
|
||||
<widget class="QWidget" name="tab">
|
||||
<attribute name="title">
|
||||
<string>New Cards</string>
|
||||
<string>SCHEDULING_NEW_CARDS</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<property name="leftMargin">
|
||||
|
@ -97,14 +97,14 @@
|
|||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="label_24">
|
||||
<property name="text">
|
||||
<string>Starting ease</string>
|
||||
<string>SCHEDULING_STARTING_EASE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QSpinBox" name="lrnFactor">
|
||||
<property name="suffix">
|
||||
<string>%</string>
|
||||
<string notr="true">%</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>130</number>
|
||||
|
@ -117,7 +117,7 @@
|
|||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_8">
|
||||
<property name="text">
|
||||
<string>Order</string>
|
||||
<string>SCHEDULING_ORDER</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -145,14 +145,14 @@
|
|||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Easy interval</string>
|
||||
<string>SCHEDULING_EASY_INTERVAL</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Graduating interval</string>
|
||||
<string>SCHEDULING_GRADUATING_INTERVAL</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -166,7 +166,7 @@
|
|||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>New cards/day</string>
|
||||
<string>SCHEDULING_NEW_CARDSDAY</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -176,7 +176,7 @@
|
|||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Steps (in minutes)</string>
|
||||
<string>SCHEDULING_STEPS_IN_MINUTES</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -186,14 +186,14 @@
|
|||
<item row="6" column="0" colspan="3">
|
||||
<widget class="QCheckBox" name="bury">
|
||||
<property name="text">
|
||||
<string>Bury related new cards until the next day</string>
|
||||
<string>SCHEDULING_BURY_RELATED_NEW_CARDS_UNTIL_THE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="2">
|
||||
<widget class="QLabel" name="label_9">
|
||||
<property name="text">
|
||||
<string>days</string>
|
||||
<string>SCHEDULING_DAYS</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -206,7 +206,7 @@
|
|||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>days</string>
|
||||
<string>SCHEDULING_DAYS</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -229,7 +229,7 @@
|
|||
</widget>
|
||||
<widget class="QWidget" name="tab_3">
|
||||
<attribute name="title">
|
||||
<string>Reviews</string>
|
||||
<string>SCHEDULING_REVIEWS</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<property name="leftMargin">
|
||||
|
@ -252,14 +252,14 @@
|
|||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_20">
|
||||
<property name="text">
|
||||
<string>Easy bonus</string>
|
||||
<string>SCHEDULING_EASY_BONUS</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QSpinBox" name="easyBonus">
|
||||
<property name="suffix">
|
||||
<string>%</string>
|
||||
<string notr="true">%</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>100</number>
|
||||
|
@ -285,21 +285,21 @@
|
|||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_33">
|
||||
<property name="text">
|
||||
<string>Interval modifier</string>
|
||||
<string>SCHEDULING_INTERVAL_MODIFIER</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_37">
|
||||
<property name="text">
|
||||
<string>Maximum reviews/day</string>
|
||||
<string>SCHEDULING_MAXIMUM_REVIEWSDAY</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Maximum interval</string>
|
||||
<string>SCHEDULING_MAXIMUM_INTERVAL</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -319,7 +319,7 @@
|
|||
<item row="3" column="2">
|
||||
<widget class="QLabel" name="label_23">
|
||||
<property name="text">
|
||||
<string>days</string>
|
||||
<string>SCHEDULING_DAYS</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -333,7 +333,7 @@
|
|||
<item row="2" column="1">
|
||||
<widget class="QDoubleSpinBox" name="fi1">
|
||||
<property name="suffix">
|
||||
<string>%</string>
|
||||
<string notr="true">%</string>
|
||||
</property>
|
||||
<property name="decimals">
|
||||
<number>0</number>
|
||||
|
@ -355,21 +355,21 @@
|
|||
<item row="5" column="0" colspan="3">
|
||||
<widget class="QCheckBox" name="buryRev">
|
||||
<property name="text">
|
||||
<string>Bury related reviews until the next day</string>
|
||||
<string>SCHEDULING_BURY_RELATED_REVIEWS_UNTIL_THE_NEXT</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="hardFactorLabel">
|
||||
<property name="text">
|
||||
<string>Hard interval</string>
|
||||
<string>SCHEDULING_HARD_INTERVAL</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QSpinBox" name="hardFactor">
|
||||
<property name="suffix">
|
||||
<string>%</string>
|
||||
<string notr="true">%</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>5</number>
|
||||
|
@ -398,7 +398,7 @@
|
|||
</widget>
|
||||
<widget class="QWidget" name="tab_2">
|
||||
<attribute name="title">
|
||||
<string>Lapses</string>
|
||||
<string>SCHEDULING_LAPSES</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<property name="leftMargin">
|
||||
|
@ -421,7 +421,7 @@
|
|||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_17">
|
||||
<property name="text">
|
||||
<string>Steps (in minutes)</string>
|
||||
<string>SCHEDULING_STEPS_IN_MINUTES</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -431,14 +431,14 @@
|
|||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>New interval</string>
|
||||
<string>SCHEDULING_NEW_INTERVAL</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_10">
|
||||
<property name="text">
|
||||
<string>Leech threshold</string>
|
||||
<string>SCHEDULING_LEECH_THRESHOLD</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -454,14 +454,14 @@
|
|||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>lapses</string>
|
||||
<string>SCHEDULING_LAPSES2</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="label_12">
|
||||
<property name="text">
|
||||
<string>Leech action</string>
|
||||
<string>SCHEDULING_LEECH_ACTION</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -478,14 +478,14 @@
|
|||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_13">
|
||||
<property name="text">
|
||||
<string>Minimum interval</string>
|
||||
<string>SCHEDULING_MINIMUM_INTERVAL</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<widget class="QLabel" name="label_14">
|
||||
<property name="text">
|
||||
<string>days</string>
|
||||
<string>SCHEDULING_DAYS</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -495,12 +495,12 @@
|
|||
<widget class="QComboBox" name="leechAction">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Suspend Card</string>
|
||||
<string>ACTIONS_SUSPEND_CARD</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Tag Only</string>
|
||||
<string>SCHEDULING_TAG_ONLY</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
|
@ -523,7 +523,7 @@
|
|||
<item row="1" column="1">
|
||||
<widget class="QSpinBox" name="lapMult">
|
||||
<property name="suffix">
|
||||
<string>%</string>
|
||||
<string notr="true">%</string>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>100</number>
|
||||
|
@ -552,7 +552,7 @@
|
|||
</widget>
|
||||
<widget class="QWidget" name="tab_5">
|
||||
<attribute name="title">
|
||||
<string>General</string>
|
||||
<string>SCHEDULING_GENERAL</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_6">
|
||||
<property name="leftMargin">
|
||||
|
@ -575,7 +575,7 @@
|
|||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_25">
|
||||
<property name="text">
|
||||
<string>Ignore answer times longer than</string>
|
||||
<string>SCHEDULING_IGNORE_ANSWER_TIMES_LONGER_THAN</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -595,7 +595,7 @@
|
|||
<item row="0" column="2">
|
||||
<widget class="QLabel" name="label_26">
|
||||
<property name="text">
|
||||
<string>seconds</string>
|
||||
<string>SCHEDULING_SECONDS</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -604,21 +604,21 @@
|
|||
<item>
|
||||
<widget class="QCheckBox" name="showTimer">
|
||||
<property name="text">
|
||||
<string>Show answer timer</string>
|
||||
<string>SCHEDULING_SHOW_ANSWER_TIMER</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="autoplaySounds">
|
||||
<property name="text">
|
||||
<string>Automatically play audio</string>
|
||||
<string>SCHEDULING_AUTOMATICALLY_PLAY_AUDIO</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="replayQuestion">
|
||||
<property name="text">
|
||||
<string>Always include question side when replaying audio</string>
|
||||
<string>SCHEDULING_ALWAYS_INCLUDE_QUESTION_SIDE_WHEN_REPLAYING</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>false</bool>
|
||||
|
@ -642,7 +642,7 @@
|
|||
</widget>
|
||||
<widget class="QWidget" name="tab_4">
|
||||
<attribute name="title">
|
||||
<string>Description</string>
|
||||
<string>SCHEDULING_DESCRIPTION</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_5">
|
||||
<property name="spacing">
|
||||
|
@ -663,7 +663,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="label_22">
|
||||
<property name="text">
|
||||
<string>Description to show on overview screen, for current deck:</string>
|
||||
<string>SCHEDULING_DESCRIPTION_TO_SHOW_ON_OVERVIEW_SCREEN</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Debug Console</string>
|
||||
<string>QT_MISC_DEBUG_CONSOLE</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="icons.qrc">
|
||||
|
|
|
@ -11,26 +11,26 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
<string notr="true">Dialog</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="title">
|
||||
<string>Filter</string>
|
||||
<string>ACTIONS_FILTER</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Limit to</string>
|
||||
<string>DECKS_LIMIT_TO</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Search</string>
|
||||
<string>ACTIONS_SEARCH</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -53,7 +53,7 @@
|
|||
<item row="1" column="2">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>cards selected by</string>
|
||||
<string>DECKS_CARDS_SELECTED_BY</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -69,13 +69,13 @@
|
|||
<item>
|
||||
<widget class="QGroupBox" name="filter2group">
|
||||
<property name="title">
|
||||
<string>Filter 2</string>
|
||||
<string>DECKS_FILTER_2</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Limit to</string>
|
||||
<string>DECKS_LIMIT_TO</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -88,7 +88,7 @@
|
|||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Search</string>
|
||||
<string>ACTIONS_SEARCH</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -111,7 +111,7 @@
|
|||
<item row="1" column="2">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>cards selected by</string>
|
||||
<string>DECKS_CARDS_SELECTED_BY</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -121,13 +121,13 @@
|
|||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_2">
|
||||
<property name="title">
|
||||
<string>Options</string>
|
||||
<string>ACTIONS_OPTIONS</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0" colspan="2">
|
||||
<widget class="QCheckBox" name="resched">
|
||||
<property name="text">
|
||||
<string>Reschedule cards based on my answers in this deck</string>
|
||||
<string>DECKS_RESCHEDULE_CARDS_BASED_ON_MY_ANSWERS</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
|
@ -137,7 +137,7 @@
|
|||
<item row="2" column="0">
|
||||
<widget class="QCheckBox" name="secondFilter">
|
||||
<property name="text">
|
||||
<string>Enable second filter</string>
|
||||
<string>DECKS_ENABLE_SECOND_FILTER</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -147,7 +147,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Repeat failed cards after</string>
|
||||
<string>DECKS_REPEAT_FAILED_CARDS_AFTER</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -157,7 +157,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="label_8">
|
||||
<property name="text">
|
||||
<string>minutes</string>
|
||||
<string>DECKS_MINUTES</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -177,7 +177,7 @@
|
|||
<item row="3" column="0">
|
||||
<widget class="QCheckBox" name="stepsOn">
|
||||
<property name="text">
|
||||
<string>Custom steps (in minutes)</string>
|
||||
<string>DECKS_CUSTOM_STEPS_IN_MINUTES</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
<string notr="true">Dialog</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
<string notr="true">Dialog</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="icons.qrc">
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<string>HTML Editor</string>
|
||||
<string>EDITING_HTML_EDITOR</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout" >
|
||||
<item>
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
<widget class="AnkiWebView" name="webview" native="true">
|
||||
<property name="url" stdset="0">
|
||||
<url>
|
||||
<string>about:blank</string>
|
||||
<string notr="true">about:blank</string>
|
||||
</url>
|
||||
</property>
|
||||
</widget>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Export</string>
|
||||
<string>ACTIONS_EXPORT</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout">
|
||||
<item>
|
||||
|
@ -25,7 +25,7 @@
|
|||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><b>Export format</b>:</string>
|
||||
<string>EXPORTING_EXPORT_FORMAT</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -35,7 +35,7 @@
|
|||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string><b>Include</b>:</string>
|
||||
<string>EXPORTING_INCLUDE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -49,7 +49,7 @@
|
|||
<item>
|
||||
<widget class="QCheckBox" name="includeSched">
|
||||
<property name="text">
|
||||
<string>Include scheduling information</string>
|
||||
<string>EXPORTING_INCLUDE_SCHEDULING_INFORMATION</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
|
@ -59,7 +59,7 @@
|
|||
<item>
|
||||
<widget class="QCheckBox" name="includeMedia">
|
||||
<property name="text">
|
||||
<string>Include media</string>
|
||||
<string>EXPORTING_INCLUDE_MEDIA</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
|
@ -69,7 +69,7 @@
|
|||
<item>
|
||||
<widget class="QCheckBox" name="includeTags">
|
||||
<property name="text">
|
||||
<string>Include tags</string>
|
||||
<string>EXPORTING_INCLUDE_TAGS</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
|
@ -79,7 +79,7 @@
|
|||
<item>
|
||||
<widget class="QCheckBox" name="includeHTML">
|
||||
<property name="text">
|
||||
<string>Include HTML and media references</string>
|
||||
<string>EXPORTING_INCLUDE_HTML_AND_MEDIA_REFERENCES</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Fields</string>
|
||||
<string>EDITING_FIELDS</string>
|
||||
</property>
|
||||
<property name="modal">
|
||||
<bool>true</bool>
|
||||
|
@ -40,28 +40,28 @@
|
|||
<item>
|
||||
<widget class="QPushButton" name="fieldAdd">
|
||||
<property name="text">
|
||||
<string>Add</string>
|
||||
<string>ACTIONS_ADD</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="fieldDelete">
|
||||
<property name="text">
|
||||
<string>Delete</string>
|
||||
<string>ACTIONS_DELETE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="fieldRename">
|
||||
<property name="text">
|
||||
<string>Rename</string>
|
||||
<string>ACTIONS_RENAME</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="fieldPosition">
|
||||
<property name="text">
|
||||
<string>Reposition</string>
|
||||
<string>ACTIONS_REPOSITION</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -87,7 +87,7 @@
|
|||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Editing Font</string>
|
||||
<string>FIELDS_EDITING_FONT</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -104,7 +104,7 @@
|
|||
<item row="3" column="1">
|
||||
<widget class="QCheckBox" name="rtl">
|
||||
<property name="text">
|
||||
<string>Reverse text direction (RTL)</string>
|
||||
<string>FIELDS_REVERSE_TEXT_DIRECTION_RTL</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -121,21 +121,21 @@
|
|||
<item row="2" column="1">
|
||||
<widget class="QCheckBox" name="sticky">
|
||||
<property name="text">
|
||||
<string>Remember last input when adding</string>
|
||||
<string>FIELDS_REMEMBER_LAST_INPUT_WHEN_ADDING</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_18">
|
||||
<property name="text">
|
||||
<string>Options</string>
|
||||
<string>ACTIONS_OPTIONS</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QRadioButton" name="sortField">
|
||||
<property name="text">
|
||||
<string>Sort by this field in the browser</string>
|
||||
<string>FIELDS_SORT_BY_THIS_FIELD_IN_THE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Find Duplicates</string>
|
||||
<string>BROWSING_FIND_DUPLICATES</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
|
@ -22,14 +22,14 @@
|
|||
<item row="2" column="1">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Optional filter:</string>
|
||||
<string>BROWSING_OPTIONAL_FILTER</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Search in:</string>
|
||||
<string>BROWSING_SEARCH_IN</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -76,7 +76,7 @@
|
|||
<widget class="AnkiWebView" name="webView" native="true">
|
||||
<property name="url" stdset="0">
|
||||
<url>
|
||||
<string>about:blank</string>
|
||||
<string notr="true">about:blank</string>
|
||||
</url>
|
||||
</property>
|
||||
</widget>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Find and Replace</string>
|
||||
<string>BROWSING_FIND_AND_REPLACE</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
|
@ -19,7 +19,7 @@
|
|||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string><b>Find</b>:</string>
|
||||
<string>BROWSING_FIND</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -45,7 +45,7 @@
|
|||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string><b>Replace With</b>:</string>
|
||||
<string>BROWSING_REPLACE_WITH</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -71,7 +71,7 @@
|
|||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string><b>In</b>:</string>
|
||||
<string>BROWSING_IN</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -85,14 +85,14 @@
|
|||
<item row="4" column="1">
|
||||
<widget class="QCheckBox" name="re">
|
||||
<property name="text">
|
||||
<string>Treat input as regular expression</string>
|
||||
<string>BROWSING_TREAT_INPUT_AS_REGULAR_EXPRESSION</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QCheckBox" name="ignoreCase">
|
||||
<property name="text">
|
||||
<string>Ignore case</string>
|
||||
<string>BROWSING_IGNORE_CASE</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Install Add-on</string>
|
||||
<string>ADDONS_INSTALL_ADDON</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>To browse add-ons, please click the browse button below.<br><br>When you've found an add-on you like, please paste its code below. You can paste multiple codes, separated by spaces.</string>
|
||||
<string>ADDONS_TO_BROWSE_ADDONS_PLEASE_CLICK_THE</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
|
@ -42,7 +42,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Code:</string>
|
||||
<string>ADDONS_CODE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Import</string>
|
||||
<string>ACTIONS_IMPORT</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout">
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="title">
|
||||
<string>Import options</string>
|
||||
<string>IMPORTING_IMPORT_OPTIONS</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="toplayout">
|
||||
<item>
|
||||
|
@ -31,14 +31,14 @@
|
|||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Type</string>
|
||||
<string>NOTETYPES_TYPE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Deck</string>
|
||||
<string>DECKS_DECK</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -55,17 +55,17 @@
|
|||
<widget class="QComboBox" name="importMode">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Update existing notes when first field matches</string>
|
||||
<string>IMPORTING_UPDATE_EXISTING_NOTES_WHEN_FIRST_FIELD</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Ignore lines where first field matches existing note</string>
|
||||
<string>IMPORTING_IGNORE_LINES_WHERE_FIRST_FIELD_MATCHES</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Import even if existing note has same first field</string>
|
||||
<string>IMPORTING_IMPORT_EVEN_IF_EXISTING_NOTE_HAS</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
|
@ -73,7 +73,7 @@
|
|||
<item>
|
||||
<widget class="QCheckBox" name="allowHTML">
|
||||
<property name="text">
|
||||
<string>Allow HTML in fields</string>
|
||||
<string>IMPORTING_ALLOW_HTML_IN_FIELDS</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -82,7 +82,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="tagModifiedLabel">
|
||||
<property name="text">
|
||||
<string>Tag modified notes:</string>
|
||||
<string>IMPORTING_TAG_MODIFIED_NOTES</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -103,7 +103,7 @@
|
|||
</sizepolicy>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Field mapping</string>
|
||||
<string>IMPORTING_FIELD_MAPPING</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Anki</string>
|
||||
<string notr="true">Anki</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="icons.qrc">
|
||||
|
@ -51,7 +51,7 @@
|
|||
</property>
|
||||
<widget class="QMenu" name="menuHelp">
|
||||
<property name="title">
|
||||
<string>&Help</string>
|
||||
<string>QT_ACCEL_HELP</string>
|
||||
</property>
|
||||
<addaction name="actionDocumentation"/>
|
||||
<addaction name="separator"/>
|
||||
|
@ -60,13 +60,13 @@
|
|||
</widget>
|
||||
<widget class="QMenu" name="menuEdit">
|
||||
<property name="title">
|
||||
<string>&Edit</string>
|
||||
<string>QT_ACCEL_EDIT</string>
|
||||
</property>
|
||||
<addaction name="actionUndo"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuCol">
|
||||
<property name="title">
|
||||
<string>&File</string>
|
||||
<string>QT_ACCEL_FILE</string>
|
||||
</property>
|
||||
<addaction name="actionSwitchProfile"/>
|
||||
<addaction name="separator"/>
|
||||
|
@ -77,7 +77,7 @@
|
|||
</widget>
|
||||
<widget class="QMenu" name="menuTools">
|
||||
<property name="title">
|
||||
<string>&Tools</string>
|
||||
<string>QT_ACCEL_TOOLS</string>
|
||||
</property>
|
||||
<addaction name="actionStudyDeck"/>
|
||||
<addaction name="actionCreateFiltered"/>
|
||||
|
@ -98,7 +98,7 @@
|
|||
</widget>
|
||||
<action name="actionExit">
|
||||
<property name="text">
|
||||
<string>E&xit</string>
|
||||
<string>QT_ACCEL_EXIT</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Q</string>
|
||||
|
@ -106,10 +106,10 @@
|
|||
</action>
|
||||
<action name="actionPreferences">
|
||||
<property name="text">
|
||||
<string>&Preferences...</string>
|
||||
<string>QT_ACCEL_PREFERENCES</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string>Configure interface language and options</string>
|
||||
<string>QT_MISC_CONFIGURE_INTERFACE_LANGUAGE_AND_OPTIONS</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+P</string>
|
||||
|
@ -120,7 +120,7 @@
|
|||
</action>
|
||||
<action name="actionAbout">
|
||||
<property name="text">
|
||||
<string>&About...</string>
|
||||
<string>QT_ACCEL_ABOUT</string>
|
||||
</property>
|
||||
<property name="menuRole">
|
||||
<enum>QAction::AboutRole</enum>
|
||||
|
@ -131,7 +131,7 @@
|
|||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Undo</string>
|
||||
<string>QT_ACCEL_UNDO</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Z</string>
|
||||
|
@ -139,25 +139,25 @@
|
|||
</action>
|
||||
<action name="actionCheckMediaDatabase">
|
||||
<property name="text">
|
||||
<string>Check &Media...</string>
|
||||
<string>QT_ACCEL_CHECK_MEDIA</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string>Check the files in the media directory</string>
|
||||
<string>QT_MISC_CHECK_THE_FILES_IN_THE_MEDIA</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionOpenPluginFolder">
|
||||
<property name="text">
|
||||
<string>&Open Add-ons Folder...</string>
|
||||
<string>QT_ACCEL_OPEN_ADDONS_FOLDER</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDonate">
|
||||
<property name="text">
|
||||
<string>&Support Anki...</string>
|
||||
<string>QT_ACCEL_SUPPORT_ANKI</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDownloadSharedPlugin">
|
||||
<property name="text">
|
||||
<string>&Browse and Install...</string>
|
||||
<string>QT_ACCEL_BROWSE_AND_INSTALL</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string/>
|
||||
|
@ -165,12 +165,12 @@
|
|||
</action>
|
||||
<action name="actionFullDatabaseCheck">
|
||||
<property name="text">
|
||||
<string>&Check Database</string>
|
||||
<string>QT_ACCEL_CHECK_DATABASE</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDocumentation">
|
||||
<property name="text">
|
||||
<string>&Guide...</string>
|
||||
<string>QT_ACCEL_GUIDE</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">F1</string>
|
||||
|
@ -178,7 +178,7 @@
|
|||
</action>
|
||||
<action name="actionSwitchProfile">
|
||||
<property name="text">
|
||||
<string>&Switch Profile</string>
|
||||
<string>QT_ACCEL_SWITCH_PROFILE</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Shift+P</string>
|
||||
|
@ -186,7 +186,7 @@
|
|||
</action>
|
||||
<action name="actionExport">
|
||||
<property name="text">
|
||||
<string>&Export...</string>
|
||||
<string>QT_ACCEL_EXPORT</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+E</string>
|
||||
|
@ -194,7 +194,7 @@
|
|||
</action>
|
||||
<action name="actionImport">
|
||||
<property name="text">
|
||||
<string>&Import...</string>
|
||||
<string>QT_ACCEL_IMPORT</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Shift+I</string>
|
||||
|
@ -202,7 +202,7 @@
|
|||
</action>
|
||||
<action name="actionStudyDeck">
|
||||
<property name="text">
|
||||
<string>Study Deck...</string>
|
||||
<string>QT_MISC_STUDY_DECK</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">/</string>
|
||||
|
@ -210,12 +210,12 @@
|
|||
</action>
|
||||
<action name="actionEmptyCards">
|
||||
<property name="text">
|
||||
<string>Empty Cards...</string>
|
||||
<string>QT_MISC_EMPTY_CARDS</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCreateFiltered">
|
||||
<property name="text">
|
||||
<string>Create Filtered Deck...</string>
|
||||
<string>QT_MISC_CREATE_FILTERED_DECK</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">F</string>
|
||||
|
@ -223,7 +223,7 @@
|
|||
</action>
|
||||
<action name="actionNoteTypes">
|
||||
<property name="text">
|
||||
<string>Manage Note Types</string>
|
||||
<string>QT_MISC_MANAGE_NOTE_TYPES</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Shift+N</string>
|
||||
|
@ -231,7 +231,7 @@
|
|||
</action>
|
||||
<action name="actionAdd_ons">
|
||||
<property name="text">
|
||||
<string>Add-ons</string>
|
||||
<string>QT_MISC_ADDONS</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Shift+A</string>
|
||||
|
|
|
@ -24,20 +24,20 @@
|
|||
</property>
|
||||
<widget class="QWidget" name="tab">
|
||||
<attribute name="title">
|
||||
<string>LaTeX</string>
|
||||
<string>EDITING_LATEX</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="latexsvg">
|
||||
<property name="text">
|
||||
<string>Create scalable images with dvisvgm</string>
|
||||
<string>NOTETYPES_CREATE_SCALABLE_IMAGES_WITH_DVISVGM</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Header</string>
|
||||
<string>NOTETYPES_HEADER</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -51,7 +51,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Footer</string>
|
||||
<string>NOTETYPES_FOOTER</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Note Types</string>
|
||||
<string>NOTETYPES_NOTE_TYPES</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_5" stretch="100,0">
|
||||
<property name="spacing">
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>424</width>
|
||||
<width>632</width>
|
||||
<height>374</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Preferences</string>
|
||||
<string>PREFERENCES_PREFERENCES</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
|
@ -24,7 +24,7 @@
|
|||
</property>
|
||||
<widget class="QWidget" name="tab_1">
|
||||
<attribute name="title">
|
||||
<string>Basic</string>
|
||||
<string>PREFERENCES_BASIC</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="spacing">
|
||||
|
@ -58,42 +58,42 @@
|
|||
<item>
|
||||
<widget class="QCheckBox" name="hwAccel">
|
||||
<property name="text">
|
||||
<string>Hardware acceleration (faster, may cause display issues)</string>
|
||||
<string>PREFERENCES_HARDWARE_ACCELERATION_FASTER_MAY_CAUSE_DISPLAY</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="showPlayButtons">
|
||||
<property name="text">
|
||||
<string>Show play buttons on cards with audio</string>
|
||||
<string>PREFERENCES_SHOW_PLAY_BUTTONS_ON_CARDS_WITH</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="interrupt_audio">
|
||||
<property name="text">
|
||||
<string>Interrupt current audio when answering</string>
|
||||
<string>PREFERENCES_INTERRUPT_CURRENT_AUDIO_WHEN_ANSWERING</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="pastePNG">
|
||||
<property name="text">
|
||||
<string>Paste clipboard images as PNG</string>
|
||||
<string>PREFERENCES_PASTE_CLIPBOARD_IMAGES_AS_PNG</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="pasteInvert">
|
||||
<property name="text">
|
||||
<string>Paste without shift key strips formatting</string>
|
||||
<string>PREFERENCES_PASTE_WITHOUT_SHIFT_KEY_STRIPS_FORMATTING</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="nightMode">
|
||||
<property name="text">
|
||||
<string>Night mode</string>
|
||||
<string>PREFERENCES_NIGHT_MODE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -101,12 +101,12 @@
|
|||
<widget class="QComboBox" name="useCurrent">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>When adding, default to current deck</string>
|
||||
<string>PREFERENCES_WHEN_ADDING_DEFAULT_TO_CURRENT_DECK</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Change deck depending on note type</string>
|
||||
<string>PREFERENCES_CHANGE_DECK_DEPENDING_ON_NOTE_TYPE</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
|
@ -116,14 +116,14 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>User interface size</string>
|
||||
<string>PREFERENCES_USER_INTERFACE_SIZE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="uiScale">
|
||||
<property name="suffix">
|
||||
<string>%</string>
|
||||
<string notr="true">%</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>100</number>
|
||||
|
@ -171,34 +171,34 @@
|
|||
</widget>
|
||||
<widget class="QWidget" name="tab_3">
|
||||
<attribute name="title">
|
||||
<string>Scheduling</string>
|
||||
<string>PREFERENCES_SCHEDULING</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_5">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="showEstimates">
|
||||
<property name="text">
|
||||
<string>Show next review time above answer buttons</string>
|
||||
<string>PREFERENCES_SHOW_NEXT_REVIEW_TIME_ABOVE_ANSWER</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="showProgress">
|
||||
<property name="text">
|
||||
<string>Show remaining card count during review</string>
|
||||
<string>PREFERENCES_SHOW_REMAINING_CARD_COUNT_DURING_REVIEW</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="dayLearnFirst">
|
||||
<property name="text">
|
||||
<string>Show learning cards with larger steps before reviews</string>
|
||||
<string>PREFERENCES_SHOW_LEARNING_CARDS_WITH_LARGER_STEPS</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="newSched">
|
||||
<property name="text">
|
||||
<string>Anki 2.1 scheduler (beta)</string>
|
||||
<string>PREFERENCES_ANKI_21_SCHEDULER_BETA</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -220,7 +220,7 @@
|
|||
<item row="1" column="2">
|
||||
<widget class="QLabel" name="label_29">
|
||||
<property name="text">
|
||||
<string>mins</string>
|
||||
<string>PREFERENCES_MINS</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -247,28 +247,28 @@
|
|||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_30">
|
||||
<property name="text">
|
||||
<string>Timebox time limit</string>
|
||||
<string>PREFERENCES_TIMEBOX_TIME_LIMIT</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QLabel" name="label_40">
|
||||
<property name="text">
|
||||
<string>hours past midnight</string>
|
||||
<string>PREFERENCES_HOURS_PAST_MIDNIGHT</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_24">
|
||||
<property name="text">
|
||||
<string>Learn ahead limit</string>
|
||||
<string>PREFERENCES_LEARN_AHEAD_LIMIT</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<widget class="QLabel" name="label_39">
|
||||
<property name="text">
|
||||
<string>mins</string>
|
||||
<string>PREFERENCES_MINS</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -288,7 +288,7 @@
|
|||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_23">
|
||||
<property name="text">
|
||||
<string>Next day starts at</string>
|
||||
<string>PREFERENCES_NEXT_DAY_STARTS_AT</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -311,7 +311,7 @@
|
|||
</widget>
|
||||
<widget class="QWidget" name="tab_2">
|
||||
<attribute name="title">
|
||||
<string>Network</string>
|
||||
<string>PREFERENCES_NETWORK</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<property name="spacing">
|
||||
|
@ -339,7 +339,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="syncLabel">
|
||||
<property name="text">
|
||||
<string><b>Synchronisation</b></string>
|
||||
<string>PREFERENCES_SYNCHRONISATION</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
|
@ -352,28 +352,28 @@
|
|||
<item>
|
||||
<widget class="QCheckBox" name="syncMedia">
|
||||
<property name="text">
|
||||
<string>Synchronize audio and images too</string>
|
||||
<string>PREFERENCES_SYNCHRONIZE_AUDIO_AND_IMAGES_TOO</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="syncOnProgramOpen">
|
||||
<property name="text">
|
||||
<string>Automatically sync on profile open/close</string>
|
||||
<string>PREFERENCES_AUTOMATICALLY_SYNC_ON_PROFILE_OPENCLOSE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="autoSyncMedia">
|
||||
<property name="text">
|
||||
<string>Periodically sync media</string>
|
||||
<string>PREFERENCES_PERIODICALLY_SYNC_MEDIA</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="fullSync">
|
||||
<property name="text">
|
||||
<string>On next sync, force changes in one direction</string>
|
||||
<string>PREFERENCES_ON_NEXT_SYNC_FORCE_CHANGES_IN</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -456,7 +456,7 @@
|
|||
</widget>
|
||||
<widget class="QWidget" name="tab">
|
||||
<attribute name="title">
|
||||
<string>Backups</string>
|
||||
<string>PREFERENCES_BACKUPS</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<property name="spacing">
|
||||
|
@ -477,7 +477,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="label_9">
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" font-weight:600;">Backups</span><br/>Anki will create a backup of your collection each time it is closed.</p></body></html></string>
|
||||
<string>PREFERENCES_BACKUPSANKI_WILL_CREATE_A_BACKUP_OF</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
|
@ -489,7 +489,7 @@
|
|||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_10">
|
||||
<property name="text">
|
||||
<string>Keep</string>
|
||||
<string>PREFERENCES_KEEP</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -512,7 +512,7 @@
|
|||
<item row="0" column="2">
|
||||
<widget class="QLabel" name="label_11">
|
||||
<property name="text">
|
||||
<string>backups</string>
|
||||
<string>PREFERENCES_BACKUPS2</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -534,14 +534,14 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="openBackupFolder">
|
||||
<property name="text">
|
||||
<string>You can restore backups via File>Switch Profile.</string>
|
||||
<string>PREFERENCES_YOU_CAN_RESTORE_BACKUPS_VIA_FILESWITCH</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Note: Media is not backed up. Please create a periodic backup of your Anki folder to be safe.</string>
|
||||
<string>PREFERENCES_NOTE_MEDIA_IS_NOT_BACKED_UP</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
|
@ -564,7 +564,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="label_21">
|
||||
<property name="text">
|
||||
<string>Some settings will take effect after you restart Anki.</string>
|
||||
<string>PREFERENCES_SOME_SETTINGS_WILL_TAKE_EFFECT_AFTER</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Profiles</string>
|
||||
<string>PROFILES_PROFILES</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="icons.qrc">
|
||||
|
@ -33,7 +33,7 @@
|
|||
<item>
|
||||
<widget class="QPushButton" name="login">
|
||||
<property name="text">
|
||||
<string>Open</string>
|
||||
<string>PROFILES_OPEN</string>
|
||||
</property>
|
||||
<property name="default">
|
||||
<bool>true</bool>
|
||||
|
@ -43,28 +43,28 @@
|
|||
<item>
|
||||
<widget class="QPushButton" name="add">
|
||||
<property name="text">
|
||||
<string>Add</string>
|
||||
<string>ACTIONS_ADD</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="rename">
|
||||
<property name="text">
|
||||
<string>Rename</string>
|
||||
<string>ACTIONS_RENAME</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="delete_2">
|
||||
<property name="text">
|
||||
<string>Delete</string>
|
||||
<string>ACTIONS_DELETE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="quit">
|
||||
<property name="text">
|
||||
<string>Quit</string>
|
||||
<string>PROFILES_QUIT</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -84,7 +84,7 @@
|
|||
<item>
|
||||
<widget class="QPushButton" name="openBackup">
|
||||
<property name="text">
|
||||
<string>Open Backup...</string>
|
||||
<string>PROFILES_OPEN_BACKUP</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
<string notr="true">Dialog</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="margin">
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Reposition New Cards</string>
|
||||
<string>BROWSING_REPOSITION_NEW_CARDS</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
|
@ -26,7 +26,7 @@
|
|||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Start position:</string>
|
||||
<string>BROWSING_START_POSITION</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -46,7 +46,7 @@
|
|||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Step:</string>
|
||||
<string>BROWSING_STEP</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -65,14 +65,14 @@
|
|||
<item>
|
||||
<widget class="QCheckBox" name="randomize">
|
||||
<property name="text">
|
||||
<string>Randomize order</string>
|
||||
<string>BROWSING_RANDOMIZE_ORDER</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="shift">
|
||||
<property name="text">
|
||||
<string>Shift position of existing cards</string>
|
||||
<string>BROWSING_SHIFT_POSITION_OF_EXISTING_CARDS</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Reschedule</string>
|
||||
<string>BROWSING_RESCHEDULE</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QRadioButton" name="asNew">
|
||||
<property name="text">
|
||||
<string>Place at end of new card queue</string>
|
||||
<string>BROWSING_PLACE_AT_END_OF_NEW_CARD</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
|
@ -27,7 +27,7 @@
|
|||
<item>
|
||||
<widget class="QRadioButton" name="asRev">
|
||||
<property name="text">
|
||||
<string>Place in review queue with interval between:</string>
|
||||
<string>BROWSING_PLACE_IN_REVIEW_QUEUE_WITH_INTERVAL</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -54,7 +54,7 @@
|
|||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>~</string>
|
||||
<string notr="true">~</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -75,7 +75,7 @@
|
|||
<item row="0" column="3">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>days</string>
|
||||
<string>SCHEDULING_DAYS</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Anki</string>
|
||||
<string notr="true">Anki</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Move cards to deck:</string>
|
||||
<string>BROWSING_MOVE_CARDS_TO_DECK</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Anki</string>
|
||||
<string notr="true">Anki</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Interface language:</string>
|
||||
<string>PREFERENCES_INTERFACE_LANGUAGE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Statistics</string>
|
||||
<string notr="true">Statistics</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="spacing">
|
||||
|
@ -33,7 +33,7 @@
|
|||
<widget class="AnkiWebView" name="web" native="true">
|
||||
<property name="url" stdset="0">
|
||||
<url>
|
||||
<string>about:blank</string>
|
||||
<string notr="true">about:blank</string>
|
||||
</url>
|
||||
</property>
|
||||
</widget>
|
||||
|
@ -77,7 +77,7 @@
|
|||
<item>
|
||||
<widget class="QRadioButton" name="groups">
|
||||
<property name="text">
|
||||
<string>deck</string>
|
||||
<string notr="true">deck</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
|
@ -87,7 +87,7 @@
|
|||
<item>
|
||||
<widget class="QRadioButton" name="all">
|
||||
<property name="text">
|
||||
<string>collection</string>
|
||||
<string notr="true">collection</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -103,7 +103,7 @@
|
|||
<item>
|
||||
<widget class="QRadioButton" name="month">
|
||||
<property name="text">
|
||||
<string>1 month</string>
|
||||
<string notr="true">1 month</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
|
@ -113,14 +113,14 @@
|
|||
<item>
|
||||
<widget class="QRadioButton" name="year">
|
||||
<property name="text">
|
||||
<string>1 year</string>
|
||||
<string notr="true">1 year</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="life">
|
||||
<property name="text">
|
||||
<string>deck life</string>
|
||||
<string notr="true">deck life</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Study Deck</string>
|
||||
<string>DECKS_STUDY_DECK</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
|
@ -19,7 +19,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Filter:</string>
|
||||
<string>DECKS_FILTER</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Selective Study</string>
|
||||
<string>CUSTOM_STUDY_SELECTIVE_STUDY</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="activeCheck">
|
||||
<property name="text">
|
||||
<string>Require one or more of these tags:</string>
|
||||
<string>CUSTOM_STUDY_REQUIRE_ONE_OR_MORE_OF_THESE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -40,7 +40,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Select tags to exclude:</string>
|
||||
<string>CUSTOM_STUDY_SELECT_TAGS_TO_EXCLUDE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
<string>CARD_TEMPLATES_FORM</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<property name="leftMargin">
|
||||
|
|
|
@ -3,10 +3,11 @@
|
|||
import glob, re, json, stringcase
|
||||
|
||||
files = (
|
||||
glob.glob("../../pylib/**/*.py", recursive=True)
|
||||
# glob.glob("../../pylib/**/*.py", recursive=True)
|
||||
# glob.glob("../../qt/**/*.py", recursive=True)
|
||||
glob.glob("../../qt/**/forms/*.ui", recursive=True)
|
||||
)
|
||||
string_re = re.compile(r'_\(\s*(".*?")\s*\)')
|
||||
string_re = re.compile(r"<string>(.*?)</string>")
|
||||
|
||||
map = json.load(open("keys_by_text.json"))
|
||||
|
||||
|
@ -16,16 +17,43 @@ blacklist = {
|
|||
"After pressing OK, you can choose which tags to include.",
|
||||
"Filter/Cram",
|
||||
"Show %s",
|
||||
"~",
|
||||
"about:blank",
|
||||
# previewer.py needs updating to fix these
|
||||
"Shortcut key: R",
|
||||
"Shortcut key: B",
|
||||
}
|
||||
|
||||
from html.entities import name2codepoint
|
||||
|
||||
reEnts = re.compile(r"&#?\w+;")
|
||||
|
||||
|
||||
def decode_ents(html):
|
||||
def fixup(m):
|
||||
text = m.group(0)
|
||||
if text[:2] == "&#":
|
||||
# character reference
|
||||
try:
|
||||
if text[:3] == "&#x":
|
||||
return chr(int(text[3:-1], 16))
|
||||
else:
|
||||
return chr(int(text[2:-1]))
|
||||
except ValueError:
|
||||
pass
|
||||
else:
|
||||
# named entity
|
||||
try:
|
||||
text = chr(name2codepoint[text[1:-1]])
|
||||
except KeyError:
|
||||
pass
|
||||
return text # leave as is
|
||||
|
||||
return reEnts.sub(fixup, html)
|
||||
|
||||
|
||||
def repl(m):
|
||||
# the argument may consistent of multiple strings that need merging together
|
||||
text = eval(m.group(1))
|
||||
|
||||
text = decode_ents(m.group(1))
|
||||
if text in blacklist:
|
||||
return m.group(0)
|
||||
|
||||
|
@ -33,11 +61,7 @@ def repl(m):
|
|||
screaming = stringcase.constcase(key)
|
||||
print(screaming)
|
||||
|
||||
if "%d" in text or "%s" in text:
|
||||
# replace { $val } with %s for compat with old code
|
||||
return f'tr_legacyglobal(TR.{screaming}, val="%s")'
|
||||
|
||||
return f"tr_legacyglobal(TR.{screaming})"
|
||||
return f"<string>{screaming}</string>"
|
||||
|
||||
|
||||
for file in files:
|
||||
|
@ -46,8 +70,4 @@ for file in files:
|
|||
buf = open(file).read()
|
||||
buf2 = string_re.sub(repl, buf)
|
||||
if buf != buf2:
|
||||
lines = buf2.split("\n")
|
||||
lines.insert(3, "from anki.rsbackend import TR")
|
||||
lines.insert(3, "from anki.lang import tr_legacyglobal")
|
||||
buf2 = "\n".join(lines)
|
||||
open(file, "w").write(buf2)
|
||||
|
|
Loading…
Reference in a new issue