Error for invalid characters in the title (original) (raw)

As part of the system to communicate errors and warnings in Content Translation (T189488), we want to surface issues such as the title containing invalid characters as illustrated below:

CX-invalid-title.png (720×1 px, 255 KB)

In the future, following feature can be considered as extra:

Message text:

Your translation title contains invalid characters
Some characters cannot be used in the title of pages for technical reasons.
Please, edit the title to avoid the problematic characters.


Currently, editors trying to publish a translation with an invalid title get the following message:

error-publishing-with-invalid-characters.PNG (108×696 px, 9 KB)

Event Timeline

Pginer-WMF renamed this task from CX2: Error for invalid titles to CX2: Error for invalid characters in the title.Mar 27 2018, 11:54 AM

Pginer-WMF triaged this task as Medium priority.

Pginer-WMF lowered the priority of this task from Medium to Low.

Comment Actions

An Error is good. But it must prevent the user from creating a foreign language title in destination wiki.

Comment Actions

An Error is good. But it must prevent the user from creating a foreign language title in destination wiki.

That's the idea. In this context we distinguish errors from warnings. Errors prevent from publishing. Warnings ask you to review your content but let publish if you are confident the content is good.

Comment Actions

(Note for testing)

[CX] Publishing failed {"code":"invalidtitle","info":"Bad title "".","*":"See http://cx2-testing.wmflabs.org/api.php for API usage.

Comment Actions

[CX] Publishing failed {"code":"invalidtitle","info":"Bad title \"\".","*":"See http://cx2-testing.wmflabs.org/api.php for API usage.

When you have invalid characters in your target title and try publishing, that fails because article with invalid title cannot be created. That failure is caught in our code and error is visually displayed to the user. In addition to informing the user about the error, there is also a log in the console happening. And, it's just that, a log about the error which is correctly caught and processed, rather than unexpected error that occurred.

Comment Actions

I like the idea of Expressive error than unexpected error that occurred :).

Comment Actions