kohana / ohanzee-helpers

Other
56 stars 10 forks source link

Date::fuzzySpan internationalization #11

Open peppelauro opened 10 years ago

peppelauro commented 10 years ago

Why don't internationalize the fuzzySpan method to allow multilanguage support?

shadowhand commented 10 years ago

What would be the best way to do that? Convert strings like "a few minutes" in Date::fuzzySpan to static::t("few", "minutes") and static::t("less than", "minutes), or something else? I'm not familiar with the best practices for i18n in this kind of situation.

peppelauro commented 10 years ago

Maybe it would be more simple to have the full string as "key", static::t("a few minutes")