aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-05-08 20:32:36 +0000
committerplegall <plg@piwigo.org>2010-05-08 20:32:36 +0000
commitf34bce6847674beef238fabe4131535929a3f806 (patch)
treecff4cf4f2f42c8e997adc4f7beac590c4c3ab50f
parentf1c5936f8b8b5ee4ca8aaeff156d15d6ed657a41 (diff)
add a warning about SQLite/PostgreSQL: they are currently in "experimental"
state. git-svn-id: http://piwigo.org/svn/trunk@6128 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/themes/default/template/install.tpl30
-rw-r--r--language/en_UK/install.lang.php2
-rw-r--r--language/fr_FR/install.lang.php4
3 files changed, 34 insertions, 2 deletions
diff --git a/admin/themes/default/template/install.tpl b/admin/themes/default/template/install.tpl
index 99937a670..1c0a1042a 100644
--- a/admin/themes/default/template/install.tpl
+++ b/admin/themes/default/template/install.tpl
@@ -20,6 +20,10 @@ $(function() {
if ($option_selected=='sqlite' || $option_selected=='pdo-sqlite') {
$('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().hide();
}
+ if ($option_selected=='mysql') {
+ $('#experimentalDbEngines').hide();
+ }
+
$('#dblayer').change(function() {
$db = this;
if ($db.value=='sqlite' || $db.value=='pdo-sqlite') {
@@ -27,8 +31,23 @@ $(function() {
} else {
$('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().show();
}
+
+ if ($db.value=='mysql') {
+ $('#experimentalDbEngines').hide();
+ }
+ else {
+ $('#experimentalDbEngines').show();
+ }
});
});
+
+$(document).ready(function() {
+ $("a.externalLink").click(function() {
+ window.open($(this).attr("href"));
+ return false;
+ });
+});
+
</script>
<style type="text/css">
@@ -71,9 +90,10 @@ body {
text-transform:none;
}
-.table2 {
+table.table2 {
width: 100%;
margin-bottom: 1em !important;
+ border:0;
}
TD {
@@ -101,6 +121,8 @@ TD {
background-image:url(admin/themes/default/icon/errors.png);
background-repeat:no-repeat;
}
+
+#experimentalDbEngines TD {border:2px solid #666;background-color:#444; color:#ccc;}
</style>
{/literal}
<title>Piwigo {$RELEASE} - {'Installation'|@translate}</title>
@@ -194,6 +216,12 @@ TD {
</td>
{/if}
</tr>
+ <tr id="experimentalDbEngines">
+ <td colspan="3">
+ {'SQLite and PostgreSQL are currently in experimental state.'|@translate}
+ <a href="http://piwigo.org/forum/viewtopic.php?id=15927" class="externalLink">{'Learn more'|@translate}</a>
+ </td>
+ </tr>
<tr>
<td style="width: 30%;">{'Host'|@translate}</td>
<td align=center><input type="text" name="dbhost" value="{$F_DB_HOST}"></td>
diff --git a/language/en_UK/install.lang.php b/language/en_UK/install.lang.php
index 433333d41..9411eeb8c 100644
--- a/language/en_UK/install.lang.php
+++ b/language/en_UK/install.lang.php
@@ -70,4 +70,6 @@ $lang['An alternate solution is to copy the text in the box above and paste it i
$lang['Creation of config file local/config/database.inc.php failed.'] = 'Creation of config file local/config/database.inc.php failed.';
$lang['Download the config file'] = 'Download the config file';
$lang['You can download the config file and upload it to local/config directory of your installation.'] = 'You can download the config file and upload it to local/config directory of your installation.';
+$lang['SQLite and PostgreSQL are currently in experimental state.'] = 'SQLite and PostgreSQL are currently in experimental state.';
+$lang['Learn more'] = 'Learn more';
?>
diff --git a/language/fr_FR/install.lang.php b/language/fr_FR/install.lang.php
index 8b94bb3b4..17890fab8 100644
--- a/language/fr_FR/install.lang.php
+++ b/language/fr_FR/install.lang.php
@@ -71,4 +71,6 @@ $lang['An alternate solution is to copy the text in the box above and paste it i
$lang['Creation of config file local/config/database.inc.php failed.'] = 'La création du fichier de configuration local/config/database.inc.php a échoué.';
$lang['Download the config file'] = 'Télécharger le fichier de configuration';
$lang['You can download the config file and upload it to local/config directory of your installation.'] = 'Vous pouvez télécharger le fichier de configuration et le transférer dans le répertoire local/config de votre installation Piwigo.';
-?> \ No newline at end of file
+$lang['SQLite and PostgreSQL are currently in experimental state.'] = 'Les types SQLite et PostgreSQL sont actuellement en phase expérimentale.';
+$lang['Learn more'] = 'En savoir plus';
+?>