]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/TRANSLATION
Merge branch 'master' of /home/lilycvs/git/lily/
[lilypond.git] / Documentation / TRANSLATION
index 6b03886d03e34f6740215cce8e843edf9db69836..61b2e6d02d0cd796e682021639eaaa54c2eaa1c6 100644 (file)
@@ -35,8 +35,8 @@ The makfiles and scripts infrastructure currently supports translation
 of the following documentation:
 
     * documentation index (HTML)
-    * user manual -- Texinfo source, PDF and HTML output; Info output
-might be added if there is enough demand for it.
+    * user manual and program usage -- Texinfo source, PDF and HTML
+output; Info output might be added if there is enough demand for it.
 
 
 STARTING A TRANSLATION IN A NEW LANGUAGE
@@ -86,6 +86,9 @@ Files marked with priority 3, 4 or 5 may be submitted individually.
 1 index.html.in
   po/<MY-LANGUAGE>.po
 
+In addition, user/macros.itexi may be translated in case typographic
+rules used in this file are different in your language.
+
 -2- User manual introduction
 2 user/preface.itely
 2 user/introduction.itely
@@ -106,6 +109,8 @@ Files marked with priority 3, 4 or 5 may be submitted individually.
 4 user/scheme-tutorial.itely -- Scheme tutorial
 
 -5- Program usage
+5 user/lilypond-program.tely
+5 user/install.itely -- How to install or compile
 5 user/running.itely -- Running LilyPond
 5 user/lilypond-book.itely -- LilyPond-book
 5 user/converters.itely -- Converting from other formats
@@ -171,7 +176,7 @@ All files should be encoded in UTF-8.
 Any title which comes with one of the following commands must not be
 translated directly in the Texinfo source
 
-@node          @top                                     @majorheading
+@node                                                   @majorheading
 @chapter       @unnumbered          @appendix           @chapheading
 @section       @unnumberedsec       @appendixsec        @heading
 @subsection    @unnumberedsubsec    @appendixsubsec     @subheading
@@ -181,6 +186,8 @@ translated directly in the Texinfo source
 As a notable exception, the second argument 'Bar baz' of
 @ref{Foo,'Bar baz',,info-file} should be translated.
 
+@uref's names are to be translated.
+
 In any section which looks like
 
 @menu
@@ -192,13 +199,27 @@ In any section which looks like
 the node names (nodeN) are NOT to be translated, whereas extra title
 information (thingN) is.
 
-
 Every node name or section title must from now on be translated
 separately in a .po file (just as well as LilyPond output messages).
 This .po file should be in Documentation/po.
 
-Make sure to keep *verbatim* copies of music snippets (in @lilypond blocs).
-@example blocs do not have to be verbatim copies, e.g. variable names,
+
+Please keep verbatim copies of music snippets (in @lilypond blocs).
+However, some music snippets containing text that shows in the
+rendered music, and sometimes translating this text really helps the
+user to understand the documentation; in this case, and only in this
+case, you may as an exception translate text in the music snippet, and
+then you must add a line immediately before the @lilypond block,
+beginning with
+
+@c KEEP LY
+
+Otherwise the music snippet would be reset to the same contents as the
+English version at next 'make snippet-update' run (see UPDATING A
+TRANSLATION below).
+
+
+@example blocs need not be verbatim copies, e.g. variable names,
 file names and comments should be translated.
 
 Index entries (@cindex and so on) should be translated.
@@ -209,6 +230,14 @@ please ask the Translation meister and/or the Documentation Editor on
 lilypond-devel@gnu.org.
 
 
+* PROGRAM USAGE MANUAL
+
+Copy user/lilypond-program.tely into <MY-LANGUAGE>/user, then
+translate this file and run skeleton-update (see UPDATE A TRANSLATION
+below).  Your are now ready to translate program usage manual exactly
+like the user manual.
+
+
 * DOCUMENTATION INDEX index.html.in
 
 Unlike almost all HTML pages in this documentation, links in this page
@@ -226,7 +255,7 @@ replace 'make' with 'make -C Documentation') and run
 This presents a diff of the original files since the most recent
 revision of the translation.  To check a single file, run
 
-    python buildscripts/check_translation.py Documentation/<MY-LANGUAGE>/user/foo.itely
+    python buildscripts/check_translation.py buildscripts Documentation/<MY-LANGUAGE>/user/foo.itely
 
 
 
@@ -234,7 +263,7 @@ UPDATE A TRANSLATION
 
 Texinfo skeleton files, i.e. .itely files not yet translated,
 containing only the Texinfo structure can be updated automatically:
-whenever 'make check-translation' shows that such files shouldbe
+whenever 'make check-translation' shows that such files should be
 updated, run from Documentation
 
     make ISOLANG=<MY_LANGUAGE> skeleton-update
@@ -244,6 +273,29 @@ Documentation or Documentation/po)
 
     make po-update
 
+WARNING: if you run po-update and somebody else does the same and
+pushes before you push or send a patch to be applied, there will be a
+conflict when you pull.  Therefore, it is better that only the
+Translation meister runs this command.
+
+Updating music snippets can quickly become cumbersome, as most
+snippets should be identical in all languages.  Fortunately, there is
+a script than can do this odd job for you (run from Documentation):
+
+    make ISOLANG=<MY_LANGUAGE> snippet-update
+
+This script overwrites music snippets in <MY_LANGUAGE>/user/every.itely
+with music snippets from user/every.itely.  It ignores skeleton files,
+and keeps intact music snippets preceded with a line starting with '@c
+KEEP LY'; it reports an error for each .itely that has not the same
+music snippet count in both languages.
+
+Finally, a command runs the three update processes above for all
+enabled languages (from Documentation):
+
+    make all-translations-update
+
+This command is mainly intended to be used by the Translation meister.
 
 
 TECHNICAL BACKGROUND
@@ -264,3 +316,5 @@ tweak links in HTML pages
 before calling texi2pdf
 * mass-link.py -- link or symlink files between English documentation
 and documentation in other languages
+* update-snippets.py -- synchronize ly snippets with those from
+English docs