diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..9af2b10 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,5 @@ +## Description + +Describe your changes here, and link to related issues if available. + +Reminder to run `python validate_po.py --extract` if you have added new translatable strings. diff --git a/README.md b/README.md index 68603b6..7910909 100644 --- a/README.md +++ b/README.md @@ -79,13 +79,15 @@ sudo apt-get install safeeyes ``` ### Fedora - + If you want to use Smart Pause plugin, install the latest xprintidle from: [alonid/xprintidle](https://copr.fedorainfracloud.org/coprs/alonid/xprintidle/) ```bash sudo dnf install python3-psutil python3-packaging cairo-devel python3-devel gobject-introspection-devel cairo-gobject-devel sudo pip3 install safeeyes sudo gtk-update-icon-cache /usr/share/icons/hicolor ``` +We are looking for an official package maintainer for Fedora. Please [contact us](https://github.com/slgobinath/SafeEyes/issues/611) if you are interested. + ### OpenSUSE Tumbleweed ```bash @@ -184,6 +186,14 @@ For more details, please check the issue: [#329](https://github.com/slgobinath/S Thirdparty plugins are available at another GitHub repository: [safeeyes-plugins](https://github.com/slgobinath/safeeyes-plugins). More details about how to write your own plugin and how to install third-party plugin are available there. +## Local development + +When adding new translatable strings in the source code, make sure to run `python validate_po.py --extract` to add them to the translation template. You will need to install `python3-polib` for this. + +Examples for translatable strings are `_("This is a string")` in Python code, or `This is a label` in Glade/xml files. + +To ensure the new strings are well-formed, you can use `python validate_po.py --validate`. + ## How to Release? 0. Run `update-po.sh` to generate new translation files (which will be eventually updated by translators). Commit and push the changes to the master branch. diff --git a/safeeyes/config/locale/en_US/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/en_US/LC_MESSAGES/safeeyes.po index a8a640f..dca1017 100644 --- a/safeeyes/config/locale/en_US/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/en_US/LC_MESSAGES/safeeyes.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: 2017-09-17 07:59-0400\n" -"PO-Revision-Date: 2021-07-04 07:32+0000\n" -"Last-Translator: J. Lavoie \n" +"PO-Revision-Date: 2024-08-07 15:09+0000\n" +"Last-Translator: Archisman Panigrahi \n" "Language-Team: English (United States) \n" "Language: en_US\n" @@ -15,12 +15,12 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.8-dev\n" +"X-Generator: Weblate 5.7-dev\n" "Generated-By: pygettext.py 1.5\n" # Short break msgid "Gently close your eyes" -msgstr "" +msgstr "Gently close your eyes" # Short break msgid "Roll your eyes a few times to each side" diff --git a/safeeyes/config/locale/es/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/es/LC_MESSAGES/safeeyes.po index 4f49a39..ab9a480 100644 --- a/safeeyes/config/locale/es/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/es/LC_MESSAGES/safeeyes.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" -"PO-Revision-Date: 2024-07-26 20:27+0000\n" +"PO-Revision-Date: 2024-08-05 23:09+0000\n" "Last-Translator: gallegonovato \n" "Language-Team: Spanish \n" @@ -593,7 +593,7 @@ msgid "Disable permanently" msgstr "Desactivar permanentemente" msgid "License:" -msgstr "" +msgstr "Licencia:" # Short break #~ msgid "Tightly close your eyes" diff --git a/safeeyes/safeeyes.py b/safeeyes/safeeyes.py index cf97188..3188ec0 100644 --- a/safeeyes/safeeyes.py +++ b/safeeyes/safeeyes.py @@ -52,7 +52,7 @@ class SafeEyes(Gtk.Application): def __init__(self, system_locale, config, cli_args): super().__init__( application_id="io.github.slgobinath.SafeEyes", - flags=Gio.ApplicationFlags.DEFAULT_FLAGS + flags=Gio.ApplicationFlags.FLAGS_NONE ## This is necessary for compatibility with Ubuntu 22.04. ) self.active = False self.break_screen = None