For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
I guess there's an issue (I didn't really test it):
In WMF branch:
In trunk:
So in l10ncache:
onRecache for zh-cn, input:
after 1st round $codeSequence merge of zh-hans:
after 2nd round $codeSequence merge of zh-cn:
output:
expected:
Yes, that is true. I have at the moment no idea, why.
But now it works, when there is no "zh-cn" message in WMF branch and no "zh-cn" message in trunk. Before this commit, the fallback was never triggered. (msg was than AA, not A). For this case the order is not relevant.
Hmm, yeah, that's a problem. Good point.
The cache entry for zh-hans overrides the message, but it is hard to fix, because for the one usecase there should not a merge, but in the other usecase it needs a merge.
Some more notes for myself:
There are three cases where LU will store nothing for a message:
For case #2, I think we'll be fine if we store the translation in the LU cache file even though it's not needed, but I'll have to investigate that in more detail.
I've done #2 in r104041, so this issue should now be fixed.
I meant to say I've done this (storing unchanged messages).
I guess it's still buggy:
WMF:
trunk:
input onRecache de:
1st round fallback, en, skipping:
2nd round fallback, de, no msg cached:
expected (fallback to en):
Can we cache English messages as well?
Status on this?
Seems partly fixed and Roan decided to deploy the partly fixed version live.
changing back to "NEW". If things still need fixing, then restore "FIXME" and give a list of what needs to be fixed still.
If a de message was in wmf-branch and isn't in trunk (and developers expect it to fall back to en), it cannot be updated by LU.
Some ways to fix:
This is a bug, yes, but it's not a regression, because fallbacks weren't handled at all before. Can we file a bug about the missing message behavior and unfixme this revision?
Done. bug 34272.