summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-05-04 19:30:37 +0000
committerrubidium <rubidium@openttd.org>2013-05-04 19:30:37 +0000
commit8d10337bf0d61049ee0f3b0a7f4d87153b18db96 (patch)
tree4027c5a401832805f9fd8ea0bfb05ab3e34d5d1a
parentff3baa1914b1543cc9b8a3b41e4d846c8c2b8080 (diff)
downloadopenttd-8d10337bf0d61049ee0f3b0a7f4d87153b18db96.tar.xz
(svn r25218) -Fix: the baseset description translation script did not work with any awk other than gawk
-rw-r--r--bin/baseset/no_music.obm2
-rw-r--r--bin/baseset/no_sound.obs2
-rw-r--r--bin/baseset/orig_dos.obg2
-rw-r--r--bin/baseset/orig_dos.obs1
-rw-r--r--bin/baseset/orig_dos_de.obg2
-rw-r--r--bin/baseset/orig_win.obg1
-rw-r--r--bin/baseset/orig_win.obm1
-rw-r--r--bin/baseset/orig_win.obs1
-rw-r--r--media/baseset/translations.awk27
9 files changed, 36 insertions, 3 deletions
diff --git a/bin/baseset/no_music.obm b/bin/baseset/no_music.obm
index d951f8610..0eec78b88 100644
--- a/bin/baseset/no_music.obm
+++ b/bin/baseset/no_music.obm
@@ -27,6 +27,7 @@ description.gd_GB = Pacaid ciùil anns nach eil fonn sam bith.
description.hr_HR = Muzički paket bez ikakve muzike.
description.hu_HU = Zenei alapcsomag zene nélkül.
description.id_ID = Paket musik tanpa berisi musik.
+description.is_IS = Tónlistarpakki sem er í raun án tónlistar.
description.it_IT = Un pacchetto musicale non contenente alcuna musica.
description.ko_KR = 실제 음악이 없는 음악 목록입니다.
description.nb_NO = En musikkpakke uten noe musikk.
@@ -41,6 +42,7 @@ description.sl_SI = Glasbeni paket z vključeno glasbo.
description.sr_RS = Prazan skup muzičkih numera.
description.sv_SE = Ett musikpaket utan någon musik.
description.tr_TR = Müzik içermeyen boş bir müzik paketi.
+description.vi_VN = Gói âm nhạc này không có nhạc nào.
description.zh_TW = 不含任何音樂的音樂集。
[files]
diff --git a/bin/baseset/no_sound.obs b/bin/baseset/no_sound.obs
index bc832a030..5d8139fda 100644
--- a/bin/baseset/no_sound.obs
+++ b/bin/baseset/no_sound.obs
@@ -27,6 +27,7 @@ description.gd_GB = Pacaid fhuaimean anns nach eil fuaim sam bith.
description.hr_HR = Zvučni paket bez ikakvih zvukova.
description.hu_HU = Hang alapcsomag hangok nélkül.
description.id_ID = Paket efek suara tanpa berisi suara.
+description.is_IS = Hljóðpakki án hljóðs.
description.it_IT = Un pacchetto sonoro non contenente alcun suono.
description.ko_KR = 아무런 효과음도 없는 효과음 팩입니다.
description.nb_NO = En lydpakke uten noen lyder.
@@ -41,6 +42,7 @@ description.sl_SI = Zvočni paket brez zvoka.
description.sr_RS = Prazan skup zvukova.
description.sv_SE = Ett ljudpaket utan några ljud.
description.tr_TR = Ses içermeyen boş bir ses kümesi.
+description.vi_VN = Gói âm thanh này không có âm thanh nào.
description.zh_TW = 不含任何音效的音效集。
[files]
diff --git a/bin/baseset/orig_dos.obg b/bin/baseset/orig_dos.obg
index 59fd13e8c..895561adb 100644
--- a/bin/baseset/orig_dos.obg
+++ b/bin/baseset/orig_dos.obg
@@ -28,6 +28,7 @@ description.gd_GB = Grafaigeachd aig an deasachadh DOS tùsail aig Transport Tyc
description.hr_HR = Originalna grafika za Transport Tycoon Deluxe DOS izdanje.
description.hu_HU = Az eredeti Transport Tycoon Deluxe DOS verziójának grafikája.
description.id_ID = Grafik orisinil Transport Tycoon Deluxe versi DOS.
+description.is_IS = Upprunalega grafíkin úr Transport Tycoon Deluxe DOS útgáfunni.
description.it_IT = Grafica originale di Transport Tycoon Deluxe, edizione DOS.
description.ko_KR = 오리지널 트랜스포트 타이쿤 디럭스 도스 에디션의 그래픽입니다.
description.nb_NO = Original grafikk fra Transport Tycoon Deluxe for DOS.
@@ -42,6 +43,7 @@ description.sl_SI = Originalna grafika Transport Tycoon Deluxe za različico DOS
description.sr_RS = Originalni skup grafika Transport Tycoon Deluxe DOS izdanja.
description.sv_SE = Originalgrafiken från Transport Tycoon Deluxe, DOS-utgåvan.
description.tr_TR = Orijinal Transport Tycoon Deluxe DOS sürümü grafikleri.
+description.vi_VN = Đồ họa gốc từ phiên bản Transport Tycoon Deluxe trên DOS
description.zh_TW = 原版 Transport Tycoon Deluxe DOS 版的圖形。
[files]
diff --git a/bin/baseset/orig_dos.obs b/bin/baseset/orig_dos.obs
index f01723fda..d433435e8 100644
--- a/bin/baseset/orig_dos.obs
+++ b/bin/baseset/orig_dos.obs
@@ -27,6 +27,7 @@ description.gd_GB = Fuaimean aig an deasachadh DOS tùsail aig Transport Tycoon
description.hr_HR = Originalni zvukovi za Transport Tycoon Deluxe DOS izdanje.
description.hu_HU = Az eredeti Transport Tycoon Deluxe DOS verziójának hangjai.
description.id_ID = Efek suara orisinil Transport Tycoon Deluxe versi DOS.
+description.is_IS = Upprunalega hljóðið úr Transport Tycoon Deluxe DOS útgáfunni.
description.it_IT = Suoni originali di Transport Tycoon Deluxe, edizione DOS.
description.ko_KR = 오리지널 트랜스포트 타이쿤 도스 에디션의 효과음입니다.
description.nb_NO = Originale lyder fra Transport Tycoon Deluxe for DOS.
diff --git a/bin/baseset/orig_dos_de.obg b/bin/baseset/orig_dos_de.obg
index 6f4204c37..c5c04047f 100644
--- a/bin/baseset/orig_dos_de.obg
+++ b/bin/baseset/orig_dos_de.obg
@@ -28,6 +28,7 @@ description.gd_GB = Grafaigeachd aig an deasachadh DOS (Germailteach) tùsail ai
description.hr_HR = Originalna grafika za Transport Tycoon Deluxe DOS (Njemački) izdanje.
description.hu_HU = Az eredeti Transport Tycoon Deluxe DOS (német) verziójának grafikája.
description.id_ID = Grafik orisinil Transport Tycoon Deluxe versi DOS (Jerman).
+description.is_IS = Upprunalega grafíkin úr Transport Tycoon Deluxe DOS (þýsku) útgáfunni.
description.it_IT = Grafica originale di Transport Tycoon Deluxe (tedesco), edizione DOS.
description.ko_KR = 오리지널 트랜스포트 타이쿤 디럭스 도스 에디션(독일)의 그래픽입니다.
description.nb_NO = Original grafikk fra Transport Tycoon Deluxe for DOS (tysk).
@@ -42,6 +43,7 @@ description.sl_SI = Originalna grafika Transport Tycoon Deluxe za nemško razli
description.sr_RS = Originalni skup grafika nemačkog Transport Tycoon Deluxe DOS izdanja.
description.sv_SE = Originalgrafiken från Transport Tycoon Deluxe, DOS-utgåvan (tyska).
description.tr_TR = Orijinal Transport Tycoon Deluxe DOS (Almanca) sürümü grafikleri.
+description.vi_VN = Đồ họa gốc từ phiên bản Transport Tycoon Deluxe trên DOS (tiếng Đức)
description.zh_TW = 原版 Transport Tycoon Deluxe DOS 版 (德國版) 的圖形。
[files]
diff --git a/bin/baseset/orig_win.obg b/bin/baseset/orig_win.obg
index fb3a0cd23..1f125fbd3 100644
--- a/bin/baseset/orig_win.obg
+++ b/bin/baseset/orig_win.obg
@@ -28,6 +28,7 @@ description.gd_GB = Grafaigeachd aig an deasachadh Windows tùsail aig Transport
description.hr_HR = Originalna grafika za Transport Tycoon Deluxe Windows izdanje.
description.hu_HU = Az eredeti Transport Tycoon Deluxe Windows verziójának grafikája.
description.id_ID = Grafik orisinil Transport Tycoon Deluxe versi Windows.
+description.is_IS = Upprunalega grafíkin úr Transport Tycoon Deluxe Windows útgáfunni.
description.it_IT = Grafica originale di Transport Tycoon Deluxe, edizione Windows.
description.ko_KR = 오리지널 트랜스포트 타이쿤 디럭스 윈도우 에디션의 그래픽입니다.
description.nb_NO = Original grafikk fra Transport Tycoon Deluxe for Windows.
diff --git a/bin/baseset/orig_win.obm b/bin/baseset/orig_win.obm
index c4d4c8bcd..a6bb886a3 100644
--- a/bin/baseset/orig_win.obm
+++ b/bin/baseset/orig_win.obm
@@ -27,6 +27,7 @@ description.gd_GB = Ceòl aig an deasachadh Windows tùsail aig Transport Tycoon
description.hr_HR = Originalna muzika za Transport Tycoon Deluxe Windows izdanje.
description.hu_HU = Az eredeti Transport Tycoon Deluxe Windows verziójának zenéje.
description.id_ID = Musik pengiring orisinil Transport Tycoon Deluxe versi Windows.
+description.is_IS = Upprunalega tónlistin úr Transport Tycoon Deluxe Windows útgáfunni.
description.it_IT = Musica originale di Transport Tycoon Deluxe, edizione Windows.
description.ko_KR = 오리지널 트랜스포트 타이쿤 디럭스 윈도우 에디션의 음악입니다.
description.nb_NO = Original musikk fra Transport Tycoon Deluxe for Windows.
diff --git a/bin/baseset/orig_win.obs b/bin/baseset/orig_win.obs
index 0636f1841..0dcdb5ad8 100644
--- a/bin/baseset/orig_win.obs
+++ b/bin/baseset/orig_win.obs
@@ -27,6 +27,7 @@ description.gd_GB = Fuaimean aig an deasachadh Windows tùsail aig Transport Tyc
description.hr_HR = Originalni zvukovi za Transport Tycoon Deluxe Windows izdanje.
description.hu_HU = Az eredeti Transport Tycoon Deluxe Windows verziójának hangjai.
description.id_ID = Efek suara orisinil Transport Tycoon Deluxe versi Windows.
+description.is_IS = Upprunalega hljóðið úr Transport Tycoon Deluxe Windows útgáfunni.
description.it_IT = Suoni originali di Transport Tycoon Deluxe, edizione Windows.
description.ko_KR = 오리지널 트랜스포트 타이쿤 디럭스 윈도우 에디션의 효과음입니다.
description.nb_NO = Originale lyder fra Transport Tycoon Deluxe for Windows.
diff --git a/media/baseset/translations.awk b/media/baseset/translations.awk
index 3269d40b7..f15cb43ff 100644
--- a/media/baseset/translations.awk
+++ b/media/baseset/translations.awk
@@ -18,6 +18,26 @@
# <ini-key>.<iso-code> = <translation>
#
+# Simple insertion sort since not all AWKs have a sort implementation
+function isort(A) {
+ n = 0
+ for (val in A) {
+ n++;
+ }
+
+ for (i = 2; i <= n; i++) {
+ j = i;
+ hold = A[j]
+ while (A[j - 1] > hold) {
+ j--;
+ A[j + 1] = A[j]
+ }
+ A[j] = hold
+ }
+
+ return n
+}
+
/^!!/ {
ini_key = $2;
str_id = $3;
@@ -28,16 +48,17 @@
lang = $2;
} else if (match($0, "^" str_id " *:") > 0) {
sub("^[^:]*:", "", $0)
+ i++;
if (lang == "en_GB") {
- texts[""] = ini_key " = "$0;
+ texts[i] = ini_key " = "$0;
} else {
- texts[lang] = ini_key "." lang " = "$0;
+ texts[i] = ini_key "." lang " = "$0;
}
}
}
close(file);
- count = asort(texts);
+ count = isort(texts);
for (i = 1; i <= count; i++) {
print texts[i]
}