mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Mark text in remaining dialogs as translatable
This commit is contained in:
@@ -134,7 +134,7 @@ class ClapperUriDialog extends Gtk.Dialog
|
|||||||
transient_for: window,
|
transient_for: window,
|
||||||
destroy_with_parent: true,
|
destroy_with_parent: true,
|
||||||
modal: true,
|
modal: true,
|
||||||
title: 'Open URI',
|
title: _('Open URI'),
|
||||||
default_width: 460,
|
default_width: 460,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -152,12 +152,12 @@ class ClapperUriDialog extends Gtk.Dialog
|
|||||||
height_request: 36,
|
height_request: 36,
|
||||||
hexpand: true,
|
hexpand: true,
|
||||||
});
|
});
|
||||||
linkEntry.set_placeholder_text("Enter or drop URI here");
|
linkEntry.set_placeholder_text(_('Enter or drop URI here'));
|
||||||
linkEntry.connect('notify::text', this._onTextNotify.bind(this));
|
linkEntry.connect('notify::text', this._onTextNotify.bind(this));
|
||||||
box.append(linkEntry);
|
box.append(linkEntry);
|
||||||
|
|
||||||
const openButton = new Gtk.Button({
|
const openButton = new Gtk.Button({
|
||||||
label: "Open",
|
label: _('Open'),
|
||||||
halign: Gtk.Align.END,
|
halign: Gtk.Align.END,
|
||||||
sensitive: false,
|
sensitive: false,
|
||||||
});
|
});
|
||||||
@@ -212,8 +212,8 @@ class ClapperResumeDialog extends Gtk.MessageDialog
|
|||||||
const percentage = Math.round((resumeInfo.time / resumeInfo.duration) * 100);
|
const percentage = Math.round((resumeInfo.time / resumeInfo.duration) * 100);
|
||||||
|
|
||||||
const msg = [
|
const msg = [
|
||||||
`<b>Title:</b> ${resumeInfo.title}`,
|
'<b>' + _('Title') + `:</b> ${resumeInfo.title}`,
|
||||||
`<b>Completed:</b> ${percentage}%`
|
'<b>' + _('Completed') + `:</b> ${percentage}%`
|
||||||
].join('\n');
|
].join('\n');
|
||||||
|
|
||||||
super._init({
|
super._init({
|
||||||
@@ -221,7 +221,7 @@ class ClapperResumeDialog extends Gtk.MessageDialog
|
|||||||
modal: true,
|
modal: true,
|
||||||
message_type: Gtk.MessageType.QUESTION,
|
message_type: Gtk.MessageType.QUESTION,
|
||||||
buttons: Gtk.ButtonsType.YES_NO,
|
buttons: Gtk.ButtonsType.YES_NO,
|
||||||
text: 'Resume playback?',
|
text: _('Resume playback?'),
|
||||||
secondary_use_markup: true,
|
secondary_use_markup: true,
|
||||||
secondary_text: msg,
|
secondary_text: msg,
|
||||||
});
|
});
|
||||||
@@ -268,9 +268,9 @@ class ClapperAboutDialog extends Gtk.AboutDialog
|
|||||||
gjsVer += gjsVerStr.charAt(4);
|
gjsVer += gjsVerStr.charAt(4);
|
||||||
|
|
||||||
const osInfo = [
|
const osInfo = [
|
||||||
'GTK ' + 'version' + ': ' + gtkVer,
|
_('GTK version: %s').format(gtkVer),
|
||||||
'GStreamer ' + 'version' + ': ' + gstVer,
|
_('GStreamer version: %s').format(gstVer),
|
||||||
'GJS ' + 'version' + ': ' + gjsVer
|
_('GJS version: %s').format(gjsVer)
|
||||||
].join('\n');
|
].join('\n');
|
||||||
|
|
||||||
super._init({
|
super._init({
|
||||||
@@ -278,7 +278,7 @@ class ClapperAboutDialog extends Gtk.AboutDialog
|
|||||||
destroy_with_parent: true,
|
destroy_with_parent: true,
|
||||||
modal: true,
|
modal: true,
|
||||||
program_name: Misc.appName,
|
program_name: Misc.appName,
|
||||||
comments: 'A GNOME media player powered by GStreamer',
|
comments: _('A GNOME media player powered by GStreamer'),
|
||||||
version: Misc.getClapperVersion(),
|
version: Misc.getClapperVersion(),
|
||||||
authors: ['Rafał Dzięgiel'],
|
authors: ['Rafał Dzięgiel'],
|
||||||
artists: ['Rafał Dzięgiel'],
|
artists: ['Rafał Dzięgiel'],
|
||||||
|
Reference in New Issue
Block a user