Changeset 6eecd74 in git
- Timestamp:
- 2012-08-01T08:00:21Z (7 years ago)
- Branches:
- 3.0, 3.1, 3.2, master, trunk
- Children:
- 89795c7
- Parents:
- fda586a
- Files:
-
- 11 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/prepare.mak
r802a402 r6eecd74 6 6 .PHONY: dummy 7 7 .PHONY: all 8 all: xcache/xc_opcode_spec_def.h xc_const_string tags 8 all: xcache/xc_opcode_spec_def.h xc_const_string tags po 9 9 10 10 .PHONY: clean 11 clean: clean_xc_const_string 11 clean: clean_xc_const_string clean_po 12 12 rm -f tags xcache/xc_opcode_spec_def.h 13 13 … … 97 97 "$(CTAGS)" -R . "${PHP_DEVEL_DIR}/main" "${PHP_DEVEL_DIR}/Zend" "${PHP_DEVEL_DIR}/TSRM" "${PHP_DEVEL_DIR}/ext/standard" 98 98 endif 99 100 .PHONY: po 101 define htdocspo 102 po: \ 103 htdocs/$(1)/lang/en.po \ 104 htdocs/$(1)/lang/en.po-merged \ 105 htdocs/$(1)/lang/zh-simplified.po-merged \ 106 htdocs/$(1)/lang/zh-simplified.po \ 107 htdocs/$(1)/lang/zh-traditional.po \ 108 htdocs/$(1)/lang/zh-traditional.po-merged 109 110 htdocs/$(1)/lang/%.po-merged: htdocs/$(1)/lang/%.po htdocs/$(1)/lang/$(1).pot 111 msgmerge -o "$$@".tmp $$^ 112 mv "$$@".tmp "$$@" 113 114 htdocs/$(1)/lang/%.po: 115 touch "$$@" 116 117 htdocs/$(1)/lang/$(1).pot: 118 xgettext --keyword=_T --keyword=N_ --from-code=UTF-8 -F -D htdocs/$(1)/ $$(subst htdocs/$(1)/,,$$^) -o "$$@".tmp 119 mv "$$@".tmp "$$@" 120 121 htdocs/$(1)/lang/$(1).pot: $(shell find htdocs/$(1) -type f | grep php | grep -v lang | grep -v config) 122 123 endef 124 125 $(eval $(call htdocspo,cacher)) 126 $(eval $(call htdocspo,common)) 127 $(eval $(call htdocspo,coverager)) 128 $(eval $(call htdocspo,diagnosis)) 129 130 .PHONY: clean_po 131 clean_po: clean_pot 132 rm -f htdocs/*/lang/*.po-merged 133 134 .PHONY: clean_pot 135 clean_pot: 136 rm -f htdocs/*/lang/*.pot -
devel/run
r055c347 r6eecd74 16 16 prep*) 17 17 exec $MAKE -f devel/prepare.mak "${args[@]}" 18 ;; 19 *langphp) 20 find htdocs -iname '*.po' | while read -r i; do 21 echo updateing $i 22 devel/updatelangphp.awk < $i 23 done 24 exit 25 ;; 26 mergepo) 27 ./run prep 28 find htdocs -iname '*.po' | while read -r i; do 29 if [[ -f $i-merged ]]; then 30 mv $i-merged $i 31 fi 32 done 33 exit 18 34 ;; 19 35 tags) -
htdocs/cacher/index.php
r3a65e13 r6eecd74 228 228 $entryList = array('cache_list' => array(), 'deleted_list' => array()); 229 229 if ($_GET['do'] == 'listphp') { 230 $entryList['type_name'] = 'php';231 230 $entryList['type'] = XC_TYPE_PHP; 232 231 } 233 232 else { 234 $entryList['type_name'] = 'var';235 233 $entryList['type'] = XC_TYPE_VAR; 236 234 } -
htdocs/cacher/listentries.tpl.php
rc780bef r6eecd74 4 4 <?php 5 5 $entryList = getEntryList(); 6 $isphp = $entryList['type'] == 'listphp'; 7 $typeName = $entryList['type_name']; 6 $isphp = $entryList['type'] == XC_TYPE_PHP; 8 7 ob_start($config['path_nicer']); 9 8 10 9 $listName = 'Cached'; 11 10 $entries = $entryList['cache_list']; 11 $caption = $isphp ? _T("php Cached") : _T("var Cached"); 12 12 include "./sub/entrylist.tpl.php"; 13 13 14 14 $listName = 'Deleted'; 15 $caption = $isphp ? _T("php Deleted") : _T("var Deleted"); 15 16 $entries = $entryList['deleted_list']; 16 17 include "./sub/entrylist.tpl.php"; -
htdocs/cacher/sub/entrylist.tpl.php
re051e90 r6eecd74 2 2 <form action="" method="post"> 3 3 <table cellspacing="0" cellpadding="4" class="cycles entries"> 4 <caption><?php echo _T("$typeName $listName"); ?></caption>4 <caption><?php echo $caption; ?></caption> 5 5 <?php 6 6 … … 12 12 if ($isphp) { 13 13 echo 14 th( "entry.id")14 th(N_("entry.id")) 15 15 ; 16 16 } 17 17 else { 18 18 echo 19 th( "entry.remove")19 th(N_("entry.remove")) 20 20 ; 21 21 } -
htdocs/cacher/sub/summary.tpl.php
rfda586a r6eecd74 132 132 <div class="legendtitle"><?php echo _T('Legends:'); ?></div> 133 133 <div class="legend pvalue"> </div> 134 <div class="legendtitle"><?php echo _T($config['percent_graph_type'] == 'free' ? '% Free' :'% Used'); ?></div>134 <div class="legendtitle"><?php echo $config['percent_graph_type'] == 'free' ? _T('% Free') : _T('% Used'); ?></div> 135 135 <div class="legend" style="background: rgb(0,0,255)"> </div> 136 <div class="legendtitle"><?php echo _T($config['percent_graph_type'] == 'free' ? 'Free Blocks' :'Used Blocks'); ?></div>136 <div class="legendtitle"><?php echo $config['percent_graph_type'] == 'free' ? _T('Free Blocks') : _T('Used Blocks'); ?></div> 137 137 <div class="legend" style="background: rgb(255,0,0)"> </div> 138 138 <div class="legendtitle"><?php echo _T('Hits'); ?></div> -
htdocs/coverager/lang/en.php
r3a65e13 r6eecd74 1 1 <?php 2 2 3 $GLOBALS['show_todo_strings'] = false;4 5 3 ?>
Note: See TracChangeset
for help on using the changeset viewer.