Okay, I wanted to do a translation of a string but could not find it. The reason is that for the search would not pick it up because it is nested in another string.
function theme_more_help_link($url) {
return '<div class="more-help-link">' . t('[<a href="%link">more help...</a>]', array('%link' => $url)) . '</div>';
}
I wanted to translate "more help...". But it is inside of the link code. It should be like this right?
function theme_more_help_link($url) {
return '<div class="more-help-link">' . '[<a href="%link">'.t(more help...).'</a>]', array('%link' => $url)) . '</div>';
}
But out of curiosity I thought I would just remove the links entirely and make my own. Surprise! could not! They still appear not matter what I do! I grepped the entire directory for calls to the theme function and found only one. It does not seem to match.
<?php
function menu_get_active_help() {
$path = $_GET['q'];
$output = '';
if (!_menu_item_is_accessible(menu_get_active_item())) {
// Don't return help text for areas the user cannot access.
return;
}
foreach (module_list() as $name) {
if (module_hook($name, 'help')) {
if ($temp = module_invoke($name, 'help', $path)) {
$output .= $temp . "\n";
}
if (module_hook('help', 'page')) {
if (substr($path, 0, 6) == "admin/") {
if (module_invoke($name, 'help', 'admin/help#' . substr($path, 6))) {