Skip to content

Commit f1242b4

Browse files
authored
CLDR-16853 remove raw URLs from checks, handle via subtype map (#3663)
1 parent 0ce3fdd commit f1242b4

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckDisplayCollisions.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,7 @@ public CheckCLDR handleCheck(
349349

350350
Matcher matcher = null;
351351
String message =
352-
"Can't have same translation as {0}. Please change either this name or the other one. "
353-
+ "See <a target='doc' href='http://cldr.unicode.org/translation/short-names-and-keywords#TOC-Unique-Names'>Unique-Names</a>.";
352+
"Can't have same translation as {0}. Please change either this name or the other one.";
354353
Matcher currentAttributesToIgnore = ignoreAltAndCountAttributes;
355354
Set<String> paths;
356355
if (myType == Type.DECIMAL_FORMAT) {

tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckForCopy.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,7 @@ private void addFailure(List<CheckStatus> result, Failure failure) {
268268
.setSubtype(Subtype.sameAsEnglish)
269269
.setCheckOnSubmit(false)
270270
.setMessage(
271-
"The value is the same as in English: see <a target='CLDR-ST-DOCS' href='"
272-
+ CLDRURLS.ERRORS_URL
273-
+ "'>Fixing Errors and Warnings</a>.",
274-
new Object[] {}));
271+
"The value is the same as in English.", new Object[] {}));
275272
break;
276273
case same_as_code:
277274
result.add(
@@ -281,10 +278,7 @@ private void addFailure(List<CheckStatus> result, Failure failure) {
281278
.setSubtype(Subtype.sameAsCode)
282279
.setCheckOnSubmit(false)
283280
.setMessage(
284-
"The value is the same as the 'code': see <a target='CLDR-ST-DOCS' href='"
285-
+ CLDRURLS.ERRORS_URL
286-
+ "'>Fixing Errors and Warnings</a>.",
287-
new Object[] {}));
281+
"The value is the same as the 'code'.", new Object[] {}));
288282
break;
289283
default:
290284
}

tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckForExemplars.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -851,13 +851,7 @@ private void addMissingMessage(
851851
}
852852
scriptString.append("}");
853853
}
854-
final String helpUrl =
855-
"http://cldr.unicode.org/translation/-core-data/exemplars#TOC-Handling-Warnings-in-Exemplar-characters";
856-
final String message =
857-
"The characters \u200E{0}\u200E {1} {2}. "
858-
+ "For what to do, see <i>Handling Warnings</i> in <a target='CLDR-ST-DOCS' href='"
859-
+ helpUrl
860-
+ "'>Exemplar Characters</a>.";
854+
final String message = "The characters \u200E{0}\u200E {1} {2}.";
861855
result.add(
862856
new CheckStatus()
863857
.setCause(this)

0 commit comments

Comments
 (0)