From 2482391a1a720278581a360760c3842a0080e1d4 Mon Sep 17 00:00:00 2001 From: Andrew Kostka Date: Tue, 18 Jul 2023 09:17:47 +0000 Subject: [PATCH 1/2] Add documentation for manually rebuilding i18n cache --- docs/dev-environment.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/dev-environment.md b/docs/dev-environment.md index 8b9eaa3aa..080127a3e 100644 --- a/docs/dev-environment.md +++ b/docs/dev-environment.md @@ -39,6 +39,14 @@ Removing the installation: docker compose down --volumes ``` +### Updating localizations + +After modifying `i18n` files, run the following to update localization caches: + +```sh +docker compose exec -it mediawiki bash -c "WBS_DOMAIN=maint php w/maintenance/rebuildLocalisationCache.php --lang=en --force" +``` + ### Debugging Elastic General overview of the cluster From 0430fca679043aff4091c277468c7f5cdd15d854 Mon Sep 17 00:00:00 2001 From: Thomas Arrow Date: Thu, 25 Jan 2024 21:10:03 +0000 Subject: [PATCH 2/2] Update docs/dev-environment.md Co-authored-by: Frederik Ring --- docs/dev-environment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dev-environment.md b/docs/dev-environment.md index 080127a3e..17498022d 100644 --- a/docs/dev-environment.md +++ b/docs/dev-environment.md @@ -44,7 +44,7 @@ docker compose down --volumes After modifying `i18n` files, run the following to update localization caches: ```sh -docker compose exec -it mediawiki bash -c "WBS_DOMAIN=maint php w/maintenance/rebuildLocalisationCache.php --lang=en --force" +docker compose run --rm -it mediawiki bash -c "WBS_DOMAIN=maint php w/maintenance/rebuildLocalisationCache.php --lang=en --force" ``` ### Debugging Elastic