Dotclear

Changeset 1128 for plugins/latexrender


Ignore:
Timestamp:
04/30/09 12:10:46 (14 years ago)
Author:
jcdubacq
Message:
  • Clean code
  • Lift for the admin backend
  • New screenshot
Location:
plugins/latexrender
Files:
1 added
12 edited

Legend:

Unmodified
Added
Removed
  • plugins/latexrender/_admin.php

    r1066 r1128  
    1010# http://www.gnu.org/licenses/lgpl-2.1.html 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12if (!defined('DC_CONTEXT_ADMIN')) {return;} 
    1213 
    1314$_menu['Plugins']->addItem('LaTeXrender','plugin.php?p=latexrender', 
  • plugins/latexrender/_define.php

    r1066 r1128  
    1010# http://www.gnu.org/licenses/lgpl-2.1.html 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12if (!defined('DC_RC_PATH')) {return;} 
    1213 
    1314$this->registerModule( 
     
    1516                      'Allows rendering of some blocks by LaTeX',/*Description*/ 
    1617                      'Jean-Christophe Dubacq', /* Author */ 
    17                       '0.9.1', /* Version */ 
     18                      '0.9.2', /* Version */ 
    1819                      'usage,contentadmin' /* Permissions */ 
    1920                      ); 
  • plugins/latexrender/_prepend.php

    r1066 r1128  
    1010# http://www.gnu.org/licenses/lgpl-2.1.html 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12if (!defined('DC_RC_PATH')) {return;} 
    1213 
     14$GLOBALS['__autoload']['LatexRender'] = dirname(__FILE__).'/class.latexrender.php'; 
    1315$core->addBehavior('initStacker', 
    1416                   array('latexrenderStacker','initStacker')); 
  • plugins/latexrender/_public.php

    r1066 r1128  
    1010# http://www.gnu.org/licenses/lgpl-2.1.html 
    1111# -- END LICENSE BLOCK ------------------------------------ 
    12  
    13 include_once(dirname(__FILE__).'/class.latexrender.php'); 
     12if (!defined('DC_RC_PATH')) {return;} 
    1413 
    1514class tplLatexRender 
  • plugins/latexrender/doc/LISEZMOI.html

    r1067 r1128  
    1414<h3>Installation</h3> 
    1515<p>Utilisez le fichier zippé fourni en annexe de ce billet. Ensuite, 
    16 rendez-vous en zone d'administration en tant 
    17 que <strong>super-administrateur</strong>, et remplissez les chemins 
    18 d'accès aux divers exécutables ([tex]\LaTeX[/tex] et la suite 
    19 ImageMagick; les valeurs par défauts doivent être suffisantes pour la 
    20 plupart des installations) ainsi que quelques paramètres supplémentaires 
    21 (dans le menu Extensions). Les paramètres doivent être évidents ; si ce 
    22 n'est pas le cas, soumettez un rapport de bug.</p> 
     16rendez-vous en zone d'administration Extensions &gt; LaTeXrender &gt; 
     17Paramètres en tant que <strong>super-administrateur</strong>, et 
     18remplissez les chemins d'accès aux divers exécutables ([tex]\LaTeX[/tex] 
     19et la suite ImageMagick; les valeurs par défauts doivent être 
     20suffisantes pour la plupart des installations) ainsi que quelques 
     21paramètres supplémentaires (dans le menu Extensions). Les paramètres 
     22doivent être évidents ; si ce n'est pas le cas, soumettez un rapport de 
     23bug.</p> 
    2324<div class="photo"><a href="/public/photos/dotclear/latexrender-admin.png"><img src="/public/photos/dotclear/.latexrender-admin_m.jpg" alt="Interface d'administration de LaTeXrender" title="Interface d'administration de LaTeXrender" /></a><div class="legende">Interface d'administration de LaTeXrender</div></div> 
     25<div class="photo"><a href="/public/photos/dotclear/latexrender-admin2.png"><img src="/public/photos/dotclear/latexrender-admin2.png" alt="Auto-test de LaTeXrender" title="Auto-test de LaTeXrender" /></a><div class="legende">Auto-test de LaTeXrender</div></div> 
    2426<p>L'extension nécessite une installation sur le serveur 
    2527de <code>latex</code> et du paquet 
     
    3739au contenu des billets (note: comme l'auteur en utilise plusieurs, il 
    3840considère ceci comme un bug).</p> 
    39 <p class="version">La version courante de cette extension est 0.9.1 (local svn  348).</p><p class="licence">Cette extension est sous la licence <a href="http://www.gnu.org/licenses/lgpl-2.1.html" hreflang="en">GPL version 2.0</a>.</p> 
     41<p class="version">La version courante de cette extension est 0.9.2 (local svn  369).</p><p class="licence">Cette extension est sous la licence <a href="http://www.gnu.org/licenses/lgpl-2.1.html" hreflang="en">GPL version 2.0</a>.</p> 
    4042<h3>Utilisation</h3> 
    4143<h4>Utilisation basique</h4> 
    42 <p>L'utilisation en est souple, il suffit de taper son texte [tex]\LaTeX[/tex] entre 
    43 deux pseudos-balises <code>[tex]...[/tex]</code>. Par exemple, 
     44<p>L'utilisation en est souple, il suffit de taper son texte 
     45[tex]\LaTeX[/tex] entre deux 
     46pseudos-balises <code>[tex]...[/tex]</code>. Par exemple, 
    4447[tex]$\displaystyle\int_{0}^{1}\frac{x^{4}\left(1-x\right)^{4}}{1+x^{2}}dx 
    45 =\frac{22}{7}-\pi$[/tex]. 
    46 </p> 
     48=\frac{22}{7}-\pi$[/tex].</p> 
    4749<p>Les équations sont représentées sous forme d'image, et le code [tex]\LaTeX[/tex] est 
    4850donné comme titre de l'image.</p> 
     
    7678<p>FFFFFF est à remplacer par la <a href="http://www.commentcamarche.net/html/htmlcouleurs.php3" hreflang="fr">couleur voulue en hexadécimal</a> (ici, blanc; 
    7779jaune est FFFF00, rouge est FF0000...).</p> 
    78 <div class="bug"><h3>Pour signaler un bug ou aider cette extension</h3><p>Le mieux est de me contacter <a href="http://jean-christophe.dubacq.fr/pages/Contact">par courrier</a> (pour un bug) ou de laisser un commentaire (pour dire que vous avez testé cette extension). En cas de mise à jour, je modifierai ce billet.</p></div><div class="changelog"><h3>Liste des changements</h3><p>Note : ce journal est non-exhaustif, généré automatiquement, en anglais, et sans doute non-informatif avant 2009.</p><ul><li>Local SVN release 348 (jcdubacq,2009-04-22)<ul> <li>Fix documentation</li> </ul></li> <li>Local SVN release 346 (jcdubacq,2009-04-22)<ul> <li>Fix licence block, reindent</li> <li>Switch to LGPL 2.1 in order to keep the original licence</li> </ul></li> <li>Local SVN release 333 (jcdubacq,2009-04-18)<ul> <li>Allow for public path to be an absolute path, release</li> </ul></li> <li>Local SVN release 303 (jcdubacq,2009-01-27)<ul> <li>Fix locales</li> </ul></li> <li>Local SVN release 297 (jcdubacq,2009-01-26)<ul> <li>Adapt to version 0.3 of stacker (behavior initStacker)</li> </ul></li> <li>Local SVN release 292 (jcdubacq,2009-01-22)<ul> <li>Update documentation, release new version 0.6</li> </ul></li> <li>Local SVN release 259 (jcdubacq,2008-11-18)<ul> <li>Fix public url usage in admin area</li> </ul></li> <li>Local SVN release 205 (jcdubacq,2008-07-24)<ul> <li>Add documentation, new version</li> </ul></li> <li>Local SVN release 187 (jcdubacq,2008-07-09)<ul> <li>Add admin page, rewrite latexrender class to better fit the needs of DC2</li> </ul></li> <li>Local SVN release 168 (jcdubacq,2008-05-06)<ul> <li>Order plugins and themes</li> </ul></li> <li>Local SVN release 47 (jcdubacq,2008-02-15)<ul> <li>Add latexrender plugin</li> </ul></li></ul></div> 
     80<div class="bug"><h3>Pour signaler un bug ou aider cette extension</h3><p>Le mieux est de me contacter <a href="http://jean-christophe.dubacq.fr/pages/Contact">par courrier</a> (pour un bug) ou de laisser un commentaire (pour dire que vous avez testé cette extension). En cas de mise à jour, je modifierai ce billet.</p></div><div class="changelog"><h3>Liste des changements</h3><p>Note : ce journal est non-exhaustif, généré automatiquement, en anglais, et sans doute non-informatif avant 2009.</p><ul><li>Local SVN release 369 (jcdubacq,2009-04-30)<ul> <li> latexrender-admin2.png latexrender-admin.png latexrender-exemple.png LISEZMOI.html LISEZMOI.txt README.html README.txt Clean code</li> <li> latexrender-admin2.png latexrender-admin.png latexrender-exemple.png LISEZMOI.html LISEZMOI.txt README.html README.txt Lift for the admin backend</li> <li> latexrender-admin2.png latexrender-admin.png latexrender-exemple.png LISEZMOI.html LISEZMOI.txt README.html README.txt New screenshot</li> </ul></li> <li>Local SVN release 348 (jcdubacq,2009-04-22)<ul> <li>Fix documentation</li> </ul></li> <li>Local SVN release 346 (jcdubacq,2009-04-22)<ul> <li>Fix licence block, reindent</li> <li>Switch to LGPL 2.1 in order to keep the original licence</li> </ul></li> <li>Local SVN release 333 (jcdubacq,2009-04-18)<ul> <li>Allow for public path to be an absolute path, release</li> </ul></li> <li>Local SVN release 303 (jcdubacq,2009-01-27)<ul> <li>Fix locales</li> </ul></li> <li>Local SVN release 297 (jcdubacq,2009-01-26)<ul> <li>Adapt to version 0.3 of stacker (behavior initStacker)</li> </ul></li> <li>Local SVN release 292 (jcdubacq,2009-01-22)<ul> <li>Update documentation, release new version 0.6</li> </ul></li> <li>Local SVN release 259 (jcdubacq,2008-11-18)<ul> <li>Fix public url usage in admin area</li> </ul></li> <li>Local SVN release 205 (jcdubacq,2008-07-24)<ul> <li>Add documentation, new version</li> </ul></li> <li>Local SVN release 187 (jcdubacq,2008-07-09)<ul> <li>Add admin page, rewrite latexrender class to better fit the needs of DC2</li> </ul></li> <li>Local SVN release 168 (jcdubacq,2008-05-06)<ul> <li>Order plugins and themes</li> </ul></li> <li>Local SVN release 47 (jcdubacq,2008-02-15)<ul> <li>Add latexrender plugin</li> </ul></li></ul></div> 
    7981<h3>Travail restant à faire</h3> 
    8082<ul><li>Faire une version qui ne dépend pas de l'extension <code>stacker</code></li> 
  • plugins/latexrender/doc/LISEZMOI.txt

    r1067 r1128  
    2222 
    2323Utilisez le fichier zippé fourni en annexe de ce billet. Ensuite, rendez-vous en 
    24 zone d'administration en tant que super-administrateur, et remplissez les 
    25 chemins d'accès aux divers exécutables ([tex]\LaTeX[/tex] et la suite 
    26 ImageMagick; les valeurs par défauts doivent être suffisantes pour la plupart 
    27 des installations) ainsi que quelques paramètres supplémentaires (dans le menu 
    28 Extensions). Les paramètres doivent être évidents ; si ce n'est pas le cas, 
    29 soumettez un rapport de bug. 
     24zone d'administration Extensions > LaTeXrender > Paramètres en tant que 
     25super-administrateur, et remplissez les chemins d'accès aux divers exécutables 
     26([tex]\LaTeX[/tex] et la suite ImageMagick; les valeurs par défauts doivent être 
     27suffisantes pour la plupart des installations) ainsi que quelques paramètres 
     28supplémentaires (dans le menu Extensions). Les paramètres doivent être évidents 
     29; si ce n'est pas le cas, soumettez un rapport de bug. 
    3030 
    3131L'extension nécessite une installation sur le serveur de latex et du paquet 
     
    4343ceci comme un bug). 
    4444 
    45 La version courante de cette extension est 0.9.1 (local svn 348). 
     45La version courante de cette extension est 0.9.2 (local svn 369). 
    4646 
    4747Cette extension est sous la licence [5]GPL version 2.0. 
     
    101101Note : ce journal est non-exhaustif, généré automatiquement, en anglais, et sans 
    102102doute non-informatif avant 2009. 
     103  * Local SVN release 369 (jcdubacq,2009-04-30) 
     104  + latexrender-admin2.png latexrender-admin.png latexrender-exemple.png 
     105LISEZMOI.html LISEZMOI.txt README.html README.txt Clean code 
     106  + latexrender-admin2.png latexrender-admin.png latexrender-exemple.png 
     107LISEZMOI.html LISEZMOI.txt README.html README.txt Lift for the admin backend 
     108  + latexrender-admin2.png latexrender-admin.png latexrender-exemple.png 
     109LISEZMOI.html LISEZMOI.txt README.html README.txt New screenshot 
    103110  * Local SVN release 348 (jcdubacq,2009-04-22) 
    104111  + Fix documentation 
  • plugins/latexrender/doc/README.html

    r1067 r1128  
    2828<h3>Installation</h3> 
    2929<p>Use the zipped file attached to this post.Go then to the 
    30 administration area as <strong>super-admin</strong>, and fill in the various access paths 
    31 to the auxiliary programs (the default values should be fine on most 
    32 servers ; [tex]\LaTeX[/tex] and the <a href="http://www.imagemagick.org/script/index.php" hreflang="en">ImageMagick</a> set of programs are used) as well as 
    33 a few other parameters. Their meaning should be self-evident; if this is 
    34 not the case, please submit a bug report.</p> 
     30administration area Plugins &gt; LaTeXrender &gt; Settings 
     31as <strong>super-admin</strong>, and fill in the various access paths to 
     32the auxiliary programs (the default values should be fine on most 
     33servers ; [tex]\LaTeX[/tex] and 
     34the <a href="http://www.imagemagick.org/script/index.php" 
     35hreflang="en">ImageMagick</a> set of programs are used) as well as a few 
     36other parameters. Their meaning should be self-evident; if this is not 
     37the case, please submit a bug report.</p> 
    3538<div class="photo"><a href="/public/photos/dotclear/latexrender-admin.png"><img src="/public/photos/dotclear/.latexrender-admin_m.jpg" alt="Administration area for LaTeXrender" title="Administration area for LaTeXrender" /></a><div class="legende">Administration area for LaTeXrender</div></div> 
     39<div class="photo"><a href="/public/photos/dotclear/latexrender-admin2.png"><img src="/public/photos/dotclear/latexrender-admin2.png" alt="Auto-test for LaTeXrender" title="Auto-test for LaTeXrender" /></a><div class="legende">Auto-test for LaTeXrender</div></div> 
    3640<p>The extension requires an installation on the server of latex and the 
    3741ImageMagick set of programs (mostly the <code>convert</code> 
     
    4852contents (note: as the author uses several of them, this is therefore 
    4953considered as a bug).</p> 
    50 <p class="version">The current version of this plugin is 0.9.1 (local svn  348).</p><p class="licence">This plugin is licensed under <a href="http://www.gnu.org/licenses/lgpl-2.1.html" hreflang="en">GPL version 2.0</a>.</p> 
     54<p class="version">The current version of this plugin is 0.9.2 (local svn  369).</p><p class="licence">This plugin is licensed under <a href="http://www.gnu.org/licenses/lgpl-2.1.html" hreflang="en">GPL version 2.0</a>.</p> 
    5155<h3>Usage</h3> 
    5256<h4>Basic usage</h4> 
     
    8791<pre class="code">&lt;?php $core-&gt;theme_color='FFFFFF'; ?&gt;</pre> 
    8892<p>FFFFFF is to be replaced by the desired colour, coded in hexadecimal (here, white; yellow is FFFF00, red is FF0000).</p> 
    89 <div class="bug"><h3>To tell me about a bug or helping this plugin</h3><p>The best way is to contact me <a href="http://jean-christophe.dubacq.fr/pages/Contact">by mail</a> (for a bug) or leave a comment (telling me you tested this extension) at the maintenance page. In case of an update, I will modify the maintenance page accordingly.</p></div><div class="changelog"><p>Note: this changelog is not complete, automatically generated and probably not even informative before 2009.</p><ul><li>Local SVN release 348 (jcdubacq,2009-04-22)<ul> <li>Fix documentation</li> </ul></li> <li>Local SVN release 346 (jcdubacq,2009-04-22)<ul> <li>Fix licence block, reindent</li> <li>Switch to LGPL 2.1 in order to keep the original licence</li> </ul></li> <li>Local SVN release 333 (jcdubacq,2009-04-18)<ul> <li>Allow for public path to be an absolute path, release</li> </ul></li> <li>Local SVN release 303 (jcdubacq,2009-01-27)<ul> <li>Fix locales</li> </ul></li> <li>Local SVN release 297 (jcdubacq,2009-01-26)<ul> <li>Adapt to version 0.3 of stacker (behavior initStacker)</li> </ul></li> <li>Local SVN release 292 (jcdubacq,2009-01-22)<ul> <li>Update documentation, release new version 0.6</li> </ul></li> <li>Local SVN release 259 (jcdubacq,2008-11-18)<ul> <li>Fix public url usage in admin area</li> </ul></li> <li>Local SVN release 205 (jcdubacq,2008-07-24)<ul> <li>Add documentation, new version</li> </ul></li> <li>Local SVN release 187 (jcdubacq,2008-07-09)<ul> <li>Add admin page, rewrite latexrender class to better fit the needs of DC2</li> </ul></li> <li>Local SVN release 168 (jcdubacq,2008-05-06)<ul> <li>Order plugins and themes</li> </ul></li> <li>Local SVN release 47 (jcdubacq,2008-02-15)<ul> <li>Add latexrender plugin</li> </ul></li></ul></div> 
     93<div class="bug"><h3>To tell me about a bug or helping this plugin</h3><p>The best way is to contact me <a href="http://jean-christophe.dubacq.fr/pages/Contact">by mail</a> (for a bug) or leave a comment (telling me you tested this extension) at the maintenance page. In case of an update, I will modify the maintenance page accordingly.</p></div><div class="changelog"><p>Note: this changelog is not complete, automatically generated and probably not even informative before 2009.</p><ul><li>Local SVN release 369 (jcdubacq,2009-04-30)<ul> <li> latexrender-admin2.png latexrender-admin.png latexrender-exemple.png LISEZMOI.html LISEZMOI.txt README.html README.txt Clean code</li> <li> latexrender-admin2.png latexrender-admin.png latexrender-exemple.png LISEZMOI.html LISEZMOI.txt README.html README.txt Lift for the admin backend</li> <li> latexrender-admin2.png latexrender-admin.png latexrender-exemple.png LISEZMOI.html LISEZMOI.txt README.html README.txt New screenshot</li> </ul></li> <li>Local SVN release 348 (jcdubacq,2009-04-22)<ul> <li>Fix documentation</li> </ul></li> <li>Local SVN release 346 (jcdubacq,2009-04-22)<ul> <li>Fix licence block, reindent</li> <li>Switch to LGPL 2.1 in order to keep the original licence</li> </ul></li> <li>Local SVN release 333 (jcdubacq,2009-04-18)<ul> <li>Allow for public path to be an absolute path, release</li> </ul></li> <li>Local SVN release 303 (jcdubacq,2009-01-27)<ul> <li>Fix locales</li> </ul></li> <li>Local SVN release 297 (jcdubacq,2009-01-26)<ul> <li>Adapt to version 0.3 of stacker (behavior initStacker)</li> </ul></li> <li>Local SVN release 292 (jcdubacq,2009-01-22)<ul> <li>Update documentation, release new version 0.6</li> </ul></li> <li>Local SVN release 259 (jcdubacq,2008-11-18)<ul> <li>Fix public url usage in admin area</li> </ul></li> <li>Local SVN release 205 (jcdubacq,2008-07-24)<ul> <li>Add documentation, new version</li> </ul></li> <li>Local SVN release 187 (jcdubacq,2008-07-09)<ul> <li>Add admin page, rewrite latexrender class to better fit the needs of DC2</li> </ul></li> <li>Local SVN release 168 (jcdubacq,2008-05-06)<ul> <li>Order plugins and themes</li> </ul></li> <li>Local SVN release 47 (jcdubacq,2008-02-15)<ul> <li>Add latexrender plugin</li> </ul></li></ul></div> 
    9094<h3>To do</h3> 
    9195<ul> 
  • plugins/latexrender/doc/README.txt

    r1067 r1128  
    2020=== Installation === 
    2121 
    22 Use the zipped file attached to this post.Go then to the administration area as 
    23 super-admin, and fill in the various access paths to the auxiliary programs (the 
    24 default values should be fine on most servers ; [tex]\LaTeX[/tex] and the 
    25 [3]ImageMagick set of programs are used) as well as a few other parameters. 
    26 Their meaning should be self-evident; if this is not the case, please submit a 
    27 bug report. 
     22Use the zipped file attached to this post.Go then to the administration area 
     23Plugins > LaTeXrender > Settings as super-admin, and fill in the various access 
     24paths to the auxiliary programs (the default values should be fine on most 
     25servers ; [tex]\LaTeX[/tex] and the [3]ImageMagick set of programs are used) as 
     26well as a few other parameters. Their meaning should be self-evident; if this is 
     27not the case, please submit a bug report. 
    2828 
    2929The extension requires an installation on the server of latex and the 
     
    4040considered as a bug). 
    4141 
    42 The current version of this plugin is 0.9.1 (local svn 348). 
     42The current version of this plugin is 0.9.2 (local svn 369). 
    4343 
    4444This plugin is licensed under [5]GPL version 2.0. 
     
    9595Note: this changelog is not complete, automatically generated and probably not 
    9696even informative before 2009. 
     97  * Local SVN release 369 (jcdubacq,2009-04-30) 
     98  + latexrender-admin2.png latexrender-admin.png latexrender-exemple.png 
     99LISEZMOI.html LISEZMOI.txt README.html README.txt Clean code 
     100  + latexrender-admin2.png latexrender-admin.png latexrender-exemple.png 
     101LISEZMOI.html LISEZMOI.txt README.html README.txt Lift for the admin backend 
     102  + latexrender-admin2.png latexrender-admin.png latexrender-exemple.png 
     103LISEZMOI.html LISEZMOI.txt README.html README.txt New screenshot 
    97104  * Local SVN release 348 (jcdubacq,2009-04-22) 
    98105  + Fix documentation 
  • plugins/latexrender/index.php

    r1066 r1128  
    1010# http://www.gnu.org/licenses/lgpl-2.1.html 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1213 
    13 if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1414dcPage::checkSuper(); 
    1515$commands=array('latex','dvips','convert','identify'); 
     
    4949    http::redirect($p_url.'&clean='.$core->latex->searchCache(1)); 
    5050 } 
    51 ?><html> 
    52 <head> 
    53 <title>LaTeXrender</title> 
    54 </head> 
    55 <body><?php  
    56 echo '<h2>LaTeXrender</h2>'; 
     51# default tab 
     52$default_tab = 'settings'; 
     53if (!empty($_REQUEST['tab'])) 
     54    { 
     55        switch ($_REQUEST['tab']) 
     56            { 
     57            case 'autotest' : 
     58                $default_tab = 'autotest'; 
     59                break; 
     60            } 
     61    } 
     62echo '<html><head><title>LaTeXrender</title>'; 
     63echo dcPage::jsPageTabs($default_tab); 
     64echo '</head><body>';  
     65echo '<h2>'.html::escapeHTML($core->blog->name).' &rsaquo; LaTeXrender</h2>'; 
     66$msg=''; 
    5767if (!empty($_GET['up'])) { 
    58     echo '<p class="message">'.__('Settings have been successfully updated.'). 
    59         '</p>'; 
     68    $msg=__('Settings have been successfully updated.'); 
    6069 } 
    6170if (!empty($_GET['clean'])) { 
    62     echo '<p class="message">'.__('Cache has been successfully cleaned.'). 
    63         '</p>'; 
     71    $msg=__('Cache has been successfully cleaned.'); 
    6472 } 
    65 echo '<h3>'.__('Plugin auto-test').'</h3>'; 
    66 $core->latex=new LatexRender($core); 
    67 echo '<p>'.__('The LaTeX logo should be displayed here colored in black then red:').'<ul><li>'; 
    68 echo $core->latex->getFormulaHTML('\LaTeX','000000',true); 
    69 echo '</li><li>'; 
    70 echo $core->latex->getFormulaHTML('\LaTeX','FF0000',true); 
    71 echo '</li></ul>'; 
    72 echo '<p>'.__('Files in cache:').$core->latex->searchCache(0).'</p>'; 
    73 if ($core->stacker) { 
    74     echo __('<p>The stacker extension is installed. Public display will take place.</p>'); 
    75  } else { 
    76     echo __('<p>Please install the stacker extension for public display to take place.</p>'); 
    77  } 
    78 echo '</body>'; 
    79 echo '<h3>'.__('Plugin parameters').'</h3>'; 
    80 echo '<p>'.__('Images go in the following directory:').' <tt>'. 
    81 $core->latex->_picture_path.'</tt></p>'; 
    82 echo '<p>'.__('Temp files go in the following directory:').' <tt>'. 
    83 $core->latex->_tmp_dir.'</tt></p>'; 
    84 echo '<p>'.__('Images have the following URL:').' <tt>'. 
    85 $core->latex->_picture_path_httpd.'</tt></p>'; 
     73if (!empty($msg)) {echo '<p class="message">'.$msg.'</p>';} 
     74echo '<div class="multi-part" id="settings" title="'. 
     75__('Settings').'">'; 
     76echo '<h3>'.__('Settings').'</h3>'; 
    8677echo 
    8778'<form action="'.$p_url.'" method="post">'. 
     
    10596$core->formNonce().'</p>'. 
    10697'</form>'; 
     98echo '</div>'; 
     99echo '<div class="multi-part" id="autotest" title="'. 
     100__('Plugin auto-test').'">'; 
     101echo '<h3>'.__('Plugin auto-test').'</h3>'; 
     102$core->latex=new LatexRender($core); 
     103echo '<p>'.__('The LaTeX logo should be displayed here colored in black then red:').'<ul><li>'; 
     104echo $core->latex->getFormulaHTML('\LaTeX','000000',true); 
     105echo '</li><li>'; 
     106echo $core->latex->getFormulaHTML('\LaTeX','FF0000',true); 
     107echo '</li></ul>'; 
     108echo '<p>'.__('Files in cache:').$core->latex->searchCache(0).'</p>'; 
     109if ($core->stacker) { 
     110    echo __('<p>The stacker extension is installed. Public display will take place.</p>'); 
     111 } else { 
     112    echo __('<p>Please install the stacker extension for public display to take place.</p>'); 
     113 } 
     114echo '<p>'.__('Images go in the following directory:').' <tt>'. 
     115$core->latex->_picture_path.'</tt></p>'; 
     116echo '<p>'.__('Temp files go in the following directory:').' <tt>'. 
     117$core->latex->_tmp_dir.'</tt></p>'; 
     118echo '<p>'.__('Images have the following URL:').' <tt>'. 
     119$core->latex->_picture_path_httpd.'</tt></p>'; 
     120echo '</div>'; 
    107121echo '</body>'; 
    108122?> 
  • plugins/latexrender/locales/_pot/main.pot

    r760 r1128  
    99"Project-Id-Version: latexrender plugin for Dotclear 2\n" 
    1010"Report-Msgid-Bugs-To: Jean-Christophe Dubacq <jcdubacq1@free.fr> \n" 
    11 "POT-Creation-Date: 2009-01-27 09:47+0100\n" 
     11"POT-Creation-Date: 2009-04-30 12:06+0200\n" 
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1313"Last-Translator: Jean-Christophe Dubacq <jcdubacq1@free.fr>\n" 
     
    1717"Content-Transfer-Encoding: 8bit\n" 
    1818 
    19 #: ../../index.php:14 
     19#: ../../index.php:19 
    2020msgid "Safe method" 
    2121msgstr "" 
    2222 
    23 #: ../../index.php:15 
     23#: ../../index.php:20 
    2424msgid "Colorization method" 
    2525msgstr "" 
    2626 
    27 #: ../../index.php:57 
     27#: ../../index.php:71 
    2828msgid "Cache has been successfully cleaned." 
    2929msgstr "" 
    3030 
    31 #: ../../index.php:60 
     31#: ../../index.php:75 ../../index.php:76 ../../index.php:88 
     32msgid "Settings" 
     33msgstr "" 
     34 
     35#: ../../index.php:79 
     36msgid "Utilities paths" 
     37msgstr "" 
     38 
     39#: ../../index.php:80 
     40msgid "<code>latex</code> path:" 
     41msgstr "" 
     42 
     43#: ../../index.php:81 
     44msgid "<code>dvips</code> path:" 
     45msgstr "" 
     46 
     47#: ../../index.php:82 
     48msgid "<code>convert</code> path:" 
     49msgstr "" 
     50 
     51#: ../../index.php:83 
     52msgid "<code>identify</code> path:" 
     53msgstr "" 
     54 
     55#: ../../index.php:84 
     56msgid "Security limits" 
     57msgstr "" 
     58 
     59#: ../../index.php:85 
     60msgid "Max width (pixels):" 
     61msgstr "" 
     62 
     63#: ../../index.php:86 
     64msgid "Max height (pixels):" 
     65msgstr "" 
     66 
     67#: ../../index.php:87 
     68msgid "Max length (chars):" 
     69msgstr "" 
     70 
     71#: ../../index.php:89 
     72msgid "Generation method" 
     73msgstr "" 
     74 
     75#: ../../index.php:90 
     76msgid "Formula density (dpi)" 
     77msgstr "" 
     78 
     79#: ../../index.php:91 
     80msgid "LaTeX class" 
     81msgstr "" 
     82 
     83#: ../../index.php:92 
     84msgid "Font size" 
     85msgstr "" 
     86 
     87#: ../../index.php:94 
     88msgid "return to default values" 
     89msgstr "" 
     90 
     91#: ../../index.php:95 
     92msgid "clean cache" 
     93msgstr "" 
     94 
     95#: ../../index.php:100 ../../index.php:101 
    3296msgid "Plugin auto-test" 
    3397msgstr "" 
    3498 
    35 #: ../../index.php:62 
     99#: ../../index.php:103 
    36100msgid "The LaTeX logo should be displayed here colored in black then red:" 
    37101msgstr "" 
    38102 
    39 #: ../../index.php:67 
     103#: ../../index.php:108 
    40104msgid "Files in cache:" 
    41105msgstr "" 
    42106 
    43 #: ../../index.php:69 
     107#: ../../index.php:110 
    44108msgid "" 
    45109"<p>The stacker extension is installed. Public display will take place.</p>" 
    46110msgstr "" 
    47111 
    48 #: ../../index.php:71 
     112#: ../../index.php:112 
    49113msgid "" 
    50114"<p>Please install the stacker extension for public display to take place.</p>" 
    51115msgstr "" 
    52116 
    53 #: ../../index.php:74 
    54 msgid "Plugin parameters" 
    55 msgstr "" 
    56  
    57 #: ../../index.php:75 
     117#: ../../index.php:114 
    58118msgid "Images go in the following directory:" 
    59119msgstr "" 
    60120 
    61 #: ../../index.php:77 
     121#: ../../index.php:116 
    62122msgid "Temp files go in the following directory:" 
    63123msgstr "" 
    64124 
    65 #: ../../index.php:79 
     125#: ../../index.php:118 
    66126msgid "Images have the following URL:" 
    67127msgstr "" 
    68128 
    69 #: ../../index.php:83 
    70 msgid "Utilities paths" 
    71 msgstr "" 
    72  
    73 #: ../../index.php:84 
    74 msgid "<code>latex</code> path:" 
    75 msgstr "" 
    76  
    77 #: ../../index.php:85 
    78 msgid "<code>dvips</code> path:" 
    79 msgstr "" 
    80  
    81 #: ../../index.php:86 
    82 msgid "<code>convert</code> path:" 
    83 msgstr "" 
    84  
    85 #: ../../index.php:87 
    86 msgid "<code>identify</code> path:" 
    87 msgstr "" 
    88  
    89 #: ../../index.php:88 
    90 msgid "Security limits" 
    91 msgstr "" 
    92  
    93 #: ../../index.php:89 
    94 msgid "Max width (pixels):" 
    95 msgstr "" 
    96  
    97 #: ../../index.php:90 
    98 msgid "Max height (pixels):" 
    99 msgstr "" 
    100  
    101 #: ../../index.php:91 
    102 msgid "Max length (chars):" 
    103 msgstr "" 
    104  
    105 #: ../../index.php:92 
    106 msgid "Settings" 
    107 msgstr "" 
    108  
    109 #: ../../index.php:93 
    110 msgid "Generation method" 
    111 msgstr "" 
    112  
    113 #: ../../index.php:94 
    114 msgid "Formula density (dpi)" 
    115 msgstr "" 
    116  
    117 #: ../../index.php:95 
    118 msgid "LaTeX class" 
    119 msgstr "" 
    120  
    121 #: ../../index.php:96 
    122 msgid "Font size" 
    123 msgstr "" 
    124  
    125 #: ../../index.php:98 
    126 msgid "return to default values" 
    127 msgstr "" 
    128  
    129 #: ../../index.php:99 
    130 msgid "clean cache" 
    131 msgstr "" 
    132  
    133 #: ../../_prepend.php:21 
     129#: ../../_prepend.php:28 
    134130msgid "Marks [tex]...[/tex] text as LaTeX" 
    135131msgstr "" 
  • plugins/latexrender/locales/fr/main.po

    r760 r1128  
    88"Project-Id-Version: Dotclear 2 LaTeXrender package\n" 
    99"Report-Msgid-Bugs-To: Jean-Christophe Dubacq <jcdubacq1@free.fr> \n" 
    10 "POT-Creation-Date: 2009-01-27 09:47+0100\n" 
     10"POT-Creation-Date: 2009-04-30 12:06+0200\n" 
    1111"PO-Revision-Date: 2009-01-22 16:02+0100\n" 
    1212"Last-Translator: Jean-Christophe Dubacq <jcdubacq1@free.fr>\n" 
     
    1616"Content-Transfer-Encoding: 8bit\n" 
    1717"X-Poedit-Language: French\n" 
    18  
    19 #: ../../index.php:14 
     18# 
     19# File: ../../index.php, line: 19 
     20# File: ../../index.php, line: 19 
     21# File: ../../index.php, line: 19 
    2022msgid "Safe method" 
    2123msgstr "Méthode sûre" 
    22  
    23 #: ../../index.php:15 
     24# 
     25# File: ../../index.php, line: 20 
     26# File: ../../index.php, line: 20 
     27# File: ../../index.php, line: 20 
    2428msgid "Colorization method" 
    2529msgstr "Méthode avec couleur" 
    26  
    27 #: ../../index.php:57 
     30# 
     31# File: ../../index.php, line: 71 
     32# File: ../../index.php, line: 71 
     33# File: ../../index.php, line: 71 
    2834msgid "Cache has been successfully cleaned." 
    2935msgstr "Le cache a bien été nettoyé." 
    30  
    31 #: ../../index.php:60 
     36# 
     37# File: ../../index.php, line: 75 
     38# File: ../../index.php, line: 76 
     39# File: ../../index.php, line: 88 
     40# File: ../../index.php, line: 75 
     41# File: ../../index.php, line: 76 
     42# File: ../../index.php, line: 88 
     43# File: ../../index.php, line: 75 
     44# File: ../../index.php, line: 76 
     45# File: ../../index.php, line: 88 
     46msgid "Settings" 
     47msgstr "Paramètres" 
     48# 
     49# File: ../../index.php, line: 79 
     50# File: ../../index.php, line: 79 
     51# File: ../../index.php, line: 79 
     52msgid "Utilities paths" 
     53msgstr "Emplacement des utilitaires" 
     54# 
     55# File: ../../index.php, line: 80 
     56# File: ../../index.php, line: 80 
     57# File: ../../index.php, line: 80 
     58msgid "<code>latex</code> path:" 
     59msgstr "Chemin de <code>latex</code> :" 
     60# 
     61# File: ../../index.php, line: 81 
     62# File: ../../index.php, line: 81 
     63# File: ../../index.php, line: 81 
     64msgid "<code>dvips</code> path:" 
     65msgstr "Chemin de <code>dvips</code> :" 
     66# 
     67# File: ../../index.php, line: 82 
     68# File: ../../index.php, line: 82 
     69# File: ../../index.php, line: 82 
     70msgid "<code>convert</code> path:" 
     71msgstr "Chemin de <code>convert</code> :" 
     72# 
     73# File: ../../index.php, line: 83 
     74# File: ../../index.php, line: 83 
     75# File: ../../index.php, line: 83 
     76msgid "<code>identify</code> path:" 
     77msgstr "Chemin de <code>identify</code> :" 
     78# 
     79# File: ../../index.php, line: 84 
     80# File: ../../index.php, line: 84 
     81# File: ../../index.php, line: 84 
     82msgid "Security limits" 
     83msgstr "Limites de sécurité" 
     84# 
     85# File: ../../index.php, line: 85 
     86# File: ../../index.php, line: 85 
     87# File: ../../index.php, line: 85 
     88msgid "Max width (pixels):" 
     89msgstr "Largeur maximale (pixels) :" 
     90# 
     91# File: ../../index.php, line: 86 
     92# File: ../../index.php, line: 86 
     93# File: ../../index.php, line: 86 
     94msgid "Max height (pixels):" 
     95msgstr "Hauteur maximale (pixels) :" 
     96# 
     97# File: ../../index.php, line: 87 
     98# File: ../../index.php, line: 87 
     99# File: ../../index.php, line: 87 
     100msgid "Max length (chars):" 
     101msgstr "Longueur maximale (caractères) :" 
     102# 
     103# File: ../../index.php, line: 89 
     104# File: ../../index.php, line: 89 
     105# File: ../../index.php, line: 89 
     106msgid "Generation method" 
     107msgstr "Mode de génération" 
     108# 
     109# File: ../../index.php, line: 90 
     110# File: ../../index.php, line: 90 
     111# File: ../../index.php, line: 90 
     112msgid "Formula density (dpi)" 
     113msgstr "Densité des formules (dpi)" 
     114# 
     115# File: ../../index.php, line: 91 
     116# File: ../../index.php, line: 91 
     117# File: ../../index.php, line: 91 
     118msgid "LaTeX class" 
     119msgstr "Classe LaTeX" 
     120# 
     121# File: ../../index.php, line: 92 
     122# File: ../../index.php, line: 92 
     123# File: ../../index.php, line: 92 
     124msgid "Font size" 
     125msgstr "Taille de la police" 
     126# 
     127# File: ../../index.php, line: 94 
     128# File: ../../index.php, line: 94 
     129# File: ../../index.php, line: 94 
     130msgid "return to default values" 
     131msgstr "revenir aux valeurs par défaut" 
     132# 
     133# File: ../../index.php, line: 95 
     134# File: ../../index.php, line: 95 
     135# File: ../../index.php, line: 95 
     136msgid "clean cache" 
     137msgstr "nettoyer le cache" 
     138# 
     139# File: ../../index.php, line: 100 
     140# File: ../../index.php, line: 101 
     141# File: ../../index.php, line: 100 
     142# File: ../../index.php, line: 101 
     143# File: ../../index.php, line: 100 
     144# File: ../../index.php, line: 101 
    32145msgid "Plugin auto-test" 
    33146msgstr "Auto-test de l'extension" 
    34  
    35 #: ../../index.php:62 
     147# 
     148# File: ../../index.php, line: 103 
     149# File: ../../index.php, line: 103 
     150# File: ../../index.php, line: 103 
    36151msgid "The LaTeX logo should be displayed here colored in black then red:" 
    37152msgstr "Le logo de LaTeX devrait s'afficher ici en noir, puis en rouge :" 
    38  
    39 #: ../../index.php:67 
     153# 
     154# File: ../../index.php, line: 108 
     155# File: ../../index.php, line: 108 
     156# File: ../../index.php, line: 108 
    40157msgid "Files in cache:" 
    41158msgstr "Fichiers dans le cache :" 
    42  
    43 #: ../../index.php:69 
     159# 
     160# File: ../../index.php, line: 110 
     161# File: ../../index.php, line: 110 
     162# File: ../../index.php, line: 110 
    44163msgid "" 
    45164"<p>The stacker extension is installed. Public display will take place.</p>" 
     
    47166"<p>L'extension stacker est installée. L'affichage en zone publique aura lieu." 
    48167"</p>" 
    49  
    50 #: ../../index.php:71 
     168# 
     169# File: ../../index.php, line: 112 
     170# File: ../../index.php, line: 112 
     171# File: ../../index.php, line: 112 
    51172msgid "" 
    52173"<p>Please install the stacker extension for public display to take place.</p>" 
     
    54175"<p>Installez l'extension stacker pour que l'affichage en zone publique se " 
    55176"fasse.</p>" 
    56  
    57 #: ../../index.php:74 
    58 msgid "Plugin parameters" 
    59 msgstr "Paramètres de l'extension" 
    60  
    61 #: ../../index.php:75 
     177# 
     178# File: ../../index.php, line: 114 
     179# File: ../../index.php, line: 114 
     180# File: ../../index.php, line: 114 
    62181msgid "Images go in the following directory:" 
    63182msgstr "Les images sont dans le répertoire suivant :" 
    64  
    65 #: ../../index.php:77 
     183# 
     184# File: ../../index.php, line: 116 
     185# File: ../../index.php, line: 116 
     186# File: ../../index.php, line: 116 
    66187msgid "Temp files go in the following directory:" 
    67188msgstr "Les fichiers temporaires sont dans le répertoire suivant :" 
    68  
    69 #: ../../index.php:79 
     189# 
     190# File: ../../index.php, line: 118 
     191# File: ../../index.php, line: 118 
     192# File: ../../index.php, line: 118 
    70193msgid "Images have the following URL:" 
    71194msgstr "Les images ont l'URL suivante :" 
    72  
    73 #: ../../index.php:83 
    74 msgid "Utilities paths" 
    75 msgstr "Emplacement des utilitaires" 
    76  
    77 #: ../../index.php:84 
    78 msgid "<code>latex</code> path:" 
    79 msgstr "Chemin de <code>latex</code> :" 
    80  
    81 #: ../../index.php:85 
    82 msgid "<code>dvips</code> path:" 
    83 msgstr "Chemin de <code>dvips</code> :" 
    84  
    85 #: ../../index.php:86 
    86 msgid "<code>convert</code> path:" 
    87 msgstr "Chemin de <code>convert</code> :" 
    88  
    89 #: ../../index.php:87 
    90 msgid "<code>identify</code> path:" 
    91 msgstr "Chemin de <code>identify</code> :" 
    92  
    93 #: ../../index.php:88 
    94 msgid "Security limits" 
    95 msgstr "Limites de sécurité" 
    96  
    97 #: ../../index.php:89 
    98 msgid "Max width (pixels):" 
    99 msgstr "Largeur maximale (pixels) :" 
    100  
    101 #: ../../index.php:90 
    102 msgid "Max height (pixels):" 
    103 msgstr "Hauteur maximale (pixels) :" 
    104  
    105 #: ../../index.php:91 
    106 msgid "Max length (chars):" 
    107 msgstr "Longueur maximale (caractères) :" 
    108  
    109 #: ../../index.php:92 
    110 msgid "Settings" 
    111 msgstr "Paramètres" 
    112  
    113 #: ../../index.php:93 
    114 msgid "Generation method" 
    115 msgstr "Mode de génération" 
    116  
    117 #: ../../index.php:94 
    118 msgid "Formula density (dpi)" 
    119 msgstr "Densité des formules (dpi)" 
    120  
    121 #: ../../index.php:95 
    122 msgid "LaTeX class" 
    123 msgstr "Classe LaTeX" 
    124  
    125 #: ../../index.php:96 
    126 msgid "Font size" 
    127 msgstr "Taille de la police" 
    128  
    129 #: ../../index.php:98 
    130 msgid "return to default values" 
    131 msgstr "revenir aux valeurs par défaut" 
    132  
    133 #: ../../index.php:99 
    134 msgid "clean cache" 
    135 msgstr "nettoyer le cache" 
    136  
    137 #: ../../_prepend.php:21 
     195# 
     196# File: ../../_prepend.php, line: 28 
     197# File: ../../_prepend.php, line: 28 
     198# File: ../../_prepend.php, line: 28 
    138199msgid "Marks [tex]...[/tex] text as LaTeX" 
    139200msgstr "Marque le texte [tex]...[/tex] comme étant du LaTeX" 
    140  
     201# 
    141202msgid "executable not found" 
    142203msgstr "exécutable non trouvé" 
    143  
     204# 
    144205msgid "formula too long" 
    145206msgstr "formule trop longue" 
    146  
     207# 
    147208msgid "blacklisted TeX operator" 
    148209msgstr "commande TeX interdite" 
    149  
     210# 
    150211msgid "file not moved correctly" 
    151212msgstr "fichier non déplacé correctement" 
    152  
     213# 
    153214msgid "compilation failed" 
    154215msgstr "compilation échouée" 
    155  
     216# 
    156217msgid "image too large" 
    157218msgstr "image trop grande" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map