W dniu 23.11.2015 o 15:58, Renato Filho pisze:
> In fact this command looks redundant:
>
> text: i18n.tr(currentMonth.toLocaleString(Qt.locale(),i18n.tr("MMMM yyyy")))
>
> you do not need the extra: i18n.tr(....) covering the result of
> 'currentMonth.toLocaleString(Qt.locale(),i18n.tr("MMMM yyyy"))'
>
> besides that everything looks good. I did some tests on my device and
> I did not find any problem, it printed the correct month name in Pt
> BR.
>
> You can check if you system is using the correct languange by trying
> this command on your terminal: date +%B, it should print the full
> month name in your language.This is because date formatting shouldn't be used here. There's a separate method for standaloneMonthName [1] as opposed to possessive, which is used in date formatting. Check out the sample code [2]. [1] http://doc.qt.io/qt-5/qml-qtqml-locale.html#standaloneMonthName-method [2] http://pastebin.ubuntu.com/13477242/ HTH, -- Michał Sawicz <[email protected]> Canonical Ltd.
signature.asc
Description: OpenPGP digital signature
-- Mailing list: https://launchpad.net/~ubuntu-phone Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp

