[PATCH 2/5] Add comments for translators to TUI input strings (#854226)
David Shea
dshea at redhat.com
Fri Sep 13 19:23:42 UTC 2013
We'll have to watch for other single character inputs that might
abbreviate a different word, but for now trying to get gettext context
support into anaconda would be overkill.
---
pyanaconda/ui/tui/hubs/__init__.py | 1 +
pyanaconda/ui/tui/simpleline/base.py | 3 +++
2 files changed, 4 insertions(+)
diff --git a/pyanaconda/ui/tui/hubs/__init__.py b/pyanaconda/ui/tui/hubs/__init__.py
index 14e6957..5476806 100644
--- a/pyanaconda/ui/tui/hubs/__init__.py
+++ b/pyanaconda/ui/tui/hubs/__init__.py
@@ -105,6 +105,7 @@ class TUIHub(TUIObject, common.Hub):
except (ValueError, KeyError):
# If we get a continue, check for unfinished spokes. If unfinished
# don't continue
+ # TRANSLATORS: 'c' to continue
if key == _('c'):
for spoke in self._spokes.values():
if not spoke.completed and spoke.mandatory:
diff --git a/pyanaconda/ui/tui/simpleline/base.py b/pyanaconda/ui/tui/simpleline/base.py
index 8b6d200..ab4f52f 100644
--- a/pyanaconda/ui/tui/simpleline/base.py
+++ b/pyanaconda/ui/tui/simpleline/base.py
@@ -449,16 +449,19 @@ class App(object):
return False
# global refresh command
+ # TRANSLATORS: 'r' to refresh
if self._screens and (key == _('r')):
self._do_redraw()
return True
# global close command
+ # TRANSLATORS: 'c' to continue
if self._screens and (key == _('c')):
self.close_screen()
return True
# global quit command
+ # TRANSLATORS: 'q' to quit
elif self._screens and (key == _('q')):
if self.quit_question:
d = self.quit_question(self, _(self.quit_message))
--
1.8.3.1
More information about the anaconda-patches
mailing list