Closed kaktusus closed 1 year ago
The following strings conflict in all tools where they occur is a global problem :cry:
Local u0394Z
Local u0394Y
Local u0394Z
"Dimension" is an easy fix, but I suspect a CrowdIn issue for the greek "delta" symbol there: it looks like the backslash is getting lost, or something like that. I wonder if we can create that ∆ in another way.
@yorikvanhavre what do you think about changing all of these to something like "Local %s"/"Global %s" and using a placeholder to do the replacement with "X", "Y", "Z", "∆X", "∆Y", or "∆Z", as needed? Then translators don't translate the axis or the delta. Does that work? Do any languages ever change the x, y, or z?
e.g.
self.labelx.setText(translate("draft", "Local {}").format("\u0394X")) # \u0394 = ∆ (Greek delta)
self.labely.setText(translate("draft", "Local {}").format("\u0394Y"))
self.labelz.setText(translate("draft", "Local {}").format("\u0394Z"))
Those languages that do not have a Latin alphabet can have their own letters. However moving the text out of the translation area seems like a good solution.
Sorry for the late response... good solution!
Not all labels have translations in the GUI.
Dimension
- string is in Crowdin (has a hidden parameter) https://crowdin.com/translate/freecad/548/en-pl#6607111Local ...
- All three string variants are in Crowdin https://crowdin.com/translate/freecad/548/en-pl#6604481 https://crowdin.com/translate/freecad/548/en-pl#6604485 https://crowdin.com/translate/freecad/548/en-pl#6604489The translation for
Local ...
does not work in the other tools in this menu either.