Closed desb42 closed 5 years ago
Hey, as always, thanks for the detailed write-up. Responding to your points:
The first small issue (not the main one) is that the report =Module:language:195 which I take to mean line number, is incorrect - this should be line 193
Yeah, I think this is either a LuaJ issue . If I remember correctly, the line-number is coming from their call-stack. XOWA doesn't get involved except for reporting LuaJ's call-stack. Let me know if you think otherwise
The second (still not the main issues) is that I expect a lua error to generate a red error message That is, on wikipedia, {{wikt-lang|xon|sifjar}} where 'xon' is an invalid language we get
Not sure I follow. I ran {{wikt-lang|xon|sifjar}}
in XOWA at en.wikipedia.org/wiki/Wikipedia:Sandbox?action=edit
. It displays the error message in red.
Which page are you seeing the error message not displayed in red?
at line 135 String include = args.Cast_str_or(2, "mw"); If there is a value, use it or default to 'mw'
Thanks. That helped a lot (though admittedly, it still took longer than it should have on my side). The problem was a bad transcription from MediaWiki to XOWA. It should have been null
not 'mw'
. I changed it in the commit above. I also added the "correct" implementation for fetchLanguageNames, though I don't have a real way to test it.
Let me know if there's anything else. Thanks.
In respect of the red error message, I think this is related to my response in #335 (Wrong luaj_xowa.jar version) The red message now appears
Cool. Thanks. I think this issue is closeable then. Let me know if there's anything else.
I also added the "correct" implementation for fetchLanguageNames, though I don't have a real way to test it.
While working on #337, I discovered this was broken. I found this during a runtime test at this page: home/wiki/Diagnostics/Scribunto/All . It's fixed with the commit above.
I have just been trying to rebuild the html for 2019-01-01 enwiki. With no hzip diffing the only errors showing are Module:Language An example is:
The first small issue (not the main one) is that the report
=Module:language:195
which I take to mean line number, is incorrect - this should be line 193 The second (still not the main issues) is that I expect a lua error to generate a red error message That is, on wikipedia,{{wikt-lang|xon|sifjar}}
where 'xon' is an invalid language we getTo the main issue, the language 'goh' is 'defined' in CldrNamesEn.json in the mediawiki cldr extension (which I believe is a relatively new extension to xowa) as 'Old High German' In Module:Language in function linkToWiktionary (line 183) mw.language.fetchLanguageName is called In xowa this ends up in Scrib_lib_language.java Line 132
public boolean FetchLanguageName
at line 135String include = args.Cast_str_or(2, "mw");
If there is a value, use it or default to 'mw' This is where I believe the issue is. The Xol_name_mgr.java fetchLanguageName function defaults the 'include' parameter to 'all'when line 135 of Scrib_lib_language.java is set to default to 'all', this gives the correct response with no error