Numpad dot key does not work for french locale

Bug #123704 reported by Geobert Quach
70
This bug affects 8 people
Affects Status Importance Assigned to Milestone
HomeBank
Fix Released
Low
Maxime DOYEN
homebank (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I'm using 3.4 unstable on Ubuntu Feisty Fawn with french language. When I add an operation, on the amount field I can't type with the numpad dot key. I have to use the comma key which slow down the typing.

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

I use a standard gtkspinbutton for amount widget and this widgte adapt to the user locale.
So in french the comma for amount is the 'decimal point' from a locale point of view, so it do not allow the dot (from numpad or not).
I have to study what to do. Maybe a specific widget that would only enable '0123456789.' for this tobe saised. But this could maybe annoy other users.

Changed in homebank:
assignee: nobody → mdoyen
Revision history for this message
Maxime DOYEN (mdoyen) wrote :

I have checked again, and this is the same for every gtk apps I know (for example the gimp).
I just chnage the status to 'confirmed'.

Changed in homebank:
status: New → Confirmed
Maxime DOYEN (mdoyen)
Changed in homebank:
importance: Undecided → Wishlist
Maxime DOYEN (mdoyen)
Changed in homebank:
status: Confirmed → New
Maxime DOYEN (mdoyen)
Changed in homebank:
importance: Wishlist → Undecided
status: New → Confirmed
Revision history for this message
Joan Duran (jodufi) wrote :

I have the same problem using HomeBank 4.0.2 on Ubuntu Jaunty with Catalan language

Maxime DOYEN (mdoyen)
Changed in homebank:
importance: Undecided → Low
Revision history for this message
Maxime DOYEN (mdoyen) wrote :

Yes, I have to check the gtkspin widget again. This is the widget I use for amount and in gimp for example with a french configuration, you can (must?) seize 123,45 and not 123.45.
In gnucash thus, you can seize both.

Revision history for this message
PETER Delphin (delphinpeter) wrote :

Slt, je suis désolé je ne parle pas anglais (très mal). Pour palier le faite que Home Bank ne prenait pas en compte le point du pavé numérique comme une virgule j'ai modifié une option de l'agencement du clavier.
Préférence=>Clavier=>Agencement=>France=>Option=>Comportement de la touche de suppression du pavé numérique

Là, j'ai modifié PAR DÉFAUT par TOUCHE OBSOLÈTE AVEC VIRGULE, après tout se passe nickel sous HomeBank.

J'espère que cette "solution provisoire" vous servira.

Pour info:
Ubuntu 10.04, HomeBank 4.1

Revision history for this message
Richard Genoud (richard-genoud) wrote :

This is quite a difficult "ethical" problem.
One one hand, homebank does things right, it respects the locale (because gtk+ respects the locale), and, in France, the comma should be used.
On the other hand, the french keyboard layout almost force you to use the dot instead of the comma (the decimal separator on the keypad is a dot).
And not to simplify things, some softwares respect the locale (homebank, open office spreadsheet ...), some others accepts dot or comma (gcalctool) and others accept only the dot (bc).
So should this be modified in homebank, like gcalctool does ?
In this case, a simple :
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinner), FALSE);
would do the trick. (I tested it, the comma and the dot are understood as decimal separator)
The second solution is to modify, as Peter said, the behavior of the keypad decimal separator so that it is replaced by a comma.
The downside of this, is that softwares that do not respect the locale (bc for instance) won't understand the comma as decimal separator...

Maybe the real good thing to do is to modify the rules of the french locale and accept dot OR comma as decimal separator but I guess this implies a change in the ISO 14652... which I don't think is gonna happen.

Revision history for this message
Joan Duran (jodufi) wrote :

Maybe the good solution it to modify the rules of the French locale in the ISO 14652 (which will not happen). But this is also a problem in a lot of other languages, like Catalan, Spanish.... so I think this is not the good solution.

I vote for the gcalctool solution (also is the gnucash solution) and accept dot and comma as a decimal separator. Actually is quite annoying introduce any number with this problem.

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

Here is some more observation:

- gimp (pencil opacity), you can only seize numbers and the locale dot (. or ,), numpad is dot
- gcalctool / money manager ex, you can seize all chars, but only one . or , is valid, numpad is dot
- libreoffice calc, only the locale separator is valid: in french 33,44 will convert to a number, 11.40 converted to a date or string, numpad is dot

So, HomeBank should probably for flexibility accept both . and , as decimal separator.

Revision history for this message
DarkRedman (darkredman-deactivatedaccount) wrote :

This bug is still present on Ubuntu 11.04 !

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

please don't open bug twice, HomeBank is not a ubuntu project. The bug to open here should only related to ubuntu package not projet thanks.

Changed in homebank:
milestone: none → 4.5
Changed in homebank (Ubuntu):
status: New → Invalid
Revision history for this message
Maxime DOYEN (mdoyen) wrote :

The previous comments (#10) was because I closed the ubuntu bug

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

I have finally worked on this yesterday. I have finally remove the gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinner), TRUE); but was not satisfied because the user can then seize anything into the widget. So I implemented a gtkentry filter to restrict the seizure to digits, minus sign, point and comma and also 2 digits after decimal separator.

Changed in homebank:
status: Confirmed → Fix Committed
Revision history for this message
Glotzbach (glotzbach) wrote :

Will the entered characters then be recognised as edited in the display format preferences (in my case: a comma as a decimal char and a dot as a grouping char), or is are the preferences solely for output (thus not for user input)?

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

You can only seize one of the 2 decimal char (point or comma), no grouping char.
this common (gcalc, gnucash and others) grouping char or unnecessary to be seized isn't it?

Revision history for this message
Glotzbach (glotzbach) wrote :

I see your point in not enabling the grouping char.
So, if I understand you correctly, both the comma and the point are accepted as decimal char.
Looking forward to the next version :)

Revision history for this message
Mélodie (meets) wrote :

Hi,

For one, I am being using HomeBank 4.4 in Archlinux and in Ubuntu : I share my homebank file between both when I am on one or other of the two distros.

For two, I just reported the same bug, then received a mail where I am informed that it has already been reported.

For three, I have reported the bug *by clicking in a menu of the application*, which lead me **here** at Launchpad. So what ?

Related to this one comment:

**********************************
Maxime Doyen (mdoyen) wrote on 2011-07-30: #10

please don't open bug twice, HomeBank is not a ubuntu project. The bug to open here should only related to ubuntu package not projet thanks.

**********************************

"HomeBank is not a ubuntu project" (sigh)

If anyone else thinks the bugs related to this app should not be reported here, would you please take you keyboard and send a mail to the developer of the application ? I suppose he is the only one who can change the link for "report bugs" in the menus of his program.

And to finish with this rant, I would like to say this : this bug has been reported year after year SINCE 2007 ! Shouldn't it be time to solve it ?

Thanks,
Mélodie

Revision history for this message
Mélodie (meets) wrote :

Hi,

Maxime, I just saw you are the dev of this project. So my question applies to you : where else is it possible to discuss about the features and eventual bugs, support requests and so on for HomeBank ? Would you then change the link in this menu ?

Thanks.
Mélodie

Revision history for this message
David Jones (dwrj87-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

I think that you have misunderstood a lot of the previous comments on this bug

The fact that you use Ubuntu has nothing to do with this. it is a bug with Homebank

There is no point in having many entries for the same bug. The correct way to handle them is to have them all in one location so that it is easy to discuss the bug

Launchpad is for FAR more than just Ubuntu. Ubuntu uses it in just the same way that Homebank does. The fact that it is Canonical, the company behind Ubuntu that runs Launchpad is irellevant

Maxime's comment about this not being an Ubuntu bug is true, like I said. Somebody previously filed it as a bug in Ubuntu when it isn't

This *is* the correct place to file bugs with Homebank

And as for the speed that the bug has being fixed, you are more than welcome to fix it yourself or use another program. Maxime is under no obligation to fix bugs at all if she doesn't want to

I suggest that you have some idea of what you are talking about before you go off on a rant!

Revision history for this message
Mélodie (meets) wrote : Re: [Bug 123704] Re: Numpad dot key does not work for french locale

On Sun, 05 Aug 2012 15:26:05 -0000
David Jones <email address hidden> wrote:

> I think that you have misunderstood a lot of the previous comments on
> this bug
>
> The fact that you use Ubuntu has nothing to do with this. it is a bug
> with Homebank
>
> There is no point in having many entries for the same bug. The correct
> way to handle them is to have them all in one location so that it is
> easy to discuss the bug
>
> Launchpad is for FAR more than just Ubuntu. Ubuntu uses it in just the
> same way that Homebank does. The fact that it is Canonical, the company
> behind Ubuntu that runs Launchpad is irellevant
>
> Maxime's comment about this not being an Ubuntu bug is true, like I
> said. Somebody previously filed it as a bug in Ubuntu when it isn't
>
> This *is* the correct place to file bugs with Homebank
>
> And as for the speed that the bug has being fixed, you are more than
> welcome to fix it yourself or use another program. Maxime is under no
> obligation to fix bugs at all if she doesn't want to
>
> I suggest that you have some idea of what you are talking about before
> you go off on a rant!
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/123704
>
> Title:
> Numpad dot key does not work for french locale
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/homebank/+bug/123704/+subscriptions

Hi David,

I have probably missed something, indeed.

So first point, the place is the right one. That's already good new. Then, the other
thing, but I didn't mention it in my comment, is that the gui in the Homebank program
brought me to a page where I just had to login and add my bug report, and I don't
remember seeing something inviting me to check if the bug has been reported before.

Then I received a message stating "already reported", and the guy who said so didn't
point to the link of the second thread, where I answered after. Let's say I got in a bad
mood, and don't worry about it. ^^

Just after, I wondered if I changed the setting in menus to use "." as a separator
instead of "," would it do the trick ? Unfortunately it didn't. I could use the dot from
the main keyboard, but the one from the numpad was still as mute as before.

Anyways, thank you to have taken the time to send a mail to me.

Best regards,
Joyce

PS: I have never learned to code, so I would be very unable to help fix this,
and add to this I could read at the bug report thread that there is a problem related to
some specific tech stuff which makes a choice difficult. My contribution is elsewhere (ie:
pclinuxos-fr.org, www.linuxvillage.net ... )

Revision history for this message
David Jones (dwrj87-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Before I said that it had already been reported, I'd linked the question to this bug :P

I can't remember the exact process of reporting a bug. Sorry I was so short with the reply to it, but I was heading out of the doors when I got the mail

This bug will be fixed in the next release, which shouldn't be too soon.

Maxime DOYEN (mdoyen)
Changed in homebank:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.