diff options
| author | Nigel Osborne <kiwi3685@me.com> | 2010-09-26 02:36:11 +0000 |
|---|---|---|
| committer | Nigel Osborne <kiwi3685@me.com> | 2010-09-26 02:36:11 +0000 |
| commit | 9c9983bc1160c7f2332b6c9cb2f58f1811dbe84f (patch) | |
| tree | 20919b6df9d88245a19a1f5e65af2c76178fd170 | |
| parent | fabfedb175d8d5f3703c2885a68bc12ffb07827c (diff) | |
| download | webtrees-9c9983bc1160c7f2332b6c9cb2f58f1811dbe84f.tar.gz webtrees-9c9983bc1160c7f2332b6c9cb2f58f1811dbe84f.tar.bz2 webtrees-9c9983bc1160c7f2332b6c9cb2f58f1811dbe84f.zip | |
Making Edit/Copy/Delete text (Minimal theme) translatable.
| -rw-r--r-- | includes/functions/functions_print_facts.php | 36 | ||||
| -rw-r--r-- | themes/clouds/style.css | 4 | ||||
| -rw-r--r-- | themes/colors/css/aquamarine.css | 9 | ||||
| -rw-r--r-- | themes/colors/css/ash.css | 4 | ||||
| -rw-r--r-- | themes/colors/css/belgianchocolate.css | 4 | ||||
| -rw-r--r-- | themes/colors/css/bluelagoon.css | 4 | ||||
| -rw-r--r-- | themes/colors/css/bluemarine.css | 4 | ||||
| -rw-r--r-- | themes/colors/css/coldday.css | 4 | ||||
| -rw-r--r-- | themes/colors/css/greenbeam.css | 4 | ||||
| -rw-r--r-- | themes/colors/css/mediterranio.css | 4 | ||||
| -rw-r--r-- | themes/colors/css/mercury.css | 4 | ||||
| -rw-r--r-- | themes/colors/css/nocturnal.css | 4 | ||||
| -rw-r--r-- | themes/colors/css/pinkplastic.css | 4 | ||||
| -rw-r--r-- | themes/colors/css/shinytomato.css | 4 | ||||
| -rw-r--r-- | themes/colors/css/tealtop.css | 4 | ||||
| -rw-r--r-- | themes/fab/style.css | 4 | ||||
| -rw-r--r-- | themes/minimal/style.css | 24 | ||||
| -rw-r--r-- | themes/webtrees/style.css | 4 | ||||
| -rw-r--r-- | themes/xenea/style.css | 6 |
19 files changed, 94 insertions, 41 deletions
diff --git a/includes/functions/functions_print_facts.php b/includes/functions/functions_print_facts.php index 3dfc5ce1c9..79c2720c7a 100644 --- a/includes/functions/functions_print_facts.php +++ b/includes/functions/functions_print_facts.php @@ -144,9 +144,9 @@ function print_fact(&$eventObj, $noedit=false) { if (!$noedit && WT_USER_CAN_EDIT && $styleadd!="change_old" && $linenum>0 && $eventObj->canEdit()) { echo "<a onclick=\"return edit_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\">". translate_fact($factref, $label_person). "</a>"; echo "<div class=\"editfacts\">"; - echo "<a onclick=\"return edit_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\"><div class=\"editlink\"> </div></a>"; - echo "<a onclick=\"return copy_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Copy')."\"><div class=\"copylink\"> </div></a>"; - echo "<a onclick=\"return delete_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Delete')."\"><div class=\"deletelink\"> </div></a>"; + echo "<a onclick=\"return edit_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\"><div class=\"editlink\"><span class=\"link_text\">".i18n::translate('Edit')."</span></div></a>"; + echo "<a onclick=\"return copy_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Copy')."\"><div class=\"copylink\"><span class=\"link_text\">".i18n::translate('Copy')."</span></div></a>"; + echo "<a onclick=\"return delete_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Delete')."\"><div class=\"deletelink\"><span class=\"link_text\">".i18n::translate('Delete')."</span></div></a>"; echo "</div>"; } else {echo translate_fact($factref, $label_person);} if ($fact=="_BIRT_CHIL" and isset($n_chil)) echo "<br />", i18n::translate('#%d', $n_chil++); @@ -171,17 +171,17 @@ function print_fact(&$eventObj, $noedit=false) { if (!$noedit && WT_USER_CAN_EDIT && $styleadd!="change_old" && $linenum>0 && !FactEditRestricted($pid, $factrec)) { echo "<a onclick=\"return edit_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\">". $factref. "</a>"; echo "<div class=\"editfacts\">"; - echo "<a onclick=\"return edit_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\"><div class=\"editlink\"> </div></a>"; - echo "<a onclick=\"return copy_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Copy')."\"><div class=\"copylink\"> </div></a>"; - echo "<a onclick=\"return delete_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Delete')."\"><div class=\"deletelink\"> </div></a>"; + echo "<a onclick=\"return edit_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\"><div class=\"editlink\"><span class=\"link_text\">".i18n::translate('Edit')."</span></div></a>"; + echo "<a onclick=\"return copy_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Copy')."\"><div class=\"copylink\"><span class=\"link_text\">".i18n::translate('Copy')."</span></div></a>"; + echo "<a onclick=\"return delete_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Delete')."\"><div class=\"deletelink\"><span class=\"link_text\">".i18n::translate('Delete')."</span></div></a>"; echo "</div>"; } else echo $factref; } else if (!$noedit && WT_USER_CAN_EDIT && $styleadd!="change_old" && $linenum>0 && !FactEditRestricted($pid, $factrec)) { echo "<a onclick=\"return edit_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\">". translate_fact($factref, $label_person). "</a>"; echo "<div class=\"editfacts\">"; - echo "<a onclick=\"return edit_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\"><div class=\"editlink\"> </div></a>"; - echo "<a onclick=\"return copy_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Copy')."\"><div class=\"copylink\"> </div></a>"; - echo "<a onclick=\"return delete_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Delete')."\"><div class=\"deletelink\"> </div></a>"; + echo "<a onclick=\"return edit_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\"><div class=\"editlink\"><span class=\"link_text\">".i18n::translate('Edit')."</span></div></a>"; + echo "<a onclick=\"return copy_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Copy')."\"><div class=\"copylink\"><span class=\"link_text\">".i18n::translate('Copy')."</span></div></a>"; + echo "<a onclick=\"return delete_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Delete')."\"><div class=\"deletelink\"><span class=\"link_text\">".i18n::translate('Delete')."</span></div></a>"; echo "</div>"; } else {echo translate_fact($factref, $label_person);} echo "</td>"; @@ -832,9 +832,9 @@ function print_main_sources($factrec, $level, $pid, $linenum, $noedit=false) { if ($level==1) echo "<img class=\"icon\" src=\"", $WT_IMAGES["source"], "\" alt=\"\" />"; echo translate_fact($factname, $parent). "</a>"; echo "<div class=\"editfacts\">"; - echo "<a onclick=\"return edit_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\"><span class=\"editlink\"> </span></a>"; - echo "<a onclick=\"return copy_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Copy')."\"><span class=\"copylink\"> </span></a>"; - echo "<a onclick=\"return delete_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Delete')."\"><span class=\"deletelink\"> </span></a>"; + echo "<a onclick=\"return edit_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\"><span class=\"editlink\"><span class=\"link_text\">".i18n::translate('Edit')."</span></span></a>"; + echo "<a onclick=\"return copy_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Copy')."\"><span class=\"copylink\"><span class=\"link_text\">".i18n::translate('Copy')."</span></span></a>"; + echo "<a onclick=\"return delete_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Delete')."\"><span class=\"deletelink\"><span class=\"link_text\">".i18n::translate('Delete')."</span></span></a>"; echo "</div>"; } else {echo translate_fact($factname, $parent);} echo "</td>"; @@ -1058,9 +1058,9 @@ function print_main_notes($factrec, $level, $pid, $linenum, $noedit=false) { } echo "</a>"; echo "<div class=\"editfacts\">"; - echo "<a onclick=\"return edit_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\"><span class=\"editlink\"> </span></a>"; - echo "<a onclick=\"return copy_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Copy')."\"><span class=\"copylink\"> </span></a>"; - echo "<a onclick=\"return delete_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Delete')."\"><span class=\"deletelink\"> </span></a>"; + echo "<a onclick=\"return edit_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\"><span class=\"editlink\"><span class=\"link_text\">".i18n::translate('Edit')."</span></span></a>"; + echo "<a onclick=\"return copy_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Copy')."\"><span class=\"copylink\"><span class=\"link_text\">".i18n::translate('Copy')."</span></span></a>"; + echo "<a onclick=\"return delete_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Delete')."\"><span class=\"deletelink\"><span class=\"link_text\">".i18n::translate('Delete')."</span></span></a>"; echo "</div>"; } } else { @@ -1374,9 +1374,9 @@ function print_main_media_row($rtype, $rowm, $pid) { echo "<a onclick=\"return window.open('addmedia.php?action=editmedia&pid={$rowm['m_media']}&linktoid={$rowm['mm_gid']}', '_blank', 'top=50, left=50, width=600, height=500, resizable=1, scrollbars=1');\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\">"; echo "<img class=\"icon\" src=\"", $WT_IMAGES["media"], "\" alt=\"\" />". translate_fact('OBJE'). "</a>"; echo "<div class=\"editfacts\">"; - echo "<a onclick=\"return window.open('addmedia.php?action=editmedia&pid={$rowm['m_media']}&linktoid={$rowm['mm_gid']}', '_blank', 'top=50, left=50, width=600, height=500, resizable=1, scrollbars=1');\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\"><span class=\"editlink\"> </span></a>"; - echo "<a onclick=\"return copy_record('".$rowm['m_media']."', 'media');\" href=\"javascript:;\" title=\"".i18n::translate('Copy')."\"><span class=\"copylink\"> </span></a>"; - echo "<a onclick=\"return delete_record('$pid', 'OBJE', '".$rowm['m_media']."');\" href=\"javascript:;\" title=\"".i18n::translate('Delete')."\"><span class=\"deletelink\"> </span></a>"; + echo "<a onclick=\"return window.open('addmedia.php?action=editmedia&pid={$rowm['m_media']}&linktoid={$rowm['mm_gid']}', '_blank', 'top=50, left=50, width=600, height=500, resizable=1, scrollbars=1');\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\"><span class=\"editlink\"><span class=\"link_text\">".i18n::translate('Edit')."</span></span></a>"; + echo "<a onclick=\"return copy_record('".$rowm['m_media']."', 'media');\" href=\"javascript:;\" title=\"".i18n::translate('Copy')."\"><span class=\"copylink\"><span class=\"link_text\">".i18n::translate('Copy')."</span></span></a>"; + echo "<a onclick=\"return delete_record('$pid', 'OBJE', '".$rowm['m_media']."');\" href=\"javascript:;\" title=\"".i18n::translate('Delete')."\"><span class=\"deletelink\"><span class=\"link_text\">".i18n::translate('Delete')."</span></span></a>"; echo "</div>"; echo "</td>"; } diff --git a/themes/clouds/style.css b/themes/clouds/style.css index 5e9088e290..8617a2c469 100644 --- a/themes/clouds/style.css +++ b/themes/clouds/style.css @@ -1867,6 +1867,10 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as width: 80px; } +.link_text { + visibility : hidden; +} + .editlink { background: url(images/edit_sm.png) no-repeat left center; width: 20px; diff --git a/themes/colors/css/aquamarine.css b/themes/colors/css/aquamarine.css index 451b681e02..17fdc8b642 100644 --- a/themes/colors/css/aquamarine.css +++ b/themes/colors/css/aquamarine.css @@ -1836,6 +1836,10 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as margin-top: 15px; } +.link_text { + visibility : hidden; +} + .editlink { background: url(../images/edit_sm.png) no-repeat left center; width: 20px; @@ -1852,7 +1856,4 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as background: url(../images/delete.png) no-repeat left center; width: 20px; float: left; -} - - - +}
\ No newline at end of file diff --git a/themes/colors/css/ash.css b/themes/colors/css/ash.css index 4b7a2eaed8..0874c41bb1 100644 --- a/themes/colors/css/ash.css +++ b/themes/colors/css/ash.css @@ -1836,6 +1836,10 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as margin-top: 15px; } +.link_text { + visibility : hidden; +} + .editlink { background: url(../images/edit_sm.png) no-repeat left center; width: 20px; diff --git a/themes/colors/css/belgianchocolate.css b/themes/colors/css/belgianchocolate.css index 98d2f32fdf..af2ea9fabf 100644 --- a/themes/colors/css/belgianchocolate.css +++ b/themes/colors/css/belgianchocolate.css @@ -1836,6 +1836,10 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as margin-top: 15px; } +.link_text { + visibility : hidden; +} + .editlink { background: url(../images/edit_sm.png) no-repeat left center; width: 20px; diff --git a/themes/colors/css/bluelagoon.css b/themes/colors/css/bluelagoon.css index 263402b6ae..c50432e4b9 100644 --- a/themes/colors/css/bluelagoon.css +++ b/themes/colors/css/bluelagoon.css @@ -1836,6 +1836,10 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as margin-top: 15px; } +.link_text { + visibility : hidden; +} + .editlink { background: url(../images/edit_sm.png) no-repeat left center; width: 20px; diff --git a/themes/colors/css/bluemarine.css b/themes/colors/css/bluemarine.css index e688a234d4..1039f08c26 100644 --- a/themes/colors/css/bluemarine.css +++ b/themes/colors/css/bluemarine.css @@ -1836,6 +1836,10 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as margin-top: 15px; } +.link_text { + visibility : hidden; +} + .editlink { background: url(../images/edit_sm.png) no-repeat left center; width: 20px; diff --git a/themes/colors/css/coldday.css b/themes/colors/css/coldday.css index 56cb33994e..657a42eec5 100644 --- a/themes/colors/css/coldday.css +++ b/themes/colors/css/coldday.css @@ -1836,6 +1836,10 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as margin-top: 15px; } +.link_text { + visibility : hidden; +} + .editlink { background: url(../images/edit_sm.png) no-repeat left center; width: 20px; diff --git a/themes/colors/css/greenbeam.css b/themes/colors/css/greenbeam.css index b06a6f7597..318e5739e5 100644 --- a/themes/colors/css/greenbeam.css +++ b/themes/colors/css/greenbeam.css @@ -1836,6 +1836,10 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as margin-top: 15px; } +.link_text { + visibility : hidden; +} + .editlink { background: url(../images/edit_sm.png) no-repeat left center; width: 20px; diff --git a/themes/colors/css/mediterranio.css b/themes/colors/css/mediterranio.css index f594ded599..c78165437c 100644 --- a/themes/colors/css/mediterranio.css +++ b/themes/colors/css/mediterranio.css @@ -1836,6 +1836,10 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as margin-top: 15px; } +.link_text { + visibility : hidden; +} + .editlink { background: url(../images/edit_sm.png) no-repeat left center; width: 20px; diff --git a/themes/colors/css/mercury.css b/themes/colors/css/mercury.css index 7fc7442a64..914d6d9310 100644 --- a/themes/colors/css/mercury.css +++ b/themes/colors/css/mercury.css @@ -1836,6 +1836,10 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as margin-top: 15px; } +.link_text { + visibility : hidden; +} + .editlink { background: url(../images/edit_sm.png) no-repeat left center; width: 20px; diff --git a/themes/colors/css/nocturnal.css b/themes/colors/css/nocturnal.css index cfcf933d6f..9041556bce 100644 --- a/themes/colors/css/nocturnal.css +++ b/themes/colors/css/nocturnal.css @@ -1836,6 +1836,10 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as margin-top: 15px; } +.link_text { + visibility : hidden; +} + .editlink { background: url(../images/edit_sm.png) no-repeat left center; width: 20px; diff --git a/themes/colors/css/pinkplastic.css b/themes/colors/css/pinkplastic.css index b5f135bafe..db6c9f0bdc 100644 --- a/themes/colors/css/pinkplastic.css +++ b/themes/colors/css/pinkplastic.css @@ -1836,6 +1836,10 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as margin-top: 15px; } +.link_text { + visibility : hidden; +} + .editlink { background: url(../images/edit_sm.png) no-repeat left center; width: 20px; diff --git a/themes/colors/css/shinytomato.css b/themes/colors/css/shinytomato.css index 0d5bf9d64a..ebb2e7153b 100644 --- a/themes/colors/css/shinytomato.css +++ b/themes/colors/css/shinytomato.css @@ -1836,6 +1836,10 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as margin-top: 15px; } +.link_text { + visibility : hidden; +} + .editlink { background: url(../images/edit_sm.png) no-repeat left center; width: 20px; diff --git a/themes/colors/css/tealtop.css b/themes/colors/css/tealtop.css index 42e4ca577f..8f16f13a8e 100644 --- a/themes/colors/css/tealtop.css +++ b/themes/colors/css/tealtop.css @@ -1836,6 +1836,10 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as margin-top: 15px; } +.link_text { + visibility : hidden; +} + .editlink { background: url(../images/edit_sm.png) no-repeat left center; width: 20px; diff --git a/themes/fab/style.css b/themes/fab/style.css index d35eac2292..ab1894ee88 100644 --- a/themes/fab/style.css +++ b/themes/fab/style.css @@ -1166,6 +1166,10 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as padding-top: 15px; } +.link_text { + visibility : hidden; +} + .editlink { background: url(images/edit_sm.png) no-repeat left center; width: 20px; diff --git a/themes/minimal/style.css b/themes/minimal/style.css index 9749730272..23c043409a 100644 --- a/themes/minimal/style.css +++ b/themes/minimal/style.css @@ -1543,29 +1543,17 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as .editfacts { /* a container for the following three links */ clear: left; - font-size: 80%; } -.editlink, .copylink , .deletelink { - float:left; - padding: 5px 5px 0 0; +.link_text { + font-size: 80%; } -.editlink:hover, .copylink:hover, .deletelink:hover { +.link_text:hover { text-decoration: underline; } -.editlink:before { - content: "Edit"; - float: left; -} - -.copylink:before { - content: "Copy"; - float: left; -} - -.deletelink:before { - content: "Delete"; - float: left; +.editlink, .copylink , .deletelink { + float:left; + padding: 5px 5px 0 0; } diff --git a/themes/webtrees/style.css b/themes/webtrees/style.css index b23beb089d..ad56e544a4 100644 --- a/themes/webtrees/style.css +++ b/themes/webtrees/style.css @@ -1720,6 +1720,10 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as padding-top: 15px; } +.link_text { + visibility : hidden; +} + .editlink { background: url(images/edit_sm.png) no-repeat left center; width: 20px; diff --git a/themes/xenea/style.css b/themes/xenea/style.css index 8b8d81d455..593a650260 100644 --- a/themes/xenea/style.css +++ b/themes/xenea/style.css @@ -1753,7 +1753,11 @@ td.descriptionbox a { /* this keeps the tag color the same when it is a link as .editfacts { /* a container for the following three links */ float: left; - font-size: 80%; + padding-top: 5px; +} + +.link_text { + visibility : hidden; } .editlink { |
