The solution for the demo application in this manual has one project file (extension .rigproj). That file has the following content:


<?xml version="1.0" encoding="utf-8"?>

<project name="piwik" guid="piwik" relbasepath="..\files">

  <parsersettings />

  <targetrules>

    <targetrule id="tr">$(sourceFilePath)\$(targetLocale)$(sourceFileExt)</targetrule>

  </targetrules>

  <mappings />

  <resources>

    <file relpath="lang\en.json" guid="Core" parser="json" targetrule="tr" />

    <file relpath="plugins\en.json" guid="Actions" parser="json" targetrule="tr" />

    ...

    <file relpath="Measurable\en.json" guid="meas" parser="json" targetrule="tr" />

    <file relpath="Widgets\en.json" guid="widgets" parser="json" targetrule="tr" />

  </resources>

</project>



Element

Description

project

Root element. That element has the following attributes:

  • name: name of the project.
  • guid: unique identifier of this project within this solution. It can be left empty. In that case, the files over all projects in the solution must have a unique ID.
  • relbasepath: path (w.r.t. the location of this project file) that is the root folder of the resources.

parsersettings

See Parser settings.

targetrules

The targetrules element contains targetrule elements. The targetrule element specifies the target rule, see also Enter target rules. The targetrule element has the following attributes:

  • id. The unique ID of the target rule within this project.

mappings

See Mapping of variables in target rules.

resources

The resources element contains file elements. The file element has the following attributes:

  • relpath. The relative path (w.r.t. the project/@relbasepath) of the file.
  • guid. Unique identifier of the file within the project.
  • parser. The ID of the parser.
  • targetrule. The ID of the target rule (specified in the targetrules-section).