summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-05-10 00:33:00 +0200
committerEike Rathke <erack@redhat.com>2014-05-10 00:39:45 +0200
commit07481fd864a1826c29a9e6bdf6c08dac4cc56ba7 (patch)
tree856fbddb292587dad672dd1e78b1736519ecafb0 /svtools
parent1564b0fe7c00902b076725b0693cc60aec0e0916 (diff)
add on-the-fly language tags to the language table
Change-Id: I5ca9e212374821de425729863c82f7b4699487a7
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/langtab.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/svtools/source/misc/langtab.cxx b/svtools/source/misc/langtab.cxx
index d97f382f27dd..b8eeec0ea4aa 100644
--- a/svtools/source/misc/langtab.cxx
+++ b/svtools/source/misc/langtab.cxx
@@ -163,6 +163,12 @@ const OUString SvtLanguageTableImpl::GetString( const LanguageType eType, bool b
<< std::hex << eType
<< " with unknown name, so returning lang-tag of: "
<< sLangTag);
+
+ // And add it to the table if it is an on-the-fly-id, which it usually is,
+ // so it is available in all subsequent language boxes.
+ if (LanguageTag::isOnTheFlyID( eType))
+ const_cast<SvtLanguageTableImpl*>(this)->AddItem( sLangTag, eType);
+
return sLangTag;
}