/[drupal]/contributions/modules/translation_framework/translation_framework.module
ViewVC logotype

Diff of /contributions/modules/translation_framework/translation_framework.module

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

revision 1.1.2.10, Thu Apr 23 20:11:48 2009 UTC revision 1.1.2.11, Thu Apr 23 20:14:08 2009 UTC
# Line 164  function translation_framework_languages Line 164  function translation_framework_languages
164    }    }
165    return array();    return array();
166  }  }
   
 /**  
  * Function will return an array of all the known html tags and the strings we can substitute them for  
  *  
  * @return Array in the format array('<a>' => '<111>', '<b>' => '<222>')  
  */  
 function translation_framework_html_tags() {  
   // determine if we can actually do it this way or not for the translation  
   //ereg_replace("</b[^>]*>", "</bold>", $str);  
   return array(  
     "<a[^>]*>" => "", "</a[^>]*>" => "", "<abbr[^>]*>" => "", "<acronym[^>]*>" => "", "<address[^>]*>" => "", "<area[^>]*>" => "",  
     "<b[^>]*>" => "", "<base[^>]*>" => "", "<bdo[^>]*>" => "", "<big[^>]*>" => "", "<blockquote[^>]*>" => "",  
     "<br[^>]*>" => "", "<button[^>]*>" => "", "<caption[^>]*>" => "", "<center[^>]*>" => "", "<cite[^>]*>" => "",  
     "<code[^>]*>" => "", "<col[^>]*>" => "", "<colgroup[^>]*>" => "", "<dd[^>]*>" => "", "<del[^>]*>" => "",  
     "<dir[^>]*>" => "", "<div[^>]*>" => "", "<dfn[^>]*>" => "", "<dl[^>]*>" => "", "<dt[^>]*>" => "", "<em[^>]*>" => "",  
     "<fieldset[^>]*>" => "", "<font[^>]*>" => "", "<form[^>]*>" => "", "<h1[^>]*>" => "", "<h2[^>]*>" => "", "<h3[^>]*>" => "",  
     "<h4[^>]*>" => "", "<h5[^>]*>" => "", "<h6[^>]*>" => "", "<hr[^>]*>" => "", "<i[^>]*>" => "", "<img[^>]*>" => "",  
     "<input[^>]*>" => "", "<ins[^>]*>" => "", "<isindex[^>]*>" => "", "<kbd[^>]*>" => "", "<label[^>]*>" => "",  
     "<legend[^>]*>" => "", "<li[^>]*>" => "", "<map[^>]*>" => "", "<menu[^>]*>" => "", "<ol[^>]*>" => "", "<optgroup[^>]*>" => "",  
     "<option[^>]*>" => "", "<p[^>]*>" => "", "<pre[^>]*>" => "", "<q[^>]*>" => "", "<s[^>]*>" => "", "<samp[^>]*>" => "",  
     "<select[^>]*>" => "", "<small[^>]*>" => "", "<span[^>]*>" => "", "<strike[^>]*>" => "", "<strong[^>]*>" => "",  
     "<sub[^>]*>" => "", "<sup[^>]*>" => "", "<table[^>]*>" => "", "<tbody[^>]*>" => "", "<td[^>]*>" => "", "<textarea[^>]*>" => "",  
     "<tfoot[^>]*>" => "", "<th[^>]*>" => "", "<thead[^>]*>" => "", "<tr[^>]*>" => "", "<tt[^>]*>" => "", "<u[^>]*>" => "",  
     "<ul[^>]*>" => "", "<var[^>]*>" => "","</abbr[^>]*>" => "", "</acronym[^>]*>" => "", "</address[^>]*>" => "", "</area[^>]*>" => "",  
     "</b[^>]*>" => "", "</base[^>]*>" => "", "</bdo[^>]*>" => "", "</big[^>]*>" => "", "</blockquote[^>]*>" => "",  
     "<br/[^>]*>" => "", "<br /[^>]*>" => "", "</button[^>]*>" => "", "</caption[^>]*>" => "", "</center[^>]*>" => "", "</cite[^>]*>" => "",  
     "</code[^>]*>" => "", "</col[^>]*>" => "", "</colgroup[^>]*>" => "", "</dd[^>]*>" => "", "</del[^>]*>" => "",  
     "</dir[^>]*>" => "", "</div[^>]*>" => "", "</dfn[^>]*>" => "", "</dl[^>]*>" => "", "</dt[^>]*>" => "", "</em[^>]*>" => "",  
     "</fieldset[^>]*>" => "", "</font[^>]*>" => "", "</form[^>]*>" => "", "</h1[^>]*>" => "", "</h2[^>]*>" => "", "</h3[^>]*>" => "",  
     "</h4[^>]*>" => "", "</h5[^>]*>" => "", "</h6[^>]*>" => "", "</hr[^>]*>" => "", "</i[^>]*>" => "", "</img[^>]*>" => "",  
     "</input[^>]*>" => "", "</ins[^>]*>" => "", "</isindex[^>]*>" => "", "</kbd[^>]*>" => "", "</label[^>]*>" => "",  
     "</legend[^>]*>" => "", "</li[^>]*>" => "", "</map[^>]*>" => "", "</menu[^>]*>" => "", "</ol[^>]*>" => "", "</optgroup[^>]*>" => "",  
     "</option[^>]*>" => "", "</p[^>]*>" => "", "</pre[^>]*>" => "", "</q[^>]*>" => "", "</s[^>]*>" => "", "</samp[^>]*>" => "",  
     "</select[^>]*>" => "", "</small[^>]*>" => "", "</span[^>]*>" => "", "</strike[^>]*>" => "", "</strong[^>]*>" => "",  
     "</sub[^>]*>" => "", "</sup[^>]*>" => "", "</table[^>]*>" => "", "</tbody[^>]*>" => "", "</td[^>]*>" => "", "</textarea[^>]*>" => "",  
     "</tfoot[^>]*>" => "", "</th[^>]*>" => "", "</thead[^>]*>" => "", "</tr[^>]*>" => "", "</tt[^>]*>" => "", "</u[^>]*>" => "",  
     "</ul[^>]*>" => "", "</var[^>]*>" => "",  
   );  
 }  

Legend:
Removed from v.1.1.2.10  
changed lines
  Added in v.1.1.2.11

  ViewVC Help
Powered by ViewVC 1.1.2