Closed
Bug 565165
Opened 15 years ago
Closed 11 years ago
make required pieces of services.m.c localizable
Categories
(Cloud Services :: Web Site - Deprecated, defect)
Cloud Services
Web Site - Deprecated
Tracking
(Not tracked)
RESOLVED
FIXED
1.5
People
(Reporter: mconnor, Assigned: stas)
References
Details
Attachments
(1 file, 1 obsolete file)
18.02 KB,
patch
|
mconnor
:
review+
|
Details | Diff | Splinter Review |
Axel, this is something like six strings
https://auth.services.mozilla.com/weave-password-reset
https://auth.services.mozilla.com/weave-delete-account
I'm going to move these onto services somehow, but we'll need strings. Even if they're just six strings in a text file, I can do some hacky stuff to use strings in PHP.
Flags: blocking-weave1.3+
Reporter | ||
Comment 1•15 years ago
|
||
Oops... didn't CC Axel here.
Comment 2•15 years ago
|
||
I'd more lean towards putting them into traditional PO and on https://localize.mozilla.org/.
CCing folks in the know there.
Reporter | ||
Comment 3•15 years ago
|
||
The goal is that they would live on services.mozilla.com in the future, and we don't necessarily want to localize all of that content, i.e. the changelogs. Not sure of the best path there, but you guys know this space better than I do. :)
Reporter | ||
Comment 4•15 years ago
|
||
https://services.mozilla.com/reset-password/ is up, I'll get the delete account page into SVN as well. Axel, how is best to get this UI localized? I'm a total newb, happy to read docs.
Reporter | ||
Updated•15 years ago
|
Target Milestone: --- → 1.3
Reporter | ||
Updated•15 years ago
|
Summary: get delete account/reset password pages localized → get delete account/reset password pages to services.m.c and localized
Reporter | ||
Updated•15 years ago
|
Target Milestone: 1.3 → 1.4
Reporter | ||
Updated•15 years ago
|
Flags: blocking-weave1.3+
Reporter | ||
Updated•15 years ago
|
Status: NEW → ASSIGNED
Summary: get delete account/reset password pages to services.m.c and localized → get required pieces of services.m.c localized
Reporter | ||
Updated•15 years ago
|
Target Milestone: 1.4 → 1.5
Assignee | ||
Comment 6•15 years ago
|
||
(In reply to comment #4)
> https://services.mozilla.com/reset-password/ is up, I'll get the delete account
> page into SVN as well. Axel, how is best to get this UI localized? I'm a
> total newb, happy to read docs.
Mike, where is the code of this page located? I wanted to take a look and see what l10n approach would be the best.
For now, without any additional info, I'm with Axel on using Gettext and putting the strings up on Verbatim (localize.mozilla.org).
Also, if you don't mind, I'll assign this to myself and change the description. We'll file separate bugs to get this localized, but for now, we need to make it localizable :)
Assignee: mconnor → stas
Summary: get required pieces of services.m.c localized → make required pieces of services.m.c localizable
Comment 7•15 years ago
|
||
Reporter | ||
Comment 8•15 years ago
|
||
Hey Stas, thanks for picking this up!
The pieces that need l10n support:
/delete-account/index.php
/reset-password/index.php
/privacy-policy/index.html
/tos/index.html
/index.html
/sync is just relnotes/updated pages for the addon, I don't know if we care about localization for those. My initial put is "not really" since the add-on is mostly going to be a leading development channel.
Assignee | ||
Comment 9•15 years ago
|
||
Here's a patch which adds gettext support in the php code. It includes:
- language detection via Pascal's library (http://granary.stage.mozilla.com/libs/l10n-demos/localeDetectionDemo.php). Pascal, can you have a look to see if I use it as you intended it to be used? I added one extra method in the ChooseLocale class which redirects to the localized page without caching.
- 4 example locales in locale directory (en-US, es, fr, pl) with one string translated
- an example of how to wrap strings with the _() function to make strings localizable (see reset-password/index.php, the "Reset Password" string)
- a set of maintenance scripts in locale/, with a README
You can see it live at my staging server:
http://services.dev.stasmade.com/reset-password/ (this should detect your locale and redirect accordingly)
The following should also work:
http://services.dev.stasmade.com/en-US/reset-password/
http://services.dev.stasmade.com/es/reset-password/
http://services.dev.stasmade.com/fr/reset-password/
http://services.dev.stasmade.com/pl/reset-password/
I'm using a RewriteRule in .htaccess to parse the URL like "/es/reset-password/" into "/reset-password/?locale=es". Mike, I'm flagging you for the review. Let me know if you see any issues with this patch.
The patch only adds support for localization via gettext, but we'll still need to wrap all localizable strings with the gettext's _() function. Mike, can you do that?
Also, I think that we could convert /index.html to PHP and use gettext there as well. For TOS and Privacy Policy, I think HTML will be a more suitable format, as long as you string freeze them for good. Pascal, what do you think?
Once all the strings are wrapped in the _() function and extracted to a POT file, I'll file a bug to put all localization files up on Verbatim.
Attachment #467446 -
Flags: review?
Attachment #467446 -
Flags: feedback?
Assignee | ||
Updated•15 years ago
|
Attachment #467446 -
Flags: review?(mconnor)
Attachment #467446 -
Flags: review?
Attachment #467446 -
Flags: feedback?(pascalc)
Attachment #467446 -
Flags: feedback?
Comment 10•15 years ago
|
||
Comment on attachment 467446 [details] [diff] [review]
Patch 1. Add gettext support
I have installed the site locally with your patch and it works fine, a couple nitpicks though:
* your redirection will probably not bypass the caching system without a vary:* header, you can reuse this:
http://viewvc.svn.mozilla.org/vc/projects/mozilla-europe.org/trunk/includes/redirect.php?revision=66823&view=markup#l36
another nit in this method is that the Location header should in theory have a full url not a relative one.
* we should not have hardcoded en-US url strings in the footer
Attachment #467446 -
Flags: feedback?(pascalc) → feedback-
Assignee | ||
Comment 11•15 years ago
|
||
Here's a patch addressing Pascal's comments (thanks Pascal!).
All localizable strings still need to be wrapped with _(). This patch does not do this.
Attachment #467446 -
Attachment is obsolete: true
Attachment #467815 -
Flags: review?(mconnor)
Attachment #467815 -
Flags: feedback?(pascalc)
Attachment #467446 -
Flags: review?(mconnor)
Assignee | ||
Comment 12•15 years ago
|
||
I changed the links in the footer point to:
* http://www.mozilla.com/$locale/about/legal.html
* http://www.mozilla.com/$locale/privacy-policy.html
but I think that they still redirect to en-US versions. I think we should link to http://mozilla-europe.org/$locale/about/privacy/ for European locales. (Or, even better, redirect http://www.mozilla.com/$locale/privacy-policy.html to http://mozilla-europe.org/$locale/about/privacy/.) Not sure about the Legal Notices page. Do we have translations for that?
Comment 13•15 years ago
|
||
We usually don't translate legal documents, the ones we have on mozilla-europe are an exception because they correspond to the European regulation on data conservation for European organizations like Mozilla Europe. In particular, Mozilla Europe does not keep data collected via web forms more than 5 months. I am not sure we should redirect people to the European privacy policy as the policy is slightly different in terms.
Reporter | ||
Comment 14•15 years ago
|
||
Comment on attachment 467815 [details] [diff] [review]
Patch 2. Addressed Pascal's comments
Looks good to me. I can handle getting the strings hooked up after this lands.
Attachment #467815 -
Flags: review?(mconnor) → review+
Reporter | ||
Comment 15•14 years ago
|
||
So... we've replaced the general user-facing parts with Account Portal (https://account.services.mozilla.com). There's the add-on landing page (add-on will be deprecated soon), the front-page, and the ToS/PP.
I guess the question is... do we care about what's left here? Nothing actually links to services.m.c directly anymore, except for the PP/ToS...
No longer blocks: 592378
Updated•13 years ago
|
Attachment #467815 -
Flags: feedback?(pascalc)
Assignee | ||
Comment 16•11 years ago
|
||
Closing as fixed. This was replaced by Firefox Accounts which is localized.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•