cakephp / localized

I18n and L10n related CakePHP code
Other
214 stars 179 forks source link

French: incorrect dateAgoInWords translation #216

Closed Erwane closed 1 year ago

Erwane commented 3 years ago

hi, In english, very far date are writtens generated on 12/23/2012 The dateAgoInWords() method generate on %s string. This is here https://github.com/cakephp/cakephp/blob/3653648f88a14f526665f6b0d0b156ea868b4e88/src/I18n/RelativeTimeFormatter.php#L410

The on %s is translated as sur %s. on is well translated by sur in french, but not in date case :/ The right translation, is le %s (the %s in english)

There is a possibility to distinguish that ? Thanks

dereuromark commented 1 year ago

Can you check if https://github.com/cakephp/localized/pull/218 solved this?

But right now I dont think there is You will have to write your own extension.

This here is only the locale strings for current core, not for issues around them.

Erwane commented 1 year ago

Not solved :( I should check if on %s is only used there, in this case, we can translate it as le %