Mercurial > hg
annotate mercurial/i18n.py @ 5023:7f5c3fb0a37d
localrepo.commit: only munge comment text if committing via dirstate
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Thu, 26 Jul 2007 14:47:31 -0700 |
parents | 660504812daf |
children | 85ae7aaf08e9 |
rev | line source |
---|---|
1400
cf9a1233738a
i18n first part: make '_' available for files who need it
Benoit Boissinot <benoit.boissinot@ens-lyon.org
parents:
diff
changeset
|
1 """ |
cf9a1233738a
i18n first part: make '_' available for files who need it
Benoit Boissinot <benoit.boissinot@ens-lyon.org
parents:
diff
changeset
|
2 i18n.py - internationalization support for mercurial |
cf9a1233738a
i18n first part: make '_' available for files who need it
Benoit Boissinot <benoit.boissinot@ens-lyon.org
parents:
diff
changeset
|
3 |
2859 | 4 Copyright 2005, 2006 Matt Mackall <mpm@selenic.com> |
1400
cf9a1233738a
i18n first part: make '_' available for files who need it
Benoit Boissinot <benoit.boissinot@ens-lyon.org
parents:
diff
changeset
|
5 |
cf9a1233738a
i18n first part: make '_' available for files who need it
Benoit Boissinot <benoit.boissinot@ens-lyon.org
parents:
diff
changeset
|
6 This software may be used and distributed according to the terms |
cf9a1233738a
i18n first part: make '_' available for files who need it
Benoit Boissinot <benoit.boissinot@ens-lyon.org
parents:
diff
changeset
|
7 of the GNU General Public License, incorporated herein by reference. |
cf9a1233738a
i18n first part: make '_' available for files who need it
Benoit Boissinot <benoit.boissinot@ens-lyon.org
parents:
diff
changeset
|
8 """ |
cf9a1233738a
i18n first part: make '_' available for files who need it
Benoit Boissinot <benoit.boissinot@ens-lyon.org
parents:
diff
changeset
|
9 |
3888
660504812daf
Enable gettext translations
Matt Mackall <mpm@selenic.com>
parents:
2859
diff
changeset
|
10 import gettext |
660504812daf
Enable gettext translations
Matt Mackall <mpm@selenic.com>
parents:
2859
diff
changeset
|
11 t = gettext.translation('hg', fallback=1) |
660504812daf
Enable gettext translations
Matt Mackall <mpm@selenic.com>
parents:
2859
diff
changeset
|
12 gettext = t.gettext |
660504812daf
Enable gettext translations
Matt Mackall <mpm@selenic.com>
parents:
2859
diff
changeset
|
13 _ = gettext |