mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 01:44:13 +00:00
Fixed a few typos in translate string
This commit is contained in:
@@ -33,7 +33,7 @@ class GroupAddForm(forms.Form):
|
|||||||
def clean_group_name(self):
|
def clean_group_name(self):
|
||||||
group_name = self.cleaned_data['group_name']
|
group_name = self.cleaned_data['group_name']
|
||||||
if not validate_group_name(group_name):
|
if not validate_group_name(group_name):
|
||||||
error_msg = _(u'Group name can only contain letters, numbers or underline')
|
error_msg = _(u'Group name can only contain letters, numbers or underscore')
|
||||||
raise forms.ValidationError(error_msg)
|
raise forms.ValidationError(error_msg)
|
||||||
else:
|
else:
|
||||||
return group_name
|
return group_name
|
||||||
|
@@ -149,7 +149,7 @@
|
|||||||
<label class="checkbox-label"><span class="checkbox"><input type="checkbox" name="ftype" value="Markdown" class="checkbox-orig" /></span><span class="checkbox-option">{% trans "markdown" %}</span></label>
|
<label class="checkbox-label"><span class="checkbox"><input type="checkbox" name="ftype" value="Markdown" class="checkbox-orig" /></span><span class="checkbox-option">{% trans "markdown" %}</span></label>
|
||||||
<br/>
|
<br/>
|
||||||
<input type="text" value="{{ input_fileexts }}" name="input_fexts" placeholder="{% trans "Input file extensions here, separate with ','" %}" class="fileext-input" />
|
<input type="text" value="{{ input_fileexts }}" name="input_fexts" placeholder="{% trans "Input file extensions here, separate with ','" %}" class="fileext-input" />
|
||||||
<p class="error hide">{% trans "Please select at least 1 file type or input at least 1 file extension" %}</p>
|
<p class="error hide">{% trans "Please select at least one file type or input at least one file extension" %}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<input type="submit" value="{% trans "Submit" %}" class="submit" />
|
<input type="submit" value="{% trans "Submit" %}" class="submit" />
|
||||||
|
@@ -1512,7 +1512,7 @@ $('#mv-dir-list h5').click(function() {
|
|||||||
});
|
});
|
||||||
$('#private-share-form').submit(function() {
|
$('#private-share-form').submit(function() {
|
||||||
if (!$('[name="emails"]', $(this)).val()) {
|
if (!$('[name="emails"]', $(this)).val()) {
|
||||||
apply_form_error($(this).attr('id'), "{% trans "Contacts is required." %}");
|
apply_form_error($(this).attr('id'), "{% trans "Contact is required." %}");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user