Skip to content

Commit

Permalink
Lock non localizable strings on regex resources (#61489)
Browse files Browse the repository at this point in the history
  • Loading branch information
safern committed Nov 12, 2021
1 parent 5781948 commit b396034
Show file tree
Hide file tree
Showing 15 changed files with 126 additions and 117 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,11 @@
</resheader>
<data name="InvalidRegexGeneratorAttributeTitle" xml:space="preserve">
<value>Invalid RegexGenerator usage</value>
<comment>{Locked="RegexGenerator"}</comment>
</data>
<data name="InvalidRegexGeneratorAttributeMessage" xml:space="preserve">
<value>The RegexGeneratorAttribute is malformed</value>
<comment>{Locked="RegexGeneratorAttribute"}</comment>
</data>
<data name="MultipleRegexGeneratorAttributesMessage" xml:space="preserve">
<value>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</value>
Expand Down Expand Up @@ -161,6 +163,7 @@
</data>
<data name="QuantifierOrCaptureGroupOutOfRange" xml:space="preserve">
<value>Capture group numbers must be less than or equal to Int32.MaxValue.</value>
<comment>{Locked="Int32.MaxValue"}</comment>
</data>
<data name="CaptureGroupOfZero" xml:space="preserve">
<value>Capture number cannot be zero.</value>
Expand Down Expand Up @@ -188,6 +191,7 @@
</data>
<data name="InternalError_ScanRegex" xml:space="preserve">
<value>Internal error in ScanRegex.</value>
<comment>{Locked="ScanRegex"}</comment>
</data>
<data name="CaptureGroupNameInvalid" xml:space="preserve">
<value>Invalid group name: Group names must begin with a word character.</value>
Expand Down Expand Up @@ -305,5 +309,6 @@
</data>
<data name="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups" xml:space="preserve">
<value>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</value>
<comment>{Locked="RegexOptions.NonBacktracking"}</comment>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
</trans-unit>
<trans-unit id="InternalError_ScanRegex">
<source>Internal error in ScanRegex.</source>
<target state="translated">Vnitřní chyba v modulu ScanRegex.</target>
<note />
<target state="needs-review-translation">Vnitřní chyba v modulu ScanRegex.</target>
<note>{Locked="ScanRegex"}</note>
</trans-unit>
<trans-unit id="InvalidEmptyArgument">
<source>Argument {0} cannot be zero-length.</source>
Expand All @@ -134,13 +134,13 @@
</trans-unit>
<trans-unit id="InvalidRegexGeneratorAttributeMessage">
<source>The RegexGeneratorAttribute is malformed</source>
<target state="translated">Atribut RegexGeneratorAttribute je nesprávný.</target>
<note />
<target state="needs-review-translation">Atribut RegexGeneratorAttribute je nesprávný.</target>
<note>{Locked="RegexGeneratorAttribute"}</note>
</trans-unit>
<trans-unit id="InvalidRegexGeneratorAttributeTitle">
<source>Invalid RegexGenerator usage</source>
<target state="translated">Neplatné použití RegexGenerator</target>
<note />
<target state="needs-review-translation">Neplatné použití RegexGenerator</target>
<note>{Locked="RegexGenerator"}</note>
</trans-unit>
<trans-unit id="InvalidUnicodePropertyEscape">
<source>Incomplete \\p{X} character escape.</source>
Expand Down Expand Up @@ -195,7 +195,7 @@
<trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups">
<source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source>
<target state="new">Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</target>
<note />
<note>{Locked="RegexOptions.NonBacktracking"}</note>
</trans-unit>
<trans-unit id="NotSupported_ReadOnlyCollection">
<source>Collection is read-only.</source>
Expand All @@ -219,8 +219,8 @@
</trans-unit>
<trans-unit id="QuantifierOrCaptureGroupOutOfRange">
<source>Capture group numbers must be less than or equal to Int32.MaxValue.</source>
<target state="translated">Počty skupin digitalizace musí být menší nebo rovny hodnotě Int32.MaxValue.</target>
<note />
<target state="needs-review-translation">Počty skupin digitalizace musí být menší nebo rovny hodnotě Int32.MaxValue.</target>
<note>{Locked="Int32.MaxValue"}</note>
</trans-unit>
<trans-unit id="RegexMatchTimeoutException_Occurred">
<source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
</trans-unit>
<trans-unit id="InternalError_ScanRegex">
<source>Internal error in ScanRegex.</source>
<target state="translated">Interner Fehler in ScanRegex.</target>
<note />
<target state="needs-review-translation">Interner Fehler in ScanRegex.</target>
<note>{Locked="ScanRegex"}</note>
</trans-unit>
<trans-unit id="InvalidEmptyArgument">
<source>Argument {0} cannot be zero-length.</source>
Expand All @@ -134,13 +134,13 @@
</trans-unit>
<trans-unit id="InvalidRegexGeneratorAttributeMessage">
<source>The RegexGeneratorAttribute is malformed</source>
<target state="translated">Das RegexGeneratorAttribute ist falsch formatiert.</target>
<note />
<target state="needs-review-translation">Das RegexGeneratorAttribute ist falsch formatiert.</target>
<note>{Locked="RegexGeneratorAttribute"}</note>
</trans-unit>
<trans-unit id="InvalidRegexGeneratorAttributeTitle">
<source>Invalid RegexGenerator usage</source>
<target state="translated">Ungültige RegexGenerator-Verwendung</target>
<note />
<target state="needs-review-translation">Ungültige RegexGenerator-Verwendung</target>
<note>{Locked="RegexGenerator"}</note>
</trans-unit>
<trans-unit id="InvalidUnicodePropertyEscape">
<source>Incomplete \\p{X} character escape.</source>
Expand Down Expand Up @@ -195,7 +195,7 @@
<trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups">
<source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source>
<target state="new">Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</target>
<note />
<note>{Locked="RegexOptions.NonBacktracking"}</note>
</trans-unit>
<trans-unit id="NotSupported_ReadOnlyCollection">
<source>Collection is read-only.</source>
Expand All @@ -219,8 +219,8 @@
</trans-unit>
<trans-unit id="QuantifierOrCaptureGroupOutOfRange">
<source>Capture group numbers must be less than or equal to Int32.MaxValue.</source>
<target state="translated">Erfassungsgruppennummern müssen kleiner oder gleich Int32.MaxValue sein.</target>
<note />
<target state="needs-review-translation">Erfassungsgruppennummern müssen kleiner oder gleich Int32.MaxValue sein.</target>
<note>{Locked="Int32.MaxValue"}</note>
</trans-unit>
<trans-unit id="RegexMatchTimeoutException_Occurred">
<source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
</trans-unit>
<trans-unit id="InternalError_ScanRegex">
<source>Internal error in ScanRegex.</source>
<target state="translated">Error interno en ScanRegex.</target>
<note />
<target state="needs-review-translation">Error interno en ScanRegex.</target>
<note>{Locked="ScanRegex"}</note>
</trans-unit>
<trans-unit id="InvalidEmptyArgument">
<source>Argument {0} cannot be zero-length.</source>
Expand All @@ -134,13 +134,13 @@
</trans-unit>
<trans-unit id="InvalidRegexGeneratorAttributeMessage">
<source>The RegexGeneratorAttribute is malformed</source>
<target state="translated">RegexGeneratorAttribute tiene un formato incorrecto</target>
<note />
<target state="needs-review-translation">RegexGeneratorAttribute tiene un formato incorrecto</target>
<note>{Locked="RegexGeneratorAttribute"}</note>
</trans-unit>
<trans-unit id="InvalidRegexGeneratorAttributeTitle">
<source>Invalid RegexGenerator usage</source>
<target state="translated">Uso de RegexGenerator no válido</target>
<note />
<target state="needs-review-translation">Uso de RegexGenerator no válido</target>
<note>{Locked="RegexGenerator"}</note>
</trans-unit>
<trans-unit id="InvalidUnicodePropertyEscape">
<source>Incomplete \\p{X} character escape.</source>
Expand Down Expand Up @@ -195,7 +195,7 @@
<trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups">
<source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source>
<target state="new">Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</target>
<note />
<note>{Locked="RegexOptions.NonBacktracking"}</note>
</trans-unit>
<trans-unit id="NotSupported_ReadOnlyCollection">
<source>Collection is read-only.</source>
Expand All @@ -219,8 +219,8 @@
</trans-unit>
<trans-unit id="QuantifierOrCaptureGroupOutOfRange">
<source>Capture group numbers must be less than or equal to Int32.MaxValue.</source>
<target state="translated">Los números del grupo de capturas deben ser menores o iguales que Int32.MaxValue.</target>
<note />
<target state="needs-review-translation">Los números del grupo de capturas deben ser menores o iguales que Int32.MaxValue.</target>
<note>{Locked="Int32.MaxValue"}</note>
</trans-unit>
<trans-unit id="RegexMatchTimeoutException_Occurred">
<source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
</trans-unit>
<trans-unit id="InternalError_ScanRegex">
<source>Internal error in ScanRegex.</source>
<target state="translated">Erreur interne dans ScanRegex.</target>
<note />
<target state="needs-review-translation">Erreur interne dans ScanRegex.</target>
<note>{Locked="ScanRegex"}</note>
</trans-unit>
<trans-unit id="InvalidEmptyArgument">
<source>Argument {0} cannot be zero-length.</source>
Expand All @@ -134,13 +134,13 @@
</trans-unit>
<trans-unit id="InvalidRegexGeneratorAttributeMessage">
<source>The RegexGeneratorAttribute is malformed</source>
<target state="translated">RegexGeneratorAttribute est malformé</target>
<note />
<target state="needs-review-translation">RegexGeneratorAttribute est malformé</target>
<note>{Locked="RegexGeneratorAttribute"}</note>
</trans-unit>
<trans-unit id="InvalidRegexGeneratorAttributeTitle">
<source>Invalid RegexGenerator usage</source>
<target state="translated">Utilisation de RegexGenerator non valide</target>
<note />
<target state="needs-review-translation">Utilisation de RegexGenerator non valide</target>
<note>{Locked="RegexGenerator"}</note>
</trans-unit>
<trans-unit id="InvalidUnicodePropertyEscape">
<source>Incomplete \\p{X} character escape.</source>
Expand Down Expand Up @@ -195,7 +195,7 @@
<trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups">
<source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source>
<target state="new">Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</target>
<note />
<note>{Locked="RegexOptions.NonBacktracking"}</note>
</trans-unit>
<trans-unit id="NotSupported_ReadOnlyCollection">
<source>Collection is read-only.</source>
Expand All @@ -219,8 +219,8 @@
</trans-unit>
<trans-unit id="QuantifierOrCaptureGroupOutOfRange">
<source>Capture group numbers must be less than or equal to Int32.MaxValue.</source>
<target state="translated">Les nombres de groupes de capture doivent être inférieurs ou égaux à Int32.MaxValue.</target>
<note />
<target state="needs-review-translation">Les nombres de groupes de capture doivent être inférieurs ou égaux à Int32.MaxValue.</target>
<note>{Locked="Int32.MaxValue"}</note>
</trans-unit>
<trans-unit id="RegexMatchTimeoutException_Occurred">
<source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
</trans-unit>
<trans-unit id="InternalError_ScanRegex">
<source>Internal error in ScanRegex.</source>
<target state="translated">Errore interno in ScanRegex.</target>
<note />
<target state="needs-review-translation">Errore interno in ScanRegex.</target>
<note>{Locked="ScanRegex"}</note>
</trans-unit>
<trans-unit id="InvalidEmptyArgument">
<source>Argument {0} cannot be zero-length.</source>
Expand All @@ -134,13 +134,13 @@
</trans-unit>
<trans-unit id="InvalidRegexGeneratorAttributeMessage">
<source>The RegexGeneratorAttribute is malformed</source>
<target state="translated">RegexGeneratorAttribute non è valido</target>
<note />
<target state="needs-review-translation">RegexGeneratorAttribute non è valido</target>
<note>{Locked="RegexGeneratorAttribute"}</note>
</trans-unit>
<trans-unit id="InvalidRegexGeneratorAttributeTitle">
<source>Invalid RegexGenerator usage</source>
<target state="translated">Utilizzo di RegexGenerator non valido</target>
<note />
<target state="needs-review-translation">Utilizzo di RegexGenerator non valido</target>
<note>{Locked="RegexGenerator"}</note>
</trans-unit>
<trans-unit id="InvalidUnicodePropertyEscape">
<source>Incomplete \\p{X} character escape.</source>
Expand Down Expand Up @@ -195,7 +195,7 @@
<trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups">
<source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source>
<target state="new">Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</target>
<note />
<note>{Locked="RegexOptions.NonBacktracking"}</note>
</trans-unit>
<trans-unit id="NotSupported_ReadOnlyCollection">
<source>Collection is read-only.</source>
Expand All @@ -219,8 +219,8 @@
</trans-unit>
<trans-unit id="QuantifierOrCaptureGroupOutOfRange">
<source>Capture group numbers must be less than or equal to Int32.MaxValue.</source>
<target state="translated">I numeri del gruppo Capture devono essere minori o uguali a Int32.MaxValue.</target>
<note />
<target state="needs-review-translation">I numeri del gruppo Capture devono essere minori o uguali a Int32.MaxValue.</target>
<note>{Locked="Int32.MaxValue"}</note>
</trans-unit>
<trans-unit id="RegexMatchTimeoutException_Occurred">
<source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
</trans-unit>
<trans-unit id="InternalError_ScanRegex">
<source>Internal error in ScanRegex.</source>
<target state="translated">ScanRegex に内部エラーが発生しました。</target>
<note />
<target state="needs-review-translation">ScanRegex に内部エラーが発生しました。</target>
<note>{Locked="ScanRegex"}</note>
</trans-unit>
<trans-unit id="InvalidEmptyArgument">
<source>Argument {0} cannot be zero-length.</source>
Expand All @@ -134,13 +134,13 @@
</trans-unit>
<trans-unit id="InvalidRegexGeneratorAttributeMessage">
<source>The RegexGeneratorAttribute is malformed</source>
<target state="translated">RegexGeneratorAttribute の形式に誤りがあります</target>
<note />
<target state="needs-review-translation">RegexGeneratorAttribute の形式に誤りがあります</target>
<note>{Locked="RegexGeneratorAttribute"}</note>
</trans-unit>
<trans-unit id="InvalidRegexGeneratorAttributeTitle">
<source>Invalid RegexGenerator usage</source>
<target state="translated">RegexGenerator の使用法が無効です</target>
<note />
<target state="needs-review-translation">RegexGenerator の使用法が無効です</target>
<note>{Locked="RegexGenerator"}</note>
</trans-unit>
<trans-unit id="InvalidUnicodePropertyEscape">
<source>Incomplete \\p{X} character escape.</source>
Expand Down Expand Up @@ -195,7 +195,7 @@
<trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups">
<source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source>
<target state="new">Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</target>
<note />
<note>{Locked="RegexOptions.NonBacktracking"}</note>
</trans-unit>
<trans-unit id="NotSupported_ReadOnlyCollection">
<source>Collection is read-only.</source>
Expand All @@ -219,8 +219,8 @@
</trans-unit>
<trans-unit id="QuantifierOrCaptureGroupOutOfRange">
<source>Capture group numbers must be less than or equal to Int32.MaxValue.</source>
<target state="translated">キャプチャ グループ数は、Int32.MaxValue 以下でなければなりません。</target>
<note />
<target state="needs-review-translation">キャプチャ グループ数は、Int32.MaxValue 以下でなければなりません。</target>
<note>{Locked="Int32.MaxValue"}</note>
</trans-unit>
<trans-unit id="RegexMatchTimeoutException_Occurred">
<source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source>
Expand Down
Loading

0 comments on commit b396034

Please sign in to comment.