HTML translations

For translating HTML use these forms:

<span translate>Ready</span> = Ready

<span translate translate-context="verb">Ready</span> = Ready

<span translate="yes">Not Ready</span> = Not Ready

<span translate="title" title="Unavailable">Cancel</span> = Cancel

<span translate="yes title" title="Unavailable">Cancel</span> = Cancel

Note that we do not support:


Old Glade style

The old Glade style is not recommended:

<span translate="yes">Empty</span> = Empty

<span translate="yes" context="verb">Empty</span> = Empty

Note that we do not support:


Mustache translations

For translating Mustache use these forms:

Note that we do not support:


Code Translations

For translating in javascript code, use these forms:

_("Empty") =

_("verb", "Empty") =

C_("verb", "Empty") =

cockpit.gettext("Control") =

cockpit.gettext("key", "Control") =

cockpit.ngettext("$0 disk is missing", "$0 disks are missing", 1) =

cockpit.ngettext("$0 disk is missing", "$0 disks are missing", 2) =

cockpit.ngettext("disk-non-rotational", "$0 disk is missing", "$0 disks are missing", 1) =

cockpit.ngettext("disk-non-rotational", "$0 disk is missing", "$0 disks are missing", 2) =

Note that we do not support: