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

Diff of /contributions/modules/live_translation/live_translation.inc

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

revision 1.1, Sun Apr 19 02:35:51 2009 UTC revision 1.2, Mon Apr 20 02:48:32 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: $  // $Id: live_translation.inc,v 1.1 2009/04/19 02:35:51 brmassa Exp $
3  /**  /**
4   * @author Bruno Massa   * @author Bruno Massa
5   * @file   * @file
# Line 34  function _live_translation_status($singl Line 34  function _live_translation_status($singl
34        if ($langcode == 'en') {        if ($langcode == 'en') {
35          continue;          continue;
36        }        }
37    
38        foreach ($modules as $mod) {        foreach ($modules as $mod) {
39          if (!isset($update_time[$langcode][$mod]) or $update_time[$langcode][$mod] < $time) {          if (!isset($update_time[$langcode][$mod]) or $update_time[$langcode][$mod] < $time) {
40            $result[$langcode][$mod] = LIVE_TRANSLATION_STATUS_UNKNOWN;            $result[$langcode][$mod] = LIVE_TRANSLATION_STATUS_UNKNOWN;
# Line 43  function _live_translation_status($singl Line 44  function _live_translation_status($singl
44            $result[$langcode][$mod] = LIVE_TRANSLATION_STATUS_OUTDATE;            $result[$langcode][$mod] = LIVE_TRANSLATION_STATUS_OUTDATE;
45            $result_single = ($result_single == LIVE_TRANSLATION_STATUS_OK) ? LIVE_TRANSLATION_STATUS_OUTDATE : LIVE_TRANSLATION_STATUS_OK;            $result_single = ($result_single == LIVE_TRANSLATION_STATUS_OK) ? LIVE_TRANSLATION_STATUS_OUTDATE : LIVE_TRANSLATION_STATUS_OK;
46          }          }
47          elseif (!empty($import_status[$langcode][$mod]) and $import_status[$langcode][$mod] < 0) {          elseif (!empty($import_status[$langcode][$mod]) and $import_status[$langcode][$mod] == -1) {
48            $result[$langcode][$mod] = LIVE_TRANSLATION_STATUS_INVALID;            $result[$langcode][$mod] = LIVE_TRANSLATION_STATUS_PROJECT;
49            }
50            elseif (!empty($import_status[$langcode][$mod]) and $import_status[$langcode][$mod] == -2) {
51              $result[$langcode][$mod] = LIVE_TRANSLATION_STATUS_VERSION;
52          }          }
53          else {          else {
54            $result[$langcode][$mod] = LIVE_TRANSLATION_STATUS_OK;            $result[$langcode][$mod] = LIVE_TRANSLATION_STATUS_OK;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2