Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferyto committed Oct 13, 2017
2 parents 988e2de + 4783c49 commit d90e354
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog

## 0.1.1 (2017-10-13)
* Added .pot file

## 0.1.0 (2017-10-13)
* Initial release
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Reopen closed windows and optionally restore windows between sessions
<https://github.com/jefferyto/gedit-ex-mortis>
0.1.0
0.1.1

All bug reports, feature requests and miscellaneous comments are welcome
at the [project issue tracker][].
Expand Down
2 changes: 1 addition & 1 deletion ex-mortis.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Icon=window-new
Authors=Jeffery To <[email protected]>
Copyright=Copyright © 2017 Jeffery To
Website=https://github.com/jefferyto/gedit-ex-mortis
Version=0.1.0
Version=0.1.1
3 changes: 2 additions & 1 deletion ex-mortis/existingmixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ def create_existing_info_bar(self):
primary_label.set_can_focus(True)
primary_label.set_selectable(True)

secondary_text_pref = _("Restore windows between sessions")
secondary_text_menu = _("Application menu") if is_app_menu else _("File menu")
secondary_text = _("To restore this window, enable \"Restore windows between sessions\" in Ex-Mortis' preferences, and quit gedit by selecting Quit in the {menu_name} or in this message.").format(menu_name=secondary_text_menu)
secondary_text = _("To restore this window, enable \"{pref_name}\" in Ex-Mortis' preferences, and quit gedit by selecting Quit in the {menu_name} or in this message.").format(pref_name=secondary_text_pref, menu_name=secondary_text_menu)
secondary_markup = "<small>{}</small>".format(secondary_text)

secondary_label = Gtk.Label.new(secondary_markup)
Expand Down
54 changes: 54 additions & 0 deletions ex-mortis/locale/gedit-ex-mortis.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: gedit-ex-mortis 0.1.1\n"
"POT-Creation-Date: 2017-10-13 22:50+0800\n"
"PO-Revision-Date: 2017-10-13 22:50+0800\n"
"Last-Translator: Jeffery To <[email protected]>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.0.1\n"
"X-Poedit-KeywordsList: _;gettext;gettext_noop\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SearchPathExcluded-0: schemas\n"
"X-Poedit-SearchPathExcluded-1: utils\n"

#: __init__.py:107
msgid "Reopen Closed _Window"
msgstr ""

#: __init__.py:445 existingmixin.py:88
msgid "Restore windows between sessions"
msgstr ""

#: __init__.py:458
msgid "Could not load settings schema"
msgstr ""

#: existingmixin.py:68
msgid "_Quit"
msgstr ""

#: existingmixin.py:69
msgid "_Ignore"
msgstr ""

#: existingmixin.py:78
msgid "This window cannot be reopened if closed. Restart gedit to fully enable Ex-Mortis."
msgstr ""

#: existingmixin.py:89
msgid "Application menu"
msgstr ""

#: existingmixin.py:89
msgid "File menu"
msgstr ""

#: existingmixin.py:90
#, python-brace-format
msgid "To restore this window, enable \"{pref_name}\" in Ex-Mortis' preferences, and quit gedit by selecting Quit in the {menu_name} or in this message."
msgstr ""

0 comments on commit d90e354

Please sign in to comment.