atrpo_extract

Versions
6.1
atrpo_extract($path)

Extract strings from *.po files.

Parameters

$path The path to the *.po files.

Code

atr/modules/atrpo/includes/atrpo.extract.inc, line 14

<?php
function atrpo_extract($path) {
  global $atr_strings;

  $po_files = atrpo_po_files($path);
  foreach ($po_files as $po_file) {
    atrpo_po_file_process($po_file);
  }

  // TODO: Generalise string location storage. Not all strings may be found in
  // files.
  if ($atr_strings) {
    module_load_include('inc', 'atr', 'includes/atr.extract');
    atr_filepath($atr_strings, $path);
  }
}
?>