Ticket #470 (Fixed)Fri May 17 14:09:29 UTC 2019
!SciCalc and Internationalisation.
Reported by: | Jean-Michel BRUCK (3009) | Severity: | Normal |
Part: | RISC OS: Application | Release: | |
Milestone: | Status | Fixed |
Details by Jean-Michel BRUCK (3009):
I use! Organize with Territory = France, otherwise the days of the week remain in English (info Chris Morison). But using! SciCalc, the calculations no longer work with decimal numbers. Looking at the source of SciCalc, it takes into account the ‘local’ parameters: the basic allows it: BASIC V is internationalised. @% can be set to print “,” instead of “.”
The error is due to the EVAL function that passed the comma. So I add a function FNLocale_val2
See the corrected file. https://jeanmichelb.riscos.fr/Download/SciCal_F…
I took the opportunity to add the use of the point of the numeric keypad as a comma with !SciCalc. I also added the internationalization of messages in a resources directory. The SetPath file is used to determine the territory and sets an environment variable for ! SciCalc to load the correct messages file.
Hoping to be understood, (translated with google translate) ….
Important! SciCalc continues to work with Territory = UK
Regards
Changelog:
Modified by Sprow (202) Fri, May 17 2019 - 21:09:51 GMT
- Part changed from Unspecified to RISC OS: Application
Sounds like a duplicate of Ticket #326 https://www.riscosopen.org/tracker/tickets/326
What version is this?
Why does the old change not work (any more)?
Modified by Jean-Michel BRUCK (3009) Tue, May 28 2019 - 09:36:37 GMT
Sorry, but I had not seen this ticket.
But, I use version 0.87 and the problem still exists
To the function EVAL, the separator( , or .") is still passed, which can not understand the Basic for each Territory, time consumming.
In the program when Eval is called, I replace the separator with a dot “.” and it no longer has a problem.
I added minor changes in the program:
1) To be able to use the point of the numeric keypad, a comma appears in the window of! Scicalc, which is planned by the program.
2) Have additional resources for messages in French, but it may not be the right method?
! SciCalc works fine with Territory = UK or French.
To do:Import numbers in the display field with drag and drop and ^ V.
Modified by Sprow (202) Sun, February 23 2020 - 11:17:27 GMT
Related test case from Fred
https://www.riscosopen.org/forum/forums/4/topic…
Modified by Chris (121) Sun, May 03 2020 - 09:16:29 GMT
- Status changed from Open to Fixed