Closed Bug 1300111 Opened 8 years ago Closed 8 years ago

Remove 'X days ago' concise strings from TimeConstants

Categories

(Firefox for iOS :: General, defect, P1)

Other
iOS
defect

Tracking

()

RESOLVED FIXED
Iteration:
1.4

People

(Reporter: sleroux, Assigned: bmunar)

References

Details

(Whiteboard: [MobileAS])

Attachments

(1 file)

(deleted), text/x-github-pull-request
sleroux
: review+
Details
Due to issues with localization, we won't be able to properly translate the many plural form issues that come with localizing these kinds of string [1]. Instead of using these plural forms, let's use the existing strings and revert the `isConcise` changes to TimeConstants. [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1181777
Priority: P3 → P2
How about we use a third party library instead? https://github.com/kevinlawler/NSDate-TimeAgo does exactly what we want and is already localized in 33 languages. Does this support all the languages we need? If not maybe we could send a PR to add support for the missing languages?
Flags: needinfo?(splewako)
> How about we use a third party library instead? https://github.com/kevinlawler/NSDate-TimeAgo I think this is a great idea. I can see us forking this repo, maybe adding Carthage compatibility, and add the missing locales there then PR the changes back.
Also it looks like that library has been folded into DateTools (https://github.com/MatthewYork/DateTools)
(In reply to Farhan Patel from comment #1) > How about we use a third party library instead? > https://github.com/kevinlawler/NSDate-TimeAgo > does exactly what we want and is already localized in 33 languages. Does > this support all the languages we need? If not maybe we could send a PR to > add support for the missing languages? It could be complicated (Flod could probably say more about this) and right now, with this library as is, it would be even worse than the current state for Polish (unacceptable really) even with bug 1289590 problematic patch applied.
Flags: needinfo?(splewako) → needinfo?(francesco.lodolo)
Not the mobile owner (that would be Delphine), but I personally would not depend on translations made by external entities.
Flags: needinfo?(francesco.lodolo)
Assignee: nobody → bmunar
Priority: P2 → P1
Status: NEW → ASSIGNED
Ok, I will revert the changes back!
Attached file PR (deleted) —
Attachment #8788602 - Flags: review?(sleroux)
Attachment #8788602 - Flags: review?(sleroux) → review+
master https://github.com/mozilla/firefox-ios/commit/b25b9ccee45cdbcdcd89079b1eea125088633243 Let's use https://bugzilla.mozilla.org/show_bug.cgi?id=1181777 to discuss alternatives such as using a third party library moving forward.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Iteration: --- → 1.4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: