summaryrefslogtreecommitdiff
path: root/i18npool/source
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2022-01-21 00:06:53 +0100
committerEike Rathke <erack@redhat.com>2022-01-21 03:06:41 +0100
commitfbdea6633be4c613b73278006f030c87440731aa (patch)
tree8d03c28702b8c6aa341d8cba7be28fce4bd6d7bd /i18npool/source
parentea933cc3b6d72b1d7ff09c9e85286f4d3343f335 (diff)
Output full non-iso locale names, not just language_script
Change-Id: I3639dfff2da10afd711be37b6bfede44266c307f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128713 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'i18npool/source')
-rwxr-xr-x[-rw-r--r--]i18npool/source/localedata/data/list-locales.awk10
1 files changed, 8 insertions, 2 deletions
diff --git a/i18npool/source/localedata/data/list-locales.awk b/i18npool/source/localedata/data/list-locales.awk
index b8a7f73f14de..52f02ba64986 100644..100755
--- a/i18npool/source/localedata/data/list-locales.awk
+++ b/i18npool/source/localedata/data/list-locales.awk
@@ -83,8 +83,14 @@ function printEntry() {
tmp = file
gsub( /.*\//, "", tmp )
gsub( /\.xml/, "", tmp )
- split( tmp, iso, /_/ )
- if ( iso[2] )
+ n = split( tmp, iso, /_/ )
+ if ( n > 2 )
+ {
+ if (length(iso[1]) == 2)
+ printf(" ")
+ printf( "%s: %s - %s\n", tmp, language, country )
+ }
+ else if ( n == 2 )
printf( "%3s_%2s: %s - %s\n", iso[1], iso[2], language, country )
else
printf( "%3s %2s: %s %s\n", iso[1], iso[2], language, country )