Repository: kazysmaster/gnome-shell-extension-lockkeys Branch: master Commit: 5e5c29c2b2e5 Files: 50 Total size: 90.0 KB Directory structure: gitextract_iep1y9dq/ ├── .gitignore ├── README.md ├── cs.po ├── de.po ├── es.po ├── fr.po ├── gr.po ├── hu.po ├── it.po ├── ko.po ├── lockkeys.pot ├── lockkeys@vaina.lt/ │ ├── LICENSE │ ├── extension.js │ ├── locale/ │ │ ├── cs/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── de/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── es/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── fr/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── gr/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── hu/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── it/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── ko/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── lt/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── nl/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── pl/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── pt_BR/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── ru_RU/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── sk/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── sv/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── tr_TR/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── uk_UA/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ ├── zh_CN/ │ │ │ └── LC_MESSAGES/ │ │ │ └── lockkeys.mo │ │ └── zh_TW/ │ │ └── LC_MESSAGES/ │ │ └── lockkeys.mo │ ├── metadata.json │ ├── prefs.js │ ├── schemas/ │ │ ├── gschemas.compiled │ │ └── org.gnome.shell.extensions.lockkeys.gschema.xml │ └── stylesheet.css ├── lt.po ├── nl.po ├── pl.po ├── po2mo.sh ├── pt_BR.po ├── ru_RU.po ├── sk.po ├── sv.po ├── tr_TR.po ├── uk_UA.po ├── update_strings.sh ├── zh_CN.po └── zh_TW.po ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ /.settings /.project /*.iml ================================================ FILE: README.md ================================================ ## Gnome shell numlock&capslock state indicator extension. It shows notifications about numlock or capslock state change. ![Screenshot](https://github.com/kazysmaster/gnome-shell-extension-lockkeys/raw/master/screenshot.png) The extension is available at: https://extensions.gnome.org/extension/36/lock-keys/ In order to manually install this extension, copy lockkeys@vaina.lt to the: ~/.local/share/gnome-shell/extensions ================================================ FILE: cs.po ================================================ # Czech translation for Lockkeys. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Amerey , 2024. # msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2024-09-21 12:41+0200\n" "PO-Revision-Date: 2024-09-21 12:41+0200\n" "Last-Translator: Amerey \n" "Language-Team: \n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.4.4\n" #: extension.js:97 extension.js:147 msgid "Num Lock" msgstr "Num Lock" #: extension.js:100 extension.js:154 msgid "Caps Lock" msgstr "Caps Lock" #: extension.js:104 msgid "Settings" msgstr "Nastavení" #: extension.js:213 msgid "On" msgstr "je zapnutý" #: extension.js:213 prefs.js:41 msgid "Off" msgstr "je vypnutý" #: prefs.js:33 msgid "Indicator Style" msgstr "Styl indikátoru" # tooltip #: prefs.js:33 msgid "Change indicator display options" msgstr "Změna možností zobrazení indikátoru" #: prefs.js:34 msgid "Num-Lock Only" msgstr "Pouze Num-Lock" #: prefs.js:35 msgid "Caps-Lock Only" msgstr "Pouze Caps-Lock" #: prefs.js:36 msgid "Both" msgstr "Oba" #: prefs.js:37 msgid "Show/Hide" msgstr "Zobrazit/Skrýt" #: prefs.js:40 msgid "Notifications" msgstr "Oznámení" # tooltip #: prefs.js:40 msgid "Show notifications when state changes" msgstr "Zobrazovat upozornění při změně stavu" #: prefs.js:42 msgid "Compact" msgstr "Kompaktní" #: prefs.js:43 msgid "Osd" msgstr "Osd" # tooltip #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:6 msgid "Show notifications when key state changes" msgstr "Zobrazovat upozornění při změně stavu klávesy" #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:7 msgid "Set false to suppress num-lock or caps-lock state change notifications" msgstr "" "Nastavením false potlačíte upozornění na změnu stavu num-lock nebo caps-lock" #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:12 msgid "Indicator style" msgstr "Styl indikátoru" #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:13 msgid "" "Set numlock value to display only num-lock indicator, set capslock value to " "display only caps-lock indicator, or both for both. Set show-hide, to " "display corresponding indicator icons only when on." msgstr "" "Nastavte hodnotu \"numlock\" pro zobrazení pouze indikátoru num-lock, " "nastavte hodnotu \"capslock\" pro zobrazení pouze indikátoru caps-lock nebo " "\"oba\" pro oba. Nastavte \"zobrazit/Skrýt\", aby se odpovídající ikony " "indikátorů zobrazovaly pouze při zapnutí." ================================================ FILE: de.po ================================================ msgid "" msgstr "" "Project-Id-Version: Lock Keys Gnome-Shell extension\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: \n" "PO-Revision-Date: 2026-01-03 17:22+0100\n" "Last-Translator: Philip Geissler \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: extension.js:79 extension.js:128 prefs.js:48 msgid "Num Lock" msgstr "Num-Taste" #: extension.js:82 extension.js:134 prefs.js:31 msgid "Caps Lock" msgstr "Feststelltaste" #: extension.js:86 prefs.js:22 msgid "Settings" msgstr "Einstellungen" #: extension.js:254 msgid "On" msgstr "An" #: extension.js:254 prefs.js:78 prefs.js:108 msgid "Off" msgstr "Aus" #: prefs.js:23 msgid "Change indicator display options" msgstr "Anzeigeoption des Statusindikators ändern" #: prefs.js:32 msgid "Options for Caps Lock key" msgstr "Feststelltasten-Optionen" #: prefs.js:49 msgid "Options for Num Lock key" msgstr "Num-Tasten-Optionen" #: prefs.js:75 prefs.js:105 msgid "Notifications" msgstr "Benachrichtigungen" #: prefs.js:76 prefs.js:106 msgid "Show notifications when state changes" msgstr "Benachrichtigung bei Statusänderung anzeigen" #: prefs.js:79 prefs.js:109 msgid "Compact" msgstr "Systembenachrichtigung" #: prefs.js:80 prefs.js:110 msgid "Osd" msgstr "Bildschirmanzeige" #: prefs.js:87 prefs.js:117 msgid "Top Bar Indicator" msgstr "Taskleisten-Statusindikator" #: prefs.js:88 msgid "Show Caps Lock indicator in the top bar" msgstr "Zeige den Feststelltasten-Statusindikator in der Taskleiste" #: prefs.js:90 prefs.js:120 msgid "Never" msgstr "Nie" #: prefs.js:91 prefs.js:121 msgid "When Active" msgstr "Falls Angeschaltet" #: prefs.js:92 prefs.js:122 msgid "Always" msgstr "Immer" #: prefs.js:118 msgid "Show Num Lock indicator in the top bar" msgstr "Zeige den Num-Tasten-Statusindikator in der Taskleiste" ================================================ FILE: es.po ================================================ # Spanish msgid "" msgstr "" "Project-Id-Version: gnome-shell-extension-lockkeys\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-05-23 00:01+0200\n" "PO-Revision-Date: 2013-10-22 15:32-0400\n" "Last-Translator: Cristian Beroiza \n" "Language-Team: spanish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.5.7\n" "Language: es\n" "X-Poedit-SourceCharset: UTF-8\n" #: prefs.js:28 msgid "Indicator Style" msgstr "Estilo del indicador" #: prefs.js:28 msgid "Change indicator display options" msgstr "Cambiar opciones de visualización del indicador" #: prefs.js:29 msgid "Num-Lock Only" msgstr "Bloq-Num solamente" #: prefs.js:29 msgid "Caps-Lock Only" msgstr "Bloq-Mayús solamente" #: prefs.js:29 msgid "Both" msgstr "Ambos" #: prefs.js:29 msgid "Show/Hide" msgstr "Mostrar/Ocultar" #: prefs.js:30 msgid "Notifications" msgstr "Notificaciones" #: prefs.js:30 msgid "Show notifications when state changes" msgstr "Mostrar notificaciones cuando el estado cambie" #: extension.js:78 extension.js:152 msgid "Num Lock" msgstr "Bloq-Num" #: extension.js:82 extension.js:158 msgid "Caps Lock" msgstr "Bloq-Mayús" #: extension.js:87 msgid "Settings" msgstr "Preferencias" #: extension.js:217 msgid "On" msgstr "Encendido" #: extension.js:217 msgid "Off" msgstr "Apagado" ================================================ FILE: fr.po ================================================ # French translation of lockkeys Gnome-Shell extension # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Pablo Martin-Gomez , 2014 # msgid "" msgstr "" "Project-Id-Version: lockkeys Gnome-Shell extension\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-05-23 00:01+0200\n" "PO-Revision-Date: 2014-01-24 19:49+0100\n" "Last-Translator: Pablo Martin-Gomez \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.5.4\n" "Language: fr\n" #: prefs.js:28 msgid "Indicator Style" msgstr "Style de l'indicateur" #: prefs.js:28 msgid "Change indicator display options" msgstr "Changer les options d'affichage de l’indicateur" #: prefs.js:29 msgid "Num-Lock Only" msgstr "Seulement Verr. Num." #: prefs.js:29 msgid "Caps-Lock Only" msgstr "Seulement Verr. Maj." #: prefs.js:29 msgid "Both" msgstr "Les deux" #: prefs.js:29 msgid "Show/Hide" msgstr "Afficher/Cacher" #: prefs.js:30 msgid "Notifications" msgstr "Notifications" #: prefs.js:30 msgid "Show notifications when state changes" msgstr "Afficher une notification lors d’un changement d’état" #: extension.js:78 extension.js:152 msgid "Num Lock" msgstr "Verr. Num." #: extension.js:82 extension.js:158 msgid "Caps Lock" msgstr "Verr. Maj." #: extension.js:87 msgid "Settings" msgstr "Paramètres" #: extension.js:217 msgid "On" msgstr "activé" #: extension.js:217 msgid "Off" msgstr "désactivé" ================================================ FILE: gr.po ================================================ # 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 , YEAR. # msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-05-04 17:48+0300\n" "PO-Revision-Date: 2017-05-13 14:02+0300\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 2.0.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Language: el\n" #: prefs.js:28 msgid "Indicator Style" msgstr "Στυλ δείκτη" #: prefs.js:28 msgid "Change indicator display options" msgstr "Αλλαγή επιλογών εμφάνισης δείκτη" #: prefs.js:29 msgid "Num-Lock Only" msgstr "Μόνο κλείδωμα αριθμητικών" #: prefs.js:29 msgid "Caps-Lock Only" msgstr "Μόνο κλείδωμα κεφαλαίων" #: prefs.js:29 msgid "Both" msgstr "Αμφότερα" #: prefs.js:29 msgid "Show/Hide" msgstr "Εμφάνιση/Απόκρυψη" #: prefs.js:30 msgid "Notifications" msgstr "Ειδοποιήσεις" #: prefs.js:30 msgid "Show notifications when state changes" msgstr "Εμφάνιση ειδοποιήσεων όταν αλλάζει η κατάσταση" #: extension.js:78 extension.js:152 msgid "Num Lock" msgstr "Κλείδωμα αριθμητικών" #: extension.js:82 extension.js:158 msgid "Caps Lock" msgstr "Κλείδωμα κεφαλαίων" #: extension.js:87 msgid "Settings" msgstr "Ρυθμίσεις" #: extension.js:217 msgid "On" msgstr "Άνοιγμα" #: extension.js:217 msgid "Off" msgstr "Κλείσιμο" ================================================ FILE: hu.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the gnome-shell-extension-lockkeys package. # ViBE , 2020. # msgid "" msgstr "" "Project-Id-Version: gnome-shell-extension-lockkeys\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-26 11:26+0200\n" "PO-Revision-Date: 2023-11-20 16:02+0100\n" "Last-Translator: ViBE \n" "Language-Team: Hungarian \n" "Language: hu\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" #: extension.js:97 extension.js:147 msgid "Num Lock" msgstr "Num Lock" #: extension.js:100 extension.js:154 msgid "Caps Lock" msgstr "Caps Lock" #: extension.js:104 msgid "Settings" msgstr "Beálltások" #: extension.js:213 msgid "On" msgstr "bekapcsolva" #: extension.js:212 prefs.js:43 msgid "Off" msgstr "kikapcsolva" #: prefs.js:33 msgid "Indicator Style" msgstr "Megjelenő indikátorok" #: prefs.js:33 msgid "Change indicator display options" msgstr "Értesítési területen megjelenő indikátorok" #: prefs.js:34 msgid "Num-Lock Only" msgstr "Csak Num Lock" #: prefs.js:35 msgid "Caps-Lock Only" msgstr "Csak Caps Lock" #: prefs.js:36 msgid "Both" msgstr "Mindkettő" #: prefs.js:37 msgid "Show/Hide" msgstr "Csak bekapcsolt" #: prefs.js:39 msgid "Show/Hide Caps-Lock Only" msgstr "Csak bekapcsolt Caps Lock" #: prefs.js:40 msgid "Notifications" msgstr "Értesítés módja" #: prefs.js:40 msgid "Show notifications when state changes" msgstr "Vizuális értesítések állapotváltozás esetén" #: prefs.js:42 msgid "Compact" msgstr "Rendszerértesítés" #: prefs.js:43 msgid "Osd" msgstr "OSD képátfedés" #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:6 msgid "Show notifications when key state changes" msgstr "Vizuális értesítések állapotváltozás esetén" #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:7 msgid "Set false to suppress num-lock or caps-lock state change notifications" msgstr "Beállíthatja milyen esetben jelenjenek meg értesítések" #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:12 msgid "Indicator style" msgstr "Megjelenő indikátorok" #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:13 msgid "" "Set numlock value to display only num-lock indicator, set capslock value to " "display only caps-lock indicator, or both for both. Set show-hide, to " "display corresponding indicator icons only when on." msgstr "Beállíthatja milyen esetben jelenjenek meg indikátorok" ================================================ FILE: it.po ================================================ # Italian # Gianni Lerro , 2014. # msgid "" msgstr "" "Project-Id-Version: gnome-shell-extension-lockkeys\n" "Report-Msgid-Bugs-To: squall77it@gmail.com\n" "POT-Creation-Date: 2014-03-19 00:01+0200\n" "PO-Revision-Date: 2014-03-19 02:57+0100\n" "Last-Translator: Gianni Lerro \n" "Language-Team: Italiano\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Gtranslator 2.91.6\n" "Language: it\n" "X-Poedit-SourceCharset: UTF-8\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: prefs.js:28 msgid "Indicator Style" msgstr "Stile indicatore" #: prefs.js:28 msgid "Change indicator display options" msgstr "Cambiare le impostazioni di visualizzazione dell'indicatore" #: prefs.js:29 msgid "Num-Lock Only" msgstr "Solo Bloc-Num" #: prefs.js:29 msgid "Caps-Lock Only" msgstr "Solo Bloc-Maiusc" #: prefs.js:29 msgid "Both" msgstr "Entrambi" #: prefs.js:29 msgid "Show/Hide" msgstr "Mostra/Nascondi" #: prefs.js:30 msgid "Notifications" msgstr "Notifiche" #: prefs.js:30 msgid "Show notifications when state changes" msgstr "Mostra la notifica quando lo cambia lo stato" #: extension.js:78 extension.js:152 msgid "Num Lock" msgstr "Bloc-Num" #: extension.js:82 extension.js:158 msgid "Caps Lock" msgstr "Bloc-Maiusc" #: extension.js:87 msgid "Settings" msgstr "Impostazioni" #: extension.js:217 msgid "On" msgstr "On" #: extension.js:217 msgid "Off" msgstr "Off" ================================================ FILE: ko.po ================================================ msgid "" msgstr "" "Project-Id-Version: Lock Keys Gnome-Shell extension\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-07-08 16:42+0800\n" "PO-Revision-Date: 2021-08-31 01:35+0900\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.0\n" "X-Poedit-SourceCharset: UTF-8\n" "Last-Translator: \n" "Plural-Forms: nplurals=1; plural=0;\n" "Language: ko\n" #: extension.js:97 extension.js:147 msgid "Num Lock" msgstr "Num Lock" #: extension.js:100 extension.js:154 msgid "Caps Lock" msgstr "Caps Lock" #: extension.js:104 msgid "Settings" msgstr "설정" #: extension.js:213 msgid "On" msgstr "켜기" #: extension.js:213 prefs.js:41 msgid "Off" msgstr "끄기" #: prefs.js:34 msgid "Notifications Only" msgstr "알림만" #: prefs.js:33 msgid "Indicator Style" msgstr "표시기 스타일" #: prefs.js:33 msgid "Change indicator display options" msgstr "표시기 설정" #: prefs.js:34 msgid "Num-Lock Only" msgstr "Num Lock만" #: prefs.js:35 msgid "Caps-Lock Only" msgstr "Caps Lock만" #: prefs.js:36 msgid "Both" msgstr "둘 다" #: prefs.js:37 msgid "Show/Hide" msgstr "보이기/숨기기" #: prefs.js:40 msgid "Notifications" msgstr "알림" #: prefs.js:40 msgid "Show notifications when state changes" msgstr "상태 변경 시 알림 표시" #: prefs.js:42 msgid "Compact" msgstr "작게" #: prefs.js:43 msgid "Osd" msgstr "OSD" #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:6 msgid "Show notifications when key state changes" msgstr "키 상태 변경 시 알림 표시" #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:12 msgid "Indicator style" msgstr "표시기 스타일" ================================================ FILE: lockkeys.pot ================================================ # 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 , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2025-10-03 20:50+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: extension.js:79 extension.js:128 prefs.js:48 msgid "Num Lock" msgstr "" #: extension.js:82 extension.js:134 prefs.js:31 msgid "Caps Lock" msgstr "" #: extension.js:86 prefs.js:22 msgid "Settings" msgstr "" #: extension.js:254 msgid "On" msgstr "" #: extension.js:254 prefs.js:78 prefs.js:108 msgid "Off" msgstr "" #: prefs.js:23 msgid "Change indicator display options" msgstr "" #: prefs.js:32 msgid "Options for Caps Lock key" msgstr "" #: prefs.js:49 msgid "Options for Num Lock key" msgstr "" #: prefs.js:75 prefs.js:105 msgid "Notifications" msgstr "" #: prefs.js:76 prefs.js:106 msgid "Show notifications when state changes" msgstr "" #: prefs.js:79 prefs.js:109 msgid "Compact" msgstr "" #: prefs.js:80 prefs.js:110 msgid "Osd" msgstr "" #: prefs.js:87 prefs.js:117 msgid "Top Bar Indicator" msgstr "" #: prefs.js:88 msgid "Show Caps Lock indicator in the top bar" msgstr "" #: prefs.js:90 prefs.js:120 msgid "Never" msgstr "" #: prefs.js:91 prefs.js:121 msgid "When Active" msgstr "" #: prefs.js:92 prefs.js:122 msgid "Always" msgstr "" #: prefs.js:118 msgid "Show Num Lock indicator in the top bar" msgstr "" ================================================ FILE: lockkeys@vaina.lt/LICENSE ================================================ GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. {description} Copyright (C) {year} {fullname} This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. {signature of Ty Coon}, 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. ================================================ FILE: lockkeys@vaina.lt/extension.js ================================================ import St from 'gi://St'; import Gio from 'gi://Gio'; import Clutter from 'gi://Clutter'; import GObject from 'gi://GObject'; import * as Panel from 'resource:///org/gnome/shell/ui/panel.js'; import * as Main from 'resource:///org/gnome/shell/ui/main.js'; import * as PanelMenu from 'resource:///org/gnome/shell/ui/panelMenu.js'; import * as PopupMenu from 'resource:///org/gnome/shell/ui/popupMenu.js'; import * as MessageTray from 'resource:///org/gnome/shell/ui/messageTray.js'; import * as Config from 'resource:///org/gnome/shell/misc/config.js'; import {Extension, gettext as _} from 'resource:///org/gnome/shell/extensions/extension.js'; const POST_46 = parseFloat(Config.PACKAGE_VERSION) >= 46; const POST_49 = parseFloat(Config.PACKAGE_VERSION) >= 49; const STYLE = 'style'; const STYLE_NONE = 'none'; const STYLE_NUMLOCK_ONLY = 'numlock'; const STYLE_CAPSLOCK_ONLY = 'capslock'; const STYLE_BOTH = 'both'; const STYLE_SHOWHIDE = 'show-hide'; const STYLE_SHOWHIDE_CAPSLOCK = 'show-hide-capslock'; const NOTIFICATIONS = 'notification-preferences'; //const NOTIFICATIONS_OFF = 'off'; const NOTIFICATIONS_ON = 'on'; //const NOTIFICATIONS_OSD = 'osd'; const NOTIFICATION_OFF = "off"; const NOTIFICATION_COMPACT = "compact"; const NOTIFICATION_OSD = "osd"; const VISIBILITY_NEVER = "never"; const VISIBILITY_WHEN_ACTIVE = "when-active"; const VISIBILITY_ALWAYS = "always"; export default class LockKeysExtension extends Extension { enable() { const config = new Configuration(this.getSettings()); const icons = new ExtensionIcons(this.dir); this._indicator = new LockKeysIndicator(config, icons); Main.panel.addToStatusArea('lockkeys', this._indicator, 2); this._indicator.setActive(true); } disable() { this._indicator.setActive(false); this._indicator.destroy(); this._indicator = null; } } const LockKeysIndicator = GObject.registerClass({ }, class LockKeysIndicator extends PanelMenu.Button { _init(config, icons) { super._init(0.0, " LockKeysIndicator"); this.config = config; this.icons = icons; this.keyMap = Clutter.get_default_backend().get_default_seat().get_keymap(); this.numIcon = new St.Icon({ style_class: 'system-status-icon lockkeys-status-icon' }); this.capsIcon = new St.Icon({ style_class: 'system-status-icon lockkeys-status-icon' }); this.numIcon.set_style('padding-right: 0px; padding-left: 0px;'); this.capsIcon.set_style('padding-right: 0px; padding-left: 0px;'); let layoutManager = new St.BoxLayout({ vertical: false, style_class: 'lockkeys-container' }); layoutManager.add_child(this.numIcon); layoutManager.add_child(this.capsIcon); this.add_child(layoutManager); this.numMenuItem = new PopupMenu.PopupSwitchMenuItem(_("Num Lock"), false, { reactive: false }); this.menu.addMenuItem(this.numMenuItem); this.capsMenuItem = new PopupMenu.PopupSwitchMenuItem(_("Caps Lock"), false, { reactive: false }); this.menu.addMenuItem(this.capsMenuItem); this.a11ySettings = new Gio.Settings({ schema: 'org.gnome.desktop.a11y.interface' }); this.updateSwitchOpacity(); this._highContrastChangedId = this.a11ySettings.connect('changed::high-contrast', () => { this.updateSwitchOpacity(); }); this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem()); this.settingsMenuItem = new PopupMenu.PopupMenuItem(_("Settings")); this.menu.addMenuItem(this.settingsMenuItem); this.settingsMenuItem.connect('activate', function(menu_item) { Main.extensionManager.openExtensionPrefs('lockkeys@vaina.lt', '', {}); }); this.indicatorStyle = new HighlightIndicatorStyle(this); this.updateState(); } updateSwitchOpacity() { const isHighContrast = this.a11ySettings.get_boolean('high-contrast'); const disabledOpacity = isHighContrast ? 0.4 : 0.5; this.numMenuItem._switch.set_opacity(disabledOpacity * 255); this.capsMenuItem._switch.set_opacity(disabledOpacity * 255); } setActive(enabled) { if (enabled) { this._keyboardStateChangedId = this.keyMap.connect('state-changed', this.handleStateChange.bind(this)); this._settingsChangedId = this.config.settings.connect('changed', this.handleSettingsChange.bind(this)); this._iconThemeChangedId = this.icons.iconTheme.connect('changed', this.handleSettingsChange.bind(this)); this.handleSettingsChange(); } else { this.keyMap.disconnect(this._keyboardStateChangedId); this._keyboardStateChangedId = 0; this.config.settings.disconnect(this._settingsChangedId); this._settingsChangedId = 0; this.icons.iconTheme.disconnect(this._iconThemeChangedId); this._iconThemeChangedId = 0; if (this._highContrastChangedId) { this.a11ySettings.disconnect(this._highContrastChangedId); this._highContrastChangedId = 0; } } } handleSettingsChange(actor, event) { const numSetting = this.config.getNumlockIndicator(); const capsSetting = this.config.getCapslockIndicator(); if (numSetting === VISIBILITY_NEVER && capsSetting === VISIBILITY_WHEN_ACTIVE) { this.indicatorStyle = new VisibilityIndicatorCapslockStyle(this); } else if (numSetting === VISIBILITY_WHEN_ACTIVE && capsSetting === VISIBILITY_WHEN_ACTIVE) { this.indicatorStyle = new VisibilityIndicatorStyle(this); } else { this.indicatorStyle = new HighlightIndicatorStyle(this); } this.updateState(); } handleStateChange(actor, event) { if (this.numlock_state != this.getNumlockState() && this.config.getNumlockNotification() !== NOTIFICATION_OFF) { let notification_text = _("Num Lock") + ' ' + this.getStateText(this.getNumlockState()); let icon_name = this.getNumlockState()? "numlock-enabled-symbolic" : "numlock-disabled-symbolic"; this.showNumlockNotification(notification_text, icon_name); } if (this.capslock_state != this.getCapslockState() && this.config.getCapslockNotification() !== NOTIFICATION_OFF) { let notification_text = _("Caps Lock") + ' ' + this.getStateText(this.getCapslockState()); let icon_name = this.getCapslockState()? "capslock-enabled-symbolic" : "capslock-disabled-symbolic"; this.showCapslockNotification(notification_text, icon_name); } this.updateState(); } updateState() { this.numlock_state = this.getNumlockState(); this.capslock_state = this.getCapslockState(); this.indicatorStyle.displayState(this.numlock_state, this.capslock_state); this.numMenuItem.setToggleState(this.numlock_state); this.capsMenuItem.setToggleState(this.capslock_state); } showNumlockNotification(notification_text, icon_name) { if (this.config.getNumlockNotification() === NOTIFICATION_OSD) { if (POST_49) { Main.osdWindowManager.showAll(this.icons.getCustomIcon(icon_name), notification_text); } else { Main.osdWindowManager.show(-1, this.icons.getCustomIcon(icon_name), notification_text); } } else if (this.config.getNumlockNotification() === NOTIFICATION_COMPACT) { if (POST_46) { this.showSimpleNotification(notification_text, icon_name, '_numlockSource'); } else { this.showSimpleNotification45(notification_text, icon_name, '_numlockSource'); } } } showCapslockNotification(notification_text, icon_name) { if (this.config.getCapslockNotification() === NOTIFICATION_OSD) { if (POST_49) { Main.osdWindowManager.showAll(this.icons.getCustomIcon(icon_name), notification_text); } else { Main.osdWindowManager.show(-1, this.icons.getCustomIcon(icon_name), notification_text); } } else if (this.config.getCapslockNotification() === NOTIFICATION_COMPACT) { if (POST_46) { this.showSimpleNotification(notification_text, icon_name, '_capslockSource'); } else { this.showSimpleNotification45(notification_text, icon_name, '_capslockSource'); } } } showSimpleNotification(notification_text, icon_name) { this.prepareSource(icon_name); let notification = null; if (this._source.notifications.length == 0) { notification = new MessageTray.Notification({ source: this._source, title: notification_text }); notification['is-transient'] = true; notification['resident'] = false; } else { notification = this._source.notifications[0]; notification.title = notification_text } this._source.addNotification(notification); } prepareSource(icon_name) { if (this._source == null) { this._source = new MessageTray.Source({ title: "Lock Keys" }); const parent = this; this._source.connect('destroy', function() { parent._source = null; }); Main.messageTray.add(this._source); } this._source.icon = this.icons.getCustomIcon(icon_name); } showSimpleNotification45(notification_text, icon_name) { this.prepareSource45(icon_name); let notification = null; if (this._source.notifications.length == 0) { notification = new MessageTray.Notification(this._source, notification_text); notification.setTransient(true); notification.setResident(false); } else { notification = this._source.notifications[0]; notification.update(notification_text, null, { clear: true }); } this._source.showNotification(notification); } prepareSource45(icon_name) { if (this._source == null) { this._source = new MessageTray.Source("Lock Keys", icon_name); let parent = this; this._source.createIcon = function(size) { return new St.Icon({ gicon: parent.icons.getCustomIcon(parent._source.iconName), icon_size: size }); } this._source.connect('destroy', function() { parent._source = null; }); Main.messageTray.add(this._source); } this._source.iconName = icon_name; } getStateText(state) { return state ? _("On") : _("Off"); } getNumlockState() { return this.keyMap.get_num_lock_state(); } getCapslockState() { return this.keyMap.get_caps_lock_state(); } }); const ExtensionIcons = GObject.registerClass({ }, class ExtensionIcons extends GObject.Object{ _init(extensionDir) { this._extensionDir = extensionDir; this.iconTheme = new St.IconTheme(); } getCustomIcon(icon_name) { if (this.iconTheme.has_icon(icon_name)) { return Gio.ThemedIcon.new_with_default_fallbacks(icon_name); } let icon_path = this._extensionDir.get_child('icons').get_child(icon_name + ".svg").get_path(); return Gio.FileIcon.new(Gio.File.new_for_path(icon_path)); } }); const HighlightIndicatorStyle = GObject.registerClass({ }, class HighlightIndicatorStyle extends GObject.Object{ _init(indicator) { this._indicator = indicator; this._config = indicator.config; this._icons = indicator.icons; this._numIcon = indicator.numIcon; this._capsIcon = indicator.capsIcon; this.displayState(this._indicator.getNumlockState(), this._indicator.getCapslockState()); } displayState(numlock_state, capslock_state) { if (this._config.getNumlockIndicator() == VISIBILITY_NEVER) { this._numIcon.hide(); } else if (this._config.getNumlockIndicator() == VISIBILITY_WHEN_ACTIVE) { if (numlock_state) { this._numIcon.show(); this._numIcon.set_gicon(this._icons.getCustomIcon('numlock-enabled-symbolic')); } else { this._numIcon.hide(); } } else if (this._config.getNumlockIndicator() == VISIBILITY_ALWAYS) { this._numIcon.show(); this._numIcon.set_gicon(this._icons.getCustomIcon( numlock_state ? 'numlock-enabled-symbolic' : 'numlock-disabled-symbolic' )); } // Handle Capslock visibility if (this._config.getCapslockIndicator() == VISIBILITY_NEVER) { this._capsIcon.hide(); } else if (this._config.getCapslockIndicator() == VISIBILITY_WHEN_ACTIVE) { if (capslock_state) { this._capsIcon.show(); this._capsIcon.set_gicon(this._icons.getCustomIcon('capslock-enabled-symbolic')); } else { this._capsIcon.hide(); } } else if (this._config.getCapslockIndicator() == VISIBILITY_ALWAYS) { this._capsIcon.show(); this._capsIcon.set_gicon(this._icons.getCustomIcon( capslock_state ? 'capslock-enabled-symbolic' : 'capslock-disabled-symbolic' )); } // Update overall indicator visibility this._indicator.visible = (this._numIcon.visible || this._capsIcon.visible); } }); const VisibilityIndicatorStyle = GObject.registerClass({ }, class VisibilityIndicatorStyle extends GObject.Object{ _init(indicator) { this._indicator = indicator; this._config = indicator.config; this._icons = indicator.icons; this._numIcon = indicator.numIcon; this._capsIcon = indicator.capsIcon; this._numIcon.set_gicon(this._icons.getCustomIcon('numlock-enabled-symbolic')); this._capsIcon.set_gicon(this._icons.getCustomIcon('capslock-enabled-symbolic')); } displayState(numlock_state, capslock_state) { if (numlock_state) { this._numIcon.show(); } else this._numIcon.hide(); if (capslock_state) { this._capsIcon.show(); } else this._capsIcon.hide(); this._indicator.visible = numlock_state || capslock_state; } }); const VisibilityIndicatorCapslockStyle = GObject.registerClass({ }, class VisibilityIndicatorCapslockStyle extends GObject.Object{ _init(indicator) { this._indicator = indicator; this._config = indicator.config; this._icons = indicator.icons; this._capsIcon = indicator.capsIcon; indicator.numIcon.hide(); this._capsIcon.set_gicon(this._icons.getCustomIcon('capslock-enabled-symbolic')); } displayState(numlock_state, capslock_state) { if (capslock_state) { this._capsIcon.show(); } else { this._capsIcon.hide(); } this._indicator.visible = capslock_state; } }); const Configuration = GObject.registerClass({ }, class Configuration extends GObject.Object{ _init(settings) { this.settings = settings; } // Old configuration functions isShowNotifications() { let notification_prefs = this.settings.get_string(NOTIFICATIONS); return notification_prefs == NOTIFICATIONS_ON || notification_prefs == NOTIFICATIONS_OSD; } isShowOsd() { let notification_prefs = this.settings.get_string(NOTIFICATIONS); return notification_prefs == NOTIFICATIONS_OSD; } isNotifyNumLock() { let widget_style = this.settings.get_string(STYLE); return this.isShowNotifications() && widget_style != STYLE_CAPSLOCK_ONLY && widget_style != STYLE_SHOWHIDE_CAPSLOCK; } isNotifyCapsLock() { let widget_style = this.settings.get_string(STYLE); return this.isShowNotifications() && widget_style != STYLE_NUMLOCK_ONLY; } isHighlightNumLock() { let widget_style = this.settings.get_string(STYLE); return widget_style == STYLE_BOTH || widget_style == STYLE_NUMLOCK_ONLY; } isHighlightCapsLock() { let widget_style = this.settings.get_string(STYLE); return widget_style == STYLE_BOTH || widget_style == STYLE_CAPSLOCK_ONLY; } isVisibilityStyle() { let widget_style = this.settings.get_string(STYLE); return widget_style == STYLE_SHOWHIDE; } isVisibilityStyleCapslock() { let widget_style = this.settings.get_string(STYLE); return widget_style == STYLE_SHOWHIDE_CAPSLOCK; } // New configuration functions isCapslockEnabled() { return this.settings.get_boolean('capslock-enabled'); } getCapslockNotification() { return this.settings.get_string('capslock-notification'); } getCapslockIndicator() { return this.settings.get_string('capslock-indicator'); } isNumlockEnabled() { return this.settings.get_boolean('numlock-enabled'); } getNumlockNotification() { return this.settings.get_string('numlock-notification'); } getNumlockIndicator() { return this.settings.get_string('numlock-indicator'); } }); ================================================ FILE: lockkeys@vaina.lt/metadata.json ================================================ { "shell-version": ["45", "46", "47", "48", "49", "50"], "uuid": "lockkeys@vaina.lt", "name": "Lock Keys", "description": "Numlock & Capslock status on the panel.", "url": "https://github.com/kazysmaster/gnome-shell-extension-lockkeys", "original-authors": "Kazimieras Vaina, Pierre Ossman, @JanluOfficial, erguille, jonnius, Philipp Wolfer, Mariusz Lisowski, Cristian Beroiza, warmsun0220, Rasmus Kaj, Pablo Martin-Gomez Bouska, Raphaël Rochet, Luiz Nickel, Jesse, Dušan Kazik and many others", "version" : 77, "settings-schema": "org.gnome.shell.extensions.lockkeys", "gettext-domain": "lockkeys" } ================================================ FILE: lockkeys@vaina.lt/prefs.js ================================================ import Adw from 'gi://Adw'; import Gtk from 'gi://Gtk'; import {ExtensionPreferences, gettext as _} from 'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js'; import * as Config from 'resource:///org/gnome/Shell/Extensions/js/misc/config.js'; const STYLE = 'style'; const STYLE_NONE = 'none'; const STYLE_NUMLOCK_ONLY = 'numlock'; const STYLE_CAPSLOCK_ONLY = 'capslock'; const STYLE_BOTH = 'both'; const STYLE_SHOWHIDE = 'show-hide'; const STYLE_SHOWHIDE_CAPSLOCK = 'show-hide-capslock'; const NOTIFICATIONS = 'notification-preferences'; const NOTIFICATIONS_OFF = 'off'; const NOTIFICATIONS_ON = 'on'; const NOTIFICATIONS_OSD = 'osd'; export default class LockKeysPreferences extends ExtensionPreferences { fillPreferencesWindow(window) { const group = new Adw.PreferencesGroup({ title: _('Settings'), description: _('Change indicator display options') }); // Header Suffixes are temporary commented out. The idea is to have them // act as a master switch for each group, but for now, this isn't implemented. // Set up Caps Lock group const capsGroup = new Adw.PreferencesGroup({ title: _('Caps Lock'), description: _('Options for Caps Lock key'), /*header_suffix: new Gtk.Switch({ active: this.getSettings().get_boolean('capslock-enabled'), halign: Gtk.Align.END, valign: Gtk.Align.CENTER, tooltip_text: _('Enable/Disable Caps Lock key indicator') })*/ }); /*capsGroup.header_suffix.connect('notify::active', (widget) => { this.getSettings().set_boolean('capslock-enabled', widget.active); });*/ capsGroup.add(this.buildCapsLockPrefsWidget()); // Set up Num Lock group const numlockGroup = new Adw.PreferencesGroup({ title: _('Num Lock'), description: _('Options for Num Lock key'), /*header_suffix: new Gtk.Switch({ active: this.getSettings().get_boolean('numlock-enabled'), halign: Gtk.Align.END, valign: Gtk.Align.CENTER, tooltip_text: _('Enable/Disable Num Lock key indicator') })*/ }); /*numlockGroup.header_suffix.connect('notify::active', (widget) => { this.getSettings().set_boolean('numlock-enabled', widget.active); });*/ numlockGroup.add(this.buildNumLockPrefsWidget()); const page = new Adw.PreferencesPage(); page.add(capsGroup); page.add(numlockGroup); window.add(page); } buildCapsLockPrefsWidget() { const widget = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, spacing: 10 }); const capsNotification = this.createToggleGroup( 'capslock-notification', _('Notifications'), _('Show notifications when state changes'), { 'off': _('Off'), 'compact': _('Compact'), 'osd': _('Osd') } ); widget.append(capsNotification); const capsIndicator = this.createToggleGroup( 'capslock-indicator', _('Top Bar Indicator'), _('Show Caps Lock indicator in the top bar'), { 'never': _('Never'), 'when-active': _('When Active'), 'always': _('Always') } ); widget.append(capsIndicator); return this.createVerticalBoxCompat(widget); } buildNumLockPrefsWidget() { const widget = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, spacing: 10 }); const numlockNotification = this.createToggleGroup( 'numlock-notification', _('Notifications'), _('Show notifications when state changes'), { 'off': _('Off'), 'compact': _('Compact'), 'osd': _('Osd') } ); widget.append(numlockNotification); const numlockIndicator = this.createToggleGroup( 'numlock-indicator', _('Top Bar Indicator'), _('Show Num Lock indicator in the top bar'), { 'never': _('Never'), 'when-active': _('When Active'), 'always': _('Always') } ); widget.append(numlockIndicator); return this.createVerticalBoxCompat(widget); } createToggleGroup(key, text, tooltip, values) { let label = new Gtk.Label({ label: text, xalign: 0, tooltip_text:tooltip }); label.set_hexpand(true); let widget = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL }); widget.halign = Gtk.Align.END; widget.get_style_context().add_class('linked'); let firstButton = null; const _settings = this.getSettings(); for (let id in values) { let button = new Gtk.ToggleButton({ label: values[id], active: _settings.get_string(key) === id }); if (firstButton === null) { firstButton = button; } else { button.set_group(firstButton); } button.connect('toggled', function(toggle_widget) { if (toggle_widget.active) { _settings.set_string(key, id); } }); widget.append(button); } return this.createHorizontalBoxCompat(label, widget, false); } createComboBox(key, text, tooltip, values) { let label = new Gtk.Label({ label: text, xalign: 0, tooltip_text:tooltip }); let widget = new Gtk.ComboBoxText(); widget.halign = Gtk.Align.END; for (let id in values) { widget.append(id, values[id]); } const _settings = this.getSettings(); widget.set_active_id(_settings.get_string(key)); widget.connect('changed', function(combo_widget) { _settings.set_string(key, combo_widget.get_active_id()); }); return this.createHorizontalBoxCompat(label, widget); } createVerticalBoxCompat(...widgets) { const box = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, spacing: 10, margin_top: 20, margin_bottom: 20, margin_start: 20, margin_end: 20 }); widgets.forEach(widget => box.append(widget)); box.show(); return box; } createHorizontalBoxCompat(label, widget, homogenousity = true) { const box = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL, spacing: 10, homogeneous: homogenousity}); box.append(label); box.append(widget); return box; } } ================================================ FILE: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml ================================================ 'osd' Show notifications when key state changes Set false to suppress num-lock or caps-lock state change notifications 'both' Indicator style Set numlock value to display only num-lock indicator, set capslock value to display only caps-lock indicator, or both for both. Set show-hide, to display corresponding indicator icons only when on. true Enable caps-lock indicator Set false to disable caps-lock indicator entirely 'osd' Caps-lock notification style Set to 'off' to disable caps-lock notifications, 'compact' for compact notifications, or 'osd' for on-screen display notifications 'always' Caps-lock indicator display mode Set to 'never' to never show the caps-lock indicator, 'when-active' to show it only when caps-lock is active, or 'always' to always show the indicator true Enable num-lock indicator Set false to disable num-lock indicator entirely 'osd' Num-lock notification style Set to 'off' to disable num-lock notifications, 'compact' for compact notifications, or 'osd' for on-screen display notifications 'always' Num-lock indicator display mode Set to 'never' to never show the num-lock indicator, 'when-active' to show it only when num-lock is active, or 'always' to always show the indicator ================================================ FILE: lockkeys@vaina.lt/stylesheet.css ================================================ .lockkeys-container { spacing: 2px; } ================================================ FILE: lt.po ================================================ # Lithuanian translations for PACKAGE package. # Copyright (C) 2013 THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Kazimieras Vaina , 2013. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2025-10-03 20:50+0300\n" "PO-Revision-Date: 2025-10-03 23:36+0300\n" "Last-Translator: Kazimieras Vaina \n" "Language-Team: Lithuanian\n" "Language: lt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: extension.js:79 extension.js:128 prefs.js:48 msgid "Num Lock" msgstr "Num Lock" #: extension.js:82 extension.js:134 prefs.js:31 msgid "Caps Lock" msgstr "Caps Lock" #: extension.js:86 prefs.js:22 msgid "Settings" msgstr "Nustatymai" #: extension.js:254 msgid "On" msgstr "Įjungta" #: extension.js:254 prefs.js:78 prefs.js:108 msgid "Off" msgstr "Išjungta" #: prefs.js:32 msgid "Options for Caps Lock key" msgstr "Caps Lock klavišo nustatymai" #: prefs.js:49 msgid "Options for Num Lock key" msgstr "Num Lock klavišo nustatymai" #: prefs.js:75 prefs.js:105 msgid "Notifications" msgstr "Pranešimai" #: prefs.js:76 prefs.js:106 msgid "Show notifications when state changes" msgstr "Išokančių pranešimų nustatymai" #: prefs.js:79 prefs.js:109 msgid "Compact" msgstr "Viršuje" #: prefs.js:80 prefs.js:110 msgid "Osd" msgstr "Osd" #: prefs.js:87 prefs.js:117 msgid "Top Bar Indicator" msgstr "Indikatorius" #: prefs.js:88 msgid "Show Caps Lock indicator in the top bar" msgstr "Caps Lock indikatoriaus rodymo nustatymai" #: prefs.js:90 prefs.js:120 msgid "Never" msgstr "Slėpti" #: prefs.js:91 prefs.js:121 msgid "When Active" msgstr "Tik įjungtą" #: prefs.js:92 prefs.js:122 msgid "Always" msgstr "Rodyti" #: prefs.js:118 msgid "Show Num Lock indicator in the top bar" msgstr "Num Lock indikatoriaus rodymo nustatymai" ================================================ FILE: nl.po ================================================ msgid "" msgstr "" "Project-Id-Version: Lock Keys Gnome-Shell extension\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2025-02-08 18:09+0300\n" "PO-Revision-Date: 2025-08-09 10:47+0200\n" "Last-Translator: Heimen Stoffels \n" "Language-Team: \n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.6\n" "X-Poedit-SourceCharset: UTF-8\n" #: lockkeys@vaina.lt/extension.js:71 lockkeys@vaina.lt/extension.js:115 msgid "Num Lock" msgstr "NumLock vergrendelen" #: lockkeys@vaina.lt/extension.js:74 lockkeys@vaina.lt/extension.js:121 msgid "Caps Lock" msgstr "CapsLock vergrendelen" #: lockkeys@vaina.lt/extension.js:78 lockkeys@vaina.lt/prefs.js:22 msgid "Settings" msgstr "Voorkeuren" #: lockkeys@vaina.lt/extension.js:219 msgid "On" msgstr "Aan" #: lockkeys@vaina.lt/extension.js:219 lockkeys@vaina.lt/prefs.js:51 msgid "Off" msgstr "Uit" #: lockkeys@vaina.lt/prefs.js:23 lockkeys@vaina.lt/prefs.js:35 msgid "Change indicator display options" msgstr "Pas de weergaveopties van de indicator aan" #: lockkeys@vaina.lt/prefs.js:34 msgid "Indicator Style" msgstr "Indicatorstijl" #: lockkeys@vaina.lt/prefs.js:37 msgid "Notifications Only" msgstr "Alleen meldingen" #: lockkeys@vaina.lt/prefs.js:38 msgid "Num-Lock Only" msgstr "Alleen NumLock" #: lockkeys@vaina.lt/prefs.js:39 msgid "Caps-Lock Only" msgstr "Alleen CapsLock" #: lockkeys@vaina.lt/prefs.js:40 msgid "Both" msgstr "Beide" #: lockkeys@vaina.lt/prefs.js:41 msgid "Show/Hide" msgstr "Tonen/Verbergen" #: lockkeys@vaina.lt/prefs.js:42 msgid "Show/Hide Caps-Lock Only" msgstr "Alleen CapsLock tonen/verbergen" #: lockkeys@vaina.lt/prefs.js:48 msgid "Notifications" msgstr "Meldingen" #: lockkeys@vaina.lt/prefs.js:49 msgid "Show notifications when state changes" msgstr "Toon meldingen bij aan-/uitzetten van NumLock/CapsLock" #: lockkeys@vaina.lt/prefs.js:52 msgid "Compact" msgstr "Compact" #: lockkeys@vaina.lt/prefs.js:53 msgid "Osd" msgstr "Meldingen" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:6 msgid "Show notifications when key state changes" msgstr "Toon meldingen bij aan-/uitzetten van NumLock/CapsLock" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:7 msgid "Set false to suppress num-lock or caps-lock state change notifications" msgstr "Stel in op ‘false’ om meldingen te onderdrukken" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:12 msgid "Indicator style" msgstr "Indicatorstijl" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:13 msgid "" "Set numlock value to display only num-lock indicator, set capslock value to " "display only caps-lock indicator, or both for both. Set show-hide, to " "display corresponding indicator icons only when on." msgstr "" "Stel de waarde ‘numlock’ in om alleen de NumLock-indicator te tonen, " "‘capslock’ in om alleen de CapsLock-indicator te tonen of ‘both’ om beide te " "tonen. Stel in op ‘show-hide’ om alleen te tonen indien een van de knoppen " "wordt ingedrukt." ================================================ FILE: pl.po ================================================ # Polish translations for PACKAGE package. # # This file is distributed under the same license as the PACKAGE package. # Kazimieras Vaina , 2013. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-10-13 00:01+0200\n" "PO-Revision-Date: 2013-10-14 23:36+0300\n" "Last-Translator: Mariusz Lisowski \n" "Language-Team: Polish\n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n" "%100<10 || n%100>=20) ? 1 : 2);\n" #: extension.js:79 extension.js:128 prefs.js:48 msgid "Num Lock" msgstr "Num Lock" #: extension.js:82 extension.js:134 prefs.js:31 msgid "Caps Lock" msgstr "Caps Lock" #: extension.js:86 prefs.js:22 msgid "Settings" msgstr "Ustawienia" #: extension.js:254 msgid "On" msgstr "Włączony" #: extension.js:254 prefs.js:78 prefs.js:108 msgid "Off" msgstr "Wyłączony" #: prefs.js:32 msgid "Options for Caps Lock key" msgstr "Ustawienia klawisza Caps Lock" #: prefs.js:49 msgid "Options for Num Lock key" msgstr "Ustawienia klawisza Num Lock" #: prefs.js:75 prefs.js:105 msgid "Notifications" msgstr "Powiadomienia" #: prefs.js:76 prefs.js:106 msgid "Show notifications when state changes" msgstr "Wyświetl powiadomienie gdy zmieni się stan" #: prefs.js:79 prefs.js:109 msgid "Compact" msgstr "Kompaktowe" #: prefs.js:80 prefs.js:110 msgid "Osd" msgstr "Osd" #: prefs.js:87 prefs.js:117 msgid "Top Bar Indicator" msgstr "Wskaźnik górnego paska" #: prefs.js:88 msgid "Show Caps Lock indicator in the top bar" msgstr "Wyświetl Caps Lock wskaźnik na górnym pasku" #: prefs.js:90 prefs.js:120 msgid "Never" msgstr "Nigdy" #: prefs.js:91 prefs.js:121 msgid "When Active" msgstr "Tylko włączony" #: prefs.js:92 prefs.js:122 msgid "Always" msgstr "Zawsze" #: prefs.js:118 msgid "Show Num Lock indicator in the top bar" msgstr "Wyświetl Caps Lock wskaźnik na górnym pasku" ================================================ FILE: po2mo.sh ================================================ #!/bin/sh find . -iname \*.po -print -execdir sh -c 'msgfmt -f -o "lockkeys@vaina.lt/locale/$(basename "$0" .po)/LC_MESSAGES/lockkeys.mo" "$0"' '{}' \; ================================================ FILE: pt_BR.po ================================================ # Portuguese from Brazil msgid "" msgstr "" "Project-Id-Version: gnome-shell-extension-lockkeys\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-02-10 00:53+0200\n" "PO-Revision-Date: 2018-02-10 01:11-0200\n" "Last-Translator: Luiz Augusto Nickel Lino \n" "Language-Team: Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Language: pt_BR\n" "X-Poedit-SourceCharset: UTF-8\n" #: prefs.js:28 msgid "Indicator Style" msgstr "Estilo do indicador" #: prefs.js:28 msgid "Change indicator display options" msgstr "Mudar exibição de opções do indicador" #: prefs.js:29 msgid "Num-Lock Only" msgstr "Num-Lock somente" #: prefs.js:29 msgid "Caps-Lock Only" msgstr "Caps-Lock somente" #: prefs.js:29 msgid "Both" msgstr "Ambos" #: prefs.js:29 msgid "Show/Hide" msgstr "Mostrar/Ocultar" #: prefs.js:30 msgid "Notifications" msgstr "Notificações" #: prefs.js:30 msgid "Show notifications when state changes" msgstr "Mostrar notificações quando houver mudança de estado" #: prefs.js:34 msgid "Notifications Only" msgstr "Notificações somente" #: prefs.js:42 msgid "Compact" msgstr "Compacto" #: extension.js:78 extension.js:152 msgid "Num Lock" msgstr "Num Lock" #: extension.js:82 extension.js:158 msgid "Caps Lock" msgstr "Caps Lock" #: extension.js:87 msgid "Settings" msgstr "Configurações" #: extension.js:217 msgid "On" msgstr "Ligado" #: extension.js:217 msgid "Off" msgstr "Desligado" ================================================ FILE: ru_RU.po ================================================ # # Fraxinus Acer <>, 2025. # msgid "" msgstr "" "Project-Id-Version: Расширение Lock Keys\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2025-10-03 20:50+0300\n" "PO-Revision-Date: 2025-10-15 18:10+0300\n" "Last-Translator: Fraxinus Acer\n" "Language-Team: Russian\n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Poedit 3.6\n" # 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 , YEAR. # #: lockkeys@vaina.lt/extension.js:79 lockkeys@vaina.lt/extension.js:128 #: lockkeys@vaina.lt/prefs.js:48 msgid "Num Lock" msgstr "Num Lock" #: lockkeys@vaina.lt/extension.js:82 lockkeys@vaina.lt/extension.js:134 #: lockkeys@vaina.lt/prefs.js:31 msgid "Caps Lock" msgstr "Caps Lock" #: lockkeys@vaina.lt/extension.js:86 lockkeys@vaina.lt/prefs.js:22 msgid "Settings" msgstr "Настройки" #: lockkeys@vaina.lt/extension.js:254 msgid "On" msgstr "Включены" #: lockkeys@vaina.lt/extension.js:254 lockkeys@vaina.lt/prefs.js:78 #: lockkeys@vaina.lt/prefs.js:108 msgid "Off" msgstr "Выключены" #: lockkeys@vaina.lt/prefs.js:23 msgid "Change indicator display options" msgstr "Изменить параметры отображения индикатора" #: lockkeys@vaina.lt/prefs.js:32 msgid "Options for Caps Lock key" msgstr "Настройки для клавиши Caps Lock" #: lockkeys@vaina.lt/prefs.js:49 msgid "Options for Num Lock key" msgstr "Настройки для клавиши Num Lock" #: lockkeys@vaina.lt/prefs.js:75 lockkeys@vaina.lt/prefs.js:105 msgid "Notifications" msgstr "Уведомления" #: lockkeys@vaina.lt/prefs.js:76 lockkeys@vaina.lt/prefs.js:106 msgid "Show notifications when state changes" msgstr "Показывать уведомления при изменении состояния" #: lockkeys@vaina.lt/prefs.js:79 lockkeys@vaina.lt/prefs.js:109 msgid "Compact" msgstr "Компактные" #: lockkeys@vaina.lt/prefs.js:80 lockkeys@vaina.lt/prefs.js:110 msgid "Osd" msgstr "Экранные" #: lockkeys@vaina.lt/prefs.js:87 lockkeys@vaina.lt/prefs.js:117 msgid "Top Bar Indicator" msgstr "Индикатор в верхней панели" #: lockkeys@vaina.lt/prefs.js:88 msgid "Show Caps Lock indicator in the top bar" msgstr "Показывать индикатор Caps Lock в верхней панели" #: lockkeys@vaina.lt/prefs.js:90 lockkeys@vaina.lt/prefs.js:120 msgid "Never" msgstr "Никогда" #: lockkeys@vaina.lt/prefs.js:91 lockkeys@vaina.lt/prefs.js:121 msgid "When Active" msgstr "Когда включён" #: lockkeys@vaina.lt/prefs.js:92 lockkeys@vaina.lt/prefs.js:122 msgid "Always" msgstr "Всегда" #: lockkeys@vaina.lt/prefs.js:118 msgid "Show Num Lock indicator in the top bar" msgstr "Показывать индикатор Num Lock в верхней панели" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:7 msgid "Show notifications when key state changes" msgstr "Показывать уведомления при изменении состояния клавиши" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:8 msgid "Set false to suppress num-lock or caps-lock state change notifications" msgstr "" "Выберите выключены, чтобы отключить отображение уведомлений при смене режима" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:13 msgid "Indicator style" msgstr "Стиль индикатора" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:14 msgid "" "Set numlock value to display only num-lock indicator, set capslock value to " "display only caps-lock indicator, or both for both. Set show-hide, to " "display corresponding indicator icons only when on." msgstr "" "Выберите Только Num Lock или Только Caps Lock, чтобы показывать только " "соответствующий индикатор. Выберите Оба, чтобы показывать оба индикатора. " "Выберите Показать/Скрыть, чтобы показывать соответствующий индикатор только " "тогда, когда соответствующий режим активен." #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:22 msgid "Enable caps-lock indicator" msgstr "Включить индикатор caps lock" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:23 msgid "Set false to disable caps-lock indicator entirely" msgstr "Задайте значение false, чтобы полностью отключить индикатор caps lock" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:27 msgid "Caps-lock notification style" msgstr "Стиль уведомлений caps lock" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:28 msgid "" "Set to 'off' to disable caps-lock notifications, 'compact' for compact " "notifications, or 'osd' for on-screen display notifications" msgstr "" "Установите значение \"выкл.\", чтобы отключить уведомления для caps-lock, " "\"компактный\" для компактных уведомлений или \"экранные\" для уведомлений, " "отображаемых на экране" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:33 msgid "Caps-lock indicator display mode" msgstr "Режим отображения индикатора Caps-lock" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:34 msgid "" "Set to 'never' to never show the caps-lock indicator, 'when-active' to show " "it only when caps-lock is active, or 'always' to always show the indicator" msgstr "" "Установите значение \"никогда\", чтобы индикатор caps-lock никогда не " "отображался, \"когда активен\", чтобы он отображался только при активном " "caps-lock, или \"всегда\", чтобы индикатор всегда отображался" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:41 msgid "Enable num-lock indicator" msgstr "Включить индикатор num-lock" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:42 msgid "Set false to disable num-lock indicator entirely" msgstr "" "Установите значение false, чтобы полностью отключить индикатор num-lock" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:46 msgid "Num-lock notification style" msgstr "Стиль уведомления Num-lock" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:47 msgid "" "Set to 'off' to disable num-lock notifications, 'compact' for compact " "notifications, or 'osd' for on-screen display notifications" msgstr "" "Установите значение \"выкл.\" для отключения уведомлений о блокировке " "номера, \"компактный\" для компактных уведомлений или \"экранные\" для " "уведомлений, отображаемых на экране" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:52 msgid "Num-lock indicator display mode" msgstr "Режим отображения индикатора Num-lock" #: lockkeys@vaina.lt/schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:53 msgid "" "Set to 'never' to never show the num-lock indicator, 'when-active' to show " "it only when num-lock is active, or 'always' to always show the indicator" msgstr "" "Установите значение \"никогда\", чтобы индикатор num-lock никогда не " "отображался, \"когда активен\", чтобы он отображался только при активном " "num-lock, или \"всегда\", чтобы индикатор всегда отображался" #~ msgid "Indicator Style" #~ msgstr "Стиль индикатора" #~ msgid "Notifications Only" #~ msgstr "Только уведомления" #~ msgid "Num-Lock Only" #~ msgstr "Только Num-Lock" #~ msgid "Caps-Lock Only" #~ msgstr "Только Caps-Lock" #~ msgid "Both" #~ msgstr "Оба" #~ msgid "Show/Hide" #~ msgstr "Показать/Скрыть" #~ msgid "Show/Hide Caps-Lock Only" #~ msgstr "Показать/Скрыть только Caps-Lock" ================================================ FILE: sk.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Dušan Kazik , 2020. # msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-26 11:26+0200\n" "PO-Revision-Date: 2020-09-26 11:39+0200\n" "Last-Translator: Dušan Kazik \n" "Language-Team: \n" "Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 2.4.1\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n>=2 && n<=4 ? 1 : 2);\n" #: extension.js:97 extension.js:147 msgid "Num Lock" msgstr "Num Lock" #: extension.js:100 extension.js:154 msgid "Caps Lock" msgstr "Caps Lock" #: extension.js:104 msgid "Settings" msgstr "Nastavenia" #: extension.js:213 msgid "On" msgstr "zapnutý" #: extension.js:213 prefs.js:41 msgid "Off" msgstr "vypnutý" #: prefs.js:33 msgid "Indicator Style" msgstr "Štýl indikátoru" # tooltip #: prefs.js:33 msgid "Change indicator display options" msgstr "Zmení voľby zobrazenia indikátora" #: prefs.js:34 msgid "Num-Lock Only" msgstr "Iba funkcia Num-Lock" #: prefs.js:35 msgid "Caps-Lock Only" msgstr "Iba funkcia Caps-Lock" #: prefs.js:36 msgid "Both" msgstr "Oboje" #: prefs.js:37 msgid "Show/Hide" msgstr "Zobraziť alebo skryť" #: prefs.js:40 msgid "Notifications" msgstr "Oznámenia" # tooltip #: prefs.js:40 msgid "Show notifications when state changes" msgstr "Zobrazí oznámenia pri zmene stavu" #: prefs.js:42 msgid "Compact" msgstr "Kompaktné" #: prefs.js:43 msgid "Osd" msgstr "Na obrazovke" # tooltip #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:6 msgid "Show notifications when key state changes" msgstr "Zobrazí oznámenia pri zmene stavu klávesov" #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:7 msgid "Set false to suppress num-lock or caps-lock state change notifications" msgstr "" "Nastavením na hodnotu false potlačíte oznámenia o zmene stavov funkcií num-" "lock alebo caps-lock" #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:12 msgid "Indicator style" msgstr "Štýl indikátoru" #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:13 msgid "" "Set numlock value to display only num-lock indicator, set capslock value to " "display only caps-lock indicator, or both for both. Set show-hide, to " "display corresponding indicator icons only when on." msgstr "" "Nastavením na hodnotu „numlock“ bude zobrazený iba indikátor funkcie Num-" "Lock. Nastavenim na hodnotu „capslock“ bude zobrazený iba indikátor funkcie " "Caps-Lock. Hodnota „both“ zobrazí oba indikátory. Nastavením hodnoty " "„show“ (zobraziť) alebo „hide“ (skryť) budú po zapnutí zobrazené iba ikony " "príslušného indikátoru." ================================================ FILE: sv.po ================================================ msgid "" msgstr "" "Project-Id-Version: Lock Keys Gnome-Shell extension\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2014-01-03 13:55+0100\n" "PO-Revision-Date: 2014-01-03 15:30+0100\n" "Last-Translator: Rasmus Kaj \n" "Language-Team: Rasmus Kaj \n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-SourceCharset: UTF-8\n" msgid "Both" msgstr "Båda" msgid "Caps Lock" msgstr "Skiftlås" msgid "Caps-Lock Only" msgstr "Endast skiftlås" msgid "Change indicator display options" msgstr "Ändra indikatorinställningar" msgid "Indicator Style" msgstr "Indikatorstil" msgid "Show/Hide" msgstr "Visa/dölj" msgid "Notifications" msgstr "Notifieringar" msgid "Num Lock" msgstr "Numeriskt lås" msgid "Num-Lock Only" msgstr "Endast numeriskt lås" msgid "Off" msgstr "av" msgid "On" msgstr "på" msgid "Settings" msgstr "Inställningar" msgid "Show notifications when state changes" msgstr "Visa notifieringar när låsstatus ändras" ================================================ FILE: tr_TR.po ================================================ # Turkish translation of Lock Keys Gnome-Shell extension # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Muha Aliss , 2019. # bywkgexmkiltxh , 2025. # msgid "" msgstr "" "Project-Id-Version: Lock Keys Gnome-Shell extension\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2025-10-03 20:50+0300\n" "PO-Revision-Date: 2025-10-04 17:39+0300\n" "Last-Translator: bywkgexmkiltxh \n" "Language-Team: Turkish\n" "Language: tr_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.6\n" #: extension.js:79 extension.js:128 prefs.js:48 msgid "Num Lock" msgstr "Num Lock" #: extension.js:82 extension.js:134 prefs.js:31 msgid "Caps Lock" msgstr "Caps Lock" #: extension.js:86 prefs.js:22 msgid "Settings" msgstr "Ayarlar" #: extension.js:254 msgid "On" msgstr "Açık" #: extension.js:254 prefs.js:78 prefs.js:108 msgid "Off" msgstr "Kapalı" #: prefs.js:23 msgid "Change indicator display options" msgstr "Gösterge görünüm seçeneklerini değiştir" #: prefs.js:32 msgid "Options for Caps Lock key" msgstr "Caps Lock tuşu seçenekleri" #: prefs.js:49 msgid "Options for Num Lock key" msgstr "Num Lock tuşu seçenekleri" #: prefs.js:75 prefs.js:105 msgid "Notifications" msgstr "Bildirimler" #: prefs.js:76 prefs.js:106 msgid "Show notifications when state changes" msgstr "Durum değişikliklerinde bildirim göster" #: prefs.js:79 prefs.js:109 msgid "Compact" msgstr "Kompakt" #: prefs.js:80 prefs.js:110 msgid "Osd" msgstr "OSD" #: prefs.js:87 prefs.js:117 msgid "Top Bar Indicator" msgstr "Üst Çubuk Göstergesi" #: prefs.js:88 msgid "Show Caps Lock indicator in the top bar" msgstr "Caps Lock göstergesini üst çubukta göster" #: prefs.js:90 prefs.js:120 msgid "Never" msgstr "Asla" #: prefs.js:91 prefs.js:121 msgid "When Active" msgstr "Etkinken" #: prefs.js:92 prefs.js:122 msgid "Always" msgstr "Daima" #: prefs.js:118 msgid "Show Num Lock indicator in the top bar" msgstr "Num Lock göstergesini üst çubukta göster" #~ msgid "Indicator Style" #~ msgstr "Gösterge Stili" #~ msgid "Notifications Only" #~ msgstr "Yalnızca Bildirimler" #~ msgid "Num-Lock Only" #~ msgstr "Yalnızca Num Lock" #~ msgid "Caps-Lock Only" #~ msgstr "Yalnızca Caps Lock" #~ msgid "Both" #~ msgstr "İkisi Birden" #~ msgid "Show/Hide" #~ msgstr "Göster/Gizle" #~ msgid "Show/Hide Caps-Lock Only" #~ msgstr "Göster/Gizle (Yalnızca Caps Lock)" #~ msgid "Show notifications when key state changes" #~ msgstr "Tuş durumu değişikliklerinde bildirim göster" #~ msgid "Set false to suppress num-lock or caps-lock state change notifications" #~ msgstr "Num Lock ve Caps Lock durum değişikliği bildirimlerini susturmak için kapalı olarak ayarlayın" #~ msgid "Indicator style" #~ msgstr "Gösterge stili" #~ msgid "Set numlock value to display only num-lock indicator, set capslock value to display only caps-lock indicator, or both for both. Set show-hide, to display corresponding indicator icons only when on." #~ msgstr "Yalnızca Num Lock belirtecini göstermek için Num Lock'u, yalnızca Caps Lock belirtecini göstermek için Caps Lock'u veya her ikisi için İkisi Birden'i seçin. İlgili belirteç simgelerini yalnızca açıkken göstermek için Göster/Gizle'yi seçin." ================================================ FILE: uk_UA.po ================================================ # 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 , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2025-10-03 20:50+0300\n" "PO-Revision-Date: 2025-10-19 18:15+0300\n" "Last-Translator: FULL NAME \n" "Language-Team: Ukrainian \n" "Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: extension.js:79 extension.js:128 prefs.js:48 msgid "Num Lock" msgstr "Num Lock" #: extension.js:82 extension.js:134 prefs.js:31 msgid "Caps Lock" msgstr "Caps Lock" #: extension.js:86 prefs.js:22 msgid "Settings" msgstr "Налаштування" #: extension.js:254 msgid "On" msgstr "Увімк." #: extension.js:254 prefs.js:78 prefs.js:108 msgid "Off" msgstr "Вимк." #: prefs.js:23 msgid "Change indicator display options" msgstr "Змінити параметри відображення індикатора" #: prefs.js:32 msgid "Options for Caps Lock key" msgstr "Параметри клавіші Caps Lock" #: prefs.js:49 msgid "Options for Num Lock key" msgstr "Параметри клавіші Num Lock" #: prefs.js:75 prefs.js:105 msgid "Notifications" msgstr "Сповіщення" #: prefs.js:76 prefs.js:106 msgid "Show notifications when state changes" msgstr "Показувати сповіщення при зміні стану" #: prefs.js:79 prefs.js:109 msgid "Compact" msgstr "Компактний" #: prefs.js:80 prefs.js:110 msgid "Osd" msgstr "OSD" #: prefs.js:87 prefs.js:117 msgid "Top Bar Indicator" msgstr "Індикатор на верхній панелі" #: prefs.js:88 msgid "Show Caps Lock indicator in the top bar" msgstr "Показувати індикатор Caps Lock на верхній панелі" #: prefs.js:90 prefs.js:120 msgid "Never" msgstr "Ніколи" #: prefs.js:91 prefs.js:121 msgid "When Active" msgstr "Коли активний" #: prefs.js:92 prefs.js:122 msgid "Always" msgstr "Завжди" #: prefs.js:118 msgid "Show Num Lock indicator in the top bar" msgstr "Показувати індикатор Num Lock на верхній панелі" ================================================ FILE: update_strings.sh ================================================ #!/bin/sh SCRIPTDIR=`dirname $0` xgettext --from-code=UTF-8 -k_ -kN_ -o lockkeys.pot "$SCRIPTDIR"/./lockkeys@vaina.lt/*.js "$SCRIPTDIR"/./lockkeys@vaina.lt/schemas/*.xml for fn in *.po; do msgmerge -U "$fn" lockkeys.pot done ================================================ FILE: zh_CN.po ================================================ msgid "" msgstr "" "Project-Id-Version: Lock Keys Gnome-Shell extension\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2025-10-03 20:50+0300\n" "PO-Revision-Date: 2026-04-01 20:49+0800\n" "Last-Translator: soiamsoNG\n" "Language-Team: Chinese \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.9\n" "X-Poedit-SourceCharset: UTF-8\n" #: extension.js:79 extension.js:128 prefs.js:48 msgid "Num Lock" msgstr "Num Lock" #: extension.js:82 extension.js:134 prefs.js:31 msgid "Caps Lock" msgstr "Caps Lock" #: extension.js:86 prefs.js:22 msgid "Settings" msgstr "设置" #: extension.js:254 msgid "On" msgstr "开启" #: extension.js:254 prefs.js:78 prefs.js:108 msgid "Off" msgstr "关闭" #: prefs.js:23 msgid "Change indicator display options" msgstr "改变指示器显示选项" #: prefs.js:32 msgid "Options for Caps Lock key" msgstr "Caps Lock显示选项" #: prefs.js:49 msgid "Options for Num Lock key" msgstr "Num Lock显示选项" #: prefs.js:75 prefs.js:105 msgid "Notifications" msgstr "通知方式" #: prefs.js:76 prefs.js:106 msgid "Show notifications when state changes" msgstr "状态变化时显示通知" #: prefs.js:79 prefs.js:109 msgid "Compact" msgstr "通知中心显示" #: prefs.js:80 prefs.js:110 msgid "Osd" msgstr "OSD屏显" #: prefs.js:87 prefs.js:117 msgid "Top Bar Indicator" msgstr "顶栏指示器显示时机" #: prefs.js:88 msgid "Show Caps Lock indicator in the top bar" msgstr "在顶栏显示Caps Lock图标" #: prefs.js:90 prefs.js:120 msgid "Never" msgstr "从不" #: prefs.js:91 prefs.js:121 msgid "When Active" msgstr "激活时" #: prefs.js:92 prefs.js:122 msgid "Always" msgstr "总是" #: prefs.js:118 msgid "Show Num Lock indicator in the top bar" msgstr "在顶栏显示Num Lock图标" #~ msgid "Notifications Only" #~ msgstr "仅使用通知" #~ msgid "Indicator Style" #~ msgstr "指示器风格" #~ msgid "Num-Lock Only" #~ msgstr "仅数字锁定" #~ msgid "Caps-Lock Only" #~ msgstr "仅大写锁定" #~ msgid "Both" #~ msgstr "两者都显示" #~ msgid "Show/Hide" #~ msgstr "显示/隐藏" #~ msgid "Show notifications when key state changes" #~ msgstr "状态变化时显示通知" #~ msgid "Indicator style" #~ msgstr "指示器风格" ================================================ FILE: zh_TW.po ================================================ msgid "" msgstr "" "Project-Id-Version: Lock Keys Gnome-Shell extension\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-26 11:26+0200\n" "PO-Revision-Date: 2024-06-26 22:29+0800\n" "Last-Translator: Peter Dave Hello \n" "Language-Team: Peter Dave Hello \n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: extension.js:97 extension.js:147 msgid "Num Lock" msgstr "數字鎖定" #: extension.js:100 extension.js:154 msgid "Caps Lock" msgstr "大寫鎖定" #: extension.js:104 msgid "Settings" msgstr "設定" #: extension.js:213 msgid "On" msgstr "開啟" #: extension.js:212 prefs.js:43 msgid "Off" msgstr "關閉" #: prefs.js:33 msgid "Indicator Style" msgstr "指示器樣式" #: prefs.js:33 msgid "Change indicator display options" msgstr "更改指示器顯示選項" #: prefs.js:34 msgid "Num-Lock Only" msgstr "僅顯示數字鎖定" #: prefs.js:35 msgid "Caps-Lock Only" msgstr "僅顯示大寫鎖定" #: prefs.js:36 msgid "Both" msgstr "兩者皆顯示" #: prefs.js:37 msgid "Show/Hide" msgstr "顯示/隱藏" #: prefs.js:39 msgid "Show/Hide Caps-Lock Only" msgstr "僅顯示/隱藏大寫鎖定" #: prefs.js:40 msgid "Notifications" msgstr "通知" #: prefs.js:40 msgid "Show notifications when state changes" msgstr "狀態變更時顯示通知" #: prefs.js:42 msgid "Compact" msgstr "簡潔" #: prefs.js:43 msgid "Osd" msgstr "螢幕顯示" #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:6 msgid "Show notifications when key state changes" msgstr "按鍵狀態變更時顯示通知" #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:7 msgid "Set false to suppress num-lock or caps-lock state change notifications" msgstr "設為 false 以避免鎖定狀態變更通知" #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:12 msgid "Indicator style" msgstr "指示器樣式" #: schemas/org.gnome.shell.extensions.lockkeys.gschema.xml:13 msgid "" "Set numlock value to display only num-lock indicator, set capslock value to " "display only caps-lock indicator, or both for both. Set show-hide, to " "display corresponding indicator icons only when on." msgstr "" "設定數字鎖定值僅顯示數字鎖定指示器,設定大寫鎖定值僅顯示大寫鎖定指示器," "或設定為兩者皆顯示。設定顯示/隱藏以在開啟時顯示相應的指示器圖示。"