Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keypad: decimal point is not localized #333

Open
pixelzoom opened this issue Aug 29, 2017 · 6 comments
Open

Keypad: decimal point is not localized #333

pixelzoom opened this issue Aug 29, 2017 · 6 comments

Comments

@pixelzoom
Copy link
Contributor

Identical problem that was present in the old keypad, #279.

The decimal point is not localized, it's hardcoded (and duplicated) in multiple places in Keypad. E.g.:

245 [ new Key( '.', KeyID.DECIMAL ), new Key( '0', KeyID.ZERO ), new Key( ( new BackspaceIcon( { scale: 1.5 } ) ), KeyID.BACKSPACE ) ]
@jbphet
Copy link
Contributor

jbphet commented Aug 30, 2017

Ah yes, that did indeed get missed in the implementation of the new keypad. The GitHub issue that @pixelzoom links above - #279 - has a lot of information that will be germane to the implementation of this feature and should be used as a reference. I'll close that issue, and note that it is superseded by this one.

At one point in the discussion in #279 @ariel-phet says,

@jbphet I think we can automatically decide. it seems this convention is well established in various locales, and something we do not need to rely upon to be done by our translators.

I'm taking this to mean that in order to address this problem, code will be added to the keypad that will automatically decide based upon the locale whether to use a comma or a period as the decimal separator, and the decimal separator will not be settable via the translation utility.

Assigning to @ariel-phet to assign and prioritize, and to @pixelzoom to confirm that the proposed solution sounds workable. If we need to reconsider this decision and revisit the idea of making the decimal separate explicitly translatable, let's mark it for dev meeting and see if we can come to a final decision there.

@pixelzoom
Copy link
Contributor Author

I'm not sure what the best solution is to this problem. But decisions made in https://github.com/phetsims/dot/issues/68 (i18n: decimal comma separator) should be applied here.

@pixelzoom pixelzoom removed their assignment Aug 30, 2017
@ariel-phet ariel-phet assigned jbphet and unassigned ariel-phet Aug 30, 2017
@ariel-phet
Copy link

@jbphet keypad is getting lots of use. I think it would be good for you to tackle this issue once Gene Expression is in the testing cycle.

Agreed with the proposed solution that keypad will automatically decided based on locale

@jbphet
Copy link
Contributor

jbphet commented Nov 1, 2018

Assigning to @Denz1994 for followup once #283 has been addressed.

@jbphet
Copy link
Contributor

jbphet commented Jan 28, 2021

A user recently logged an issue related to this, see https://github.com/phetsims/dot/issues/68. There is also one in the rosetta repo, see phetsims/rosetta#252. When (and if) I or someone else starts working on localization of the decimal separator, the first step should be to organize and consolidate the related issues.

@zepumph zepumph mentioned this issue Feb 5, 2021
12 tasks
zepumph added a commit that referenced this issue Feb 5, 2021
@jbphet
Copy link
Contributor

jbphet commented Apr 8, 2021

The issue of decimal point localization was discussed during the 4/8/2021 Q2 planning meeting, see notes in phetsims/rosetta#263 (comment). Based on this, I'm marking this issue as deferred for now and will un-defer once we can get to work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants