Treatment
Unique selection :
- Translate the content of certain sheets.
- Translate only the contents of the active sheet.
- Translate the contents of all sheets.
Multiple selection :
- To process or not to process notes.
- Whether or not to process comments in dimensions.
- Whether or not to process annotations contained in the plan background (i.e. the title block).
- Force translation. If translations are missing, they can be highlighted with a selected color.
- An option allows you to reprocess previously translated sheets, in which case they will be deleted and recreated.
Example: Highlight untranslated elements (here in red).
Here is the result for an English translation request:
Regular expressions can be set to exclude terms from translation.
Here are some examples of regular expressions that can be used:
- Example detect a date in the following format: 09/12/2019
Regular expression to use => ([0-2][0-9]|(3)[0-1])(\/) (((0)[0-9])|(1)[0-2]) (\/)\d{4}
Explanation of the coding of this field :
([0-2][0-9]|(3)[0-1])(\/) (((0)[0-9])|(1)[0-2]) (\/)\d{4}
(1) (2) (3) (4) (5)
1° group days in brackets [0-2][0-9]|(3)[0-1]
1° character : [0-2] between 0 and 2
2° character : [0-9] between 0 and 9
| or
1° character : (3) 3 only
2° character : [0-1] between 0 and 1
2nd group /
1° character only / (the preceding \ is mandatory in front of specific characters such as ' " \ /, also an ASCII or formatting code)
Otherwise, the character takes on another meaning in the coding of the expression.
In the case of /, this means taking into account the ASCII code of the / character.
We could also have pointed directly to the ASCII code => \x2F.
A simple way of retrieving the ASCII code in hexa is to use the Windows application 'Character table'.
3rd group (0)[0-9]|(1)[0-2])
1° character : ((0)[0-9]) 0 or between 0 and 9
2° character : (1)[0-2]) 1 or between 0 and 2
4th group / (same as second)
5th groupd{4}
4 numeric characters (preceding the formatting code)
- Example fields:
- .txt or .zip file location
([A-z0-9-_+]+\/)*([A-z0-9]+\.(txt|zip))
- French telephone number
(?:(?:\+|00)33[\s.-]{0,3}(?:\(0\)[\s.-]{0,3})?|0)[1-9](?:(?:[\s.-]?\d{2}){4}|\d{2}(?:[\s.-]?\d{3}){2})
- Website
(http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?
- Etc...
You can find examples of everything you need on the Internet (see Regular expression), regular expressions are used in all current programming languages.
Remember to validate your own expressions with the test tool included in DrawingTranslate.
Example : Exclude all strings beginning with "130-".
The "Values not evaluated" tab lets you specify properties for which the exception will not be taken into account.
Here, for example, notes beginning with "$PRP"In this case, the $PRPSHEET, $PRP, etc. properties will not be taken into account for processing.