Merge branch '662-admin-users-Base.vue' into 'develop'
Resolve "Add contexts to translatable strings" See merge request funkwhale/funkwhale!593
This commit is contained in:
commit
78703e26d5
|
@ -478,6 +478,7 @@ This hierarchical structure is made of several parts:
|
|||
- ``Table``
|
||||
- ``Title``
|
||||
- ``Tooltip``
|
||||
- ``Hidden text``
|
||||
- ``*`` for strings that are not tied to a specific component
|
||||
|
||||
The detail part, which is optional and refers to the contents of the string itself, such as:
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<nav class="ui secondary pointing menu" role="navigation" :aria-label="labels.secondaryMenu">
|
||||
<router-link
|
||||
class="ui item"
|
||||
:to="{name: 'manage.users.users.list'}"><translate>Users</translate></router-link>
|
||||
:to="{name: 'manage.users.users.list'}"><translate :translate-context="'*/Admin/Link'">Users</translate></router-link>
|
||||
<router-link
|
||||
class="ui item"
|
||||
:to="{name: 'manage.users.invitations.list'}"><translate>Invitations</translate></router-link>
|
||||
:to="{name: 'manage.users.invitations.list'}"><translate :translate-context="'Menu/Admin/Link'">Invitations</translate></router-link>
|
||||
</nav>
|
||||
<router-view :key="$route.fullPath"></router-view>
|
||||
</div>
|
||||
|
@ -17,8 +17,8 @@ export default {
|
|||
computed: {
|
||||
labels() {
|
||||
return {
|
||||
manageUsers: this.$gettext("Manage users"),
|
||||
secondaryMenu: this.$gettext("Secondary menu")
|
||||
manageUsers: this.$pgettext('Head/Admin/Title', 'Manage users'),
|
||||
secondaryMenu: this.$pgettext('Menu/*/Hidden text','Secondary menu')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue