Difference between revisions of "Patching Translations"

From GnuCash
Jump to: navigation, search
(first draft)
 
(several minor improvements)
 
Line 9: Line 9:
 
# Format parameters change from c-format (<tt>%s</tt>…) to scheme-format (<tt>~a</tt>) or
 
# Format parameters change from c-format (<tt>%s</tt>…) to scheme-format (<tt>~a</tt>) or
 
# Replace a hardcoded URL by a format parameter.
 
# Replace a hardcoded URL by a format parameter.
# We permanently remove trailing spaces;
+
# We permanently  
 +
## remove duplicate or trailing spaces;
 +
## fix typos;
 
# Fix the end of
 
# Fix the end of
#: a sentence <code>.</code> if not end of line or message plus one space;
+
#: a sentence: <code>.</code> plus exactly one space, if not end of message is reached or "\n" follows;
 
#: a list element  
 
#: a list element  
 
#::simple term <code>,</code>
 
#::simple term <code>,</code>
Line 19: Line 21:
  
 
=Caution=
 
=Caution=
Some symbols depend on the used alphabet
+
Some symbols depend on the used '''alphabet'''
Full stop is in CJK <code>。</code>, some Devanagari related scripts use <code>।</code> or <code>॥</code>
+
;Full stop: is in '''CJK''' often <code>。</code>,
 +
:some '''Devanagari''' related scripts use <code>।</code> or <code>॥</code>

Latest revision as of 16:44, 9 May 2021

After some changes of messages we patch the po files to take some burden from the translatos.

When

Apply patches before msgmerge. Else you will not know, if the message was already fuzzy before. This is an issue of remove-suffix.sh.

Use Cases

  1. We dropped the colon : from the GUI labels;
  2. Format parameters change from c-format (%s…) to scheme-format (~a) or
  3. Replace a hardcoded URL by a format parameter.
  4. We permanently
    1. remove duplicate or trailing spaces;
    2. fix typos;
  5. Fix the end of
    a sentence: . plus exactly one space, if not end of message is reached or "\n" follows;
    a list element
    simple term ,
    complex term ;
    In the future
  6. Use Hellipsis instead of 3 —or rarely 2— dots (...)

Caution

Some symbols depend on the used alphabet

Full stop
is in CJK often ,
some Devanagari related scripts use or