Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Time applet] No translation for days and months #401

Closed
wiiznokes opened this issue May 6, 2024 · 3 comments · Fixed by #455
Closed

[Time applet] No translation for days and months #401

wiiznokes opened this issue May 6, 2024 · 3 comments · Fixed by #455

Comments

@wiiznokes
Copy link
Contributor

Currently, it use chrono, with no support for translation

@wiiznokes
Copy link
Contributor Author

This will probably be implemented with the buildin DATETIME function of fluent. It seems that fluent-rs will support it sooner that later: projectfluent/fluent-rs#181.

https://github.com/kellpossible/cargo-i18n will probably need to make some adjustment after this is merged

@mmstick
Copy link
Member

mmstick commented May 11, 2024

Might be able to use gettext-rs or https://docs.gtk.org/glib/method.DateTime.format.html for that in the meantime, as it has these built in.

@wiiznokes
Copy link
Contributor Author

Here is the layout on gnome for reference,

English
Capture d’écran du 2024-05-14 02-34-30

French
Capture d’écran du 2024-05-14 02-36-39

I can't find how they handle the case to show the date (since it's not the same order based on locale), and the doc of strftime don't seems to provide a way to display either "14 may" or "may 14", or maybe i misread.
I searched in the gnome panel repo but haven't found.

This is the pr for this #429 , but it still contains some bugs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants