From 1ed8a37bea8882cd3a1aa0f421dbc15493a781a0 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Jan 2014 17:30:35 +0100 Subject: Traduction into french of some parts of the site. --- tpl/notes/edit.php | 6 +-- tpl/notes/inc_relativestree.php | 93 ++--------------------------------------- tpl/notes/move.php | 4 +- tpl/notes/user.php | 6 +-- tpl/notes/view.php | 8 ++-- 5 files changed, 15 insertions(+), 102 deletions(-) (limited to 'tpl/notes') diff --git a/tpl/notes/edit.php b/tpl/notes/edit.php index 7e4d88f..54f5157 100644 --- a/tpl/notes/edit.php +++ b/tpl/notes/edit.php @@ -2,13 +2,13 @@ require("tpl/general/top.php"); -echo '
return to note
'; +echo '
revenir à la note
'; require("tpl/general/inc_form.php"); if (isset($preview)) { - echo '

Preview

'; - echo'
Warning : this is only a preview. Click the "Edit note" button above to save changes.
'; + echo '

Aperçu

'; + echo '
Attention : ceci n\'est qu\'un aperçu ! Pensez à enregistrer vos changements lorsque vous serez satisfait.
'; echo $preview; } diff --git a/tpl/notes/inc_relativestree.php b/tpl/notes/inc_relativestree.php index be0e224..fd47ab4 100644 --- a/tpl/notes/inc_relativestree.php +++ b/tpl/notes/inc_relativestree.php @@ -1,92 +1,5 @@
'; -echo '

' . $note['ownername'] . '


'; -echo ''; - -function list_brothers_and_children() { - global $brothers, $children, $note, $user, $can_new; - echo '
'; - foreach($brothers as $b) { - if ($b['id'] == $note['id']) { - echo '

' . $b['title'] . '

'; - foreach($children as $nn) { - echo '

' . $nn['title'] . '

'; - } - if ($can_new) { - echo '

+ new note

'; - } - echo '
'; - } else { - echo '

' . $b['title'] . '

'; - } - } - if ($can_new) { - echo '

+ new note

'; - } - echo '
'; -} - -echo '
'; -$did_show_up = false; -foreach($user_root_notes as $n) { - if ($n['id'] == $note['id']) { - $did_show_up = true; - echo '

' . $n['title'] . '

'; - foreach($children as $nn) { - echo '

' . $nn['title'] . '

'; - } - if ($can_new) { - echo '

+ new note

'; - } - echo '
'; - } else { - echo '

' . $n['title'] . '

'; - if ($n['id'] == $note['parent_id']) { - $did_show_up = true; - list_brothers_and_children(); - } - } -} -if ($can_new) { - echo '

+ new note

'; -} -echo '
'; - -if (!$did_show_up) { - echo '

'; - echo '' . $note['parent_title'] . ''; - list_brothers_and_children(); -} - -*/ - -// *** NEW WAY $notes_tree = array(); $notes_parents = array(); @@ -110,7 +23,7 @@ for($id = $note['id']; $id != 0; $id = $notes_parents[$id]) { echo '
'; echo '

' . $note['ownername'] . '


'; -echo ''; +echo ''; function n_tree_branch($id) { global $notest, $note, $can_new; @@ -126,11 +39,11 @@ function n_tree_branch($id) { echo '
'; } else if ($can_new && $branch['id'] == $note['id']) { echo '
'; - if ($can_new) echo '

+ new note

'; + if ($can_new) echo '

+ nouvelle note

'; echo '
'; } } - if ($can_new) echo '

+ new note

'; + if ($can_new) echo '

+ nouvelle note

'; } echo '
'; diff --git a/tpl/notes/move.php b/tpl/notes/move.php index d94e745..985b89a 100644 --- a/tpl/notes/move.php +++ b/tpl/notes/move.php @@ -4,12 +4,12 @@ require("tpl/general/top.php"); function f($n) { global $note; - return $n['title'] . ' - move here'; + return $n['title'] . ' - déplacer ici'; } require("tpl/general/inc_tree.php"); tree($notes_tree, @f); -echo 'move to root'; +echo 'déplacer à la racine'; $can_new = false; require("tpl/notes/inc_relativestree.php"); diff --git a/tpl/notes/user.php b/tpl/notes/user.php index 4da34e9..06099ac 100644 --- a/tpl/notes/user.php +++ b/tpl/notes/user.php @@ -1,5 +1,5 @@ create new note'; + echo 'nouvelle note'; } echo '
'; -echo '

Other users

'; +echo '

Autres bloc-notes

'; echo "