Hello,
I'm having problems with SB translation.
I have used the "get_current_locale.sh" script to get the en_US.xml file.
In this file I can't find some entries:
[[Modules/Guestbook/Pub_:_nameTooLong]]
[[Modules/Guestbook/Pub_:_emailTooLong]]
[[Modules/Guestbook/Pub_:_urlTooLong]]
They are not present in the related section.
These entries are used in a JavaScript function that validates the Guestbook form:
...
function validateForm() {
if (validateField('SB_Validator.notEmpty', 'author', 'Por favor preencha seu nome.')
&& extendedValidateField("SB_Validator.isMaxLength(document.getElementById('author').value, 255)", 'author', '[[Modules/Guestbook/Pub_:_nameTooLong]]')
&& (
document.getElementById('email').value.length ==0 || (
validateField('SB_Validator.isEmail', 'email', 'Por favor informe um e-mail válido.')
&&
extendedValidateField("SB_Validator.isMaxLength(document.getElementById('email').value, 255)", 'email', '[[Modules/Guestbook/Pub_:_emailTooLong]]')
)
)
&& (
document.getElementById('url').value.length ==0 || (
validateField('SB_Validator.isHttpUrl', 'url', 'Por favor informe uma URL válida.')
&& extendedValidateField("SB_Validator.isMaxLength(document.getElementById('url').value, 255)", 'url', '[[Modules/Guestbook/Pub_:_urlTooLong]]')
)
)
&& validateField('SB_Validator.notEmpty', 'comment', 'Por favor entre uma mensagem.')
) {
document.forms['add'].submit();
return true;
} else {
return false;
}
}
...
The published pages with this module are not working, since this JavaScript function does not work properly.
I don't know what is wrong, since I think that these fields should be present in the en_US.xml file.
Any ideas?
Thank you.
Alexandre
I'm having problems with SB translation.
I have used the "get_current_locale.sh" script to get the en_US.xml file.
In this file I can't find some entries:
[[Modules/Guestbook/Pub_:_nameTooLong]]
[[Modules/Guestbook/Pub_:_emailTooLong]]
[[Modules/Guestbook/Pub_:_urlTooLong]]
They are not present in the related section.
These entries are used in a JavaScript function that validates the Guestbook form:
...
function validateForm() {
if (validateField('SB_Validator.notEmpty', 'author', 'Por favor preencha seu nome.')
&& extendedValidateField("SB_Validator.isMaxLength(document.getElementById('author').value, 255)", 'author', '[[Modules/Guestbook/Pub_:_nameTooLong]]')
&& (
document.getElementById('email').value.length ==0 || (
validateField('SB_Validator.isEmail', 'email', 'Por favor informe um e-mail válido.')
&&
extendedValidateField("SB_Validator.isMaxLength(document.getElementById('email').value, 255)", 'email', '[[Modules/Guestbook/Pub_:_emailTooLong]]')
)
)
&& (
document.getElementById('url').value.length ==0 || (
validateField('SB_Validator.isHttpUrl', 'url', 'Por favor informe uma URL válida.')
&& extendedValidateField("SB_Validator.isMaxLength(document.getElementById('url').value, 255)", 'url', '[[Modules/Guestbook/Pub_:_urlTooLong]]')
)
)
&& validateField('SB_Validator.notEmpty', 'comment', 'Por favor entre uma mensagem.')
) {
document.forms['add'].submit();
return true;
} else {
return false;
}
}
...
The published pages with this module are not working, since this JavaScript function does not work properly.
I don't know what is wrong, since I think that these fields should be present in the en_US.xml file.
Any ideas?
Thank you.
Alexandre