commentaires qui marchent avec traductions
This commit is contained in:
parent
596b5dee05
commit
060c5a8c91
4 changed files with 20 additions and 4 deletions
|
|
@ -16,7 +16,9 @@ class language
|
||||||
var $source_rss = "Click on the image for the source file in the SVG format.";
|
var $source_rss = "Click on the image for the source file in the SVG format.";
|
||||||
var $see_also = "See also:";
|
var $see_also = "See also:";
|
||||||
var $forum ="Forum";
|
var $forum ="Forum";
|
||||||
|
var $forum_new = "New";
|
||||||
|
var $forum_error = "Cannot read comments";
|
||||||
|
|
||||||
function language()
|
function language()
|
||||||
{
|
{
|
||||||
$vars = get_class_vars(__CLASS__);
|
$vars = get_class_vars(__CLASS__);
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,8 @@ class language
|
||||||
var $source_rss = "Cliquez sur l'image pour le fichier source au format SVG.";
|
var $source_rss = "Cliquez sur l'image pour le fichier source au format SVG.";
|
||||||
var $see_also = "Voir aussi :";
|
var $see_also = "Voir aussi :";
|
||||||
var $forum = "Forum";
|
var $forum = "Forum";
|
||||||
|
var $forum_new = "Nouveau";
|
||||||
|
var $forum_error = "Impossible de lire les commentaires";
|
||||||
|
|
||||||
function language()
|
function language()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -136,6 +136,11 @@ class strip_manager
|
||||||
*/
|
*/
|
||||||
var $comments = '';
|
var $comments = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Link to the post page related to the strip on the forum
|
||||||
|
*/
|
||||||
|
var $forum_post_url = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Additional variables
|
* Additional variables
|
||||||
*
|
*
|
||||||
|
|
@ -286,15 +291,21 @@ class strip_manager
|
||||||
$this->text = html_entity_decode( implode( $matches[1], "\n" ) );
|
$this->text = html_entity_decode( implode( $matches[1], "\n" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if one want to use punbb as forum
|
||||||
if( $this->general->use_punbb ) {
|
if( $this->general->use_punbb ) {
|
||||||
// TODO : url en fonction du mod punbb
|
// lasts posts associated to the strip
|
||||||
$fh = fopen($this->general->forum . '/post.php?ttitle=TODO&fid=TODO', 'r');
|
$fh = fopen( $this->general->forum.'/extern.php?action=new&fid=1', 'r');
|
||||||
|
|
||||||
if (!$fh) {
|
if (!$fh) {
|
||||||
$this->comments = "Impossible de lire les commentaires.";
|
// TODO traduction
|
||||||
|
$this->comments = $this->lang-forum_error;
|
||||||
} else {
|
} else {
|
||||||
$this->comments = stream_get_contents($fh);
|
$this->comments = stream_get_contents($fh);
|
||||||
fclose($fh);
|
fclose($fh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// link for posting a new comment
|
||||||
|
$this->forum_post_url = $this->general->forum . '/post.php?ttitle='.$this->title.'&fid='.$this->general->punbb_forum_id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@
|
||||||
<div id="footbar">
|
<div id="footbar">
|
||||||
<p id="forum"><a href="{general.forum}">{lang.forum}</a></p>
|
<p id="forum"><a href="{general.forum}">{lang.forum}</a></p>
|
||||||
<p id="forum_comments">{comments:h}</p>
|
<p id="forum_comments">{comments:h}</p>
|
||||||
|
<p id="forum_post"><a href="{forum_post_url}">{lang.forum_new}</a></p>
|
||||||
<p id="shop_infos"><a href="{general.shop}">{lang.boutique} {general.title}</a> {lang.teeshirt}.</p>
|
<p id="shop_infos"><a href="{general.shop}">{lang.boutique} {general.title}</a> {lang.teeshirt}.</p>
|
||||||
{lang.see_also}
|
{lang.see_also}
|
||||||
<ul id="linkbar">
|
<ul id="linkbar">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue