[imp] Re: Disability assisted Imp - Compose

Jacob Davida jacob-news at davida.com
Mon Jan 12 10:40:22 PST 2004


Is there a way to make it pull the correct tag so it gets changed
when other language are selected? I did't see anything special in
the code for Languages, but then again I'm not really up to speed
on how that is done anyways. :) Otherwise the code is merely
place in using regular English.

This patch is for Imp v4.0-CVS HEAD
I CVSupped this morning (1-12-04), so it should be current.
file modified: imp/templates/compose/compose.inc

You can patch the file by the following:

cd /<www-root>/horde/imp/templates/compose
patch -p0 < <path-to>/compose.patch.inc

Thanks!

- Jacob

Here is the unifed diff, also attached


--- /tmp/compose.inc Mon Jan 12 12:33:56 2004
+++ compose.inc Mon Jan 12 09:40:42 2004
@@ -75,11 +75,11 @@
       <table border="0" width="100%" cellpadding="0" cellspacing="0">
         <tr>
           <td nowrap="nowrap" align="left">
-            <input name="submitBtn1" type="button" accesskey="<?php echo
$ak = Horde::getAccessKey(_("Send Message")) ?>" title="<?php echo
sprintf(_("Accesskey %s"), $ak) ?>" class="button" onclick="if
(attachmentCheck()) { document.compose.actionID.value='send_message';
uniqSubmit(); }" value="<?php echo _("Send Message") ?>" />
+            <input name="submitBtn1" type="button" accesskey="<?php echo
$ak = Horde::getAccessKey(_("Send Message")) ?>" title="<?php echo
sprintf(_("Accesskey %s"), $ak) ?> - Send Message" class="button"
onclick="if (attachmentCheck()) {
document.compose.actionID.value='send_message'; uniqSubmit(); }"
value="<?php echo _("Send Message") ?>" />
 <?php if ($conf['user']['allow_folders']): ?>
-            <input name="submitBtn2" type="button" accesskey="<?php echo
$ak = Horde::getAccessKey(_("Save Draft")) ?>" title="<?php echo
sprintf(_("Accesskey %s"), $ak) ?>" class="button"
onclick="document.compose.actionID.value='save_draft'; uniqSubmit();"
value="<?php echo _("Save Draft") ?>" />
+            <input name="submitBtn2" type="button" accesskey="<?php echo
$ak = Horde::getAccessKey(_("Save Draft")) ?>" title="<?php echo
sprintf(_("Accesskey %s"), $ak) ?> - Save Draft" class="button"
onclick="document.compose.actionID.value='save_draft'; uniqSubmit();"
value="<?php echo _("Save Draft") ?>" />
 <?php endif; ?>
-            <input name="submitBtn3" type="button" class="button"
onclick="confirmCancel();" value="<?php echo _("Cancel Message") ?>" />
+            <input name="submitBtn3" type="button" class="button"
onclick="confirmCancel();" value="<?php echo _("Cancel Message") ?>"
title="Cancel Message" />
           </td>
           <td align="right" style="padding:2px"><?php echo
Help::link('imp', 'compose-buttons') ?>&nbsp;</td>
         </tr>
@@ -435,11 +435,11 @@
       <table border="0" width="100%" cellpadding="0" cellspacing="0">
         <tr>
           <td nowrap="nowrap" align="left">
-            <input name="submitBtn4" type="button" title="<?php echo
sprintf(_("Accesskey %s"), Horde::getAccessKey(_("Send Message"), 2)) ?>"
class="button" onclick="if (attachmentCheck()) {
document.compose.actionID.value='send_message'; uniqSubmit(); }"
value="<?php echo _("Send Message") ?>" />
+            <input name="submitBtn4" type="button" title="<?php echo
sprintf(_("Accesskey %s"), Horde::getAccessKey(_("Send Message"), 2)) ?> -
Send Message" class="button" onclick="if (attachmentCheck()) {
document.compose.actionID.value='send_message'; uniqSubmit(); }"
value="<?php echo _("Send Message") ?>" />
 <?php if ($conf['user']['allow_folders']): ?>
-            <input name="submitBtn5" type="button" title="<?php echo
sprintf(_("Accesskey %s"), Horde::getAccessKey(_("Save Draft"), 2)) ?>"
class="button" onclick="document.compose.actionID.value='save_draft';
uniqSubmit();" value="<?php echo _("Save Draft") ?>" />
+            <input name="submitBtn5" type="button" title="<?php echo
sprintf(_("Accesskey %s"), Horde::getAccessKey(_("Save Draft"), 2)) ?> -
Save Draft" class="button"
onclick="document.compose.actionID.value='save_draft'; uniqSubmit();"
value="<?php echo _("Save Draft") ?>" />
 <?php endif; ?>
-            <input name="submitBtn6" type="button" class="button"
onclick="confirmCancel();" value="<?php echo _("Cancel Message") ?>" />
+            <input name="submitBtn6" type="button" class="button"
onclick="confirmCancel();" value="<?php echo _("Cancel Message") ?>"
title="Cancel Message"/>
           </td>
           <td align="right" style="padding:2px"><?php echo
Help::link('imp', 'compose-buttons') ?></td>
         </tr>


"Chuck Hagenbuch" <chuck at horde.org> wrote in message
news:20040112105734.bndc8coow00kwcc4 at marina.horde.org...
> Quoting Jacob Davida <jacob-news at davida.com>:
>
> > Some of the impaired/disabled users require alt/text/titles to have
correct
> > discriptions in order for the machine to read the page to them properly.
I've
> > noticed that I had to add some descriptions in the compose template for
them
> > to read correctly and was wondering if they could be implemented into
the
> > code.
>
> Of course! Please send in a patch and note what version of IMP it's for.
>
> -chuck
>
> --
> Charles Hagenbuch, <chuck at horde.org>
> "Here, I brought some cole slaw. It's made from peeeooople! Just kidding."
>
> -- 
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>


begin 666 compose.patch.inc
M+2TM("]T;7 O8V]M<&]S92YI;F,)36]N($IA;B Q,B Q,CHS,SHU-B R,# T
M"BLK*R!C;VUP;W-E+FEN8PE-;VX at 2F%N(#$R(# Y.C0P.C0R(#(P,#0*0$ @
M+3<U+#$Q("LW-2PQ,2! 0 H@(" @(" @/'1A8FQE(&)O<F1E<CTB,"(@=VED
M=&@](C$P,"4B(&-E;&QP861D:6YG/2(P(B!C96QL<W!A8VEN9STB,"(^"B @
M(" @(" @(#QT<CX*(" @(" @(" @(" \=&0@;F]W<F%P/2)N;W=R87 B(&%L
M:6=N/2)L969T(CX*+2 @(" @(" @(" @(#QI;G!U="!N86UE/2)S=6)M:71"
M=&XQ(B!T>7!E/2)B=71T;VXB(&%C8V5S<VME>3TB/#]P:' @96-H;R D86L@
M/2!(;W)D93HZ9V5T06-C97-S2V5Y*%\H(E-E;F0 at 365S<V%G92(I*2 _/B(@
M=&ET;&4](CP_<&AP(&5C:&\@<W!R:6YT9BA?*")!8V-E<W-K97D@)7,B*2P@
M)&%K*2 _/B(@8VQA<W,](F)U='1O;B(@;VYC;&EC:STB:68@*&%T=&%C:&UE
M;G1#:&5C:R at I*2![(&1O8W5M96YT+F-O;7!O<V4N86-T:6]N240N=F%L=64]
M)W-E;F1?;65S<V%G92<[('5N:7%3=6)M:70H*3L@?2(@=F%L=64](CP_<&AP
M(&5C:&\@7R at B4V5N9"!-97-S86=E(BD@/SXB("\^"BL@(" @(" @(" @(" \
M:6YP=70@;F%M93TB<W5B;6ET0G1N,2(@='EP93TB8G5T=&]N(B!A8V-E<W-K
M97D](CP_<&AP(&5C:&\@)&%K(#T at 2&]R9&4Z.F=E=$%C8V5S<TME>2A?*")3
M96YD($UE<W-A9V4B*2D@/SXB('1I=&QE/2(\/W!H<"!E8VAO('-P<FEN=&8H
M7R at B06-C97-S:V5Y("5S(BDL("1A:RD@/SX at +2!396YD($UE<W-A9V4B(&-L
M87-S/2)B=71T;VXB(&]N8VQI8VL](FEF("AA='1A8VAM96YT0VAE8VLH*2D@
M>R!D;V-U;65N="YC;VUP;W-E+F%C=&EO;DE$+G9A;'5E/2=S96YD7VUE<W-A
M9V4G.R!U;FEQ4W5B;6ET*"D[('TB('9A;'5E/2(\/W!H<"!E8VAO(%\H(E-E
M;F0 at 365S<V%G92(I(#\^(B O/@H@/#]P:' @:68@*"1C;VYF6R=U<V5R)UU;
M)V%L;&]W7V9O;&1E<G,G72DZ(#\^"BT@(" @(" @(" @(" \:6YP=70@;F%M
M93TB<W5B;6ET0G1N,B(@='EP93TB8G5T=&]N(B!A8V-E<W-K97D](CP_<&AP
M(&5C:&\@)&%K(#T at 2&]R9&4Z.F=E=$%C8V5S<TME>2A?*")3879E($1R869T
M(BDI(#\^(B!T:71L93TB/#]P:' @96-H;R!S<')I;G1F*%\H(D%C8V5S<VME
M>2 E<R(I+" D86LI(#\^(B!C;&%S<STB8G5T=&]N(B!O;F-L:6-K/2)D;V-U
M;65N="YC;VUP;W-E+F%C=&EO;DE$+G9A;'5E/2=S879E7V1R869T)SL@=6YI
M<5-U8FUI="@I.R(@=F%L=64](CP_<&AP(&5C:&\@7R at B4V%V92!$<F%F="(I
M(#\^(B O/@HK(" @(" @(" @(" @/&EN<'5T(&YA;64](G-U8FUI=$)T;C(B
M('1Y<&4](F)U='1O;B(@86-C97-S:V5Y/2(\/W!H<"!E8VAO("1A:R ]($AO
M<F1E.CIG971!8V-E<W-+97DH7R at B4V%V92!$<F%F="(I*2 _/B(@=&ET;&4]
M(CP_<&AP(&5C:&\@<W!R:6YT9BA?*")!8V-E<W-K97D@)7,B*2P@)&%K*2 _
M/B M(%-A=F4 at 1')A9G0B(&-L87-S/2)B=71T;VXB(&]N8VQI8VL](F1O8W5M
M96YT+F-O;7!O<V4N86-T:6]N240N=F%L=64])W-A=F5?9')A9G0G.R!U;FEQ
M4W5B;6ET*"D[(B!V86QU93TB/#]P:' @96-H;R!?*")3879E($1R869T(BD@
M/SXB("\^"B \/W!H<"!E;F1I9CL@/SX*+2 @(" @(" @(" @(#QI;G!U="!N
M86UE/2)S=6)M:71"=&XS(B!T>7!E/2)B=71T;VXB(&-L87-S/2)B=71T;VXB
M(&]N8VQI8VL](F-O;F9I<FU#86YC96PH*3LB('9A;'5E/2(\/W!H<"!E8VAO
M(%\H(D-A;F-E;"!-97-S86=E(BD@/SXB("\^"BL@(" @(" @(" @(" \:6YP
M=70@;F%M93TB<W5B;6ET0G1N,R(@='EP93TB8G5T=&]N(B!C;&%S<STB8G5T
M=&]N(B!O;F-L:6-K/2)C;VYF:7)M0V%N8V5L*"D[(B!V86QU93TB/#]P:' @
M96-H;R!?*")#86YC96P at 365S<V%G92(I(#\^(B!T:71L93TB0V%N8V5L($UE
M<W-A9V4B("\^"B @(" @(" @(" @/"]T9#X*(" @(" @(" @(" \=&0 at 86QI
M9VX](G)I9VAT(B!S='EL93TB<&%D9&EN9SHR<'@B/CP_<&AP(&5C:&\@2&5L
M<#HZ;&EN:R at G:6UP)RP@)V-O;7!O<V4M8G5T=&]N<R<I(#\^)FYB<W [/"]T
M9#X*(" @(" @(" @/"]T<CX*0$ @+30S-2PQ,2 K-#,U+#$Q($! "B @(" @
M(" \=&%B;&4 at 8F]R9&5R/2(P(B!W:61T:#TB,3 P)2(@8V5L;'!A9&1I;F<]
M(C B(&-E;&QS<&%C:6YG/2(P(CX*(" @(" @(" @/'1R/@H@(" @(" @(" @
M(#QT9"!N;W=R87 ](FYO=W)A<"(@86QI9VX](FQE9G0B/@HM(" @(" @(" @
M(" @/&EN<'5T(&YA;64](G-U8FUI=$)T;C0B('1Y<&4](F)U='1O;B(@=&ET
M;&4](CP_<&AP(&5C:&\@<W!R:6YT9BA?*")!8V-E<W-K97D@)7,B*2P at 2&]R
M9&4Z.F=E=$%C8V5S<TME>2A?*")396YD($UE<W-A9V4B*2P@,BDI(#\^(B!C
M;&%S<STB8G5T=&]N(B!O;F-L:6-K/2)I9B H871T86-H;65N=$-H96-K*"DI
M('L at 9&]C=6UE;G0N8V]M<&]S92YA8W1I;VY)1"YV86QU93TG<V5N9%]M97-S
M86=E)SL@=6YI<5-U8FUI="@I.R!](B!V86QU93TB/#]P:' @96-H;R!?*")3
M96YD($UE<W-A9V4B*2 _/B(@+SX**R @(" @(" @(" @(#QI;G!U="!N86UE
M/2)S=6)M:71"=&XT(B!T>7!E/2)B=71T;VXB('1I=&QE/2(\/W!H<"!E8VAO
M('-P<FEN=&8H7R at B06-C97-S:V5Y("5S(BDL($AO<F1E.CIG971!8V-E<W-+
M97DH7R at B4V5N9"!-97-S86=E(BDL(#(I*2 _/B M(%-E;F0 at 365S<V%G92(@
M8VQA<W,](F)U='1O;B(@;VYC;&EC:STB:68@*&%T=&%C:&UE;G1#:&5C:R at I
M*2![(&1O8W5M96YT+F-O;7!O<V4N86-T:6]N240N=F%L=64])W-E;F1?;65S
M<V%G92<[('5N:7%3=6)M:70H*3L@?2(@=F%L=64](CP_<&AP(&5C:&\@7R at B
M4V5N9"!-97-S86=E(BD@/SXB("\^"B \/W!H<"!I9B H)&-O;F9;)W5S97(G
M75LG86QL;W=?9F]L9&5R<R==*3H@/SX*+2 @(" @(" @(" @(#QI;G!U="!N
M86UE/2)S=6)M:71"=&XU(B!T>7!E/2)B=71T;VXB('1I=&QE/2(\/W!H<"!E
M8VAO('-P<FEN=&8H7R at B06-C97-S:V5Y("5S(BDL($AO<F1E.CIG971!8V-E
M<W-+97DH7R at B4V%V92!$<F%F="(I+" R*2D@/SXB(&-L87-S/2)B=71T;VXB
M(&]N8VQI8VL](F1O8W5M96YT+F-O;7!O<V4N86-T:6]N240N=F%L=64])W-A
M=F5?9')A9G0G.R!U;FEQ4W5B;6ET*"D[(B!V86QU93TB/#]P:' @96-H;R!?
M*")3879E($1R869T(BD@/SXB("\^"BL@(" @(" @(" @(" \:6YP=70@;F%M
M93TB<W5B;6ET0G1N-2(@='EP93TB8G5T=&]N(B!T:71L93TB/#]P:' @96-H
M;R!S<')I;G1F*%\H(D%C8V5S<VME>2 E<R(I+"!(;W)D93HZ9V5T06-C97-S
M2V5Y*%\H(E-A=F4 at 1')A9G0B*2P@,BDI(#\^("T at 4V%V92!$<F%F="(@8VQA
M<W,](F)U='1O;B(@;VYC;&EC:STB9&]C=6UE;G0N8V]M<&]S92YA8W1I;VY)
M1"YV86QU93TG<V%V95]D<F%F="<[('5N:7%3=6)M:70H*3LB('9A;'5E/2(\
M/W!H<"!E8VAO(%\H(E-A=F4 at 1')A9G0B*2 _/B(@+SX*(#P_<&AP(&5N9&EF
M.R _/@HM(" @(" @(" @(" @/&EN<'5T(&YA;64](G-U8FUI=$)T;C8B('1Y
M<&4](F)U='1O;B(@8VQA<W,](F)U='1O;B(@;VYC;&EC:STB8V]N9FER;4-A
M;F-E;"@I.R(@=F%L=64](CP_<&AP(&5C:&\@7R at B0V%N8V5L($UE<W-A9V4B
M*2 _/B(@+SX**R @(" @(" @(" @(#QI;G!U="!N86UE/2)S=6)M:71"=&XV
M(B!T>7!E/2)B=71T;VXB(&-L87-S/2)B=71T;VXB(&]N8VQI8VL](F-O;F9I
M<FU#86YC96PH*3LB('9A;'5E/2(\/W!H<"!E8VAO(%\H(D-A;F-E;"!-97-S
M86=E(BD@/SXB('1I=&QE/2)#86YC96P at 365S<V%G92(O/@H@(" @(" @(" @
M(#PO=&0^"B @(" @(" @(" @/'1D(&%L:6=N/2)R:6=H="(@<W1Y;&4](G!A
M9&1I;F<Z,G!X(CX\/W!H<"!E8VAO($AE;' Z.FQI;FLH)VEM<"<L("=C;VUP
E;W-E+6)U='1O;G,G*2 _/CPO=&0^"B @(" @(" @(#PO='(^"@``
`
end




More information about the imp mailing list