[or-cvs] Add russian translation
Peter Palfrader
weasel at seul.org
Sun Feb 19 21:58:19 UTC 2006
Update of /home/or/cvsroot/website/include
In directory moria:/tmp/cvs-serv21988/include
Modified Files:
functions.wmi head.wmi perl-globals.wmi
Log Message:
Add russian translation
Index: functions.wmi
===================================================================
RCS file: /home/or/cvsroot/website/include/functions.wmi,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -d -r1.9 -r1.10
--- functions.wmi 16 Feb 2006 16:32:57 -0000 1.9
+++ functions.wmi 19 Feb 2006 21:58:17 -0000 1.10
@@ -77,7 +77,7 @@ sub list_translations() {
my $page = $WML_SRC_FILENAME;
my $numlangs = 0;
$page =~ s/\.wml//;
- for my $dir (sort {$LANGUAGES{$a} cmp $LANGUAGES{$b}} @LANGUAGES) {
+ for my $dir (@LANGUAGES) {
if (-e "$dir/$WML_SRC_FILENAME") {
if ($dir ne '$(LANG)') {
push @links, sprintf('<a href="%s.html.%s">%s</a>', $page, $dir, $LANGUAGES{$dir});
Index: head.wmi
===================================================================
RCS file: /home/or/cvsroot/website/include/head.wmi,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -d -r1.12 -r1.13
--- head.wmi 8 Feb 2006 12:05:06 -0000 1.12
+++ head.wmi 19 Feb 2006 21:58:17 -0000 1.13
@@ -13,7 +13,8 @@
<head>
<title>Tor: $(TITLE)</title>
<meta name="Author" content="Roger Dingledine" />
- <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+ <ifneq "$(CHARSET)" "" "<meta http-equiv="content-type" content="text/html; charset=$(CHARSET)" />">
+ <ifeq "$(CHARSET)" "" "<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />">
<link rel="stylesheet" type="text/css" href="$(DOCROOT)/stylesheet.css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<ifneq "$(REDIRECT)" "" "<meta http-equiv="refresh" content="0;url=$(DOCROOT)/$(REDIRECT).html" />">
@@ -58,7 +59,7 @@
my $page = $WML_SRC_FILENAME;
my $numlangs = 0;
$page =~ s/\.wml//;
- for my $dir (sort {$LANGUAGES{$a} cmp $LANGUAGES{$b}} @LANGUAGES) {
+ for my $dir (@LANGUAGES) {
if (-e "$dir/$WML_SRC_FILENAME") {
if ($dir eq '$(LANG)') {
printf('<img src="$(IMGROOT)/%s.png" alt="%s" /> ', $dir, $LANGUAGES{$dir});
Index: perl-globals.wmi
===================================================================
RCS file: /home/or/cvsroot/website/include/perl-globals.wmi,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -d -r1.9 -r1.10
--- perl-globals.wmi 20 Jan 2006 06:46:18 -0000 1.9
+++ perl-globals.wmi 19 Feb 2006 21:58:17 -0000 1.10
@@ -1,14 +1,14 @@
#!wml
<:
- # Change both. The array is ordered (for pages like translation status).
- # The order of flags in header is based on sort order of language name.
- my @LANGUAGES = qw{en de it fr se};
+ # Change both. The array is ordered (for pages like translation status, order of flags, etc).
+ my @LANGUAGES = qw{de en fr it ru se};
my %LANGUAGES = (
'en' => "English",
'de' => "Deutsch",
'it' => "Italiano",
'fr' => "Français",
'se' => "Svenska",
+ 'ru' => "Русский (Russkij)",
);
our $WML_SRC_FILENAME;
More information about the tor-commits
mailing list