Comments (6)
It seems Haiku doesn't support locale-sensitive decimal mark.
from filer.
Until we can find a solution, why not allow "." and "," in the size text control, and when saving the rule, replace the "," with a "." before converting to a float if that isn't done automatically?
When loading the rule, you can do something like the following to localize the rule's size float:
float fromRule = 123.45;
BString result;
BNumberFormat numberFormat;
status_t status = numberFormat.Format(result, fromRule);
if (status == B_OK)
fPositiveNumberExampleView->SetText(result);
from filer.
why not allow "." and "," in the size text control
The user can enter either '.'
or ','
(or another decimal mark if there is more) depending on the current set locale.
from filer.
Pulkomandy is implementing BNumberFormat::Parse()
, which is the reverse of BNumberFormat::Format()
. Then I can use it to hopefully complete the fix for this issue.
from filer.
Well, It turns out that I don't have to use BNumberFormat::Parse()
to complete the fix.
from filer.
I think it works well enough. Just for completeness, I mention what could be improved (probably once Parse() exists): People currently cannot use 1000-delimiters, e.g. 1,234.56 (or German: 1.234,56). It's not crucial, but what separates Filer from perfection. :)
Let's mark this fixed then with #76 . Thanks!
from filer.
Related Issues (20)
- Conflict window: also shows location HOT 6
- Order of the tabs should follow the workflow HOT 2
- Beautfy the Conflict window HOT 2
- Crash on ignore conflicting file when multiple rules HOT 11
- Drag&drop behaviour and file panel modes/filters HOT 26
- Untyped files (on non-BFS partitions) in the file panel HOT 11
- Filer Zone replicant doesn't work well with Shelves different from Desktop
- Crash on rule involving attr checks
- Remove SQLite dependency
- Crashing Filer 1.2.2 HOT 2
- Add icon-button to specific tests to open file dialogs
- Replace Add/Remove buttons in AutoFiler tab to +/- buttons HOT 1
- File dialogs for folder-only selection should hide all files HOT 1
- Remove SQLite.
- Change file panel titles HOT 6
- Update and add more translations HOT 43
- doesn't build on x86_64 (gcc5)
- Filer crash immediately HOT 24
- gcc5 linker fails when linking AutoFiler
- Need to make v1.2.0 backward compatible with v1.1.0 wrt AutoFilerFolders
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filer.