[08:03:44] I thought to add Calc error codes to the function name translation module data, but discovered that they make for poor Lua table keys. They all start with a # which for some reason starts a numbered list when output by the module into a table cell [08:04:26] Worse, one of them has a question mark, #NAME?, which produces this error: Lua error in Module:Calc_fn_name at line 19: attempt to index field '?' (a nil value).? [08:04:58] Module is here https://wiki.documentfoundation.org/Module:Calc_fn_name data: https://wiki.documentfoundation.org/Module:Calc_fn_name/data [08:05:18] Any ideas? [08:47:11] IDK why that's happening (my best guess would be that the question mark can't be used in table indexes for whatever reason), but as a workaround you could either remove question marks from the input, or replace them with some other character(s) [08:47:52] on a side note, you might want to double-check the data module; the language lb has the same value #NUMM? for both #NAME! and #NAME? [10:10:16] Dinoguy1000[m]: thanks, yeah, I was wondering about some kludgy QQQ replacement solution. It's ugly but at least the module is otherwise simple. [10:10:34] Good catch about Luxembourgish - it's a typo in the translation itself :) So I can make a suggestion in our Weblate [10:12:01] "Names (also called identifiers) in Lua can be any string of letters, digits, and underscores, not beginning with a digit." [10:13:36] It's surprising that it doesn't error out on the # then... or else it might be that ? is treated as a special thing in keys [10:14:59] Keys in tables are supposed to be names, so I don't really get it [10:15:29] I couldn't find anything specific about allowed/disallowed chars in table keys [10:23:44] I will proceed with the pragmatic kludge [10:35:19] It's still weird that dots should not be allowed in the names, yet these work fine: https://wiki.documentfoundation.org/Documentation/Calc_Functions/FLOOR.MATH [10:39:42] ooh I made a mistake/typo - the ? was accidentally outside of my template call and now I see it works fine [10:40:21] so the only issue left is the ordered list created due to # which does not happen in table cells without the module use [10:41:51] (the ? was left outside the template call because I use a JS user script to wrap the strings with template calls that apparently needs adjusting) [10:47:34] Quite interesting, it creates an ordered list even when the # is in the middle of a pragraph [11:08:55] I tried to use in the return, but it gets rendered literally [11:18:02] string.gsub seems to help... [11:25:01] wowza... local tr_name_escaped = string.gsub( tr_name, "#", "#" )