Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

invalid input msg for perl reg exp not translating

13 years 7 months ago #163568 by CalvinMcGee
I would like to bump the following thread , and mark it as a potential bug.

Hi,
I have searched the forums and checked and rechecked my work.
It seems that the error in case of invalid input for a custom perl regular expression is not translatable.

I have set the error in case of invalid input to be _UE_LUNAR_BIRTHDAY_MSG

and have placed
DEFINE('_UE_LUNAR_BIRTHDAY_MSG','my translated error message');

in my language file.

The translations for my field names, information etc are displayed succesfully, but the tranlsation for the error message is not.

Does anybody know if there is somewhere in the php code that I can hardcode a single error message for all perl regular expressions (I will hard code it already translated) ? My website only has one language...its just not english (or english characters). Alternatively, I can set it to one of the default Joomla error messages (which are translated) like 'error' or something, if someone can tell me how ?? I dont need to provide details of the error, just an elegent way to say that the field in question has a mistake.

Thanks in advance for any help.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
13 years 7 months ago #163573 by nant
Please provide more information about versions and exact method to reproduce what you are seeing.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum