Ticket #569 (new feature)

Opened 4 months ago

Last modified 3 months ago

Multi-lingual site + Language neutral pages

Reported by: anonymous Assigned to: ryan
Priority: normal Milestone: 2.8.x
Component: general Version: 2.6.7
Keywords: Cc:

Description

Pages can be language neutral, hence they appears whatever the language is actually chosen. (sitemap, ... )

One implement such feature by implementing a neutral language file (see below), and a minor hack within the 'class.frontend.php' --8<-----------------8<------------8<-----------------8<------------8<-----------------8<---------- class.frontend.php:83

$this.sql_where_language = " AND ( language = '".LANGUAGE."' OR language = 'NONE' );

--8<-----------------8<------------8<-----------------8<------------8<-----------------8<---------- languages/NONE.php (language file = NONE.txt) <?php

/* Legals and copyright stuff (comments striped out ) */ if(!defined('LANGUAGE_LOADED')) {

define('LANGUAGE_LOADED', true);

}

$language_code = 'NONE'; $language_name = 'Neutral language'; $language_version = '1.0'; $language_platform = '2.6.x'; $language_author = 'Jean-Marc Morin'; /* in case you wonder */ $language_license = 'GNU General Public License';

?> --8<-----------------8<------------8<-----------------8<------------8<-----------------8<------------8<-----------------8<----------

Change History

03/26/08 21:59:16 changed by Ruebenwurzel

  • milestone changed from 2.7.x to 2.8.x.