Comments (4)
It looks like this would require either duplicating the timeAgo method or re-factoring timeAgo and timeUntil to use the same numbers and general logic. Interesting idea though.
from nsdate-timeago.
I would be very interested with this kind of feature too.
from nsdate-timeago.
Let's call this feature timeUntil
. We can implement it as follows:
- Someone (anyone) propose an English template for the new strings which we can review before accepting. This step will not modify the codebase.
- (Items 2 and 3 should be submitted at the same time.) Update the logic in the codebase to compute the strings for future dates using the approved template. Refactor and add function aliases as necessary. As @tjhenry suggests, I suspect we'll want the aliases (
timeAgo
,timeUntil
, etc.) to all compute the fully generalized method, but perhaps not. - Update all existing localizations with filler English-to-English versions of the new template and highly visible notices that the localizations are incomplete, with a request for help and a reminder to remove the notice upon completion.
- Notify the previous translators that the project has been updated. Politely request that they update the new strings. If the previous translators cannot contribute, find suitable substitute translators.
- Note that, as with
timeAgo
,timeUntil
may require localization-dependent logic.
Obviously, more complex than writing an if/else block in English, but also useful to more people.
from nsdate-timeago.
It would be nice to solve #11 at the same time, perhaps by adding repeated versions of the base strings with different capitalization formats.
from nsdate-timeago.
Related Issues (20)
- Time Ahead HOT 3
- "3 месяцев назад" -> "3 месяца назад"
- Swift 3
- Persian (fa) localization
- Crashing in iOS 10.2 version only in release version
- Bahasa Strings HOT 2
- Slovak strings - rename file
- How to add New Language ?
- let dateFormatter: NSDateFormatter = NSDateFormatter()
- time to HOT 2
- Part of zh-Hans.lproj is not right
- I cannot import pod to Swift project HOT 8
- arm64 Support!
- iOS8.0 deprcated HOT 2
- Swift timeAgo returns empty string. HOT 6
- Carthage Support
- Pluralization dont work because wrong RU locale code HOT 1
- Projects including this file are unable to export XLIFFs in Xcode 6.3 and up. HOT 2
- Push to Cocoapods Trunk HOT 7
- French localization should be improved
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nsdate-timeago.