Prioritize titles in the translator dispatch queue.
All pending titles are now offered before any article chunks (stable sort, menu order kept within each kind) — a page's name in the menu is its most visible string.
This commit is contained in:
@@ -278,7 +278,11 @@ class Dispatcher:
|
|||||||
spans: list[Span] = []
|
spans: list[Span] = []
|
||||||
original = ""
|
original = ""
|
||||||
for lang in sorted(langs):
|
for lang in sorted(langs):
|
||||||
for item in pending_items(self.data, lang):
|
# Titles first: a page's name in the menu is its most
|
||||||
|
# visible string (stable: menu order kept within each kind).
|
||||||
|
for item in sorted(
|
||||||
|
pending_items(self.data, lang), key=lambda it: it.kind != "title"
|
||||||
|
):
|
||||||
if (lang, item.key) in inflight or (
|
if (lang, item.key) in inflight or (
|
||||||
lang,
|
lang,
|
||||||
item.key,
|
item.key,
|
||||||
|
|||||||
Reference in New Issue
Block a user