[zypp-commit] r10287 - /trunk/zypper/src/zypper-misc.cc
Author: jkupec
Date: Fri May 30 18:17:42 2008
New Revision: 10287
URL: http://svn.opensuse.org/viewcvs/zypp?rev=10287&view=rev
Log:
- some license display corrections
Modified:
trunk/zypper/src/zypper-misc.cc
Modified: trunk/zypper/src/zypper-misc.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-misc.cc?rev=10287&r1=10286&r2=10287&view=diff
==============================================================================
--- trunk/zypper/src/zypper-misc.cc (original)
+++ trunk/zypper/src/zypper-misc.cc Fri May 30 18:17:42 2008
@@ -136,27 +136,26 @@
return true;
}
-string helpPagerExit(const string &pager)
+string pager_help_exit(const string &pager)
{
string endfour = pager.substr(pager.size()-4,4);
if (endfour == "less")
{
- return _("Press 'q' to exit.");
+ return str::form(_("Press '%c' to exit the pager."), 'q');
}
return string();
}
-string helpPagerNavigation(const string &pager)
+string pager_help_navigation(const string &pager)
{
string endfour = pager.substr(pager.size()-4,4);
if (endfour == "less")
{
- return _("Use arrows to scroll by line or pgnUp/Down to scroll by screens."
- " Also Home/End work.");
+ return _("Use arrows or pgUp/pgDown keys to scroll the text by lines or pages.");
}
else if (endfour == "more")
{
- return _("Use Enter to go to next line and space for scroll whole screen.");
+ return _("Use the Enter or Space key to scroll the text by lines or pages.");
}
return string();
}
@@ -171,30 +170,35 @@
filesystem::TmpFile tfile;
string tpath = tfile.path().absolutename().c_str();
ofstream os(tpath.c_str());
- string help = helpPagerNavigation(pager);
+
+ string help = pager_help_navigation(pager);
if (!help.empty())
- os << help << endl << endl;
+ os << "(" << help << ")" << endl << endl;
os << text;
- help = helpPagerExit(pager);
+
+ help = pager_help_exit(pager);
if (!help.empty())
- os << endl << endl << help;
+ os << endl << endl << "(" << help << ")";
os.close();
+
ostringstream cmdline;
cmdline << pager <<" "<
participants (1)
-
jkupec@svn.opensuse.org