Skip to content

Commit 1e560e1

Browse files
authored
Update prevent-translation.md
1 parent 9c39069 commit 1e560e1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

articles/cognitive-services/Translator/prevent-translation.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: translator-text
1010
ms.topic: conceptual
11-
ms.date: 11/21/2019
11+
ms.date: 03/20/2020
1212
ms.author: swmachan
1313
---
1414

@@ -17,9 +17,8 @@ ms.author: swmachan
1717
The Translator Text API allows you to tag content so that it isn't translated. For example, you may want to tag code, a brand name, or a word/phrase that doesn't make sense when localized.
1818

1919
## Methods for preventing translation
20-
1. Escape to a Twitter tag @somethingtopassthrough or #somethingtopassthrough. Un-escape after translation. This is the regular expression for valid twitter tags: `\B@[A-Za-z]+[A-Za-z0-9_]+)`. A tag should start with a "@" sign, followed by a character and then followed by one or many characters, digits or underscore. It is recommended to keep tags short and the opening tag must be preceded by a space.
2120

22-
2. Tag your content with `notranslate`. It's by design that this works only when the input textType is set as HTML
21+
1. Tag your content with `notranslate`. It's by design that this works only when the input textType is set as HTML
2322

2423
Example:
2524

@@ -33,11 +32,11 @@ The Translator Text API allows you to tag content so that it isn't translated. F
3332
<div>This will be translated. </div>
3433
```
3534

36-
3. Use the [dynamic dictionary](dynamic-dictionary.md) to prescribe a specific translation.
35+
2. Use the [dynamic dictionary](dynamic-dictionary.md) to prescribe a specific translation.
3736

38-
4. Don't pass the string to the Translator Text API for translation.
37+
3. Don't pass the string to the Translator Text API for translation.
3938

40-
5. Custom Translator: Use a [dictionary in Custom Translator](custom-translator/what-is-dictionary.md) to prescribe the translation of a phrase with 100% probability.
39+
4. Custom Translator: Use a [dictionary in Custom Translator](custom-translator/what-is-dictionary.md) to prescribe the translation of a phrase with 100% probability.
4140

4241

4342
## Next steps

0 commit comments

Comments
 (0)