Page MenuHomePhabricator

Wikisource Export: Move i18n messages from on-wiki into the tool
Closed, ResolvedPublic5 Estimated Story Points

Description

Background: This is related to T255224: Wikisource Export: Translate WSExport web interface. Wikisource Export uses an on-wiki page (e.g. on Italian Wikisource) to store the few bits of text that it includes in exported ebooks. This page is a the INI format, although its content type is wikitext. We could change it to be a JSON page, so editors can benefit from not being allowed to save invalid syntax. A more robust solution is to move these into the application and having them translated on TranslateWiki (the advantage of having them on-wiki is that then all the content that ends up in the ebook comes from the same wiki and so can be worked on by the same community, but there are only four strings and only one is of any complexity).

The format looks like this:

title_page = "Title page"
cover = "Cover"
exported_from_wikisource_the = "Exported from Wikisource on %d"
about = "About"

Acceptance Criteria:

  • Move translation messages (as described in background above)
  • Delete the pages on the wikis that have them
  • Update documentation on the wikis
  • Make sure that this work is compatible with font work (as done in T261479)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@Samwilson If I understand correctly, this would prevent users from adding translation text that is invalid. As a result, more books with translations would be formatted properly, and when users download such books, they would be readable. Is this accurate? Just trying to get a sense of the goals of this ticket & its impact on users. Thanks in advance!

ifried updated the task description. (Show Details)
ifried renamed this task from Change content type (or move) translation messages to Wikisource Export: Change content type (or move) translation messages.Oct 15 2020, 10:16 PM
ARamirez_WMF set the point value for this task to 5.Oct 15 2020, 11:48 PM
ARamirez_WMF removed the point value for this task.

@ifried that's correct.

Here's some data to follow up what we spoke about earlier today.

The following 20 wikis have the MediaWiki:Wsexport_i18n.ini page:

And there are 50 others that don't have it.

It seems like a better solution is to move to using strings from TranslateWiki instead of wiki pages. T255224 needs to be done first, and when we come to move these messages then we can make sure we export the existing translations from the wikis into the i18n files in the tool (to not waste the translators' effort).

Samwilson renamed this task from Wikisource Export: Change content type (or move) translation messages to Wikisource Export: Move i18n messages from on-wiki into the tool.Oct 16 2020, 12:41 AM
Samwilson updated the task description. (Show Details)

I've updated the description above to clarify that we'll move the messages; feel free to change it more.

@ifried This work appears to have been done. The translations have been moved to json files in the tool and appear in the exported epubs. Should this be moved into product sign-off?

Yes. this can be moved to product sign-off, @dom_walden

This work is now Done.

Hey @Samwilson , looks like this task wasn't estimated - how many points do you think it should be?

Samwilson set the point value for this task to 5.Apr 9 2021, 12:24 AM

It was 5 at some point, I think that's still about right.