Kaydet (Commit) 369c76f3 authored tarafından Eike Rathke's avatar Eike Rathke

print full inheritance

Change-Id: Ia53fcbde6b3ff4d38b477069a1f956c9aef84f78
üst 61c1af33
......@@ -80,7 +80,7 @@ END {
for (i in LocaleList)
{
if (LocaleList[i][offinherit] && LocaleList[i][offpatterns])
print LocaleList[i][offlocale] " = " LocaleList[i][offinherit] "    "
print getInheritance( LocaleList[i][offlocale], LocaleList[i][offlocale]) "    "
}
print "\n<p>"
}
......@@ -89,7 +89,7 @@ END {
for (i in LocaleList)
{
if (LocaleList[i][offinherit] && LocaleList[i][offpatterns])
print LocaleList[i][offlocale] " = " LocaleList[i][offinherit]
print getInheritance( LocaleList[i][offlocale], LocaleList[i][offlocale])
}
print "\n"
}
......@@ -105,7 +105,7 @@ END {
for (i in LocaleList)
{
if (!LocaleList[i][offpatterns])
print LocaleList[i][offlocale] "&nbsp;&nbsp;&nbsp; "
print getInheritance( LocaleList[i][offlocale], LocaleList[i][offlocale]) "&nbsp;&nbsp;&nbsp; "
}
}
else
......@@ -113,13 +113,13 @@ END {
for (i in LocaleList)
{
if (!LocaleList[i][offpatterns])
print LocaleList[i][offlocale]
print getInheritance( LocaleList[i][offlocale], LocaleList[i][offlocale])
}
}
}
function endFile() {
function endFile( locale ) {
locale = getLocale( file)
LocaleList[locale][offlocale] = locale
LocaleList[locale][offpatterns] = patterns
......@@ -172,4 +172,11 @@ function fillAllInherited( i ) {
}
}
function getInheritance( str, locale ) {
if (LocaleList[locale][offinherit])
str = getInheritance( str " = " LocaleList[locale][offinherit], LocaleList[locale][offinherit])
return str
}
# vim:set shiftwidth=4 softtabstop=4 expandtab:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment