"Fossies" - the Fresh Open Source Software Archive

Member "libqalculate-3.6.0/README.translate" (28 Jun 2019, 6753 Bytes) of package /linux/privat/libqalculate-3.6.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "README.translate": 3.2.0_vs_3.3.0.

    1 The Qalculate! developer(s) are thankful for every possible translation and willing to answer any questions or help with any problems you may have as a translator. Please read through this document before starting the translation.
    2 
    3 Qalculate! is split up in one library package (libqalculate, which also includes the text interface) and GUI packages (currently only qalculate-gtk).
    4 
    5 The GUI packages contains translations for the GUI text as usual in the po directory. The libqalculate translations is split up in two -- translation of error messages, type information and the text interface in po, and translation of definitions of functions, variables, units, etc. in po-defs (merged with the data files in data).
    6 
    7 The source packages for libqalculate and qalculate-gtk do not include any .pot files. Instead the pot file is created with "intltool-update --pot". You can then run "msginit --locale=??" or just copy the pot-file to ??.po. The translation file is updated with "intltool-update language code" (ex. intltool-update sv, for the Swedish translation) from the po directories. intltool-update is distributed with intltool.
    8 
    9 The translation of the libqalculate message strings in po-defs require some further knowledge. These are merged with the xml data files in libqalculate/data. The different types of message strings in these files are:
   10 
   11 Data objects: Values of text properties
   12 Data sets: Categories, titles, names, descriptions, property titles, property names and property descriptions
   13 Functions: Categories, titles, names, descriptions and argument titles
   14 Variables/constants: Categories, titles and names
   15 Units: Categories, titles and names
   16 
   17 To distinguish equal text strings with different meaning (for example "Mercury" as a planet and as a chemical element), some text strings is preceded by "!type!" (for example "!units!" for units). Everything between and including a exclamation mark in the beginning and the second exclamation mark is not displayed in the application. Translators do not need include to include "!type!" in the translation.
   18 
   19 Names require some special considerations from the translator. The names are used to reference an object in a mathematical expression and to display them in a result. An object can have any number of names but each must be fully unique, with the exception that functions can have names used by other types of objects (for example "min" is used as a name for the minute unit but also for a function returning smallest value in a vector). The translation does not need to have the same number of names as the the untranslated object.
   20 
   21 There are some characters which are reserved for other purposes (mainly mathematical operators) and may not be included in names. These are
   22 - ~ + - * / ^ & | ! <> = ' @ ? \ { } " . , ; : ( ) [ ],
   23 - spaces, tabs and newline characters, and
   24 - unicode signs for operators.
   25 
   26 No name may begin with a digit and units are not allowed to contain a digit anywhere.
   27 
   28 All names of a object is contained in one text string. The names are separated by commas (','). The order of names decides their priority, which name is by default used for display and input. Each name may be preceeded by a a number of properties before a colon (':'). The format of the names strings is thus [properties1:]name1,[properties2:]name2,... The possible properties are
   29 - 'a': the name is an abbreviation,
   30 - 'c': the name is case-sensitive,
   31 - 'i': the name should not be presented to the user for input (but looks good for display),
   32 - 'o': the name is appropriate for completion, but should never be presented to the user,
   33 - 'p':the name is in plural form,
   34 - 'r': the name is used as reference,
   35 - 's': the name ends with a suffix (the text after the last '_' will displayed as subscript with the '_' removed, often used in combination with 'i'), and
   36 - 'u': the name contains a unicode sign.
   37 
   38 All properties is off by default, except for names with only one sign which are interpreted as abbreviations by default, and for abbreviations which by default are case-sensitive. A property can be turned off by preceeding it with a minus '-'.
   39 
   40 The reference property tells that the name will be available to all users regardless of the language used. If a reference name is not included in the translated list of names, it is appended at the end by the program. The translator can inlcude the reference names to select the position of the name and change all properties except 'r', 'c' and 'u'. All untranslated first names has the reference property explicitely specified, so names can easily be distinguished from other text strings by the preceeding properties and colon.
   41 
   42 Most functions and variables have only one name. Units usually have an abbreviated name, a normal name and a name in plural form. Units should always have a name in plural form if it differs from the singular form.
   43 
   44 Names string that is the same translated as untranslated should preferably not be copied but left empty or replaced by "-" (so that it is marked as translated), to allow the size of the definitions data files to be reduced.
   45 
   46 Property names works like the names described above except that 'r' for reference is the only possible property.
   47 
   48 Below follows some examples from the Swedish translation.
   49 
   50 msgid "ar:m,meter,p:meters,metre,p:metres"
   51 msgstr "a:m,meter"
   52 The meter unit has the abbreviated reference name "m" (case-sensitive), a normal name "meter" and a plural form "meters". Meter does also in addition have a different spelling in English. The Swedish name for meter is the same as in English but the plural form is the same as the singular, and no alternative spelling exist.
   53 
   54 msgid "r:mean"
   55 msgstr "medel"
   56 The name of the mean function is translated to "medel", but since "mean" is specified as a reference name it is appended by the program as the second name (results in "medel,r:mean").
   57 
   58 msgid "ar:SEK"
   59 msgstr "a-c:kr,a:SEK,krona,p:kronor"
   60 The English version can only use the three character code for the Swedish currency since the other names can be used for other currencies, but the translation can assume that the user refers to the local currency.
   61 
   62 msgid "-r:billion"
   63 msgstr "miljard,p:miljarder"
   64 The constants for large numbers follows two different systems in different countries. With the "short scale" billion means 1e9, while it with the "long scale" means 1e12. Therefore, these constants do not have any reference name. The short scale is used in most English-speaking countries, while in Sweden the long scale is used.
   65 
   66 msgid "r:sqrt"
   67 msgstr "-"
   68 The untranslated string is kept.
   69 
   70 qalc commands and options to commands in libqalculate/po/ follows the same principles as reference names, meaning that the untranslated message string is kept in addition to the translated.