NavBoxes and translation

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

NavBoxes and translation

Postby mgiraud » Mon Aug 29, 2016 5:10 pm

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.
mgiraud
Burner Inserter
Burner Inserter
 
Posts: 7
Joined: Sun Aug 21, 2016 10:14 am

Re: NavBoxes and translation

Postby TheWombatGuru » Mon Aug 29, 2016 5:53 pm

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.
TheWombatGuru
Long Handed Inserter
Long Handed Inserter
 
Posts: 60
Joined: Tue Jul 08, 2014 10:01 am

Re: NavBoxes and translation

Postby mgiraud » Mon Aug 29, 2016 7:21 pm

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.
mgiraud
Burner Inserter
Burner Inserter
 
Posts: 7
Joined: Sun Aug 21, 2016 10:14 am

Re: NavBoxes and translation

Postby TheWombatGuru » Mon Aug 29, 2016 11:45 pm

Template:MachineNav now autotranslates, will do the others soon :)
TheWombatGuru
Long Handed Inserter
Long Handed Inserter
 
Posts: 60
Joined: Tue Jul 08, 2014 10:01 am

Re: NavBoxes and translation

Postby TheWombatGuru » Tue Aug 30, 2016 12:59 am

All of the navbox templates now autotranslate
TheWombatGuru
Long Handed Inserter
Long Handed Inserter
 
Posts: 60
Joined: Tue Jul 08, 2014 10:01 am

Re: NavBoxes and translation

Postby mgiraud » Tue Aug 30, 2016 5:09 am

You are just too fast!

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

Re: NavBoxes and translation

Postby TheWombatGuru » Tue Aug 30, 2016 3:25 pm

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
TheWombatGuru
Long Handed Inserter
Long Handed Inserter
 
Posts: 60
Joined: Tue Jul 08, 2014 10:01 am

Re: NavBoxes and translation

Postby mgiraud » Tue Aug 30, 2016 6:21 pm

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.
mgiraud
Burner Inserter
Burner Inserter
 
Posts: 7
Joined: Sun Aug 21, 2016 10:14 am

Re: NavBoxes and translation

Postby TheWombatGuru » Tue Aug 30, 2016 6:30 pm

Yes, documentation is important, but I haven't gotten around to it yet. Expect it soon, but not asap
TheWombatGuru
Long Handed Inserter
Long Handed Inserter
 
Posts: 60
Joined: Tue Jul 08, 2014 10:01 am


Return to Wiki Talk

Who is online

Users browsing this forum: Mion and 1 guest