You are here

function coder_review_i18n_po_reviews in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_review/includes/coder_review_i18n_po.inc \coder_review_i18n_po_reviews()

Implements hook_reviews().

File

coder_review/includes/coder_review_i18n_po.inc, line 14
Provides coder_reviews for internationalization translation file issues.

Code

function coder_review_i18n_po_reviews() {
  $argex = '(((\\$?)[a-zA-Z_]+((\\([^)]*\\))|\\[[^\\]]*\\])?)|[0-9]+(\\.[0-9]*)?|\'\'|"")';
  $rules[] = array(
    '#type' => 'callback',
    '#filename' => array(
      'po',
    ),
    '#value' => '_coder_review_translation_callback',
  );
  $review = array(
    '#title' => 'Translation files',
    '#rules' => $rules,
    '#description' => 'Checks for .po translation issues, this is somewhat experimental',
    '#version' => 2,
    '#image' => 'images/po.png',
  );
  return array(
    'i18n_po' => $review,
  );
}