diff options
author | Eike Rathke <erack@redhat.com> | 2013-07-10 21:35:09 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-07-10 21:35:21 +0200 |
commit | 61436eface0070ad2431bae1cf716d607c8a9a4f (patch) | |
tree | 65386226628eeb8462522b61a9d892119c8ec1ae /librelogo | |
parent | a0f20ee1d5665ad8f6c686b04a16462e4979a29f (diff) |
added FIXME-BCP47 comment
Change-Id: I8a8ba4ac9e5318935f9b52ca7fdb8e018e76e715
Diffstat (limited to 'librelogo')
-rw-r--r-- | librelogo/source/LibreLogo/LibreLogo.py | 3 |
1 files changed, 3 insertions, 0 deletions
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] |