fix: 优化 CUPS 中文文案可读性

This commit is contained in:
Codex
2026-06-28 20:36:59 +08:00
parent 76faf52b6b
commit 102b0fbabb
42 changed files with 192 additions and 179 deletions

View File

@@ -1,7 +1,7 @@
<H2 CLASS="title"><A HREF="{printer_uri_supported}">{printer_name}</A>
({printer_state=3?空闲:{printer_state=4?处理中:已暂停}},
{printer_is_accepting_jobs=0?拒绝任务:接受任务},
{server_is_sharing_printers=0?未:{printer_is_shared=0?未:}}共享{default_name={printer_name}?, 服务器默认:})</H2>
{printer_is_accepting_jobs=0?暂停接收打印任务:允许接收打印任务},
{server_is_sharing_printers=0?未:{printer_is_shared=0?未:}}共享{default_name={printer_name}?, 默认打印机:})</H2>
<FORM METHOD="POST" ACTION="{printer_uri_supported}" NAME="maintenance">
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
@@ -11,9 +11,9 @@
{printer_commands~.*Clean.*?<OPTION VALUE="clean-print-heads">清洗打印头</OPTION>:}
{printer_commands~.*PrintSelfTestPage.*?<OPTION VALUE="print-self-test-page">打印自检页</OPTION>:}
{printer_state=5?<OPTION VALUE="start-printer">恢复打印机</OPTION>:<OPTION VALUE="stop-printer">暂停打印机</OPTION>}
{printer_is_accepting_jobs=0?<OPTION VALUE="accept-jobs">接受任务</OPTION>:<OPTION VALUE="reject-jobs">拒绝任务</OPTION>}
<OPTION VALUE="move-jobs">移动所有任务</OPTION>
<OPTION VALUE="cancel-jobs">取消所有任务</OPTION>
{printer_is_accepting_jobs=0?<OPTION VALUE="accept-jobs">允许接收打印任务</OPTION>:<OPTION VALUE="reject-jobs">暂停接收打印任务</OPTION>}
<OPTION VALUE="move-jobs">转移所有打印任务</OPTION>
<OPTION VALUE="cancel-jobs">取消所有打印任务</OPTION>
</SELECT>
<NOSCRIPT><INPUT TYPE="SUBMIT" VALUE="执行"></NOSCRIPT>
</FORM>
@@ -25,9 +25,9 @@
<OPTION VALUE="">管理</OPTION>
<OPTION VALUE="modify-printer">修改打印机</OPTION>
<OPTION VALUE="delete-printer">删除打印机</OPTION>
<OPTION VALUE="set-printer-options">设置默认选项</OPTION>
<OPTION VALUE="set-as-default">设为服务器默认</OPTION>
<OPTION VALUE="set-allowed-users">设置允许用户</OPTION>
<OPTION VALUE="set-printer-options">设置默认打印选项</OPTION>
<OPTION VALUE="set-as-default">设为默认打印机</OPTION>
<OPTION VALUE="set-allowed-users">设置谁可以打印</OPTION>
</SELECT>
<NOSCRIPT><INPUT TYPE="SUBMIT" VALUE="执行"></NOSCRIPT>
</FORM>
@@ -37,7 +37,7 @@
<TR><TH ALIGN="RIGHT" VALIGN="TOP">位置:</TH><TD>{printer_location}</TD></TR>
<TR><TH ALIGN="RIGHT" VALIGN="TOP">驱动:</TH><TD>{printer_make_and_model} ({color_supported=1?彩色:灰度}{sides_supported=one-sided?:, 双面打印})<BR>
<TR><TH ALIGN="RIGHT" VALIGN="TOP">连接:</TH><TD>{device_uri}</TD></TR>
<TR><TH ALIGN="RIGHT" VALIGN="TOP">默认设置:</TH><TD>job-sheets={job_sheets_default}
<TR><TH ALIGN="RIGHT" VALIGN="TOP">默认打印设置:</TH><TD>job-sheets={job_sheets_default}
media={media_default?{media_default}:未知}
{sides_default?sides={sides_default}:}</TD></TR>
</TABLE>