CONTRIB-2232 oops, merging all changes from 1.9.x first
authorPetr Skoda <info@skodak.org>
Sun, 1 Aug 2010 13:10:36 +0000 (13:10 +0000)
committerPetr Skoda <info@skodak.org>
Sun, 1 Aug 2010 13:10:36 +0000 (13:10 +0000)
57 files changed:
README.txt
backuplib.php
coursefiles.php
db/mysql.php
db/postgres7.php
db/upgrade.php
delete.php
edit.php
edit_form.php
generateimscp.php
import.php
import_form.php
index.php
lang/be_utf8/book.php
lang/ca_utf8/book.php
lang/cs_utf8/book.php
lang/de_utf8/book.php
lang/de_utf8/help/book/customtitles.html
lang/de_utf8/help/book/disableprinting.html
lang/de_utf8/help/book/edit.html
lang/de_utf8/help/book/faq.html
lang/de_utf8/help/book/import.html
lang/de_utf8/help/book/index.html
lang/de_utf8/help/book/mods.html
lang/de_utf8/help/book/numberingtype.html
lang/de_utf8/help/book/summary.html
lang/en_utf8/book.php
lang/es_utf8/book.php
lang/fi_utf8/book.php
lang/id_utf8/book.php
lang/it_utf8/book.php
lang/ja_utf8/book.php
lang/nl_utf8/book.php
lang/pl_utf8/book.php
lang/pt_br_utf8/book.php
lang/sk_utf8/book.php
lang/sl_utf8/book.php [new file with mode: 0644]
lang/sl_utf8/help/book/customtitles.html [new file with mode: 0644]
lang/sl_utf8/help/book/disableprinting.html [new file with mode: 0644]
lang/sl_utf8/help/book/edit.html [new file with mode: 0644]
lang/sl_utf8/help/book/faq.html [new file with mode: 0644]
lang/sl_utf8/help/book/import.html [new file with mode: 0644]
lang/sl_utf8/help/book/index.html [new file with mode: 0644]
lang/sl_utf8/help/book/mods.html [new file with mode: 0644]
lang/sl_utf8/help/book/numberingtype.html [new file with mode: 0644]
lang/sl_utf8/help/book/summary.html [new file with mode: 0644]
lang/sv_utf8/book.php
lib.php
move.php
print.php
restorelib.php
settings.php
show.php
teacheraccess.php
toc.php
version.php
view.php

index 6e6909c..6b1276b 100644 (file)
@@ -1,5 +1,3 @@
-$Id: README.txt,v 1.6 2008/08/13 23:21:14 skodak Exp $
-
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // NOTICE OF COPYRIGHT                                                   //
@@ -12,7 +10,7 @@ $Id: README.txt,v 1.6 2008/08/13 23:21:14 skodak Exp $
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // Book module original code                                             //
-// Copyright (C) 2004  Petr Skoda (petr.skoda@vslib.cz)                  //
+// Copyright (C) 2004  Petr Skoda (info@skodak.org)                      //
 //                                                                       //
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -30,7 +28,7 @@ $Id: README.txt,v 1.6 2008/08/13 23:21:14 skodak Exp $
 //                                                                       //
 ///////////////////////////////////////////////////////////////////////////
 
-Book module for Moodle - version 1.2 (stable release)
+Book module for Moodle - version 1.5 (stable release)
 ===============================================================================
 Created by:
       Petr Skoda (skodak) - most of the coding & design
@@ -42,7 +40,7 @@ Many ideas and code were taken from other Moodle modules and Moodle itself;-)
 Installation:
     * see http://docs.moodle.org/en/Installing_contributed_modules_or_plugins
 
-List of features - version 1.4:
+List of features - version 1.5:
 
     * easy to use - new teachers can quickly create multipage study materials
     * two levels - only chapters and subchapters
@@ -116,5 +114,9 @@ CHANGELOG:
     * formslib conversion
     * capabilities implemented
     * no new features
+== 1.5 2009/11/11 ============================================================
+    * minor cleanup
+    * new Slovenian language pack - thanks Mitja Podreka
+    * updated German Language pack - thanks Ralf Hilgenstock 
 
 skodak
index b6da903..3b9f5df 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
     //This php script contains all the stuff to backup/restore
     //book mods
 
 
          return $info;
     }
-
index 8d84521..c5400ce 100644 (file)
@@ -912,3 +912,4 @@ function displaydir ($wdir) {
     //echo "<hr width=\"640\" align=\"center\" noshade=\"noshade\" size=\"1\" />";
 
 }
+
index ff6c7fc..56d3677 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 function book_upgrade($oldversion) {
 /// This function does anything necessary to upgrade
index e0dc846..a1b6e7a 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 function book_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index a0eea5e..a85e9d8 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php  //$Id: upgrade.php,v 1.6 2010/08/01 13:10:36 skodak Exp $
 
 // This file keeps track of upgrades to
 // the assignment module
index 74e57c7..e21fe24 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 require('teacheraccess.php'); //page only for teachers
 $confirm = optional_param('confirm', 0, PARAM_BOOL);
@@ -52,4 +52,3 @@ if ($confirm) {  // the operation was confirmed.
 }
 
 print_footer($course);
-
index 2eb36a9..393cb6b 100644 (file)
--- a/edit.php
+++ b/edit.php
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 require_once('../../config.php');
 require_once('lib.php');
@@ -121,3 +121,4 @@ print_heading_with_help($pageheading, 'edit', 'book', $icon);
 $mform->display();
 
 print_footer($course);
+
index 0efb8f5..93b7fa8 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php  //$Id: edit_form.php,v 1.3 2010/08/01 13:10:37 skodak Exp $
 
 require_once($CFG->libdir.'/formslib.php');
 
@@ -49,3 +49,5 @@ class book_chapter_edit_form extends moodleform {
         }
     }
 }
+
+?>
index 47f0fc2..4068cb1 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
index bcc48f8..07a4c5e 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 require('../../config.php');
 require_once('lib.php');
index 74f2a3c..dbe88bd 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php  //$Id: import_form.php,v 1.3 2010/08/01 13:10:37 skodak Exp $
 
 require_once($CFG->libdir.'/formslib.php');
 
index 9bb5925..74e6b5e 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 /// This page lists all the instances of book in a particular course
 
@@ -99,3 +99,4 @@ echo '<br />';
 print_table($table);
 
 print_footer($course);
+
index 47c1774..da69c25 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
       // book.php - created with Moodle 1.4.4 (2004083140)
 
 
@@ -38,4 +38,3 @@ $string['subchapter'] = 'Параграф';
 $string['toc'] = 'Змест';
 $string['tocwidth'] = 'Вызначыць шырыню зместу для ўсіх падручнікаў';
 $string['top'] = 'наверх';
-
index 217b5ad..b89826e 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 $string['modulename'] = 'Llibre';
 $string['modulenameplural'] = 'Llibres';
index 2a42824..70e6458 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
       // book.php - created with Moodle 1.3.3 + (2004052503)
 
 
index 59db5bf..122ac9a 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 $string['modulename'] = 'Buch';
 $string['modulenameplural'] = 'Bücher';
@@ -45,4 +45,3 @@ $string['relinking'] = 'Verlinken';
 $string['importinfo'] = 'Importiert die gewählten HTML Dateien oder Ordner.<br />Kapitel sind alphabetisch nach den Dateinamen sortiert.';
 $string['maindirectory'] = 'Hauptordner';
 $string['fileordir'] = 'Datei oder Ordner';
-
index 7aa14ab..94b0b39 100644 (file)
@@ -1,3 +1 @@
-<p align=center><b>Eigene Titel</b></p>
-
-<p>Kapiteltitel werden automatisch nur in der TOC angezeigt.</p>
+<h2>Titel der Kapitel</h2><p>Kapiteltitel werden automatisch im Inhaltsverzeichnis angezeigt.</p>
\ No newline at end of file
index d5b2b19..024a7ea 100644 (file)
@@ -1,3 +1 @@
-<p align=center><b>Drucken ausgeschaltet</b></p>
-
-<p>Verstecken der Druck Icons.</p>
+<h2>Druckfunktion ausschalten</h2></p><p>Verbirgt die Funktion zum Ausdruck einzelner Seiten oder des gesamten Buches.</p>
\ No newline at end of file
index 60a50dc..e450b74 100644 (file)
@@ -1,7 +1 @@
-<p align=center><b>Kapiteländerung</b></p>
-
-<p>Versuchen Sie Titel der Kapitel kurz zu halten.</p>
-
-<p>Maximal zwei Stufe können die Unterkapitel haben.</p>
-
-<p>Wenn SIe Probleme mit dem WYSIWYG HTML Editor haben, versuchen Sie einen anderen Browser z.B. Mozilla Firefox zu benutzen oder schlaten Sie den Editor im Profil ab.</p>
\ No newline at end of file
+<h2>Kapitel bearbeiten</h2></p><p>Versuchen Sie die Überschriften der Kapitel knapp zu halten. Sie stehen links im Inhaltsverzeichnis. Lange Titel werden umbrochen und sehen nicht gut aus.</p><p>Neben der Hauptebene kann eine Unterkapitelebene angelegt werden.</p><p>Wenn Sie Probleme mit dem WYSIWYG HTML Editor haben, versuchen Sie einen anderen Browser z.B. Mozilla Firefox zu benutzen oder schalten Sie den Editor im Profil ab.</p>
\ No newline at end of file
index 608e943..602caad 100644 (file)
@@ -1,34 +1 @@
-<p align=center><b>Frequently Asked Questions über Bücher</b></p>
-
-<dl>
-  <dt><b>Warum nur zwei Stufen?</b></dt>
-  <dd>Zwei Stufen sind genug für alle Bücher, drei Stufen würden zu einem
-schlecht strukturierte Dokumnt führen. Das Buch Modul wurde für die Erstellung
-von kurzen Inhalten entwickelt. Für größere und komplexere Dokumente macht es
-mehr Sinn das PDF Format zu benutzen. Am einfachsten können Sie PDF Dateien mit
-den folgenden Programmen erzeugen
- (see <a
- href="http://sector7g.wurzel6.de/pdfcreator/index_en.htm"
- target="_blank">PDFCreator</a>, <a
- href="http://fineprint.com/products/pdffactory/index.html"
- target="_blank">PDF
-Factory</a>, <a
- href="http://www.adobe.com/products/acrobatstd/main.html"
- target="_blank">Adobe Acrobat</a>,
-etc.).<br />
-  </dd><br />
-  <dt><b>Können Lerner Bücher editieren?</b></dt>
-  <dd>Nur Lehrer können Bücher erstellen und ändern. Es ist nicht geplant 
-auch für Lerner zu ermöglichen. Aber vielleicht findet sich ja jemand
-diese Funktion auch für Lerner erstellt. Der Hauptgrund ist jedoch, daß das 
-Buch Modul so simpel wie möglich bleiben sollt.</dd><br />
-  <dt><b>Wie kann ich in Büchern suchen?</b></dt>
-  <dd>Zur Zeit gibt es nur die Möglichkeit mit der Browsersuchfunktion
-in einem Buch zu suchen. Eine globale Suche ist nur in Moodle Foren möglich.
-Es wäre toll wenn es eine Art globale Suche für alle Resourcen auch Bücher 
-in moddle geben würde. Gibt es evtl. jemanden der dies Umsetzen könnte?</dd><br />
-  <dt><b>Mei Titel passt nicht in eine Zeile.</b></dt>
-  <dd>Ändern SIe Ihren Titel oder bitten Sie Ihren Administrator der Webseite darum,
-daß er die Breite des TOC vergrößert. Dies ist global für alle Bücher in der Modul
-Konfigurationsseite einstellbar.</dd><br />
-</dl>
+<h2>Frequently Asked Questions über Bücher</h2></p><dl>  <dt><b>Warum nur zwei Gliederungsebenen?</b></dt>  <dd>Zwei Stufen sind in den meisten Fällen ausreichend. Drei Stufen würden häufig zu einem schlecht strukturierten Dokument führen. Das Buch Modul wurde für die Erstellung von kurzen Inhalten entwickelt. Für größere und komplexere Dokumente macht es mehr Sinn das PDF Format zu benutzen. Am einfachsten können Sie PDF Dateien mit den folgenden Programmen erzeugen (see <a href="http://sector7g.wurzel6.de/pdfcreator/index_en.htm" target="_blank">PDFCreator</a>, <a href="http://fineprint.com/products/pdffactory/index.html" target="_blank">PDFFactory</a>, <a href="http://www.adobe.com/products/acrobatstd/main.html" target="_blank">Adobe Acrobat</a>,etc.).<br />  </dd><br />  <dt><b>Können Teilnehmer/innen Bücher editieren?</b></dt>  <dd>Nur Trainer/innen können Bücher erstellen und ändern. Es ist nicht geplant auch für Teilnehmer zu ermöglichen. Der Hauptgrund ist jedoch, daß das Buch Modul so simpel wie möglich bleiben soll. Mit Hilfe der Rollenfunktion kann man dieses dennoch erreichen.</dd><br />  <dt><b>Wie kann ich in Büchern suchen?</b></dt>  <dd>Zur Zeit gibt es nur die Möglichkeit mit der Browsersuchfunktionin einem Buch zu suchen. Eine globale Suche ist nur in Moodle Foren möglich.</dd><br />  <dt><b>Mein Titel passt nicht in eine Zeile.</b></dt>  <dd>Ändern Sie Ihren Titel oder bitten Sie Ihren Administrator der Webseite darum ,daß er die Breite des Inhaltsverzeichnis vergrößert. Dies ist global für alle Bücher in der Modul Konfigurationsseite einstellbar.</dd><br /></dl>
\ No newline at end of file
index 201e8c2..2c72d9c 100644 (file)
@@ -1,5 +1 @@
-<p align=center><b>Import</b></p>
-
-<p> Sie können eine einzelnes HTML Datei importieren oder jede HTML Datei in einem Ordner.</p>
-
-<p> Relative Datei Verknüpfungen werden zu absoluten Kapitelverlinkungen konvertiert. Bilder, Flash und Java Inhalte werden ebenfalls verlinkt.</p>
+<h2>Import</h2></p><p> Sie können Buchseiten als HTML-Dateien importieren. Jede einzelne HTML-Datei wird zu einer neuen Seite des Buches. Die Anordnung erfolgt alphabetisch nach den Titeln der HTML-Dateien.</p><p> Relative Dateiverknüpfungen werden zu absoluten Kapitelverlinkungen konvertiert. Bilder, Flash und Java Inhalte werden ebenfalls verlinkt.</p>
\ No newline at end of file
index e99b390..312fb42 100644 (file)
@@ -1,11 +1 @@
-<p>Book module</p>
-<ul>
-  <li><a href="help.php?module=book&file=numberingtype.html">Kapitelnummerierung</a>
-  <li><a href="help.php?module=book&file=disableprinting.html">Drucken ausschalten</a>
-  <li><a href="help.php?module=book&file=customtitles.html">Eigene Titel</a>
-  <li><a href="help.php?module=book&file=summary.html">Zusammenfassung lesen</a>
-  <li><a href="help.php?module=book&file=edit.html">Kapitel ändern</a>
-  <li><a href="help.php?module=book&file=import.html">Import</a>
-  <li><a href="help.php?module=book&file=faq.html">Buch FAQ</a>
-</ul>
-
+<h2>Buch-Modul</h2><ul>  <li><a href="help.php?module=book&file=numberingtype.html">Kapitelnummerierung</a>  <li><a href="help.php?module=book&file=disableprinting.html">Druckfunktion abschalten</a>  <li><a href="help.php?module=book&file=customtitles.html">Eigene Titelüberschriften</a>  <li><a href="help.php?module=book&file=summary.html">Beschreibung</a>  <li><a href="help.php?module=book&file=edit.html">Kapitel ändern</a>  <li><a href="help.php?module=book&file=import.html">Import</a>  <li><a href="help.php?module=book&file=faq.html">Buch FAQ</a></ul>
\ No newline at end of file
index 0cbf5aa..433a63f 100644 (file)
@@ -1,4 +1 @@
-<p><img valign=absmiddle src="<?php echo $CFG->wwwroot?>/mod/book/icon.gif">&nbsp;<b>Books</b></p>
-<ul>
-<p>Das Buch ist ein simples mehrseitiges Studienmaterial.</p>
-</ul>
+<h2><img valign=absmiddle src="<?php echo $CFG->wwwroot?>/mod/book/icon.gif">&nbsp;Bücher</h2></p><ul><p>Das Arbeitsmaterial Buch ermöglicht es, Lerninhalte in strukturierter und gegliederter Form zu hinterlegen. Wie in einem Buch findet man ein Inhaltsverzeichnis und kann durch die Seiten blättern.</p></ul>
\ No newline at end of file
index e79717c..c53c97c 100644 (file)
@@ -1,14 +1 @@
-<p align=center><b>Nummerierung von Kapiteln</b></p>
-
-<p>Es gibt verschiedene vordefinierte Nummerierungstypen:
-
-<p><b>Keine</b> - Kapitel und die Titel der Unterkapitel sind nicht formatiert, Sie können
-selber eigene Styles zur Nummerierung benutzen. Zum Beispiel Buchstaben: Im Kapitel Titel
-geben Sie dann folgendes ein "A Erstes Kapitel", "A.1 ein Unterkapitel",...</p>
-
-<p><b>Nummern</b> - Kapitel und Unterkapitel sind nummeriert (1, 1.1, 1.2, 2,
-...)<p>
-
-<p><b>Kugeln</b> - Unterkapitel sind eingerückt und werden mit führenden Kugeln angezeigt.<p>
-
-<p><b>Eingerückt</b> - Unterkapitel sind eingerückt.</p>
+<h2>Nummerierung von Kapiteln</h2><p>Es gibt verschiedene vordefinierte Nummerierungstypen:<p><b>Keine</b> - Kapitel und die Titel der Unterkapitel sind nicht formatiert. Sie könnenselber eigene Styles zur Nummerierung benutzen. Zum Beispiel Buchstaben. Im Kapitel Titelgeben Sie dann folgendes ein "A Erstes Kapitel", "A.1 ein Unterkapitel",...</p><p><b>Nummern</b> - Kapitel und Unterkapitel sind nummeriert (1, 1.1, 1.2, 2,...)<p><p><b>Punkte</b> - Unterkapitel sind eingerückt und werden mit Auszählungspunkten angezeigt.<p><p><b>Eingerückt</b> - Unterkapitel sind eingerückt.</p>
\ No newline at end of file
index 6ffdf0f..76951e7 100644 (file)
@@ -1,5 +1 @@
-<p align=center><b>Reading Summary</b></p>
-
-<p>Diese Einführung ist eine sehr kurze Beschreibung des Buches.</p>
-
-<p>Schreiben Sie hier nicht zu viel hinein!</p>
\ No newline at end of file
+<h2>Beschreibung des Buches</h2></p><p>Diese Einführung ist eine sehr kurze Beschreibung des Buches.</p><p>Schreiben Sie hier nicht zu viel hinein! Diese Beschreibung wird in der Übersicht der Bücher eines Kurses angezeigt. Sie ist mit dem Klappentext eines Buches vergleichbar.</p>
\ No newline at end of file
index 7a4a1dc..5a7e88c 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 $string['modulename'] = 'Book';
 $string['modulenameplural'] = 'Books';
@@ -55,4 +55,3 @@ $string['book:viewhiddenchapters'] = 'View hidden book chapters';
 $string['book:import'] = 'Import chapters';
 $string['book:print'] = 'Print book';
 $string['book:exportimscp'] = 'Export book as IMS content package';
-
index c499113..f0ac4a6 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
       // book.php - created with Moodle 1.3 (2004052500)
       // book.php - Translated to Spanish by Juan Luis Martinez from Dominican Republic (fernluichi@hotmail.com)
 
index f1e1097..bf67876 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
       // book.php - created with Moodle 1.5 unstable development (2004092000)
 
 
index 1be9d96..73f1104 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 $string['modulename'] = 'Buku';
 $string['modulenameplural'] = 'Buku-buku';
index ead1c74..27a5406 100644 (file)
@@ -1,19 +1,26 @@
-<?PHP
-      // book.php - created with Moodle 1.7.1+ (2006101010)
+<?php
 
-
-$string['addafter'] = 'Aggiungi un nuovo capitolo';
+$string['addafter'] = 'Aggiungi un nuovo capitolo.';
+$string['book:edit'] = 'Modifica capitoli';
+$string['book:exportimscp'] = 'Esportare libro come pacchetto IMS';
+$string['book:import'] = 'Importare capitoli';
+$string['book:print'] = 'Stampare libro';
+$string['book:read'] = 'Leggere libro';
+$string['book:viewhiddenchapters'] = 'Visualizzare capitoli nascosti';
+$string['book_tocwidth'] = 'Larghezza sommario';
 $string['chapterscount'] = 'Capitoli';
-$string['chaptertitle'] = 'Titolo del Capitolo';
-$string['confchapterdelete'] = 'Sei sicuro di voler cancellare questo capitolo?';
-$string['confchapterdeleteall'] = 'Sei sicuro di voler cancellare questo capitolo e tutti i suoi paragrafi?';
+$string['chaptertitle'] = 'Titolo del capitolo';
+$string['confchapterdelete'] = 'Sei sicuro di eliminare questo capitolo?';
+$string['confchapterdeleteall'] = 'Sei sicuro di eliminare questo capitolo e tutti i suoi paragrafi?';
 $string['content'] = 'Contenuto';
 $string['customtitles'] = 'Titoli personalizzati';
-$string['disableprinting'] = 'Escludi la stampa';
+$string['disableprinting'] = 'Disabilita la stampa';
+$string['doexport'] = 'Esporta';
 $string['doimport'] = 'Importa';
-$string['editingchapter'] = 'Modifica del capitolo';
-$string['faq'] = 'FAQ Modulo Libro';
-$string['fileordir'] = 'Scegli un file oppure un folder';
+$string['editingchapter'] = 'Modifica capitolo';
+$string['faq'] = 'FAQ Modulo libro';
+$string['fileordir'] = 'Scegli un file o un folder';
+$string['generateimscp'] = 'Genera un pacchetto IMS';
 $string['import'] = 'Importa';
 $string['importinfo'] = 'Importa un file HTML oppure una cartella.<br />I capitoli saranno ordinati alfabeticamente utilizzando i nomi dei file.';
 $string['importing'] = 'Importazione in corso';
@@ -21,20 +28,20 @@ $string['importingchapters'] = 'Importazione dei capitoli';
 $string['maindirectory'] = 'Cartella principale';
 $string['modulename'] = 'Libro';
 $string['modulenameplural'] = 'Libri';
-$string['navexit'] = 'Chiudi';
+$string['navexit'] = 'Esci';
 $string['navnext'] = 'Pagina successiva';
 $string['navprev'] = 'Pagina precedente';
-$string['numbering'] = 'Numerazione dei capitoli';
-$string['numbering0'] = 'Nessuna numerazione';
+$string['numbering'] = 'Numerazione capitoli';
+$string['numbering0'] = 'Senza numerazione';
 $string['numbering1'] = 'Numeri';
 $string['numbering2'] = 'Elenco puntato';
 $string['numbering3'] = 'Elenco rientrato';
 $string['printbook'] = 'Stampa tutto';
-$string['printchapter'] = 'Stampa questo capitolo';
+$string['printchapter'] = 'Stampa capitolo';
 $string['printdate'] = 'Data';
 $string['printedby'] = 'Stampato da';
 $string['relinking'] = 'Elaborazione dei collegamenti';
 $string['subchapter'] = 'Paragrafo';
 $string['toc'] = 'Sommario';
-$string['tocwidth'] = 'Larghezza in pixel del Sommario per tutti i Libri.';
+$string['tocwidth'] = 'Larghezza in pixel del Sommario per i Libri.';
 $string['top'] = 'Ritorna su';
index 240c56d..00a1964 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 $string['modulename'] = 'ブック';
 $string['modulenameplural'] = 'ブック';
index d3496fe..3806da0 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
       // book.php - created with Moodle 1.5 development (2004082300)
 
 
@@ -37,4 +37,3 @@ $string['subchapter'] = 'Paragraaf';
 $string['toc'] = 'Inhoudstafel';
 $string['tocwidth'] = 'Kies de breedte van de inhoudstafel voor alle boeken.';
 $string['top'] = 'boven';
-
index d62e1ab..123d5cb 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
       // book.php - created with Moodle 1.5 UNSTABLE DEVELOPMENT (2005031000)
 
 
@@ -38,4 +38,3 @@ $string['subchapter'] = 'Podrozdział';
 $string['toc'] = 'Spis treści';
 $string['tocwidth'] = 'Ustaw szrokość spisu treści dla wszystkich książek';
 $string['top'] = 'Góra';
-
index 62e89f1..4006f9f 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 $string['modulename'] = 'Livro';
 $string['modulenameplural'] = 'Livros';
index cafefc6..bdff3e4 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
       // book.php - created with Moodle 1.3.3 + (2004052503)
 
 
diff --git a/lang/sl_utf8/book.php b/lang/sl_utf8/book.php
new file mode 100644 (file)
index 0000000..e7153fb
--- /dev/null
@@ -0,0 +1,50 @@
+<?php
+      // Translation for Moodle 1.9.2
+      // Translated by Mitja Podreka - Faculty of Arts, University of Ljubljana
+
+$string['modulename'] = 'Knjiga';
+$string['modulenameplural'] = 'Knjige';
+$string['toc'] = 'Kazalo vsebine';
+$string['tocwidth'] = 'Izberite širino kazala vsebine za vse knjige.';
+$string['faq'] = 'Knjiga - pogosta vprašanja';
+$string['disableprinting'] = 'Onemogoči tiskanje';
+$string['customtitles'] = 'Ločeni naslovi';
+$string['editingchapter'] = 'Urejanje poglavja';
+$string['chaptertitle'] = 'Naslov poglavja';
+$string['content'] = 'Vsebina';
+$string['subchapter'] = 'Podpoglavje';
+$string['numbering'] = 'Označevanje poglavij';
+$string['numbering0'] = 'Brez';
+$string['numbering1'] = 'Številke';
+$string['numbering2'] = 'Vrstične oznake';
+$string['numbering3'] = 'Zamik';
+$string['chapterscount'] = 'Poglavja';
+$string['addafter'] = 'Dodaj novo poglavje';
+$string['confchapterdelete'] = 'Ali zares želite izbrisati to poglavje?';
+$string['confchapterdeleteall'] = 'Ali zares želite izbrisati to poglavje in vsa njegova podpoglavja?';
+$string['printbook'] = 'Natisni celotno knjigo';
+$string['printchapter'] = 'Natisni to poglavje';
+$string['printdate'] = 'Datum';
+$string['printedby'] = 'Natisnil';
+$string['top'] = 'na vrh';
+$string['navprev'] = 'Prejšnje';
+$string['navnext'] = 'Naslednje';
+$string['navexit'] = 'Zapri knjigo';
+$string['importingchapters'] = 'Uvoz poglavij v knjigo';
+$string['import'] = 'Uvozi';
+$string['doimport'] = 'Uvozi';
+$string['doexport'] = 'Izvozi';
+$string['importing'] = 'Uvažam';
+$string['relinking'] = 'Ponastavitev povezav';
+$string['importinfo'] = 'Uvozi izbrane datoteke ali mape.<br />Poglavja bodo razvrščena po abecedi glede na imena datotek.<br />Datoteke imenovane \'sub_*.*\' bodo vedno uvožene kod podpoglavja.';
+$string['maindirectory'] = 'Glavna mapa';
+$string['fileordir'] = 'Datoteka ali mapa';
+$string['book:edit'] = 'Uredi poglavja knjige';
+$string['book:exportimscp'] = 'Izvozi knjigo kot IMS vsebinski paket';
+$string['book:import'] = 'Uvozi poglavja';
+$string['book:print'] = 'Natisni knjigo';
+$string['book:read'] = 'Beri knjigo';
+$string['book:viewhiddenchapters'] = 'Poglej skrita poglavja';
+$string['book_tocwidth'] = 'Širina kazala vsebine';
+$string['generateimscp'] = 'Generiraj IMS vsebinski paket';
+?>
diff --git a/lang/sl_utf8/help/book/customtitles.html b/lang/sl_utf8/help/book/customtitles.html
new file mode 100644 (file)
index 0000000..fe18c5c
--- /dev/null
@@ -0,0 +1,3 @@
+<p align="center"><b>Ločeni naslovi</b></p>
+
+<p>Naslov poglavja se običajno izpiše v kazalu vsebine in pri ogledu poglavja. Če odkljukate to možnost se bo naslov poglavja izpisal le v kazalu. Ta možnost je koristna, če hočete ob ogledu poglavja prikazati drugačen naslov oz. ga sploh nočete prikazati.</p>
diff --git a/lang/sl_utf8/help/book/disableprinting.html b/lang/sl_utf8/help/book/disableprinting.html
new file mode 100644 (file)
index 0000000..59c2206
--- /dev/null
@@ -0,0 +1,3 @@
+<p align="center"><b>Onemogoči tiskanje</b></p>
+
+<p>Skrije ikone za printanje.</p>
diff --git a/lang/sl_utf8/help/book/edit.html b/lang/sl_utf8/help/book/edit.html
new file mode 100644 (file)
index 0000000..4704cb1
--- /dev/null
@@ -0,0 +1,7 @@
+<p align="center"><b>Urejanje poglavja</b></p>
+
+<p>Skušajte uporabljati kratke naslove.</p>
+
+<p>Mogoča sta samo dva (2) nivoja poglavij.</p>
+
+<p>Če med uporabo html urejevalnika tekstov (WYSIWYG) naletite na težave, skušajte uporabiti drug brskalnik (npr. Mozilla Firefox) ali izključite urejevalnik v vašem profilu.</p>
\ No newline at end of file
diff --git a/lang/sl_utf8/help/book/faq.html b/lang/sl_utf8/help/book/faq.html
new file mode 100644 (file)
index 0000000..93bca04
--- /dev/null
@@ -0,0 +1,39 @@
+<p align="center">
+  <b>Pogosta vprašanja o modulu Knjiga</b>
+</p>
+<dl>
+  <dt>
+    <b>Zakaj samo dva nivoja?</b>
+  </dt>
+  <dd>
+    Dva nivoja sta običajno dovolj za vse knjige, trije nivoji pa bi že vodili k slabo strukturiranim dokumentom. Modul Knjiga je bil zasnovan za izdelavo kratkih večstranskih študijskih gradiv. Za daljše dokumente pa je ponavadi bolje uporabiti PDF format. Najlažji način za izdelavo PDF formatov je uporaba virtualnega tiskalnika (glej
+    <a  href="http://sector7g.wurzel6.de/pdfcreator/index_en.htm"  target="_blank">PDFCreator</a>,
+    <a  href="http://fineprint.com/products/pdffactory/index.html"  target="_blank">
+      PDFFactory</a>,
+    <a  href="http://www.adobe.com/products/acrobatstd/main.html"  target="_blank">Adobe Acrobat</a>,
+    idr.).
+    <br />
+  </dd>
+  <br />
+  <dt>
+    <b>Ali lahko študentje urejajo knjigo?</b>
+  </dt>
+  <dd>
+    Knjigo lahko ustvarijo in urejajo samo učitelji. Zaenkrat ni nobenih načrtov za izdelavo tovrstne funkcije, vendar bo lahko izdelal nekaj podobnega tudi za študente (Portfolio?). Glavni razlog za to je, da bi bil modul Knjiga čim bolj enostaven.
+  </dd>
+  <br />
+  <dt>
+    <b>Kako naj iščem po knjigah?</b>
+  </dt>
+  <dd>
+    Trenutno je mogoč samo en način in sicer uporaba brskalnikove funkcije "najdi" na strani knjige za tiskanje. Globalno iskanje je trenutno možno le v Moodle forumih. Lepo bi bilo, če bi ta možnost obstajala za vse aktivnosti, vključno s Knjigo. Kak prostovoljec?
+  </dd>
+  <br />
+  <dt>
+    <b>Moji naslovi se ne prilegajo v eno vrstico.</b>
+  </dt>
+  <dd>
+    Spremenite naslov ali pa prosite administratorja, da spremeni širino kazala. Ta nastavitev je definirana globalno in velja za vse knjige.
+  </dd>
+  <br />
+</dl>
diff --git a/lang/sl_utf8/help/book/import.html b/lang/sl_utf8/help/book/import.html
new file mode 100644 (file)
index 0000000..434b5e9
--- /dev/null
@@ -0,0 +1,5 @@
+<p align="center"><b>Uvoz</b></p>
+
+<p>Uvozite lahko eno HTML datoteko ali vse HTML datoteke v mapi.</p>
+
+<p>Relativne povezave na datoteke so spremenjene v absolutne povezave na poglavja. Spremenjene so tudi povezave na grafike, flash animacije in Java skripte.</p>
diff --git a/lang/sl_utf8/help/book/index.html b/lang/sl_utf8/help/book/index.html
new file mode 100644 (file)
index 0000000..b0de7ee
--- /dev/null
@@ -0,0 +1,11 @@
+<p>Modul Knjiga</p>
+<ul>
+  <li><a href="help.php?module=book&file=numberingtype.html">Označevanje poglavij</a>
+  <li><a href="help.php?module=book&file=disableprinting.html">Onemogoči tiskanje</a>
+  <li><a href="help.php?module=book&file=customtitles.html">Ločeni naslovi</a>
+  <li><a href="help.php?module=book&file=summary.html">Povzetek knjige</a>
+  <li><a href="help.php?module=book&file=edit.html">Urejanje poglavja</a>
+  <li><a href="help.php?module=book&file=import.html">Uvoz</a>
+  <li><a href="help.php?module=book&file=faq.html">Pogosta vprašanja</a>
+</ul>
+
diff --git a/lang/sl_utf8/help/book/mods.html b/lang/sl_utf8/help/book/mods.html
new file mode 100644 (file)
index 0000000..aad38c6
--- /dev/null
@@ -0,0 +1,4 @@
+<p><img valign="absmiddle" src="<?php echo $CFG->wwwroot?>/mod/book/icon.gif">&nbsp;<b>Knjiga</b></p>
+<ul>
+<p>Knjiga je enostavno večstransko študijsko gradivo</p>
+</ul>
diff --git a/lang/sl_utf8/help/book/numberingtype.html b/lang/sl_utf8/help/book/numberingtype.html
new file mode 100644 (file)
index 0000000..950efb3
--- /dev/null
@@ -0,0 +1,12 @@
+<p align="center"><b>Označevanje poglavij</b></p>
+
+<p>Na voljo je več prednastavljenih načinov označevanja:
+
+<p><b>Brez</b> - naslovi poglavij in podpoglavij niso oblikovani. To možnost izberite, če želite uporabiti poseben način označevanja. Na primer črke: v naslovu poglavja zapišete "A Prvo poglavje!, "A.1 Neko podpoglavje", ...</p>
+
+<p><b>Številke</b> - naslovi poglavij in podpoglavij bodo oštevilčeni (1, 1.1, 1.2, 2,
+...)<p>
+
+<p><b>Vrstične oznake</b> - naslovi podpoglavij so zamaknjeni in označeni z vrstično oznako (pika, kvadratek,...).<p>
+
+<p><b>Zamik</b> - naslovi podpoglavij so zamaknjeni.</p>
diff --git a/lang/sl_utf8/help/book/summary.html b/lang/sl_utf8/help/book/summary.html
new file mode 100644 (file)
index 0000000..fd5ef10
--- /dev/null
@@ -0,0 +1,5 @@
+<p align="center"><b>Povzetek knjige</b></p>
+
+<p>Povzetek je zelo kratek opis knjige.</p>
+
+<p>Naj vas ne premami, da bi napisali preveč!p>
\ No newline at end of file
index 8652fd7..6fc026c 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
       // book.php - created with Moodle 1.4 (2004083100)
 
 
@@ -38,4 +38,3 @@ $string['subchapter'] = 'Underavdelning';
 $string['toc'] = 'Innehållsförteckning';
 $string['tocwidth'] = 'Välj en bredd på innehållsförteckningen som gäller alla böcker.';
 $string['top'] = 'Upp';
-
diff --git a/lib.php b/lib.php
index ac378ed..a3ac847 100644 (file)
--- a/lib.php
+++ b/lib.php
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 define('NUM_NONE',     '0');
 define('NUM_NUMBERS',  '1');
@@ -165,6 +165,15 @@ function book_scale_used ($bookid,$scaleid) {
 function book_scale_used_anywhere($scaleid) {
     return false;
 }
+
+function book_get_view_actions() {
+    return array('view', 'view all', 'print');
+}
+
+function book_get_post_actions() {
+    return array('update');
+}
+
 //////////////////////////////////////////////////////////////////////////////////////
 /// Any other book functions go here.  Each of them must have a name that
 /// starts with book_
@@ -446,3 +455,12 @@ function book_relink($id, $bookid, $courseid) {
         }
     }
 }
+
+/**
+ * Tells if files in moddata are trusted and can be served without XSS protection.
+ * @return bool true if file can be submitted by teacher only (trusted), false otherwise
+ */
+function book_is_moddata_trusted() {
+    return true;
+}
+
index 42c6563..ba4ee24 100644 (file)
--- a/move.php
+++ b/move.php
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 require('teacheraccess.php'); //page only for teachers
 $up  = optional_param('up', 0, PARAM_BOOL);
@@ -144,4 +144,3 @@ add_to_log($course->id, 'book', 'update', 'view.php?id='.$cm->id, $book->id, $cm
 book_check_structure($book->id);
 redirect('view.php?id='.$cm->id.'&chapterid='.$chapter->id);
 die;
-
index 954bf4f..b09166f 100644 (file)
--- a/print.php
+++ b/print.php
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 require_once('../../config.php');
 require_once('lib.php');
index ad9164c..b3dcf15 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
     //This php script contains all the stuff to backup/restore
     //book mods
 
 
         return $status;
     }
+
index 2e4c8b8..00fea53 100644 (file)
@@ -6,3 +6,4 @@ $choices = array('140'=>'140', '160'=>'160', '180'=>'180', '200'=>'200',
 
 $settings->add(new admin_setting_configselect('book_tocwidth', get_string('book_tocwidth', 'book'),
                    get_string('tocwidth', 'book'), '180', $choices));
+
index e0ad56c..c244c65 100644 (file)
--- a/show.php
+++ b/show.php
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 require('teacheraccess.php'); //page only for teachers
 
index 7d6ee53..a3f6807 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 ///standard routine to allow only teachers in
 ///check of $id and $chapterid parameters
diff --git a/toc.php b/toc.php
index 977d74c..1c51c9a 100644 (file)
--- a/toc.php
+++ b/toc.php
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');
 
index 3619421..002cdf9 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 /////////////////////////////////////////////////////////////////////////////////
 ///  Called by moodle_needs_upgrading() and /admin/index.php
index ce4cf37..2e1ca50 100644 (file)
--- a/view.php
+++ b/view.php
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 require('../../config.php');
 require_once('lib.php');
@@ -244,3 +244,4 @@ $generateimscp = ($allowexport) ? '<a title="'.get_string('generateimscp', 'book
 
 <?php
 print_footer($course);
+