Closed
Bug 772108
Opened 13 years ago
Closed 13 years ago
[homepage] Links to Verbatim locale pages from Team pages
Categories
(Webtools Graveyard :: Elmo, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
2.4
People
(Reporter: peterbe, Assigned: peterbe)
References
Details
Attachments
(1 file, 1 obsolete file)
5.36 KB,
patch
|
Pike
:
review+
|
Details | Diff | Splinter Review |
On the Team page, we should link to the equivalent Verbatim page.
We might need to maintain a list of conversion rules and exceptions (e.g. pt-BR (elmo) --> pt_BR (verbatim))
Comment 1•13 years ago
|
||
There is some overlap in data with webby here, in particular with locales.
Also, not sure how much this can share with sumo/mdn hook-up.
Priority: -- → P2
Assignee | ||
Comment 2•13 years ago
|
||
To solve the "conversion", we have to manually write down the conversions in a list.
Also, perhaps we need a management command to debug which ones are missing.
Having >1 external links in the Team page sub-nav might excalate the challenge of that CSS problem.
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → peterbe
Assignee | ||
Comment 3•13 years ago
|
||
I wrote a scraper to pull down all locales from Verbatim and then compared them with another script.
Should I maybe turn all of that into a management command for future references?
Attachment #662261 -
Flags: review?(l10n)
Comment 4•13 years ago
|
||
Comment on attachment 662261 [details] [diff] [review]
Link to verbatim locale pages
Review of attachment 662261 [details] [diff] [review]:
-----------------------------------------------------------------
I like the idea, but I have nits.
When looking up locale codes, could you replace '-' with '_' first? That's the general web locale code -> glibc locale code process to begin with.
Also, I wonder if we should do
gliblocale = settings.VERBATIM_CONVERSIONS.get(code, code)
if gliblocale:
else
verbatimurl = None
and set the value to None in VERBATIM_CONVERSIONS for non-existing locales.
We should have that data alphabetically sorted, at least, too.
And yes, I'd love to see a management command to cross-check the locale lists on both sides.
Attachment #662261 -
Flags: review?(l10n) → feedback+
Assignee | ||
Comment 5•13 years ago
|
||
Attachment #662261 -
Attachment is obsolete: true
Attachment #663549 -
Flags: review?(l10n)
Comment 6•13 years ago
|
||
Comment on attachment 663549 [details] [diff] [review]
Implement all items from the review
Review of attachment 663549 [details] [diff] [review]:
-----------------------------------------------------------------
Two nits: We should make the pyquery dependency explicit in requirements/dev.txt, and make the command fail only at runtime if it's not there. And the command should have a help text.
With those, r=me.
::: apps/homepage/management/commands/verbatim-codes-check.py
@@ +16,5 @@
> +try:
> + from pyquery import PyQuery as pq
> +except ImportError, exc:
> + exc.args = tuple(['%s (tip: `pip install pyquery`)' % exc.args[0]])
> + raise
Move this into the handle function itself? Then we can get this command listed even if the import fails.
@@ +20,5 @@
> + raise
> +
> +
> +class Command(BaseCommand): # pragma: no cover
> +
Add a help = '' here, too? Might be a good place to mention the pyquery dependency.
Attachment #663549 -
Flags: review?(l10n) → review+
Comment 7•13 years ago
|
||
Commit pushed to develop at https://github.com/mozilla/elmo
https://github.com/mozilla/elmo/commit/baa0b24c20e61d2ce81b5ae3136b9130a04e7550
bug 772108 - Verbatim links on the locale pages, r=Pike
Assignee | ||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Target Milestone: --- → 2.4
Updated•5 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•