Automatically detect multi-locale repos

RESOLVED FIXED

Status

Webtools
Pontoon
RESOLVED FIXED
3 years ago
2 years ago

People

(Reporter: mkelly, Assigned: jotes, Mentored)

Tracking

Trunk

Firefox Tracking Flags

(firefox44 affected)

Details

(Reporter)

Description

3 years ago
Currently, a repo URL must be marked as multi-locale for the string replacement of {locale_code} to happen, but there's nothing stopping us from simply detecting {locale_code} within the URL and assuming that the repo is multi-locale.

We should change Repo.multi_locale to a property that returns True if the substring is present in the URL, and false otherwise.
(Assignee)

Updated

2 years ago
Assignee: nobody → jot

Comment 1

2 years ago
Commit pushed to master at https://github.com/mozilla/pontoon

https://github.com/mozilla/pontoon/commit/64584095756fe9fba4a18a0da0368670f28eee7b
Bug 1207826 - Changed multi_locale db field into object property.
(Assignee)

Comment 2

2 years ago
:Osmose Hi, can we close this issue? Thanks for mentorship.
Yes :)
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.