/[drupal]/contributions/modules/potx/potx.inc
ViewVC logotype

Diff of /contributions/modules/potx/potx.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.17.2.7.2.19.2.8 by goba, Tue Nov 17 12:28:28 2009 UTC revision 1.1.2.17.2.7.2.19.2.9 by goba, Tue Nov 17 12:35:09 2009 UTC
# Line 1  Line 1 
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
# Line 1477  function _potx_save_string($value = NULL Line 1477  function _potx_save_string($value = NULL
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

Legend:
Removed from v.1.1.2.17.2.7.2.19.2.8  
changed lines
  Added in v.1.1.2.17.2.7.2.19.2.9

  ViewVC Help
Powered by ViewVC 1.1.3