Closed
Bug 960291
Opened 12 years ago
Closed 4 years ago
[sync] Auto-detect locales when adding a project
Categories
(Webtools Graveyard :: Pontoon, defect, P4)
Webtools Graveyard
Pontoon
Tracking
(Not tracked)
RESOLVED
MOVED
People
(Reporter: mathjazz, Unassigned)
References
Details
When adding a new project in the admin view, user needs to select at least one locale. But we can simplify this process:
---
CASE A.
But often we use repositories as source files, that already include all locales, e.g.:
https://svn.mozilla.org/projects/l10n-misc/trunk/pontoon/testpilot/
Similarly, .ini files contain strings for all locales in one file.
In this case, we can auto-detect locales when importing strings from repository. But admins still need an option to disable some of the locales in the repository.
---
CASE B.
However, some repositories only contain files for one locale, so locales need to be set manually, e.g.:
http://hg.mozilla.org/releases/gaia-l10n/v1_1/en-US/
In this case, auto-detecting locales is not possible at all.
---
One way to implement this is to provide a "Auto-detect locales" checkbox in the project administration.
Detecting locales should be easy; we already have a function that detects the source folder (usually en-US or templates), so we only need to list all sister folders with localization files.
Comment 1•10 years ago
|
||
If we think about doing this in realtime during normal UI-interactions, then we need celery task to download repository and scan through files. Unfortunately, pontoon don't have any support for celery (yet). :mathjazz mentioned that :Osmose started some works with celery, so we'll be able to fix this issue in future.
Comment 2•10 years ago
|
||
(In reply to Jarek Śmiejczak from comment #1)
> If we think about doing this in realtime during normal UI-interactions, then
> we need celery task to download repository and scan through files.
> Unfortunately, pontoon don't have any support for celery (yet). :mathjazz
> mentioned that :Osmose started some works with celery, so we'll be able to
> fix this issue in future.
Which reminded me to file bug 1208536. I've got a local branch that has, among other things, the base code for enabling celery on the site, although I never got as far as getting things set up on staging.
| Reporter | ||
Updated•10 years ago
|
Summary: Auto-detect locales when adding a project → [sync] Auto-detect locales when adding a project
| Reporter | ||
Updated•10 years ago
|
Priority: -- → P4
Comment 3•4 years ago
|
||
*This bug has been moved to GitHub.*
*Please check it out on https://github.com/mozilla/pontoon/issues.*
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → MOVED
Updated•4 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•