Skip to content

Commit

Permalink
Dev Translation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Feb 11, 2020
1 parent 24f1fb8 commit 64d35a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions application/controllers/admin/labels.php
Expand Up @@ -342,7 +342,7 @@ public function process()

if ($action == "updateset" && Permission::model()->hasGlobalPermission('labelsets', 'update')) {
updateset($lid);
Yii::app()->setFlashMessage(gT("Label set properties sucessfully updated."), 'success');
Yii::app()->setFlashMessage(gT("Label set successfully saved."), 'success');
}
if ($action == "insertlabelset" && Permission::model()->hasGlobalPermission('labelsets', 'create')) {
$oLabelSet = insertlabelset();
Expand Down Expand Up @@ -556,7 +556,7 @@ public function ajxSetLabelSet($lid)
'/admin/super/_renderJson', [
'data' => [
'success' => $result,
'message' => $result ? gT('Successfully stored labelset') : gT("Labelset couldn't be stored")
'message' => $result ? gT('Label set sucessfully saved.') : gT("Label set couldn't be saved")
]
]
);
Expand All @@ -566,7 +566,7 @@ public function ajxSetLabelSet($lid)
'/admin/super/_renderJson', [
'data' => [
'success' => false,
'message' => gT("Labelset couldn't be stored")
'message' => gT("Label set couldn't be saved")
]
]
);
Expand Down Expand Up @@ -674,7 +674,7 @@ public function newLabelSetFromQuestionEditor() {
Yii::app()->getController()->renderPartial(
'/admin/super/_renderJson', ['data' => [
'success' => $result,
'message' => gT('Label set successfully stored')
'message' => gT('Label set successfully saved')
]]
);
die();
Expand Down
2 changes: 1 addition & 1 deletion application/models/User.php
Expand Up @@ -329,7 +329,7 @@ public function getPasswordHelpText(){
$txt .= sprintf(ngT('Exactly %d character long.|Exactly %d characters long.', $settings['min']), $settings['min']).' ';
} else
if($settings['min'] < $settings['max']){
$txt .= sprintf(gT('Between %d - %d characters long.'), $settings['min'], $settings['max']).' ';
$txt .= sprintf(gT('Between %d and %d characters long.'), $settings['min'], $settings['max']).' ';
}
}
if((int) $settings['lower'] > 0) $txt .= sprintf(ngT('At least %d lower case letter.|At least %d lower case letters.', $settings['lower']), $settings['lower']).' ';
Expand Down

0 comments on commit 64d35a5

Please sign in to comment.