Changeset 507
- Timestamp:
- 09/29/08 18:50:09 (15 years ago)
- google:author:
- oum2013
- Location:
- plugins/dcscrobbler
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcscrobbler/_define.php
r505 r507 24 24 25 25 $this->registerModule( 26 /* Name */ 27 /* Description*/ 28 /* Author */ 29 /* Version */ '1.0.2',30 /* Permissions */ 26 /* Name */ "dcScrobbler", 27 /* Description*/ "Displays recently played tracks with Last.fm", 28 /* Author */ "Boris de Laage", 29 /* Version */ '1.0.3', 30 /* Permissions */ 'usage,contentadmin' 31 31 ); 32 32 ?> -
plugins/dcscrobbler/_public.php
r504 r507 80 80 '<p>'. 81 81 '<a href="http://www.last.fm/user/' . $uname .'">'. 82 '<img id="dcscrobblerlogo"src="' .82 '<img src="' . 83 83 $core->blog->url.$core->url->getBase('dcscrobbler-images'). 84 '/lastfm_button.png" alt=" Last.fm" />'.84 '/lastfm_button.png" alt="' . __('Last.fm profile for') . ' ' . $uname .'" title="' . __('Last.fm profile for') . ' ' . $uname .'" />'. 85 85 '</a></p>'; 86 86 } … … 108 108 return '<li><em>'.__('No recent tracks').'</em></li>'; 109 109 110 $element = '<li><a href="%s"> %s - %s</a></li>';110 $element = '<li><a href="%s"><span class="artist">%s</span> - <span class="title">%s</span></a></li>'; 111 111 foreach ($xml->track as $track) { 112 112 $out .= sprintf($element, $track->url, html::escapeHTML($track->artist), … … 121 121 return '<li><em>'.__('No data').'</em></li>'; 122 122 123 $element = '<li><a href="%s">%s</a> < em>%d</em></li>';123 $element = '<li><a href="%s">%s</a> <span class="playcount">%d</span></li>'; 124 124 foreach ($xml->artist as $artist) { 125 125 $out .= sprintf($element, $artist->url, html::escapeHTML($artist->name), -
plugins/dcscrobbler/index.php
r505 r507 53 53 } 54 54 55 http::redirect($p_url.'&rs t=1');55 http::redirect($p_url.'&rset=1'); 56 56 57 57 } … … 79 79 <head> 80 80 <title><?php echo __('dcScrobbler'); ?></title> 81 <?php echo dcPage::jsPageTabs($part); ?> 81 82 </head> 82 83 83 84 <body> 84 <h2><?php echo __('dcScrobbler'); ?></h2>85 85 <?php 86 echo '<h2>'.html::escapeHTML($core->blog->name).' > '.__('dcScrobbler').'</h2>'. 87 '<div id="settings" title="'.__('Settings').'" class="multi-part">'; 86 88 // Affichage d'un message d'erreur ou d'état si défini. 87 89 if (!empty($_GET['rset'])) … … 93 95 // Affichage du formulaire de modification des paramètres de configuration 94 96 echo 97 '<p><a style="background: url(index.php?pf=dcscrobbler/icon.png) no-repeat 0 0.25em; padding: 5px 0 5px 22px;" href="http://www.last.fm/join">'.__('Sign up on Last.fm').'</a></p>'. 95 98 '<form action="'.$p_url.'" method="post">'. 96 99 '<fieldset><legend>Configuration</legend>'. … … 117 120 form::hidden(array('p'),'dcscrobbler'). 118 121 '<p><input type="submit" name="submit" value="'.__('Restore default settings').'" />'.$core->formNonce().'</p>'. 119 '</fieldset></form>'; 122 '</fieldset></form>'. 123 '</div>'; 124 125 echo 126 '<div id="display" title="'.__('Display').'" class="multi-part">'. 127 '<h2>'.__('Display settings').' :</h2>'. 128 '<p>'.__('You can set widget display by using the following classes in your style.css file').' :</p>'. 129 '<ul style="list-style: none;"><li><strong>.dcscrobbler {}</strong> : '.__('style dcScrobbler widget').'.</li>'. 130 '<li><strong>.dcscrobbler .artist {}</strong> : '.__('style for artist name').'.</li>'. 131 '<li><strong>.dcscrobbler .title {}</strong> : '.__('style for track title').'.</li>'. 132 '<li><strong>.dcscrobbler .playcount {}</strong> : '.__('In Top Artists, style for played tracks count').'.</li></ul>'. 133 '</div>'; 134 135 echo 136 '<div id="about" title="'.__('About').'" class="multi-part">'. 137 '<h2 style="background: url(index.php?pf=dcscrobbler/icon.png) no-repeat 0 0.25em; padding: 5px 0 5px 22px; margin-left: 20px;">'.__('dcScrobbler').'</h2>'. 138 '<ul style="list-style: none; line-height: 30px; font-weight: bold;"><li>version 1.0.3</li>'. 139 '<li>'.__('Created by').' : <a href="http://bdelaage.free.fr/">Boris de Laage</a></li>'. 140 '<li>'.__('Maintained by').' : <a href="http://www.oum.fr/">Oum</a></li>'. 141 '<li>'.__('Help and Support').' : <a href="http://forum.dotclear.net/viewtopic.php?id=20711">http://forum.dotclear.net/viewtopic.php?id=20711</a></li>'. 142 '<li>'.__('Updates').' : <a href="http://dcplugins.googlecode.com/">dcPlugins</a></li>'. 143 '<li><a style="border:none;" href="http://www.audioscrobbler.net/"><img style="margin-top:20px;" src="index.php?pf=dcscrobbler/lastfm_button.png" alt="'.__('Powered by Audioscrobbler').'" title="'.__('Powered by Audioscrobbler').'"/></a></li></ul>'. 144 '</div>'; 120 145 121 146 ?> -
plugins/dcscrobbler/locales/_pot/main.pot
r505 r507 61 61 msgstr "" 62 62 63 #: plugins/dcscrobbler/_public.php:84 64 msgid "Last.fm profile for" 65 msgstr "" 66 63 67 #: plugins/dcscrobbler/_public.php:100 64 68 #: plugins/dcscrobbler/_public.php:121 … … 79 83 msgstr "" 80 84 81 #: plugins/dcscrobbler/index.php:8082 #: plugins/dcscrobbler/index.php:8483 #: plugins/dcscrobbler/_widgets.php:3084 msgid "dcScrobbler"85 msgstr ""86 87 85 #: plugins/dcscrobbler/index.php:88 88 86 msgid "Configuration has been reset to default" … … 91 89 #: plugins/dcscrobbler/index.php:91 92 90 msgid "New configuration saved" 91 msgstr "" 92 93 #: plugins/dcscrobbler/index.php:97 94 msgid "Sign up on Last.fm" 93 95 msgstr "" 94 96 … … 112 114 msgid "Restore default settings" 113 115 msgstr "" 116 117 #: plugins/dcscrobbler/index.php:126 118 msgid "Display" 119 msgstr "" 120 121 #: plugins/dcscrobbler/index.php:127 122 msgid "Display settings" 123 msgstr "" 124 125 #: plugins/dcscrobbler/index.php:128 126 msgid "You can set widget display by using the following classes in your style.css file" 127 msgstr "" 128 129 #: plugins/dcscrobbler/index.php:129 130 msgid "style dcScrobbler widget" 131 msgstr "" 132 133 #: plugins/dcscrobbler/index.php:130 134 msgid "style for artist name" 135 msgstr "" 136 137 #: plugins/dcscrobbler/index.php:131 138 msgid "style for track title" 139 msgstr "" 140 141 #: plugins/dcscrobbler/index.php:132 142 msgid "In Top Artists, style for played tracks count" 143 msgstr "" 144 145 #: plugins/dcscrobbler/index.php:139 146 msgid "Created by" 147 msgstr "" 148 149 #: plugins/dcscrobbler/index.php:140 150 msgid "Maintained by" 151 msgstr "" 152 153 #: plugins/dcscrobbler/index.php:141 154 msgid "Help and Support" 155 msgstr "" 156 157 #: plugins/dcscrobbler/index.php:142 158 msgid "Updates" 159 msgstr "" 160 161 #: plugins/dcscrobbler/index.php:143 162 msgid "Powered by Audioscrobbler" 163 msgstr "" -
plugins/dcscrobbler/locales/fr/main.po
r505 r507 9 9 "Report-Msgid-Bugs-To: \n" 10 10 "POT-Creation-Date: 2008-09-28 17:30+0200\n" 11 "PO-Revision-Date: \n"11 "PO-Revision-Date: 2008-09-29 18:45+0200\n" 12 12 "Last-Translator: Oum <oum2013@gmail.com>\n" 13 13 "Language-Team: \n" … … 64 64 msgstr "dcScrobbler n'est pas configuré" 65 65 66 #: plugins/dcscrobbler/_public.php:84 67 msgid "Last.fm profile for" 68 msgstr "Profil Last.fm de" 69 66 70 #: plugins/dcscrobbler/_public.php:100 67 71 #: plugins/dcscrobbler/_public.php:121 … … 82 86 msgstr "Durée de validité du cache" 83 87 84 #: plugins/dcscrobbler/index.php:8085 #: plugins/dcscrobbler/index.php:8486 #: plugins/dcscrobbler/_widgets.php:3087 msgid "dcScrobbler"88 msgstr "dcScrobbler"89 90 88 #: plugins/dcscrobbler/index.php:88 91 89 msgid "Configuration has been reset to default" … … 95 93 msgid "New configuration saved" 96 94 msgstr "La nouvelle configuration a été enregistrée" 95 96 #: plugins/dcscrobbler/index.php:97 97 msgid "Sign up on Last.fm" 98 msgstr "Inscription sur Last.fm" 97 99 98 100 #: plugins/dcscrobbler/index.php:103 … … 115 117 msgid "Restore default settings" 116 118 msgstr "Rétablir les valeurs par défaut" 119 120 #: plugins/dcscrobbler/index.php:126 121 msgid "Display" 122 msgstr "Affichage" 123 124 #: plugins/dcscrobbler/index.php:127 125 msgid "Display settings" 126 msgstr "Personnalisation de l'affichage" 127 128 #: plugins/dcscrobbler/index.php:128 129 msgid "You can set widget display by using the following classes in your style.css file" 130 msgstr "Vous pouvez personnaliser l'affichage du widget en utilisant les classes suivantes dans votre fichier style.css" 131 132 #: plugins/dcscrobbler/index.php:129 133 msgid "style dcScrobbler widget" 134 msgstr "style du widget dcScrobbler" 135 136 #: plugins/dcscrobbler/index.php:130 137 msgid "style for artist name" 138 msgstr "style pour le nom de l'artiste" 139 140 #: plugins/dcscrobbler/index.php:131 141 msgid "style for track title" 142 msgstr "style pour le titre de la chanson" 143 144 #: plugins/dcscrobbler/index.php:132 145 msgid "In Top Artists, style for played tracks count" 146 msgstr "dans un Top Artistes, style pour le nombre de morceaux joués" 147 148 #: plugins/dcscrobbler/index.php:139 149 msgid "Created by" 150 msgstr "Créé par" 151 152 #: plugins/dcscrobbler/index.php:140 153 msgid "Maintained by" 154 msgstr "Maintenu par" 155 156 #: plugins/dcscrobbler/index.php:141 157 msgid "Help and Support" 158 msgstr "Aide et Support" 159 160 #: plugins/dcscrobbler/index.php:142 161 msgid "Updates" 162 msgstr "Mises à jour" 163 164 #: plugins/dcscrobbler/index.php:143 165 msgid "Powered by Audioscrobbler" 166 msgstr "Propulsé par Audioscrobbler"
Note: See TracChangeset
for help on using the changeset viewer.