Jump to content


Photo

Change date format


  • Please log in to reply
13 replies to this topic

#1 Chelsea

  • Member
  • 47 posts

0
Neutral

Posted 6 May 2014 - 19:57

Hi.
I usage Openpli 4 on my Vu+ Duo 2 using orginal skin.

How can I have change the date format ?

Currently the date are shown as 06.05.2014 or in some case as 6.5. (dd.mm.yyyy) or (d.m)

This are not standard date formate in Sweden. I like it to show the date formatted as yyyy-mm-dd e.g 2014-05-06

All help are very welcome

Re: Change date format #2 mattiL

  • Senior Member
  • 268 posts

+5
Neutral

Posted 11 May 2014 - 12:09

Have you set the GUI to use Swedish language?



Re: Change date format #3 Dimitrij

  • PLi® Core member
  • 10,334 posts

+351
Excellent

Posted 11 May 2014 - 13:46

Have you set the GUI to use Swedish language?

http://sourceforge.n.../ClockToText.py


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Change date format #4 Chelsea

  • Member
  • 47 posts

0
Neutral

Posted 11 May 2014 - 21:45

Have you set the GUI to use Swedish language?



Yes.

Re: Change date format #5 Chelsea

  • Member
  • 47 posts

0
Neutral

Posted 11 May 2014 - 22:16

Have you set the GUI to use Swedish language?

http://sourceforge.n.../ClockToText.py

I found a file ClockToText.pyo in /usr/lib/enigma2/python/Components/Converter/

How can I change it to affect my need ?

 

Move it to my computer and run pyton editor and change the date format and then copy it back ?



Re: Change date format #6 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 12 May 2014 - 10:23

Complain to the skin builder about not using the correct calls for displaying date/time information.

If I understand correctly, you're using the default skin so you're already complaining in the right place here :)

It is a bug in the skin.
Real musicians never die - they just decompose

Re: Change date format #7 Chelsea

  • Member
  • 47 posts

0
Neutral

Posted 12 May 2014 - 15:40

Are there any way to struggle with this by your self?

Re: Change date format #8 ims

  • PLi® Core member
  • 13,802 posts

+214
Excellent

Posted 12 May 2014 - 16:31

I think, it is possible for language change it with format in .po file.


Kdo nic nedělá, nic nezkazí!

Re: Change date format #9 Chelsea

  • Member
  • 47 posts

0
Neutral

Posted 13 May 2014 - 16:39

In Webif the dataformat are shown as dd.mm.yyyy, correct for Sweden are yyyy-mm-dd

Re: Change date format #10 ims

  • PLi® Core member
  • 13,802 posts

+214
Excellent

Posted 13 May 2014 - 18:06

Once again, your translator must to look into your .po file and see, if there are strings for date and "translate" it into your format. As I saw (if is it sv.po ?), all this strings there are "translated" to same format as original source.

 

F.eg: %d.%B %Y  it translated to %d.%B %Y  but as you wrote, you want: %Y-%B-%d


Edited by ims, 13 May 2014 - 18:12.

Kdo nic nedělá, nic nezkazí!

Re: Change date format #11 Chelsea

  • Member
  • 47 posts

0
Neutral

Posted 14 May 2014 - 21:27

Ok. Who are the translator for the swedish (sv)?

If it's possible, I can do it by my self. I need to know where I can find the file. Are this wroten in python?

Re: Change date format #12 ims

  • PLi® Core member
  • 13,802 posts

+214
Excellent

Posted 14 May 2014 - 22:07

See on source file, there is translator http://sourceforge.n...ree/po/sv.po#l9

You can download this file, open it in po-editor (it does exist for Linux and for Win too ... poedit ), change string and save => sv.mo. Then rename sv.mo to enigma2.mo and replace it in your box ( /usr/share/enigma2/po/sv/LC_MESSAGES/ ). Restart gui and you will see.

 

or try this file, where I changed it.

 

 

Attached Files


Kdo nic nedělá, nic nezkazí!

Re: Change date format #13 Chelsea

  • Member
  • 47 posts

0
Neutral

Posted 15 May 2014 - 05:55

See on source file, there is translator http://sourceforge.n...ree/po/sv.po#l9
You can download this file, open it in po-editor (it does exist for Linux and for Win too ... poedit ), change string and save => sv.mo. Then rename sv.mo to enigma2.mo and replace it in your box ( /usr/share/enigma2/po/sv/LC_MESSAGES/ ). Restart gui and you will see.
 
or try this file, where I changed it.
 
 



Thank you. I will dö this.

Re: Change date format #14 Chelsea

  • Member
  • 47 posts

0
Neutral

Posted 21 May 2014 - 22:27

See on source file, there is translator http://sourceforge.n...ree/po/sv.po#l9

You can download this file, open it in po-editor (it does exist for Linux and for Win too ... poedit ), change string and save => sv.mo. Then rename sv.mo to enigma2.mo and replace it in your box ( /usr/share/enigma2/po/sv/LC_MESSAGES/ ). Restart gui and you will see.

 

or try this file, where I changed it.

I have yet not have the time to make my own sv.mo, will see if I can do this on coming weekend.

 

But what have you change in your enigma2.mo ?

I can't see it will affect any date format at all?




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users