This is one of those errors that users will never get unless they are
modifying the code. I really do not think these types of things should be
translated (just a waste of memory and time of anyone translating), but we
should find out what the policy is of the Mod Team.


On Tue, Jan 7, 2014 at 10:45 AM, Matt Friedman <notifications@github.com>wrote:

> In entity/rule.php:
>
> > +			'rule_title'						=> 'set_title', // call set_title()
> > +
> > +			// We do not pass to set_message() as generate_text_for_storage would run twice
> > +			'rule_message'						=> 'string',
> > +			'rule_message_bbcode_uid'			=> 'string',
> > +			'rule_message_bbcode_bitfield'		=> 'string',
> > +			'rule_message_bbcode_options'		=> 'integer',
> > +		);
> > +
> > +		// Go through the basic fields and set them to our data array
> > +		foreach ($fields as $field => $type)
> > +		{
> > +			// If the data wasn't sent to us, throw an exception
> > +			if (!isset($data[$field]))
> > +			{
> > +				throw new \phpbb\boardrules\exception\invalid_argument('MISSING_FIELD', $field);
>
> if MISSING_FIELD is a lang var, shouldn't it be added to our lang file
> now, so we don't forget about it?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/phpbb-extensions/boardrules/pull/20/files#r8698303>
> .
>