simplify wording on Techdraw GUI
Re: simplify wording on Techdraw GUI
In general, \n should be invisible on CrowdIn if things are set up correctly: it should just display as a line break. In UI files the same is true. Sometimes developers will turn on Rich Text or HTML just to get line breaks, but they don’t need to do that, they can use \n (if using Designer) or just put in the line breaks with the Enter key (if hand editing the UI file). In source code you have to put in the \n, but CrowdIn should display it as a line break. If translators put in line breaks, they are returned and interpreted properly. CrowdIn’s poor rendering of HTML entities is annoying, I haven’t looked into whether this can be improved.
- wandererfan
- Veteran
- Posts: 6320
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: simplify wording on Techdraw GUI
I found where the html escape sequences are being added. In Qt Designer, the data entry panel for tool tips has two identical subpanels, one for html and one for plain text. If the coded is not paying attention and types plain text into the default panel, it is converted to html.
The is an Annotation menu for all annotation functions (cosmetic lines, text boxes, etc). One of those function is the simple text annotation.
I don't understand "all are now hidden". Hidden from the translation process?
- wandererfan
- Veteran
- Posts: 6320
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: simplify wording on Techdraw GUI
wandererfan wrote: ↑Mon May 29, 2023 1:11 pmI found where the html escape sequences are being added. In Qt Designer, the data entry panel for tool tips has two identical subpanels, one for html and one for plain text. If the coder is not paying attention and types plain text into the default panel, it is converted to html.
QtDesignerToolTipEntry.png
The is an Annotation menu for all annotation functions (cosmetic lines, text boxes, etc). One of those function is the simple text annotation.
I don't understand "all are now hidden". Hidden from the translation process?
- wandererfan
- Veteran
- Posts: 6320
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: simplify wording on Techdraw GUI
I found where the html escape sequences are being added. In Qt Designer, the data entry panel for tool tips has two identical subpanels, one for html and one for plain text. If the coder is not paying attention and types plain text into the default panel, it is converted to html.
QtDesignerToolTipEntry.png
The is an Annotation menu for all annotation functions (cosmetic lines, text boxes, etc). One of those function is the simple text annotation.
I don't understand "all are now hidden". Hidden from the translation process?
- wandererfan
- Veteran
- Posts: 6320
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: simplify wording on Techdraw GUI
Sorry about the spam. Pushed the wrong button somewhere.
Re: simplify wording on Techdraw GUI
by 'all', I means the two wording 'Dimensions' and the two wording 'Annotation' on the Preferences page.wandererfan wrote: ↑Mon May 29, 2023 1:13 pm I don't understand "all are now hidden". Hidden from the translation process?
yes. that's what kaktus has found as a proofreader, we worked on that yesterday.
sometimes, original strings are translated, and later we can not find them anymore for translation.
in the present case I wanted to change 'Dimensions' by 'Cotes' and 'Annotation' by 'Annotations'.
I guess there are some good translations now hidden to translators but it is out of scope of this topic.
no problem about spamming and good you have identified the root cause.
- wandererfan
- Veteran
- Posts: 6320
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: simplify wording on Techdraw GUI
@david69 & @kaktus will this PR issue #9693 cause problems for translation? It removes the html codes inserted by Qt Designer for 4 TechDraw ui.
I left the bold/italic line at the bottom of the preference panels in place as I don't know how to specify them without html.
I left the bold/italic line at the bottom of the preference panels in place as I don't know how to specify them without html.
Re: simplify wording on Techdraw GUI
thank you wandererfan for the PR.
understood, may be somebody else knows how to print bold/italic without html code.
Re: simplify wording on Techdraw GUI
Also, thank you for your efforts and time.
I understand that we won't get rid of all HTML formatting right away, and I think highlighting text the way you've done it is good and even necessary.
The snag is that there should not be too much of this formatting especially in cases where the same effect can be achieved without it.
I will try to find out how others do it.
Thank you very much again
I understand that we won't get rid of all HTML formatting right away, and I think highlighting text the way you've done it is good and even necessary.
The snag is that there should not be too much of this formatting especially in cases where the same effect can be achieved without it.
I will try to find out how others do it.
Thank you very much again
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
Re: simplify wording on Techdraw GUI
good idea kaktus to look for ex:
for the bold,
here are two examples and I don't see html code
https://crowdin.com/translate/freecad/3 ... fr#6600468
https://crowdin.com/translate/freecad/549/en-fr#6598526
here hmtl is used:
https://crowdin.com/translate/freecad/548/en-fr#6498589
for italic but not html code
https://crowdin.com/translate/freecad/2 ... fr#6498256
it seems as soon as there is a mix, html is required.
for the bold,
here are two examples and I don't see html code
https://crowdin.com/translate/freecad/3 ... fr#6600468
https://crowdin.com/translate/freecad/549/en-fr#6598526
here hmtl is used:
https://crowdin.com/translate/freecad/548/en-fr#6498589
for italic but not html code
https://crowdin.com/translate/freecad/2 ... fr#6498256
it seems as soon as there is a mix, html is required.