We have moved to a new Sailfish OS Forum. Please start new discussions there.
16

localized numeric keypad

asked 2015-08-11 16:53:51 +0200

hansabe gravatar image

Hi. I'm using a Jolla phone where I've selected Swedish as my local language. Now, that implies that when an app requires numerical input (at least a number of them I use) a numeric keypad is displayed. My guess is that because of my choise of localization (Swedish) this keypad has only one option to input a decimal delimiter which is the comma sign in swedish. Sadly though many apps (I use quite a few Android apps) do not recognize the comma sign but will only accept a period as a decimal delimiter. Sailfish (I'm on the latest official version) should present a numeric keypad that has 'buttons' for both comma and period signs (just like Android does). Without this feature Jolla/SailfishOS is not useful for 'everday life' usage since it can't be expected that every app possible has an option to choose what sign should be interpreted as a decimal delimiter.

edit retag flag offensive close delete

Comments

2

maybe an longpress and all the options (,.) would be not bad anyway ?

pawel ( 2015-08-13 13:39:54 +0200 )edit

2 Answers

Sort by » oldest newest most voted
2

answered 2015-08-13 12:15:06 +0200

AliN gravatar image

updated 2015-08-13 15:44:16 +0200

Yeah, there are two files for number keyboard, NumberLayoutLandscape.qml and NumberLayoutPortrait.qml, under /usr/share/maliit/plugins/com/jolla/ containing the following line for the decimal point:

        caption: Qt.locale().decimalPoint

You can change this line to:

        key: Qt.Key_Multi_key
        caption: "./,"
        text: ".,"

You must have enabled Developer Mode and set SSH password to be able to modify these files. Make a backup before changing system files.

If you need a detailed procedure, here you go:

  1. Save this package as n.tar.gz and put it on your home folder on the phone, i.e. /home/nemo.

  2. Open Terminal, and enter the following command to extract the downloaded package:

    tar -xf n.tar.gz

  3. Copy the extracted files to the file system:

    devel-su cp NumberLayout*.qml /usr/share/maliit/plugins/com/jolla

  4. Restart the maliit-server:

    systemctl --user restart maliit-server.service

Afterwards the decimal point on the number layout will work just like the +/- button. Here's a screenshot:

./, decimal point

edit flag offensive delete publish link more
0

answered 2015-08-13 16:24:54 +0200

hansabe gravatar image

Thank's for the quick response. Seems there is no problem then if you're a person used to 'hack' commands from a console ;) To my luck I've 'been there, done that' ;) IMHO though I would suggest that this excellent feature should be configured as standard. The very vast majority of users of smartphones (in general) are 'ordinary people' that wouldn't have a clue on how to change the config even with your very clear description. I would say there is a great difference between users of SailfishOS and users in general. My impression is that users of Jollaphone/SailfishOS are mostly people with a background of using Linux or similar platforms.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2015-08-11 16:53:51 +0200

Seen: 522 times

Last updated: Aug 13 '15