Then everything is ok.
[In progress] Autotranslate Template for [[#top|top]]
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Autotranslate Template for [[#top|top]]
Yes that is how the system work. I never really thought about this until now. We are using it only for the categories at the bottom of the page, but {{#translation:}} can be used anywhere.
{{Docnav{{#translation:}} }}
{{GuiCommand{{#translation:}} }}
See also here:
https://forum.freecadweb.org/viewtopic. ... 17#p527617
Re: Autotranslate Template for [[#top|top]]
To use a Top template the Wiki code would look like this I suppose:
</translate>{{Top{{#translation:}}}}<translate>
</translate>{{Top{{#translation:}}}}<translate>
Re: Autotranslate Template for [[#top|top]]
I understand that this will be converted to:
{{Top/en}}
{{Top/ru}}
{{Top/it}}
etc...?
It is quite good.
When the english variant of template is be complete, I will make a translation into my own language.
And needs to update at least one page with a new template for check how it works.
Re: Autotranslate Template for [[#top|top]]
no no no ...
The syntax must be as Roy wrote.
Everything happens "automatically".
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: Autotranslate Template for [[#top|top]]
I was able to create a single template for all languages:
https://wiki.freecadweb.org/Template:Top
You can check if the Russian text is OK.
The code to use is:
If you replace [[#top|top]] you should also remove the translation tag above it:
Becomes:
https://wiki.freecadweb.org/Template:Top
You can check if the Russian text is OK.
The code to use is:
Code: Select all
</translate>{{Top}}<translate>
If you replace [[#top|top]] you should also remove the translation tag above it:
Code: Select all
<!--T:nn-->
[[#top|top]]
Code: Select all
</translate>{{Top}}<translate>
Re: Autotranslate Template for [[#top|top]]
It works perfectly.
Edit:
It would be good to improve the description on the page. https://wiki.freecadweb.org/WikiPages#Links
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: Autotranslate Template for [[#top|top]]
I'll explain,
at https://wiki.freecadweb.org/WikiPages
we have a prepared description for writers and translators, with templates and with examples of their use.
We have a new version of one template, so it's worth writing about, the syntax of how to use it has changed.
at https://wiki.freecadweb.org/WikiPages
we have a prepared description for writers and translators, with templates and with examples of their use.
We have a new version of one template, so it's worth writing about, the syntax of how to use it has changed.
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".