aboutsummaryrefslogtreecommitdiff
path: root/v2/src/bin/i18n
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xv2/src/bin/i18n18
1 files changed, 14 insertions, 4 deletions
diff --git a/v2/src/bin/i18n b/v2/src/bin/i18n
index 76e07e7..30404eb 100755
--- a/v2/src/bin/i18n
+++ b/v2/src/bin/i18n
@@ -75,11 +75,21 @@ awk '
END {
for (k1 in idx) {
+ split(idx[k1][0], b, /:/)
+ base = b[2] ".i18n"
for (k2 in idx[k1]) {
- split(idx[k1][k2], a, /:/)
- file = a[2] ".i18n"
- for (k3 in idx[k1]) {
- print idx[k1][k3] > file
+ split(idx[k1][k2], f, /:/)
+ file = f[2] ".i18n"
+ if (k2 == 0) {
+ for (k3 in idx[k1]) {
+ "url-for " f[2] | getline url
+ print idx[k1][k3] ":" url > file
+ }
+ } else {
+ ret = system("cp " base " " file)
+ if (ret) {
+ exit ret
+ }
}
}
}