diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..a7904937 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: php + +php: + - 5.5 + - 5.4 + - 5.3 + +script: cd ./tools/ && make all + diff --git a/README.md b/README.md new file mode 100644 index 00000000..69fcb177 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +Typecho Blogging Platform +========================= + +####Homepage +http://typecho.org/ + +####Document +http://docs.typecho.org/ + +####Forum +http://forum.typecho.org/ + +####Download +http://typecho.org/download + diff --git a/admin/manage-comments.php b/admin/manage-comments.php index b80ca9e4..eb979418 100644 --- a/admin/manage-comments.php +++ b/admin/manage-comments.php @@ -50,7 +50,7 @@ $isAllComments = ('on' == $request->get('__typecho_all_comments') || 'on' == Typ
<a href=""> <img src=""> <blockquote>'));
+ _t('允许使用的HTML标签和属性'), _t('默认的用户评论不允许填写任何的HTML标签, 你可以在这里填写允许使用的HTML标签.') . '<a href=""> <img src=""> <blockquote>'));
$commentsHTMLTagAllowed->input->setAttribute('class', 'mono');
$form->addInput($commentsHTMLTagAllowed);
diff --git a/var/Widget/Options/General.php b/var/Widget/Options/General.php
index 5a8f38a5..bf8f4689 100644
--- a/var/Widget/Options/General.php
+++ b/var/Widget/Options/General.php
@@ -113,7 +113,7 @@ class Widget_Options_General extends Widget_Abstract_Options implements Widget_I
);
$attachmentTypes = new Typecho_Widget_Helper_Form_Element_Checkbox('attachmentTypes', $attachmentTypesOptions,
- $attachmentTypesOptionsValue, _t('允许上传的文件类型'), _t('用逗号 "," 将后缀名隔开, 例如: cpp, h, mak'));
+ $attachmentTypesOptionsValue, _t('允许上传的文件类型'), _t('用逗号 "," 将后缀名隔开, 例如: %s', 'cpp, h, mak'));
$form->addInput($attachmentTypes->multiMode());
/** 提交按钮 */
diff --git a/var/Widget/Options/Permalink.php b/var/Widget/Options/Permalink.php
index 0b777c3e..ecaf0c2b 100644
--- a/var/Widget/Options/Permalink.php
+++ b/var/Widget/Options/Permalink.php
@@ -206,8 +206,8 @@ RewriteRule . {$basePath}index.php [L]
/** 是否使用地址重写功能 */
$rewrite = new Typecho_Widget_Helper_Form_Element_Radio('rewrite', array('0' => _t('不启用'), '1' => _t('启用')),
- $this->options->rewrite, _t('是否使用地址重写功能'), _t('地址重写即 rewrite 功能是某些服务器软件提供的优化内部连接的功能./archives/{cid}/',
@@ -241,20 +241,23 @@ RewriteRule . {$basePath}index.php [L]
$patterns['custom'] = _t('个性化定义') . ' ';
$postPattern = new Typecho_Widget_Helper_Form_Element_Radio('postPattern', $patterns,
- $postPatternValue, _t('自定义文章路径'), _t('可用参数: {cid} 日志 ID, {slug} 日志缩略名, {category} 分类, {year} 年, {month} 月, {day} 日{cid} 日志 ID, {slug} 日志缩略名, {category} 分类, {year} 年, {month} 月, {day} 日')
+ . '{cid} 页面 ID、{slug} 页面缩略名{cid} 页面 ID、{slug} 页面缩略名')
+ . '{mid} 分类 ID、{slug} 分类缩略名{mid} 分类 ID、{slug} 分类缩略名')
+ . '