betonme / e2openplugin-EnhancedMovieCenter

EMC is an enhanced movielist replacement for Linux based receivers.
36 stars 62 forks source link

Update EMCClockToText.py #245

Closed alec-cs closed 6 years ago

alec-cs commented 6 years ago

The hour, min display option in EMCClockToText.py (HourMin).

The [language].po files must be set as follows in enigma2 (for example):

msgid "time_hour_ct" msgstr " hour "

msgid "time_min_ct" msgstr " min

msgid "%A %B %d, %Y" msgstr "%Y, %B %d. - %A"

The hour,min can be displayed: (for example): "1h24m" or "1 hour 24 min" or "1h:24m" or ...

dhwz commented 6 years ago

Seriously are you trying to annoy me? I've told you more than once this already possible.

alec-cs commented 6 years ago

Hi,

Yes, but how is that possible?

Thank you for saying so many times. Okay, but give me an example.

The example you wrote: Format:%Hh:%Mmin

Does this show if there are only minutes?

My solution works like this (for example): if, 78 min -> 1 hour 18 min if, 34 min -> 34 min

Examples for use: "1 hour 18 min" or "1h:18m" or "34min" or ...

In addition, it can be formatted according to the different languages. It does not have to be written directly to the xml file so it can be universal!

Try it, check it out. I'm using it this way.

What do you suggest is working the same way? Show an example, code.

I spend time and energy on it to make it more usable and better to use.

I think my solution is even better!

Why do you mind if you embed my code? It does not bother anything, if it needs to be used.

I would like you to embed my code. Thanks.

I'm looking forward to your answer.

Ps: I'm not annoying man... :)