replace hard coding strings with translation

This commit is contained in:
Uwe Steinmann 2013-09-20 21:05:46 +02:00
parent b7f20daa26
commit 08008551b9
3 changed files with 9 additions and 5 deletions

View File

@ -162,6 +162,7 @@ $text = array(
'create_fulltext_index_warning' => "Sie möchten den Volltextindex neu erzeugen. Dies kann beträchtlich Zeit in Anspruch nehmen und Gesamtleistung Ihres System beeinträchtigen. Bestätigen Sie bitte diese Operation.",
'creation_date' => "Erstellt am",
'current_password' => "Aktuelles Passwort",
'current_state' => "Aktueller Status",
'current_version' => "Aktuelle Version",
'daily' => "täglich",
'days' => "Tage",
@ -863,6 +864,7 @@ $text = array(
'user_name' => "Vollst. Name",
'users' => "Benutzer",
'users_and_groups' => "Benutzer/Gruppen",
'users_done_work' => "Bereits aktive Benutzer",
'user' => "Benutzer",
'version_deleted_email' => "Version gelöscht",
'version_deleted_email_subject' => "[sitename]: [name] - Version gelöscht",

View File

@ -165,6 +165,7 @@ $text = array(
'create_fulltext_index_warning' => "You are to recreate the fulltext index. This can take a considerable amount of time and reduce your overall system performance. If you really want to recreate the index, please confirm your operation.",
'creation_date' => "Created",
'current_password' => "Current Password",
'current_state' => "Current State",
'current_version' => "Current version",
'daily' => "Daily",
'days' => "days",
@ -887,6 +888,7 @@ $text = array(
'user_name' => "Full name",
'users' => "Users",
'users_and_groups' => "Users/Groups",
'users_done_work' => "Users done work",
'user' => "User",
'version_deleted_email' => "Version deleted",
'version_deleted_email_subject' => "[sitename]: [name] - Version deleted",

View File

@ -606,17 +606,17 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
}
echo "<div class=\"row-fluid\">";
echo "<div class=\"span8\">";
echo "<h5>Current State: ".$workflowstate->getName()."</h5>";
echo "<h5>".getMLText('current_state').": ".$workflowstate->getName()."</h5>";
echo "<table class=\"table table-condensed\">\n";
echo "<tr>";
echo "<td>Next state:</td>";
echo "<td>".getMLText('next_state').":</td>";
foreach($transitions as $transition) {
$nextstate = $transition->getNextState();
echo "<td>".$nextstate->getName()."</td>";
}
echo "</tr>";
echo "<tr>";
echo "<td>Action:</td>";
echo "<td>".getMLText('action').":</td>";
foreach($transitions as $transition) {
$action = $transition->getAction();
echo "<td>".getMLText('action_'.strtolower($action->getName()), array(), $action->getName())."</td>";
@ -657,7 +657,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
}
echo "</tr>";
echo "<tr class=\"success\">";
echo "<td>User done work:</td>";
echo "<td>".getMLText('users_done_work').":</td>";
foreach($transitions as $transition) {
echo "<td>";
if($latestContent->executeWorkflowTransitionIsAllowed($transition)) {
@ -724,7 +724,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
* parent workflow
*/
if($latestContent->getWorkflowState()->getID() == $state->getID()) {
echo "Switch from sub workflow '".$workflow->getName()."' into state ".$state->getName()." of parent workflow '".$parentworkflow->getName()."' is possible<br />";
echo "Switching from sub workflow '".$workflow->getName()."' into state ".$state->getName()." of parent workflow '".$parentworkflow->getName()."' is possible<br />";
/* Check if the transition from the state where the sub workflow
* starts into the current state is also allowed in the parent
* workflow. Checking at this point is actually too late, because