Page MenuHomePhabricator

Don't show "Limited" or "Test" translations unless an install is in developer mode
ClosedPublic

Authored by epriestley on Nov 6 2016, 5:16 PM.
Tags
None
Referenced Files
F14061238: D16807.diff
Mon, Nov 18, 5:42 AM
F14046350: D16807.diff
Wed, Nov 13, 8:26 PM
F14035724: D16807.diff
Sun, Nov 10, 7:17 AM
F14029776: D16807.diff
Fri, Nov 8, 9:18 PM
F14019010: D16807.diff
Tue, Nov 5, 8:55 PM
F14017112: D16807.id40476.diff
Mon, Nov 4, 2:20 PM
F14003980: D16807.diff
Sat, Oct 26, 1:43 PM
F14002182: D16807.id40476.diff
Fri, Oct 25, 4:04 PM
Subscribers
None

Details

Summary

Ref T5267. Although translations with very few strings are already put into a "Limited Translations" group, this isn't necessarily clear and was empirically confusing to at least one user, who was surprised that selecting "Spanish" had no UI effect.

Instead, hide limited and test translations entirely unless the install is in developer mode.

Test Plan

In a non-developer-mode install, viewed translations menu. No longer saw translations with very few strings.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Don't show "Limited" or "Test" translations unless an install is in developer mode.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.

Maybe prototype is better? Does the limited test pass German or Chinese we have linked in the wiki?

Both the German and Chinese translations have way more than enough strings to count as real translations, yeah.

We could use prototype instead, but WMF has prototypes enabled so the option would still have shown up in the case from T5267. If we want to make these more discoverable, maybe I should just switch the label "Limited Translations" to something more scary, like "TRANSLATIONS THAT DO NOT WORK YET"? I can't really come up with a better label for this that accurately describes "translations with very few strings" succinctly, though.

We could also split translations with zero strings into a separate group ("DEFINITELY NOT WORKING TRANSLATIONS") but that doesn't feel like a great fix and we have the same problem for translations with, like 1 or 2 strings.

Or we could add a flag to translations like "Is this usable yet? / How usable is this?", but I think that makes providing translations trickier, and there's no single answer: Phabricator itself may be well-translated into, say, French, but some third-party application you install may provide a French translation that only has 2 strings.

Maybe I can just ask on T5267.

chad edited edge metadata.
This revision is now accepted and ready to land.Nov 6 2016, 5:33 PM
This revision was automatically updated to reflect the committed changes.