| 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[^>]*>" => "", |
|
|
); |
|
|
} |
|