Skip to content

Commit 997a1c8

Browse files
committed
admin variant in UI
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 3f516ad commit 997a1c8

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

‎source/adminguide/error_messages.rst‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,15 @@ the current locale, the UI falls back to the server's ``errortext`` as-is.
200200

201201
This means a developer or operator can add or edit a UI-side translation for
202202
a specific error message by adding a key equal to its ``errortextkey`` to the
203-
relevant locale file, with no change needed on the management server. For
204-
example, a translation added to ``ui/public/locales/hi.json`` for the
203+
relevant locale file, with no change needed on the management server.
204+
205+
**Admin variant**: like the server, before falling back to the base key, the
206+
UI first tries a key suffixed ``.admin`` when the current user is a root
207+
admin, the same ``.admin`` suffix and root-admin-only condition described
208+
under "Admin-only variants" above. There is no equivalent variant for
209+
resource admins, domain admins, or regular users.
210+
211+
For example, a translation added to ``ui/public/locales/hi.json`` for the
205212
``vm.deploy.resourcelimit.exceeded.account`` error from the example above
206213
would show a Hindi-locale user:
207214

0 commit comments

Comments
 (0)