Improving templates: PropertyData and PropertyView

Discussions about the wiki documentation of FreeCAD and its translation.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Improving templates: PropertyData and PropertyView

Post by Evgeniy »

I thing this templates must be look like this:

Code: Select all

{{Variable|{{{1}}}|{{#switch:{{#translation:}}
|/en=Data
|/ru=Данные

... other language translations

|Data}}|{{{2|}}}|{{{3|}}}|}}<noinclude>
</noinclude>

Template for test:
https://wiki.freecadweb.org/index.php?t ... ction=edit

Results on Russian page:
https://wiki.freecadweb.org/Arch_Structure/ru
Данные (Recalc)Tool (Bool): an optional extrusion path
This does not require modification of the pages, while the sections "Data" and "View" in which these values are stored will be translated.
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Re: Improving templates: PropertyData and PropertyView

Post by Evgeniy »

Roy_043 wrote: Mon Sep 06, 2021 6:50 pm
Evgeniy wrote: Mon Sep 06, 2021 6:18 pm 1. May be add the ability to display not only the hidden type to the template?
What other types do you mean?
Evgeniy wrote: Mon Sep 06, 2021 6:18 pm 2. Is possible to extend "Data" text with {{#switch:}} as in #top template?
Don't know how useful that is, sometimes you need more flexibility than such a template can offer: Draft_Dimension. And, contrary to the Top link, these headings typically do not occur multiple times on a single page. And where would you end, do you also want to create templates for the other standard headings (Description, Usage, etc.)?

1. There are more than three of these types. But I don't remember it all.
typeofproperty.png
typeofproperty.png (10.88 KiB) Viewed 2541 times


2. Perhaps, but I think it's too early to talk about the headlines. Although such a tag would allow to translate ~5% of Wiki at once, without the work of translators. I thing this idea is need another {{switch: using.
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Re: Improving templates: PropertyData and PropertyView

Post by Evgeniy »

Ready template for ProperyView

Code: Select all

{{Variable|{{{1}}}|{{#switch:{{#translation:}}
|/pt-br=Vista
|/ru=Вид
|/de=Ansicht
|/en=View
|/fr=Vue
|/pl=Widok
|/es=Vista
|/it=Vista
|/ro=Vizualizare
|/tr=Görünüm
|/hr=Pregled
|/cs=Pohled
|/sv=Vy
|/zh-cn=视图
|/uk=Вигляд
|/pt=Ver
|/ja=ビュー
|/ko=보기
|/id=Tampilan
|/zh-tw=檢視
|View}}|{{{2|}}}|{{{3|}}}|}}<noinclude></noinclude>
Ready template for ProperyData

Code: Select all

{{Variable|{{{1}}}|{{#switch:{{#translation:}}
|/pt-br=Dados
|/ru=Данные
|/de=Daten
|/en=Data
|/fr=Données
|/pl=Dane
|/es=Datos
|/it=Dati
|/ro=Date
|/tr=Veri
|/hr=Podaci
|/cs=Údaje
|/sv=Data
|/zh-cn=数据
|/uk=Дані
|/pt=Dados
|/ja=データ
|/ko=데이터
|/id=Data
|/zh-tw=資料
|Data}}|{{{2|}}}|{{{3|}}}|}}<noinclude></noinclude>
Only for languages presented in wiki and in FreeCAD interface.
User avatar
kaktus
Veteran
Posts: 1183
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: Improving templates: PropertyData and PropertyView

Post by kaktus »

Cool stuff you're doing. :D

I used to make Polish versions of these templates, and now you automate everything.


next true and false :?:
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".
User avatar
Roy_043
Veteran
Posts: 8541
Joined: Thu Dec 27, 2018 12:28 pm

Re: Improving templates: PropertyData and PropertyView

Post by Roy_043 »

Replacing 20+ templates with a single template is a good idea of course. So please change the "Official" templates. But can you sort the languages A-Z? :mrgreen:

Note: Compared to the Top template 4 languages are missing:

Code: Select all

/bg
/hu
/zh
/zh-hant
IMO we support way too many (24) languages. But that is a different discussion of course.

Regarding the property type: A property may f.e. be hidden AND read-only. How do you propose to handle that?
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Re: Improving templates: PropertyData and PropertyView

Post by Evgeniy »

"Official" templates changed.

All wiki languages are added and sorted.

/bg /zh /zh-hant must be translated mannualy, others is exported from FC interface. /bg I've already translate

I found is german users use own templates:
https://wiki.freecadweb.org/Special:Wha ... rtyData/de
https://wiki.freecadweb.org/Special:Wha ... rtyView/de
Probably these templates can not be deleted because there are several links to them...


Roy_043 wrote: Tue Sep 07, 2021 6:48 pm Regarding the property type: A property may f.e. be hidden AND read-only. How do you propose to handle that?
I don't have a clear vision of what kind of separator can be applied. Maybe just use a space char for now. Or ","+space.
The main thing is that text it looks be readable.

---------------------------------------------------------
Roy_043 wrote: Tue Sep 07, 2021 6:48 pm

Code: Select all

/bg
/hu
/zh
/zh-hant
Why /hu and /zh-hant is not presented here? :
https://wiki.freecadweb.org/Special:SupportedLanguages
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Re: Improving templates: PropertyData and PropertyView

Post by Evgeniy »

kaktus wrote: Tue Sep 07, 2021 5:23 pm Cool stuff you're doing. :D

I used to make Polish versions of these templates, and now you automate everything.


next true and false :?:
Hi
I'm not entirely sure about the fact that TRUE and FALSE can be translated into different languages in Crowdin.
If this is the case, then it is better to save that in English for now.
Yes, there are many ideas, but not all at once.
User avatar
kaktus
Veteran
Posts: 1183
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: Improving templates: PropertyData and PropertyView

Post by kaktus »

Evgeniy wrote: Tue Sep 07, 2021 10:29 pm ...
I'm not entirely sure about the fact that TRUE and FALSE can be translated into different languages in Crowdin.
...
This can be done, but only in those occurrences where it is exported.
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".
User avatar
Roy_043
Veteran
Posts: 8541
Joined: Thu Dec 27, 2018 12:28 pm

Re: Improving templates: PropertyData and PropertyView

Post by Roy_043 »

Evgeniy wrote: Tue Sep 07, 2021 8:20 pm "Official" templates changed.
Thanks!

Evgeniy wrote: Tue Sep 07, 2021 8:20 pm Why /hu and /zh-hant is not presented here? :
https://wiki.freecadweb.org/Special:SupportedLanguages
I don't understand that either.
User avatar
Roy_043
Veteran
Posts: 8541
Joined: Thu Dec 27, 2018 12:28 pm

Re: Improving templates: PropertyData and PropertyView

Post by Roy_043 »

Evgeniy wrote: Tue Sep 07, 2021 8:20 pm I found is german users use own templates:
There are many translations. PropertyData has 12.
Post Reply