aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2009-03-13 23:43:50 +0000
committerplegall <plg@piwigo.org>2009-03-13 23:43:50 +0000
commit87a7b60bed82775a58c2706e9441cbe428cbc393 (patch)
tree5874f9b424cfab205ae810baa7a4fe85735bdfc3
parentf94ff8b8e180526899e17db9f4732ff82a4a876b (diff)
merge r3196 from branch 2.0 to trunk
bug 926 fixed: change links to piwigo.org so that they go to existing URLs. new: if the current language is french, the links go to fr.piwigo.org instead. git-svn-id: http://piwigo.org/svn/trunk@3197 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/functions.php17
-rw-r--r--admin/intro.php1
-rw-r--r--admin/template/goto/footer.tpl2
-rw-r--r--admin/template/goto/intro.tpl2
-rw-r--r--include/common.inc.php9
-rw-r--r--include/constants.php3
-rw-r--r--install.php10
-rw-r--r--language/fr_FR/about.html2
-rw-r--r--language/fr_FR/help.html9
-rw-r--r--language/pl_PL/help.html5
-rw-r--r--template/yoga/footer.tpl2
-rw-r--r--tools/create_listing_file.php4
12 files changed, 34 insertions, 32 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 5fdee9684..6f41aafba 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -1741,21 +1741,14 @@ SELECT image_id
*/
function pwg_URL()
{
- global $lang_info;
$urls = array(
- 'WIKI' => 'http://'.PHPWG_DOMAIN.'/doc/',
- 'HOME' => 'http://'.PHPWG_DOMAIN.'/',
- 'DEMO' => 'http://demo.'.PHPWG_DOMAIN.'/',
- 'FORUM' => 'http://forum.'.PHPWG_DOMAIN.'/',
- 'BUGS' => 'http://bugs.'.PHPWG_DOMAIN.'/',
+ 'HOME' => 'http://'.PHPWG_DOMAIN,
+ 'WIKI' => 'http://'.PHPWG_DOMAIN.'/doc',
+ 'DEMO' => 'http://'.PHPWG_DOMAIN.'/demo',
+ 'FORUM' => 'http://'.PHPWG_DOMAIN.'/forum',
+ 'BUGS' => 'http://'.PHPWG_DOMAIN.'/bugs',
'EXTENSIONS' => 'http://'.PHPWG_DOMAIN.'/ext',
);
- if ( isset($lang_info['code']) and
- in_array($lang_info['code'], array('fr','en')) )
- { /* current wiki languages are French or English */
- $urls['WIKI'] .= 'doku.php?id='.$lang_info['code'].':'.$lang_info['code'];
- $urls['HOME'] .= '?lang='.$lang_info['code'];
- }
return $urls;
}
diff --git a/admin/intro.php b/admin/intro.php
index 9d37a1b30..98ee92f26 100644
--- a/admin/intro.php
+++ b/admin/intro.php
@@ -182,6 +182,7 @@ list($nb_comments) = mysql_fetch_row(pwg_query($query));
$template->assign(
array(
+ 'PHPWG_URL' => PHPWG_URL,
'PWG_VERSION' => PHPWG_VERSION,
'OS' => PHP_OS,
'PHP_VERSION' => phpversion(),
diff --git a/admin/template/goto/footer.tpl b/admin/template/goto/footer.tpl
index 9e0dcd85d..8c12ca190 100644
--- a/admin/template/goto/footer.tpl
+++ b/admin/template/goto/footer.tpl
@@ -15,7 +15,7 @@
*}
{'powered_by'|@translate}
- <a href="http://piwigo.org" class="Piwigo">
+ <a href="{$PHPWG_URL}" class="Piwigo">
<span class="Piwigo">Piwigo</span></a>
{$VERSION}
{if isset($CONTACT_MAIL)}
diff --git a/admin/template/goto/intro.tpl b/admin/template/goto/intro.tpl
index d9cafde2a..1c76169b8 100644
--- a/admin/template/goto/intro.tpl
+++ b/admin/template/goto/intro.tpl
@@ -4,7 +4,7 @@
<dt>{'Piwigo version'|@translate}</dt>
<dd>
<ul>
- <li><a href="http://piwigo.org" onclick="window.open(this.href, '');
+ <li><a href="{$PHPWG_URL}" onclick="window.open(this.href, '');
return false;">Piwigo</a> {$PWG_VERSION}</li>
<li><a href="{$U_CHECK_UPGRADE}">{'Check for upgrade'|@translate}</a></li>
</ul>
diff --git a/include/common.inc.php b/include/common.inc.php
index 76054153a..1ca54e1bb 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -125,6 +125,15 @@ load_plugins();
include(PHPWG_ROOT_PATH.'include/user.inc.php');
+if ('fr_FR' == $user['language']) {
+ define('PHPWG_DOMAIN', 'fr.piwigo.org');
+}
+else {
+ define('PHPWG_DOMAIN', 'piwigo.org');
+}
+define('PHPWG_URL', 'http://'.PHPWG_DOMAIN);
+define('PEM_URL', 'http://'.PHPWG_DOMAIN.'/ext');
+
// language files
load_language('common.lang');
diff --git a/include/constants.php b/include/constants.php
index 21abf49b7..7e429a91c 100644
--- a/include/constants.php
+++ b/include/constants.php
@@ -23,9 +23,6 @@
// Default settings
define('PHPWG_VERSION', 'Colibri');
-define('PHPWG_DOMAIN', 'piwigo.org');
-define('PHPWG_URL', 'http://'.PHPWG_DOMAIN);
-define('PEM_URL', 'http://'.PHPWG_DOMAIN.'/ext');
define('PHPWG_DEFAULT_LANGUAGE', 'en_UK');
define('PHPWG_DEFAULT_TEMPLATE', 'yoga/Sylvia');
diff --git a/install.php b/install.php
index 94c4d40c6..0836d6cf1 100644
--- a/install.php
+++ b/install.php
@@ -211,6 +211,14 @@ else
}
}
+if ('fr_FR' == $language) {
+ define('PHPWG_DOMAIN', 'fr.piwigo.org');
+}
+else {
+ define('PHPWG_DOMAIN', 'piwigo.org');
+}
+define('PHPWG_URL', 'http://'.PHPWG_DOMAIN);
+
load_language( 'common.lang', '', array('language'=>$language, 'target_charset'=>'utf-8') );
load_language( 'admin.lang', '', array('language'=>$language, 'target_charset'=>'utf-8') );
load_language( 'install.lang', '', array('language'=>$language, 'target_charset'=>'utf-8') );
@@ -393,7 +401,7 @@ $template->assign(
'F_DB_PREFIX' => $table_prefix,
'F_ADMIN'=>$admin_name,
'F_ADMIN_EMAIL'=>$admin_mail,
- 'L_INSTALL_HELP'=>sprintf(l10n('install_help'), 'http://forum.'.PHPWG_DOMAIN.'/'),
+ 'L_INSTALL_HELP'=>sprintf(l10n('install_help'), PHPWG_URL.'/forum'),
));
//------------------------------------------------------ errors & infos display
diff --git a/language/fr_FR/about.html b/language/fr_FR/about.html
index 15cf5e8bd..5f2036a75 100644
--- a/language/fr_FR/about.html
+++ b/language/fr_FR/about.html
@@ -5,4 +5,4 @@ une galerie d'images en ligne.</li>
données MySQL.</li>
<li>Si vous avez des suggestions ou des commentaires, visitez le <a
- href="http://piwigo.org">site officiel</a>.</li>
+ href="http://fr.piwigo.org">site officiel</a> et <a href="http://fr.piwigo.org/forum">son forum</a>.</li>
diff --git a/language/fr_FR/help.html b/language/fr_FR/help.html
index d43c20272..940aba6ab 100644
--- a/language/fr_FR/help.html
+++ b/language/fr_FR/help.html
@@ -241,12 +241,7 @@ défaut tel que désiré dans <span class="pwgScreen">Administation,
Configuration, Affichage par défaut</span>. En effet, chaque nouvel
utilisateur héritera de ces propriétés d'affichage.</li>
- <li>Pour tout question, n'hésitez pas à visiter le forum ou à y poser une
-question si votre recherche est infructueuse. Le
-<a href="http://forum.phpwebgallery.net">forum</a> est disponible sur le site
- de Piwigo. Consulter également la
-<a href="http://phpwebgallery.net/doc">documentation officielle de
-Piwigo</a> pour obtenir plus de détails.</li>
+ <li>Pour tout question, la communauté francophone Piwigo est à l'écoute sur le <a href="http://fr.piwigo.org/forum">forum</a>.</li>
</ul>
-</div> \ No newline at end of file
+</div>
diff --git a/language/pl_PL/help.html b/language/pl_PL/help.html
index cd216f62e..52f3dd853 100644
--- a/language/pl_PL/help.html
+++ b/language/pl_PL/help.html
@@ -286,11 +286,10 @@ liter cyfr, znaków "-", "_" lub ".". Nie mogą zawierać spacji oraz pozostały
<li>ak tylko utworzysz galerię, zmień domyślne wyświetlanie w <span class="pwgScreen">Administracja &raquo; Konfigracja &raquo;
Domyślne</span>. Jeżeli tak zrobisz każdy nowy użytkownik będzie miał taki sam domyślny wygląd stron galerii.</li>
- <li>Jeżeli masz pytania, społeczność Piwigo zaprasza Cię na forum <a
- href="http://forum.phpwebgallery.net"></a>.</li>
+ <li>Jeżeli masz pytania, społeczność Piwigo zaprasza Cię na <a href="http://piwigo.org/forum">forum</a>.</li>
</ul>
</div> <!-- misc_content -->
</div> <!-- instructionMisc -->
-</div> \ No newline at end of file
+</div>
diff --git a/template/yoga/footer.tpl b/template/yoga/footer.tpl
index fdc0c92cf..c7a83eef3 100644
--- a/template/yoga/footer.tpl
+++ b/template/yoga/footer.tpl
@@ -11,7 +11,7 @@
*}
{'powered_by'|@translate}
- <a href="http://piwigo.org" class="Piwigo">
+ <a href="{$PHPWG_URL}" class="Piwigo">
<span class="Piwigo">Piwigo</span></a>
{$VERSION}
{if isset($CONTACT_MAIL)}
diff --git a/tools/create_listing_file.php b/tools/create_listing_file.php
index bfdb69ea7..88c5975a5 100644
--- a/tools/create_listing_file.php
+++ b/tools/create_listing_file.php
@@ -31,7 +31,7 @@ $conf['version'] = 'Colibri';
// URL of main gallery
// Example : http://www.my.domain/my/directory
-$conf['gallery'] = 'http://demo.piwigo.net/';
+$conf['gallery'] = 'http://piwigo.org/demo';
// prefix for thumbnails in "thumbnail" sub directories
$conf['prefix_thumbnail'] = 'TN-';
@@ -1688,7 +1688,7 @@ if ($_SESSION['scan_step'] == 'exit')
</fieldset>
<fieldset class="footer">
<div class="pwg_block">
- Powered by <a href="http://piwigo.org" class="pwg"><span class="p">Pi</span><span class="w">wi</span><span class="g">go</span></a>
+ Powered by <a href="http://piwigo.org" class="pwg">Piwigo</a>
</div>
<?php echo $g_footer; ?>
</fieldset>