kevinlawler/NSDate-TimeAgo — pull request #6 by mixdesign (2012-12-11 05:44:26+00:00)
Title: Russian localization

The complete localization for Russian.
Russian translation is somehow complicated. The translation depends on
some different time. It has 3 rules that was applied in this commit. I
had to create new method getLocaleFormatUnderscoresWithValue with
description:

- Method : getLocaleFormatUnderscoresWithValue
- Param : value (Double value of seconds or minutes)
- Return : @"" or the set of underscores ("_")
in order to define exact translation format for specific
translation rules.
(Ex: "%d _seconds ago" for "%d секунды назад", "%d
__seconds ago" for "%d секунда назад",
and default format without underscore %d seconds ago" for
"%d секунд назад")
Note : This method must be used for all languages that have
specific translation rules.
Using method argument "value" you must define all possible
conditions language have for translation
and return set of underscores ("_") as it is an ID for
locale format. No underscore ("") means default locale format;

I've tested it, and it works fine.

Glad to be a part of this project!

Almas Adilbek
http://mixdesign.kz