[PATCH 5 of 5 STABLE] i18n: change output of largefiles for summary to distinguish from one for outgoing

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Tue Oct 30 14:08:14 CDT 2012


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1351623568 -32400
# Branch stable
# Node ID da6a74037b439db5d57fc8e04d8bc09004ee3ce7
# Parent  36db8f78d22e19c248d86a1be47521bdc99f508d
i18n: change output of largefiles for summary to distinguish from one for outgoing

Before this patch, largefiles extension uses "largefiles: No remote
repo" message not only for "outgoing" as status report, but also for
"summary" as summarized information.

This sharing prevents message translators from inserting white spaces
between "largefiles:" and "No remote repo" in translated message to
align column position of summarized information.

This patch changes output of largefiles for summary to distinguish
from one for outgoing.

This patch puts "no remote repo" into parentheses, because this is not
summarized information.

diff -r 36db8f78d22e -r da6a74037b43 hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py	Wed Oct 31 03:59:28 2012 +0900
+++ b/hgext/largefiles/overrides.py	Wed Oct 31 03:59:28 2012 +0900
@@ -1023,7 +1023,7 @@
         toupload = getoutgoinglfiles(ui, repo, None, **opts)
         if toupload is None:
             # i18n: column positioning for "hg summary"
-            ui.status(_('largefiles: No remote repo\n'))
+            ui.status(_('largefiles: (no remote repo)\n'))
         elif not toupload:
             # i18n: column positioning for "hg summary"
             ui.status(_('largefiles: (no files to upload)\n'))
diff -r 36db8f78d22e -r da6a74037b43 tests/test-largefiles.t
--- a/tests/test-largefiles.t	Wed Oct 31 03:59:28 2012 +0900
+++ b/tests/test-largefiles.t	Wed Oct 31 03:59:28 2012 +0900
@@ -51,7 +51,7 @@
   branch: default
   commit: (clean)
   update: (current)
-  largefiles: No remote repo
+  largefiles: (no remote repo)
 
 Commit preserved largefile contents.
 
@@ -1683,7 +1683,7 @@
   branch: default
   commit: (clean)
   update: (current)
-  largefiles: No remote repo
+  largefiles: (no remote repo)
 
 check messages when there is no files to upload:
 


More information about the Mercurial-devel mailing list