Moc / cookbook

Important: NOT READY FOR RELEASE YET!! A fully featured Cookbook plugin for e107, for all your recipes. Includes functionalities such as categorization, sharing, and bookmarking.
Apache License 2.0
2 stars 3 forks source link

Date format - hardcoded values #33

Open ericc-dream opened 5 months ago

ericc-dream commented 5 months ago

Bug Description

Nothing important but the values in the droplist to choose the date format are hardcoded making impossible to translate them. I see that you have added some "// TODO LAN" in the code, So I assume that you are aware May be also, in the help, you may explain what you mean by "long", "short" and "relative" ! I have an idea for the 2 first, but "relative" puzzle me :-)

How to Reproduce

Admin -> Cookbook -> Preferences -> Date format ; droplist You have to select another language than English, obviously

Expected Behavior

the choice translated in other languages

PHP Version

PHP Version 8.2.19

Client Information

Firefox 126.0.2 on Linux Kubuntu 23.10

Moc commented 5 months ago

Yeah still need to finish the LAN before releasing, thanks for the reminder.

The "long" and "short" date formats are defined in the e107 preferences. Go to Admin Area > Preferences > Date Display Options and you'll see.

"Relative" means that it shows how long ago it was relative to "now". So it could "5 minutes ago" or "3 weeks ago".