diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc index 385f7f1..7274917 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc @@ -384,6 +384,25 @@ function renderDependantDocuments($oDocument, $bEdit) { return $sToRender; } +// This array exists only to give gettext a hint that these buttons +// should be added to the .po file. + +$aTranslatedButtons = array( + _("View"), + _("Email"), + _("Checkout"), + _("Delete"), + _("History"), + _("Move"), + _("Subscribe"), + _("Unsubscribe"), + _("Discussion"), + _("Archive"), + _("Link New Doc"), + _("Publish"), +); + + $aImageNameToLabel = array( "dependentdoc" => "Link new doc", ); @@ -407,7 +426,8 @@ function displayButton($sAction, $sQueryString, $sImageName, $sDisabledText = "" } else { $sLabel = $sImageName; } - $sLabel = strtoupper($sLabel); + $sTranslatedWords = _(ucwords($sLabel)); + $sLabel = strtoupper($sTranslatedWords); if ($bActive) { $sClass = "button"; } else { @@ -428,7 +448,7 @@ function displayViewButton($oDocument, $bEdit) { if ($default->useTextButtons === false) { return "