phpBB3中文语言包使用和字体调整说明

在这里讨论PHPBB3.0.X相关的使用、安装等话题

Moderator: 技术组

Forum rules
再次重申: 请不要用站内信件问问题, 有问题直接发到相应版面上, 今后任何此类信件恕不回复.

phpBB3中文语言包使用和字体调整说明

Postby IOsetting » 2007-05-22 15:48

查看和下载最新发布的版本, 请前往新闻公告版面

压缩包内含中文简体/繁体语言包以及相应的prosilver/subsilver2的图片档.
[致謝] 正體語系檔由 CRLin 協助PHPBB中文翻譯小組翻譯和維護. prosilver 的正體圖檔由 Meow 製作.

使用方法:
1 解开压缩文档, 将文件夹内的内容置入phpbb3的相应目录下. zh_cmn_hans和zh_cmn_hant放入language目录, prosilver/imageset/* 放入styles/prosilver/imageset目录, subsilver2/imageset/*放入styles/subsilver2/imageset目录. 后面这两步目录一定要放置正确, 否则在中文下无法正确显示发帖, 回复等图标, 这是最常问的安装问题了
2 前往后台控制面板, 在System->Language中可以找到新的语言包, 点install安装
3 设置论坛的默认语言, 以及个人资料的默认语言
4 subsilver2风格默认是未安装的, 需要自己在后台手动安装

[常见问题]字体显示过小的解决方法
前台: subSilver2风格
viewtopic.php?p=3082#3082
前台: prosilver风格
前往管理员控制面板, 风格->风格主题, prosilver, 点"编辑"
此时会出现一个文本编辑框, 里面是整个论坛的综合css
将下面的那些css代码附加到最后面去, 然后保存.
这些新设定的值会覆盖原先的值, 就将字体全部都调整合适了
Code: Select all
    /*For font size correction*/
    p {
       font-size: 1.2em;
    }

    ul.linklist li {
       font-size: 1.2em;
    }

    li.header dt, li.header dd {
       font-size: 1.2em;
    }

    li.header dt {
       font-weight: normal;
    }

    ul.topiclist dt {
       font-size: 1.2em;
    }

    dd.lastpost {
       font-size: 1.2em;
    }

    h3 {
       font-size: 1.2em;
    }

    a.forumtitle, a.topictitle {
       font-family: Tahoma, Helvetica, Arial, Sans-serif;
       font-size: 1em;
    }

    .copyright {
       font-size: 1.2em;
    }

    .postbody h3.first, .postbody h3 {
       font-size: 1.2em;
    }

    p.author {
       font-size: 1.2em;
    }

    .postprofile dd, .postprofile dt {
       font-size: 1.2em;
    }

    .pagination {
       font-size: 1.1em;
    }

    fieldset.quickmod, fieldset.jumpbox, fieldset.display-options {
       font-size: 1.2em;
    }

    #tabs li {
       font-size: 1.2em;
    }

    #cp-main .panel p, #cp-main .panel ol {
       font-size: 1.2em;
    }

    #navigation li {
       font-size: 1.2em;
       font-weight: normal;
    }

    #navigation a {
       font-weight: normal;
    }

    dl.details {
       font-size: 1.2em;
    }

    fieldset {
       font-size: 1.2em;
    }

    div.rules {
   font-size: 1.2em;
    }

    .signature {
   font-size: 1.2em;
    }


后台: prosilver是目前唯一的风格
请下载本站现在使用的admin.css 请右键点击后另存为. 使用此文件覆盖 adm/style/ 下面的同名文件. 后台的字体就调整好了.

如果担心版本不同, 或倾向于自己修正者, 请参考下面的改动(diff patch格式)
Code: Select all
Index: admin.css
===================================================================
--- admin.css   (revision 165)
+++ admin.css   (working copy)
@@ -11,7 +11,7 @@
   /* Reset browsers default margin, padding and font sizes */
   margin: 0;
   padding: 0;
-   font-size: 100%;
+   font-size: 12px;
}

body, div, p, th, td, li, dd {
@@ -48,14 +48,14 @@

h1 {
   font-family: "Trebuchet MS", Helvetica, sans-serif;
-   font-size: 1.70em;
+   font-size: 1.20em;
   font-weight: normal;
   color: #333333;
}

h2, caption {
   font-family: "Trebuchet MS", Helvetica, sans-serif;
-   font-size: 1.40em;
+   font-size: 1.10em;
   font-weight: normal;
   color: #115098;
   text-align: left;
@@ -68,7 +68,7 @@

h3, h4 {
   font-family: "Trebuchet MS", Helvetica, sans-serif;
-   font-size: 1.20em;
+   font-size: 1.10em;
   text-decoration: none;
   line-height: 1.20em;
   margin-top: 25px;
@@ -77,7 +77,6 @@
p {
   margin-bottom: 0.7em;
   line-height: 1.40em;
-   font-size: 0.90em;
}

ul {
@@ -144,7 +143,6 @@
   text-align: right;
   background: url("../images/phpbb_logo.gif") top left no-repeat;
   height: 49px;
-   font-size: 0.85em;
   margin-bottom: 10px;
}

@@ -156,7 +154,7 @@
#page-header h1 {
   color: #767676;
   font-family: "Trebuchet MS",Helvetica,sans-serif;
-   font-size: 1.70em;
+   font-size: 1.10em;
   padding-top: 10px;
}

@@ -175,7 +173,6 @@

#page-footer {
   clear: both;
-   font-size: 0.75em;
   text-align: center;
}

@@ -235,7 +232,6 @@
   display: inline;
   margin: 0;
   padding: 0;
-   font-size: 0.85em;
   font-weight: bold;
}

@@ -400,10 +396,6 @@
   border-left: 1px solid #CCCFD3;
}

-#menu p {
-   font-size: 0.85em;
-}
-
#menu ul {
   list-style: none;
   margin: 0;
@@ -414,7 +406,6 @@
#menu li {
   padding: 0;
   margin: 0;
-   font-size: 0.85em;
   font-weight: bold;
   display: inline;
}
@@ -490,7 +481,6 @@
   padding: 4px 0 2px;
   margin-top: 15px;
   text-transform: uppercase;
-   font-size: 0.75em;
}

/* Table styles
@@ -510,13 +500,11 @@
   border-top: 1px solid #6DACD2;
   border-bottom: 1px solid #327AA5;
   text-align: left;
-   font-size: 0.75em;
   text-transform: uppercase;
}

td {
   text-align: left;
-   font-size: 0.85em;
   padding: 4px;
   line-height: 1.20em;
}
@@ -567,7 +555,6 @@
   text-align: center;
   color: #115098;
   padding: 0 3px;
-   font-size: 0.85em;
   font-weight: normal;
   text-transform: none;
}
@@ -578,7 +565,6 @@
   text-transform: none;
   padding: 0;
   border: none;
-   font-size: 0.90em;
   font-weight: normal;
   width: 100%;
}
@@ -656,14 +642,9 @@
   padding: 0 10px 5px 10px;
}

-fieldset p {
-   font-size: 0.85em;
-}
-
legend {
   padding: 1px 0;
   font-family: Tahoma,arial,Verdana,Sans-serif;
-   font-size: .9em;
   font-weight: bold;
   color: #115098;
   margin-top: -.4em;
@@ -681,7 +662,6 @@
* html legend {
   margin: 0 0 -10px -7px;
   line-height: 1em;
-   font-size: .85em;
}

/* Holly hack, .rtl comes after html */
@@ -692,7 +672,6 @@

input, textarea {
   font-family: Verdana, Helvetica, Arial, sans-serif;
-   font-size: 0.90em;
   font-weight: normal;
   cursor: text;
   vertical-align: middle;
@@ -726,7 +705,6 @@

optgroup, select {
   font-family: Verdana, Helvetica, Arial, sans-serif;
-   font-size: 0.85em;
   font-weight: normal;
   font-style: normal;
   cursor: pointer;
@@ -768,14 +746,12 @@

textarea {
   font-family: Verdana, Helvetica, Arial, sans-serif;
-   font-size: 0.85em;
   width: 60%;
   padding: 2px;
}

label {
   cursor: pointer;
-   font-size: 0.85em;
   padding: 0 5px 0 0;
}

@@ -833,7 +809,6 @@
   border: none;
   background-color: transparent;
   text-align: center;
-   font-size: 0.75em;
}

fieldset.display-options select, fieldset.display-options input, fieldset.display-options label {
@@ -912,7 +887,6 @@
}

dd textarea {
-   font-size: 0.90em;
   width: 90%;
}

@@ -923,7 +897,6 @@

fieldset dl {
   margin-bottom: 10px;
-   font-size: 0.85em;
}

fieldset dt {
@@ -1040,7 +1013,6 @@
   padding: 1px 3px 0 3px;
   font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif;
   color: #000;
-   font-size: 0.85em;
   background: #EFEFEF url("../images/bg_button.gif") repeat-x top;
   cursor: pointer;
}
@@ -1083,7 +1055,6 @@
   width: auto;
   text-align: right;
   margin-top: 5px;
-   font-size: 0.85em;
   padding-bottom: 2px;
}

@@ -1104,7 +1075,6 @@
   padding: 0 2px;
   margin: 0 2px;
   font-weight: normal;
-   font-size: 0.85em;
   color: #FFFFFF;
   background: #4692BF;
   border: 1px solid #4692BF;
@@ -1112,7 +1082,6 @@

.pagination span a, .pagination span a:link, .pagination span a:visited, .pagination span a:active {
   font-weight: normal;
-   font-size: 0.85em;
   text-decoration: none;
   color: #5C758C;
   margin: 0 2px;
@@ -1169,7 +1138,6 @@

.successbox p, .errorbox p {
   color: #FFFFFF;
-   font-size: 0.85em;
   margin-bottom: 0;
}

@@ -1350,7 +1318,6 @@

.permissions-switch {
   margin-top: -6px;
-   font-size: .9em;
}

.permissions-switch a {
@@ -1361,16 +1328,11 @@
   padding-bottom: 10px;
}

-.permissions-reset a {
-   font-size: .85em;
-}
-
/* Tabbed menu */
.permissions-category {
   line-height: normal;
   margin: 0 0 -1px 7px;
   min-width: 570px;
-   font-size: 0.85em;
}

.rtl .permissions-category {


2009.12.28 IOsetting 添加 致谢 和 后台字体调整方法.
Last edited by IOsetting on 2007-06-10 1:49, edited 8 times in total.
User avatar
IOsetting
论坛管理员
论坛管理员
 
Posts: 4490
Joined: 2006-10-17 1:48
Location: Lotus City

Postby aodongzhi » 2007-05-22 15:52

老大,看样子 phpbbxs3很快就能见面了 :D :D :D :D
User avatar
aodongzhi
学有小成
学有小成
 
Posts: 140
Joined: 2007-03-09 0:51

Postby Meow » 2007-05-22 17:40

我也在弄繁體的圖案了。 0.0
User avatar
Meow
登峰造极
登峰造极
 
Posts: 1102
Joined: 2007-05-21 1:02
Location: 台北

Postby newerby » 2007-05-23 0:12

把中文语言包覆盖到安装文件夹,可以选择中文语言界面来安装!老大效率真高,RC1 刚出来不到一天就推出 RC 1 测试中文包了~

这次模板文件较 beta5 版改动有变,老大所给的字体显示过小的解决方法没有之前 beta5 的效果那么明显,IE6和Firefox1.5的浏览差异还是存在的。还没细琢磨 phpbb3 模板,就等其他 xdjm 发表体会了。 :oops:
newerby
论坛管理员
论坛管理员
 
Posts: 1424
Joined: 2006-11-10 2:20

Postby IOsetting » 2007-05-23 0:58

这次发布这么快, 也要拜makara和laokan的支持, 还是人多好办事 :)

IE6和Firefox1.5的浏览差异

在firefox下的浏览效果比IE6要好很多, 调整字体的话, 在firefox下按一下Ctrl+"+"就好了, 哈哈
而且现在prosilver自带字体大小调整(右上角), 字体的灵活性更大了
User avatar
IOsetting
论坛管理员
论坛管理员
 
Posts: 4490
Joined: 2006-10-17 1:48
Location: Lotus City

Re: phpBB3 RC1 [简体/正體]中文语言包发布

Postby textilebbs » 2007-06-07 10:02

楼主
请问一下,我只要修改这里的字体怎么修改。。
我的版本是PHPBB3-RC1
Attachments
123}副本.gif
123}副本.gif (2.9 KiB) Viewed 28352 times
textilebbs
学有小成
学有小成
 
Posts: 134
Joined: 2007-06-07 10:00

Postby textilebbs » 2007-06-07 10:30

:lol: :lol: :lol: :lol: :lol:
textilebbs
学有小成
学有小成
 
Posts: 134
Joined: 2007-06-07 10:00

Postby IOsetting » 2007-06-07 10:39

已经更新, 看页首文章
User avatar
IOsetting
论坛管理员
论坛管理员
 
Posts: 4490
Joined: 2006-10-17 1:48
Location: Lotus City

Re: phpBB3 RC1 [简体/正體]中文语言包发布

Postby textilebbs » 2007-06-07 12:16

老大回复这么快啊。。
谢谢拉。
再看一张!
Attachments
未标题-1.gif
未标题-1.gif (7.78 KiB) Viewed 28305 times
textilebbs
学有小成
学有小成
 
Posts: 134
Joined: 2007-06-07 10:00

Postby IOsetting » 2007-06-07 13:02

这个没办法, 因为上面没有id, 除非在common.css里面把那个11px再加大一号, 改成12px, 然后就不用再修改cp.css了, 因为这样的话所有的字体最小的都是12px的了.

你使用firefox的吧? 如果你用ie6, 看这个是没问题的, ie6会自动把11px的汉字调成12px.
User avatar
IOsetting
论坛管理员
论坛管理员
 
Posts: 4490
Joined: 2006-10-17 1:48
Location: Lotus City

Postby textilebbs » 2007-06-07 13:40

我的是最新版的IE。
这个随他去了,小问题一个。
还是谢谢了
textilebbs
学有小成
学有小成
 
Posts: 134
Joined: 2007-06-07 10:00

Re: phpBB3 RC1 [简体/正體]中文语言包发布

Postby Meow » 2007-06-21 18:45

為啥看不到我放得圖檔?
Chita,一个野性兽图圣殿。
User avatar
Meow
登峰造极
登峰造极
 
Posts: 1102
Joined: 2007-05-21 1:02
Location: 台北

Re: phpBB3 RC1 [简体/正體]中文语言包发布

Postby ifubo » 2007-06-21 19:49

强烈要求管理员把繁体的图档更新上去
俺是一只大大大菜鸟......想要飞却怎么样也飞不高.....
Image
支持phpbb,支持phpbbchina
User avatar
ifubo
界面组成员
界面组成员
 
Posts: 499
Joined: 2006-10-26 17:46
Location: Condition Zero

Re: phpBB3 RC1 [简体/正體]中文语言包发布

Postby Meow » 2007-06-22 17:44

他大概不想了。
Chita,一个野性兽图圣殿。
User avatar
Meow
登峰造极
登峰造极
 
Posts: 1102
Joined: 2007-05-21 1:02
Location: 台北

Re: phpBB3 RC1 [简体/正體]中文语言包发布

Postby ifubo » 2007-06-23 6:55

应该不会
只是管理员太忙了而已
俺是一只大大大菜鸟......想要飞却怎么样也飞不高.....
Image
支持phpbb,支持phpbbchina
User avatar
ifubo
界面组成员
界面组成员
 
Posts: 499
Joined: 2006-10-26 17:46
Location: Condition Zero

Next

Return to 3.0.X 使用

Who is online

Users browsing this forum: Baidu [Spider], Yahoo [Bot] and 3 guests