3199: Localisation in web page report - Problem with words Name and Home, too many meanings

svn: r13331
This commit is contained in:
Jérôme Rapinat 2009-10-07 13:00:27 +00:00
parent a3d6864f0a
commit b2d2820939

View File

@ -1030,7 +1030,7 @@ class BasePage(object):
inc_repos = False inc_repos = False
navs = [ navs = [
(self.report.index_fname, _('Home'), self.report.use_home), (self.report.index_fname, _('html|Home'), self.report.use_home),
(self.report.intro_fname, _('Introduction'), self.report.use_intro), (self.report.intro_fname, _('Introduction'), self.report.use_intro),
(self.report.surname_fname, _('Surnames'), True), (self.report.surname_fname, _('Surnames'), True),
('individuals', _('Individuals'), True), ('individuals', _('Individuals'), True),
@ -1867,7 +1867,7 @@ class PlaceListPage(BasePage):
trow = Html("tr") + ( trow = Html("tr") + (
Html("th", _('Letter'), class_ = "ColumnLetter", inline = True), Html("th", _('Letter'), class_ = "ColumnLetter", inline = True),
Html("th", _('Name'), class_ = "ColumnName", inline = True) Html("th", _('Place name|Name'), class_ = "ColumnName", inline = True)
) )
thead += trow thead += trow
@ -2783,7 +2783,7 @@ class HomePage(BasePage):
db = report.database db = report.database
of = self.report.create_file("index") of = self.report.create_file("index")
homepage, body = self.write_header(_('Home')) homepage, body = self.write_header(_('html|Home'))
# begin home division # begin home division
with Html("div", class_ = "content", id="Home") as section: with Html("div", class_ = "content", id="Home") as section:
@ -2850,7 +2850,7 @@ class SourceListPage(BasePage):
for (label, colclass) in [ for (label, colclass) in [
(None, 'RowLabel'), (None, 'RowLabel'),
(_('Name'), 'Name') ]: (_('Source Name|Name'), 'Name') ]:
label = label or " " label = label or " "
trow += Html("th", label, class_ = "Column%s" % colclass, trow += Html("th", label, class_ = "Column%s" % colclass,
@ -2980,7 +2980,7 @@ class MediaListPage(BasePage):
trow = Html("tr") + ( trow = Html("tr") + (
Html("th", " ", class_ = "ColumnRowLabel", inline = True), Html("th", " ", class_ = "ColumnRowLabel", inline = True),
Html("th", _('Name'), class_ = "ColumnName", inline = True), Html("th", _('Media|Name'), class_ = "ColumnName", inline = True),
Html("th", DHEAD, class_ = "ColumnDate", inline = True) Html("th", DHEAD, class_ = "ColumnDate", inline = True)
) )
thead += trow thead += trow
@ -4394,7 +4394,7 @@ class RepositoryListPage(BasePage):
trow = Html("tr") + ( trow = Html("tr") + (
Html("th", _("Number"), class_ = "ColumnRowLabel", inline = True), Html("th", _("Number"), class_ = "ColumnRowLabel", inline = True),
Html("th", THEAD, class_ = "ColumnType", inline = True), Html("th", THEAD, class_ = "ColumnType", inline = True),
Html("th", _('Name'), class_ = "ColumnName", inline = True) Html("th", _('Repository|Name'), class_ = "ColumnName", inline = True)
) )
thead += trow thead += trow