Просмотр исходного кода

Move blog language file to trad4all - refs #4467

Yannick Warnier 10 лет назад
Родитель
Сommit
ffc5f31f05

+ 0 - 3
main/blog/blog.php

@@ -5,9 +5,6 @@
  * This file takes care of all blog navigation and displaying.
  * @package chamilo.blogs
  */
-
-// name of the language file that needs to be included
-$language_file = "blog";
 require_once '../inc/global.inc.php';
 
 $blog_id = intval($_GET['blog_id']);

+ 0 - 3
main/blog/blog_admin.php

@@ -7,9 +7,6 @@
  *	@package chamilo.blogs
 */
 
-// name of the language file that needs to be included
-$language_file = 'blog';
-
 require_once '../inc/global.inc.php';
 $current_course_tool  = TOOL_BLOGS;
 

+ 1 - 1
main/cron/lang/langstats.php

@@ -15,7 +15,7 @@ die();
 $language_file = array(
 'gradebook', 'registration', 'admin', 'group',
 'help', 'reservation', 'hotspot',
-'blog', 'scormdocument',
+'scormdocument',
 'index', 'install', 'shibboleth',
 'learnpath', 'course_info', 'survey',
 'tracking', 'create_course',

+ 0 - 1
main/cron/lang/langstats_file_builder.php

@@ -14,7 +14,6 @@
  */
 $language_file = array(
 'admin',
-'blog',
 'course_info',
 'create_course',
 'document',

+ 3 - 3
main/inc/lib/blog.lib.php

@@ -2422,7 +2422,7 @@ class Blog
         $form = new FormValidator('add_blog', 'post', 'blog_admin.php?action=add');
         $form->addElement('header', get_lang('AddBlog'));
         $form->addElement('text', 'blog_name', get_lang('Title'));
-        $form->addElement('textarea', 'blog_subtitle', get_lang('Subtitle'));
+        $form->addElement('textarea', 'blog_subtitle', get_lang('SubTitle'));
 
         $form->addElement('hidden', 'new_blog_submit', 'true');
         $form->addElement('style_submit_button', null, get_lang('SaveProject'));
@@ -2458,7 +2458,7 @@ class Blog
         $form = new FormValidator('edit_blog', 'post','blog_admin.php?action=edit&blog_id='.intval($_GET['blog_id']));
         $form->addElement('header', get_lang('EditBlog'));
         $form->addElement('text', 'blog_name', get_lang('Title'));
-        $form->addElement('textarea', 'blog_subtitle', get_lang('Subtitle'));
+        $form->addElement('textarea', 'blog_subtitle', get_lang('SubTitle'));
 
         $form->addElement('hidden', 'edit_blog_submit', 'true');
         $form->addElement('hidden', 'blog_id', $blog['blog_id']);
@@ -2538,7 +2538,7 @@ class Blog
 			$table = new SortableTableFromArrayConfig($list_content_blog, 1,20,'project');
 			//$table->set_additional_parameters($parameters);
 			$table->set_header(0, get_lang('Title'));
-			$table->set_header(1, get_lang('Subtitle'));
+			$table->set_header(1, get_lang('SubTitle'));
 			$table->set_header(2, get_lang('Modify'));
 			$table->display();
 		}