Browse Source

Replaced anywhere: VIEW_ALLTAKEN => VIEW_ALLPAST; $string['alltaken'] =>$string['allpast']. Language strings didn't replaced for de and sv language packs because of problems with some symbols in file.

MOODLE_23_STABLE
Artem Andreev 14 years ago
parent
commit
edb3bc1953
  1. 2
      lang/cs/attforblock.php
  2. 2
      lang/en/attforblock.php
  3. 2
      lang/es/attforblock.php
  4. 2
      lang/eu/attforblock.php
  5. 2
      lang/fr/attforblock.php
  6. 2
      lang/it/attforblock.php
  7. 2
      lang/ja/attforblock.php
  8. 2
      lang/ru/attforblock.php
  9. 2
      lang/sk/attforblock.php
  10. 9
      locallib.php
  11. 2
      renderer.php
  12. 9
      sessions.php

2
lang/cs/attforblock.php

@ -15,7 +15,7 @@ $string['add'] = 'Přidat';
$string['addmultiplesessions'] = 'Přidat více záznamů'; $string['addmultiplesessions'] = 'Přidat více záznamů';
$string['addsession'] = 'Přidat záznam'; $string['addsession'] = 'Přidat záznam';
$string['allcourses'] = 'Všechny kurzy'; $string['allcourses'] = 'Všechny kurzy';
$string['alltaken'] = 'Všechny proběhlé'; $string['allpast'] = 'Všechny proběhlé';
$string['attendanceforthecourse'] = 'Docházka pro kurz'; $string['attendanceforthecourse'] = 'Docházka pro kurz';
$string['attendancegrade'] = 'Hodnocení docházky'; $string['attendancegrade'] = 'Hodnocení docházky';
$string['attendancenotstarted'] = 'Docházka pro tento kurz dosud nebyla zahájena'; $string['attendancenotstarted'] = 'Docházka pro tento kurz dosud nebyla zahájena';

2
lang/en/attforblock.php

@ -16,7 +16,7 @@ $string['addmultiplesessions'] = 'Add multiple sessions';
$string['addsession'] = 'Add session'; $string['addsession'] = 'Add session';
$string['allcourses'] = 'All courses'; $string['allcourses'] = 'All courses';
$string['all'] = 'All'; $string['all'] = 'All';
$string['alltaken'] = 'All taken'; $string['allpast'] = 'All past';
$string['attendanceforthecourse'] = 'Attendance for the course'; $string['attendanceforthecourse'] = 'Attendance for the course';
$string['attendancegrade'] = 'Attendance grade'; $string['attendancegrade'] = 'Attendance grade';
$string['attendancenotstarted'] = 'Attendance has not started yet for this course'; $string['attendancenotstarted'] = 'Attendance has not started yet for this course';

2
lang/es/attforblock.php

@ -16,7 +16,7 @@ $string['add'] = 'Añadir';
$string['addmultiplesessions'] = 'Añadir varias sesiones'; $string['addmultiplesessions'] = 'Añadir varias sesiones';
$string['addsession'] = 'Añadir sesión'; $string['addsession'] = 'Añadir sesión';
$string['allcourses'] = 'Todos los cursos'; $string['allcourses'] = 'Todos los cursos';
$string['alltaken'] = 'Hasta hoy'; $string['allpast'] = 'Hasta hoy';
$string['attendanceforthecourse'] = 'Asistencia para el Curso/Asignatura'; $string['attendanceforthecourse'] = 'Asistencia para el Curso/Asignatura';
$string['attendancegrade'] = 'Puntación Asistencia'; $string['attendancegrade'] = 'Puntación Asistencia';
$string['attendancenotstarted'] = 'La Asistencia todavía no ha sido iniciada para este curso'; $string['attendancenotstarted'] = 'La Asistencia todavía no ha sido iniciada para este curso';

2
lang/eu/attforblock.php

@ -17,7 +17,7 @@ $string['acronym'] = 'Laburdura';
$string['add'] = 'Gehitu'; $string['add'] = 'Gehitu';
$string['addmultiplesessions'] = 'Hainbat saio gehitu'; $string['addmultiplesessions'] = 'Hainbat saio gehitu';
$string['addsession'] = 'Saioa gehitu'; $string['addsession'] = 'Saioa gehitu';
$string['alltaken'] = 'Erregistro guztiak'; $string['allpast'] = 'Erregistro guztiak';
$string['attendanceforthecourse'] = 'Ikastaroko asistentzia'; $string['attendanceforthecourse'] = 'Ikastaroko asistentzia';
$string['attendancegrade'] = 'Asistentzia-nota'; $string['attendancegrade'] = 'Asistentzia-nota';
$string['attendancenotstarted'] = 'Asistentzia ez da abian jarri ikastaro honetan'; $string['attendancenotstarted'] = 'Asistentzia ez da abian jarri ikastaro honetan';

2
lang/fr/attforblock.php

@ -23,7 +23,7 @@ $string['acronym'] = 'Acronyme';
$string['add'] = 'Ajouter'; $string['add'] = 'Ajouter';
$string['addmultiplesessions'] = 'Ajouter plusieurs sessions'; $string['addmultiplesessions'] = 'Ajouter plusieurs sessions';
$string['addsession'] = 'Ajouter session'; $string['addsession'] = 'Ajouter session';
$string['alltaken'] = 'Sessions passées'; $string['allpast'] = 'Sessions passées';
$string['attendanceforthecourse'] = 'Présence pour le cours'; $string['attendanceforthecourse'] = 'Présence pour le cours';
$string['attendancegrade'] = 'Note de présence'; $string['attendancegrade'] = 'Note de présence';
$string['attendancenotstarted'] = 'La prise de présence n\'a pas encore commencé pour ce cours'; $string['attendancenotstarted'] = 'La prise de présence n\'a pas encore commencé pour ce cours';

2
lang/it/attforblock.php

@ -17,7 +17,7 @@ $string['acronym'] = 'Acronimo';
$string['add'] = 'Aggiungi'; $string['add'] = 'Aggiungi';
$string['addmultiplesessions'] = 'Aggiungi Sesioni Multiple'; $string['addmultiplesessions'] = 'Aggiungi Sesioni Multiple';
$string['addsession'] = 'Aggiungi una Sessione'; $string['addsession'] = 'Aggiungi una Sessione';
$string['alltaken'] = 'Tutte registrate'; $string['allpast'] = 'Tutte registrate';
$string['attendanceforthecourse'] = 'Presenze al Corso'; $string['attendanceforthecourse'] = 'Presenze al Corso';
$string['attendancegrade'] = 'Voto di Presenza'; $string['attendancegrade'] = 'Voto di Presenza';
$string['attendancenotstarted'] = 'La registrazione delle Presenze per questo corso non è ancora iniziata'; $string['attendancenotstarted'] = 'La registrazione delle Presenze per questo corso non è ancora iniziata';

2
lang/ja/attforblock.php

@ -15,7 +15,7 @@ $string['add'] = '追加';
$string['addmultiplesessions'] = '倍数セッションを追加する'; $string['addmultiplesessions'] = '倍数セッションを追加する';
$string['addsession'] = 'セッションを追加する'; $string['addsession'] = 'セッションを追加する';
$string['allcourses'] = 'すべてのコース'; $string['allcourses'] = 'すべてのコース';
$string['alltaken'] = 'すべて'; $string['allpast'] = 'すべて';
$string['attendanceforthecourse'] = 'コースの出欠'; $string['attendanceforthecourse'] = 'コースの出欠';
$string['attendancegrade'] = '出席点'; $string['attendancegrade'] = '出席点';
$string['attendancenotstarted'] = 'このコースの出欠は、まだ開始されていません。'; $string['attendancenotstarted'] = 'このコースの出欠は、まだ開始されていません。';

2
lang/ru/attforblock.php

@ -16,7 +16,7 @@ $string['addmultiplesessions'] = 'Добавить несколько занят
$string['addsession'] = 'Добавить занятие'; $string['addsession'] = 'Добавить занятие';
$string['all'] = 'Все'; $string['all'] = 'Все';
$string['allcourses'] = 'Все курсы'; $string['allcourses'] = 'Все курсы';
$string['alltaken'] = 'Все прошедшие'; $string['allpast'] = 'Все прошедшие';
$string['attendanceforthecourse'] = 'Посещаемость для курса'; $string['attendanceforthecourse'] = 'Посещаемость для курса';
$string['attendancegrade'] = 'Оценка за посещаемость'; $string['attendancegrade'] = 'Оценка за посещаемость';
$string['attendancenotstarted'] = 'Пока нет отметок о посещаемости в данном курсе.'; $string['attendancenotstarted'] = 'Пока нет отметок о посещаемости в данном курсе.';

2
lang/sk/attforblock.php

@ -17,7 +17,7 @@ $string['acronym'] = 'Akronym';
$string['add'] = 'Pridať'; $string['add'] = 'Pridať';
$string['addmultiplesessions'] = 'Pridať viaceré termíny'; $string['addmultiplesessions'] = 'Pridať viaceré termíny';
$string['addsession'] = 'Pridať termíny'; $string['addsession'] = 'Pridať termíny';
$string['alltaken'] = 'Všetky termíny'; $string['allpast'] = 'Všetky termíny';
$string['attendanceforthecourse'] = 'Účasť pre kurz'; $string['attendanceforthecourse'] = 'Účasť pre kurz';
$string['attendancegrade'] = 'Účasť Známky'; $string['attendancegrade'] = 'Účasť Známky';
$string['attendancenotstarted'] = 'Účasť pre tento kurz nebola ešte aktivovaná'; $string['attendancenotstarted'] = 'Účasť pre tento kurz nebola ešte aktivovaná';

9
locallib.php

@ -8,7 +8,7 @@ require_once($CFG->libdir . '/gradelib.php');
define('VIEW_DAYS', 1); define('VIEW_DAYS', 1);
define('VIEW_WEEKS', 2); define('VIEW_WEEKS', 2);
define('VIEW_MONTHS', 3); define('VIEW_MONTHS', 3);
define('VIEW_ALLTAKEN', 4); define('VIEW_ALLPAST', 4);
define('VIEW_ALL', 5); define('VIEW_ALL', 5);
define('SORT_LASTNAME', 1); define('SORT_LASTNAME', 1);
@ -89,7 +89,6 @@ class attforblock_permissions {
require_capability('mod/attforblock:changepreferences', $this->context); require_capability('mod/attforblock:changepreferences', $this->context);
} }
public function can_export() { public function can_export() {
if (is_null($this->canexport)) if (is_null($this->canexport))
$this->canexport = has_capability('mod/attforblock:export', $this->context); $this->canexport = has_capability('mod/attforblock:export', $this->context);
@ -97,6 +96,10 @@ class attforblock_permissions {
return $this->canexport; return $this->canexport;
} }
public function require_export_capability() {
require_capability('mod/attforblock:export', $this->context);
}
public function can_be_listed() { public function can_be_listed() {
if (is_null($this->canbelisted)) if (is_null($this->canbelisted))
$this->canbelisted = has_capability('mod/attforblock:canbelisted', $this->context); $this->canbelisted = has_capability('mod/attforblock:canbelisted', $this->context);
@ -190,7 +193,7 @@ class att_page_with_filter_controls {
$this->startdate = make_timestamp($year, $mon); $this->startdate = make_timestamp($year, $mon);
$this->enddate = make_timestamp($year, $mon + 1); $this->enddate = make_timestamp($year, $mon + 1);
break; break;
case VIEW_ALLTAKEN: case VIEW_ALLPAST:
$this->startdate = 1; $this->startdate = 1;
$this->enddate = time(); $this->enddate = time();
break; break;

2
renderer.php

@ -126,7 +126,7 @@ class mod_attforblock_renderer extends plugin_renderer_base {
protected function render_view_controls(attforblock_filter_controls $fcontrols) { protected function render_view_controls(attforblock_filter_controls $fcontrols) {
$views[VIEW_ALL] = get_string('all', 'attforblock'); $views[VIEW_ALL] = get_string('all', 'attforblock');
$views[VIEW_ALLTAKEN] = get_string('alltaken', 'attforblock'); $views[VIEW_ALLPAST] = get_string('allpast', 'attforblock');
$views[VIEW_MONTHS] = get_string('months', 'attforblock'); $views[VIEW_MONTHS] = get_string('months', 'attforblock');
$views[VIEW_WEEKS] = get_string('weeks', 'attforblock'); $views[VIEW_WEEKS] = get_string('weeks', 'attforblock');
$views[VIEW_DAYS] = get_string('days', 'attforblock'); $views[VIEW_DAYS] = get_string('days', 'attforblock');

9
sessions.php

@ -1,5 +1,14 @@
<?php <?php
/**
* Adding attendance sessions
*
* @package mod
* @subpackage attforblock
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(__FILE__).'/../../config.php'); require_once(dirname(__FILE__).'/../../config.php');
require_once(dirname(__FILE__).'/locallib.php'); require_once(dirname(__FILE__).'/locallib.php');
require_once(dirname(__FILE__).'/add_form.php'); require_once(dirname(__FILE__).'/add_form.php');

Loading…
Cancel
Save