summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac16
-rw-r--r--l10ntools/source/ulfconv/msi-encodinglist.txt1
-rw-r--r--scp2/source/ooo/module_langpack.ulf6
-rw-r--r--solenv/inc/langlist.mk9
4 files changed, 24 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index 2cccb004e8dd..172417596a84 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14457,14 +14457,14 @@ dnl ===================================================================
AC_MSG_CHECKING([which languages to be built])
# get list of all languages
# generate shell variable from completelangiso= from solenv/inc/langlist.mk
-# the sed command does the following:
-# + if a line ends with a backslash, append the next line to it
-# + adds " on the beginning of the value (after =)
-# + adds " at the end of the value
-# + removes en-US; we want to put it on the beginning
-# + prints just the section starting with 'completelangiso=' and ending with the " at the end of line
-[eval $(sed -e :a -e '/\\$/N; s/\\\n//; ta' -n -e 's/=/="/;s/\([^\\]\)$/\1"/;s/en-US//;/^completelangiso/p' $SRC_ROOT/solenv/inc/langlist.mk)]
-ALL_LANGS="en-US $completelangiso"
+# we want en-US at the beginning
+ALL_LANGS=$($GNUMAKE SRC_ROOT=$SRC_ROOT WITH_LANG="$with_lang" ENABLE_RELEASE_BUILD="$ENABLE_RELEASE_BUILD" -sr -f - <<'EOF' | tr -d '\r'
+include $(SRC_ROOT)/solenv/inc/langlist.mk
+all:
+ $(info en-US $(filter-out en-US,$(sort $(completelangiso))))
+EOF
+)
+
# check the configured localizations
WITH_LANG="$with_lang"
diff --git a/l10ntools/source/ulfconv/msi-encodinglist.txt b/l10ntools/source/ulfconv/msi-encodinglist.txt
index eaa1754cf538..453d1330dd39 100644
--- a/l10ntools/source/ulfconv/msi-encodinglist.txt
+++ b/l10ntools/source/ulfconv/msi-encodinglist.txt
@@ -147,6 +147,7 @@ sr-Latn 0 2074 # Serbian Latin
sr-SP 0 3098 # Serbian Cyrillic
ss 0 1579 # Swazi
st 0 1072 # Southern Sotho, Sutu
+sun 0 1690 # Sundanese, fake LCID
sv 0 1053
sw 0 1089 # Swahili
sw-TZ 0 1089 # Swahili
diff --git a/scp2/source/ooo/module_langpack.ulf b/scp2/source/ooo/module_langpack.ulf
index 5b51e7fa9f64..e9274207734c 100644
--- a/scp2/source/ooo/module_langpack.ulf
+++ b/scp2/source/ooo/module_langpack.ulf
@@ -70,6 +70,12 @@ en-US = "Spanish"
[STR_DESC_MODULE_LANGPACK_ES]
en-US = "Installs the Spanish user interface"
+[STR_NAME_MODULE_LANGPACK_SUN]
+en-US = "Sundanese"
+
+[STR_DESC_MODULE_LANGPACK_SUN]
+en-US = "Installs the Sundanese user interface"
+
[STR_NAME_MODULE_LANGPACK_SV]
en-US = "Swedish"
diff --git a/solenv/inc/langlist.mk b/solenv/inc/langlist.mk
index 0de00dff99a7..95a295c10738 100644
--- a/solenv/inc/langlist.mk
+++ b/solenv/inc/langlist.mk
@@ -138,6 +138,15 @@ zh-CN \
zh-TW \
zu
+# languages with low translation percentage, but still wish to have daily builds
+lowcompletion_langs = sun
+ifneq ($(ENABLE_RELEASE_BUILD),TRUE)
+completelangiso += $(lowcompletion_langs)
+else
+# allow to manually specify even in release config
+completelangiso += $(foreach lang,$(WITH_LANG),$(filter $(lang),$(lowcompletion_langs)))
+endif
+
ifneq ($(WITH_LANG),ALL)
gb_WITH_LANG=$(WITH_LANG)
else