s-ludwig / fuzzydate

Simple fuzzy date string generator
MIT License
1 stars 2 forks source link

Quick and dirty solutions #2

Closed Bolpat closed 6 years ago

Bolpat commented 7 years ago

Just to discuss about them. What do you think?

Bolpat commented 7 years ago

I first made the imperative one. Then I actually liked the OO one more, but I didn't want to withhold the imperative one.

s-ludwig commented 7 years ago

That I wondered was if it would be feasible to implement the full plural form feature of PO files for the vibe.web.i18n module (e.g. Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2;) and use that. That would keep the code base as clean as possible and would not require any later adjustments when new languages are added. What do you think?

georgy7 commented 7 years ago

@s-ludwig Using standard tools is the best solution, but I am not competent in PO files, gettext, etc.