Skip to content
Snippets Groups Projects
Commit 78703e26 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Merge branch '662-admin-users-Base.vue' into 'develop'

Resolve "Add contexts to translatable strings"

See merge request funkwhale/funkwhale!593
parents 9a683043 02c08c69
No related branches found
No related tags found
No related merge requests found
......@@ -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')
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment