Эх сурвалжийг харах

Feature #306 - Database records have been opened for Occitan and Traditional Chinese languages.

Ivan Tcholakov 15 жил өмнө
parent
commit
626d44cffd

+ 114 - 112
main/install/dokeos_main.sql

@@ -215,7 +215,7 @@ CREATE TABLE course_field (
     field_visible tinyint default 0,
     field_changeable tinyint default 0,
     field_filter tinyint default 0,
-    tms TIMESTAMP,  
+    tms TIMESTAMP,
     PRIMARY KEY(id)
 );
 
@@ -369,6 +369,7 @@ INSERT INTO language (original_name, english_name, isocode, dokeos_folder, avail
 ('Bosanski','bosnian','bs','bosnian',1),
 ('Català','catalan','ca','catalan',0),
 ('Chinese (simplified)','simpl_chinese','zh','simpl_chinese',0),
+('Chinese (traditional)','trad_chinese','zh-TW','trad_chinese',0),
 ('Czech','czech','cs','czech',0),
 ('Dansk','danish','da','danish',0),
 ('Dari','dari','prs','dari',0),
@@ -396,6 +397,7 @@ INSERT INTO language (original_name, english_name, isocode, dokeos_folder, avail
 ('Nederlands','dutch','nl','dutch',1),
 ('Nihongo','japanese','ja','japanese',0),
 ('Norsk','norwegian','no','norwegian',0),
+('Occitan','occitan','oc','occitan',0),
 ('Pashto','pashto','ps','pashto',0),
 ('Polski','polish','pl','polish',0),
 ('Português (Portugal)','portuguese','pt','portuguese',1),
@@ -506,7 +508,7 @@ CREATE TABLE session_field (
     field_visible tinyint default 0,
     field_changeable tinyint default 0,
     field_filter tinyint default 0,
-    tms TIMESTAMP,  
+    tms TIMESTAMP,
     PRIMARY KEY(id)
 );
 
@@ -551,7 +553,7 @@ ALTER TABLE settings_current ADD UNIQUE unique_setting ( variable , subkey , cat
 
 /*!40000 ALTER TABLE settings_current DISABLE KEYS */;
 LOCK TABLES settings_current WRITE;
-INSERT INTO settings_current 
+INSERT INTO settings_current
 (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable)
 VALUES
 ('Institution',NULL,'textfield','Platform','{ORGANISATIONNAME}','InstitutionTitle','InstitutionComment','platform',NULL, 1),
@@ -640,7 +642,7 @@ VALUES
 ('service_ppt2lp', 'path_to_lzx', 'textfield', NULL, NULL, '', NULL, NULL, NULL, 0),
 ('service_ppt2lp', 'size', 'radio', NULL, '720x540', '', NULL, NULL, NULL, 0),
 ('wcag_anysurfer_public_pages', NULL, 'radio','Platform','false','PublicPagesComplyToWAITitle','PublicPagesComplyToWAIComment', NULL, NULL, 0),
-('stylesheets', NULL, 'textfield','stylesheets','dokeos_blue','',NULL, NULL, NULL, 1), 
+('stylesheets', NULL, 'textfield','stylesheets','dokeos_blue','',NULL, NULL, NULL, 1),
 ('upload_extensions_list_type', NULL, 'radio', 'Security', 'blacklist', 'UploadExtensionsListType', 'UploadExtensionsListTypeComment', NULL, NULL, 0),
 ('upload_extensions_blacklist', NULL, 'textfield', 'Security', '', 'UploadExtensionsBlacklist', 'UploadExtensionsBlacklistComment', NULL, NULL, 0),
 ('upload_extensions_whitelist', NULL, 'textfield', 'Security', 'htm;html;jpg;jpeg;gif;png;swf;avi;mpg;mpeg;mov;flv;doc;docx;xls;xlsx;ppt;pptx;odt;odp;ods;pdf', 'UploadExtensionsWhitelist', 'UploadExtensionsWhitelistComment', NULL, NULL, 0),
@@ -659,7 +661,7 @@ VALUES
 ('show_tabs', 'my_courses', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsMyCourses', 1),
 ('show_tabs', 'reporting', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsReporting', 1),
 ('show_tabs', 'platform_administration', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsPlatformAdministration', 1),
-('show_tabs', 'my_agenda', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsMyAgenda', 1), 
+('show_tabs', 'my_agenda', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsMyAgenda', 1),
 ('show_tabs', 'my_profile', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsMyProfile', 1),
 ('default_forum_view', NULL, 'radio', 'Course', 'flat', 'DefaultForumViewTitle','DefaultForumViewComment',NULL,NULL, 0),
 ('platform_charset',NULL,'textfield','Platform','iso-8859-15','PlatformCharsetTitle','PlatformCharsetComment','platform',NULL, 0),
@@ -690,7 +692,7 @@ VALUES
 ('ldap_filled_tutor_field', NULL, 'textfield', 'LDAP', 'employeenumber', 'LDAPFilledTutorFieldTitle', 'LDAPFilledTutorFieldComment', NULL, '', 0),
 ('ldap_authentication_login', NULL, 'textfield', 'LDAP', '', 'LDAPAuthenticationLoginTitle', 'LDAPAuthenticationLoginComment', NULL, '', 0),
 ('ldap_authentication_password', NULL, 'textfield', 'LDAP', '', 'LDAPAuthenticationPasswordTitle', 'LDAPAuthenticationPasswordComment', NULL, '', 0),
-('service_visio', 'visio_use_rtmpt', 'radio',null,'false', 'VisioUseRtmptTitle','VisioUseRtmptComment', NULL, NULL, 0), 
+('service_visio', 'visio_use_rtmpt', 'radio',null,'false', 'VisioUseRtmptTitle','VisioUseRtmptComment', NULL, NULL, 0),
 ('extendedprofile_registration', 'mycomptetences', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyCompetences', 0),
 ('extendedprofile_registration', 'mydiplomas', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyDiplomas', 0),
 ('extendedprofile_registration', 'myteach', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyTeach', 0),
@@ -726,7 +728,7 @@ VALUES
 ('search_enabled',NULL,'radio','Tools','false','EnableSearchTitle','EnableSearchComment',NULL,NULL,1),
 ('search_prefilter_prefix',NULL, NULL,'Search','','SearchPrefilterPrefix','SearchPrefilterPrefixComment',NULL,NULL,0),
 ('search_show_unlinked_results',NULL,'radio','Search','true','SearchShowUnlinkedResultsTitle','SearchShowUnlinkedResultsComment',NULL,NULL,1),
-('dokeos_database_version', NULL, 'textfield', NULL,'1.8.6.1.8225','DokeosDatabaseVersion','',NULL,NULL,0); 
+('dokeos_database_version', NULL, 'textfield', NULL,'1.8.6.1.8225','DokeosDatabaseVersion','',NULL,NULL,0);
 UNLOCK TABLES;
 /*!40000 ALTER TABLE settings_current ENABLE KEYS */;
 
@@ -753,7 +755,7 @@ ALTER TABLE settings_options ADD UNIQUE unique_setting_option (variable , value)
 
 /*!40000 ALTER TABLE settings_options DISABLE KEYS */;
 LOCK TABLES settings_options WRITE;
-INSERT INTO settings_options 
+INSERT INTO settings_options
 (variable, value, display_text)
 VALUES
 ('show_administrator_data','true','Yes'),
@@ -840,7 +842,7 @@ VALUES
 ('show_back_link_on_top_of_tree', 'true', 'Yes'),
 ('show_back_link_on_top_of_tree', 'false', 'No'),
 ('show_different_course_language', 'true', 'Yes'),
-('show_different_course_language', 'false', 'No'), 
+('show_different_course_language', 'false', 'No'),
 ('split_users_upload_directory', 'true', 'Yes'),
 ('split_users_upload_directory', 'false', 'No'),
 ('hide_dltt_markup', 'false', 'No'),
@@ -938,9 +940,9 @@ LOCK TABLES sys_announcement WRITE;
 UNLOCK TABLES;
 /*!40000 ALTER TABLE sys_announcement ENABLE KEYS */;
 
--- 
+--
 -- Table structure for shared_survey
--- 
+--
 
 DROP TABLE IF EXISTS shared_survey;
 CREATE TABLE shared_survey (
@@ -961,9 +963,9 @@ CREATE TABLE shared_survey (
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for shared_survey_question
--- 
+--
 
 DROP TABLE IF EXISTS shared_survey_question;
 CREATE TABLE shared_survey_question (
@@ -981,9 +983,9 @@ CREATE TABLE shared_survey_question (
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for shared_survey_question_option
--- 
+--
 
 DROP TABLE IF EXISTS shared_survey_question_option;
 CREATE TABLE shared_survey_question_option (
@@ -998,9 +1000,9 @@ CREATE TABLE shared_survey_question_option (
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for templates (User's FCKEditor templates)
--- 
+--
 
 DROP TABLE IF EXISTS templates;
 CREATE TABLE templates (
@@ -1016,13 +1018,13 @@ CREATE TABLE templates (
 
 
 
--- 
+--
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure of openid_association (keep info on openid servers)
--- 
+--
 
 DROP TABLE IF EXISTS openid_association;
 CREATE TABLE IF NOT EXISTS openid_association (
@@ -1109,7 +1111,7 @@ CREATE TABLE user_field (
 	field_visible tinyint default 0,
 	field_changeable tinyint default 0,
 	field_filter tinyint default 0,
-	tms	TIMESTAMP,	
+	tms	TIMESTAMP,
 	PRIMARY KEY(id)
 );
 DROP TABLE IF EXISTS user_field_options;
@@ -1182,7 +1184,7 @@ INSERT INTO access_url(url, description, active, created_by) VALUES ('http://loc
 DROP TABLE IF EXISTS access_url_rel_user;
 CREATE TABLE access_url_rel_user (
   access_url_id int unsigned NOT NULL,
-  user_id int unsigned NOT NULL,  
+  user_id int unsigned NOT NULL,
   PRIMARY KEY (access_url_id, user_id)
 );
 
@@ -1192,22 +1194,22 @@ ALTER TABLE access_url_rel_user ADD INDEX idx_access_url_rel_user_access_url_use
 
 DROP TABLE IF EXISTS access_url_rel_course;
 CREATE TABLE access_url_rel_course (
-  access_url_id int unsigned NOT NULL, 
-  course_code char(40) NOT NULL, 
+  access_url_id int unsigned NOT NULL,
+  course_code char(40) NOT NULL,
   PRIMARY KEY (access_url_id, course_code)
 );
 
 
 DROP TABLE IF EXISTS access_url_rel_session;
 CREATE TABLE access_url_rel_session (
-  access_url_id int unsigned NOT NULL, 
+  access_url_id int unsigned NOT NULL,
   session_id int unsigned NOT NULL,
   PRIMARY KEY (access_url_id, session_id)
 );
 
--- 
+--
 -- Table structure for table sys_calendar
--- 
+--
 CREATE TABLE IF NOT EXISTS sys_calendar (
   id int unsigned NOT NULL auto_increment,
   title varchar(200) NOT NULL,
@@ -1235,23 +1237,23 @@ INSERT INTO system_template (title, comment, image, content) VALUES
             	<style type="text/css">
             	.gris_title         	{
             		color: silver;
-            	}            	
+            	}
             	h1
             	{
             		text-align: right;
             	}
 				</style>
-  
+
             </head>
             <body>
 			<table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
 			<tbody>
-			<tr>			
+			<tr>
 			<td style="vertical-align: middle; width: 50%;" colspan="1" rowspan="1">
 				<h1>TITULUS 1<br>
 				<span class="gris_title">TITULUS 2</span><br>
 				</h1>
-			</td>			
+			</td>
 			<td style="width: 50%;">
 				<img style="width: 100px; height: 100px;" alt="dokeos logo" src="{COURSE_DIR}images/logo_dokeos.png"></td>
 			</tr>
@@ -1267,34 +1269,34 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 INSERT INTO system_template (title, comment, image, content) VALUES
 ('TemplateTitleCheckList', 'TemplateTitleCheckListDescription', 'checklist.gif', '
       <head>
-	               {CSS}	              
+	               {CSS}
 	            </head>
 	            <body>
 				<table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
 				<tbody>
 				<tr>
-				<td style="vertical-align: top; width: 66%;">						
+				<td style="vertical-align: top; width: 66%;">
 				<h3>Lorem ipsum dolor sit amet</h3>
 				<ul>
 					<li>consectetur adipisicing elit</li>
 					<li>sed do eiusmod tempor incididunt</li>
 					<li>ut labore et dolore magna aliqua</li>
 				</ul>
-				
-				<h3>Ut enim ad minim veniam</h3>							
+
+				<h3>Ut enim ad minim veniam</h3>
 				<ul>
 					<li>quis nostrud exercitation ullamco</li>
 					<li>laboris nisi ut aliquip ex ea commodo consequat</li>
 					<li>Excepteur sint occaecat cupidatat non proident</li>
 				</ul>
-				
-				<h3>Sed ut perspiciatis unde omnis</h3>				
+
+				<h3>Sed ut perspiciatis unde omnis</h3>
 				<ul>
 					<li>iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam</li>
 					<li>eaque ipsa quae ab illo inventore veritatis</li>
 					<li>et quasi architecto beatae vitae dicta sunt explicabo.&nbsp;</li>
 				</ul>
-				
+
 				</td>
 				<td style="background: transparent url({IMG_DIR}postit.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 33%; text-align: center; vertical-align: bottom;">
 				<h3>Ut enim ad minima</h3>
@@ -1316,13 +1318,13 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 ('TemplateTitleTeacher', 'TemplateTitleTeacherDescription', 'yourinstructor.gif', '
 <head>
                    {CSS}
-                   <style type="text/css">	            
+                   <style type="text/css">
 	            	.text
-	            	{	            	
+	            	{
 	            		font-weight: normal;
 	            	}
 					</style>
-                </head>                    
+                </head>
                 <body>
 					<table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
 					<tbody>
@@ -1346,7 +1348,7 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 					<p><br>
 					<br>
 					</p>
-				</body>	
+				</body>
 ');
 
 
@@ -1354,7 +1356,7 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 ('TemplateTitleLeftList', 'TemplateTitleListLeftListDescription', 'leftlist.gif', '
 <head>
 	           {CSS}
-	       </head>		    
+	       </head>
 		    <body>
 				<table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
 				<tbody>
@@ -1384,7 +1386,7 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 			<p><br>
 			<br>
 			</p>
-			</body> 
+			</body>
 ');
 
 INSERT INTO system_template (title, comment, image, content) VALUES
@@ -1434,7 +1436,7 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 			<p><br>
 			<br>
 			</p>
-			</body> 
+			</body>
 
 ');
 
@@ -1473,20 +1475,20 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 			<p><br>
 			<br>
 			</p>
-			</body>  
+			</body>
 ');
 
 /*
 INSERT INTO system_template (title, comment, image, content) VALUES
 ('TemplateTitleComparison', 'TemplateTitleComparisonDescription', 'compare.gif', '
 <head>
-            {CSS}        
+            {CSS}
             </head>
-            
+
             <body>
-            	<table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">				
+            	<table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
 				<tr>
-					<td style="height: 10%; width: 33%;"></td> 
+					<td style="height: 10%; width: 33%;"></td>
 					<td style="vertical-align: top; width: 33%;" colspan="1" rowspan="2">&nbsp;<img style="width: 180px; height: 271px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_standing.png "><br>
 					</td>
 					<td style="height: 10%; width: 33%;"></td>
@@ -1498,7 +1500,7 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 			<td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; text-align: left; width: 33%;">
 			Convallis
 			ut.&nbsp;Cras dui magna.</td>
-			</tr>			
+			</tr>
 			</body>
 ');
 */
@@ -1508,7 +1510,7 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 	<head>
 	                   {CSS}
 				    </head>
-				    
+
 					<body>
 					<table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
 					<tbody>
@@ -1533,7 +1535,7 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 					<p><br>
 					<br>
 					</p>
-					</body>				    
+					</body>
 ');
 
 INSERT INTO system_template (title, comment, image, content) VALUES
@@ -1551,7 +1553,7 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 							<br>Ut enim ad minim veniam<br><br><br>
 							<img style="width: 48px; height: 49px; float: left;" alt="03" src="{COURSE_DIR}images/small/03.png " hspace="5">Duis aute irure dolor in reprehenderit<br><br><br>
 							<img style="width: 48px; height: 49px; float: left;" alt="04" src="{COURSE_DIR}images/small/04.png " hspace="5">Neque porro quisquam est</td>
-							
+
 						<td style="vertical-align: top; width: 50%; text-align: right;" colspan="1" rowspan="1">
 							<img style="width: 300px; height: 291px;" alt="Gearbox" src="{COURSE_DIR}images/diagrams/gearbox.jpg "><br></td>
 						</tr><tr></tr>
@@ -1560,16 +1562,16 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 						<p><br>
 						<br>
 						</p>
-					</body>	
+					</body>
 ');
 
 /*
 INSERT INTO system_template (title, comment, image, content) VALUES
 ('TemplateTitleObjectives', 'TemplateTitleObjectivesDescription', 'courseobjectives.gif', '
 <head>
-	               {CSS}                    
-			    </head>	
-			    
+	               {CSS}
+			    </head>
+
 			    <body>
 					<table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
 					<tbody>
@@ -1600,7 +1602,7 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 				<p><br>
 				<br>
 				</p>
-				</body>		
+				</body>
 ');
 */
 
@@ -1613,24 +1615,24 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 	               {
 	               	color: white; font-weight: bold;
 	               }
-	               </style>                    
+	               </style>
 			    </head>
-			    	
-			    	    
+
+
 			    <body>
 				<table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="8" cellspacing="6">
 				<tbody>
 				<tr>
 					<td style="text-align: center; vertical-align: bottom; height: 10%;" colspan="3" rowspan="1">
 						<img style="width: 250px; height: 76px;" alt="arrow" src="{COURSE_DIR}images/diagrams/top_arrow.png ">
-					</td>				
-				</tr>			
+					</td>
+				</tr>
 				<tr>
 					<td style="height: 5%; width: 45%; vertical-align: top; background-color: rgb(153, 153, 153); text-align: center;">
 						<span class="title">Lorem ipsum</span>
 					</td>
-						
-					<td style="height: 5%; width: 10%;"></td>					
+
+					<td style="height: 5%; width: 10%;"></td>
 					<td style="height: 5%; vertical-align: top; background-color: rgb(153, 153, 153); text-align: center;">
 						<span class="title">Sed ut perspiciatis</span>
 					</td>
@@ -1644,7 +1646,7 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 								<li>adipisci velit, sed quia non numquam</li>
 								<li>eius modi tempora incidunt ut labore et dolore magnam</li>
 							</ul>
-				</td>			
+				</td>
 				<td style="width: 10%;"></td>
 				<td style="background-color: rgb(204, 204, 255); width: 45%; vertical-align: top;">
 					<ul>
@@ -1659,22 +1661,22 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 					<td style="height: 10%; vertical-align: top;" colspan="3" rowspan="1">
 					<img style="width: 250px; height: 76px;" alt="arrow" src="{COURSE_DIR}images/diagrams/bottom_arrow.png ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;
 				</td>
-				</tr>			
+				</tr>
 				</tbody>
 				</table>
 				<p><br>
 				<br>
 				</p>
-				</body>	
+				</body>
 ');
 
 /*
 INSERT INTO system_template (title, comment, image, content) VALUES
 ('TemplateTitleLearnerWonder', 'TemplateTitleLearnerWonderDescription', 'learnerwonder.gif', '
 <head>
-               {CSS}                    
+               {CSS}
 		    </head>
-		    
+
 		    <body>
 				<table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
 				<tbody>
@@ -1713,26 +1715,26 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 INSERT INTO system_template (title, comment, image, content) VALUES
 ('TemplateTitleTimeline', 'TemplateTitleTimelineDescription', 'phasetimeline.gif', '
 <head>
-               {CSS} 
+               {CSS}
 				<style>
 				.title
-				{				
-					font-weight: bold; text-align: center; 	
-				}			
-				</style>                
-		    </head>	
-		    
+				{
+					font-weight: bold; text-align: center;
+				}
+				</style>
+		    </head>
+
 		    <body>
 				<table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="8" cellspacing="5">
 				<tbody>
-				<tr class="title">				
+				<tr class="title">
 					<td style="vertical-align: top; height: 3%; background-color: rgb(224, 224, 224);">Lorem ipsum</td>
 					<td style="height: 3%;"></td>
 					<td style="vertical-align: top; height: 3%; background-color: rgb(237, 237, 237);">Perspiciatis</td>
 					<td style="height: 3%;"></td>
 					<td style="vertical-align: top; height: 3%; background-color: rgb(245, 245, 245);">Nemo enim</td>
 				</tr>
-				
+
 				<tr>
 					<td style="vertical-align: top; width: 30%; background-color: rgb(224, 224, 224);">
 						<ul>
@@ -1745,7 +1747,7 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 					<td>
 						<img style="width: 32px; height: 32px;" alt="arrow" src="{COURSE_DIR}images/small/arrow.png ">
 					</td>
-					
+
 					<td style="vertical-align: top; width: 30%; background-color: rgb(237, 237, 237);">
 						<ul>
 							<li>ut labore</li>
@@ -1756,7 +1758,7 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 					<td>
 						<img style="width: 32px; height: 32px;" alt="arrow" src="{COURSE_DIR}images/small/arrow.png ">
 					</td>
-					
+
 					<td style="vertical-align: top; background-color: rgb(245, 245, 245); width: 30%;">
 						<ul>
 							<li>neque porro</li>
@@ -1778,7 +1780,7 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 INSERT INTO system_template (title, comment, image, content) VALUES
 ('TemplateTitleStopAndThink', 'TemplateTitleStopAndThinkDescription', 'stopthink.gif', '
 <head>
-               {CSS}                    
+               {CSS}
 		    </head>
 		    <body>
 				<table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
@@ -1817,15 +1819,15 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 				{
 					font-weight: bold; text-align: center;
 				}
-				
+
 				.items
 				{
 					text-align: right;
-				}	
-  				
+				}
+
 
 					</style>
-  
+
 			    </head>
 			    <body>
 			    <br />
@@ -1876,18 +1878,18 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 INSERT INTO system_template (title, comment, image, content) VALUES
 ('TemplateTitleAudio', 'TemplateTitleAudioDescription', 'audiocomment.gif', '
 <head>
-               {CSS}                    
+               {CSS}
 		    </head>
                    <body>
 					<table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
 					<tbody>
 					<tr>
-					<td>					
+					<td>
 					<div align="center">
 					<span style="text-align: center;">
 						<embed  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="300" height="20" bgcolor="#FFFFFF" src="{REL_PATH}main/inc/lib/mediaplayer/player.swf" allowfullscreen="false" allowscriptaccess="always" flashvars="file={COURSE_DIR}audio/ListeningComprehension.mp3&amp;autostart=true"></embed>
-                    </span></div>     
-					
+                    </span></div>
+
 					<br>
 					</td>
 					<td colspan="1" rowspan="3"><br>
@@ -1904,7 +1906,7 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 					<p><br>
 					<br>
 					</p>
-					</body>	
+					</body>
 ');
 
 INSERT INTO system_template (title, comment, image, content) VALUES
@@ -1912,7 +1914,7 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 <head>
             	{CSS}
 			</head>
-			
+
 			<body>
 			<table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
 			<tbody>
@@ -1971,15 +1973,15 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 INSERT INTO system_template (title, comment, image, content) VALUES
 ('TemplateTitleFlash', 'TemplateTitleFlashDescription', 'flash.gif', '
 <head>
-               {CSS}                    
-		    </head>				    
+               {CSS}
+		    </head>
 		    <body>
 		    <center>
 				<table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 100%; height: 400px;" border="0" cellpadding="15" cellspacing="6">
 				<tbody>
 					<tr>
 					<td align="center">
-					<embed width="700" height="300" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="{COURSE_DIR}flash/SpinEchoSequence.swf" play="true" loop="true" menu="true"></embed></span><br /> 				          													
+					<embed width="700" height="300" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="{COURSE_DIR}flash/SpinEchoSequence.swf" play="true" loop="true" menu="true"></embed></span><br />
 					</td>
 					</tr>
 				</tbody>
@@ -1999,9 +2001,9 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 --
 
 
--- 
--- Table structure for table reservation category 
--- 
+--
+-- Table structure for table reservation category
+--
 
 CREATE TABLE reservation_category (
    id  int unsigned NOT NULL auto_increment,
@@ -2012,9 +2014,9 @@ CREATE TABLE reservation_category (
 
 -- --------------------------------------------------------
 
--- 
--- Table structure for table reservation category_rights 
--- 
+--
+-- Table structure for table reservation category_rights
+--
 
 CREATE TABLE  reservation_category_rights  (
    category_id  int NOT NULL default 0,
@@ -2024,9 +2026,9 @@ CREATE TABLE  reservation_category_rights  (
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for table  item reservation
--- 
+--
 
 CREATE TABLE  reservation_item  (
    id  int unsigned NOT NULL auto_increment,
@@ -2042,9 +2044,9 @@ CREATE TABLE  reservation_item  (
 
 -- --------------------------------------------------------
 
--- 
--- Table structure for table reservation item_rights 
--- 
+--
+-- Table structure for table reservation item_rights
+--
 
 CREATE TABLE  reservation_item_rights  (
    item_id  int unsigned NOT NULL default 0,
@@ -2058,9 +2060,9 @@ CREATE TABLE  reservation_item_rights  (
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for main reservation table
--- 
+--
 
 CREATE TABLE  reservation_main  (
    id  int unsigned NOT NULL auto_increment,
@@ -2082,9 +2084,9 @@ CREATE TABLE  reservation_main  (
 
 -- --------------------------------------------------------
 
--- 
+--
 -- Table structure for reservation subscription table
--- 
+--
 
 CREATE TABLE  reservation_subscription  (
    dummy  int unsigned NOT NULL auto_increment,
@@ -2174,7 +2176,7 @@ CREATE TABLE  legal (
   date int NOT NULL default 0,
   content text,
   type int NOT NULL,
-  changes text NOT NULL,  
+  changes text NOT NULL,
   version int,
   PRIMARY KEY (legal_id,language_id)
 );

+ 3 - 3
tests/main/inc/lib/internationalization.lib.test.php

@@ -1084,7 +1084,7 @@ class TestInternationalization extends UnitTestCase {
 			'macedonian' => 'mk',
 			'malay' => 'ms',
 			'norwegian' => 'no',
-			'occitan' => '',
+			'occitan' => 'oc',
 			'pashto' => 'ps',
 			'persian' => 'fa',
 			'polish' => 'pl',
@@ -1104,8 +1104,8 @@ class TestInternationalization extends UnitTestCase {
 			'swahili' => 'sw',
 			'swedish' => 'sv',
 			'thai' => 'th',
-			'trad_chinese' => '',
-			'trad_chinese_unicode' => '',
+			'trad_chinese' => 'zh-TW',
+			'trad_chinese_unicode' => 'zh-TW',
 			'turkce' => 'tr',
 			'ukrainian' => 'uk',
 			'vietnamese' => 'vi',