Warning, /sdk/pology/lang/fr/rules/README is written in an unsupported language. File is not indexed.

0001 Rule files syntax
0002 =================
0003 
0004 Naming and path: 
0005 - a rule file must end with a ".rules" suffix.
0006 - rule files must be located into the l10n/<lang>/rules directory, where <lang> corresponds to your language code (eg. 'fr' for french rules).
0007 
0008 File structure and syntax: 
0009 - All lines begining with a # are considered as comments.
0010 - Each rule file must begin with a header indicating the author(s) and license.
0011 - Each rule file must end with a footer composed of a line of comment (eg. # End of rule file).
0012 - A blank line is used to separate two rules.
0013 
0014 Rule definition: 
0015 - A rule is composed of three parts: 
0016         o The pattern. It is used to find text matching the rule. The pattern should be a valid regular expression.
0017         o The hint. It indicates the user what to do to correct the message.
0018         o Valid expression. It indicates exceptions for which the rule should not match.
0019 - Pattern and hint are mandatory. Valid expression is optional.
0020 
0021 Pattern syntax: 
0022 - [regexp] # where 'regexp' is a regular expression ; eg. [status|statut] will trigger the rule for the words 'status' and 'statut'.
0023 
0024 Hint syntax: 
0025 - hint="hint message" # eg. hint="remplacer `status' ou `statut' par `état'".
0026 
0027 Valid expression syntax: 
0028 One rule can have multiple valid expressions. Each is evaluated separately and may be made of regular expressions (represented below with the word 'regexp'). Here are some examples:
0029 - valid after="regexp" # the rule will not match if it is found after the provided pattern/word
0030 - valid before="regexp" # the rule will not match if it is found before the provided pattern/word
0031 - valid before="regexp" after="regexp" # both are needed to cancel the rule triggering
0032 - valid file="myApps.po" # always valid for this .po file
0033 - valid file="myApps.po" after="regexp" before="regexp"
0034 - valid ctx="regexp" after="regexp" before="regexp" # only in a message in this PO context
0035 - valid file="myApps.po" msgid="The msgid to consider" # only in this message in this .po file (but do we really need this kind of rules ?)
0036 
0037 Eg. of rule: 
0038 [status|statut]
0039 valid after="[Ss]mb"   
0040 hint="remplacer `status' ou `statut' par `état'"