Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare UI for translation2 #214

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ let FIRST_BOOT = 1;
let UPDATES_PENDING = -1;
let UPDATES_LIST = [];

/* A process builder without i10n for reproducible processing. */
/* A process builder without i18n for reproducible processing. */
const launcher = new Gio.SubprocessLauncher({
flags: (Gio.SubprocessFlags.STDOUT_PIPE |
Gio.SubprocessFlags.STDERR_PIPE)
Expand Down
6 changes: 5 additions & 1 deletion locale/arch-update.pot
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ msgstr ""
msgid "Up to date :)"
msgstr ""

#: prefs.js:46
msgid "<!-- about description -->%s"
msgstr ""

#: prefs.xml:44
msgid "Basic settings"
msgstr ""
Expand Down Expand Up @@ -192,7 +196,7 @@ msgid "Command to open package manager (optional)"
msgstr ""

#: prefs.xml:321
msgid "Command to show info for a package (optional)"
msgid "Command to show info for package, repo and arch (optional)"
msgstr ""

#: prefs.xml:336
Expand Down
2 changes: 1 addition & 1 deletion locale/cs_CZ/arch-update.po
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: extension.js:113
msgid "Settings"
Expand Down
Binary file removed locale/et/arch-update.mo
Binary file not shown.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion locale/pl/arch-update.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ msgstr ""
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-11-13 09:25+0100\n"
"PO-Revision-Date: 2016-01-31 12:00+0100\n"
"Last-Translator: "Andus" <[email protected]>\n"
"Last-Translator: Andus <[email protected]>\n"
"Language-Team: polski <>\n"
"Language: \n"
"MIME-Version: 1.0\n"
Expand Down
4 changes: 2 additions & 2 deletions prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ function fillPreferencesWindow(window) {
buildable.get_object('about_logo').set_from_file( Me.dir.get_child('icons').get_path() + "/arch-updates-logo.svg" );
buildable.get_object('about_name').set_text(Me.metadata.name.toString());
buildable.get_object('about_version').set_text(Me.metadata.version.toString());
buildable.get_object('about_description').set_text(Me.metadata.description.toString());
buildable.get_object('about_url').set_markup("<a href=\"" + Me.metadata.url.toString() + "\">" + Me.metadata.url.toString() + "</a>");
buildable.get_object('about_description').set_markup(_("<!-- about description -->%s").format(Me.metadata.description));
buildable.get_object('about_url').set_markup("<a href=\"%1$s\">%1$s</a>".format(Me.metadata.url));

// Bind fields to settings
settings.bind('boot-wait' , buildable.get_object('field_wait') , 'value' , Gio.SettingsBindFlags.DEFAULT);
Expand Down
2 changes: 1 addition & 1 deletion prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@

<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Command to show info for a package (optional)</property>
<property name="title" translatable="yes">Command to show info for package, repo and arch (optional)</property>
<child>
<object class="AdwActionRow">
<property name="activatable-widget">field_packageinfocmd</property>
Expand Down