From: "Daniel Koć" <daniel@xn--ko-wla.pl>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [proxmox-i18n] Gettext complex examples
Date: Sun, 26 Nov 2023 09:12:00 +0100 [thread overview]
Message-ID: <94211dda-95b6-403e-b32d-81f2046a6a50@xn--ko-wla.pl> (raw)
Hi,
I'd like to gettextize (make translatable) more strings than currently,
to eventually have full translation of UI. I have a problem how to add
gettext for such strings as in WidgetToolkitUtils.js:
getNoSubKeyHtml: function(url) {
return Ext.String.format('You do not have a valid subscription for
this server. Please visit <a target="_blank"
href="{0}">www.proxmox.com</a> to get a list of available options.', url
|| 'https://www.proxmox.com');
},
Is it just a simple trick like:
return Ext.String.format(*gettext(*'You do not have a valid subscription
for this server. Please visit <a target="_blank"
href="{0}">www.proxmox.com</a> to get a list of available options.'*)*,
url || 'https://www.proxmox.com');
or something more complex is needed?
--
"It was the wrong plan in the wrong hands" [M. Gore]
reply other threads:[~2023-11-26 8:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=94211dda-95b6-403e-b32d-81f2046a6a50@xn--ko-wla.pl \
--to=daniel@xn--ko-wla.pl \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.