tazpanel diff boot.cgi @ rev 504
Localize 'ISO mine' + make pot & msgmerge
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 12 13:03:50 2015 +0200 (2015-07-12) |
parents | 3117717c007d |
children | 14fdd304f33f |
line diff
1.1 --- a/boot.cgi Mon Jun 08 04:32:19 2015 +0300 1.2 +++ b/boot.cgi Sun Jul 12 13:03:50 2015 +0200 1.3 @@ -307,9 +307,9 @@ 1.4 -e s"|splashimage=.*|splashimage=$splash|" \ 1.5 $GRUBMENU 1.6 fi 1.7 - default=$(cat $GRUBMENU | grep ^default | cut -d' ' -f2) 1.8 - timeout=$(cat $GRUBMENU | grep ^timeout | cut -d' ' -f2) 1.9 - splash=$(cat $GRUBMENU | grep ^splashimage | cut -d' ' -f2) 1.10 + default=$(grep ^default $GRUBMENU | cut -d' ' -f2) 1.11 + timeout=$(grep ^timeout $GRUBMENU | cut -d' ' -f2) 1.12 + splash=$(grep ^splashimage $GRUBMENU | cut -d' ' -f2) 1.13 1.14 xhtml_header "$(_ 'GRUB Boot loader')" 1.15 cat <<EOT 1.16 @@ -385,7 +385,7 @@ 1.17 1.18 echo "<h2>$(_ 'ISO mine')</h2>" 1.19 1.20 - [ "$iso" ] || msg err 'Invalid ISO image.' 1.21 + [ "$iso" ] || msg err "$(_ 'Invalid ISO image.') 1.22 1.23 if [ "$iso" -a "$action" -a "$action" != "nop" ]; then 1.24 case "$action" in 1.25 @@ -407,17 +407,17 @@ 1.26 EOT 1.27 cat <<EOT 1.28 <table> 1.29 - <tr><td>ISO image file full path 1.30 - <span data-img="info" title="set /dev/cdrom for a physical CD-ROM"></span> 1.31 + <tr><td>$(_ 'ISO image file full path') 1.32 + <span data-img="info" title="$(_ 'set /dev/cdrom for a physical CD-ROM')"></span> 1.33 </td> 1.34 <td><input type="text" name="iso" value="$iso" size="50"/></td></tr> 1.35 - <tr><td>Working directory</td> 1.36 + <tr><td>$(_ 'Working directory')</td> 1.37 <td><input type="text" name="workdir" value="$workdir" size="50"/></td></tr> 1.38 - <tr><td>Target partition 1.39 - <span data-img="info" title="For hard disk installation only. Will create /slitaz tree and keep other files. No partitioning and no formatting."></span> 1.40 + <tr><td>$(_ 'Target partition') 1.41 + <span data-img="info" title="$(_ 'For hard disk installation only. Will create /slitaz tree and keep other files. No partitioning and no formatting.')"></span> 1.42 </td> 1.43 <td><select name="instdev"> 1.44 - <option value="/dev/null">Choose a partition (optional)</option> 1.45 + <option value="/dev/null">$(_ 'Choose a partition (optional)')</option> 1.46 EOT 1.47 blkid | grep -iE "(msdos|vfat|ntfs|ext[234]|xfs|btrfs)" | \ 1.48 sed -e 's|[A-Z]*ID="[^"]*"||g;s| SEC[^ ]*||;s|LABEL=||;s|:||' \ 1.49 @@ -428,11 +428,11 @@ 1.50 done 1.51 cat <<EOT 1.52 </select></td></tr> 1.53 - <tr><td>USB key device 1.54 - <span data-img="info" title="For USB boot key only. Will erase the full device."></span> 1.55 + <tr><td>$(_ 'USB key device') 1.56 + <span data-img="info" title="$(_ 'For USB boot key only. Will erase the full device.')"></span> 1.57 </td> 1.58 <td><select name="usbkeydev"> 1.59 - <option value="/dev/null">Choose a USB key (optional)</option> 1.60 + <option value="/dev/null">$(_ 'Choose a USB key (optional)')</option> 1.61 EOT 1.62 grep -l 1 /sys/block/*/removable | \ 1.63 sed 's|/sys/block/\(.*\)/removable|\1|' | while read dev; do 1.64 @@ -451,7 +451,7 @@ 1.65 if [ "$iso" ]; then 1.66 cat <<EOT 1.67 <select name="action"> 1.68 - <option value="nop">Choose an action</option> 1.69 + <option value="nop">$(_ 'Choose an action')</option> 1.70 $(taziso $iso list | sed -e \ 1.71 's/"\(.*\)"[\t ]*"\(.*\)"/<option value="\1\">\2<\/option>/' -e \ 1.72 "s|value=\"$action\"|& selected|") 1.73 @@ -464,7 +464,7 @@ 1.74 fi 1.75 1.76 cat <<EOT 1.77 - <button data-icon="cd" name="mine">Mine</button> 1.78 + <button data-icon="cd" name="mine">$(_ 'Mine')</button> 1.79 </footer> 1.80 </form> 1.81 </section> 1.82 @@ -527,7 +527,7 @@ 1.83 cat <<EOT 1.84 </form> 1.85 </header> 1.86 - <pre><code class="language-bash">$(cat /etc/init.d/local.sh | htmlize)</code></pre> 1.87 + <pre><code class="language-bash">$(htmlize < /etc/init.d/local.sh)</code></pre> 1.88 </section> 1.89 EOT 1.90 ;;