Demo

討論

保持飢餓,保持愚笨 (Stay hungry, stay foolish)。 史蒂夫·賈伯斯

公告

本網站已取消討論區的討論方式,如果您有問題請至LINE群行動條碼圖片網址,或Facebook社團

Agora Forum 無法顯示正確中文Menu文字

  • leelm53
  • leelm53 的個人頭像 Topic Author
  • Offline
  • 金牌會員
  • 金牌會員
More
2008-11-12 17:55 #12067 來自 leelm53
leelm53 created the topic: Agora Forum 無法顯示正確中文Menu文字
我使用 Joomla! 1.5.7 ,今日下載 Agora Forum 2.5.3 元件進行安裝,安裝後再於 Main Menu 新增一個元件連結即可運作。

在英文語系下顯示正常(如下圖綠色虛線)
[attachment=1:1p3bza3y]<!-- ia1 -->Agora Forum_english-1.gif<!-- ia1 -->[/attachment:1p3bza3y]
但在中文語系下竟無法顯示 FORUM 內之 中文選單文字(如下圖紅色虛線)
[attachment=0:1p3bza3y]<!-- ia0 -->Agora Forum_chinese-1.gif<!-- ia0 -->[/attachment:1p3bza3y]
請問各位同好有遇過此一問題嗎? 敬請賜教,謝謝。
附件:

Please 登入 to join the conversation.

  • leelm53
  • leelm53 的個人頭像 Topic Author
  • Offline
  • 金牌會員
  • 金牌會員
More
2008-11-14 16:50 #12092 來自 leelm53
leelm53 replied the topic: Agora Forum 無法顯示正確中文Menu文字
經過比對 com_agora 元件之英文 common.php 檔案(位於該元件 lang/English 目錄),第217~229行原始資料如下:

//'for details' => '(Hover for details)',
'error_user' => 'Unable to fetch user information',
//Added in Version Agora 1.0.5
'resizedclick' => 'This image has been resized, click',
'resizedclick_1' => 'here to view the full-sized image.',
'Replies' => 'Replies',
'From' => 'Location:  ', // User location
'PostCount' => 'Post Count:  ', // User location
'Description' => 'Description',
//Added for vCard
'listposts' => 'List All Posts',
'viewprofile' => 'View Profile',
);


但是中文語系之 common.php 檔案(位於該元件 lang/traditional_chinese 目錄),對應至217行只有下列2行,明顯漏掉許多行:

'for details' => '(滑鼠指上去看詳情)',
);


:grin: 待我將缺行補上後已部分恢復正常,如附圖綠色虛線框:
[attachment=0:3iawmrx6]<!-- ia0 -->AgoraForum-Index-Chinese-2b.jpg<!-- ia0 -->[/attachment:3iawmrx6]

目前仍有部分選單文字無法顯示,如上圖紅色虛線框,將比對其他檔案,待有結果再向各位報告。
附件:

Please 登入 to join the conversation.

  • leelm53
  • leelm53 的個人頭像 Topic Author
  • Offline
  • 金牌會員
  • 金牌會員
More
2008-11-14 17:36 #12094 來自 leelm53
leelm53 replied the topic: Agora Forum 無法顯示正確中文Menu文字
另外比對 profile.php 檔案發現,當初中文翻譯者未將英文版之 184~197 行加入,故無法正確顯示,加上後即恢復正常。

////ADDED FOR AGORA 2.5//////
'Ignore' => 'Ignore posts from this user',
'Unignore' => 'Stop ignoring posts from this user',
'Ignore redirect' => 'List of ignored users updated. Redirecting …',
'Ignore list full' => 'Your list of ignored users is full. To add a user, you must remove one or more existing users from your list.',
'Ignore mode legend' => 'Select display mode for posts from ignored users',
'Ignore mode 0' => 'No ignore: show posts from ignored users.',
'Ignore mode 1' => 'Plain ignore: replace posts from ignored users with static text.',
'Ignore mode 2' => 'Fancy ignore: hide posts from ignored users but provide link to show them (requires Javascript).',
'Ignore list legend' => 'Users you are currently ignoring',
'Ignore list info' => 'You can stop ignoring posts from a user by following the link to his/her profile.',
'Ignore list empty info' => 'You are not currently ignoring any users. You can access the button to ignore a user by going to his/her profile page.',
'Most ignored legend' => 'This forum\'s ten most ignored users',
'Ignored by' => '# ignored by',


目前 Agora Forum 中文部分已可正常顯示:
[attachment=0:sv5o0onr]<!-- ia0 -->AgoraForum-Index-Chinese-3b.jpg<!-- ia0 -->[/attachment:sv5o0onr]

此次比對另外發現,英文版本中大都有 "global $lang_profile;" 字串,但在中文版本中大都將此行刪除,不知是否有影響?我已將它加入發現遭刪除之檔案中。
附件:

Please 登入 to join the conversation.

  • leelm53
  • leelm53 的個人頭像 Topic Author
  • Offline
  • 金牌會員
  • 金牌會員
More
2008-11-14 20:56 #12099 來自 leelm53
leelm53 replied the topic: Agora Forum 無法顯示正確中文Menu文字
補充說明,com_agora 元件之 lang/traditional_chinese 目錄下,agora_options.php 也有問題,最後一個Option Menu文字原本無法顯示。與英文版比對發現 244~264 行遺漏,如下所示:

//ADDED FOR AGORA ACROPOLIS 1.0.5
'admin_poll_edit' => 'Polls edit',
'Top Ten' => 'Top Ten',
'topten' => 'If set to yes, Agora will disply the Most Active Posters in the footer area of your forum.',
'Social Bookmarks' => 'Social Bookmarks',
'social bookmarks_2' => 'If set to yes, Agora will disply the Social Bookmarks feature in topic of your forum.',
'Most Active' => 'Most Active Users',
'Most Active Control' => 'Most Active Users',
'# Most Active' => '# Most Active Users',
'# Most Active Desc' => 'Set the number of (Most Active Users) to show in that area, default is 10.',
'# Rss_Char' => 'Rss Characters',
'# Rss_Char Desc' => 'When a user subscribes to a form or category RSS Feed. This is the number of characters that will display in the message',
'Integration' => 'Integration',
'uddeim' => 'Support Uddeim PMS',
'uddeim_1' => 'If to choose Yes component Uddeim for sending personal messages will be used.<br />To add UddeIM to Agora, you must publish <b>mod_uddeim</b> (UddeIm Notifier) to agora_uddeim. Make a copy of the module "UddeIM Notifier" and publish it. Where it asks for "Position" type "agora_uddeim" (without the quotes). Uncheck display name and publish yes. Then save.',
////////////////////ADDED IN PANTHEON 2.5.3 ////////////////////////
'ForumMap' => 'Forum Map',
'ForumMap_2' => 'Enable or disable Forum Map from the main menu. Choose yes to enable',
'UserMap' => 'User Map',
'UserMap_2' => 'Enable or disable User Map from the main menu. Choose yes to enable',


將上述程式加入原檔案後,已恢復正常,如下圖所示:
[attachment=0:31iooqb0]<!-- ia0 -->AgoraForum-Admin-Chinese-2b.jpg<!-- ia0 -->[/attachment:31iooqb0]
附件:

Please 登入 to join the conversation.