Using JEdit and regexps for translation | |
You can use JEdit and its Search and Replace feature to make the process of translation much easier and faster. Amongst the common text match and replace you can search strings using more powerful regular expressions and replace the matches with a so called BeanShell snippet. I'm using for example this setting in the Search and Replace dialog (Ctrl+F): |
Example 1 | |
Search for: Copy to clipboard
Replace with: Return value of a BeanShell snippet Copy to clipboard
Search in: Current buffer
Then I do prefer to control visually what's happening by clicking "Find" button first and then "Replace & Find" until all matches are replaced or you can click "Replace All" when you're sure what you're doing 😉. This example will match all untranslated strings on lines such as:
and replace them with:
|
Another example: | |
Search for: Copy to clipboard
Replace with: Copy to clipboard
|