closes #1777404: improve VersionedFile dc_long_title msgid

authorFlorent Cayré <florent.cayre@gmail.com>
changeset831a676d1336
branchstable
phasepublic
hiddenno
parent revision#ea5cebcb5cf1 Added tag cubicweb-vcsfile-debian-version-1.8.6-1 for changeset 612d779e38ff
child revision#059bc3a9d30f closes #1958220: we have to watch ourselves for repo shutdown
files modified by this revision
entities.py
i18n/en.po
i18n/fr.po
# HG changeset patch
# User Florent Cayré <florent.cayre@gmail.com>
# Date 1308910464 -7200
# Fri Jun 24 12:14:24 2011 +0200
# Branch stable
# Node ID 831a676d13365c3f8d234bcfb0278db6f0ad17df
# Parent ea5cebcb5cf1080307dfa7831c1a230d96bb79c6
closes #1777404: improve VersionedFile dc_long_title msgid

diff --git a/entities.py b/entities.py
@@ -233,11 +233,11 @@
1              return u'%s (%s)' % (self.path, self._cw._('DELETED'))
2          return self.path
3 
4      def dc_long_title(self):
5          try:
6 -            return self._cw._('%(path)s (from repository %(repotype)s:%(repo)s)') % {
7 +            return self._cw._('%(path)s (from %(repotype)s repository: %(repo)s)') % {
8                  'path': self.dc_title(), 'repo': self.repository.dc_title(),
9                  'repotype': self.repository.type}
10          except Unauthorized:
11              return self._cw._('%(path)s (from private repository)') % {
12                  'path': self.dc_title(),}
diff --git a/i18n/en.po b/i18n/en.po
@@ -23,11 +23,11 @@
13  #, python-format
14  msgid "%(path)s (from private repository)"
15  msgstr ""
16 
17  #, python-format
18 -msgid "%(path)s (from repository %(repotype)s:%(repo)s)"
19 +msgid "%(path)s (from %(repotype)s repository: %(repo)s)"
20  msgstr ""
21 
22  #, python-format
23  msgid "%(repopath)s is not a valid %(repotype)s repository"
24  msgstr ""
diff --git a/i18n/fr.po b/i18n/fr.po
@@ -23,12 +23,12 @@
25  #, python-format
26  msgid "%(path)s (from private repository)"
27  msgstr "%(path)s (d'un entrepôt privé)"
28 
29  #, python-format
30 -msgid "%(path)s (from repository %(repotype)s:%(repo)s)"
31 -msgstr "%(path)s (de l'entrepôt %(repotype)s:%(repo)s)"
32 +msgid "%(path)s (from %(repotype)s repository: %(repo)s)"
33 +msgstr "%(path)s (de l'entrepôt %(repotype)s : %(repo)s)"
34 
35  #, python-format
36  msgid "%(repopath)s is not a valid %(repotype)s repository"
37  msgstr "%(repopath)s n'est pas un entrepôt %(repotype)s valide"
38