dev

Module:Hatnote

Hi, I've noticed your changes on Module:Hatnote a while ago. I was testing around with {{hatnote|main}} lately and noticed that the German error message displays the plural value (Keine Seitennamen) when no parameter is given. But I think it would be correct if the singular value (Kein Seitenname) would be used for 0 and 1 or in other words: a value > 1. I am by far no expert with this coding stuff and just do wiki stuff for fun but could it be that local pageCount = #args broke the correct translation since it uses {{PLURAL:}}. As I am not sure about my "theory" I thought, I just ask for your help on this. FromAcidToZen (talk) 01:42, 25 January 2025 (UTC)

Hi, FromAcidToZen. This change was done to fix some other German translation error. Doesn't look like it affected the error message translation; I could be wrong though. As far as I can tell, the message comes from line 662, which passes a hardcoded number 2 to the msg function. So it always comes out as plural. Guess you can remove the argument 2, or alternatively remove the {{PLURAL:}} switch from the German translation. — Digital Elefant (talk) 19:12, 1 February 2025 (UTC)