changeset 10499:4401b0dfee88 stable

keyword: mark improved demo commit message for translation s/config/configuration/ Inside the quoted command put the message in single quotes in case the translation contains apostrophes.
author Christian Ebert <blacktrash@gmx.net>
date Thu, 18 Feb 2010 05:55:05 +0100
parents dc9a803c1800
children e96597c8d0ea
files hgext/keyword.py tests/test-keyword.out
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/keyword.py	Wed Feb 17 14:35:11 2010 -0800
+++ b/hgext/keyword.py	Thu Feb 18 05:55:05 2010 +0100
@@ -294,7 +294,6 @@
         for k, v in sorted(items):
             ui.write('%s = %s\n' % (k, v))
 
-    msg = 'hg keyword config and expansion example'
     fn = 'demo.txt'
     branchname = 'demobranch'
     tmpdir = tempfile.mkdtemp('', 'kwdemo.')
@@ -355,7 +354,8 @@
         if name.split('.', 1)[0].find('commit') > -1:
             repo.ui.setconfig('hooks', name, '')
     ui.note(_('unhooked all commit hooks\n'))
-    ui.note('hg -R "%s" ci -m "%s"\n' % (tmpdir, msg))
+    msg = _('hg keyword configuration and expansion example')
+    ui.note("hg -R '%s' ci -m '%s'\n" % (tmpdir, msg))
     repo.commit(text=msg)
     ui.status(_('\n\tkeywords expanded\n'))
     ui.write(repo.wread(fn))
--- a/tests/test-keyword.out	Wed Feb 17 14:35:11 2010 -0800
+++ b/tests/test-keyword.out	Thu Feb 18 05:55:05 2010 +0100
@@ -213,7 +213,7 @@
 demo.txt = 
 [keywordmaps]
 Xinfo = {author}: {desc}
-$Xinfo: test: hg keyword config and expansion example $
+$Xinfo: test: hg keyword configuration and expansion example $
 % cat
 expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $
 do not process $Id: