Page History
...
Together, we aim to release as many, as complete translations as possible, as part of the official DSpace 7.0 release.
Grep commands for identifying keys, if we ever want to replace them with the English string again
Because we are currently keeping message keys, there is no immediate use for identification of keys to replace with the English strings. But for future use, this might still come in handy:
If you execute following command in the angular source directory, you get a list of keys that have not yet been replaced.
Code Block | ||||
---|---|---|---|---|
| ||||
grep -snRHIiE "'.*\.[^\s]+\.[^']+' \| translate" * |
Sample output looks like:
Code Block | ||
---|---|---|
| ||
app/+community-page/delete-community-page/delete-community-page.component.html:5: <h2 id="header" class="border-bottom pb-2">{{ 'community.delete.head' | translate
app/+community-page/delete-community-page/delete-community-page.component.html:7: <p class="pb-2">{{ 'community.delete.text' | translate:{ dso: dso.name } }}</p>
app/+community-page/delete-community-page/delete-community-page.component.html:12: <button class="btn btn-primary" (click)="onCancel(dso)">{{'community.delete.cancel' | translate}}
app/+community-page/edit-community-page/edit-community-page.component.html:4: <h2 id="header" class="border-bottom pb-2">{{ 'community.edit.head' | translate }}</h2> |
Overview
Content Tools