Changeset 28453 for extensions/modus


Ignore:
Timestamp:
May 13, 2014, 1:27:34 PM (11 years ago)
Author:
plg
Message:

i18n on configuration screen

remove size "default" which has no obvious meaning currently

hide info about "Full row thumbnail layout" which is hard to understand and cannot be configured (yet)

Location:
extensions/modus
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/modus/admin/admin.inc.php

    r28443 r28453  
    66include_once( dirname(dirname(__FILE__)).'/functions.inc.php');
    77$default_conf = modus_get_default_config();
     8
     9load_language('theme.lang', dirname(__FILE__).'/../');
    810
    911$my_conf = @$conf['modus_theme'];
     
    5860}
    5961
    60 $available_derivatives = array( ''=> 'Default');
     62$available_derivatives = array();
    6163foreach(array_keys(ImageStdParams::get_defined_type_map()) as $type)
    6264        $available_derivatives[$type] = l10n($type);
  • extensions/modus/admin/modus_admin.tpl

    r28443 r28453  
    5151{/footer_script}
    5252
    53 <h2>Modus theme config</h2>
     53<h2>{'Modus theme config'|translate}</h2>
    5454
    5555<form method="post" action="" id="modus-config">
    5656
    5757
    58 <fieldset><legend>Skin</legend>
     58<fieldset><legend>{'Skin'|translate}</legend>
    5959<select name="skin">
    6060                {html_options options=$available_skins selected=$SKIN}
     
    6262</fieldset>
    6363
    64 <fieldset><legend>Album thumbs size</legend>
     64<fieldset><legend>{'Album thumbnails'|translate}</legend>
    6565  <label>
    6666    <span class="graphicalCheckbox icon-check{if not $use_album_square_thumbs}-empty{/if}"></span>
     
    7777</fieldset>
    7878
    79 <fieldset><legend>Default photo sizes</legend>
     79<fieldset><legend>{'Default sizes'|translate}</legend>
    8080
    81 <label>Index Photos :
     81<label>{'Default size for thumbnails'|translate}
    8282        <select name="index_photo_deriv">
    8383                {html_options options=$available_derivatives selected=$INDEX_PHOTO_DERIV}
     
    8585</label>
    8686<br>
    87 <label>Index Photos large high density screens :
     87<label>{'Default size for thumbnails on high density display (retina)'|translate}
    8888        <select name="index_photo_deriv_hdpi">
    8989                {html_options options=$available_derivatives selected=$INDEX_PHOTO_DERIV_HDPI}
     
    9292</fieldset>
    9393
     94{*
    9495<fieldset><legend>Full row thumbnail layout</legend>
    9596Automatically applied for selected derivatives if max_width > max_height*1.5
    96 
    9797</fieldset>
     98*}
    9899
    99100<p class="formButtons">
  • extensions/modus/functions.inc.php

    r28443 r28453  
    1919        'skin' => 'dark',
    2020        'album_thumb_size' => 250,
    21   'index_photo_deriv'=>'',
    22   'index_photo_deriv_hdpi'=>'',
     21  'index_photo_deriv'=>'2small',
     22  'index_photo_deriv_hdpi'=>'xsmall',
    2323);
    2424}
  • extensions/modus/language/en_UK/theme.lang.php

    r25794 r28453  
    66$lang['%d albums'] = '%d albums';
    77
     8$lang['Modus theme config'] = 'Modus theme config';
     9$lang['Skin'] = 'Skin';
     10$lang['Album thumbnails'] = 'Album thumbnails';
     11$lang['Use square thumbs'] = 'Use square thumbs';
     12$lang['%d pixels'] = '%d pixels';
     13$lang['Default sizes'] = 'Default sizes';
     14$lang['Default size for thumbnails'] = 'Default size for thumbnails';
     15$lang['Default size for thumbnails on high density display (retina)'] = 'Default size for thumbnails on high density display (retina)';
    816?>
  • extensions/modus/language/fr_FR/theme.lang.php

    r25794 r28453  
    66$lang['%d albums'] = '%d albums';
    77
     8$lang['Modus theme config'] = 'Configuration du thème Modus';
     9$lang['Skin'] = 'Style';
     10$lang['Album thumbnails'] = 'Miniatures d\'album';
     11$lang['Use square thumbs'] = 'Utiliser des miniatures carrées';
     12$lang['%d pixels'] = '%d pixels';
     13$lang['Default sizes'] = 'Tailles par défaut';
     14$lang['Default size for thumbnails'] = 'Taille par défaut pour les miniatures';
     15$lang['Default size for thumbnails on high density display (retina)'] = 'Taille par défaut pour les miniatures sur écran haute densité (retina)';
    816?>
Note: See TracChangeset for help on using the changeset viewer.