# HG changeset patch # User Sean Farley # Date 2014-12-31 22:50:19 # 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 --git a/tests/test-log.t b/tests/test-log.t --- a/tests/test-log.t +++ b/tests/test-log.t @@ -1031,7 +1031,25 @@ log -b 2 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)