~automne-team/automne/trunk

« back to all changes in this revision

Viewing changes to automne/phpMyAdmin/libraries/Theme.class.php

  • Committer: sebastien-pauchet
  • Date: 2012-02-15 16:47:40 UTC
  • mfrom: (363.2.105 4.2)
  • Revision ID: seb@automne-cms.org-20120215164740-xrk26iafkvztwv6s
Merge stable branch 4.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
/**
4
4
 * hold PMA_Theme class
5
5
 *
6
 
 * @version $Id$
7
6
 * @package phpMyAdmin
8
7
 */
9
8
 
145
144
     * @uses    PMA_Theme::setImgPath()
146
145
     * @uses    PMA_Theme::getName()
147
146
     * @uses    $GLOBALS['cfg']['ThemePath']
148
 
     * @uses    $GLOBALS['strThemeNoValidImgPath']
149
147
     * @uses    is_dir()
150
148
     * @uses    sprintf()
151
149
     */
159
157
            return true;
160
158
        } else {
161
159
            trigger_error(
162
 
                sprintf($GLOBALS['strThemeNoValidImgPath'], $this->getName()),
 
160
                sprintf(__('No valid image path for theme %s found!'), $this->getName()),
163
161
                E_USER_ERROR);
164
162
            return false;
165
163
        }
357
355
     * @uses    PMA_Theme::getVersion()
358
356
     * @uses    PMA_Theme::getId()
359
357
     * @uses    PMA_Theme::getPath()
360
 
     * @uses    $GLOBALS['strThemeNoPreviewAvailable']
361
 
     * @uses    $GLOBALS['strTakeIt']
362
358
     * @uses    PMA_generate_common_url()
363
359
     * @uses    addslashes()
364
360
     * @uses    file_exists()
381
377
                .' alt="' . htmlspecialchars($this->getName()) . '"'
382
378
                .' title="' . htmlspecialchars($this->getName()) . '" /><br />';
383
379
        } else {
384
 
            echo $GLOBALS['strThemeNoPreviewAvailable'];
 
380
            echo __('No preview available.');
385
381
        }
386
382
 
387
 
        echo '[ <strong>' . $GLOBALS['strTakeIt'] . '</strong> ]</a>'
 
383
        echo '[ <strong>' . __('take it') . '</strong> ]</a>'
388
384
            .'</p>'
389
385
            .'</div>';
390
386
    }