Lucas_Werkmeister_WMDE added a comment.
> In the software we could check if the level is mandatory/suggestion and if that's the case, check if a message of that level exists. If that's the case, use the level message otherwise the default. With language fallbacks, this isn’t as clear as it sounds. Wikibase does a similar thing with its localized edit summaries (implemented in `AutoCommentFormatter::getSummaryMessage`): edit summary messages exist in several variants, e. g. wikibase-**entity**-summary-wbeditentity-create and wikibase-**item**-summary-wbeditentity-create, and it first checks whether the entity type-specific message exists before falling back to the generic “entity” message. I //thought// the intention of this was to let a generic translation take precedence over an entity type-specific version in a fallback language; however, it looks like if the entity type-specific message has an English translation, then it will always exist for the purposes of this check, and never fall back to the generic “entity” message even if that one is translated. For example, this diff in Scots <https://www.wikidata.org/w/index.php?diff=880209749&uselang=sco> still displays “Created a new Item” (item, English) and not “Creatit a new entity” (entity, Scots). I’m not sure if this is the intended behavior in Wikibase, or if it’s what we want in WikibaseQualityConstraints. TASK DETAIL https://phabricator.wikimedia.org/T227383 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: Marsupium, Lucas_Werkmeister_WMDE, Ladsgroup, hoo, Lydia_Pintscher, Lea_Lacroix_WMDE, Sjoerddebruin, Aklapper, Multichill, Liuxinyu970226, darthmon_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
