Huessenbergnetz / ocNews

Qt/QML based ownCloud News App client for MeeGo and Sailfish OS
https://www.buschmann23.de/entwicklung/anwendungen/ocnews/
12 stars 6 forks source link

broken charset on push menu items #36

Closed palacex closed 10 years ago

palacex commented 10 years ago

Translated push menu itemps show like this ">:070BL"

buschmann23 commented 10 years ago

Where? Every item? With russian translation?

palacex commented 10 years ago

Yeah.... every item with russian translation in pushup menu :(

  1. main menu -> settings -> Updating. When i press "push up" menu i see "[]2B><0B8GA:8 ?@..." item instead of "Automatic on Wi-Fi"
  2. Translation source have a "hh:mm" item. I translate it and this translation broke feed date and time. I saw ÞÞ::ÍÍ(hh:mm in english) instead of 22:12, so i think is a date format and no reason to translate them.

2014-03-11 19:03 GMT+04:00 buschmann23 notifications@github.com:

Where? Every item? With russian translation?

Reply to this email directly or view it on GitHubhttps://github.com/Buschtrommel/ocNews/issues/36#issuecomment-37305570 .

buschmann23 commented 10 years ago

Yes it is a date. You should translate it only if the russion date and time format is different to the english one. In german for example it is dd.mm.yyyy US english has mm.dd.yyyy .....So, it is only there for this situations.

buschmann23 commented 10 years ago

This happens on Sailfish or on Harmattan? Tried it with pull down menu on Sailfish and it works for me. Also tested it with the header of the About page.

tigre-bleu commented 10 years ago

Qt is able to handle itself the date localisation. See http://qt-project.org/doc/qt-5.0/qtcore/qt.html#DateFormat-enum

I didn't test with Sailfish/Harmattan but normally it should automatically adapt the formatting to user locale if for instance Qt::SystemLocaleShortDate is used.

palacex commented 10 years ago

oh, sorry. It's happen on Harmattan.

2014-03-12 21:53 GMT+04:00 buschmann23 notifications@github.com:

This happen on Sailfish or on Harmattan?

Reply to this email directly or view it on GitHubhttps://github.com/Buschtrommel/ocNews/issues/36#issuecomment-37441041 .

buschmann23 commented 10 years ago

But I can not find a way to only localize the time with Qt. It is every time the whole date. But in some cases we only need the time (hours and minutes) and that are also a bit different in different countries. Some use 24h format, some 12h.

buschmann23 commented 10 years ago

Ok, I now tested it on Harmattan and I can confirm the issue. It only happens in the SelectionItems that have their entries derived from a ListModel. To translate the entries they are reassigned to the list, because it is not possible to translate ListItems directly. Have to investigate this.

buschmann23 commented 10 years ago

Closing this as fixed.