Dotclear

Changeset 212


Ignore:
Timestamp:
06/20/08 13:34:31 (15 years ago)
Author:
olivier
Message:

Piwik plugin update

Location:
plugins/piwik
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/piwik/index.php

    r210 r212  
    127127echo 
    128128'<form action="'.$p_url.'" method="post">'. 
     129'<fieldset><legend>'.__('Your Piwik configuration').'</legend>'. 
    129130'<p class="field"><label>'.__('Your Piwik URL:').' '. 
    130131form::field('piwik_uri',40,255,html::escapeHTML($piwik_uri)).'</label></p>'. 
     
    141142     '<p class="field"><label>'.__('Piwik website to track:').' '. 
    142143     form::combo('piwik_site',$sites_combo,$piwik_site).'</label></p>'. 
     144     '<p class="field"><label>'.__('Use fancy page names:').' '. 
     145     form::checkbox('piwik_fancy',1,$piwik_fancy).'</label></p>'. 
    143146     '<p class="field"><label for="piwik_ips">'.__('Do not track following IP addresses:').'</label> '. 
    144147     form::field('piwik_ips',50,600,$piwik_ips).'</p>'. 
    145      '<p class="field"><label>'.__('Use fancy page names:').' '. 
    146      form::checkbox('piwik_fancy',1,$piwik_fancy).'</label></p>'; 
     148     '<p>'.sprintf(__('Your current IP address is: %s'),'<strong>'.http::realIP().'</strong>').'</p>'; 
    147149} 
    148150 
    149151echo 
    150152'<p><input type="submit" value="'.__('save').'" />'. 
    151 $core->formNonce().'</p>'. 
    152 '</form>'; 
     153$core->formNonce().'</p>'; 
    153154 
    154 if ($piwik_site && $piwik_uri) 
    155 { 
    156      echo '<h3><a href="'.$piwik_uri.'">'.sprintf(__('View "%s" statistics'),html::escapeHTML($piwik_sites[$piwik_site]['name'])).'</a></h3>'; 
     155if ($piwik_site && $piwik_uri) { 
     156     echo '<p><strong><a href="'.$piwik_uri.'">'. 
     157     sprintf(__('View "%s" statistics'),html::escapeHTML($piwik_sites[$piwik_site]['name'])).'</a></strong></p>'; 
    157158} 
     159 
     160echo '</fieldset></form>'; 
    158161 
    159162if ($piwik_uri) 
    160163{ 
    161164     echo 
    162      '<h3>'.__('Create a new Piwik site for this blog').'</h3>'. 
    163165     '<form action="'.$p_url.'" method="post">'. 
     166     '<fieldset><legend>'.__('Create a new Piwik site for this blog').'</legend>'. 
    164167     '<p class="field"><label>'.__('Site name:').' '. 
    165168     form::field('site_name',40,255,$site_name).'</label></p>'. 
     
    168171     '<p><input type="submit" value="'.__('create site').'" />'. 
    169172     $core->formNonce().'</p>'. 
    170      '</form>'; 
     173     '</fieldset></form>'; 
    171174} 
    172175 
  • plugins/piwik/locales/_pot/main.pot

    r210 r212  
    88"Project-Id-Version: Dotclear 2 piwik module\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2008-06-19 18:28+0200\n" 
     10"POT-Creation-Date: 2008-06-20 13:30+0200\n" 
    1111"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1212"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    4949msgstr "" 
    5050 
    51 #: plugins-test/piwik//index.php:125 
     51#: plugins-test/piwik//index.php:125 plugins-test/piwik//index.php:129 
    5252msgid "Your Piwik configuration" 
    5353msgstr "" 
    5454 
    55 #: plugins-test/piwik//index.php:129 
     55#: plugins-test/piwik//index.php:130 
    5656msgid "Your Piwik URL:" 
    5757msgstr "" 
    5858 
    59 #: plugins-test/piwik//index.php:131 
     59#: plugins-test/piwik//index.php:132 
    6060msgid "Your Piwik Token:" 
    6161msgstr "" 
    6262 
    63 #: plugins-test/piwik//index.php:136 
     63#: plugins-test/piwik//index.php:137 
    6464msgid "Your Piwik installation is not configured yet." 
    6565msgstr "" 
    6666 
    67 #: plugins-test/piwik//index.php:141 
     67#: plugins-test/piwik//index.php:142 
    6868msgid "Piwik website to track:" 
    6969msgstr "" 
    7070 
    71 #: plugins-test/piwik//index.php:143 
     71#: plugins-test/piwik//index.php:144 
     72msgid "Use fancy page names:" 
     73msgstr "" 
     74 
     75#: plugins-test/piwik//index.php:146 
    7276msgid "Do not track following IP addresses:" 
    7377msgstr "" 
    7478 
    75 #: plugins-test/piwik//index.php:145 
    76 msgid "Use fancy page names:" 
     79#: plugins-test/piwik//index.php:148 
     80#, php-format 
     81msgid "Your current IP address is: %s" 
    7782msgstr "" 
    7883 
    79 #: plugins-test/piwik//index.php:156 
     84#: plugins-test/piwik//index.php:157 
    8085#, php-format 
    8186msgid "View \"%s\" statistics" 
    8287msgstr "" 
    8388 
    84 #: plugins-test/piwik//index.php:162 
     89#: plugins-test/piwik//index.php:166 
    8590msgid "Create a new Piwik site for this blog" 
    8691msgstr "" 
    8792 
    88 #: plugins-test/piwik//index.php:164 
     93#: plugins-test/piwik//index.php:167 
    8994msgid "Site name:" 
    9095msgstr "" 
    9196 
    92 #: plugins-test/piwik//index.php:166 
     97#: plugins-test/piwik//index.php:169 
    9398msgid "Site URL:" 
    9499msgstr "" 
    95100 
    96 #: plugins-test/piwik//index.php:168 
     101#: plugins-test/piwik//index.php:171 
    97102msgid "create site" 
    98103msgstr "" 
  • plugins/piwik/locales/fr/main.po

    r210 r212  
    77"Project-Id-Version: Dotclear 2 piwik module\n" 
    88"Report-Msgid-Bugs-To: \n" 
    9 "POT-Creation-Date: 2008-06-19 18:28+0200\n" 
    10 "PO-Revision-Date: 2008-06-19 18:28+0100\n" 
     9"POT-Creation-Date: 2008-06-20 13:30+0200\n" 
     10"PO-Revision-Date: 2008-06-20 13:31+0100\n" 
    1111"Last-Translator: Olivier Meunier <olivier@dotclear.net>\n" 
    1212"Language-Team: \n" 
     
    5656msgstr "Site Piwik à suivre :" 
    5757 
     58msgid "Use fancy page names:" 
     59msgstr "Utiliser des noms de page améliorés :" 
     60 
    5861msgid "Do not track following IP addresses:" 
    5962msgstr "Ne pas activer le suivi sur les adresses IP suivantes :" 
    6063 
    61 msgid "Use fancy page names:" 
    62 msgstr "Utiliser des noms de page améliorés :" 
     64#, php-format 
     65msgid "Your current IP address is: %s" 
     66msgstr "Votre adresse IP est actuellement : %s" 
    6367 
    6468#, php-format 
Note: See TracChangeset for help on using the changeset viewer.

Sites map