• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Translation fields missing in en_US.xml

zooming

Regular Pleskian
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
 
Hello Dmitry,

Please take a look at sorce code of this page: http://www.marizapires.com.br/page2.php
I have tried to download de translation kit again (just in case), but I still didn't found these entries (both in the en_US.xml file in the "src" directory and in the en_US.xml file generated with get_current_locale.sh).

Thank you.
Alexandre
 
Alexandre,

Just for you information, I have checked this and could not find these values too. I have already forwarded this to developers for clarification. Will update this thread in case of any news.
 
Alexandre,

In the attachment you can find updated en_US.xml file (archived). Please try to use and let me know how it goes.
 

Attachments

  • en_US.zip
    61.2 KB · Views: 3
Back
Top