htdocs: fixed po2php. add translation for diagnosis
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1103 c26eb9a1-5813-0410-bd6c-c2e55f420ca73.0
parent
89795c79e2
commit
16c7313cf8
|
@ -13,8 +13,8 @@ function flushOut() {
|
|||
else if (msgstr == "") {
|
||||
}
|
||||
else {
|
||||
print "\t\t'"msgid"'";
|
||||
print "\t\t=> '"msgstr"',";
|
||||
print "\t\t\""msgid"\"";
|
||||
print "\t\t=> \""msgstr"\",";
|
||||
}
|
||||
}
|
||||
else {
|
|
@ -118,7 +118,7 @@ define htdocspo
|
|||
xgettext --keyword=_T --keyword=N_ --from-code=UTF-8 -F -D htdocs/$(1)/ $$(subst htdocs/$(1)/,,$$^) -o "$$@".tmp
|
||||
mv "$$@".tmp "$$@"
|
||||
|
||||
htdocs/$(1)/lang/$(1).pot: $(shell find htdocs/$(1) -type f | grep php | grep -v lang | grep -v config)
|
||||
htdocs/$(1)/lang/$(1).pot: $(shell find htdocs/$(1) -type f | grep php | grep -v lang | grep -v config | grep -vF .swp)
|
||||
|
||||
endef
|
||||
|
||||
|
|
|
@ -16,10 +16,11 @@ case "$type" in
|
|||
prep*)
|
||||
exec $MAKE -f devel/prepare.mak "${args[@]}"
|
||||
;;
|
||||
*langphp)
|
||||
po2php)
|
||||
./run mergepo
|
||||
find htdocs -iname '*.po' | while read -r i; do
|
||||
phpfile=${i/.po/.php}
|
||||
devel/updatelangphp.awk < $i > $phpfile.tmp
|
||||
devel/po2php.awk < $i > $phpfile.tmp
|
||||
mv $phpfile.tmp $phpfile
|
||||
done
|
||||
exit
|
||||
|
|
|
@ -1,87 +1,87 @@
|
|||
<?php
|
||||
// auto generated, do not modify
|
||||
$strings += array(
|
||||
'php Cached'
|
||||
=> 'PHP Cached',
|
||||
'var Cached'
|
||||
=> 'Variable Cached',
|
||||
'php Deleted'
|
||||
=> 'PHP Deleted',
|
||||
'var Deleted'
|
||||
=> 'Variable Deleted',
|
||||
'entry.id'
|
||||
=> 'Id|',
|
||||
'entry.remove'
|
||||
=> 'Remove|',
|
||||
'entry.name'
|
||||
=> 'Entry name|The entry name or filename',
|
||||
'entry.hits'
|
||||
=> 'Hits|Hit times of this entry (loaded from this cache)',
|
||||
'entry.size'
|
||||
=> 'Size|Size in bytes of this entry in the cache',
|
||||
'entry.refcount'
|
||||
=> 'Refs|Reference count of this entry is holded by a php request',
|
||||
'entry.phprefcount'
|
||||
=> 'Shares|Count of entry sharing this php data',
|
||||
'entry.class_cnt'
|
||||
=> 'Cls.|Count of classes',
|
||||
'entry.function_cnt'
|
||||
=> 'Funcs|Count of functions',
|
||||
'entry.file_size'
|
||||
=> 'Src Size|Size of the source file',
|
||||
'entry.file_mtime'
|
||||
=> 'Modified|Last modified time of the source file',
|
||||
'entry.file_device'
|
||||
=> 'dev|device number of the source file',
|
||||
'entry.file_inode'
|
||||
=> 'ino|inode number of the source file',
|
||||
'entry.hash'
|
||||
=> 'Hash|Hash value of this entry',
|
||||
'entry.atime'
|
||||
=> 'Access|Last time when this entry is accessed',
|
||||
'entry.ctime'
|
||||
=> 'Create|The time when this entry is stored',
|
||||
'entry.delete'
|
||||
=> 'Delete|The time when this entry is deleted',
|
||||
'Caches'
|
||||
=> 'Caches',
|
||||
'cache.cache'
|
||||
=> 'Cache|',
|
||||
'cache.slots'
|
||||
=> 'Slots|Number of hash slots. the setting from your php.ini',
|
||||
'cache.size'
|
||||
=> 'Size|Cache Size, Size of the cache (or cache chunk), in bytes',
|
||||
'cache.avail'
|
||||
=> 'Avail|Available Memory, free memory in bytes of this cache',
|
||||
'cache.blocksgraph'
|
||||
=> 'Percent Graph|Shows how much memory available in percent, and memory blocks status in graph',
|
||||
'cache.operations'
|
||||
=> 'Operations|Press the clear button to clean this cache',
|
||||
'cache.status'
|
||||
=> 'Status|Compiling flag, \"Compiling\" if the cache is busy compiling php script. \"Disabled\" if cache is disabled',
|
||||
'cache.hits'
|
||||
=> 'Hits|Cache Hits, hit=a var/php is loaded from this cache',
|
||||
'cache.hits_graph'
|
||||
=> 'Hits*24H|Hits graph of last 24 hours',
|
||||
'cache.hits_avg_h'
|
||||
=> 'Hits/H|Average Hits per Hour. Only last 24 hours is logged',
|
||||
'cache.hits_avg_s'
|
||||
=> 'Hits/S|Average Hits per Second. Only last 5 seconds is logged',
|
||||
'cache.updates'
|
||||
=> 'Updates|Cache Updates',
|
||||
'cache.skips'
|
||||
=> 'Skips|Skips. Skip=updates are needed but skipped for some reason. e.g.: other process/thread is busy compiling on this cache',
|
||||
'cache.ooms'
|
||||
=> 'OOMs|Out Of Memory, how many times a new item should be stored but there isn't enough memory in the cache, think of increasing the xcache.size or xcache.var_size',
|
||||
'cache.errors'
|
||||
=> 'Errs|Compiler errors, how many times your script is compiled but failed. You should really check what is happening if you see this value increase. (See Help for more information)',
|
||||
'cache.readonly_protected'
|
||||
=> 'Protected|Whether readonly_protection is available and enable on this cache (See help for more information)',
|
||||
'cache.cached'
|
||||
=> 'Cached|Number of entries stored in this cache',
|
||||
'cache.deleted'
|
||||
=> 'Deleted|Number of entries is pending in delete list (expired but referenced)',
|
||||
'cache.gc_timer'
|
||||
=> 'GC|Seconds count down of Garbage Collection',
|
||||
"php Cached"
|
||||
=> "PHP Cached",
|
||||
"var Cached"
|
||||
=> "Variable Cached",
|
||||
"php Deleted"
|
||||
=> "PHP Deleted",
|
||||
"var Deleted"
|
||||
=> "Variable Deleted",
|
||||
"entry.id"
|
||||
=> "Id|",
|
||||
"entry.remove"
|
||||
=> "Remove|",
|
||||
"entry.name"
|
||||
=> "Entry name|The entry name or filename",
|
||||
"entry.hits"
|
||||
=> "Hits|Hit times of this entry (loaded from this cache)",
|
||||
"entry.size"
|
||||
=> "Size|Size in bytes of this entry in the cache",
|
||||
"entry.refcount"
|
||||
=> "Refs|Reference count of this entry is holded by a php request",
|
||||
"entry.phprefcount"
|
||||
=> "Shares|Count of entry sharing this php data",
|
||||
"entry.class_cnt"
|
||||
=> "Cls.|Count of classes",
|
||||
"entry.function_cnt"
|
||||
=> "Funcs|Count of functions",
|
||||
"entry.file_size"
|
||||
=> "Src Size|Size of the source file",
|
||||
"entry.file_mtime"
|
||||
=> "Modified|Last modified time of the source file",
|
||||
"entry.file_device"
|
||||
=> "dev|device number of the source file",
|
||||
"entry.file_inode"
|
||||
=> "ino|inode number of the source file",
|
||||
"entry.hash"
|
||||
=> "Hash|Hash value of this entry",
|
||||
"entry.atime"
|
||||
=> "Access|Last time when this entry is accessed",
|
||||
"entry.ctime"
|
||||
=> "Create|The time when this entry is stored",
|
||||
"entry.delete"
|
||||
=> "Delete|The time when this entry is deleted",
|
||||
"Caches"
|
||||
=> "Caches",
|
||||
"cache.cache"
|
||||
=> "Cache|",
|
||||
"cache.slots"
|
||||
=> "Slots|Number of hash slots. the setting from your php.ini",
|
||||
"cache.size"
|
||||
=> "Size|Cache Size, Size of the cache (or cache chunk), in bytes",
|
||||
"cache.avail"
|
||||
=> "Avail|Available Memory, free memory in bytes of this cache",
|
||||
"cache.blocksgraph"
|
||||
=> "Percent Graph|Shows how much memory available in percent, and memory blocks status in graph",
|
||||
"cache.operations"
|
||||
=> "Operations|Press the clear button to clean this cache",
|
||||
"cache.status"
|
||||
=> "Status|Compiling flag, \"Compiling\" if the cache is busy compiling php script. \"Disabled\" if cache is disabled",
|
||||
"cache.hits"
|
||||
=> "Hits|Cache Hits, hit=a var/php is loaded from this cache",
|
||||
"cache.hits_graph"
|
||||
=> "Hits*24H|Hits graph of last 24 hours",
|
||||
"cache.hits_avg_h"
|
||||
=> "Hits/H|Average Hits per Hour. Only last 24 hours is logged",
|
||||
"cache.hits_avg_s"
|
||||
=> "Hits/S|Average Hits per Second. Only last 5 seconds is logged",
|
||||
"cache.updates"
|
||||
=> "Updates|Cache Updates",
|
||||
"cache.skips"
|
||||
=> "Skips|Skips. Skip=updates are needed but skipped for some reason. e.g.: other process/thread is busy compiling on this cache",
|
||||
"cache.ooms"
|
||||
=> "OOMs|Out Of Memory, how many times a new item should be stored but there isn't enough memory in the cache, think of increasing the xcache.size or xcache.var_size",
|
||||
"cache.errors"
|
||||
=> "Errs|Compiler errors, how many times your script is compiled but failed. You should really check what is happening if you see this value increase. (See Help for more information)",
|
||||
"cache.readonly_protected"
|
||||
=> "Protected|Whether readonly_protection is available and enable on this cache (See help for more information)",
|
||||
"cache.cached"
|
||||
=> "Cached|Number of entries stored in this cache",
|
||||
"cache.deleted"
|
||||
=> "Deleted|Number of entries is pending in delete list (expired but referenced)",
|
||||
"cache.gc_timer"
|
||||
=> "GC|Seconds count down of Garbage Collection",
|
||||
);
|
||||
|
||||
|
|
|
@ -1,129 +1,129 @@
|
|||
<?php
|
||||
// auto generated, do not modify
|
||||
$strings += array(
|
||||
'Editing Variable %s'
|
||||
=> '正在编辑变量 %s',
|
||||
'Set %s in config to enable'
|
||||
=> '请在配置文件中设置 %s 启用本功能',
|
||||
'Total'
|
||||
=> '总共',
|
||||
'Summary'
|
||||
=> '摘要信息',
|
||||
'List PHP'
|
||||
=> '列出PHP',
|
||||
'List Var Data'
|
||||
=> '列变量数据',
|
||||
'php Cached'
|
||||
=> '缓存的 PHP 脚本',
|
||||
'var Cached'
|
||||
=> '缓存的变量',
|
||||
'php Deleted'
|
||||
=> '待删 PHP 缓存',
|
||||
'var Deleted'
|
||||
=> '待删变量',
|
||||
'entry.id'
|
||||
=> 'Id|',
|
||||
'entry.remove'
|
||||
=> '删除|',
|
||||
'entry.name'
|
||||
=> '项目名/文件名|项目名或者文件名',
|
||||
'entry.hits'
|
||||
=> '命中|该项目被命中的次数 (从共享内存区载入)',
|
||||
'entry.size'
|
||||
=> '大小|项目在共享内存里占用字节数',
|
||||
'entry.refcount'
|
||||
=> '引用数|项目依然被其他进程占据的引用次数',
|
||||
'entry.phprefcount'
|
||||
=> '共享数|与本项目相同 PHP 代码的个数',
|
||||
'entry.class_cnt'
|
||||
=> '类|类个数',
|
||||
'entry.function_cnt'
|
||||
=> '函数|函数个数',
|
||||
'entry.file_size'
|
||||
=> '源大小|源文件大小',
|
||||
'entry.file_mtime'
|
||||
=> '修改|源文件最后修改时间',
|
||||
'entry.file_device'
|
||||
=> 'dev|源文件所在设备ID',
|
||||
'entry.file_inode'
|
||||
=> 'ino|源文件的 inode',
|
||||
'entry.hash'
|
||||
=> '哈希|该项目的哈希值',
|
||||
'entry.atime'
|
||||
=> '访问|最后访问该项目的时间',
|
||||
'entry.ctime'
|
||||
=> '创建|该项目被创建于共享内的时间',
|
||||
'entry.delete'
|
||||
=> '删除|该项目被决定删除的时间',
|
||||
'Remove Selected'
|
||||
=> '删除所选',
|
||||
'Module Info'
|
||||
=> '模块信息',
|
||||
'Caches'
|
||||
=> '缓存区',
|
||||
'cache.cache'
|
||||
=> '缓存|',
|
||||
'cache.slots'
|
||||
=> '槽|Hash 槽个数, 对应 php.ini 里的设置',
|
||||
'cache.size'
|
||||
=> '大小|共享内存区大小, 单位: 字节',
|
||||
'cache.avail'
|
||||
=> '剩余|可用内存, 对应共享内存区的剩余内存字节数',
|
||||
'cache.blocksgraph'
|
||||
=> '百分比图|条状显示可用内存的比例, 以及显示分配块状态',
|
||||
'cache.operations'
|
||||
=> '操作|点击按钮清除对应共享内存区的数据',
|
||||
'cache.status'
|
||||
=> '状态|状态标记. 当共享内存区正在编译 PHP 脚本时标记为 \"编译中\". 当共享内存区暂停使用时标记为 \"禁用\"',
|
||||
'cache.hits'
|
||||
=> '命中|共享内存命中次数, 命中=从该共享内存载入 PHP 或者变量',
|
||||
'cache.hits_graph'
|
||||
=> '24H 分布|24 小时命中分布图. 图表现是最后 24 小时的命中次数',
|
||||
'cache.hits_avg_h'
|
||||
=> '命中/H|每小时命中次数. 只统计最后 24 小时',
|
||||
'cache.hits_avg_s'
|
||||
=> '命中/S|每秒命中次数. 只统计最后 5 秒',
|
||||
'cache.updates'
|
||||
=> '更新|共享内存更新次数',
|
||||
'cache.skips'
|
||||
=> '阻塞|跳过更新次数, 跳过=XCache 自动判断阻塞的共享内存区自动跳过阻塞等待, 直接使用非共享内存方式继续处理请求',
|
||||
'cache.ooms'
|
||||
=> '内存不足|内存不足次数, 显示需要存储新数据但是共享内存区内存不足的次数. 如果出现太频繁请考虑加大配置中的 xcache.size 或者 xcache.var_size',
|
||||
'cache.errors'
|
||||
=> '错误|编译错误, 显示您的脚本被编译时出错的次数. 如果您发现这个数字不断增长, 您应该检查什么脚本产生错误. 参考 帮助 获取更多信息',
|
||||
'cache.readonly_protected'
|
||||
=> '保护|显示该 Cache 是否支持并启用 readonly_protection. 参考 帮助 获取更多信息',
|
||||
'cache.cached'
|
||||
=> '缓存|共享内存于该共享内存区的项目条数',
|
||||
'cache.deleted'
|
||||
=> '待删|共享内存区内将要删除的项目 (已经删除但是还被某些进程占用)',
|
||||
'cache.gc_timer'
|
||||
=> 'GC|垃圾回收的倒计时',
|
||||
'Clear'
|
||||
=> '清除',
|
||||
'Disabled'
|
||||
=> '禁用',
|
||||
'Disable'
|
||||
=> '禁用',
|
||||
'Enable'
|
||||
=> '启用',
|
||||
'Compiling'
|
||||
=> '编译中',
|
||||
'Normal'
|
||||
=> '正常',
|
||||
'Sure?'
|
||||
=> '确认?',
|
||||
'Legends:'
|
||||
=> '图例:',
|
||||
'% Free'
|
||||
=> '% 剩余',
|
||||
'% Used'
|
||||
=> '% 已用',
|
||||
'Free Blocks'
|
||||
=> '未用块',
|
||||
'Used Blocks'
|
||||
=> '已用块',
|
||||
'Hits'
|
||||
=> '命中',
|
||||
"Editing Variable %s"
|
||||
=> "正在编辑变量 %s",
|
||||
"Set %s in config to enable"
|
||||
=> "请在配置文件中设置 %s 启用本功能",
|
||||
"Total"
|
||||
=> "总共",
|
||||
"Summary"
|
||||
=> "摘要信息",
|
||||
"List PHP"
|
||||
=> "列出PHP",
|
||||
"List Var Data"
|
||||
=> "列变量数据",
|
||||
"php Cached"
|
||||
=> "缓存的 PHP 脚本",
|
||||
"var Cached"
|
||||
=> "缓存的变量",
|
||||
"php Deleted"
|
||||
=> "待删 PHP 缓存",
|
||||
"var Deleted"
|
||||
=> "待删变量",
|
||||
"entry.id"
|
||||
=> "Id|",
|
||||
"entry.remove"
|
||||
=> "删除|",
|
||||
"entry.name"
|
||||
=> "项目名/文件名|项目名或者文件名",
|
||||
"entry.hits"
|
||||
=> "命中|该项目被命中的次数 (从共享内存区载入)",
|
||||
"entry.size"
|
||||
=> "大小|项目在共享内存里占用字节数",
|
||||
"entry.refcount"
|
||||
=> "引用数|项目依然被其他进程占据的引用次数",
|
||||
"entry.phprefcount"
|
||||
=> "共享数|与本项目相同 PHP 代码的个数",
|
||||
"entry.class_cnt"
|
||||
=> "类|类个数",
|
||||
"entry.function_cnt"
|
||||
=> "函数|函数个数",
|
||||
"entry.file_size"
|
||||
=> "源大小|源文件大小",
|
||||
"entry.file_mtime"
|
||||
=> "修改|源文件最后修改时间",
|
||||
"entry.file_device"
|
||||
=> "dev|源文件所在设备ID",
|
||||
"entry.file_inode"
|
||||
=> "ino|源文件的 inode",
|
||||
"entry.hash"
|
||||
=> "哈希|该项目的哈希值",
|
||||
"entry.atime"
|
||||
=> "访问|最后访问该项目的时间",
|
||||
"entry.ctime"
|
||||
=> "创建|该项目被创建于共享内的时间",
|
||||
"entry.delete"
|
||||
=> "删除|该项目被决定删除的时间",
|
||||
"Remove Selected"
|
||||
=> "删除所选",
|
||||
"Module Info"
|
||||
=> "模块信息",
|
||||
"Caches"
|
||||
=> "缓存区",
|
||||
"cache.cache"
|
||||
=> "缓存|",
|
||||
"cache.slots"
|
||||
=> "槽|Hash 槽个数, 对应 php.ini 里的设置",
|
||||
"cache.size"
|
||||
=> "大小|共享内存区大小, 单位: 字节",
|
||||
"cache.avail"
|
||||
=> "剩余|可用内存, 对应共享内存区的剩余内存字节数",
|
||||
"cache.blocksgraph"
|
||||
=> "百分比图|条状显示可用内存的比例, 以及显示分配块状态",
|
||||
"cache.operations"
|
||||
=> "操作|点击按钮清除对应共享内存区的数据",
|
||||
"cache.status"
|
||||
=> "状态|状态标记. 当共享内存区正在编译 PHP 脚本时标记为 \"编译中\". 当共享内存区暂停使用时标记为 \"禁用\"",
|
||||
"cache.hits"
|
||||
=> "命中|共享内存命中次数, 命中=从该共享内存载入 PHP 或者变量",
|
||||
"cache.hits_graph"
|
||||
=> "24H 分布|24 小时命中分布图. 图表现是最后 24 小时的命中次数",
|
||||
"cache.hits_avg_h"
|
||||
=> "命中/H|每小时命中次数. 只统计最后 24 小时",
|
||||
"cache.hits_avg_s"
|
||||
=> "命中/S|每秒命中次数. 只统计最后 5 秒",
|
||||
"cache.updates"
|
||||
=> "更新|共享内存更新次数",
|
||||
"cache.skips"
|
||||
=> "阻塞|跳过更新次数, 跳过=XCache 自动判断阻塞的共享内存区自动跳过阻塞等待, 直接使用非共享内存方式继续处理请求",
|
||||
"cache.ooms"
|
||||
=> "内存不足|内存不足次数, 显示需要存储新数据但是共享内存区内存不足的次数. 如果出现太频繁请考虑加大配置中的 xcache.size 或者 xcache.var_size",
|
||||
"cache.errors"
|
||||
=> "错误|编译错误, 显示您的脚本被编译时出错的次数. 如果您发现这个数字不断增长, 您应该检查什么脚本产生错误. 参考 帮助 获取更多信息",
|
||||
"cache.readonly_protected"
|
||||
=> "保护|显示该 Cache 是否支持并启用 readonly_protection. 参考 帮助 获取更多信息",
|
||||
"cache.cached"
|
||||
=> "缓存|共享内存于该共享内存区的项目条数",
|
||||
"cache.deleted"
|
||||
=> "待删|共享内存区内将要删除的项目 (已经删除但是还被某些进程占用)",
|
||||
"cache.gc_timer"
|
||||
=> "GC|垃圾回收的倒计时",
|
||||
"Clear"
|
||||
=> "清除",
|
||||
"Disabled"
|
||||
=> "禁用",
|
||||
"Disable"
|
||||
=> "禁用",
|
||||
"Enable"
|
||||
=> "启用",
|
||||
"Compiling"
|
||||
=> "编译中",
|
||||
"Normal"
|
||||
=> "正常",
|
||||
"Sure?"
|
||||
=> "确认?",
|
||||
"Legends:"
|
||||
=> "图例:",
|
||||
"% Free"
|
||||
=> "% 剩余",
|
||||
"% Used"
|
||||
=> "% 已用",
|
||||
"Free Blocks"
|
||||
=> "未用块",
|
||||
"Used Blocks"
|
||||
=> "已用块",
|
||||
"Hits"
|
||||
=> "命中",
|
||||
);
|
||||
|
||||
|
|
|
@ -1,129 +1,129 @@
|
|||
<?php
|
||||
// auto generated, do not modify
|
||||
$strings += array(
|
||||
'Editing Variable %s'
|
||||
=> '正在编辑变量 %s',
|
||||
'Set %s in config to enable'
|
||||
=> '請在配置文件中設置 %s 啟用本功能',
|
||||
'Total'
|
||||
=> '总共',
|
||||
'Summary'
|
||||
=> '簡要訊息',
|
||||
'List PHP'
|
||||
=> '列出PHP',
|
||||
'List Var Data'
|
||||
=> '列變數資料',
|
||||
'php Cached'
|
||||
=> '快取的 PHP 指令',
|
||||
'var Cached'
|
||||
=> '快取的變數',
|
||||
'php Deleted'
|
||||
=> '待刪 PHP 指令',
|
||||
'var Deleted'
|
||||
=> '待刪變數',
|
||||
'entry.id'
|
||||
=> 'Id|',
|
||||
'entry.remove'
|
||||
=> '移除|',
|
||||
'entry.name'
|
||||
=> '項目名稱/檔案名稱|項目名稱或者檔案名稱',
|
||||
'entry.hits'
|
||||
=> '命中|該項目被命中的次數 (從共享記憶體區載入)',
|
||||
'entry.size'
|
||||
=> '大小|項目在共享記憶體裡佔用位元數',
|
||||
'entry.refcount'
|
||||
=> '引用數|項目依然被其他程序佔用的引用次數',
|
||||
'entry.phprefcount'
|
||||
=> '共享|與本項目相同 PHP 內容的个數',
|
||||
'entry.class_cnt'
|
||||
=> '类|类个数',
|
||||
'entry.function_cnt'
|
||||
=> '函数|函数个数',
|
||||
'entry.file_size'
|
||||
=> '源大小|原始檔案大小',
|
||||
'entry.file_mtime'
|
||||
=> '修改|原始檔案最後修改時間',
|
||||
'entry.file_device'
|
||||
=> 'dev|原始檔案所在設備ID',
|
||||
'entry.file_inode'
|
||||
=> 'ino|原始檔案的inode',
|
||||
'entry.hash'
|
||||
=> 'Hash|Hash',
|
||||
'entry.atime'
|
||||
=> '存取|最後存取該項目的時間',
|
||||
'entry.ctime'
|
||||
=> '建立|該項目被建立於共享內的時間',
|
||||
'entry.delete'
|
||||
=> '移除|該項目被移除於共享內的時間',
|
||||
'Remove Selected'
|
||||
=> '移除所选',
|
||||
'Module Info'
|
||||
=> '組元訊息',
|
||||
'Caches'
|
||||
=> '快取',
|
||||
'cache.cache'
|
||||
=> '快取|',
|
||||
'cache.slots'
|
||||
=> '槽|Hash 槽個數,對應 php.ini 裡的設置',
|
||||
'cache.size'
|
||||
=> '大小|共享記憶體區大小,單位:位元',
|
||||
'cache.avail'
|
||||
=> '剩餘|可用記憶體,對應共享記憶體區的剩餘記憶體位元數',
|
||||
'cache.blocksgraph'
|
||||
=> '百分比图|條狀顯示可用記憶體的比例',
|
||||
'cache.operations'
|
||||
=> '操作按鈕|點擊按鈕清除對應共享記憶體區的資料',
|
||||
'cache.status'
|
||||
=> '狀態|狀態標記. 當共享內存區正在編譯 PHP 腳本時標記為 \"編譯中\". 當共享內存區暫停使用時標記為 \"禁用\"',
|
||||
'cache.hits'
|
||||
=> '命中|共享記憶體命中次數,命中=從該共享記憶體載入 PHP 或者變數',
|
||||
'cache.hits_graph'
|
||||
=> '24H 分布|24 小时命中分布图. 图表现是最后 24 小时的命中次数',
|
||||
'cache.hits_avg_h'
|
||||
=> '命中/H|每小时命中次数. 只统计最后 24 小时',
|
||||
'cache.hits_avg_s'
|
||||
=> '命中/S|每秒命中次数. 只统计最后 5 秒',
|
||||
'cache.updates'
|
||||
=> '更新|共享記憶更新過次數',
|
||||
'cache.skips'
|
||||
=> '跳過|跳過更新次數,跳過=XCache 自動判斷阻塞的共享記憶體區自動跳過阻塞等待,直接使用非共享記憶體方式繼續處理請求',
|
||||
'cache.ooms'
|
||||
=> '記憶體不足|記憶體不足次數,顯示需要儲存新資料但是共享記憶體區記憶體不足的次數. 如果出現太頻繁請考慮加大配置中的 xcache.size 或者 xcache.var_size',
|
||||
'cache.errors'
|
||||
=> '错误|编译错误, 显示您的脚本被编译时出错的次数. 如果您发现这个数字不断增长, 您应该检查什么脚本产生错误. 参考 說明',
|
||||
'cache.readonly_protected'
|
||||
=> 'Protected|顯示該 Cache 是否支援並啟用 readonly_protection. 参考 說明',
|
||||
'cache.cached'
|
||||
=> '快取|共享記憶體於該共享記憶體區的項目個數',
|
||||
'cache.deleted'
|
||||
=> '待刪|共享記憶體區內將要刪除的項目 (已經刪除但是還被某些程序佔用)',
|
||||
'cache.gc_timer'
|
||||
=> 'GC|垃圾回收的倒數計時',
|
||||
'Clear'
|
||||
=> '清除',
|
||||
'Disabled'
|
||||
=> '禁用',
|
||||
'Disable'
|
||||
=> '禁用',
|
||||
'Enable'
|
||||
=> '啟用',
|
||||
'Compiling'
|
||||
=> '編譯中',
|
||||
'Normal'
|
||||
=> '正常',
|
||||
'Sure?'
|
||||
=> '確認?',
|
||||
'Legends:'
|
||||
=> '图例:',
|
||||
'% Free'
|
||||
=> '% 剩余',
|
||||
'% Used'
|
||||
=> '% 已用',
|
||||
'Free Blocks'
|
||||
=> '未用块',
|
||||
'Used Blocks'
|
||||
=> '已用块',
|
||||
'Hits'
|
||||
=> '命中',
|
||||
"Editing Variable %s"
|
||||
=> "正在编辑变量 %s",
|
||||
"Set %s in config to enable"
|
||||
=> "請在配置文件中設置 %s 啟用本功能",
|
||||
"Total"
|
||||
=> "总共",
|
||||
"Summary"
|
||||
=> "簡要訊息",
|
||||
"List PHP"
|
||||
=> "列出PHP",
|
||||
"List Var Data"
|
||||
=> "列變數資料",
|
||||
"php Cached"
|
||||
=> "快取的 PHP 指令",
|
||||
"var Cached"
|
||||
=> "快取的變數",
|
||||
"php Deleted"
|
||||
=> "待刪 PHP 指令",
|
||||
"var Deleted"
|
||||
=> "待刪變數",
|
||||
"entry.id"
|
||||
=> "Id|",
|
||||
"entry.remove"
|
||||
=> "移除|",
|
||||
"entry.name"
|
||||
=> "項目名稱/檔案名稱|項目名稱或者檔案名稱",
|
||||
"entry.hits"
|
||||
=> "命中|該項目被命中的次數 (從共享記憶體區載入)",
|
||||
"entry.size"
|
||||
=> "大小|項目在共享記憶體裡佔用位元數",
|
||||
"entry.refcount"
|
||||
=> "引用數|項目依然被其他程序佔用的引用次數",
|
||||
"entry.phprefcount"
|
||||
=> "共享|與本項目相同 PHP 內容的个數",
|
||||
"entry.class_cnt"
|
||||
=> "类|类个数",
|
||||
"entry.function_cnt"
|
||||
=> "函数|函数个数",
|
||||
"entry.file_size"
|
||||
=> "源大小|原始檔案大小",
|
||||
"entry.file_mtime"
|
||||
=> "修改|原始檔案最後修改時間",
|
||||
"entry.file_device"
|
||||
=> "dev|原始檔案所在設備ID",
|
||||
"entry.file_inode"
|
||||
=> "ino|原始檔案的inode",
|
||||
"entry.hash"
|
||||
=> "Hash|Hash",
|
||||
"entry.atime"
|
||||
=> "存取|最後存取該項目的時間",
|
||||
"entry.ctime"
|
||||
=> "建立|該項目被建立於共享內的時間",
|
||||
"entry.delete"
|
||||
=> "移除|該項目被移除於共享內的時間",
|
||||
"Remove Selected"
|
||||
=> "移除所选",
|
||||
"Module Info"
|
||||
=> "組元訊息",
|
||||
"Caches"
|
||||
=> "快取",
|
||||
"cache.cache"
|
||||
=> "快取|",
|
||||
"cache.slots"
|
||||
=> "槽|Hash 槽個數,對應 php.ini 裡的設置",
|
||||
"cache.size"
|
||||
=> "大小|共享記憶體區大小,單位:位元",
|
||||
"cache.avail"
|
||||
=> "剩餘|可用記憶體,對應共享記憶體區的剩餘記憶體位元數",
|
||||
"cache.blocksgraph"
|
||||
=> "百分比图|條狀顯示可用記憶體的比例",
|
||||
"cache.operations"
|
||||
=> "操作按鈕|點擊按鈕清除對應共享記憶體區的資料",
|
||||
"cache.status"
|
||||
=> "狀態|狀態標記. 當共享內存區正在編譯 PHP 腳本時標記為 \"編譯中\". 當共享內存區暫停使用時標記為 \"禁用\"",
|
||||
"cache.hits"
|
||||
=> "命中|共享記憶體命中次數,命中=從該共享記憶體載入 PHP 或者變數",
|
||||
"cache.hits_graph"
|
||||
=> "24H 分布|24 小时命中分布图. 图表现是最后 24 小时的命中次数",
|
||||
"cache.hits_avg_h"
|
||||
=> "命中/H|每小时命中次数. 只统计最后 24 小时",
|
||||
"cache.hits_avg_s"
|
||||
=> "命中/S|每秒命中次数. 只统计最后 5 秒",
|
||||
"cache.updates"
|
||||
=> "更新|共享記憶更新過次數",
|
||||
"cache.skips"
|
||||
=> "跳過|跳過更新次數,跳過=XCache 自動判斷阻塞的共享記憶體區自動跳過阻塞等待,直接使用非共享記憶體方式繼續處理請求",
|
||||
"cache.ooms"
|
||||
=> "記憶體不足|記憶體不足次數,顯示需要儲存新資料但是共享記憶體區記憶體不足的次數. 如果出現太頻繁請考慮加大配置中的 xcache.size 或者 xcache.var_size",
|
||||
"cache.errors"
|
||||
=> "错误|编译错误, 显示您的脚本被编译时出错的次数. 如果您发现这个数字不断增长, 您应该检查什么脚本产生错误. 参考 說明",
|
||||
"cache.readonly_protected"
|
||||
=> "Protected|顯示該 Cache 是否支援並啟用 readonly_protection. 参考 說明",
|
||||
"cache.cached"
|
||||
=> "快取|共享記憶體於該共享記憶體區的項目個數",
|
||||
"cache.deleted"
|
||||
=> "待刪|共享記憶體區內將要刪除的項目 (已經刪除但是還被某些程序佔用)",
|
||||
"cache.gc_timer"
|
||||
=> "GC|垃圾回收的倒數計時",
|
||||
"Clear"
|
||||
=> "清除",
|
||||
"Disabled"
|
||||
=> "禁用",
|
||||
"Disable"
|
||||
=> "禁用",
|
||||
"Enable"
|
||||
=> "啟用",
|
||||
"Compiling"
|
||||
=> "編譯中",
|
||||
"Normal"
|
||||
=> "正常",
|
||||
"Sure?"
|
||||
=> "確認?",
|
||||
"Legends:"
|
||||
=> "图例:",
|
||||
"% Free"
|
||||
=> "% 剩余",
|
||||
"% Used"
|
||||
=> "% 已用",
|
||||
"Free Blocks"
|
||||
=> "未用块",
|
||||
"Used Blocks"
|
||||
=> "已用块",
|
||||
"Hits"
|
||||
=> "命中",
|
||||
);
|
||||
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
<?php
|
||||
// auto generated, do not modify
|
||||
$strings += array(
|
||||
'Document'
|
||||
=> '帮助文档',
|
||||
'INI Reference'
|
||||
=> 'INI 参考',
|
||||
'Get Support'
|
||||
=> '获取支持',
|
||||
'Discusson'
|
||||
=> '讨论',
|
||||
'Cacher'
|
||||
=> '缓存器',
|
||||
'Coverager'
|
||||
=> '代码覆盖查看器',
|
||||
'Diagnosis'
|
||||
=> '诊断',
|
||||
"Document"
|
||||
=> "帮助文档",
|
||||
"INI Reference"
|
||||
=> "INI 参考",
|
||||
"Get Support"
|
||||
=> "获取支持",
|
||||
"Discusson"
|
||||
=> "讨论",
|
||||
"Cacher"
|
||||
=> "缓存器",
|
||||
"Coverager"
|
||||
=> "代码覆盖查看器",
|
||||
"Diagnosis"
|
||||
=> "诊断",
|
||||
);
|
||||
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
<?php
|
||||
// auto generated, do not modify
|
||||
$strings += array(
|
||||
'Document'
|
||||
=> '幫助文檔',
|
||||
'INI Reference'
|
||||
=> 'INI 參考',
|
||||
'Get Support'
|
||||
=> '獲取支持',
|
||||
'Discusson'
|
||||
=> '討論',
|
||||
'Cacher'
|
||||
=> '快取器',
|
||||
'Coverager'
|
||||
=> '代码覆盖查看器',
|
||||
'Diagnosis'
|
||||
=> '診斷',
|
||||
"Document"
|
||||
=> "幫助文檔",
|
||||
"INI Reference"
|
||||
=> "INI 參考",
|
||||
"Get Support"
|
||||
=> "獲取支持",
|
||||
"Discusson"
|
||||
=> "討論",
|
||||
"Cacher"
|
||||
=> "快取器",
|
||||
"Coverager"
|
||||
=> "代码覆盖查看器",
|
||||
"Diagnosis"
|
||||
=> "診斷",
|
||||
);
|
||||
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
<?php
|
||||
// auto generated, do not modify
|
||||
$strings += array(
|
||||
'Directory'
|
||||
=> '目录',
|
||||
'Percent'
|
||||
=> '覆盖率',
|
||||
'Hits'
|
||||
=> '命中',
|
||||
'Lines'
|
||||
=> '行数',
|
||||
'TODO'
|
||||
=> '闲置文件',
|
||||
'File'
|
||||
=> '文件',
|
||||
'root'
|
||||
=> '开始',
|
||||
"Directory"
|
||||
=> "目录",
|
||||
"Percent"
|
||||
=> "覆盖率",
|
||||
"Hits"
|
||||
=> "命中",
|
||||
"Lines"
|
||||
=> "行数",
|
||||
"TODO"
|
||||
=> "闲置文件",
|
||||
"File"
|
||||
=> "文件",
|
||||
"root"
|
||||
=> "开始",
|
||||
);
|
||||
|
||||
|
|
|
@ -14,13 +14,13 @@
|
|||
<?php echo _T("Result"); ?>
|
||||
</th>
|
||||
<th>
|
||||
<?php echo _T("Result/Suggestion"); ?>
|
||||
<?php echo _T("Explanation/Suggestion"); ?>
|
||||
</th>
|
||||
</tr>
|
||||
<?php foreach ($notes as $note) { ?>
|
||||
<tr class="<?php echo $note['type']; ?>">
|
||||
<td nowrap="nowrap" align="right"><?php echo $note['item']; ?></td>
|
||||
<td nowrap="nowrap"><?php echo ucfirst($note['type']); ?></td>
|
||||
<td nowrap="nowrap"><?php echo ucfirst(__($note['type'])); ?></td>
|
||||
<td nowrap="nowrap"><?php echo nl2br($note['result']); ?></td>
|
||||
<td><?php echo nl2br($note['suggestion']); ?></td>
|
||||
</tr>
|
||||
|
|
|
@ -84,13 +84,13 @@ if (!$xcacheLoaded) {
|
|||
echo sprintf(_T("Please put a php.ini in %s and add extension=xcache.so (or xcache.dll) in it"), $iniDirectory);
|
||||
}
|
||||
else {
|
||||
echo _T("Cannot detect ini location");
|
||||
echo _T("Cannot detect php.ini location");
|
||||
}
|
||||
echo _T(" (See above)");
|
||||
result("error", _T('Not loaded'), ob_get_clean());
|
||||
echo " ", _T("(See above)");
|
||||
result(N_("error"), _T('Not loaded'), ob_get_clean());
|
||||
}
|
||||
else {
|
||||
result("info", _T('Loaded'));
|
||||
result(N_("info"), _T('Loaded'));
|
||||
}
|
||||
// }}}
|
||||
if ($xcacheLoaded) { // {{{ load XCache summary
|
||||
|
@ -123,107 +123,100 @@ if ($xcacheLoaded) { // {{{ load XCache summary
|
|||
// }}}
|
||||
checking(_T("Enabling PHP Cacher")); // {{{
|
||||
if (!$xcacheLoaded) {
|
||||
result("skipped", "XCache not loaded");
|
||||
result(N_("skipped"), "XCache not loaded");
|
||||
}
|
||||
else if (!ini_get("xcache.size")) {
|
||||
result(
|
||||
"error"
|
||||
, _T("Not enabled: Website is not accelerated by XCache")
|
||||
, _T("Set xcache.size to non-zero, set xcache.cacher = On")
|
||||
result(N_("error")
|
||||
, _T("Not enabled")
|
||||
, _T("Your PHP pages is not accelerated by XCache. Set xcache.size to non-zero, set xcache.cacher = On")
|
||||
);
|
||||
}
|
||||
else if (!$phpCached) {
|
||||
result(
|
||||
"error"
|
||||
, _T("No php script cached: Website is not accelerated by XCache")
|
||||
, _T("Set xcache.cacher = On")
|
||||
result(N_("error")
|
||||
, _T("No php script cached")
|
||||
, _T("Your PHP pages is not accelerated by XCache. Set xcache.cacher = On")
|
||||
);
|
||||
}
|
||||
else {
|
||||
result("info", _T('Enabled'));
|
||||
result(N_("info"), _T('Enabled'));
|
||||
}
|
||||
// }}}
|
||||
checking(_T("PHP Compile Time Error")); // {{{
|
||||
if (!$xcacheLoaded) {
|
||||
result("skipped", "XCache not loaded");
|
||||
result(N_("skipped"), "XCache not loaded");
|
||||
}
|
||||
else if (!$phpCacheCount) {
|
||||
result("skipped", "XCache PHP cacher not enabled");
|
||||
result(N_("skipped"), "XCache PHP cacher not enabled");
|
||||
}
|
||||
else if ($errors) {
|
||||
result(
|
||||
"warning"
|
||||
result(N_("warning")
|
||||
, _T("Error happened when compiling at least one of your PHP code")
|
||||
, _T("This usually means there is syntax error in your PHP code. Enable PHP error_log to see what parser error is it, fix your code")
|
||||
);
|
||||
}
|
||||
else {
|
||||
result("info", _T('No error happened'));
|
||||
result(N_("info"), _T('No error happened'));
|
||||
}
|
||||
// }}}
|
||||
checking(_T("Busy Compiling")); // {{{
|
||||
if (!$xcacheLoaded) {
|
||||
result("skipped", "XCache not loaded");
|
||||
result(N_("skipped"), "XCache not loaded");
|
||||
}
|
||||
else if (!$phpCacheCount) {
|
||||
result("skipped", "XCache PHP cacher not enabled");
|
||||
result(N_("skipped"), "XCache PHP cacher not enabled");
|
||||
}
|
||||
else if ($compiling) {
|
||||
result(
|
||||
"warning"
|
||||
result(N_("warning")
|
||||
, _T("Cache marked as busy for compiling")
|
||||
, _T("It's ok if this status don't stay for long. Otherwise, it could be a sign of PHP crash/coredump, report to XCache devs")
|
||||
);
|
||||
}
|
||||
else {
|
||||
result("info", _T('Idle'));
|
||||
result(N_("info"), _T('Idle'));
|
||||
}
|
||||
// }}}
|
||||
checking(_T("Enabling VAR Cacher")); // {{{
|
||||
if (!$xcacheLoaded) {
|
||||
result("skipped", "XCache not loaded");
|
||||
result(N_("skipped"), "XCache not loaded");
|
||||
}
|
||||
else if (!ini_get("xcache.var_size")) {
|
||||
result(
|
||||
"error"
|
||||
, _T("Not enabled: code that use xcache var cacher fall back to other backend")
|
||||
, _T("Set xcache.var_size to non-zero")
|
||||
result(N_("error")
|
||||
, _T("Not enabled")
|
||||
, _T("PHP code that use XCache caching backend have to use other caching backend instead. Set xcache.var_size to non-zero")
|
||||
);
|
||||
}
|
||||
else {
|
||||
result("info", _T('Enabled'));
|
||||
result(N_("info"), _T('Enabled'));
|
||||
|
||||
checking(_T("Using VAR Cacher")); // {{{
|
||||
if ($varCached) {
|
||||
result(
|
||||
"warning"
|
||||
if (!$varCached) {
|
||||
result(N_("warning")
|
||||
, _T("No variable data cached")
|
||||
, _T("Var Cacher won't work simply by enabling it."
|
||||
. " PHP code must call XCache APIs like xcache_set() to use it as cache backend. 3rd party web apps may come with XCache support, config it to use XCache as cachign backend")
|
||||
. " PHP code must call XCache APIs like xcache_set() to use it as cache backend. 3rd party web apps may come with XCache support, config it to use XCache as caching backend")
|
||||
);
|
||||
}
|
||||
else {
|
||||
result("info", _T('Cache in use'));
|
||||
result(N_("info"), _T('Cache in use'));
|
||||
}
|
||||
// }}}
|
||||
}
|
||||
// }}}
|
||||
checking(_T("Cache Size")); // {{{
|
||||
if (!$xcacheLoaded) {
|
||||
result("skipped", "XCache not loaded");
|
||||
result(N_("skipped"), "XCache not loaded");
|
||||
}
|
||||
else if ($ooms) {
|
||||
result(
|
||||
"warning"
|
||||
result(N_("warning")
|
||||
, _T("Out of memory happened when trying to write to cache")
|
||||
, _T("Increase xcache.size and/or xcache.var_size")
|
||||
);
|
||||
}
|
||||
else {
|
||||
result("info", _T('Enough'));
|
||||
result(N_("info"), _T('Enough'));
|
||||
}
|
||||
// }}}
|
||||
checking(_T("Slots")); // {{{
|
||||
checking(_T("Hash Slots")); // {{{
|
||||
$slotsTooBig = null;
|
||||
$slotsTooSmall = null;
|
||||
foreach ($cacheInfos as $cacheInfo) {
|
||||
|
@ -238,8 +231,7 @@ foreach ($cacheInfos as $cacheInfo) {
|
|||
}
|
||||
if (isset($slotsTooBig)) {
|
||||
$prefix = $slotsTooBig == XC_TYPE_PHP ? '' : 'var_';
|
||||
result(
|
||||
"warning"
|
||||
result(N_("warning")
|
||||
, _T("Slots value too big")
|
||||
, sprintf(_T("A very small value is set to %s value and leave %s value is too big.\n"
|
||||
. "Decrease %s if small cache is really what you want"), "xcache.{$prefix}size", "xcache.{$prefix}slots", "xcache.{$prefix}slots")
|
||||
|
@ -247,42 +239,40 @@ if (isset($slotsTooBig)) {
|
|||
}
|
||||
else if (isset($slotsTooSmall)) {
|
||||
$prefix = $slotsTooSmall == XC_TYPE_PHP ? '' : 'var_';
|
||||
result(
|
||||
"warning"
|
||||
result(N_("warning")
|
||||
, _T("Slots value too small")
|
||||
, sprintf(_T("So many item are cached. Increase %s to a more proper value"), "xcache.{$prefix}slots")
|
||||
);
|
||||
}
|
||||
else {
|
||||
result("info", _T('Looks good'));
|
||||
result(N_("info"), _T('Looks good'));
|
||||
}
|
||||
// }}}
|
||||
checking(_T("Cache Status")); // {{{
|
||||
if (!$xcacheLoaded) {
|
||||
result("skipped", "XCache not loaded");
|
||||
result(N_("skipped"), "XCache not loaded");
|
||||
}
|
||||
else if ($disabled) {
|
||||
result(
|
||||
"warning"
|
||||
result(N_("warning")
|
||||
, _T("At least one of the caches is disabled. ")
|
||||
. (ini_get("xcache.crash_on_coredump") ? _T("It was disabled by PHP crash/coredump handler or You disabled it manually") : _T('You disabled it manually'))
|
||||
, _T("Enable the cache.")
|
||||
. (ini_get("xcache.crash_on_coredump") ? " " . _T("It was disabled by PHP crash/coredump handler or you disabled it manually.") : _T('You disabled it manually.'))
|
||||
. (ini_get("xcache.crash_on_coredump") ? " " . _T("If it was caused by PHP crash/coredump, report to XCache devs") : "")
|
||||
);
|
||||
}
|
||||
else {
|
||||
result("info", _T('Idle'));
|
||||
result(N_("info"), _T('Idle'));
|
||||
}
|
||||
// }}}
|
||||
|
||||
checking(_T("Coredump Directory")); // {{{
|
||||
if (!$xcacheLoaded) {
|
||||
result("skipped", "XCache not loaded");
|
||||
result(N_("skipped"), "XCache not loaded");
|
||||
}
|
||||
else if (!ini_get("xcache.coredump_directory")) {
|
||||
result("info"
|
||||
result(N_("info")
|
||||
, _T("Not enabled")
|
||||
, _T("Enable coredump to know your PHP crash. It can also be enabled in fpm other than in XCache")
|
||||
, _T("Enable coredump to save debugging information in case when PHP crash. It can also be enabled in other module like php-fpm beside XCache")
|
||||
);
|
||||
}
|
||||
else if (ini_get("xcache.coredump_directory")) {
|
||||
|
@ -292,13 +282,13 @@ else if (ini_get("xcache.coredump_directory")) {
|
|||
}
|
||||
$coreFiles = glob($coreDir . "core*");
|
||||
if ($coreFiles) {
|
||||
result("error"
|
||||
result(N_("error")
|
||||
, _T("Core files found:\n") . implode("\n", $coreFiles)
|
||||
, _T("Disable XCache PHP Cacher (xcache.size=0), remove the core file(s). If core file appears again, report call stack backtrace in the core to XCache devs")
|
||||
, _T("Disable XCache PHP Cacher (set xcache.size=0), remove the core file(s), then restart PHP. If core file appears again, report call stack backtrace in the core to XCache devs")
|
||||
);
|
||||
}
|
||||
else {
|
||||
result("info"
|
||||
result(N_("info")
|
||||
, _T("Enabled")
|
||||
, sprintf(_T("You can see core files if PHP crash in %s if PHP crash"), ini_get("xcache.coredump_directory"))
|
||||
);
|
||||
|
@ -307,18 +297,16 @@ else if (ini_get("xcache.coredump_directory")) {
|
|||
// }}}
|
||||
checking(_T("Readonly Protection")); // {{{
|
||||
if (!$xcacheLoaded) {
|
||||
result("skipped", "XCache not loaded");
|
||||
result(N_("skipped"), "XCache not loaded");
|
||||
}
|
||||
else if (ini_get("xcache.readonly_protection") && !$readonlyProtection) {
|
||||
result(
|
||||
"error"
|
||||
result(N_("error")
|
||||
, _T("Set to enabled but not available")
|
||||
, _T("Use xcache.mmap_path other than /dev/zero")
|
||||
);
|
||||
}
|
||||
else {
|
||||
result(
|
||||
"info"
|
||||
result(N_("info")
|
||||
, $readonlyProtection ? _T("Enabled") : _T("Disabled")
|
||||
, _T("Enable readonly_protection == --performance & ++stability. "
|
||||
. "Disable readonly_protection == ++performance & --stability")
|
||||
|
@ -327,38 +315,36 @@ else {
|
|||
// }}}
|
||||
checking(_T("XCache modules")); // {{{
|
||||
if (!$xcacheLoaded) {
|
||||
result("skipped", "XCache not loaded");
|
||||
result(N_("skipped"), "XCache not loaded");
|
||||
}
|
||||
else {
|
||||
$xcacheModules = explode(" ", XCACHE_MODULES);
|
||||
$unexpectedModules = array_intersect($xcacheModules, array("coverager", "disassembler"));
|
||||
if ($unexpectedModules) {
|
||||
result(
|
||||
"warning"
|
||||
result(N_("warning")
|
||||
, implode("\n", $unexpectedModules)
|
||||
, _T("Acceptable. Module(s) listed above are built into XCache but not for production server\n"
|
||||
, _T("Acceptable. Module(s) listed are built into XCache but not for production server.\n"
|
||||
. "Leave it as is if you're feeling good.\n"
|
||||
. "Re-configure XCache with the above module(s) disabled if you're strict with server security.")
|
||||
. "Re-configure XCache with the module(s) disabled if you're strict with server security.")
|
||||
);
|
||||
}
|
||||
else {
|
||||
result("info", _T('Idle'));
|
||||
result(N_("info"), _T('Idle'));
|
||||
}
|
||||
}
|
||||
// }}}
|
||||
checking(_T("XCache test setting")); // {{{
|
||||
if (!$xcacheLoaded) {
|
||||
result("skipped", "XCache not loaded");
|
||||
result(N_("skipped"), "XCache not loaded");
|
||||
}
|
||||
else if ((int) ini_get('xcache.test') == 1) {
|
||||
result(
|
||||
"warning"
|
||||
result(N_("warning")
|
||||
, _T("Enabled")
|
||||
, _T("xcache.test is for testing only, not for server. set it to off")
|
||||
);
|
||||
}
|
||||
else {
|
||||
result("info", _T('Disabled'));
|
||||
result(N_("info"), _T('Disabled'));
|
||||
}
|
||||
// }}}
|
||||
checking(_T("PHP Version")); // {{{
|
||||
|
@ -379,23 +365,25 @@ foreach ($knownUnstablePhpVersions as $knownUnstablePhpVersion) {
|
|||
}
|
||||
}
|
||||
if ($unstablePhpVersionReason) {
|
||||
result("error"
|
||||
result(N_("error")
|
||||
, _T("The version of PHP you're using is known to be unstable: ") . $unstablePhpVersionReason
|
||||
, _T("Upgrade to new version of PHP"));
|
||||
}
|
||||
else {
|
||||
result("info", _T("Looks good"));
|
||||
result(N_("info"), _T("Looks good"));
|
||||
}
|
||||
// }}}
|
||||
checking(_T("Extension Compatibility")); // {{{
|
||||
$loadedZendExtensions = get_loaded_extensions(true);
|
||||
if (array_search("Zend Optimizer", $loadedZendExtensions) !== false) {
|
||||
result(
|
||||
"warning"
|
||||
result(N_("info")
|
||||
, _T("Zend Optimizer loaded")
|
||||
, _T("Optimizer feature of 'Zend Optimizer' is disabled by XCache due to compatibility reason; the Loader of it is still available, encoded files are still supported")
|
||||
);
|
||||
}
|
||||
else {
|
||||
result(N_("info"), _T("Looks good"));
|
||||
}
|
||||
// }}}
|
||||
|
||||
include "./diagnosis.tpl.php";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-08-01 14:47+0800\n"
|
||||
"POT-Creation-Date: 2012-08-01 17:10+0800\n"
|
||||
"Language: en\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
|
@ -24,7 +24,7 @@ msgid "Result"
|
|||
msgstr ""
|
||||
|
||||
#: diagnosis.tpl.php:17
|
||||
msgid "Result/Suggestion"
|
||||
msgid "Explanation/Suggestion"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:77
|
||||
|
@ -43,274 +43,294 @@ msgid ""
|
|||
msgstr ""
|
||||
|
||||
#: index.php:87
|
||||
msgid "Cannot detect ini location"
|
||||
msgid "Cannot detect php.ini location"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:89
|
||||
msgid " (See above)"
|
||||
msgid "(See above)"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:90
|
||||
msgid "Not loaded"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:90 index.php:129 index.php:135 index.php:183 index.php:285
|
||||
#: index.php:303 index.php:368
|
||||
msgid "error"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:93
|
||||
msgid "Loaded"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:93 index.php:141 index.php:158 index.php:175 index.php:189
|
||||
#: index.php:200 index.php:216 index.php:248 index.php:264 index.php:273
|
||||
#: index.php:291 index.php:309 index.php:332 index.php:347 index.php:373
|
||||
#: index.php:379 index.php:385
|
||||
msgid "info"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:124
|
||||
msgid "Enabling PHP Cacher"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:126 index.php:146 index.php:149 index.php:163 index.php:166
|
||||
#: index.php:180 index.php:207 index.php:253 index.php:270 index.php:300
|
||||
#: index.php:318 index.php:338
|
||||
msgid "skipped"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:130 index.php:184 index.php:274
|
||||
msgid "Not enabled"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:131
|
||||
msgid "Not enabled: Website is not accelerated by XCache"
|
||||
msgid ""
|
||||
"Your PHP pages is not accelerated by XCache. Set xcache.size to non-zero, "
|
||||
"set xcache.cacher = On"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:132
|
||||
msgid "Set xcache.size to non-zero, set xcache.cacher = On"
|
||||
#: index.php:136
|
||||
msgid "No php script cached"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:138
|
||||
msgid "No php script cached: Website is not accelerated by XCache"
|
||||
#: index.php:137
|
||||
msgid "Your PHP pages is not accelerated by XCache. Set xcache.cacher = On"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:139
|
||||
msgid "Set xcache.cacher = On"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:143 index.php:194 index.php:302 index.php:322 index.php:356
|
||||
#: index.php:141 index.php:189 index.php:292 index.php:310 index.php:342
|
||||
msgid "Enabled"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:146
|
||||
#: index.php:144
|
||||
msgid "PHP Compile Time Error"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:156
|
||||
#: index.php:152 index.php:169 index.php:193 index.php:210 index.php:234
|
||||
#: index.php:242 index.php:256 index.php:324 index.php:341
|
||||
msgid "warning"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:153
|
||||
msgid "Error happened when compiling at least one of your PHP code"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:157
|
||||
#: index.php:154
|
||||
msgid ""
|
||||
"This usually means there is syntax error in your PHP code. Enable PHP "
|
||||
"error_log to see what parser error is it, fix your code"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:161
|
||||
#: index.php:158
|
||||
msgid "No error happened"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:164
|
||||
#: index.php:161
|
||||
msgid "Busy Compiling"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:174
|
||||
#: index.php:170
|
||||
msgid "Cache marked as busy for compiling"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:175
|
||||
#: index.php:171
|
||||
msgid ""
|
||||
"It's ok if this status don't stay for long. Otherwise, it could be a sign of "
|
||||
"PHP crash/coredump, report to XCache devs"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:179 index.php:274 index.php:345
|
||||
#: index.php:175 index.php:264 index.php:332
|
||||
msgid "Idle"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:182
|
||||
#: index.php:178
|
||||
msgid "Enabling VAR Cacher"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:189
|
||||
msgid "Not enabled: code that use xcache var cacher fall back to other backend"
|
||||
#: index.php:185
|
||||
msgid ""
|
||||
"PHP code that use XCache caching backend have to use other caching backend "
|
||||
"instead. Set xcache.var_size to non-zero"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:190
|
||||
msgid "Set xcache.var_size to non-zero"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:196
|
||||
#: index.php:191
|
||||
msgid "Using VAR Cacher"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:200
|
||||
#: index.php:194
|
||||
msgid "No variable data cached"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:201
|
||||
#: index.php:195
|
||||
msgid ""
|
||||
"Var Cacher won't work simply by enabling it. PHP code must call XCache APIs "
|
||||
"like xcache_set() to use it as cache backend. 3rd party web apps may come "
|
||||
"with XCache support, config it to use XCache as cachign backend"
|
||||
"with XCache support, config it to use XCache as caching backend"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:206
|
||||
#: index.php:200
|
||||
msgid "Cache in use"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:211
|
||||
#: index.php:205
|
||||
msgid "Cache Size"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:218
|
||||
#: index.php:211
|
||||
msgid "Out of memory happened when trying to write to cache"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:219
|
||||
#: index.php:212
|
||||
msgid "Increase xcache.size and/or xcache.var_size"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:223
|
||||
#: index.php:216
|
||||
msgid "Enough"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:226
|
||||
msgid "Slots"
|
||||
#: index.php:219
|
||||
msgid "Hash Slots"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:243
|
||||
#: index.php:235
|
||||
msgid "Slots value too big"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:244
|
||||
#: index.php:236
|
||||
#, php-format
|
||||
msgid ""
|
||||
"A very small value is set to %s value and leave %s value is too big.\n"
|
||||
"Decrease %s if small cache is really what you want"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:252
|
||||
#: index.php:243
|
||||
msgid "Slots value too small"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:253
|
||||
#: index.php:244
|
||||
#, php-format
|
||||
msgid "So many item are cached. Increase %s to a more proper value"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:257 index.php:387
|
||||
#: index.php:248 index.php:373 index.php:385
|
||||
msgid "Looks good"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:260
|
||||
#: index.php:251
|
||||
msgid "Cache Status"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:267
|
||||
#: index.php:257
|
||||
msgid "At least one of the caches is disabled. "
|
||||
msgstr ""
|
||||
|
||||
#: index.php:268
|
||||
msgid ""
|
||||
"It was disabled by PHP crash/coredump handler or You disabled it manually"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:268
|
||||
msgid "You disabled it manually"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:269
|
||||
#: index.php:258
|
||||
msgid "Enable the cache."
|
||||
msgstr ""
|
||||
|
||||
#: index.php:270
|
||||
#: index.php:259
|
||||
msgid ""
|
||||
"It was disabled by PHP crash/coredump handler or you disabled it manually."
|
||||
msgstr ""
|
||||
|
||||
#: index.php:259
|
||||
msgid "You disabled it manually."
|
||||
msgstr ""
|
||||
|
||||
#: index.php:260
|
||||
msgid "If it was caused by PHP crash/coredump, report to XCache devs"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:278
|
||||
#: index.php:268
|
||||
msgid "Coredump Directory"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:284
|
||||
msgid "Not enabled"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:285
|
||||
#: index.php:275
|
||||
msgid ""
|
||||
"Enable coredump to know your PHP crash. It can also be enabled in fpm other "
|
||||
"than in XCache"
|
||||
"Enable coredump to save debugging information in case when PHP crash. It can "
|
||||
"also be enabled in other module like php-fpm beside XCache"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:296
|
||||
#: index.php:286
|
||||
msgid "Core files found:\n"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:297
|
||||
#: index.php:287
|
||||
msgid ""
|
||||
"Disable XCache PHP Cacher (xcache.size=0), remove the core file(s). If core "
|
||||
"file appears again, report call stack backtrace in the core to XCache devs"
|
||||
"Disable XCache PHP Cacher (set xcache.size=0), remove the core file(s), then "
|
||||
"restart PHP. If core file appears again, report call stack backtrace in the "
|
||||
"core to XCache devs"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:303
|
||||
#: index.php:293
|
||||
#, php-format
|
||||
msgid "You can see core files if PHP crash in %s if PHP crash"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:308
|
||||
#: index.php:298
|
||||
msgid "Readonly Protection"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:315
|
||||
#: index.php:304
|
||||
msgid "Set to enabled but not available"
|
||||
msgstr ""
|
||||
|
||||
#: index.php:316
|
||||
#: index.php:305
|
||||
msgid "Use xcache.mmap_path other than /dev/zero"
|
||||
msgstr "" |