1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 18:29:23 +00:00

Fixed a few typos in translate string

This commit is contained in:
zhengxie
2013-10-29 12:00:41 +08:00
parent 4db99f18d7
commit 791a3385c5
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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" />

View File

@@ -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;
} }
}); });