all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [proxmox-i18n] Gettext complex examples
@ 2023-11-26  8:12 Daniel Koć
  0 siblings, 0 replies; only message in thread
From: Daniel Koć @ 2023-11-26  8:12 UTC (permalink / raw)
  To: pve-devel

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]


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-26  8:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-26  8:12 [pve-devel] [proxmox-i18n] Gettext complex examples Daniel Koć

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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal