Revision 901
Added by Matthias almost 16 years ago
comment_page.php | ||
---|---|---|
41 | 41 |
echo "\n</style>\n"; |
42 | 42 |
} |
43 | 43 |
|
44 |
// check if module language file exists for the language set by the user (e.g. DE, EN) |
|
45 |
if(!file_exists(WB_PATH .'/modules/news/languages/'.LANGUAGE .'.php')) { |
|
46 |
// no module language file exists for the language set by the user, include default module language file EN.php |
|
47 |
require_once(WB_PATH .'/modules/news/languages/EN.php'); |
|
48 |
} else { |
|
49 |
// a module language file exists for the language defined by the user, load it |
|
50 |
require_once(WB_PATH .'/modules/news/languages/'.LANGUAGE .'.php'); |
|
51 |
} |
|
52 |
|
|
44 | 53 |
require_once(WB_PATH.'/include/captcha/captcha.php'); |
45 | 54 |
|
46 | 55 |
// Get comments page template details from db |
... | ... | |
52 | 61 |
$settings = $query_settings->fetchRow(); |
53 | 62 |
|
54 | 63 |
// Print comments page |
55 |
echo str_replace('[POST_TITLE]', POST_TITLE, ($settings['comments_page'])); |
|
64 |
$vars = array('[POST_TITLE]','[TEXT_COMMENT]'); |
|
65 |
$values = array(POST_TITLE, $MOD_NEWS['TEXT_COMMENT']); |
|
66 |
echo str_replace($vars, $values, ($settings['comments_page'])); |
|
56 | 67 |
?> |
57 | 68 |
<form name="comment" action="<?php echo WB_URL.'/modules/news/submit_comment.php?page_id='.PAGE_ID.'&section_id='.SECTION_ID.'&post_id='.POST_ID; ?>" method="post"> |
58 | 69 |
<?php if(ENABLED_ASP) { // add some honeypot-fields |
... | ... | |
109 | 120 |
<?php |
110 | 121 |
} |
111 | 122 |
?> |
112 |
<input type="submit" name="submit" value="<?php echo $TEXT['ADD']; ?> <?php echo $TEXT['COMMENT']; ?>" />
|
|
123 |
<input type="submit" name="submit" value="<?php echo $MOD_NEWS['TEXT_ADD_COMMENT']; ?>" />
|
|
113 | 124 |
</form> |
114 | 125 |
<?php |
115 | 126 |
} |
116 | 127 |
|
117 |
?> |
|
128 |
?> |
Also available in: Unified diff
made news Modul multilingual, see ticket #676 (some additional translations are needed)