Peter Palfrader commited on 2006-05-15 11:36:09
Zeige 8 geänderte Dateien mit 19 Einfügungen und 2 Löschungen.
... | ... |
@@ -6,7 +6,7 @@ WMLOPT = \ |
6 | 6 |
-D TORCVSHEAD=$(TORCVSHEAD) |
7 | 7 |
|
8 | 8 |
|
9 |
-LANGS=de en es it fr pl se ru |
|
9 |
+LANGS=de en es it fr pl pt se ru |
|
10 | 10 |
WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS))) |
11 | 11 |
WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi ) |
12 | 12 |
|
... | ... |
@@ -34,6 +34,9 @@ all: $(HTMLFILES) |
34 | 34 |
%.html.pl: pl/%.wml en/%.wml |
35 | 35 |
lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@ |
36 | 36 |
|
37 |
+%.html.pt: pt/%.wml en/%.wml |
|
38 |
+ lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@ |
|
39 |
+ |
|
37 | 40 |
%.html.se: se/%.wml en/%.wml |
38 | 41 |
lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@ |
39 | 42 |
|
... | ... |
@@ -82,6 +85,13 @@ all: $(HTMLFILES) |
82 | 85 |
wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \ |
83 | 86 |
sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \ |
84 | 87 |
rm -f $$tmpfile |
88 |
+.deps/%.html.pt.d: pt/%.wml .deps/.stamp |
|
89 |
+ tmpfile=`tempfile` \ |
|
90 |
+ lang=`dirname $<` && \ |
|
91 |
+ OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \ |
|
92 |
+ wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \ |
|
93 |
+ sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \ |
|
94 |
+ rm -f $$tmpfile |
|
85 | 95 |
.deps/%.html.se.d: se/%.wml .deps/.stamp |
86 | 96 |
tmpfile=`tempfile` \ |
87 | 97 |
lang=`dirname $<` && \ |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
#!wml |
2 | 2 |
<: |
3 | 3 |
# Change both. The array is ordered (for pages like translation status, order of flags, etc). |
4 |
- my @LANGUAGES = qw{de en es fr it pl ru se}; |
|
4 |
+ my @LANGUAGES = qw{de en es fr it pl pt ru se}; |
|
5 | 5 |
my %LANGUAGES = ( |
6 | 6 |
'en' => "English", |
7 | 7 |
'de' => "Deutsch", |
... | ... |
@@ -9,6 +9,7 @@ |
9 | 9 |
'it' => "Italiano", |
10 | 10 |
'fr' => "français", |
11 | 11 |
'pl' => "polski", |
12 |
+ 'pt' => "Português", |
|
12 | 13 |
'ru' => "Русский (Russkij)", |
13 | 14 |
'se' => "svenska", |
14 | 15 |
); |