From 61436eface0070ad2431bae1cf716d607c8a9a4f Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Wed, 10 Jul 2013 21:35:09 +0200 Subject: added FIXME-BCP47 comment Change-Id: I8a8ba4ac9e5318935f9b52ca7fdb8e018e76e715 --- librelogo/source/LibreLogo/LibreLogo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/librelogo/source/LibreLogo/LibreLogo.py b/librelogo/source/LibreLogo/LibreLogo.py index bf925c88b259..c13c70592881 100644 --- a/librelogo/source/LibreLogo/LibreLogo.py +++ b/librelogo/source/LibreLogo/LibreLogo.py @@ -587,6 +587,9 @@ def __setlang__(): global _ c = _.doc.CurrentController.getViewCursor() locs = [i for i in [c.CharLocale, c.CharLocaleAsian, c.CharLocaleComplex] if i.Language != 'zxx'] # not None language + # FIXME-BCP47: this needs adaption to language tags, a simple split on + # '-' and assuming second field would be country would already fail if + # a script tag was present. loc = Locale(__uilocale__.split('-')[0], __uilocale__.split('-')[1], '') if locs and loc not in locs: loc = locs[0] -- cgit v1.2.3