1
0
Fork 0
forked from forgejo/forgejo

Fix broken translations for package documantion (#25742)

The code was just copied&pasted, it causes problems now.

There are a lot (for every package) broken translations. eg:

```
# en-US
conda.documentation = For more information on the Conda registry, see 
<a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.

# fr-FR (and many languages)
conda.documentation=Pour plus d'informations sur le registre Conda, voir 
<a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/fr-fr/packages/conda/">la documentation</a>.
```


To resolve the problem fundamentally, use a general string, and trigger
the re-translating on Crowdin side.


And, it should really really really avoid introducing too much
copied&pasted code .......
This commit is contained in:
wxiaoguang 2023-07-07 16:47:26 +08:00 committed by GitHub
parent 8995046110
commit 98088befae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 24 additions and 44 deletions

View file

@ -18,7 +18,7 @@
</div>
</div>
<div class="field">
<label>{{.locale.Tr "packages.alpine.documentation" "https://docs.gitea.io/en-us/packages/alpine/" | Safe}}</label>
<label>{{.locale.Tr "packages.registry.documentation" "Alpine" "https://docs.gitea.io/en-us/usage/packages/alpine/" | Safe}}</label>
</div>
</div>
</div>