tritonmc / Triton

Translate your server! Sends the same message in different languages... Hooks into all plugins!
https://triton.rexcantor64.com
GNU General Public License v3.0
85 stars 34 forks source link

Custom DateTime format and timezone setting #420

Open SleepyAsh0191 opened 3 months ago

SleepyAsh0191 commented 3 months ago

Describe the Feature

As the title suggests, different regions have different time formats and time zones. I came up with this idea once while preparing a maintenance announcement.

Although it is possible to achieve this using [args], writing it that way is very cumbersome and not very flexible.

It would be great if there were new tags, such as [time], [date], or [datetime], where you could input a timestamp. Additionally, being able to configure the corresponding time format, time zone, and default settings in the Language Section would make it even better.

diogotcorreia commented 3 months ago

Hey! This is a nice suggestion, and especially the date/time format seems pretty easy to implement.

However, timezones might have a bit of a problem, since the same locale might have multiple timezones (a simple example is the USA). Additionally, other languages like Spanish are spoken in multiple countries around the world. One way to "combat" this is to pick the most likely timezone for that language and make sure that is included in the message (so that most people get it correct, but some must do the conversion). Not sure if this is too convoluted (from a user experience perspective).

I'll give it a thought and implement it if I have time, likely on Triton v4.