Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .github/missing_translations.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ subtrees:
- file: developers/contributing/ai
- file: developers/contributing/dev_install
- file: developers/contributing/testing
- file: developers/contributing/translations
- file: developers/contributing/performance/index
subtrees:
- entries:
Expand Down
8 changes: 0 additions & 8 deletions docs/developers/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,6 @@ QtDeleteButton {
}
```

#### Translations

Starting with version 0.4.7 offers the possibility of installing language packs,
enabling the user interface to be displayed in different languages. This means that all
user interface strings need to use the {func}`~napari.utils.translations.trans` helper
function.
See the [translations](translations) guide for more.

### API

If you are changing an existing API or adding a new one, make sure you update
Expand Down
237 changes: 0 additions & 237 deletions docs/developers/contributing/translations.md

This file was deleted.

27 changes: 0 additions & 27 deletions docs/developers/coredev/maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,30 +64,3 @@ Fill the form:
12. Paste a new token to the value field

To validate if the token is working, you can run the "Upgrade test constraints" workflow manually. Ensure that there will be some packages to update.

## Update translation strings

Currently, translations are unmaintained, but this may change in the future as napari matures.

As new code is included in the codebase, some of the strings that need to be translated might
not yet be using the `trans` methods. To help keep the codebase up to date in terms
of translations we added a test script that
[runs daily on CI](https://github.com/napari/napari/actions/workflows/test_translations.yml)
and can be also run locally to ensure that a release includes the most up to date translatable
strings.

The test script is available on the `/tools/validate_strings.py` file and it relies on an additional
file `/tools/strings_list.py` to include strings to skip safely from translation.

The test checks:

1. **Untranslated strings**: not using the `trans` methods.
1. **Outdated skip strings**: should no longer be included in the `/tools/strings_list.py` file.
1. **Translation usage errors**: where translation strings may be missing interpolation variables.

You can execute tests locally from the repository root, and follow the instructions printed
on the `stdout` if any test fails.

```bash
pytest tools/ --tb=short
```
1 change: 0 additions & 1 deletion docs/developers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Resources for contributors
- [Contributing guide](napari-contributing)
- [Development installation](dev-installation)
- [Testing](napari-testing)
- [Translations](napari-translations)
- [Performance](performance)
- [Profiling](napari-profiling)
- [Benchmarks](napari-benchmarks)
Expand Down
Loading