From 0e5f011564cfa65cc2a9f9e58034b5fb34404d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Wed, 17 Apr 2024 20:27:42 +0300 Subject: [PATCH] data: Update blp files Gettext typically cannot extract single quoted strings from .blp files. --- data/ui/album_element.blp | 2 +- data/ui/book_detail.blp | 16 ++++++------- data/ui/book_element.blp | 2 +- data/ui/chapter_element.blp | 2 +- data/ui/error_reporting.blp | 12 +++++----- data/ui/first_import_button.blp | 2 +- data/ui/headerbar.blp | 24 ++++++++++---------- data/ui/main_window.blp | 20 ++++++++--------- data/ui/media_controller.blp | 26 ++++++++++----------- data/ui/preferences.blp | 40 ++++++++++++++++----------------- data/ui/search_page.blp | 10 ++++----- data/ui/seek_bar.blp | 12 +++++----- data/ui/storage_locations.blp | 8 +++---- data/ui/timer_popover.blp | 16 ++++++------- 14 files changed, 96 insertions(+), 96 deletions(-) diff --git a/data/ui/album_element.blp b/data/ui/album_element.blp index fea55dc5..58acfcd9 100644 --- a/data/ui/album_element.blp +++ b/data/ui/album_element.blp @@ -37,7 +37,7 @@ template $AlbumElement: Box { height-request: 40; focusable: true; focus-on-click: false; - tooltip-text: _('Play'); + tooltip-text: _("Play"); halign: center; valign: center; icon-name: 'media-playback-start-symbolic'; diff --git a/data/ui/book_detail.blp b/data/ui/book_detail.blp index 43ae11f1..8dbd7904 100644 --- a/data/ui/book_detail.blp +++ b/data/ui/book_detail.blp @@ -109,7 +109,7 @@ template $BookDetail: Box { Label download_label { margin-start: 5; margin-end: 4; - label: _('Download'); + label: _("Download"); } } @@ -137,7 +137,7 @@ template $BookDetail: Box { Label remaining_text { halign: start; hexpand: true; - label: _('Remaining'); + label: _("Remaining"); styles [ "dim-label", @@ -184,7 +184,7 @@ template $BookDetail: Box { Label { halign: start; - label: _('Total'); + label: _("Total"); styles [ "dim-label", @@ -198,7 +198,7 @@ template $BookDetail: Box { Label { halign: start; - label: _('Last played'); + label: _("Last played"); styles [ "dim-label", @@ -212,7 +212,7 @@ template $BookDetail: Box { Label published_text { halign: start; - label: _('Published'); + label: _("Published"); styles [ "dim-label", @@ -237,7 +237,7 @@ template $BookDetail: Box { } Box unavailable_box { - tooltip-text: _('Some or all files of this book cannot be found.'); + tooltip-text: _("Some or all files of this book cannot be found."); halign: center; spacing: 4; @@ -250,7 +250,7 @@ template $BookDetail: Box { } Label { - label: _('unavailable'); + label: _("unavailable"); styles [ "unavailable_label", @@ -342,7 +342,7 @@ template $BookDetail: Box { Label chapters_loading_text { halign: center; - label: _('Loading chapters, please wait...'); + label: _("Loading chapters, please wait..."); } }; } diff --git a/data/ui/book_element.blp b/data/ui/book_element.blp index a8090ec0..6b8acea9 100644 --- a/data/ui/book_element.blp +++ b/data/ui/book_element.blp @@ -6,7 +6,7 @@ template $BookElement: FlowBoxChild { child: Box container_box { focusable: true; - tooltip-text: _('Open book overview'); + tooltip-text: _("Open book overview"); orientation: vertical; spacing: 1; valign: start; diff --git a/data/ui/chapter_element.blp b/data/ui/chapter_element.blp index a3017374..298c19f1 100644 --- a/data/ui/chapter_element.blp +++ b/data/ui/chapter_element.blp @@ -1,7 +1,7 @@ using Gtk 4.0; template $ChapterElement: Box { - tooltip-text: _('Play this part'); + tooltip-text: _("Play this part"); Box { margin-start: 12; diff --git a/data/ui/error_reporting.blp b/data/ui/error_reporting.blp index 8eaac02b..e34670cf 100644 --- a/data/ui/error_reporting.blp +++ b/data/ui/error_reporting.blp @@ -22,7 +22,7 @@ template $ErrorReporting: Box { spacing: 15; Label { - label: _('User feedback'); + label: _("User feedback"); wrap: true; styles [ @@ -64,14 +64,14 @@ template $ErrorReporting: Box { Label { halign: start; valign: center; - label: C_('Error and crash reporting dialog', 'You can help improve Cozy by contributing information in case of errors and crashes. '); + label: C_("Error and crash reporting dialog", "You can help improve Cozy by contributing information in case of errors and crashes. "); wrap: true; xalign: 0; } Label { valign: center; - label: C_('Error and crash reporting dialog', 'Contributing this information is optional and completely anonymous. We will never collect personal data, files you import or any information that could identify you.'); + label: C_("Error and crash reporting dialog", "Contributing this information is optional and completely anonymous. We will never collect personal data, files you import or any information that could identify you."); wrap: true; xalign: 0; } @@ -79,7 +79,7 @@ template $ErrorReporting: Box { Label { valign: center; halign: start; - label: C_('Error and crash reporting dialog', 'Cozy is opensource and the user feedback source code can be inspected here: '); + label: C_("Error and crash reporting dialog", "Cozy is opensource and the user feedback source code can be inspected here: "); wrap: true; xalign: 0; } @@ -145,7 +145,7 @@ template $ErrorReporting: Box { Label level_label { halign: start; - label: _('Detailed error reporting with import errors'); + label: _("Detailed error reporting with import errors"); wrap: true; xalign: 0; @@ -157,7 +157,7 @@ template $ErrorReporting: Box { Label description_label { halign: start; valign: start; - label: _('The following information will be sent in case of an error or crash:'); + label: _("The following information will be sent in case of an error or crash:"); wrap: true; xalign: 0; } diff --git a/data/ui/first_import_button.blp b/data/ui/first_import_button.blp index 00fd60b4..57219637 100644 --- a/data/ui/first_import_button.blp +++ b/data/ui/first_import_button.blp @@ -9,7 +9,7 @@ template $FirstImportButton: Button { Adw.ButtonContent label { halign: center; - label: _('Select Folder'); + label: _("Select Folder"); icon-name: 'folder-open-symbolic'; } diff --git a/data/ui/headerbar.blp b/data/ui/headerbar.blp index 7f71b50b..88f00f14 100644 --- a/data/ui/headerbar.blp +++ b/data/ui/headerbar.blp @@ -14,28 +14,28 @@ template $Headerbar: Box { ToggleButton show_sidebar_button { visible: false; icon-name: 'sidebar-show-symbolic'; - tooltip-text: _('Toggle Filter Sidebar'); + tooltip-text: _("Toggle Filter Sidebar"); } [end] MenuButton menu_button { - tooltip-text: _('Options'); + tooltip-text: _("Options"); menu-model: primary_menu; icon-name: 'open-menu-symbolic'; accessibility { - label: _('Open the options popover'); + label: _("Open the options popover"); } } [end] ToggleButton search_button { name: 'Search toggle button'; - tooltip-text: _('Search your library'); + tooltip-text: _("Search your library"); icon-name: 'loupe-large-symbolic'; accessibility { - label: _('Open the search popover'); + label: _("Open the search popover"); } } @@ -43,7 +43,7 @@ template $Headerbar: Box { MenuButton progress_menu_button { visible: false; can-focus: true; - tooltip-text: _('Display background task progress'); + tooltip-text: _("Display background task progress"); Spinner progress_spinner {} @@ -64,7 +64,7 @@ template $Headerbar: Box { SearchEntry search_entry { search-delay: 100; - placeholder-text: _('Start typing...'); + placeholder-text: _("Start typing..."); hexpand: true; } } @@ -75,33 +75,33 @@ menu primary_menu { section { item { action: 'app.scan'; - label: _('_Scan Library'); + label: _("_Scan Library"); } } section { item { action: 'app.hide_offline'; - label: _('_Hide unavailable books'); + label: _("_Hide unavailable books"); } } section { item { action: 'app.prefs'; - label: _('_Preferences'); + label: _("_Preferences"); } item { action: 'app.about'; - label: _('_About Cozy'); + label: _("_About Cozy"); } } section { item { action: 'app.quit'; - label: _('_Quit'); + label: _("_Quit"); } } } diff --git a/data/ui/main_window.blp b/data/ui/main_window.blp index 77f34eed..ad3d711b 100644 --- a/data/ui/main_window.blp +++ b/data/ui/main_window.blp @@ -25,7 +25,7 @@ Adw.ApplicationWindow app_window { Adw.StatusPage { icon-name: 'library-symbolic'; - title: _('Drop Audio Books Here to Add Them to Your Library'); + title: _("Drop Audio Books Here to Add Them to Your Library"); styles [ "drag-overlay-status-page", @@ -43,7 +43,7 @@ Adw.ApplicationWindow app_window { content: Adw.NavigationView navigation_view { Adw.NavigationPage { - title: _('Library'); + title: _("Library"); tag: 'main'; Adw.ToolbarView header_container { @@ -59,7 +59,7 @@ Adw.ApplicationWindow app_window { Adw.ViewStackPage { name: 'recent'; - title: _('Recent'); + title: _("Recent"); icon-name: 'recent-symbolic'; child: Label { @@ -69,7 +69,7 @@ Adw.ApplicationWindow app_window { Adw.ViewStackPage { name: 'author'; - title: _('Author'); + title: _("Author"); icon-name: 'person-symbolic'; child: ScrolledWindow sort_author_scroller { @@ -80,7 +80,7 @@ Adw.ApplicationWindow app_window { child: Viewport sort_author_viewport { $FilterListBox author_box { accessibility { - label: _('List of authors'); + label: _("List of authors"); } styles [ @@ -97,7 +97,7 @@ Adw.ApplicationWindow app_window { Adw.ViewStackPage { name: 'reader'; - title: _('Reader'); + title: _("Reader"); icon-name: 'microphone2-symbolic'; child: ScrolledWindow sort_reader_scroller { @@ -108,7 +108,7 @@ Adw.ApplicationWindow app_window { child: Viewport sort_reader_viewport { $FilterListBox reader_box { accessibility { - label: _('List of readers'); + label: _("List of readers"); } styles [ @@ -158,7 +158,7 @@ Adw.ApplicationWindow app_window { selection-mode: none; accessibility { - label: _('List of books'); + label: _("List of books"); } styles [ @@ -178,8 +178,8 @@ Adw.ApplicationWindow app_window { child: Adw.StatusPage { icon-name: 'library-symbolic'; - title: _('No Recent Books Yet'); - description: _('Explore your library by switching to the Author or Reader view'); + title: _("No Recent Books Yet"); + description: _("Explore your library by switching to the Author or Reader view"); }; } diff --git a/data/ui/media_controller.blp b/data/ui/media_controller.blp index c1ef2a58..91e3fb89 100644 --- a/data/ui/media_controller.blp +++ b/data/ui/media_controller.blp @@ -48,7 +48,7 @@ template $MediaController: Adw.BreakpointBin { Box title_box { hexpand: true; - tooltip-text: _('Currently playing'); + tooltip-text: _("Currently playing"); valign: center; orientation: vertical; spacing: 2; @@ -63,7 +63,7 @@ template $MediaController: Adw.BreakpointBin { xalign: 0; accessibility { - label: _('Title of currently playing book'); + label: _("Title of currently playing book"); } styles [ @@ -81,7 +81,7 @@ template $MediaController: Adw.BreakpointBin { xalign: 0; accessibility { - label: _('Title of the currently playing part'); + label: _("Title of the currently playing part"); } } } @@ -106,13 +106,13 @@ template $MediaController: Adw.BreakpointBin { Button prev_button { focusable: true; receives-default: true; - tooltip-text: _('Rewind'); + tooltip-text: _("Rewind"); halign: center; valign: center; icon-name: 'object-rotate-left-symbolic'; accessibility { - label: _('Rewind playback'); + label: _("Rewind playback"); } styles [ @@ -126,13 +126,13 @@ template $MediaController: Adw.BreakpointBin { height-request: 42; focusable: true; receives-default: true; - tooltip-text: _('Start playback'); + tooltip-text: _("Start playback"); halign: center; valign: center; icon-name: 'media-playback-start-symbolic'; accessibility { - label: _('Start or pause the playback'); + label: _("Start or pause the playback"); } styles [ @@ -145,13 +145,13 @@ template $MediaController: Adw.BreakpointBin { Button next_button { focusable: true; receives-default: true; - tooltip-text: _('Forward'); + tooltip-text: _("Forward"); halign: center; valign: center; icon-name: 'object-rotate-right-symbolic'; accessibility { - label: _('Forward Playback'); + label: _("Forward Playback"); } styles [ @@ -175,7 +175,7 @@ template $MediaController: Adw.BreakpointBin { spacing: 3; ScaleButton volume_button { - tooltip-text: _('Volume control'); + tooltip-text: _("Volume control"); adjustment: Adjustment { lower: 0; @@ -193,7 +193,7 @@ template $MediaController: Adw.BreakpointBin { MenuButton playback_speed_button { focusable: true; receives-default: true; - tooltip-text: _('Playback speed'); + tooltip-text: _("Playback speed"); icon-name: 'playback-speed-symbolic'; styles [ @@ -204,14 +204,14 @@ template $MediaController: Adw.BreakpointBin { MenuButton timer_button { focusable: true; receives-default: true; - tooltip-text: _('Sleep Timer'); + tooltip-text: _("Sleep Timer"); Image timer_image { icon-name: 'bed-symbolic'; } accessibility { - label: _('Open the sleep timer popover'); + label: _("Open the sleep timer popover"); } styles [ diff --git a/data/ui/preferences.blp b/data/ui/preferences.blp index 49d9b696..37c9e126 100644 --- a/data/ui/preferences.blp +++ b/data/ui/preferences.blp @@ -26,35 +26,35 @@ Adjustment rewind_duration_adjustment { template $PreferencesWindow: Adw.PreferencesDialog { Adw.PreferencesPage { icon-name: 'settings-symbolic'; - title: _('General'); + title: _("General"); Adw.PreferencesGroup { - title: _('Appearance'); + title: _("Appearance"); Adw.SwitchRow dark_mode_switch { - title: _('Dark Mode'); + title: _("Dark Mode"); } } Adw.PreferencesGroup { - title: _('Tags'); + title: _("Tags"); Adw.SwitchRow swap_author_reader_switch { - title: _('Swap Author and Reader'); - subtitle: _('Activate if author and reader are displayed the wrong way'); + title: _("Swap Author and Reader"); + subtitle: _("Activate if author and reader are displayed the wrong way"); } } Adw.PreferencesGroup { - title: _('Playback'); + title: _("Playback"); Adw.SwitchRow replay_switch { - title: _('Replay'); - subtitle: _('Rewind 30 seconds of the current book when starting Cozy'); + title: _("Replay"); + subtitle: _("Rewind 30 seconds of the current book when starting Cozy"); } Adw.SpinRow rewind_duration_spin_button { - title: _('Rewind Duration'); + title: _("Rewind Duration"); focusable: true; adjustment: rewind_duration_adjustment; snap-to-ticks: true; @@ -62,7 +62,7 @@ template $PreferencesWindow: Adw.PreferencesDialog { } Adw.SpinRow forward_duration_spin_button { - title: _('Forward Duration'); + title: _("Forward Duration"); focusable: true; adjustment: forward_duration_adjustment; snap-to-ticks: true; @@ -71,15 +71,15 @@ template $PreferencesWindow: Adw.PreferencesDialog { } Adw.PreferencesGroup { - title: _('Sleep Timer'); + title: _("Sleep Timer"); Adw.ExpanderRow sleep_timer_fadeout_switch { - title: _('Fadeout'); + title: _("Fadeout"); expanded: true; show-enable-switch: true; Adw.SpinRow { - title: _('Fadeout Duration'); + title: _("Fadeout Duration"); focusable: true; adjustment: fadeout_duration_adjustment; snap-to-ticks: true; @@ -91,24 +91,24 @@ template $PreferencesWindow: Adw.PreferencesDialog { Adw.PreferencesPage storages_page { icon-name: 'harddisk-symbolic'; - title: _('Storage'); + title: _("Storage"); Adw.PreferencesGroup { - title: _('Artwork'); + title: _("Artwork"); Adw.SwitchRow artwork_prefer_external_switch { - title: _('Prefer External Images Over Embedded Cover'); - subtitle: _('Always use images (cover.jpg, *.png, …) when available'); + title: _("Prefer External Images Over Embedded Cover"); + subtitle: _("Always use images (cover.jpg, *.png, …) when available"); } } } Adw.PreferencesPage { icon-name: 'papyrus-vertical-symbolic'; - title: _('Feedback'); + title: _("Feedback"); Adw.PreferencesGroup user_feedback_preference_group { - title: _('User feedback'); + title: _("User feedback"); } } } diff --git a/data/ui/search_page.blp b/data/ui/search_page.blp index d32e2c41..b043e990 100644 --- a/data/ui/search_page.blp +++ b/data/ui/search_page.blp @@ -4,12 +4,12 @@ using Adw 1; template $SearchView: Adw.Bin { Stack stack { Adw.StatusPage start_searching_page { - title: _('Search in your library'); + title: _("Search in your library"); icon-name: 'library-symbolic'; } Adw.StatusPage nothing_found_page { - title: _('No results found'); + title: _("No results found"); icon-name: 'edit-find-symbolic'; } @@ -25,7 +25,7 @@ template $SearchView: Adw.Bin { spacing: 24; Adw.PreferencesGroup book_result_box { - title: _('Book'); + title: _("Book"); visible: false; ListBox book_result_list { @@ -36,7 +36,7 @@ template $SearchView: Adw.Bin { } Adw.PreferencesGroup author_result_box { - title: _('Author'); + title: _("Author"); visible: false; ListBox author_result_list { @@ -47,7 +47,7 @@ template $SearchView: Adw.Bin { } Adw.PreferencesGroup reader_result_box { - title: _('Reader'); + title: _("Reader"); visible: false; ListBox reader_result_list { diff --git a/data/ui/seek_bar.blp b/data/ui/seek_bar.blp index 9b43833a..b3cb54e2 100644 --- a/data/ui/seek_bar.blp +++ b/data/ui/seek_bar.blp @@ -12,14 +12,14 @@ template $SeekBar: Box { spacing: 5; Label current_label { - tooltip-text: _('Elapsed time'); + tooltip-text: _("Elapsed time"); halign: end; valign: center; label: '--:--'; single-line-mode: true; accessibility { - label: _('Elapsed time of current part'); + label: _("Elapsed time of current part"); } styles [ @@ -30,7 +30,7 @@ template $SeekBar: Box { Scale progress_scale { width-request: 150; focusable: true; - tooltip-text: _('Jump to position in current chapter'); + tooltip-text: _("Jump to position in current chapter"); valign: center; hexpand: true; adjustment: seek_bar_adjustment; @@ -38,7 +38,7 @@ template $SeekBar: Box { fill-level: 0; accessibility { - label: _('Position of the current part in seconds'); + label: _("Position of the current part in seconds"); } } @@ -46,13 +46,13 @@ template $SeekBar: Box { valign: center; Label remaining_label { - tooltip-text: _('Remaining time'); + tooltip-text: _("Remaining time"); halign: start; label: '--:--'; single-line-mode: true; accessibility { - label: _('Remaining time of current part'); + label: _("Remaining time of current part"); } styles [ diff --git a/data/ui/storage_locations.blp b/data/ui/storage_locations.blp index c463b3be..2b59a738 100644 --- a/data/ui/storage_locations.blp +++ b/data/ui/storage_locations.blp @@ -2,7 +2,7 @@ using Gtk 4.0; using Adw 1; template $StorageLocations: Adw.PreferencesGroup { - title: _('Storage locations'); + title: _("Storage locations"); ListBox storage_locations_list { margin-bottom: 18; @@ -16,19 +16,19 @@ template $StorageLocations: Adw.PreferencesGroup { menu storage_menu { section { item { - label: _('External drive'); + label: _("External drive"); action: 'storage.mark-external'; } } section { item { - label: _('Set as default'); + label: _("Set as default"); action: 'storage.make-default'; } item { - label: _('Remove'); + label: _("Remove"); action: 'storage.remove'; } } diff --git a/data/ui/timer_popover.blp b/data/ui/timer_popover.blp index 07cd347a..9d01e2d2 100644 --- a/data/ui/timer_popover.blp +++ b/data/ui/timer_popover.blp @@ -27,7 +27,7 @@ template $SleepTimer: Popover { Scale timer_scale { width-request: 205; focusable: true; - tooltip-text: _('Timer duration'); + tooltip-text: _("Timer duration"); halign: start; margin-end: 10; adjustment: timer_value; @@ -38,7 +38,7 @@ template $SleepTimer: Popover { value-pos: right; accessibility { - label: _('Set the sleep timer duration in minutes'); + label: _("Set the sleep timer duration in minutes"); } layout { @@ -51,7 +51,7 @@ template $SleepTimer: Popover { halign: end; valign: center; margin-start: 6; - label: _('min'); + label: _("min"); layout { column: '2'; @@ -81,7 +81,7 @@ template $SleepTimer: Popover { hexpand: true; halign: start; margin-end: 10; - label: _('Stop after current chapter'); + label: _("Stop after current chapter"); } Switch chapter_switch { @@ -97,7 +97,7 @@ template $SleepTimer: Popover { Label { hexpand: true; halign: start; - label: _('Enable system power control'); + label: _("Enable system power control"); } Switch power_control_switch { @@ -114,19 +114,19 @@ template $SleepTimer: Popover { hexpand: true; tooltip-markup: _('Type of the action when the timer finishes.\n"shutdown" will attempt to turn your system off (also known as power off)\n"suspend" will attempt to suspend your system (also known as sleep).'); halign: start; - label: _('System power action to perform'); + label: _("System power action to perform"); } Box { orientation: vertical; CheckButton system_suspend_radiob { - label: _('suspend'); + label: _("suspend"); active: true; } CheckButton system_shutdown_radiob { - label: _('shutdown'); + label: _("shutdown"); group: system_suspend_radiob; } }