From 9c9983bc1160c7f2332b6c9cb2f58f1811dbe84f Mon Sep 17 00:00:00 2001 From: Nigel Osborne Date: Sun, 26 Sep 2010 02:36:11 +0000 Subject: Making Edit/Copy/Delete text (Minimal theme) translatable. --- includes/functions/functions_print_facts.php | 36 ++++++++++++++-------------- themes/clouds/style.css | 4 ++++ themes/colors/css/aquamarine.css | 9 +++---- themes/colors/css/ash.css | 4 ++++ themes/colors/css/belgianchocolate.css | 4 ++++ themes/colors/css/bluelagoon.css | 4 ++++ themes/colors/css/bluemarine.css | 4 ++++ themes/colors/css/coldday.css | 4 ++++ themes/colors/css/greenbeam.css | 4 ++++ themes/colors/css/mediterranio.css | 4 ++++ themes/colors/css/mercury.css | 4 ++++ themes/colors/css/nocturnal.css | 4 ++++ themes/colors/css/pinkplastic.css | 4 ++++ themes/colors/css/shinytomato.css | 4 ++++ themes/colors/css/tealtop.css | 4 ++++ themes/fab/style.css | 4 ++++ themes/minimal/style.css | 24 +++++-------------- themes/webtrees/style.css | 4 ++++ 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 "". translate_fact($factref, $label_person). ""; echo "
"; - echo "
 
"; - echo "
 
"; - echo "
 
"; + echo "
".i18n::translate('Edit')."
"; + echo "
".i18n::translate('Copy')."
"; + echo "
".i18n::translate('Delete')."
"; echo "
"; } else {echo translate_fact($factref, $label_person);} if ($fact=="_BIRT_CHIL" and isset($n_chil)) echo "
", 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 "". $factref. ""; echo "
"; - echo "
 
"; - echo "
 
"; - echo "
 
"; + echo "
".i18n::translate('Edit')."
"; + echo "
".i18n::translate('Copy')."
"; + echo "
".i18n::translate('Delete')."
"; echo "
"; } else echo $factref; } else if (!$noedit && WT_USER_CAN_EDIT && $styleadd!="change_old" && $linenum>0 && !FactEditRestricted($pid, $factrec)) { echo "". translate_fact($factref, $label_person). ""; echo "
"; - echo "
 
"; - echo "
 
"; - echo "
 
"; + echo "
".i18n::translate('Edit')."
"; + echo "
".i18n::translate('Copy')."
"; + echo "
".i18n::translate('Delete')."
"; echo "
"; } else {echo translate_fact($factref, $label_person);} echo ""; @@ -832,9 +832,9 @@ function print_main_sources($factrec, $level, $pid, $linenum, $noedit=false) { if ($level==1) echo "\"\""; echo translate_fact($factname, $parent). ""; echo "
"; - echo " "; - echo " "; - echo " "; + echo "".i18n::translate('Edit').""; + echo "".i18n::translate('Copy').""; + echo "".i18n::translate('Delete').""; echo "
"; } else {echo translate_fact($factname, $parent);} echo ""; @@ -1058,9 +1058,9 @@ function print_main_notes($factrec, $level, $pid, $linenum, $noedit=false) { } echo ""; echo "
"; - echo " "; - echo " "; - echo " "; + echo "".i18n::translate('Edit').""; + echo "".i18n::translate('Copy').""; + echo "".i18n::translate('Delete').""; echo "
"; } } else { @@ -1374,9 +1374,9 @@ function print_main_media_row($rtype, $rowm, $pid) { echo ""; echo "\"\"". translate_fact('OBJE'). ""; echo "
"; - echo " "; - echo " "; - echo " "; + echo "".i18n::translate('Edit').""; + echo "".i18n::translate('Copy').""; + echo "".i18n::translate('Delete').""; echo "
"; echo ""; } 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 { -- cgit v1.3