From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id A52E09DFB1 for ; Sun, 26 Nov 2023 09:30:31 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 89FE11FE82 for ; Sun, 26 Nov 2023 09:30:31 +0100 (CET) Received: from 10.mo581.mail-out.ovh.net (10.mo581.mail-out.ovh.net [178.33.250.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Sun, 26 Nov 2023 09:30:30 +0100 (CET) Received: from director9.ghost.mail-out.ovh.net (unknown [10.109.138.16]) by mo581.mail-out.ovh.net (Postfix) with ESMTP id 8247127FA7 for ; Sun, 26 Nov 2023 08:12:04 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-kqpqg (unknown [10.110.208.100]) by director9.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 0BFC01FDAB for ; Sun, 26 Nov 2023 08:12:03 +0000 (UTC) Received: from koc.pl ([37.59.142.96]) by ghost-submission-6684bf9d7b-kqpqg with ESMTPSA id X8y7NdP9YmX+gzEAxQWCtA (envelope-from ) for ; Sun, 26 Nov 2023 08:12:03 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-96R001fda0c476-1eec-46f6-9a82-9f1b6517c561, 7DDD7CB1DABFFA081D0FB0549C78089CE88284F4) smtp.auth=daniel@koć.pl X-OVh-ClientIp: 178.235.190.238 Message-ID: <94211dda-95b6-403e-b32d-81f2046a6a50@xn--ko-wla.pl> Date: Sun, 26 Nov 2023 09:12:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: pve-devel@lists.proxmox.com Content-Language: pl-PL From: =?UTF-8?Q?Daniel_Ko=C4=87?= X-Ovh-Tracer-Id: 18290243989258770831 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedrudehkedguddukecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurheptgfkffggfgfvhffusegrtderredtvdejnecuhfhrohhmpeffrghnihgvlhcumfhotgcuoegurghnihgvlhesgihnqddqkhhoqdiflhgrrdhplheqnecuggftrfgrthhtvghrnhepvdeffeetudelteehveekteevtdelgeejheejjeevjeegieejkeetjedtfffggefhnecuffhomhgrihhnpehprhhogihmohigrdgtohhmnecukfhppeduvdejrddtrddtrddupddujeekrddvfeehrdduledtrddvfeekpdefjedrheelrddugedvrdelieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoegurghnihgvlhesgihnqddqkhhoqdiflhgrrdhplheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepphhvvgdquggvvhgvlheslhhishhtshdrphhrohigmhhogidrtghomhdpoffvtefjohhsthepmhhoheekuddpmhhouggvpehsmhhtphhouhht X-SPAM-LEVEL: Spam detection results: 0 AWL -0.076 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy HTML_MESSAGE 0.001 HTML included in message KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust RCVD_IN_HOSTKARMA_W -2.5 Sender listed in HOSTKARMA-WHITE RCVD_IN_MSPIKE_H5 0.001 Excellent reputation (+5) RCVD_IN_MSPIKE_WL 0.001 Mailspike good senders SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [pve-devel] [proxmox-i18n] Gettext complex examples X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2023 08:30:31 -0000 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 www.proxmox.com 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 www.proxmox.com 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]