wordpress-mobile / WordPress-iOS

WordPress for iOS - Official repository
http://ios.wordpress.org/
GNU General Public License v2.0
3.69k stars 1.12k forks source link

Reader relative dates are not translation friendly #18

Closed koke closed 11 years ago

koke commented 11 years ago

Strings like "%i hour ago"/"%i hours ago" can't be properly translated to some languages without proper plural support.

More info about plurals: http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html

Simpler date formatting option using NSDateFormatter: https://gist.github.com/koke/6028357

Another option is Smartling, but that'd require patching Glotpress and our translation scripts

koke commented 11 years ago

More discussion at http://make.wordpress.org/mobile/2013/07/22/for-our-next-reader-release-we-were-using/