public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: "Proxmox VE development discussion" <pve-devel@lists.proxmox.com>,
	"Daniel Koć" <daniel@xn--ko-wla.pl>
Subject: Re: [pve-devel] Some translation strings missing
Date: Tue, 4 May 2021 09:12:00 +0200	[thread overview]
Message-ID: <01e6faf2-cb15-d021-bf50-f5606ba1909d@proxmox.com> (raw)
In-Reply-To: <b8c79e91-2a42-393e-f56e-6eae1a1c8ff3@xn--ko-wla.pl>

Hi!

On 04.05.21 07:57, Daniel Koć wrote:
> I just finished full Polish translation, but found that some strings
> can't be translated. I made a quick search and it looks like some of
> them are not yet gettextized:
> 
> $ grep -r -e "fieldLabel: '" -e "text: '" * | grep -v gettext | grep -v
> "do not localize" | wc -l
> 228

Some of those are things like "OSD" or "Ceph" which cannot be translated, 

some are where one probably could argue for and some are def. just missed.

> 
> (It includes PBS and PMG messages, since all the translation messages
> are merged into one file eventually.)
> 
> Is it possible to make a patch which fixes it?

Do you want to take a shot at this and send a patch? It shouldn't be too hard,
relatively speaking.

https://pve.proxmox.com/wiki/Developer_Documentation#Working_on_the_code

> 
> This list is not complete, there are some other missing messages like:
> 
>   * tooltip for documentation link for PVE and PMG (PBS does not have
>     this tip)
>   * "Subscription" section title on PBS dashboard
>   * Ceph installation wizard text

The latter was not made a gettext as it's a long text, really different
from the other classic field or button label texts. It changed a few times
already, and it's way harder to review for correctness. Further, we
currently cannot detect gettext instances spanning over multiple lines, so
the parser would need adaption.
That's not saying I'd reject making it a gettext in general, just stating
the reasoning for initially not doing so.

> 
> It would be great to make them also translatable.
> 

cheers,
Thomas




  reply	other threads:[~2021-05-04  7:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-04  5:57 Daniel Koć
2021-05-04  7:12 ` Thomas Lamprecht [this message]
2021-05-04 11:44   ` Daniel Koć

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=01e6faf2-cb15-d021-bf50-f5606ba1909d@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal