FlightGear wiki:Village pump: Difference between revisions

→‎Newsletter templates (June/2017): There already is a translated preload system in my sandbox
(→‎Newsletter templates (June/2017): Yes, we could make a centralized newsletter with all languages, but there will be large downsides. It would be better to preloade blanks for each language.)
(→‎Newsletter templates (June/2017): There already is a translated preload system in my sandbox)
Line 97: Line 97:


::::: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 23:48, 21 July 2018 (EDT)
::::: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 23:48, 21 July 2018 (EDT)
:::::: Hi, currently the German newsletter gets translated like every normal article here on a new page. Works great. I don't think the newsletter would benefit from a centralised Newsletter using {{tl|LangSwitch}} as
::::::* you also need to create a <nowiki>[[Es/FG News Marzo 2019]]</nowiki> page every month to view the translated content on it
::::::* it invites to write a new article in your language and we need to find someone to translate it back to english
::::::* wiki code already is a challenge for new authors, LangSwitch would make it even worse!
:::::: My [[User:Skybike#Wiki_Sandbox|sandbox experiments]] take another approach:
::::::*There is a ''draft to prelaod'' called ''Newsletter Example'' in [[User:Skybike/Template:This months newsletter/Newsletter example|English]] and another one in [[User:Skybike/Template:This months newsletter/De/Newslettervorlage|German]]
::::::*A {{obr}}[[User:Skybike/Template:This months newsletter|This months newsletter]]{{cbr}} template selects the language based on {{tl|LangSwitch}} or the parameter "lang=". (When typing <code>{{obr}}<small>:User:Skybike/Template:</small>This months newsletter{{cbr}}</code> on a german page like [[de/Hauptseite]] it preloads the [[User:Skybike/Template:This months newsletter/De/Newslettervorlage|German Newsletter Example]] to create the current German newsletter [[de/FlightGear Newsletter Juni 2018]])
::::::*As Catalanoic mentioned {{tl|Newsletter-header}} got translated into the descentralised template {{tl|De/Newsletter-header}} long time ago. In my sandbox is a new header {{obr}}[[User:Skybike/Template:Newsletter-header-translate|Newsletter-header-translate]]{{cbr}}. It uses {{tl|LangSwitch}} and the obove preload templates. (Its down compartible to {{tl|Newsletter-header}})
::::::All these templates should work. Like <code>{{obr}}<small>:User:Skybike/Template:</small>This months newsletter|date=2018-11{{cbr}}</code> {{:User:Skybike/Template:This months newsletter|subpage-to=User:DeleteMe|date=2018-11}} and by adding <code>lang=de</code>: {{:User:Skybike/Template:This months newsletter|subpage-to=User:DeleteMe|date=2018-11|lang=de}}.
::::::Legoboyvdlp already created [[FlightGear Newsletter September 2018‎]] with it.(Surprised me, need to change the header template there as it links to my sandbox) Note the "create next edition" in the upper right of the header there. But temporarily a new language could use my sandbox as well, just create a new newsletter blank and translate [[User:Skybike/Template:This months newsletter|This months newsletter]] and [[User:Skybike/Template:Newsletter-header-translate|Newsletter-header-translate]].
::::::[[User:Skybike|Skybike]] ([[User talk:Skybike|talk]]) 10:10, 22 July 2018 (EDT)


== Using Template:Convert ==
== Using Template:Convert ==
454

edits