Translating Templates on the Wiki

Discussions about the wiki documentation of FreeCAD and its translation.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
JoeKundlak
Posts: 54
Joined: Mon Oct 11, 2021 11:35 am

Translating Templates on the Wiki

Post by JoeKundlak »

Did not find this specified explicitly (or my search-fu failed me) so I am extrapolating from what I see on the Wiki.
How to correctly translate the Wiki Templates - like Docnav or GuiCommand?

Is it done by creating a new page, i.e. Docnav/sk of GuiCommand/sk and filling it up with translated template content?

Code: Select all

<div class="docnav" style="background-color:#ececef; border: 1px solid #a2a9b1; padding: 2px 10px 2px 10px; clear: both; margin: 10px 0;">
  <div style="float:left">{{#if: {{{1|}}}
                                    |{{#ifexist: {{{1}}}
                                    |{{#if:{{{IconL|}}}
                                        |[[File:Arrow-left.svg|16px]] [[File:{{{IconL}}}|16px]] [[{{{1}}}| Predchádzajúce: {{{1}}}]]
                                        |[[File:Arrow-left.svg|16px]] [[{{{1}}}| Predchádzajúce: {{{1}}}]]}}
                                    |{{#if:{{{IconL|}}}
                                    ...
                                    ...
                                    ...
                                           |[[Online_Help_Toc|Index]] [[File:{{{IconC}}}|24px]]<div></div>
                                           |[[Online_Help_Toc|Index]] [[File:Online_Help_Toc.svg|24px]]}} }}</div></div><noinclude>
Joe
---------------------------------------------------
translating into SK: https://wiki.freecadweb.org
User avatar
Roy_043
Veteran
Posts: 8409
Joined: Thu Dec 27, 2018 12:28 pm

Re: Translating Templates on the Wiki

Post by Roy_043 »

Yes, that's basically it.

Note 1: <noinclude> and everything that follows (the instructions) can be left out in the translated template.
Note 2: There are many templates that do not have any default text. Those do no require a translated version.
Note 3: DocNav/sk should be Docnav/sk.
User avatar
JoeKundlak
Posts: 54
Joined: Mon Oct 11, 2021 11:35 am

Re: Translating Templates on the Wiki

Post by JoeKundlak »

Thx! Yep, noticed the case in Docnav 8-)
Joe
---------------------------------------------------
translating into SK: https://wiki.freecadweb.org
Post Reply