Commit dcf5b2fd authored by sampaioprimo's avatar sampaioprimo

[FIX] don't translate twice the same string

(tranlating a string twice causes interactive translation to consider
the translated string as a source string in English that should be
translated)
parent efd7eca0
......@@ -80,7 +80,7 @@
{elseif !empty($tracker_info.name)}
{$tracker_info.name|escape}
{elseif !empty($headtitle)}
{$headtitle|tr_if|escape}{* use $headtitle last if feature specific title not found *}
{$headtitle|escape}{* use $headtitle last if feature specific title not found *}
{/if}
{/if}
{if $prefs.site_title_location eq 'after'} {$prefs.site_nav_seper} {$prefs.browsertitle|tr_if|escape}{/if}
......
......@@ -48,20 +48,20 @@
{/if}
{if $smod_params.show_search_button eq 'y'}
<input type = "submit" class = "wikiaction tips{if $smod_params.default_button eq 'search'} button_default{/if}"
name = "search" value = "{tr}{$smod_params.search_submit}{/tr}"
name = "search" value = "{$smod_params.search_submit}"
title="{tr}Search{/tr}|{tr}Search for text throughout the site.{/tr}"
onclick = "$('#search-module-form{$search_mod_usage_counter}').attr('action', '{$smod_params.search_action}').attr('page_selected','');" />
{/if}
{if $smod_params.show_go_button eq 'y'}
<input type="hidden" name="exact_match" />
<input type = "submit" class = "wikiaction tips{if $smod_params.default_button eq 'go'} button_default{/if}"
name = "go" value = "{tr}{$smod_params.go_submit}{/tr}"
name = "go" value = "{$smod_params.go_submit}"
title="{tr}Search{/tr}|{tr}Go directly to a page, or search in page titles if exact match is not found.{/tr}"
onclick = "$('#search-module-form{$search_mod_usage_counter}').attr('action', '{$smod_params.go_action}').attr('page_selected','');" />
{/if}
{if $smod_params.show_edit_button eq 'y' and $tiki_p_edit eq 'y'}
<input type = "submit" class = "wikiaction tips{if $smod_params.default_button eq 'edit'} button_default{/if}"
name = "edit" value = "{tr}{$smod_params.edit_submit}{/tr}"
name = "edit" value = "{$smod_params.edit_submit}"
title="{tr}Search{/tr}|{tr}Edit existing page or create a new one.{/tr}"
onclick = "$('#search-module-form{$search_mod_usage_counter} input[name!=find]').attr('name', ''); $('#search-module-form{$search_mod_usage_counter} input[name=find]').attr('name', 'page'); $('#search-module-form{$search_mod_usage_counter}').attr('action', '{$smod_params.edit_action}').attr('page_selected','');" />
{/if}
......
......@@ -29,7 +29,7 @@ $dirlib->dir_add_category_hit($_REQUEST['parent']);
// Now get the path to the parent category
$path = $dirlib->dir_get_category_path_browse($_REQUEST["parent"]);
$smarty->assign_by_ref('path', $path);
$crumbs[] = new Breadcrumb('Directory', '', 'tiki-directory_browse.php?parent=0', 'Directory', 'How to use Directory');
$crumbs[] = new Breadcrumb(tra('Directory'), '', 'tiki-directory_browse.php?parent=0', 'Directory', tra('How to use Directory'));
// Now append the path to the parent category
array_splice($crumbs, count($crumbs) , 0, $dirlib->dir_build_breadcrumb_trail($_REQUEST["parent"]));
$smarty->assign('trail', $crumbs);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment