Skip to content

Commit bf44b69

Browse files
committed
Document - GUI dvelopment - added Localization requirements
1 parent 259ad89 commit bf44b69

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/src/gui/gui-dev-reference.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ It is already used and integrated into linuxcnc's system requirements. +
2525
While C or C\++ could be used, it severely limits who can maintain and develop them. +
2626
It would be better to extend python with C/C++ modules for whatever function that requires it.
2727

28+
== Localization
29+
Don't use the float number localization. Some localizations use a decimal points for float numbers, others use a decimal commas. Decimal points in some localizations are grammatically incorrect, but commas cause a lot of problems. It's almost impossible to rewrite the entire LinuxCNC to work with decimal commas. This resulted a mix of decimal points and decimal commas.
30+
It is advisable to use decimal commas acceptance in inputs. This can be implemented in Python as follows:
31+
[source,python]
32+
----
33+
string_to_float = string_to_float.replace(",", ".")
34+
----
35+
2836
== Basic Configuration
2937
Currently, most screens use a combination of INI file and preference file entries to configure their functions. +
3038
INi text files are usually used for the common machine controller settings, while text based preference files

0 commit comments

Comments
 (0)