Skip to content

Commit

Permalink
Set application title for Wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
hongquan committed Mar 27, 2024
1 parent 289f489 commit 13f9dfc
Show file tree
Hide file tree
Showing 12 changed files with 281 additions and 180 deletions.
2 changes: 2 additions & 0 deletions babel.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[python: cobang/**.py]

[glade: **.glade]

[desktop: **.desktop.in]
1 change: 1 addition & 0 deletions cobang/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def do_startup(self):
Gtk.Application.do_startup(self)
# PyGObject doesn't properly set our app_id, so we have to do it ourselves
GLib.set_prgname(APP_ID)
GLib.set_application_name(_('CoBang: QR scanner for Linux'))
self.setup_actions()
self.build_gstreamer_pipeline()
devmonitor = Gst.DeviceMonitor.new()
Expand Down
5 changes: 5 additions & 0 deletions data/vn.hoabinh.quan.CoBang.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
</kudos>

<releases>
<release version="0.10.9" date="2024-03-27" urgency="medium">
<description translatable="no">
<p>Set application name for Wayland.</p>
</description>
</release>
<release version="0.10.8" date="2024-03-26" urgency="medium">
<description translatable="no">
<p>Fix setting Wayland App ID.</p>
Expand Down
2 changes: 1 addition & 1 deletion data/vn.hoabinh.quan.CoBang.desktop.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Encoding=UTF-8
Name=CoBang
GenericName=QR code scanner
X-GNOME-FullName=CoBang QR code scanner for GTK+ desktop
X-GNOME-FullName=CoBang QR code scanner for GTK desktop
Comment=Scan and decode QR from camera or static image
Keywords=qr;code;qr-code;qr-decoder;qr-scanner
Exec=cobang %u
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project('cobang',
version: '0.10.8',
version: '0.10.9',
meson_version: '>= 0.61',
default_options: [
'warning_level=2',
Expand Down
67 changes: 30 additions & 37 deletions po/CoBang.pot → po/cobang.pot
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
# 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.
# Translations template for PROJECT.
# Copyright (C) 2024 ORGANIZATION
# This file is distributed under the same license as the PROJECT project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2024.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-01-05 18:35+0300\n"
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-03-27 10:09+0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.10.3\n"

#: cobang/app.py:544
#: cobang/app.py:99
msgid "CoBang: QR scanner for Linux"
msgstr ""

#: cobang/app.py:547
#, python-format
msgid "Unsupported file type %s!"
msgstr ""

#: cobang/app.py:645
#: cobang/app.py:648
msgid "Copied"
msgstr ""

Expand Down Expand Up @@ -54,8 +58,8 @@ msgstr ""
msgid "Pause"
msgstr ""

#: data/cobang-resp.glade:143 data/vn.hoabinh.quan.CoBang.appdata.xml.in:9
#: data/vn.hoabinh.quan.CoBang.desktop.in:4
#. Name
#: data/cobang-resp.glade:143 data/vn.hoabinh.quan.CoBang.desktop.in:3
msgid "CoBang"
msgstr ""

Expand All @@ -67,7 +71,7 @@ msgstr ""
msgid "Webcam"
msgstr ""

#: data/cobang-resp.glade:337
#: data/cobang-resp.glade:343
msgid ""
"Please add an image file by one of these methods:\n"
"\n"
Expand Down Expand Up @@ -102,38 +106,26 @@ msgstr ""
msgid "button"
msgstr ""

#: data/vn.hoabinh.quan.CoBang.appdata.xml.in:10
msgid "QR code scanner for Linux desktop"
msgstr ""

#: data/vn.hoabinh.quan.CoBang.appdata.xml.in:12
msgid ""
"A missing native QR Code and barcode scanner application for Linux desktop."
msgstr ""

#: data/vn.hoabinh.quan.CoBang.appdata.xml.in:13
msgid ""
"CoBang can scan barcode, QR code from webcam or from static image. To be "
"part of Linux desktop modernization, it is set to support Wayland (not "
"XWayland), and only implement native GUI (no web crap)."
msgstr ""

#: data/vn.hoabinh.quan.CoBang.appdata.xml.in:37
msgid "Nguyễn Hồng Quân"
msgstr ""

#: data/vn.hoabinh.quan.CoBang.desktop.in:5
#. GenericName
#: data/vn.hoabinh.quan.CoBang.desktop.in:4
msgid "QR code scanner"
msgstr ""

#: data/vn.hoabinh.quan.CoBang.desktop.in:7
#. Comment
#: data/vn.hoabinh.quan.CoBang.desktop.in:6
msgid "Scan and decode QR from camera or static image"
msgstr ""

#: data/vn.hoabinh.quan.CoBang.desktop.in:8
#. Keywords
#: data/vn.hoabinh.quan.CoBang.desktop.in:7
msgid "qr;code;qr-code;qr-decoder;qr-scanner"
msgstr ""

#. Icon
#: data/vn.hoabinh.quan.CoBang.desktop.in:11
msgid "vn.hoabinh.quan.CoBang"
msgstr ""

#: data/wifi-display.glade:16
msgid "Found a wifi configuration"
msgstr ""
Expand All @@ -153,3 +145,4 @@ msgstr ""
#: data/wifi-display.glade:101
msgid "Save"
msgstr ""

53 changes: 41 additions & 12 deletions po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,39 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-04-14 19:26+0200\n"
"POT-Creation-Date: 2024-03-27 10:09+0700\n"
"PO-Revision-Date: 2023-04-14 19:26+0200\n"
"Last-Translator: Miquel Lionel <[email protected]>\n"
"Language: fr\n"
"Language-Team: fr <[email protected]>\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.10.3\n"

#: cobang/ui.py:30
msgid "Quit"
msgstr "Quitter"

#: cobang/ui.py:29
msgid "About"
msgstr "À propos"
#: cobang/app.py:99
#, fuzzy
msgid "CoBang: QR scanner for Linux"
msgstr "Scanneur de code QR pour Linux"

#: cobang/app.py:544
#: cobang/app.py:547
#, python-format
msgid "Unsupported file type %s!"
msgstr "Type de fichier %s non supporté!"

#: cobang/app.py:645
#: cobang/app.py:648
msgid "Copied"
msgstr "Copié"

#: cobang/ui.py:29
msgid "About"
msgstr "À propos"

#: cobang/ui.py:30
msgid "Quit"
msgstr "Quitter"

#: cobang/ui.py:59
msgid "Connected"
msgstr "Connecté"
Expand All @@ -53,7 +60,8 @@ msgstr "Lire"
msgid "Pause"
msgstr "Pause"

#: data/cobang-resp.glade:143
#. Name
#: data/cobang-resp.glade:143 data/vn.hoabinh.quan.CoBang.desktop.in:3
msgid "CoBang"
msgstr "CoBang"

Expand All @@ -79,7 +87,8 @@ msgstr ""
"\n"
"- Glissez-déposez la dans cette zone.\n"
"- Copiez puis collez (Ctrl+V) la depuis quelque part.\n"
"- Choisissez-en une en cliquant sur le bouton ci-dessous (indisponible avec flatpak).\n"
"- Choisissez-en une en cliquant sur le bouton ci-dessous (indisponible "
"avec flatpak).\n"
"\n"
"L'utilisation d'une image distante (http://..., sftp://...) est autorisé."

Expand Down Expand Up @@ -107,6 +116,26 @@ msgstr "URL trouvée. Cliquez pour ouvrir:"
msgid "button"
msgstr "bouton"

#. GenericName
#: data/vn.hoabinh.quan.CoBang.desktop.in:4
msgid "QR code scanner"
msgstr ""

#. Comment
#: data/vn.hoabinh.quan.CoBang.desktop.in:6
msgid "Scan and decode QR from camera or static image"
msgstr ""

#. Keywords
#: data/vn.hoabinh.quan.CoBang.desktop.in:7
msgid "qr;code;qr-code;qr-decoder;qr-scanner"
msgstr ""

#. Icon
#: data/vn.hoabinh.quan.CoBang.desktop.in:11
msgid "vn.hoabinh.quan.CoBang"
msgstr ""

#: data/wifi-display.glade:16
msgid "Found a wifi configuration"
msgstr "Configuration wifi trouvée"
Expand Down
74 changes: 50 additions & 24 deletions po/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,44 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2021-09-09 22:51+0700\n"
"POT-Creation-Date: 2024-03-27 10:09+0700\n"
"PO-Revision-Date: 2023-04-15 19:40+0200\n"
"Last-Translator: Albano Battistella <[email protected]>\n"
"Language: it\n"
"Language-Team: it <[email protected]>\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.0\n"
"Generated-By: Babel 2.10.3\n"

#: cobang/ui.py:30
msgid "Quit"
msgstr "Esci"

#: cobang/ui.py:29
msgid "About"
msgstr "Informazioni"
#: cobang/app.py:99
#, fuzzy
msgid "CoBang: QR scanner for Linux"
msgstr "Scanner QR per Linux"

#: cobang/app.py:542
#, python-format
msgid "Unsuported file type %s!"
#: cobang/app.py:547
#, fuzzy, python-format
msgid "Unsupported file type %s!"
msgstr "Tipo di file non supportato %s!"

#: cobang/app.py:643
#: cobang/app.py:648
msgid "Copied"
msgstr "Copiato"

#: cobang/ui.py:57
#: cobang/ui.py:29
msgid "About"
msgstr "Informazioni"

#: cobang/ui.py:30
msgid "Quit"
msgstr "Esci"

#: cobang/ui.py:59
msgid "Connected"
msgstr "Connesso"

#: cobang/ui.py:87
#: cobang/ui.py:89
msgid "Saved"
msgstr "Salvato"

Expand All @@ -55,19 +60,20 @@ msgstr "Avvia"
msgid "Pause"
msgstr "Pausa"

#: data/cobang-resp.glade:145
#. Name
#: data/cobang-resp.glade:143 data/vn.hoabinh.quan.CoBang.desktop.in:3
msgid "CoBang"
msgstr "CoBang"

#: data/cobang-resp.glade:146
#: data/cobang-resp.glade:144
msgid "QR scanner for Linux"
msgstr "Scanner QR per Linux"

#: data/cobang-resp.glade:287
#: data/cobang-resp.glade:289
msgid "Webcam"
msgstr "Webcam"

#: data/cobang-resp.glade:341
#: data/cobang-resp.glade:343
msgid ""
"Please add an image file by one of these methods:\n"
"\n"
Expand All @@ -85,19 +91,19 @@ msgstr ""
"\n"
"L'immagine remota (da http:// ..., sftp://...) è consentita."

#: data/cobang-resp.glade:374
#: data/cobang-resp.glade:376
msgid "Image"
msgstr "Immagine"

#: data/cobang-resp.glade:422
#: data/cobang-resp.glade:424
msgid "Please choose an image file"
msgstr "Scegli un file immagine"

#: data/cobang-resp.glade:470
#: data/cobang-resp.glade:472
msgid "Result"
msgstr "Risultato"

#: data/cobang-resp.glade:510
#: data/cobang-resp.glade:512
msgid "Raw result"
msgstr "Risultato grezzo"

Expand All @@ -109,6 +115,26 @@ msgstr "Trovato un URL. Fare clic per aprire:"
msgid "button"
msgstr "pulsante"

#. GenericName
#: data/vn.hoabinh.quan.CoBang.desktop.in:4
msgid "QR code scanner"
msgstr ""

#. Comment
#: data/vn.hoabinh.quan.CoBang.desktop.in:6
msgid "Scan and decode QR from camera or static image"
msgstr ""

#. Keywords
#: data/vn.hoabinh.quan.CoBang.desktop.in:7
msgid "qr;code;qr-code;qr-decoder;qr-scanner"
msgstr ""

#. Icon
#: data/vn.hoabinh.quan.CoBang.desktop.in:11
msgid "vn.hoabinh.quan.CoBang"
msgstr ""

#: data/wifi-display.glade:16
msgid "Found a wifi configuration"
msgstr "Trovato una configurazione wifi"
Expand Down
Loading

0 comments on commit 13f9dfc

Please sign in to comment.