stuartlangridge / gnome-shell-clock-override

Override the Gnome Shell clock with a new time format or text of your choice. Works with new versions of Shell such as 3.18
MIT License
89 stars 33 forks source link

Slow time with natural language #39

Open lode opened 5 years ago

lode commented 5 years ago

Adds an option for slow time using natural language. This is roughly based on the idea of @Cj-Malone in https://github.com/stuartlangridge/gnome-shell-clock-override/issues/6.

I'm unsure about the locale changes with translations from format.js as I had some trouble building these translations in the .po files. Please let me know if this is not done in a correct way!

da2x commented 5 years ago

I’ll need some time to think about the possible localization issues this may cause. Help in reviewing this would be quite welcome.

brandl-muc commented 5 years ago

I’ll need some time to think about the possible localization issues this may cause. Help in reviewing this would be quite welcome.

Can you elaborate on the possible issues? Are you afraid that some languages cannot be represented with the given solution?

da2x commented 5 years ago

I really don’t know what the localization issues are, but I expect there to be many.

brandl-muc commented 5 years ago

I guess you are referring to something like this: How To Tell Time In Russian Although this page suggests that it would actually still work: Time in Russian

I guess the only way to play safe would be to have a localizable string for all 48 combinations in the 12 hour system. Would that be a better solution?

da2x commented 5 years ago

Danish and French use vigesimal numbers (base 20). I'm assuming they also more often round to 20 and 40 instead of quarters when telling time "naturally".

It's regional stuff like that I'm unsure about. I was hoping to find a more comprehensible resource covering common time expression internationalization issues, but few cover natural language (at least with English translations).

brandl-muc commented 5 years ago

I guest most peoples today really use a decimal system. I didn't and don't know about the Danish, but the French really only have irregular names for several multiples of ten - but also only those greater than 60.The clock should therefore be no problem for them. On the other hand halving seems natural, so halving an hour and then again halving that seems agnostic of the counting system.

But to actually make progress I only see three possibilities:

We sure can wait some more but I doubt this will shed more light on the subject.

brandl-muc commented 3 years ago

Trying to revive this one too. I'll try to argue for the 48 string approach. If it still doesn't sound like a good idea I would ask for declining this PR.

There are a few resources on the topic:

This strongly suggests that the basic concept of displaying the slow time based on quarters is sound. However I don't think that the code as it stands does the trick since languages might decline numbers differently with their counterparts of "past" and "to". (Russian in fact does just that)

Therefore, I would offer to adopt this to a 48 string system in case you would then accept it.