Skip to content

Commit

Permalink
fix: Fix .ui files translation
Browse files Browse the repository at this point in the history
Replace all `translatable="true"` with `translatable="yes"`
  • Loading branch information
liferooter committed Aug 4, 2022
1 parent 2ed4335 commit 50c8504
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 69 deletions.
6 changes: 3 additions & 3 deletions resources/ui/CustomToolPage.ui
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<style>
<class name="heading"/>
</style>
<property name="label" translatable="true">Edit Tool</property>
<property name="label" translatable="yes">Edit Tool</property>
</object>
</child>
<child type="end">
Expand All @@ -28,7 +28,7 @@
</style>
<signal name="clicked" handler="delete_tool"/>
<signal name="clicked" handler="go_back"/>
<property name="label" translatable="true">D_elete</property>
<property name="label" translatable="yes">D_elete</property>
<property name="use-underline">true</property>
</object>
</child>
Expand All @@ -40,4 +40,4 @@
</object>
</child>
</template>
</interface>
</interface>
2 changes: 1 addition & 1 deletion resources/ui/Editor.ui
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@
</object>
</property>
</template>
</interface>
</interface>
6 changes: 3 additions & 3 deletions resources/ui/NewToolPage.ui
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<style>
<class name="heading"/>
</style>
<property name="label" translatable="true">New Tool</property>
<property name="label" translatable="yes">New Tool</property>
</object>
</child>
<child type="end">
Expand All @@ -32,7 +32,7 @@
</style>
<signal name="clicked" handler="create"/>
<signal name="clicked" handler="go_back"/>
<property name="label" translatable="true">_Create</property>
<property name="label" translatable="yes">_Create</property>
<property name="use-underline">true</property>
</object>
</property>
Expand All @@ -44,4 +44,4 @@
<object class="TextPiecesToolSettings" id="tool_settings"></object>
</child>
</template>
</interface>
</interface>
26 changes: 13 additions & 13 deletions resources/ui/Preferences.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
<property name="modal">true</property>
<child>
<object class="AdwPreferencesPage">
<property name="title" translatable="true">_General</property>
<property name="title" translatable="yes">_General</property>
<property name="use-underline">true</property>
<property name="name">general-settings</property>
<property name="icon-name">preferences-symbolic</property>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="true">Editor</property>
<property name="title" translatable="yes">Editor</property>
<child>
<object class="AdwActionRow">
<property name="title" translatable="true">Editor _Font</property>
<property name="title" translatable="yes">Editor _Font</property>
<property name="use-underline">true</property>
<property name="activatable">true</property>
<property name="action-name">prefs.select-font</property>
Expand All @@ -36,7 +36,7 @@
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="true">_Wrap Lines</property>
<property name="title" translatable="yes">_Wrap Lines</property>
<property name="use-underline">true</property>
<property name="activatable-widget">wrap_lines_switch</property>
<child>
Expand All @@ -49,7 +49,7 @@
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="true">Tabs to _Spaces</property>
<property name="title" translatable="yes">Tabs to _Spaces</property>
<property name="use-underline">true</property>
<property name="activatable-widget">tabs_to_spaces</property>
<child>
Expand All @@ -62,7 +62,7 @@
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="true">_Tab Width in Spaces</property>
<property name="title" translatable="yes">_Tab Width in Spaces</property>
<property name="use-underline">true</property>
<property name="activatable-widget">spaces_in_tab</property>
<child>
Expand All @@ -84,7 +84,7 @@
</child>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="true">Appearance</property>
<property name="title" translatable="yes">Appearance</property>
<child>
<object class="AdwClamp">
<property name="maximum-size">450</property>
Expand All @@ -99,13 +99,13 @@
</child>
<child>
<object class="AdwPreferencesPage">
<property name="title" translatable="true">T_ools</property>
<property name="title" translatable="yes">T_ools</property>
<property name="use-underline">true</property>
<property name="name">custom-tools</property>
<property name="icon-name">applications-utilities-symbolic</property>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="true">Custom tools</property>
<property name="title" translatable="yes">Custom tools</property>
<child type="header-suffix">
<object class="GtkButton">
<style>
Expand All @@ -115,7 +115,7 @@
<child>
<object class="AdwButtonContent">
<property name="icon-name">list-add-symbolic</property>
<property name="label" translatable="true">_Add custom tool</property>
<property name="label" translatable="yes">_Add custom tool</property>
<property name="use-underline">true</property>
</object>
</child>
Expand All @@ -133,8 +133,8 @@
<child>
<object class="AdwStatusPage">
<property name="icon-name">applications-utilities-symbolic</property>
<property name="title" translatable="true">No Custom Tools</property>
<property name="description" translatable="true">You can create one</property>
<property name="title" translatable="yes">No Custom Tools</property>
<property name="description" translatable="yes">You can create one</property>
<property name="visible" bind-source="custom_tools_listbox" bind-property="visible" bind-flags="sync-create|invert-boolean"/>
<property name="vexpand">true</property>
<property name="valign">center</property>
Expand All @@ -145,4 +145,4 @@
</object>
</child>
</template>
</interface>
</interface>
24 changes: 12 additions & 12 deletions resources/ui/SearchBar.ui
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@
<child>
<object class="GtkButton">
<property name="icon-name">go-up-symbolic</property>
<property name="tooltip-text" translatable="true">Move to revious match</property>
<property name="tooltip-text" translatable="yes">Move to revious match</property>
<property name="action-name">search.prev-match</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="icon-name">go-down-symbolic</property>
<property name="tooltip-text" translatable="true">Move to next match</property>
<property name="tooltip-text" translatable="yes">Move to next match</property>
<property name="action-name">search.next-match</property>
</object>
</child>
Expand All @@ -53,7 +53,7 @@
<child>
<object class="GtkToggleButton" id="search_replace">
<property name="icon-name">edit-find-replace-symbolic</property>
<property name="tooltip-text" translatable="true">Find and replace</property>
<property name="tooltip-text" translatable="yes">Find and replace</property>
<layout>
<property name="row">0</property>
<property name="column">2</property>
Expand All @@ -63,7 +63,7 @@
<child>
<object class="GtkToggleButton" id="search_options">
<property name="icon-name">preferences-symbolic</property>
<property name="tooltip-text" translatable="true">Toggle search options</property>
<property name="tooltip-text" translatable="yes">Toggle search options</property>
<layout>
<property name="row">0</property>
<property name="column">3</property>
Expand All @@ -78,7 +78,7 @@
</style>
<property name="icon-name">window-close-symbolic</property>
<property name="action-name">search.hide</property>
<property name="tooltip-text" translatable="true">Close search</property>
<property name="tooltip-text" translatable="yes">Close search</property>
<layout>
<property name="row">0</property>
<property name="column">4</property>
Expand All @@ -89,7 +89,7 @@
<object class="GtkEntry" id="replace_entry">
<property name="primary-icon-name">edit-find-replace-symbolic</property>
<property name="primary-icon-activatable">false</property>
<property name="placeholder-text" translatable="true">Replace</property>
<property name="placeholder-text" translatable="yes">Replace</property>
<property name="visible" bind-source="search_replace" bind-property="active" bind-flags="sync-create"/>
<signal name="changed" handler="remove_error_style"/>
<layout>
Expand All @@ -100,7 +100,7 @@
</child>
<child>
<object class="GtkButton">
<property name="label" translatable="true">_Replace</property>
<property name="label" translatable="yes">_Replace</property>
<property name="use-underline">true</property>
<property name="visible" bind-source="search_replace" bind-property="active" bind-flags="sync-create"/>
<property name="sensitive" bind-source="search_entry" bind-property="occurrence_position" bind-flags="sync-create"/>
Expand All @@ -113,7 +113,7 @@
</child>
<child>
<object class="GtkButton">
<property name="label" translatable="true">Replace _All</property>
<property name="label" translatable="yes">Replace _All</property>
<property name="use-underline">true</property>
<property name="visible" bind-source="search_replace" bind-property="active" bind-flags="sync-create"/>
<property name="sensitive" bind-source="search_entry" bind-property="occurrences_count" bind-flags="sync-create"/>
Expand All @@ -132,21 +132,21 @@
<child>
<object class="GtkCheckButton">
<property name="use-underline">true</property>
<property name="label" translatable="true">Re_gular expressions</property>
<property name="label" translatable="yes">Re_gular expressions</property>
<property name="active" bind-source="TextPiecesSearchBar" bind-property="use-regex" bind-flags="sync-create|bidirectional"/>
</object>
</child>
<child>
<object class="GtkCheckButton">
<property name="use-underline">true</property>
<property name="label" translatable="true">_Case sensitive</property>
<property name="label" translatable="yes">_Case sensitive</property>
<property name="active" bind-source="TextPiecesSearchBar" bind-property="case-sensitive" bind-flags="sync-create|bidirectional"/>
</object>
</child>
<child>
<object class="GtkCheckButton">
<property name="use-underline">true</property>
<property name="label" translatable="true">Match whole _word only</property>
<property name="label" translatable="yes">Match whole _word only</property>
<property name="active" bind-source="TextPiecesSearchBar" bind-property="whole-words" bind-flags="sync-create|bidirectional"/>
</object>
</child>
Expand Down Expand Up @@ -184,4 +184,4 @@
</object>
</child>
</template>
</interface>
</interface>
4 changes: 2 additions & 2 deletions resources/ui/SearchEntry.ui
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</child>
<child>
<object class="GtkText" id="text">
<property name="placeholder-text" translatable="true">Find</property>
<property name="placeholder-text" translatable="yes">Find</property>
<property name="hexpand">true</property>
<property name="vexpand">true</property>
<property name="width-chars">12</property>
Expand Down Expand Up @@ -42,4 +42,4 @@
</object>
</child>
</template>
</interface>
</interface>
30 changes: 15 additions & 15 deletions resources/ui/ShortcutsWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,79 +7,79 @@
<property name="section-name">shortcuts</property>
<child>
<object class="GtkShortcutsGroup">
<property name="title" translatable="true">General</property>
<property name="title" translatable="yes">General</property>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="true">Keyboard shortcuts</property>
<property name="title" translatable="yes">Keyboard shortcuts</property>
<property name="action-name">win.show-help-overlay</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="true">Preferences</property>
<property name="title" translatable="yes">Preferences</property>
<property name="action-name">win.preferences</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="true">Quit</property>
<property name="title" translatable="yes">Quit</property>
<property name="action-name">window.close</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkShortcutsGroup">
<property name="title" translatable="true">Tools</property>
<property name="title" translatable="yes">Tools</property>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="true">Apply</property>
<property name="title" translatable="yes">Apply</property>
<property name="action-name">win.apply</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="true">Select tool</property>
<property name="title" translatable="yes">Select tool</property>
<property name="action-name">win.toggle-search</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="true">Just to the tool options</property>
<property name="title" translatable="yes">Just to the tool options</property>
<property name="action-name">win.jump-to-args</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkShortcutsGroup">
<property name="title" translatable="true">Undo and Redo</property>
<property name="title" translatable="yes">Undo and Redo</property>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="true">Undo</property>
<property name="title" translatable="yes">Undo</property>
<property name="accelerator">&lt;ctrl&gt;z</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="true">Redo</property>
<property name="title" translatable="yes">Redo</property>
<property name="accelerator">&lt;ctrl&gt;&lt;shift&gt;z</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkShortcutsGroup">
<property name="title" translatable="true">Files</property>
<property name="title" translatable="yes">Files</property>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="true">Load from file</property>
<property name="title" translatable="yes">Load from file</property>
<property name="action-name">win.load-file</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="true">Save to file</property>
<property name="title" translatable="yes">Save to file</property>
<property name="action-name">win.save-as</property>
</object>
</child>
Expand All @@ -88,4 +88,4 @@
</object>
</child>
</object>
</interface>
</interface>
Loading

0 comments on commit 50c8504

Please sign in to comment.