Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
archisman-panigrahi committed Aug 10, 2024
2 parents e50a4b5 + b35c792 commit 5280755
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -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.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 `<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?

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.
Expand Down
8 changes: 4 additions & 4 deletions safeeyes/config/locale/en_US/LC_MESSAGES/safeeyes.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ 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 <[email protected]>\n"
"PO-Revision-Date: 2024-08-07 15:09+0000\n"
"Last-Translator: Archisman Panigrahi <[email protected]>\n"
"Language-Team: English (United States) <https://hosted.weblate.org/projects/"
"safe-eyes/translations/en_US/>\n"
"Language: en_US\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: 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"
Expand Down
4 changes: 2 additions & 2 deletions safeeyes/config/locale/es/LC_MESSAGES/safeeyes.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: Spanish <https://hosted.weblate.org/projects/safe-eyes/"
"translations/es/>\n"
Expand Down Expand Up @@ -593,7 +593,7 @@ msgid "Disable permanently"
msgstr "Desactivar permanentemente"

msgid "License:"
msgstr ""
msgstr "Licencia:"

# Short break
#~ msgid "Tightly close your eyes"
Expand Down
2 changes: 1 addition & 1 deletion safeeyes/safeeyes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5280755

Please sign in to comment.