| 1 |
<?php |
<?php |
| 2 |
// $Id: potx.inc,v 1.1.2.17.2.7.2.19.2.7 2009/08/25 15:36:01 goba Exp $ |
// $Id: potx.inc,v 1.1.2.17.2.7.2.19.2.8 2009/11/17 12:28:28 goba Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 1477 |
global $_potx_strings, $_potx_install; |
global $_potx_strings, $_potx_install; |
| 1478 |
|
|
| 1479 |
if (isset($value)) { |
if (isset($value)) { |
| 1480 |
|
|
| 1481 |
|
// Value set but empty. Mark error on empty translatable string. Only trim |
| 1482 |
|
// for empty string checking, since we should store leading/trailing |
| 1483 |
|
// whitespace as it appears in the string otherwise. |
| 1484 |
|
$check_empty = trim($value); |
| 1485 |
|
if (empty($check_empty)) { |
| 1486 |
|
potx_status('error', t('Empty string attempted to be localized. Please do not leave test code for localization in your source.'), $file, $line); |
| 1487 |
|
return; |
| 1488 |
|
} |
| 1489 |
|
|
| 1490 |
switch ($string_mode) { |
switch ($string_mode) { |
| 1491 |
case POTX_STRING_BOTH: |
case POTX_STRING_BOTH: |
| 1492 |
// Mark installer strings as duplicates of runtime strings if |
// Mark installer strings as duplicates of runtime strings if |