Skip to content

Commit

Permalink
Merge pull request #20 from LynithDev/master
Browse files Browse the repository at this point in the history
  • Loading branch information
LynithDev authored Jun 9, 2023
2 parents 8782441 + 419fd92 commit fd00ce1
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 6 deletions.
37 changes: 37 additions & 0 deletions po/oc.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Occitan translation file
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# Quentin PAGÈS, 2023.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-06 20:16+0200\n"
"PO-Revision-Date: 2023-06-07 18:03+0200\n"
"Last-Translator: Quentin PAGÈS\n"
"Language-Team: \n"
"Language: oc\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 3.3.1\n"

msgid "Hide"
msgstr "Amagar"

msgid "No hidden apps"
msgstr "Cap d’aplicacion pas amagada"

msgid "Missing app info"
msgstr "Info d’aplicacion absentas"

msgid "Unhide"
msgstr "Afichar"

msgid "Unhide from search"
msgstr "Unhide from search"

msgid "Hide from search"
msgstr "Hide from search"
9 changes: 5 additions & 4 deletions po/pl.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,20 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.3.1\n"

#: patches/appMenuPatcher.js:26 prefs.js:72 prefs.js:85
msgid "Hide"
msgstr "Ukryj"

#: prefs.js:14
msgid "No hidden apps"
msgstr "Brak ukrytych aplikacji"

#: prefs.js:40
msgid "Missing app info"
msgstr "Brak informacji o aplikacji"

#: prefs.js:54 prefs.js:72 prefs.js:85
msgid "Unhide"
msgstr "Pokaż"

msgid "Unhide from search"
msgstr "Pokaż w wyszukiwanych"

msgid "Hide from search"
msgstr "Ukryj w wyszukiwanych"
41 changes: 41 additions & 0 deletions po/tr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-06 20:16+0200\n"
"PO-Revision-Date: 2023-06-07 20:32+0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.3.1\n"

#: patches/appMenuPatcher.js:26 prefs.js:72 prefs.js:85
msgid "Hide"
msgstr "Gizle"

#: prefs.js:14
msgid "No hidden apps"
msgstr "Gizli uygulama yok"

#: prefs.js:40
msgid "Missing app info"
msgstr "Uygulama bilgileri bulunamadı"

#: prefs.js:54 prefs.js:72 prefs.js:85
msgid "Unhide"
msgstr "Gizlenmiş uygulamalardan kaldır"

msgid "Unhide from search"
msgstr "Aramadan gizlenmiş uygulamalardan kaldır"

msgid "Hide from search"
msgstr "Aramadan gizle"
36 changes: 36 additions & 0 deletions po/zh_cn.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-06 20:16+0200\n"
"PO-Revision-Date: 2023-06-06 21:03+0200\n"
"Last-Translator: xiaozhangup\n"
"Language-Team: \n"
"Language: zh_cn\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.3.1\n"

msgid "Hide"
msgstr "隐藏"

msgid "No hidden apps"
msgstr "没有隐藏的应用"

msgid "Missing app info"
msgstr "缺少应用信息"

msgid "Unhide"
msgstr "显示"

msgid "Unhide from search"
msgstr "从搜索中显示"

msgid "Hide from search"
msgstr "从搜索中隐藏"
6 changes: 4 additions & 2 deletions prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ function fillPreferencesWindow(window) {
group.add(getNoAppsRow());
}
});

const tooltip_text = hiddenSearchApps.includes(appId) ? _("Unhide from search") : _("Hide from search");

const hideSearchButton = new Gtk.Button({
icon_name: hiddenSearchApps.includes(appId) ? "edit-clear-symbolic" : "system-search-symbolic",
tooltip_text: (hiddenSearchApps.includes(appId) ? _("Unhide") : _("Hide")) + " from search",
tooltip_text,
});

hideSearchButton.connect("clicked", (self) => {
Expand All @@ -82,7 +84,7 @@ function fillPreferencesWindow(window) {

settings.set_strv("hidden-search-apps", hiddenSearchApps);
hideSearchButton.set_icon_name(hiddenSearchApps.includes(appId) ? "edit-clear-symbolic" : "system-search-symbolic");
hideSearchButton.set_tooltip_text((hiddenSearchApps.includes(appId) ? _("Unhide") : _("Hide")) + " from search");
hideSearchButton.set_tooltip_text(tooltip_text);
});

const buttonBox = new Gtk.Box({
Expand Down

0 comments on commit fd00ce1

Please sign in to comment.