X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fmsgcat.pm;h=cbdc1d6335f9005e14498c5ab547b384b5b07e27;hb=fadaa67e77ad8d5d966e252aba7f193e9e3840e3;hp=fa10d34fadf16850b4de9a62a75152586972baa7;hpb=e6ea57971831f25d682d97a0ba508c39b66ecd8b;p=freeside.git diff --git a/FS/FS/msgcat.pm b/FS/FS/msgcat.pm index fa10d34fa..cbdc1d633 100644 --- a/FS/FS/msgcat.pm +++ b/FS/FS/msgcat.pm @@ -52,7 +52,8 @@ If you just want to B message catalogs, see L. =item new HASHREF -Creates a new example. To add the example to the database, see L<"insert">. +Creates a new message catalog entry. To add the message catalog entry to the +database, see L<"insert">. Note that this stores the hash reference, not a distinct copy of the hash it points to. You can ask the object for a copy with the I method. @@ -91,8 +92,8 @@ returns the error, otherwise returns false. =item check -Checks all fields to make sure this is a valid example. If there is -an error, returns the error, otherwise returns false. Called by the insert +Checks all fields to make sure this is a valid message catalog entry. If there +is an error, returns the error, otherwise returns false. Called by the insert and replace methods. =cut @@ -113,7 +114,7 @@ sub check { $self->locale =~ /^([\w\@]+)$/ or return "illegal locale: ". $self->locale; $self->locale($1); - ''; #no error + $self->SUPER::check } =back