# HG changeset patch # User Sean Farley # Date 1420066219 21600 # Node ID 9f81f9e5b47a569b5de2e26b09834970fca7dcfb # Parent 50f0096a73462b43206e6aef38efb1142147ebad tests: add a i18n translation test for log output Upcoming patches will change the way that log output is generated so we add a test to ensure that the words 'branches', 'bookmarks', and 'tags' are still translated. diff -r 50f0096a7346 -r 9f81f9e5b47a tests/test-log.t --- a/tests/test-log.t Fri Jan 09 11:21:29 2015 -0800 +++ b/tests/test-log.t Wed Dec 31 16:50:19 2014 -0600 @@ -1031,7 +1031,25 @@ date: Thu Jan 01 00:00:00 1970 +0000 summary: commit on default +#if gettext +Test that all log names are translated (e.g. branches, bookmarks, tags): + + $ hg bookmark babar -r tip + + $ HGENCODING=UTF-8 LANGUAGE=de hg log -r tip + \xc3\x84nderung: 3:f5d8de11c2e2 (esc) + Zweig: test + Lesezeichen: babar + Marke: tip + Vorg\xc3\xa4nger: 1:d32277701ccb (esc) + Nutzer: test + Datum: Thu Jan 01 00:00:00 1970 +0000 + Zusammenfassung: commit on test + + $ hg bookmark -d babar + +#endif log -p --cwd dir (in subdir)