Warning Reasons

Frequently Asked Questions

Translatable

To translate for a language, if you have set, within the ACP entries for the mod, a warning reason of, eg

Hide
Spam


find this in the included language file

Code: Select all
// warning reasons translated
   'warning_reasons'      => array(
      'TITLE'   => array(
         'OTHER'      => 'Other',
      ),
      'DESCRIPTION' => array(
         'OTHER'      => 'The warning does not fit into any other category, please use the further information field.',
      )
   ),   


and make it like this

Code: Select all
// warning reasons translated
   'warning_reasons'      => array(
      'TITLE'   => array(
         'OTHER'      => 'Other',
         'SPAM'      => 'Spam',
      ),
      'DESCRIPTION' => array(
         'OTHER'      => 'The warning does not fit into any other category, please use the further information field.',
         'SPAM'      => 'Submitting spam',
      )
   ),   


similarly, if you have a warning reason of

Hide
Submitting Spam


make the same find and instead make the code read like this

Code: Select all
// warning reasons translated
   'warning_reasons'      => array(
      'TITLE'   => array(
         'OTHER'      => 'Other',
         'SUBMITTING_SPAM'      => 'Spam',
      ),
      'DESCRIPTION' => array(
         'OTHER'      => 'The warning does not fit into any other category, please use the further information field.',
         'SUBMITTING_SPAM'      => 'Submitting spam',
      )
   ),


The "Description" can be anything you like, eg "Submitting Spam" could also be "The forum does not allow spam to be submitted".

You must save the file as UTF-8 without BOM and upload the change back into the language the reason is being translated for. If there is no translation within the language file, then the mod will use the entry in the database.