[IAEP] Any way to hide google translation stuff in the printable version of wiki pages?

Gary C Martin gary at garycmartin.com
Thu Aug 6 21:24:01 EDT 2009


Hi Kevin,

On 6 Aug 2009, at 23:32, Kevin Cole wrote:

> On Thu, Aug 6, 2009 at 17:52, Gary C Martin <gary at garycmartin.com>  
> wrote:
>
>> Hmmm, wow folks actually still print? :-) I had a colleague who would
>> incessantly print out every email she received and file it away by  
>> date,
>> that was quite fun to watch ;-) On a community wiki, material is  
>> going to be
>> out of date _really_ fast if you're referring to a print-out.
>
> I frequently find myself in situations where I have but one  
> computer, and
> browsing the documentation while trying to do something else on the  
> same
> computer (particularly the XO), is a RPITA.
>
>>> One benefit now is that all pages have translation links.
>>>
>>
>> True, though I'm still not keen on all the vertical scrolling into  
>> empty
>> space.
>
> My original thought (which Dave Bauer filled in what I left unsaid)  
> was
> using either a class or id attribute on the <div> and/or <table>  
> within it,
> and then setting that class/id to display:none for @media print.   
> This would
> avoid the empty space you're referring to: Pages would show up as  
> most do
> now, but when printed, all the translation magic would disappear  
> from the
> printout.

That would be cool, it's some css magic I wasn't aware of.

> Barring that solution, would you be okay with something that  
> rearranged the
> order of the sidebar to minimize scrolling?  (Of course, different  
> people
> are going to want different stuff at the top...)
>
>> -.8 if it comes to a vote :-)
>
> Tell us how you REALLY feel. ;-)

Well a re-arrange would help a little, still, mark me down as a -.75  
for the side bar (it was already too big to be honest) ;-)

Just did some testing – I've modified the Activity Team page with the  
below snippet:

<noinclude><div class="noprint">{{GoogleTrans-en}}{{TeamHeader| 
Activity Team}}</div></noinclude>

...and all the google translate is removed when printing:

	http://wiki.sugarlabs.org/go/Activity_Team

Can you give it a quick test and confirm?

Regards,
--Gary



More information about the IAEP mailing list