From bd749f0f2d352129357b6d1a205e33e9d5e69a10 Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Sun, 14 Sep 2008 00:02:48 +0200 Subject: [PATCH] Docs: clarify instructions on translating "Compiling from source" Also preserve HTML link to English docs "Compiling from source" in buildscripts/postprocess.py. --- Documentation/fr/user/install.itely | 22 ++++++++++++++++++---- Documentation/user/install.itely | 2 +- buildscripts/postprocess_html.py | 6 ++++-- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/Documentation/fr/user/install.itely b/Documentation/fr/user/install.itely index f29c73866c..976c2fb824 100644 --- a/Documentation/fr/user/install.itely +++ b/Documentation/fr/user/install.itely @@ -55,9 +55,23 @@ mingw - Windows x86 @node Compiling from source @section Compiling from source -@untranslated +Il est possible de compiler LilyPond à partir du code source. Comme +cela requiert une maîtrise de l'anglais, cette section ne sera pas +traduite. Si vous voulez vraiment compiler LilyPond, reportez-vous à @iftex -Toute cette section ne sera pas traduite, car la compilation de LilyPond -demande de maîtriser un minimum l'anglais ; reportez-vous donc à -l'édition de ce manuel en anglais. +@c DO NOT translate the following line at all. +@ref{Compiling from source,,,lilypond-program,Application Usage}. @end iftex +@ifhtml +@c Please translate the following line (but not the .html file name) +la @uref{Compiling-from-source.html,documentation en anglais}. +@end ifhtml + +@c TRANSLATORS: +@c Please **do not** translate anything below this line. Users +@c should not be compiling LilyPond themselves; if they really +@c want to do so, they should be able to read the English docs, +@c because they'll probably need to ask questions in English +@c on the -devel list. -gp +@c Instead, please uncomment and translate the paragraph above, +@c and remove all stuff (menu, nodes, contents) below this line. diff --git a/Documentation/user/install.itely b/Documentation/user/install.itely index be781c9626..77f821f54a 100644 --- a/Documentation/user/install.itely +++ b/Documentation/user/install.itely @@ -73,7 +73,7 @@ the @uref{Compiling-from-source.html,documentation in English}. @c TRANSLATORS: @c Please **do not** translate anything below this line. Users -@c should not be compiling LilyPond themselves; if they really +@c should not be compiling LilyPond themselves; if they really @c want to do so, they should be able to read the English docs, @c because they'll probably need to ask questions in English @c on the -devel list. -gp diff --git a/buildscripts/postprocess_html.py b/buildscripts/postprocess_html.py index bebf28fa74..abe843a3c8 100644 --- a/buildscripts/postprocess_html.py +++ b/buildscripts/postprocess_html.py @@ -194,9 +194,11 @@ def find_translations (prefix, lang_ext): missing.append (e) return available, missing -online_links_re = re.compile ('''(href|src)=['"]([^/][.]*[^.:'"]*)\ +online_links_re = re.compile ('''(href|src)=['"]\ +((?!Compiling-from-source.html")[^/][.]*[^.:'"]*)\ ([.]html|[.]png)(#[^"']*|)['"]''') -offline_links_re = re.compile ('''href=['"]([^/][.]*[^.:'"]*)([.]html)(#[^"']*|)['"]''') +offline_links_re = re.compile ('href=[\'"]\ +((?!Compiling-from-source.html")[^/][.]*[^.:\'"]*)([.]html)(#[^"\']*|)[\'"]') big_page_name_re = re.compile ('''(.+?)-big-page''') def process_i18n_big_page_links (match, prefix, lang_ext): -- 2.39.5