i18npool/source/localedata/data/list-locales.awk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
New commits: commit fbdea6633be4c613b73278006f030c87440731aa Author: Eike Rathke <er...@redhat.com> AuthorDate: Fri Jan 21 00:06:53 2022 +0100 Commit: Eike Rathke <er...@redhat.com> CommitDate: Fri Jan 21 03:06:41 2022 +0100 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 <er...@redhat.com> Tested-by: Jenkins diff --git a/i18npool/source/localedata/data/list-locales.awk b/i18npool/source/localedata/data/list-locales.awk old mode 100644 new mode 100755 index b8a7f73f14de..52f02ba64986 --- 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 )