Feed The Beast Wiki

Follow the Feed The Beast Wiki on Discord or Mastodon!

READ MORE

Feed The Beast Wiki
Register
Advertisement

Automatic translation of templates depending on page language[]

i. e. if a template is used on an English page it displays in English, but when the same template is used on a German page it is in German. Something like this doesn't exist here yet, does it? If not, I'd be willing to implement it. --dgelessus (talk · contribs) 19:50, 12 October 2013 (BST)

we do have it on {{About}} and I am considering to coordinate an effort to do it if I have enough translators. And this goes to the Translators' Noticeboard. -- Jinbobo 21:25, 12 October 2013 (BST)
Okay, felt free enough to move this over. If you don't mind I'll create a shorthand template containing that switch, cause it would be annyoing to reconstruct it every time. --dgelessus (talk · contribs) 21:48, 12 October 2013 (BST)
Sure, but I'd rather it be modular so I won't need to update the base template every time we add a new language. -- Jinbobo 05:14, 13 October 2013 (BST)
How exactly would you make it modular? --dgelessus (talk · contribs) 15:05, 13 October 2013 (BST)
Make it so the template code would be like:
{{X|de|Blah blah blah}}
{{X|da|Blah blah blah}}
like what the langbar currently is. -- Jinbobo 17:57, 13 October 2013 (BST)
Sorry for not responding for so long, have been quite busy lately. I've thought about how to make the template modular, which is mostly possible, except for one feature that I integrated. That is a sort of dialect fallback system, i. e. if a translation for pt exists it will be used on pt-br as well (if there is no translation given for it). Now currently the only dialect we have is Brazilian Portuguese and I'm not quite sure how useful or important this feature would be, but I haven't found a way to implement that one in a modular way. --dgelessus (talk · contribs) 22:49, 24 October 2013 (BST)
Advertisement