Commit 1839816
committed
Add configurable custom file limits
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.1 parent 9aa38d6 commit 1839816
2 files changed
Lines changed: 47 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| 46 | + | |
| 47 | + | |
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
| |||
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
| 57 | + | |
| 58 | + | |
49 | 59 | | |
50 | 60 | | |
51 | 61 | | |
| |||
55 | 65 | | |
56 | 66 | | |
57 | 67 | | |
| 68 | + | |
| 69 | + | |
58 | 70 | | |
59 | 71 | | |
60 | 72 | | |
| |||
64 | 76 | | |
65 | 77 | | |
66 | 78 | | |
| 79 | + | |
| 80 | + | |
67 | 81 | | |
68 | 82 | | |
69 | 83 | | |
| |||
74 | 88 | | |
75 | 89 | | |
76 | 90 | | |
| 91 | + | |
| 92 | + | |
77 | 93 | | |
78 | 94 | | |
79 | 95 | | |
| |||
84 | 100 | | |
85 | 101 | | |
86 | 102 | | |
| 103 | + | |
| 104 | + | |
87 | 105 | | |
88 | 106 | | |
89 | 107 | | |
| |||
94 | 112 | | |
95 | 113 | | |
96 | 114 | | |
97 | | - | |
| 115 | + | |
| 116 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| |||
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
| 128 | + | |
| 129 | + | |
126 | 130 | | |
127 | 131 | | |
128 | 132 | | |
| |||
1091 | 1095 | | |
1092 | 1096 | | |
1093 | 1097 | | |
| 1098 | + | |
| 1099 | + | |
1094 | 1100 | | |
1095 | 1101 | | |
1096 | 1102 | | |
| |||
1195 | 1201 | | |
1196 | 1202 | | |
1197 | 1203 | | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
1198 | 1220 | | |
1199 | 1221 | | |
1200 | 1222 | | |
1201 | 1223 | | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | 1224 | | |
1206 | 1225 | | |
1207 | 1226 | | |
| |||
1226 | 1245 | | |
1227 | 1246 | | |
1228 | 1247 | | |
1229 | | - | |
| 1248 | + | |
1230 | 1249 | | |
1231 | 1250 | | |
1232 | 1251 | | |
1233 | 1252 | | |
1234 | 1253 | | |
1235 | | - | |
| 1254 | + | |
1236 | 1255 | | |
1237 | 1256 | | |
1238 | 1257 | | |
| |||
1569 | 1588 | | |
1570 | 1589 | | |
1571 | 1590 | | |
1572 | | - | |
| 1591 | + | |
1573 | 1592 | | |
1574 | 1593 | | |
1575 | 1594 | | |
| |||
1587 | 1606 | | |
1588 | 1607 | | |
1589 | 1608 | | |
1590 | | - | |
| 1609 | + | |
1591 | 1610 | | |
1592 | 1611 | | |
1593 | 1612 | | |
1594 | 1613 | | |
1595 | 1614 | | |
1596 | 1615 | | |
1597 | 1616 | | |
1598 | | - | |
| 1617 | + | |
1599 | 1618 | | |
1600 | 1619 | | |
1601 | 1620 | | |
| |||
0 commit comments