Skip to content

Conversation

@vanmatten
Copy link

Implemented configurable limits (both lines and characters) for searching regex match in a custom/MCM file, using customTxtDefinition.txt. This is needed for finding translatable strings in files where a match can't be found within the previous limits, causing the files not being recognized. This can occur in files where only a few strings are translatable.

Changes:

  • Added CustomTypeLineLimit and CustomTypeSizeLimit to customTxtDefinition.txt.
  • Added iLineLimit & iSizeLimit properties to rcustomTxtDefinition and getLineLimit & getSizeLimit methods to pcustomTxtDefinition.
  • Edited tCustomTxt.mcmDecider() function to use the configurable limits instead of the fixed ones. Previous values are set as default.

This changes aren't tested because I don't know how to do it.

Implemented configurable limits (both lines and characters) for searching regex match in a custom/MCM file, using customTxtDefinition.txt.
This is needed for finding translatable strings in files where a match can't be found within the previous limits, causing the files not being recognized. This can occur in files where only a few strings are translatable.

Changes:
- Added `CustomTypeLineLimit` and `CustomTypeSizeLimit` to customTxtDefinition.txt.
- Added `iLineLimit` & `iSizeLimit` properties to `rcustomTxtDefinition` and `getLineLimit` & `getSizeLimit` methods to `pcustomTxtDefinition`.
- Edited `tCustomTxt.mcmDecider()` function to use the configurable limits instead of the fixed ones. Previous values are set as default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant