Skip to content

Commit

Permalink
Merge pull request geigi#911 from yakushabb/fixblp
Browse files Browse the repository at this point in the history
data: Update blp files
  • Loading branch information
geigi authored Apr 26, 2024
2 parents 2bbc672 + e61cdf1 commit e1922c3
Show file tree
Hide file tree
Showing 16 changed files with 118 additions and 109 deletions.
4 changes: 2 additions & 2 deletions cozy/media/tag_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ def _get_author(self):
if len(authors) > 0 and authors[0]:
return "; ".join(authors)
else:
return "Unknown"
return _("Unknown")

def _get_reader(self):
readers = self._get_string_list(Gst.TAG_ARTIST)

if len(readers) > 0 and readers[0]:
return "; ".join(readers)
else:
return "Unknown"
return _("Unknown")

def _get_disk(self):
success, value = self.tags.get_uint_index(Gst.TAG_ALBUM_VOLUME_NUMBER, 0)
Expand Down
5 changes: 4 additions & 1 deletion data/ui/album_element.blp
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ template $AlbumElement: Box {
height-request: 40;
focusable: true;
focus-on-click: false;
tooltip-text: _('Play');
tooltip-text: _("Start/Stop playback");
halign: center;
valign: center;
icon-name: 'media-playback-start-symbolic';
accessibility {
label: _("Start or pause the playback");
}

styles [
"circular",
Expand Down
24 changes: 14 additions & 10 deletions data/ui/book_detail.blp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ template $BookDetail: Box {
Label book_label {
halign: start;
valign: end;
label: 'Book name';
label: _("Book name");
wrap: true;
wrap-mode: word_char;
ellipsize: end;
Expand All @@ -78,7 +78,7 @@ template $BookDetail: Box {
halign: start;
valign: start;
margin-bottom: 6;
label: 'Book author';
label: _("Book author");
wrap: true;
wrap-mode: word_char;
ellipsize: end;
Expand Down 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 All @@ -271,6 +271,10 @@ template $BookDetail: Box {
receives-default: true;
halign: center;
icon-name: 'media-playback-start-symbolic';
tooltip-text: _("Start/Stop playback");
accessibility {
label: _("Start or pause the playback");
}

styles [
"suggested-action",
Expand Down Expand Up @@ -342,7 +346,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
14 changes: 7 additions & 7 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,29 +64,29 @@ 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;
}
}

Label {
label: _('<a href="https://github.com/geigi/cozy/tree/master/cozy/report">Sourcecode on GitHub</a>');
label: _("<a href=\"https://github.com/geigi/cozy/tree/master/cozy/report\">Sourcecode on GitHub</a>");
use-markup: true;
}
};
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");
}
}
}
Loading

0 comments on commit e1922c3

Please sign in to comment.