Quantcast
Channel: RESX Manager
Viewing all articles
Browse latest Browse all 252

Updated Wiki: Exclude Projects, Directories, Files or Entries

$
0
0

Exclude Projects, Directories, Files or Entries from Translation

Thanks to pqsys for the idea.

Using the interface of RESX Manager, you can select projects and files to export to Excel. Nevertheless, it might be usefull to completely exclude files, folders or resource entries from translation.

By writing simple configuration files you can exclude specific projects, folders, resource files or resource entries from translation. Effected objects will not be loaded and thus not exported to Excel.

To exclude for instance all files called "StringsNoTranslate.resxm" in the entire solution (including all projects), just create a configuration file called "SolutionName.sln.resxm" in the solution directory file with the following content.

<solution><files><excludePattern="StringsNoTranslate.resx"/></files></solution>

Objects are matched using a search pattern and an operator that are applied to the names. There are different operators:

Operator Describtion
Like Matches everything that contains the pattern (case insensitive). (Default)
Equals Matches exact strings (case insensitive).
Regex Uses Regular Expressions to select matching strings.


Several exclude-nodes will be connected as logical OR. Project configurations are called "ProjectName.resxm". Please see the following examples containing all available options.

Sample Configuration for solutions (SolutionName.sln.resxm)
<solution><projects><excludeOperator="Equals"Pattern="InvariantProject"/><excludeOperator="Equals"Pattern="InvariantProject2"/></projects><directories><excludeOperator="Like"Pattern="hidden_dir"/></directories><files><excludeOperator="Equals"Pattern="StringsNoTranslate.resx"/></files><groups><excludeOperator="Regex"Pattern="Test[0-9]"/></groups></solution>

Sample Configuration for projects (ProjectName.resxm)
<solution><directories><excludeOperator="Like"Pattern="hidden_dir"/></directories><files><excludeOperator="Equals"Pattern="StringsNoTranslate.resx"/></files><groups><excludeOperator="Regex"Pattern="Test[0-9]"/></groups></solution>

Further topics


Viewing all articles
Browse latest Browse all 252

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>