Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Configuration OptionsDescription
Extract Quoted Strings

Web pages may contain Javascript or server side code such as PHP. You can decide whether the system will automatically extract quoted strings in code sections during translation. These configuration options are provided:

  • Show whitespaces at beginning and end to the etranslator.
  • Compress sequences of whitespaces into a single whitespace.
  • Enable the use of //notrans, //beginnotrans ... //endnotrans to delimit not translatable code.
  • Extract quoted strings even when no pattern entered in the "Exclude Quoted Strings" configuration section matches.

 

Exclude Quoted Strings 

This configuration section may be used to enter specific text segments or regular expressions to exclude from the translation. For each piece of text (segments), the system looks for the texts or regular expression patterns entered in this configuration section.

If a text/pattern matches, then it is possible to mark the segment as either translatable or not translatable. The system checks one pattern after the other until one matches. Text that match none of the entered patterns are considered translatable.


Include or Exclude Additional Content 

This configuration section may be used to specify regular expressions to extract text inside code (Javascript, etc.).

The regular expressions are not limited to quoted strings but can capture anything. The regex MUST contain capture groups named "pattern1", "pattern2", etc. Example: @(?<pattern1>.*?)@ will extract any text delimited by "@".


 

HTML Tags and Attributes Tab

...