[haiku-i18n] HTA: Add option to show/hide deleted stings

  • From: Patrik Gissberg <patrik@xxxxxxxxxxx>
  • To: haiku-i18n@xxxxxxxxxxxxx
  • Date: Tue, 12 Jul 2011 13:24:55 +0200

HTA is a little bit messy with all the deleted strings showing. I
would prefer if those fields were hidden by default, and could be made
visible thru javascript.

This is how a deleted string is presented today:

<tr style="height:3em">
        <td><del>Config Window</del></td>
        <td><del>Final</del></td>
        <td><script>new
Ajax.Updater('trans58557','/clefs/translate/58557/sv',
{asynchronous:true, evalScripts:true, requestHeaders:['X-Update',
'trans58557']})</script>                        <div id="trans58557"
style='width:100%'><img src="/img/ajax-bar2.gif" alt="Loading..."
/></div>
        </td>
        <td style='font-size: 0.5em; text-align: right;'>-1321612709</td>
</tr>

I would change it to:

<tr style="height:3em" class="deleted">
        <td>Config Window</td>
        <td>Final<</td>
        <td>
                <script>new 
Ajax.Updater('trans58557','/clefs/translate/58557/sv',
{asynchronous:true, evalScripts:true, requestHeaders:['X-Update',
'trans58557']})</script>
                <div id="trans58557"  style='width:100%'><img
src="/img/ajax-bar2.gif" alt="Loading..." /></div>
        </td>
        <td style='font-size: 0.5em; text-align: right;'>-1321612709</td>
</tr>

CSS:

tr.deleted {
        display: none;
        background-color: #ffefef; /* Light red background */
}

Patrik

Other related posts: