Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 306825 Details for
Bug 409835
localization hooks for the 'time to run etc-update' warning
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Partially localize _ebuild.actions
cruft.patch (text/plain), 2.20 KB, created by
Greg Turner
on 2012-03-27 08:51:49 UTC
(
hide
)
Description:
Partially localize _ebuild.actions
Filename:
MIME Type:
Creator:
Greg Turner
Created:
2012-03-27 08:51:49 UTC
Size:
2.20 KB
patch
obsolete
>diff -u -rN -x autom4te.cache -x config.log -x config.status -x tags -x prefix-portage-2.2.01.20271.orig -x '*.swp' -x .gitignore prefix-portage-2.2.01.20271.orig/pym/_emerge/actions.py prefix-portage-2.2.01.20271/pym/_emerge/actions.py >--- prefix-portage-2.2.01.20271.orig/pym/_emerge/actions.py 2012-03-27 00:31:44.505753600 -0700 >+++ prefix-portage-2.2.01.20271/pym/_emerge/actions.py 2012-03-27 00:31:42.092753600 -0700 >@@ -25,6 +25,7 @@ > 'portage.news:count_unread_news,display_news_notifications', > ) > >+from portage.localization import _ > from portage import os > from portage import shutil > from portage import subprocess_getstatusoutput >@@ -3051,26 +3056,27 @@ > portage.util.find_updated_config_files(target_root, config_protect)) > > for x in result: >- writemsg_level("\n %s " % (colorize("WARN", "* IMPORTANT:"),), >+ writemsg_level("\n %s " % (colorize("WARN", "* " + _("IMPORTANT:"))), > level=logging.INFO, noiselevel=-1) > if not x[1]: # it's a protected file >- writemsg_level("config file '%s' needs updating.\n" % x[0], >+ writemsg_level( _("config file '%s' needs updating.\n") % x[0], > level=logging.INFO, noiselevel=-1) > else: # it's a protected dir > if len(x[1]) == 1: > head, tail = os.path.split(x[1][0]) > tail = tail[len("._cfg0000_"):] > fpath = os.path.join(head, tail) >- writemsg_level("config file '%s' needs updating.\n" % fpath, >+ writemsg_level(_("config file '%s' needs updating.\n") % fpath, > level=logging.INFO, noiselevel=-1) > else: >- writemsg_level("%d config files in '%s' need updating.\n" % \ >+ writemsg_level( _("%d config files in '%s' need updating.\n") % \ > (len(x[1]), x[0]), level=logging.INFO, noiselevel=-1) > > if result: >- print(" "+yellow("*")+" See the "+colorize("INFORM","CONFIGURATION FILES")\ >- + " section of the " + bold("emerge")) >- print(" "+yellow("*")+" man page to learn how to update config files.") >+ print(" "+yellow("*")+ " See the "+colorize("INFORM", _("CONFIGURATION FILES"))\ >+ + " " + _("section of the") + " " + bold("emerge")) >+ print(" "+yellow("*")+ " " + _("man page to learn how to update config files.")) >+ > > def display_news_notification(root_config, myopts): > if "news" not in root_config.settings.features:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 409835
: 306825