diff options
author | Eike Rathke <erack@redhat.com> | 2012-07-21 01:47:39 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-07-21 01:47:46 +0200 |
commit | 369c76f325bf3d998bab0b069a5a4e6112e2d32e (patch) | |
tree | dac56b865602f42cb23fa1c862c628105c2c06f9 /i18npool | |
parent | 61c1af3336e91144fadeffe1a479e2a0f10cdfd1 (diff) |
print full inheritance
Change-Id: Ia53fcbde6b3ff4d38b477069a1f956c9aef84f78
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/localedata/data/list-dateacceptancepattern.awk | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/i18npool/source/localedata/data/list-dateacceptancepattern.awk b/i18npool/source/localedata/data/list-dateacceptancepattern.awk index b2729052273e..1d47814c1beb 100644 --- a/i18npool/source/localedata/data/list-dateacceptancepattern.awk +++ b/i18npool/source/localedata/data/list-dateacceptancepattern.awk @@ -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] " " + print getInheritance( LocaleList[i][offlocale], LocaleList[i][offlocale]) " " } } 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: |