While I'm on it, also remove some Debian hardcoding where possible.
license = {
url => homepage _ 'license'
}
+ trademark = {
+ name => copyright.name,
+ url => homepage _ 'trademark'
+ }
contact = {
- name => 'Debian Web Mailinglist',
+ name => g('Debian Web Mailinglist'),
mail => 'debian-www@lists.debian.org',
url => homepage _ 'contact',
}
admin = {
- name => 'Debian Webmaster',
+ name => g('%s Webmaster', organisation),
mail => 'webmaster@debian.org',
}
- trademarknotes = organisation _ ' is a trademark of ' _ copyright.name
+ trademarknotes = g('%s is a <a href="%s">trademark</a> of %s', organisation, trademark.url, trademark.name)
-%]
[%-
# possible values for importance: high, normal, low
sitewidemsg = { importance => "high",
- txt => "Please note that this is an experimental version of <a href=\"http://packages.debian.org/\">packages.debian.org</a>. Errors and obsolete information should be expected" }
+ txt => g('Please note that this is an experimental version of <a href="http://packages.debian.org/">packages.debian.org</a>. Errors and obsolete information should be expected') }
-%]
[%
# list of architectures
architectures = {
- i386 => 'Intel x86',
- m68k => 'Motorola 680x0',
- sparc => 'SPARC',
- alpha => 'Alpha',
- powerpc => 'PowerPC',
- arm => 'ARM',
- hppa => 'HP PA-RISC',
- ia64 => 'Intel IA-64',
- mips => 'MIPS (big-endian)',
- mipsel => 'MIPS (little-endian)',
- s390 => 'IBM S/390',
- "hurd-i386" => 'Hurd (i386)',
- amd64 => 'AMD64',
- armel => 'EABI ARM',
- "kfreebsd-i386" => 'GNU/kFreeBSD (i386)',
- "kfreebsd-amd64" => 'GNU/kFreeBSD (amd64)'
+ i386 => g('Intel x86'),
+ m68k => g('Motorola 680x0'),
+ sparc => g('SPARC'),
+ alpha => g('Alpha'),
+ powerpc => g('PowerPC'),
+ arm => g('ARM'),
+ hppa => g('HP PA-RISC'),
+ ia64 => g('Intel IA-64'),
+ mips => g('MIPS (big-endian)'),
+ mipsel => g('MIPS (little-endian)'),
+ s390 => g('IBM S/390'),
+ "hurd-i386" => g('Hurd (i386)'),
+ amd64 => g('AMD64'),
+ armel => g('EABI ARM'),
+ "kfreebsd-i386" => g('GNU/kFreeBSD (i386)'),
+ "kfreebsd-amd64" => g('GNU/kFreeBSD (amd64)'),
}
%]
ports_url = 'http://www.debian.org/ports/'
continents = {
- north_america => 'North America',
- south_america => 'South America',
- asia => 'Asia',
- australia => 'Australia and New Zealand',
- europa => 'Europa',
- africa => 'Africa',
+ north_america => g('North America'),
+ south_america => g('South America'),
+ asia => g('Asia'),
+ australia => g('Australia and New Zealand'),
+ europa => g('Europe'),
+ africa => g('Africa'),
}
%]