Skip to content

Commit

Permalink
Exclude icon names from blueman.pot
Browse files Browse the repository at this point in the history
This results in consistent results for pre and post 0.20.2 gettext versions.
  • Loading branch information
cschramm committed Nov 8, 2020
1 parent 3e9d76c commit 5b0b6d6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
4 changes: 3 additions & 1 deletion po/Makevars
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ subdir = po
top_builddir = ..

# These options get passed to xgettext.
XGETTEXT_OPTIONS = --from-code=UTF-8 --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=g_dngettext:2,3 --add-comments
XGETTEXT_OPTIONS = --from-code=UTF-8 --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=g_dngettext:2,3 --add-comments --exclude-file=po/blueman.excluded.pot

DISTFILES += blueman.excluded.pot

# This is the copyright holder that gets inserted into the header of the
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
Expand Down
5 changes: 5 additions & 0 deletions po/blueman.excluded.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
msgid "blueman-device"
msgstr ""

msgid "blueman"
msgstr ""
11 changes: 8 additions & 3 deletions po/blueman.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: blueman 2.2\n"
"Report-Msgid-Bugs-To: https://github.com/blueman-project/blueman/issues\n"
"POT-Creation-Date: 2020-11-06 14:13+0100\n"
"POT-Creation-Date: 2020-11-08 22:08+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -1983,14 +1983,19 @@ msgstr ""
msgid "Unspecified"
msgstr ""

#: blueman/plugins/applet/AutoConnect.py:20
msgid ""
"Tries to auto-connect to configurable services on start and every 60 seconds."
msgstr ""

#. https://github.com/python/mypy/issues/2608
#: blueman/plugins/applet/AutoConnect.py:42
#: blueman/plugins/applet/AutoConnect.py:46
#: blueman/plugins/applet/RecentConns.py:219
#: blueman/plugins/applet/PPPSupport.py:75
msgid "Connected"
msgstr ""

#: blueman/plugins/applet/AutoConnect.py:42
#: blueman/plugins/applet/AutoConnect.py:46
#, python-format
msgid "Automatically connected to %(service)s on %(device)s"
msgstr ""
Expand Down

0 comments on commit 5b0b6d6

Please sign in to comment.