<div dir="ltr">Hi althio,<div><br></div><div>You could basically create a new layout doc like this, let's say named doc-translating.html:</div><div><br></div><div>---</div><div>layout: doc</div><div>---</div><div><br></div><div>This is where the header content goes...</div><div><br></div><div>{{content}}<br></div><div><br></div><div><br></div><div>I'm not precisely sure how the translations work, but it would be something along the lines of:</div><div><br></div><div>{{site.translations.[page.lang].headertext}}<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 14, 2014 at 3:41 PM, Nick Allen <span dir="ltr"><<a href="mailto:nick.allen.54@gmail.com" target="_blank">nick.allen.54@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>althio,<br>
      <br>
      I don't have your technical ability on this, so I can't offer
      comments on your code - I think we are aiming for the same thing
      though - please have a look at <br>
      <br>
      <a href="https://github.com/hotosm/learnosm/issues/252" target="_blank">https://github.com/hotosm/learnosm/issues/252</a><br>
      <br>
      Regards<br>
      <br>
      Nick<br>
      (Sorry if you get this twice - just trying to make sure I've
      answered my emails.)<div><div class="h5"><br>
      <br>
      On 12/12/14 14:38, althio forum wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      <pre>Preliminary note/question:
The banner/header can be changed in the generic "_layouts/*.html" and
applied with "layout=*" in the desired file.
Is it possible to modify or simply add something to the banner/header
directly from a file without relying on layout in "_layouts/*.html"
and predefined text in "_config.yml"?


Here is the outline of what I was thinking of...
Tell me if it is suitable or broken from the start.
I may need Jeff's approval before I start something like this.


*** *** ***
In my page to-be-translated:

---
- layout: doc
+ layout: doc-translating
...
- lang: en
+ lang: fr
---



*** *** ***
In learnosm/_layouts/doc-translating.html

---
layout: doc
---

    <div id='header' class='cell12'>
      <div class='marginL cell9 padAll'>
        <div class='cell7 marginR'>
           <span><a href='{{site.baseurl}}/{{page.lang}}' class="logo
logo-learn"></a></span>
           <span
class='tagline'>{{site.translations.[page.lang].tagline}}</span>
        </div>
        <a class='banner hide-mobile'>
          <span
class='{{page.lang}}'>{{site.translations.[page.lang].contribute}}</span>
        </a>
        <a class='banner-mobile hide-desktop show-mobile'
href='{{site.baseurl}}/{{page.lang}}/contribute/'>
        </a>
+        <div class='***********'>
+           <span><a href='{{site.baseurl}}/{{page.lang}}' class="***
image 'works in progress' ***"></a></span>
+           <span
class='translating'>{{site.translations.[page.lang].translating}}</span>
+        </div>
      </div>
    </div>
    <div id='content' class='cf'>
        {{ content }}
    </div>



*** *** ***
In learnosm/_config.yml

translations:
  en:
    tagline: "Learn OpenStreetMap Step by Step"
    ...
    getstarted: "Get started"
+    translating: "This section of LearnOSM is in the process of being
translated. If you would like to assist with translating this site,
please see [CONTRIBUTING.md](<a href="https://github.com/hotosm/learnosm/blob/gh-pages/CONTRIBUTING.md" target="_blank">https://github.com/hotosm/learnosm/blob/gh-pages/CONTRIBUTING.md</a>)."
 ...
  fr:
    tagline: "Apprendre OpenStreetMap pas à pas"
    ...
    getstarted: "Commencer"
+    translating: "Cette page de LearnOSM est en cours de traduction.
Si vous voulez aider pour d'autres pages, rendez-vous sur
[CONTRIBUTING.md](<a href="https://github.com/hotosm/learnosm/blob/gh-pages/CONTRIBUTING.md" target="_blank">https://github.com/hotosm/learnosm/blob/gh-pages/CONTRIBUTING.md</a>)."
...

_______________________________________________
Learnosm-coord mailing list
<a href="mailto:Learnosm-coord@openstreetmap.org" target="_blank">Learnosm-coord@openstreetmap.org</a>
<a href="https://lists.openstreetmap.org/listinfo/learnosm-coord" target="_blank">https://lists.openstreetmap.org/listinfo/learnosm-coord</a>
</pre>
    </blockquote>
    <br>
    <br>
    </div></div><span class="HOEnZb"><font color="#888888"><div>-- <br>
      
      
      
      
      
      
      
      
      
      
      
      <p style="margin-bottom:0cm">Nick</p>
      <p style="margin-bottom:0cm">
        
        <font style="font-size:8pt" size="1">Volunteer
          'Tallguy' for
          <a href="https://wiki.openstreetmap.org/wiki/Humanitarian_OSM_Team" target="_blank">https://wiki.openstreetmap.org/wiki/Humanitarian_OSM_Team</a></font></p>
      <p style="margin-bottom:0cm"><a href="http://www.openstreetmap.org/user/Tallguy" target="_blank"><font style="font-size:8pt" size="1">http://www.openstreetmap.org/user/Tallguy</font></a></p>
      <p style="margin-bottom:0cm"><font style="font-size:8pt" size="1">Treasurer,
          website & Bonus Ball admin for
          <a href="http://www.6thswanleyscouts.org.uk/" target="_blank">http://www.6thswanleyscouts.org.uk/</a>
          (<a href="mailto:treasurer@6thswanleyscouts.org.uk" target="_blank">treasurer@6thswanleyscouts.org.uk</a>)</font></p>
    </div>
  </font></span></div>

<br>_______________________________________________<br>
Learnosm-coord mailing list<br>
<a href="mailto:Learnosm-coord@openstreetmap.org">Learnosm-coord@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/learnosm-coord" target="_blank">https://lists.openstreetmap.org/listinfo/learnosm-coord</a><br>
<br></blockquote></div><br></div>