Skip to content

Commit

Permalink
Merge pull request #20 from akosma/main
Browse files Browse the repository at this point in the history
Added menu entries and keyboard shortcut hints with translations
  • Loading branch information
Nokse22 authored Oct 1, 2023
2 parents 5adc23c + e4bb104 commit 7fa4209
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
6 changes: 6 additions & 0 deletions po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ msgstr ""
msgid "_Preferences"
msgstr "_Preferencias"

msgid "Fullscreen"
msgstr "Pantalla Completa"

msgid "Play/Pause"
msgstr "Reproducción/Pausa"

#: src/window.ui:270
msgid "_Keyboard Shortcuts"
msgstr "_Atajos de teclado"
Expand Down
6 changes: 6 additions & 0 deletions po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ msgstr ""
msgid "_Preferences"
msgstr "_Préférences"

msgid "Fullscreen"
msgstr "Plein écran"

msgid "Play/Pause"
msgstr "Lecture/Pause"

#: src/window.ui:270
msgid "_Keyboard Shortcuts"
msgstr "_Raccourcis clavier"
Expand Down
12 changes: 12 additions & 0 deletions src/gtk/help-overlay.ui
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@
<property name="action-name">app.quit</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Play/Pause</property>
<property name="action-name">app.play</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Fullscreen</property>
<property name="action-name">app.fullscreen</property>
</object>
</child>
</object>
</child>
</object>
Expand Down
8 changes: 8 additions & 0 deletions src/window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,14 @@ The font, color of the text and highlights can be customized.
<attribute name="label" translatable="yes">_Preferences</attribute>
<attribute name="action">app.preferences</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Fullscreen</attribute>
<attribute name="action">app.fullscreen</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Play/Pause</attribute>
<attribute name="action">app.play</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
<attribute name="action">win.show-help-overlay</attribute>
Expand Down

0 comments on commit 7fa4209

Please sign in to comment.