Skip to content

Remove/migrate deprecated i18n method to current Babel/gettext method #871

Closed
@hornc

Description

@hornc

Open Library i18n is handled via the python Babel library, gettext, and the message lists located https://github.com/internetarchive/openlibrary/tree/master/openlibrary/i18n

More details here

The codebase has now deprecated code and strings located here: https://github.com/internetarchive/openlibrary/tree/master/openlibrary/plugins/openlibrary/i18n

There are a small number of messages in a few languages, including the following:

es Spanish
hi Hindi
it Italian
kn Kannada
mr Marathi
nl Dutch

Although the original sources are in git, they were maintained as wiki pages in infogami, so the latest versions are at, e.g., https://openlibrary.org/i18n/strings.nl.json, but there are only a couple of dozen strings per language.

This issue is to remove the deprecated i18n code and strings from the codebase, migrating anything that is useful to the current method's messages.po format.

  1. Investigate how many already translated strings are still used and could be migrated to an new <xx>/message.po file.
  2. Investigate current code and templates that rely on this mechanism and remove.
  3. Migrate the messages if appropriate
  4. Remove strings.<xx>

Metadata

Metadata

Assignees

Labels

Priority: 3Issues that we can consider at our leisure. [managed]State: Work In ProgressThis issue is being actively worked on. [managed]Theme: InternationalizationMaking OpenLibrary work for both foreign-language users and books. [managed]Type: Refactor/Clean-upIssues related to reorganization/clean-up of data or code (e.g. for maintainability). [managed]

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions