Skip to content

Commit

Permalink
data: Update blp files
Browse files Browse the repository at this point in the history
Gettext typically cannot extract single quoted strings from .blp files.
  • Loading branch information
yakushabb committed Apr 17, 2024
1 parent 2da25a7 commit 0e5f011
Show file tree
Hide file tree
Showing 14 changed files with 96 additions and 96 deletions.
2 changes: 1 addition & 1 deletion data/ui/album_element.blp
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
16 changes: 8 additions & 8 deletions data/ui/book_detail.blp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ template $BookDetail: Box {
Label download_label {
margin-start: 5;
margin-end: 4;
label: _('Download');
label: _("Download");
}
}

Expand Down Expand Up @@ -137,7 +137,7 @@ template $BookDetail: Box {
Label remaining_text {
halign: start;
hexpand: true;
label: _('Remaining');
label: _("Remaining");

styles [
"dim-label",
Expand Down Expand Up @@ -184,7 +184,7 @@ template $BookDetail: Box {

Label {
halign: start;
label: _('Total');
label: _("Total");

styles [
"dim-label",
Expand All @@ -198,7 +198,7 @@ template $BookDetail: Box {

Label {
halign: start;
label: _('Last played');
label: _("Last played");

styles [
"dim-label",
Expand All @@ -212,7 +212,7 @@ template $BookDetail: Box {

Label published_text {
halign: start;
label: _('Published');
label: _("Published");

styles [
"dim-label",
Expand All @@ -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;

Expand All @@ -250,7 +250,7 @@ template $BookDetail: Box {
}

Label {
label: _('unavailable');
label: _("unavailable");

styles [
"unavailable_label",
Expand Down Expand Up @@ -342,7 +342,7 @@ template $BookDetail: Box {

Label chapters_loading_text {
halign: center;
label: _('Loading chapters, please wait...');
label: _("Loading chapters, please wait...");
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion data/ui/book_element.blp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion data/ui/chapter_element.blp
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
12 changes: 6 additions & 6 deletions data/ui/error_reporting.blp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ template $ErrorReporting: Box {
spacing: 15;

Label {
label: _('User feedback');
label: _("User feedback");
wrap: true;

styles [
Expand Down Expand Up @@ -64,22 +64,22 @@ 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;
}

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;
}
Expand Down Expand Up @@ -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;

Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion data/ui/first_import_button.blp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ template $FirstImportButton: Button {

Adw.ButtonContent label {
halign: center;
label: _('Select Folder');
label: _("Select Folder");
icon-name: 'folder-open-symbolic';
}

Expand Down
24 changes: 12 additions & 12 deletions data/ui/headerbar.blp
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,36 @@ 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");
}
}

[end]
MenuButton progress_menu_button {
visible: false;
can-focus: true;
tooltip-text: _('Display background task progress');
tooltip-text: _("Display background task progress");

Spinner progress_spinner {}

Expand All @@ -64,7 +64,7 @@ template $Headerbar: Box {

SearchEntry search_entry {
search-delay: 100;
placeholder-text: _('Start typing...');
placeholder-text: _("Start typing...");
hexpand: true;
}
}
Expand All @@ -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");
}
}
}
20 changes: 10 additions & 10 deletions data/ui/main_window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 {
Expand All @@ -59,7 +59,7 @@ Adw.ApplicationWindow app_window {

Adw.ViewStackPage {
name: 'recent';
title: _('Recent');
title: _("Recent");
icon-name: 'recent-symbolic';

child: Label {
Expand All @@ -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 {
Expand All @@ -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 [
Expand All @@ -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 {
Expand All @@ -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 [
Expand Down Expand Up @@ -158,7 +158,7 @@ Adw.ApplicationWindow app_window {
selection-mode: none;

accessibility {
label: _('List of books');
label: _("List of books");
}

styles [
Expand All @@ -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");
};
}

Expand Down
Loading

0 comments on commit 0e5f011

Please sign in to comment.