This commit is contained in:
Archisman Panigrahi 2024-08-10 15:18:54 -04:00
commit 5280755568
5 changed files with 23 additions and 8 deletions

5
.github/pull_request_template.md vendored Normal file
View File

@ -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.

View File

@ -79,13 +79,15 @@ sudo apt-get install safeeyes
``` ```
### Fedora ### Fedora
If you want to use Smart Pause plugin, install the latest xprintidle from: [alonid/xprintidle](https://copr.fedorainfracloud.org/coprs/alonid/xprintidle/)
```bash ```bash
sudo dnf install python3-psutil python3-packaging cairo-devel python3-devel gobject-introspection-devel cairo-gobject-devel sudo dnf install python3-psutil python3-packaging cairo-devel python3-devel gobject-introspection-devel cairo-gobject-devel
sudo pip3 install safeeyes sudo pip3 install safeeyes
sudo gtk-update-icon-cache /usr/share/icons/hicolor 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 ### OpenSUSE Tumbleweed
```bash ```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. 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 `<property name="label" translatable="yes">This is a label</property>` in Glade/xml files.
To ensure the new strings are well-formed, you can use `python validate_po.py --validate`.
## How to Release? ## 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. 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.

View File

@ -6,8 +6,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"POT-Creation-Date: 2017-09-17 07:59-0400\n" "POT-Creation-Date: 2017-09-17 07:59-0400\n"
"PO-Revision-Date: 2021-07-04 07:32+0000\n" "PO-Revision-Date: 2024-08-07 15:09+0000\n"
"Last-Translator: J. Lavoie <j.lavoie@net-c.ca>\n" "Last-Translator: Archisman Panigrahi <apandada1@gmail.com>\n"
"Language-Team: English (United States) <https://hosted.weblate.org/projects/" "Language-Team: English (United States) <https://hosted.weblate.org/projects/"
"safe-eyes/translations/en_US/>\n" "safe-eyes/translations/en_US/>\n"
"Language: en_US\n" "Language: en_US\n"
@ -15,12 +15,12 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\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" "Generated-By: pygettext.py 1.5\n"
# Short break # Short break
msgid "Gently close your eyes" msgid "Gently close your eyes"
msgstr "" msgstr "Gently close your eyes"
# Short break # Short break
msgid "Roll your eyes a few times to each side" msgid "Roll your eyes a few times to each side"

View File

@ -6,7 +6,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"POT-Creation-Date: \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 <fran-carro@hotmail.es>\n" "Last-Translator: gallegonovato <fran-carro@hotmail.es>\n"
"Language-Team: Spanish <https://hosted.weblate.org/projects/safe-eyes/" "Language-Team: Spanish <https://hosted.weblate.org/projects/safe-eyes/"
"translations/es/>\n" "translations/es/>\n"
@ -593,7 +593,7 @@ msgid "Disable permanently"
msgstr "Desactivar permanentemente" msgstr "Desactivar permanentemente"
msgid "License:" msgid "License:"
msgstr "" msgstr "Licencia:"
# Short break # Short break
#~ msgid "Tightly close your eyes" #~ msgid "Tightly close your eyes"

View File

@ -52,7 +52,7 @@ class SafeEyes(Gtk.Application):
def __init__(self, system_locale, config, cli_args): def __init__(self, system_locale, config, cli_args):
super().__init__( super().__init__(
application_id="io.github.slgobinath.SafeEyes", 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.active = False
self.break_screen = None self.break_screen = None