Skip to content

Commit

Permalink
Finally changed the Language files and activated new loading mechanism.
Browse files Browse the repository at this point in the history
Changes according to :
http://forum.wbce.org/viewtopic.php?id=59

No entity conversion yet.
  • Loading branch information
NorHei committed Aug 1, 2015
1 parent 54dac88 commit b0bd015
Show file tree
Hide file tree
Showing 24 changed files with 75 additions and 259 deletions.
12 changes: 6 additions & 6 deletions wbce/framework/initialize.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function makePhExp($sList)
}
}


/*
// Load Language file
if(!defined('LANGUAGE_LOADED')) {
if(!file_exists(WB_PATH.'/languages/'.LANGUAGE.'.php')) {
Expand All @@ -182,9 +182,9 @@ function makePhExp($sList)
require_once(WB_PATH.'/languages/'.LANGUAGE.'.php');
}
}
*/


/* // Load default language file so even incomplete languagefiles display at least the english text
// Load default language file so even incomplete languagefiles display at least the english text
if(!file_exists(WB_PATH.'/languages/EN.php')) {
exit('Error loading default language file (EN), please check configuration');
} else {
Expand All @@ -199,10 +199,10 @@ function makePhExp($sList)
define("LANGUAGE_LOADED", TRUE);
}

include old languages format only for compatibility need to check code for old vars*/
/*if(file_exists(WB_PATH.'/languages/old.format.inc.php')) {
//include old languages format only for compatibility need to check code for old vars
if(file_exists(WB_PATH.'/languages/old.format.inc.php')) {
include(WB_PATH.'/languages/old.format.inc.php');
}*/
}



Expand Down
15 changes: 3 additions & 12 deletions wbce/languages/BG.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@
*
*/

// Must include code to stop this file being access directly
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }

// Define that this file is loaded
if(!defined('LANGUAGE_LOADED')) {
define('LANGUAGE_LOADED', true);
}
//no direct file access
if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);}

// Set the language information
$language_code = 'BG';
Expand Down Expand Up @@ -677,8 +672,4 @@
$OVERVIEW['USERS'] = 'Управление на потребителите можещи да влязат в WebsiteBaker...';
$OVERVIEW['VIEW'] = 'Виж своя сайт в нов прозорец...';

/* include old languages format */
if(file_exists(WB_PATH.'/languages/old.format.inc.php'))
{
include(WB_PATH.'/languages/old.format.inc.php');
}

14 changes: 3 additions & 11 deletions wbce/languages/CA.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@
*
*/

// Must include code to stop this file being access directly
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }
//no direct file access
if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);}

// Define that this file is loaded
if(!defined('LANGUAGE_LOADED')) {
define('LANGUAGE_LOADED', true);
}

// Set the language information
$language_code = 'CA';
Expand Down Expand Up @@ -677,8 +673,4 @@
$OVERVIEW['USERS'] = 'Administreu els usuaris que poden identificar-se a WebsiteBaker...';
$OVERVIEW['VIEW'] = 'Veure i navegar ràpidament la vostra pàgina web en una nova finestra...';

/* include old languages format */
if(file_exists(WB_PATH.'/languages/old.format.inc.php'))
{
include(WB_PATH.'/languages/old.format.inc.php');
}

14 changes: 3 additions & 11 deletions wbce/languages/CS.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@
*
*/

// Must include code to stop this file being access directly
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }
//no direct file access
if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);}

// Define that this file is loaded
if(!defined('LANGUAGE_LOADED')) {
define('LANGUAGE_LOADED', true);
}

// Set the language information
$language_code = 'CS';
Expand Down Expand Up @@ -677,8 +673,4 @@
$OVERVIEW['USERS'] = 'Spravovat uživate WebsiteBakeru...';
$OVERVIEW['VIEW'] = 'Rychle prohlédhout stránky v novém okně...';

/* include old languages format */
if(file_exists(WB_PATH.'/languages/old.format.inc.php'))
{
include(WB_PATH.'/languages/old.format.inc.php');
}

15 changes: 3 additions & 12 deletions wbce/languages/DA.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@
*
*/

// Must include code to stop this file being access directly
if(defined('WB_PATH') == false) { exit("Du kan ikke få direkte adgang til denne fil"); }

// Define that this file is loaded
if(!defined('LANGUAGE_LOADED')) {
define('LANGUAGE_LOADED', true);
}
//no direct file access
if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);}

// Set the language information
$language_code = 'DA';
Expand Down Expand Up @@ -677,8 +672,4 @@
$OVERVIEW['USERS'] = 'Administrér brugere som kan logge ind på WebsiteBaker systemet...';
$OVERVIEW['VIEW'] = 'Hurtig visning og gennemsyn af dit Websted i et nyt vindue..';

/* include old languages format */
if(file_exists(WB_PATH.'/languages/old.format.inc.php'))
{
include(WB_PATH.'/languages/old.format.inc.php');
}

16 changes: 3 additions & 13 deletions wbce/languages/DE.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@
*
*/

// Must include code to stop this file being access directly
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }

// Define that this file is loaded
if(!defined('LANGUAGE_LOADED'))
{
define('LANGUAGE_LOADED', true);
}
//no direct file access
if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);}

// Set the language information
$language_code = 'DE';
Expand Down Expand Up @@ -674,8 +668,4 @@
$OVERVIEW['USERS'] = 'Verwaltung von Benutzern, die sich in WebsiteBaker einloggen dürfen...';
$OVERVIEW['VIEW'] = 'Ansicht Ihrer Webseite in einem neuen Fenster...';

/* include old languages format */
if(file_exists(WB_PATH.'/languages/old.format.inc.php'))
{
include(WB_PATH.'/languages/old.format.inc.php');
}

14 changes: 3 additions & 11 deletions wbce/languages/EN.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@
*
*/

// Must include code to stop this file being access directly
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }
//no direct file access
if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);}

// Define that this file is loaded
if(!defined('LANGUAGE_LOADED')) {
define('LANGUAGE_LOADED', true);
}

// Set the language information
$language_code = 'EN';
Expand Down Expand Up @@ -690,8 +686,4 @@
$MESSAGE['THEME_DESTINATION_READONLY'] = 'No rights to create new theme directory!';
$MESSAGE['THEME_IMPORT_HTT'] = 'Import additional templates into the current active theme.<br />Use these templates to overwrite the corresponding default template.';

/* include old languages format */
if(file_exists(WB_PATH.'/languages/old.format.inc.php'))
{
include(WB_PATH.'/languages/old.format.inc.php');
}

15 changes: 3 additions & 12 deletions wbce/languages/ES.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@
*
*/

// Must include code to stop this file being access directly
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }

// Define that this file is loaded
if(!defined('LANGUAGE_LOADED')) {
define('LANGUAGE_LOADED', true);
}
//no direct file access
if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);}

// Set the language information
$language_code = 'ES';
Expand Down Expand Up @@ -677,8 +672,4 @@
$OVERVIEW['USERS'] = 'Administrar acceso de usuarios a WebsiteBaker...';
$OVERVIEW['VIEW'] = 'Ver y explorar tu sitio en una nueva ventana...';

/* include old languages format */
if(file_exists(WB_PATH.'/languages/old.format.inc.php'))
{
include(WB_PATH.'/languages/old.format.inc.php');
}

14 changes: 3 additions & 11 deletions wbce/languages/ET.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@
*
*/

// Must include code to stop this file being access directly
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }
//no direct file access
if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);}

// Define that this file is loaded
if(!defined('LANGUAGE_LOADED')) {
define('LANGUAGE_LOADED', true);
}

// Set the language information
$language_code = 'ET';
Expand Down Expand Up @@ -677,8 +673,4 @@
$OVERVIEW['USERS'] = 'Halda kasutajaid kes saavad logida WebsiteBakerisse...';
$OVERVIEW['VIEW'] = 'Kiirelt vaata ja lehitse oma veebisaiti uues aknas...';

/* include old languages format */
if(file_exists(WB_PATH.'/languages/old.format.inc.php'))
{
include(WB_PATH.'/languages/old.format.inc.php');
}

15 changes: 3 additions & 12 deletions wbce/languages/FI.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@
*
*/

// Must include code to stop this file being access directly
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }

// Define that this file is loaded
if(!defined('LANGUAGE_LOADED')) {
define('LANGUAGE_LOADED', true);
}
//no direct file access
if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);}

// Set the language information
$language_code = 'FI';
Expand Down Expand Up @@ -677,8 +672,4 @@
$OVERVIEW['USERS'] = 'K&auml;ytt&auml;j&auml;hallinta...';
$OVERVIEW['VIEW'] = 'Tarkastele sivuja...';

/* include old languages format */
if(file_exists(WB_PATH.'/languages/old.format.inc.php'))
{
include(WB_PATH.'/languages/old.format.inc.php');
}

14 changes: 3 additions & 11 deletions wbce/languages/FR.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@
*
*/

// Must include code to stop this file being access directly
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }
//no direct file access
if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);}

// Define that this file is loaded
if(!defined('LANGUAGE_LOADED')) {
define('LANGUAGE_LOADED', true);
}

// Set the language information
$language_code = 'FR';
Expand Down Expand Up @@ -677,8 +673,4 @@
$OVERVIEW['USERS'] = 'Gestion des acc&egrave;s au site';
$OVERVIEW['VIEW'] = 'Aper&ccedil;u du site dans une nouvelle fen&ecirc;tre';

/* include old languages format */
if(file_exists(WB_PATH.'/languages/old.format.inc.php'))
{
include(WB_PATH.'/languages/old.format.inc.php');
}

14 changes: 3 additions & 11 deletions wbce/languages/HR.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@
*
*/

// Must include code to stop this file being access directly
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }
//no direct file access
if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);}

// Define that this file is loaded
if(!defined('LANGUAGE_LOADED')) {
define('LANGUAGE_LOADED', true);
}

// Set the language information
$language_code = 'HR';
Expand Down Expand Up @@ -677,8 +673,4 @@
$OVERVIEW['USERS'] = 'Upravljajte korisnicima koji se mogu logirati na WebsiteBaker...';
$OVERVIEW['VIEW'] = 'Brzo pogledajte i listajte Va&scaron; web u novom prozoru...';

/* include old languages format */
if(file_exists(WB_PATH.'/languages/old.format.inc.php'))
{
include(WB_PATH.'/languages/old.format.inc.php');
}

15 changes: 3 additions & 12 deletions wbce/languages/HU.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@
*
*/

// Must include code to stop this file being access directly
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }

// Define that this file is loaded
if(!defined('LANGUAGE_LOADED')) {
define('LANGUAGE_LOADED', true);
}
//no direct file access
if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);}

// Set the language information
$language_code = 'HU';
Expand Down Expand Up @@ -677,8 +672,4 @@
$OVERVIEW['USERS'] = 'Felhaszn&aacute;l&oacute;k bejelentkez&eacute;si enged&eacute;lyei...';
$OVERVIEW['VIEW'] = 'A k&eacute;sz Port&aacute;l megtekint&eacute;se &uacute;j ablakban...';

/* include old languages format */
if(file_exists(WB_PATH.'/languages/old.format.inc.php'))
{
include(WB_PATH.'/languages/old.format.inc.php');
}

14 changes: 3 additions & 11 deletions wbce/languages/IT.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@
*
*/

// Must include code to stop this file being access directly
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }
//no direct file access
if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);}

// Define that this file is loaded
if(!defined('LANGUAGE_LOADED')) {
define('LANGUAGE_LOADED', true);
}

// Set the language information
$language_code = 'IT';
Expand Down Expand Up @@ -677,8 +673,4 @@
$OVERVIEW['USERS'] = 'Gestisci gli utenti che possono collegarsi a WebsiteBaker...';
$OVERVIEW['VIEW'] = 'Visualizza il sito in una nuova finestra...';

/* include old languages format */
if(file_exists(WB_PATH.'/languages/old.format.inc.php'))
{
include(WB_PATH.'/languages/old.format.inc.php');
}

14 changes: 3 additions & 11 deletions wbce/languages/LV.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@
*
*/

// Must include code to stop this file being access directly
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }
//no direct file access
if(count(get_included_files()) ==1){$z="HTTP/1.0 404 Not Found";header($z);die($z);}

// Define that this file is loaded
if(!defined('LANGUAGE_LOADED')) {
define('LANGUAGE_LOADED', true);
}

// Set the language information
$language_code = 'LV';
Expand Down Expand Up @@ -677,8 +673,4 @@
$OVERVIEW['USERS'] = 'Mened&#382;et lietotajus, kas var ielogties WebsiteBaker sistema...';
$OVERVIEW['VIEW'] = 'Apskatit majas lapu jauna loga...';

/* include old languages format */
if(file_exists(WB_PATH.'/languages/old.format.inc.php'))
{
include(WB_PATH.'/languages/old.format.inc.php');
}

Loading

0 comments on commit b0bd015

Please sign in to comment.