ungana

Unnamed repository; edit this file 'description' to name the repository.
Info | Log | Files | Refs | README

commit 01ad95be9b5fbc4223effa06b85fd176bb71eb24
parent 96eb3912b55eee7184e327fb38bdf597f99b22b9
Author: lash <dev@holbrook.no>
Date:   Sun, 31 Aug 2025 05:30:35 +0100

Set uid and domain

Diffstat:
Mgui/base.py | 21++++++++++++++++++---
Mlocales/es/LC_MESSAGES/messages.po | 28++++++++++++++++------------
Mlocales/ungana.pot | 24+++++++++++++++---------
3 files changed, 49 insertions(+), 24 deletions(-)

diff --git a/gui/base.py b/gui/base.py @@ -27,7 +27,13 @@ class MainWindow(Gtk.ApplicationWindow): entry = Gtk.Entry() entry.set_editable(False) entry.set_sensitive(False) - entry.set_text("foo") + self.entry_uuid = entry + self.box_main.append(entry) + + title = Gtk.Label(label="Domain") + self.box_main.append(title) + entry = Gtk.Entry() + self.entry_domain = entry self.box_main.append(entry) title = Gtk.Label(label="Summary") @@ -59,9 +65,17 @@ class MainWindow(Gtk.ApplicationWindow): self.cal = ICalManager() self.cal.load_ical_file(fp) ev = self.cal.get_first_event(self.cal.calendar) - self.entry_summary.set_text(ev.get('summary')) + + v = ev.get('summary') + self.entry_summary.set_text(v) + + v = ev.get('uid') + (uid, domain) = v.split('@') + self.entry_uuid.set_text(uid) + self.entry_domain.set_text(domain) + status_id = self.status.get_context_id("ical") - self.status.push(status_id, "{}: {:s}".format(_("Loaded ical file"), fp)) + self.status.push(status_id, "{} {:s}: {}@{}".format(_("Loaded event from ical file"), fp, uid, domain)) class Ungana(Adw.Application): @@ -77,6 +91,7 @@ class Ungana(Adw.Application): self.win.load(self.file) self.win.present() + #gettext.install(gettext.translation("ungana", localedir="locale", languages=['es'])) gettext.bindtextdomain("messages", "locales") gettext.textdomain("messages") diff --git a/locales/es/LC_MESSAGES/messages.po b/locales/es/LC_MESSAGES/messages.po @@ -1,18 +1,22 @@ +# Spanish translations for PACKAGE package. +# Copyright (C) 2025 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Automatically generated, 2025. +# msgid "" msgstr "" -"Project-Id-Version: \n" -"POT-Creation-Date: \n" -"PO-Revision-Date: \n" -"Last-Translator: \n" -"Language-Team: \n" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-08-31 05:26+0100\n" +"PO-Revision-Date: 2025-08-31 05:26+0100\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" "Language: es\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=ASCII\n" "Content-Transfer-Encoding: 8bit\n" -"\"\"Project-Id-Version: Ungana 2.1\n" -"\"\"Report-Msgid-Bugs-To: ungana@defalsify.org\n" -"\"\"POT-Creation-Date: 2025-08-31 03:58+0000\n" -"X-Generator: Poedit 3.6\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" -msgid "Loaded ical file" -msgstr "Archivo ical cargado" +#: gui/base.py:78 +msgid "Loaded event from ical file" +msgstr "Evento cargado desde el archivo" diff --git a/locales/ungana.pot b/locales/ungana.pot @@ -1,16 +1,22 @@ -# Copyright (C) 2025 -# This file is distributed under the same license as the ungana package. -# Louis Holbrook <dev@holbrook.no>, 2025 +# 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. # +#, fuzzy msgid "" msgstr "" -"Project-Id-Version: 0.2\n" -"Report-Msgid-Bugs-To: ungana@defalsify.org\n" -"POT-Creation-Date: 2025-08-31 05:12+0100\n" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-08-31 05:26+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#: gui/base.py:64 -msgid "Loaded ical file" +#: gui/base.py:78 +msgid "Loaded event from ical file" msgstr ""