fix typo & translate mustache msg

This commit is contained in:
Nicolas Le Goff
2012-05-18 17:05:42 +02:00
parent 667056984a
commit ae4ee36578
5 changed files with 15 additions and 12 deletions

View File

@@ -95,7 +95,7 @@ class Language implements ControllerProviderInterface
$out['Recept'] = _('Accuse de reception');
$out['nFieldsChanged'] = _('%d fields have been updated');
$out['FeedBackNoUsersSelected'] = _('No users selected');
$out['errorFileApi'] = _('an error occurred reading this file');
$out['errorFileApi'] = _('An error occurred reading this file');
$Serializer = $app['Core']['Serializer'];

View File

@@ -1,9 +1,9 @@
<div class='upload-record'>
<div>{{name}}</div>
<div>{{size}}</div>
<div>{{type}}</div>
<div>{{ name }}</div>
<div>{{ size }}</div>
<div>{{ type }}</div>
<div class='error'></div>
<div class='progress-bar'></div>
<div class='bitrate-box'></div>
<button class="cancel" type="button">cancel</button>
<button class="cancel" type="button">{{ button.cancel }}</button>
</div>

View File

@@ -1,4 +1,4 @@
<div class='upload-record'>
<div class='error'>{{error}}</div>
<div>{{name}}</div>
<div class='error'>{{ error }}</div>
<div>{{ name }}</div>
</div>

View File

@@ -1,10 +1,10 @@
<li>
<div class='upload-record'>
<div class='preview-img'></div>
<div>{{name}}</div>
<div>{{size}}</div>
<div>{{type}}</div>
<button type='button' class='remove-element'>remove</button>
<div>{{ name }}</div>
<div>{{ size }}</div>
<div>{{ type }}</div>
<button type='button' class='remove-element'>{{ button.cancel }}</button>
<input type='hidden' name='uploadIndex' value='{{uploadIndex}}'/>
</div>
</li>

View File

@@ -147,7 +147,10 @@ $(document).ready(function () {
size: UploaderManager.Formater.size(file.size),
name: file.name,
type: file.type,
uploadIndex: UploaderManager.getUploadIndex()
uploadIndex: UploaderManager.getUploadIndex(),
button: {
cancel: language.cancel
}
}
//Set context in upload-box