diff --git a/fp-plugins/footnotes/how_to_use.txt b/fp-plugins/footnotes/doc_footnotes.txt similarity index 59% rename from fp-plugins/footnotes/how_to_use.txt rename to fp-plugins/footnotes/doc_footnotes.txt index 0caec34..2e4432f 100644 --- a/fp-plugins/footnotes/how_to_use.txt +++ b/fp-plugins/footnotes/doc_footnotes.txt @@ -1,9 +1,8 @@ The footnote plugin creates links between numbers in the content and the corresponding footnote below the text. It's quite straightforward - to try, just create a sample entry with the following content: +Here is some text[^1] with a note. The text goes on and has another reference[^2] to a footnote. -Here is some text[1] with a note. The text goes on and has another reference[2] to a footnote. - [footnotes] -[1] here is the note -[2] and the second one :) \ No newline at end of file +[^1]: *here* is the note +[^2]: and the _second_ one :) diff --git a/fp-plugins/footnotes/lang/lang.cs-cz.php b/fp-plugins/footnotes/lang/lang.cs-cz.php new file mode 100644 index 0000000..d9d788b --- /dev/null +++ b/fp-plugins/footnotes/lang/lang.cs-cz.php @@ -0,0 +1,7 @@ + 'Poznámka pod čarou', + 'footnotes' => 'Poznámky pod čarou', + 'back' => 'Zpět na' +); +?> diff --git a/fp-plugins/footnotes/lang/lang.da-dk.php b/fp-plugins/footnotes/lang/lang.da-dk.php new file mode 100644 index 0000000..e098f23 --- /dev/null +++ b/fp-plugins/footnotes/lang/lang.da-dk.php @@ -0,0 +1,7 @@ + 'Fodnote', + 'footnotes' => 'Fodnoter', + 'back' => 'Tilbage til' +); +?> diff --git a/fp-plugins/footnotes/lang/lang.de-de.php b/fp-plugins/footnotes/lang/lang.de-de.php new file mode 100644 index 0000000..24c7ca3 --- /dev/null +++ b/fp-plugins/footnotes/lang/lang.de-de.php @@ -0,0 +1,7 @@ + 'Fußnote', + 'footnotes' => 'Fußnoten', + 'back' => 'Zurück zu' +); +?> diff --git a/fp-plugins/footnotes/lang/lang.el-gr.php b/fp-plugins/footnotes/lang/lang.el-gr.php new file mode 100644 index 0000000..eef54b5 --- /dev/null +++ b/fp-plugins/footnotes/lang/lang.el-gr.php @@ -0,0 +1,7 @@ + 'Υποσημείωση', + 'footnotes' => 'Υποσημειώσεις', + 'back' => 'Πίσω στο' +); +?> diff --git a/fp-plugins/footnotes/lang/lang.en-us.php b/fp-plugins/footnotes/lang/lang.en-us.php new file mode 100644 index 0000000..3f4e030 --- /dev/null +++ b/fp-plugins/footnotes/lang/lang.en-us.php @@ -0,0 +1,7 @@ + 'Footnote', + 'footnotes' => 'Footnotes', + 'back' => 'Back to' +); +?> diff --git a/fp-plugins/footnotes/lang/lang.es-es.php b/fp-plugins/footnotes/lang/lang.es-es.php new file mode 100644 index 0000000..51b7867 --- /dev/null +++ b/fp-plugins/footnotes/lang/lang.es-es.php @@ -0,0 +1,7 @@ + 'Nota a pie de página', + 'footnotes' => 'Notas a pie de página', + 'back' => 'Volver a' +); +?> diff --git a/fp-plugins/footnotes/lang/lang.fr-fr.php b/fp-plugins/footnotes/lang/lang.fr-fr.php new file mode 100644 index 0000000..f94b6cc --- /dev/null +++ b/fp-plugins/footnotes/lang/lang.fr-fr.php @@ -0,0 +1,7 @@ + 'Note de bas de page', + 'footnotes' => 'Notes de bas de page', + 'back' => 'Retour à' +); +?> diff --git a/fp-plugins/footnotes/lang/lang.it-it.php b/fp-plugins/footnotes/lang/lang.it-it.php new file mode 100644 index 0000000..a2a2525 --- /dev/null +++ b/fp-plugins/footnotes/lang/lang.it-it.php @@ -0,0 +1,7 @@ + 'Nota a piè di pagina', + 'footnotes' => 'Note a piè di pagina', + 'back' => 'Torna a' +); +?> diff --git a/fp-plugins/footnotes/lang/lang.ja-jp.php b/fp-plugins/footnotes/lang/lang.ja-jp.php new file mode 100644 index 0000000..73adc65 --- /dev/null +++ b/fp-plugins/footnotes/lang/lang.ja-jp.php @@ -0,0 +1,7 @@ + 'フットノート', + 'footnotes' => '脚注', + 'back' => 'へ戻る' +); +?> diff --git a/fp-plugins/footnotes/lang/lang.nl-nl.php b/fp-plugins/footnotes/lang/lang.nl-nl.php new file mode 100644 index 0000000..8ada171 --- /dev/null +++ b/fp-plugins/footnotes/lang/lang.nl-nl.php @@ -0,0 +1,7 @@ + 'Voetnoot', + 'footnotes' => 'Voetnoten', + 'back' => 'Terug naar' +); +?> diff --git a/fp-plugins/footnotes/lang/lang.pt-br.php b/fp-plugins/footnotes/lang/lang.pt-br.php new file mode 100644 index 0000000..f2c2bd5 --- /dev/null +++ b/fp-plugins/footnotes/lang/lang.pt-br.php @@ -0,0 +1,7 @@ + 'Nota de rodapé', + 'footnotes' => 'Notas de rodapé', + 'back' => 'Voltar para' +); +?> diff --git a/fp-plugins/footnotes/lang/lang.ru-ru.php b/fp-plugins/footnotes/lang/lang.ru-ru.php new file mode 100644 index 0000000..64b7556 --- /dev/null +++ b/fp-plugins/footnotes/lang/lang.ru-ru.php @@ -0,0 +1,7 @@ + 'Сноска', + 'footnotes' => 'Сноски', + 'back' => 'Назад к' +); +?> diff --git a/fp-plugins/footnotes/lang/lang.sl-si.php b/fp-plugins/footnotes/lang/lang.sl-si.php new file mode 100644 index 0000000..686acec --- /dev/null +++ b/fp-plugins/footnotes/lang/lang.sl-si.php @@ -0,0 +1,7 @@ + 'Opomba', + 'footnotes' => 'Opombe pod črto', + 'back' => 'Nazaj na' +); +?> diff --git a/fp-plugins/footnotes/plugin.footnotes.php b/fp-plugins/footnotes/plugin.footnotes.php index 86a4a76..4696a75 100755 --- a/fp-plugins/footnotes/plugin.footnotes.php +++ b/fp-plugins/footnotes/plugin.footnotes.php @@ -1,11 +1,11 @@ [Instructions] */ define('FOOTNOTES_START', '[footnotes]'); @@ -21,16 +21,22 @@ class footnotes_class { } function note($n, $s) { + $lang = lang_load('plugin:footnotes'); + $back = $lang ['plugin'] ['footnotes'] ['back']; + $id = $this->id; $this->refs = true; - return '