[pdm-devel] applied: [PATCH proxmox-datacenter-manager] ui: do not mark the empty string as translatable

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Jan 21 15:00:17 CET 2025


Am 21.01.25 um 12:54 schrieb Maximiliano Sandoval:
> xtr will complain that there is a duplicated definition otherwise:
> 
>    proxmox-datacenter-manager.pot:185: duplicate message definition...
> 
> As per [1]:
> 
>> There is always one special message in each valid PO file: the PO file
>> header. It is encoded with the msgid for the empty string ("") as the
>> key, and the actual header values are in the msgstr part. This
>> unfortunately means that if you mark an empty string for translation,
>> you will get the entire PO file header back as the "translation". In
>> almost all cases this is probably not what you want. Hence, do not mark
>> empty strings for translation.
> 
> [1] https://wiki.gnome.org/TranslationProject(2f)DevGuidelines(2f)Localize(20)using(20)gettext(20)and(20)intltool.html
> 
> Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
> ---
>  ui/src/dashboard/subscription_info.rs | 2 +-
>  ui/src/remotes/wizard_page_info.rs    | 4 ++--
>  ui/src/widget/migrate_window.rs       | 2 +-
>  3 files changed, 4 insertions(+), 4 deletions(-)
> 
>

applied, thanks!




More information about the pdm-devel mailing list