From: Santiago Fernandez Madero Date: Fri, 12 Nov 2021 18:06:15 +0000 (-0800) Subject: Lock non localizable strings on regex resources (#61489) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~12290 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b39603446b301b915e94b362a4ea3197005c39d4;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Lock non localizable strings on regex resources (#61489) --- diff --git a/src/libraries/System.Text.RegularExpressions/gen/Resources/Strings.resx b/src/libraries/System.Text.RegularExpressions/gen/Resources/Strings.resx index 4edd9a7..4f6ea85 100644 --- a/src/libraries/System.Text.RegularExpressions/gen/Resources/Strings.resx +++ b/src/libraries/System.Text.RegularExpressions/gen/Resources/Strings.resx @@ -119,9 +119,11 @@ Invalid RegexGenerator usage + {Locked="RegexGenerator"} The RegexGeneratorAttribute is malformed + {Locked="RegexGeneratorAttribute"} Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed @@ -161,6 +163,7 @@ Capture group numbers must be less than or equal to Int32.MaxValue. + {Locked="Int32.MaxValue"} Capture number cannot be zero. @@ -188,6 +191,7 @@ Internal error in ScanRegex. + {Locked="ScanRegex"} Invalid group name: Group names must begin with a word character. @@ -305,5 +309,6 @@ Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. + {Locked="RegexOptions.NonBacktracking"} diff --git a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.cs.xlf b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.cs.xlf index 5c93378..0024f14 100644 --- a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.cs.xlf +++ b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.cs.xlf @@ -109,8 +109,8 @@ Internal error in ScanRegex. - Vnitřní chyba v modulu ScanRegex. - + Vnitřní chyba v modulu ScanRegex. + {Locked="ScanRegex"} Argument {0} cannot be zero-length. @@ -134,13 +134,13 @@ The RegexGeneratorAttribute is malformed - Atribut RegexGeneratorAttribute je nesprávný. - + Atribut RegexGeneratorAttribute je nesprávný. + {Locked="RegexGeneratorAttribute"} Invalid RegexGenerator usage - Neplatné použití RegexGenerator - + Neplatné použití RegexGenerator + {Locked="RegexGenerator"} Incomplete \\p{X} character escape. @@ -195,7 +195,7 @@ Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. - + {Locked="RegexOptions.NonBacktracking"} Collection is read-only. @@ -219,8 +219,8 @@ Capture group numbers must be less than or equal to Int32.MaxValue. - Počty skupin digitalizace musí být menší nebo rovny hodnotě Int32.MaxValue. - + Počty skupin digitalizace musí být menší nebo rovny hodnotě Int32.MaxValue. + {Locked="Int32.MaxValue"} 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. diff --git a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.de.xlf b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.de.xlf index 821165f..06d28e9 100644 --- a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.de.xlf +++ b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.de.xlf @@ -109,8 +109,8 @@ Internal error in ScanRegex. - Interner Fehler in ScanRegex. - + Interner Fehler in ScanRegex. + {Locked="ScanRegex"} Argument {0} cannot be zero-length. @@ -134,13 +134,13 @@ The RegexGeneratorAttribute is malformed - Das RegexGeneratorAttribute ist falsch formatiert. - + Das RegexGeneratorAttribute ist falsch formatiert. + {Locked="RegexGeneratorAttribute"} Invalid RegexGenerator usage - Ungültige RegexGenerator-Verwendung - + Ungültige RegexGenerator-Verwendung + {Locked="RegexGenerator"} Incomplete \\p{X} character escape. @@ -195,7 +195,7 @@ Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. - + {Locked="RegexOptions.NonBacktracking"} Collection is read-only. @@ -219,8 +219,8 @@ Capture group numbers must be less than or equal to Int32.MaxValue. - Erfassungsgruppennummern müssen kleiner oder gleich Int32.MaxValue sein. - + Erfassungsgruppennummern müssen kleiner oder gleich Int32.MaxValue sein. + {Locked="Int32.MaxValue"} 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. diff --git a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.es.xlf b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.es.xlf index f0f919a..b3c00c8 100644 --- a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.es.xlf +++ b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.es.xlf @@ -109,8 +109,8 @@ Internal error in ScanRegex. - Error interno en ScanRegex. - + Error interno en ScanRegex. + {Locked="ScanRegex"} Argument {0} cannot be zero-length. @@ -134,13 +134,13 @@ The RegexGeneratorAttribute is malformed - RegexGeneratorAttribute tiene un formato incorrecto - + RegexGeneratorAttribute tiene un formato incorrecto + {Locked="RegexGeneratorAttribute"} Invalid RegexGenerator usage - Uso de RegexGenerator no válido - + Uso de RegexGenerator no válido + {Locked="RegexGenerator"} Incomplete \\p{X} character escape. @@ -195,7 +195,7 @@ Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. - + {Locked="RegexOptions.NonBacktracking"} Collection is read-only. @@ -219,8 +219,8 @@ Capture group numbers must be less than or equal to Int32.MaxValue. - Los números del grupo de capturas deben ser menores o iguales que Int32.MaxValue. - + Los números del grupo de capturas deben ser menores o iguales que Int32.MaxValue. + {Locked="Int32.MaxValue"} 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. diff --git a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.fr.xlf b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.fr.xlf index 0a9bb52..74474b7 100644 --- a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.fr.xlf +++ b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.fr.xlf @@ -109,8 +109,8 @@ Internal error in ScanRegex. - Erreur interne dans ScanRegex. - + Erreur interne dans ScanRegex. + {Locked="ScanRegex"} Argument {0} cannot be zero-length. @@ -134,13 +134,13 @@ The RegexGeneratorAttribute is malformed - RegexGeneratorAttribute est malformé - + RegexGeneratorAttribute est malformé + {Locked="RegexGeneratorAttribute"} Invalid RegexGenerator usage - Utilisation de RegexGenerator non valide - + Utilisation de RegexGenerator non valide + {Locked="RegexGenerator"} Incomplete \\p{X} character escape. @@ -195,7 +195,7 @@ Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. - + {Locked="RegexOptions.NonBacktracking"} Collection is read-only. @@ -219,8 +219,8 @@ Capture group numbers must be less than or equal to Int32.MaxValue. - Les nombres de groupes de capture doivent être inférieurs ou égaux à Int32.MaxValue. - + Les nombres de groupes de capture doivent être inférieurs ou égaux à Int32.MaxValue. + {Locked="Int32.MaxValue"} 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. diff --git a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.it.xlf b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.it.xlf index 30d0b81..c166769 100644 --- a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.it.xlf +++ b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.it.xlf @@ -109,8 +109,8 @@ Internal error in ScanRegex. - Errore interno in ScanRegex. - + Errore interno in ScanRegex. + {Locked="ScanRegex"} Argument {0} cannot be zero-length. @@ -134,13 +134,13 @@ The RegexGeneratorAttribute is malformed - RegexGeneratorAttribute non è valido - + RegexGeneratorAttribute non è valido + {Locked="RegexGeneratorAttribute"} Invalid RegexGenerator usage - Utilizzo di RegexGenerator non valido - + Utilizzo di RegexGenerator non valido + {Locked="RegexGenerator"} Incomplete \\p{X} character escape. @@ -195,7 +195,7 @@ Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. - + {Locked="RegexOptions.NonBacktracking"} Collection is read-only. @@ -219,8 +219,8 @@ Capture group numbers must be less than or equal to Int32.MaxValue. - I numeri del gruppo Capture devono essere minori o uguali a Int32.MaxValue. - + I numeri del gruppo Capture devono essere minori o uguali a Int32.MaxValue. + {Locked="Int32.MaxValue"} 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. diff --git a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.ja.xlf b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.ja.xlf index fe5540d..313a149 100644 --- a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.ja.xlf +++ b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.ja.xlf @@ -109,8 +109,8 @@ Internal error in ScanRegex. - ScanRegex に内部エラーが発生しました。 - + ScanRegex に内部エラーが発生しました。 + {Locked="ScanRegex"} Argument {0} cannot be zero-length. @@ -134,13 +134,13 @@ The RegexGeneratorAttribute is malformed - RegexGeneratorAttribute の形式に誤りがあります - + RegexGeneratorAttribute の形式に誤りがあります + {Locked="RegexGeneratorAttribute"} Invalid RegexGenerator usage - RegexGenerator の使用法が無効です - + RegexGenerator の使用法が無効です + {Locked="RegexGenerator"} Incomplete \\p{X} character escape. @@ -195,7 +195,7 @@ Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. - + {Locked="RegexOptions.NonBacktracking"} Collection is read-only. @@ -219,8 +219,8 @@ Capture group numbers must be less than or equal to Int32.MaxValue. - キャプチャ グループ数は、Int32.MaxValue 以下でなければなりません。 - + キャプチャ グループ数は、Int32.MaxValue 以下でなければなりません。 + {Locked="Int32.MaxValue"} 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. diff --git a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.ko.xlf b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.ko.xlf index 6654610..6598516 100644 --- a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.ko.xlf +++ b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.ko.xlf @@ -109,8 +109,8 @@ Internal error in ScanRegex. - ScanRegex에 내부 오류가 있습니다. - + ScanRegex에 내부 오류가 있습니다. + {Locked="ScanRegex"} Argument {0} cannot be zero-length. @@ -134,13 +134,13 @@ The RegexGeneratorAttribute is malformed - RegexGeneratorAttribute의 형식이 잘못되었습니다. - + RegexGeneratorAttribute의 형식이 잘못되었습니다. + {Locked="RegexGeneratorAttribute"} Invalid RegexGenerator usage - 잘못된 RegexGenerator 사용 - + 잘못된 RegexGenerator 사용 + {Locked="RegexGenerator"} Incomplete \\p{X} character escape. @@ -195,7 +195,7 @@ Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. - + {Locked="RegexOptions.NonBacktracking"} Collection is read-only. @@ -219,8 +219,8 @@ Capture group numbers must be less than or equal to Int32.MaxValue. - 캡처 그룹 번호는 Int32.MaxValue보다 작거나 같아야 합니다. - + 캡처 그룹 번호는 Int32.MaxValue보다 작거나 같아야 합니다. + {Locked="Int32.MaxValue"} 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. diff --git a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.pl.xlf b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.pl.xlf index f84553c..82d8449 100644 --- a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.pl.xlf +++ b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.pl.xlf @@ -109,8 +109,8 @@ Internal error in ScanRegex. - Błąd wewnętrzny w elemencie ScanRegex. - + Błąd wewnętrzny w elemencie ScanRegex. + {Locked="ScanRegex"} Argument {0} cannot be zero-length. @@ -134,13 +134,13 @@ The RegexGeneratorAttribute is malformed - Atrybut RegexGeneratorAttribute jest źle sformułowany - + Atrybut RegexGeneratorAttribute jest źle sformułowany + {Locked="RegexGeneratorAttribute"} Invalid RegexGenerator usage - Nieprawidłowe użycie atrybutu RegexGenerator - + Nieprawidłowe użycie atrybutu RegexGenerator + {Locked="RegexGenerator"} Incomplete \\p{X} character escape. @@ -195,7 +195,7 @@ Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. - + {Locked="RegexOptions.NonBacktracking"} Collection is read-only. @@ -219,8 +219,8 @@ Capture group numbers must be less than or equal to Int32.MaxValue. - Numery grup przechwytywania muszą być mniejsze lub równe wartości Int32.MaxValue. - + Numery grup przechwytywania muszą być mniejsze lub równe wartości Int32.MaxValue. + {Locked="Int32.MaxValue"} 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. diff --git a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.pt-BR.xlf b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.pt-BR.xlf index ee28458..5134584 100644 --- a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.pt-BR.xlf +++ b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.pt-BR.xlf @@ -109,8 +109,8 @@ Internal error in ScanRegex. - Erro interno em ScanRegex. - + Erro interno em ScanRegex. + {Locked="ScanRegex"} Argument {0} cannot be zero-length. @@ -134,13 +134,13 @@ The RegexGeneratorAttribute is malformed - O RegexGeneratorAttribute está malformado - + O RegexGeneratorAttribute está malformado + {Locked="RegexGeneratorAttribute"} Invalid RegexGenerator usage - Uso Inválido do RegexGenerator - + Uso Inválido do RegexGenerator + {Locked="RegexGenerator"} Incomplete \\p{X} character escape. @@ -195,7 +195,7 @@ Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. - + {Locked="RegexOptions.NonBacktracking"} Collection is read-only. @@ -219,8 +219,8 @@ Capture group numbers must be less than or equal to Int32.MaxValue. - Os números de grupo de captura devem ser menores que ou iguais a Int32.MaxValue. - + Os números de grupo de captura devem ser menores que ou iguais a Int32.MaxValue. + {Locked="Int32.MaxValue"} 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. diff --git a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.ru.xlf b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.ru.xlf index 99b880c..e0b05ab 100644 --- a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.ru.xlf +++ b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.ru.xlf @@ -109,8 +109,8 @@ Internal error in ScanRegex. - Внутренняя ошибка в ScanRegex. - + Внутренняя ошибка в ScanRegex. + {Locked="ScanRegex"} Argument {0} cannot be zero-length. @@ -134,13 +134,13 @@ The RegexGeneratorAttribute is malformed - Ошибка в регулярном выражении RegexGeneratorAttribute - + Ошибка в регулярном выражении RegexGeneratorAttribute + {Locked="RegexGeneratorAttribute"} Invalid RegexGenerator usage - Недопустимое использование RegexGenerator - + Недопустимое использование RegexGenerator + {Locked="RegexGenerator"} Incomplete \\p{X} character escape. @@ -195,7 +195,7 @@ Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. - + {Locked="RegexOptions.NonBacktracking"} Collection is read-only. @@ -219,8 +219,8 @@ Capture group numbers must be less than or equal to Int32.MaxValue. - Номера групп захвата должны быть меньше или равны Int32.MaxValue. - + Номера групп захвата должны быть меньше или равны Int32.MaxValue. + {Locked="Int32.MaxValue"} 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. diff --git a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.tr.xlf b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.tr.xlf index bb6c8e1..7abb136 100644 --- a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.tr.xlf +++ b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.tr.xlf @@ -109,8 +109,8 @@ Internal error in ScanRegex. - ScanRegex iç hatası. - + ScanRegex iç hatası. + {Locked="ScanRegex"} Argument {0} cannot be zero-length. @@ -134,13 +134,13 @@ The RegexGeneratorAttribute is malformed - RegexGeneratorAttribute hatalı biçimlendirilmiş - + RegexGeneratorAttribute hatalı biçimlendirilmiş + {Locked="RegexGeneratorAttribute"} Invalid RegexGenerator usage - Geçersiz RegexGenerator kullanımı - + Geçersiz RegexGenerator kullanımı + {Locked="RegexGenerator"} Incomplete \\p{X} character escape. @@ -195,7 +195,7 @@ Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. - + {Locked="RegexOptions.NonBacktracking"} Collection is read-only. @@ -219,8 +219,8 @@ Capture group numbers must be less than or equal to Int32.MaxValue. - Yakalama grubu numaraları Int32.MaxValue değerine eşit veya bundan küçük olmalıdır. - + Yakalama grubu numaraları Int32.MaxValue değerine eşit veya bundan küçük olmalıdır. + {Locked="Int32.MaxValue"} 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. diff --git a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.zh-Hans.xlf b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.zh-Hans.xlf index a17a210..72046a0 100644 --- a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.zh-Hans.xlf +++ b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.zh-Hans.xlf @@ -109,8 +109,8 @@ Internal error in ScanRegex. - ScanRegex 中的内部错误。 - + ScanRegex 中的内部错误。 + {Locked="ScanRegex"} Argument {0} cannot be zero-length. @@ -134,13 +134,13 @@ The RegexGeneratorAttribute is malformed - RegexGeneratorAttribute 格式不正确 - + RegexGeneratorAttribute 格式不正确 + {Locked="RegexGeneratorAttribute"} Invalid RegexGenerator usage - 无效的 RegexGenerator 用法 - + 无效的 RegexGenerator 用法 + {Locked="RegexGenerator"} Incomplete \\p{X} character escape. @@ -195,7 +195,7 @@ Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. - + {Locked="RegexOptions.NonBacktracking"} Collection is read-only. @@ -219,8 +219,8 @@ Capture group numbers must be less than or equal to Int32.MaxValue. - 捕获组的数量必须小于或等于 Int32.MaxValue。 - + 捕获组的数量必须小于或等于 Int32.MaxValue。 + {Locked="Int32.MaxValue"} 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. diff --git a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.zh-Hant.xlf b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.zh-Hant.xlf index 6c55244..87e6ae8 100644 --- a/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.zh-Hant.xlf +++ b/src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.zh-Hant.xlf @@ -109,8 +109,8 @@ Internal error in ScanRegex. - ScanRegex 發生內部錯誤。 - + ScanRegex 發生內部錯誤。 + {Locked="ScanRegex"} Argument {0} cannot be zero-length. @@ -134,13 +134,13 @@ The RegexGeneratorAttribute is malformed - RegexGeneratorAttribute 格式錯誤 - + RegexGeneratorAttribute 格式錯誤 + {Locked="RegexGeneratorAttribute"} Invalid RegexGenerator usage - 無效的 RegexGenerator 使用方式 - + 無效的 RegexGenerator 使用方式 + {Locked="RegexGenerator"} Incomplete \\p{X} character escape. @@ -195,7 +195,7 @@ Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. - + {Locked="RegexOptions.NonBacktracking"} Collection is read-only. @@ -219,8 +219,8 @@ Capture group numbers must be less than or equal to Int32.MaxValue. - 擷取的群組數目必須小於或等於 Int32.MaxValue。 - + 擷取的群組數目必須小於或等於 Int32.MaxValue。 + {Locked="Int32.MaxValue"} 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. diff --git a/src/libraries/System.Text.RegularExpressions/src/Resources/Strings.resx b/src/libraries/System.Text.RegularExpressions/src/Resources/Strings.resx index 4f4fef7..ba430db 100644 --- a/src/libraries/System.Text.RegularExpressions/src/Resources/Strings.resx +++ b/src/libraries/System.Text.RegularExpressions/src/Resources/Strings.resx @@ -111,6 +111,7 @@ Internal error in ScanRegex. + {Locked="ScanRegex"} Invalid group name: Group names must begin with a word character. @@ -225,12 +226,15 @@ Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking. + {Locked="RegexOptions.NonBacktracking"} RegexOptions.NonBacktracking is not supported in conjunction with RegexOptions.{0}. + {Locked="RegexOptions.NonBacktracking"} RegexOptions.NonBacktracking is not supported in conjunction with expressions containing: '{0}'. + {Locked="RegexOptions.NonBacktracking"} backreference (\\ number)