Changeset 23449 for extensions/plugin_lang_analysis
- Timestamp:
- Jun 22, 2013, 11:27:26 PM (11 years ago)
- Location:
- extensions/plugin_lang_analysis
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/plugin_lang_analysis
-
Property
svn:ignore
set to
_data
-
Property
svn:ignore
set to
-
extensions/plugin_lang_analysis/include/functions.inc.php
r23421 r23449 64 64 { 65 65 // l10n 66 if (preg_match_all('#l10n\((?: [ ]*)(?:["\']{1})(.*?)(?:["\']{1})(?:[ ]*)\)#', $line, $matches))66 if (preg_match_all('#l10n\((?:\s*)(?:["\']{1})(.*?)(?:["\']{1})(?:\s*)\)#', $line, $matches)) 67 67 { 68 68 for ($j=0; $j<count($matches[1]); ++$j) … … 72 72 } 73 73 // translate 74 if (preg_match_all('#\{(?:["\']{1})(.*?)(?:["\']{1})\| \@translate#', $line, $matches))74 if (preg_match_all('#\{(?:["\']{1})(.*?)(?:["\']{1})\|(?:@{0,1})translate#', $line, $matches)) 75 75 { 76 76 for ($j=0; $j<count($matches[1]); ++$j) … … 80 80 } 81 81 // l10n_dec on one line 82 if (preg_match_all('#l10n_dec\((?: [ ]*)(?:["\']{1})(.*?)(?:["\']{1})(?:[ ]*),(?:[ ]*)(?:["\']{1})(.*?)(?:["\']{1})#', $line, $matches))82 if (preg_match_all('#l10n_dec\((?:\s*)(?:["\']{1})(.*?)(?:["\']{1})(?:\s*),(?:\s*)(?:["\']{1})(.*?)(?:["\']{1})#', $line, $matches)) 83 83 { 84 84 for ($j=0; $j<count($matches[1]); ++$j) … … 98 98 } 99 99 100 if (preg_match_all('#l10n_dec\((?: [ ]*)(?:["\']{1})(.*?)(?:["\']{1})(?:[ ]*),(?:[ ]*)(?:["\']{1})(.*?)(?:["\']{1})#', $three_lines, $matches))100 if (preg_match_all('#l10n_dec\((?:\s*)(?:["\']{1})(.*?)(?:["\']{1})(?:\s*),(?:\s*)(?:["\']{1})(.*?)(?:["\']{1})#', $three_lines, $matches)) 101 101 { 102 102 for ($j=0; $j<count($matches[1]); ++$j) -
extensions/plugin_lang_analysis/template/main.tpl
r23427 r23449 87 87 $(this).addClass('active'); 88 88 89 if ($(this). data('type') == 'common') {89 if ($(this).hasClass('common')) { 90 90 $(this).nextAll('input').val('false'); 91 91 } … … 106 106 {foreach from=$PLA_FILES item=file} 107 107 <div class="type-button"> 108 <span class="item {if not $file.is_admin}active{/if}" data-type="common">{'Common'|@translate}</span><!--109 --><span class="item {if $file.is_admin}active{/if}" data-type="admin">{'Admin'|@translate}</span>108 <span class="item common {if not $file.is_admin}active{/if}">{'Common'|@translate}</span><!-- 109 --><span class="item admin {if $file.is_admin}active{/if}">{'Admin'|@translate}</span> 110 110 <input type="hidden" name="files[{$file.path}]" value="{if $file.is_admin}true{else}false{/if}"> 111 111 </div> … … 158 158 <ul> 159 159 {foreach from=$data.files item=lines key=file} 160 <li>{$file} <i>({', '|@implode:$lines})</i></li> 160 <li class="text-{if $PLA_FILES[$file].is_admin}admin{else}common{/if}"> 161 {$file} <i>({', '|@implode:$lines})</i></li> 161 162 {/foreach} 162 163 </ul> 163 164 </td> 164 <td>{if $data.is_admin}{'Admin'|@translate}{else}{'Common'|@translate}{/if}</td> 165 {if $data.is_admin}<td class="text-admin">{'Admin'|@translate}</td> 166 {else}<td class="text-common">{'Common'|@translate}</td>{/if} 165 167 <td>{if $data.in_plugin}<b>{'Yes'|@translate}</b>{else}{'No'|@translate}{/if}</td> 166 168 <td>{if $data.in_common}<b>{'Yes'|@translate}</b>{else}{'No'|@translate}{/if}</td> -
extensions/plugin_lang_analysis/template/style.css
r23421 r23449 1 .text-common { 2 color:#5E9100 !important; 3 } 4 .text-admin { 5 color:#E23D3B !important; 6 } 7 1 8 .type-button { 2 9 display:inline-block; … … 7 14 padding:5px 8px; 8 15 margin:1px; 9 border:1px solid #d3d3d3;10 16 background:#e6e6e6; 11 17 color:#555; … … 14 20 .type-button span.active { 15 21 color:#212121; 16 border-color:#aaa; 17 background:#fff; 22 } 23 .type-button span.common.active { 24 background:#BAFF3F; 25 } 26 .type-button span.admin.active { 27 background:#FF5E5B; 18 28 } 19 29 .type-button span:first-of-type { … … 33 43 color:#eee; 34 44 padding:2px 5px; 45 white-space:nowrap; 35 46 } 36 47 .strings thead th:not(:first-of-type) {
Note: See TracChangeset
for help on using the changeset viewer.