可能是作者沒想到有外文使用者的問題吧,所以行事曆在使用上會出現事件標題無法輸入英文以外文字的問題,照著以下步驟來修正這個問題吧!
開啟calendar.php並尋找以下程式碼,共會找到兩段一樣的部份,都照以下方式操作即可完全修正。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | if (preg_match('/^[a-zA-Z0-9]{1}[a-zA-Z0-9[:space:]]{0,29}$/',$title))
{
$title_ok =1;
}
else
{
?>
<div class="error">
<strong><?php _e('Error','calendar'); ?>:</strong> <?php _e('The event title must be between 1 and 30 characters in length and contain no punctuation. Spaces are allowed but the title must not start with one.','calendar'); ?>
</div>
<?php
} |
替換為以下程式碼
1 | $title_ok =1; |


