summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom N Harris <tnharris@whoopdedo.org>2012-07-17 19:45:48 -0400
committerTom N Harris <tnharris@whoopdedo.org>2012-07-17 19:45:48 -0400
commitb1730bd21bd9ce8807b80c4cfb044858c7af60d8 (patch)
tree9383126de598759bcf35d0f527ec026987705c55
parent71e14df475a4a212fd2a7b6efa38ef95352401f8 (diff)
downloadrpg-b1730bd21bd9ce8807b80c4cfb044858c7af60d8.tar.gz
rpg-b1730bd21bd9ce8807b80c4cfb044858c7af60d8.tar.bz2
Translatable string for "None" license selection
The position of the option was moved to the end of the list so the English label "None of the above" will make sense.
-rw-r--r--inc/lang/en/lang.php1
-rw-r--r--install.php4
2 files changed, 3 insertions, 2 deletions
diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php
index 3c51ba224..2592b9a5c 100644
--- a/inc/lang/en/lang.php
+++ b/inc/lang/en/lang.php
@@ -311,6 +311,7 @@ $lang['i_pol1'] = 'Public Wiki (read for everyone, write and uplo
$lang['i_pol2'] = 'Closed Wiki (read, write, upload for registered users only)';
$lang['i_retry'] = 'Retry';
$lang['i_license'] = 'Please choose the license you want to put your content under:';
+$lang['i_license_none'] = 'None of the above';
$lang['recent_global'] = 'You\'re currently watching the changes inside the <b>%s</b> namespace. You can also <a href="%s">view the recent changes of the whole wiki</a>.';
$lang['years'] = '%d years ago';
diff --git a/install.php b/install.php
index 488cf58ab..07e0451ea 100644
--- a/install.php
+++ b/install.php
@@ -210,12 +210,12 @@ function print_form($d){
<fieldset>
<p><?php echo $lang['i_license']?></p>
<?php
- array_unshift($license,array('name' => 'None', 'url'=>''));
+ array_push($license,array('name' => $lang['i_license_none'], 'url'=>''));
if(empty($d['license'])) $d['license'] = 'cc-by-sa';
foreach($license as $key => $lic){
echo '<label for="lic_'.$key.'">';
echo '<input type="radio" name="d[license]" value="'.htmlspecialchars($key).'" id="lic_'.$key.'"'.
- (($d['license'] == $key)?' checked="checked"':'').'>';
+ (($d['license'] === $key)?' checked="checked"':'').'>';
echo htmlspecialchars($lic['name']);
if($lic['url']) echo ' <a href="'.$lic['url'].'" target="_blank"><sup>[?]</sup></a>';
echo '</label>';