[Libreoffice-commits] .: i18npool/source

Eike Rathke erack at kemper.freedesktop.org
Fri Jul 20 16:48:04 PDT 2012


 i18npool/source/localedata/data/list-dateacceptancepattern.awk |   17 +++++++---
 1 file changed, 12 insertions(+), 5 deletions(-)

New commits:
commit 369c76f325bf3d998bab0b069a5a4e6112e2d32e
Author: Eike Rathke <erack at redhat.com>
Date:   Sat Jul 21 01:47:39 2012 +0200

    print full inheritance
    
    Change-Id: Ia53fcbde6b3ff4d38b477069a1f956c9aef84f78

diff --git a/i18npool/source/localedata/data/list-dateacceptancepattern.awk b/i18npool/source/localedata/data/list-dateacceptancepattern.awk
index b272905..1d47814 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:


More information about the Libreoffice-commits mailing list