Translation make targets point at a directory that does not exist
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 65/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- git, python
- Ambito
- build-system, localization
Direzione di ricerca
Inizia in backend-plugin-sample/Makefile e controlla i target di localizzazione elencati, inclusi il ramo atlas di pull_translations e install_transifex_client. Verifica i percorsi dei package e delle locale sotto src/openedx_plugin_sample, quindi esegui i target interessati. Il lavoro è completato quando i target non falliscono più a causa di directory o LICENSE.txt mancanti e viene affrontata la decisione dell’issue sull’esecuzione o la rimozione dell’infrastruttura di traduzione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
Every localization target in backend-plugin-sample/Makefile does cd sample_plugin, but there is no sample_plugin/ directory. The package lives at backend-plugin-sample/src/openedx_plugin_sample/. The path predates the renames in a9f4b8d (platform-plugin-sample -> backend-plugin-sample / openedx_plugin_sample).
So all of these fail immediately with cd: no such file or directory:
extract_translationscompile_translationsdetect_changed_source_translationsdummy_translationspull_translations(the atlas branch, which also referencessample_plugin/conf/locale)- and therefore
build_dummy_translationsandvalidate_translations
Nothing in CI runs these targets, which is why the breakage has gone unnoticed.
Also in scope
install_transifex_client ends with:
git checkout -- LICENSE README.md ## overwritten by Transifex installer
There is no LICENSE in that directory either -- the file is LICENSE.txt.
Suggested fix
Point the targets at src/openedx_plugin_sample, fix the atlas locale paths to match, and correct the LICENSE.txt filename. Worth considering whether validate_translations should run in CI so this cannot silently rot again.
Note that the plugin does not currently mark any strings for translation, so part of this work is deciding whether the i18n scaffolding should be exercised as a demonstration (this repo is meant to be an example of the plugin interfaces) or removed until there is something to translate.
- Lingua principale
- Python
- Stelle
- 1
- Fork
- 4
- Merge medio
- 3g 1h
- PR unite (30g)
- 8
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di openedx/sample-plugin
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
openedx/sample-plugin#46 · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 56/100
openedx/sample-plugin#51 · 1 commento ·
-
Add fonts to brand-sample Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
openedx/sample-plugin#50 · 2 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
openedx/sample-plugin#33 ·
-
openedx/sample-plugin#30 · 1 assegnatario ·
Tutte le issue di openedx/sample-plugin
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
anthropics/skills#1811 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
speaches-ai/speaches#678 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
datalayer/mcp-compose#42 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
conda-forge/spacy-feedstock#177 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
UKGovernmentBEIS/inspect_evals#2523 ·