NavBoxes and translation

Anything related to the content on our wiki (https://wiki.factorio.com/)

Moderator: Bilka

Post Reply
mgiraud
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Aug 21, 2016 10:14 am
Contact:

NavBoxes and translation

Post by mgiraud »

I can see that there is some Work in progress regarding the templates concerning NavBoxes, e.g. Template:NavBox and Template:MachineNav, thanks to TheWombatGuru.

Will that job includes a solution for translation as it has been done in InfoBoxes?

The easiest solution for me is to create templates for fr, i.e. a Template:MachineNav/fr but it is probably not the best way to do the job. A good usage of template:Translation is probably better.

TheWombatGuru
Long Handed Inserter
Long Handed Inserter
Posts: 57
Joined: Tue Jul 08, 2014 10:01 am
Contact:

Re: NavBoxes and translation

Post by TheWombatGuru »

Yes, these navbox templates will autotranslate as soon as I find the time to add that functionality.

Our vision is to not have subtemplates for different languages but let most templates autotranslate using the Template:Translation/{{2 letter language code}} templates.

mgiraud
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Aug 21, 2016 10:14 am
Contact:

Re: NavBoxes and translation

Post by mgiraud »

Thanks.

I'll create MachineNav/fr as a temporary solution and remove it when you find the time to do the definitive solution for all navboxes.

TheWombatGuru
Long Handed Inserter
Long Handed Inserter
Posts: 57
Joined: Tue Jul 08, 2014 10:01 am
Contact:

Re: NavBoxes and translation

Post by TheWombatGuru »

Template:MachineNav now autotranslates, will do the others soon :)

TheWombatGuru
Long Handed Inserter
Long Handed Inserter
Posts: 57
Joined: Tue Jul 08, 2014 10:01 am
Contact:

Re: NavBoxes and translation

Post by TheWombatGuru »

All of the navbox templates now autotranslate

mgiraud
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Aug 21, 2016 10:14 am
Contact:

Re: NavBoxes and translation

Post by mgiraud »

You are just too fast!

Thanks.

TheWombatGuru
Long Handed Inserter
Long Handed Inserter
Posts: 57
Joined: Tue Jul 08, 2014 10:01 am
Contact:

Re: NavBoxes and translation

Post by TheWombatGuru »

haha, it wasn't that much work, I only had to replace the normal link [[ ]] brackets with Template brackets and throw in the TransLink template

mgiraud
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Aug 21, 2016 10:14 am
Contact:

Re: NavBoxes and translation

Post by mgiraud »

I had a look at the new templates. My only regret is that there are no doc subpage.

I spend some time to understand what was the use of the "anchor" parameters :)

But well done! I already use your work.

TheWombatGuru
Long Handed Inserter
Long Handed Inserter
Posts: 57
Joined: Tue Jul 08, 2014 10:01 am
Contact:

Re: NavBoxes and translation

Post by TheWombatGuru »

Yes, documentation is important, but I haven't gotten around to it yet. Expect it soon, but not asap

Post Reply

Return to “Wiki Talk”