[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-utils-devel
Subject:    Re: Ark: please add context for accelerator keys in part.cpp
From:       Elvis Angelaccio <elvis.angelaccio () kdemail ! net>
Date:       2016-05-14 21:28:46
Message-ID: CALN1cns8a6i6ywxc7g2ewJX_kBzLS5suzF27jzxNYnunZdqWUw () mail ! gmail ! com
[Download RAW message or body]

2016-05-14 22:25 GMT+02:00 Burkhard Lück <lueck@hube-lueck.de>:
> Hi developers,
>
> this forwarded mail is apparently about these translation messages:
>
> "@action:inmenu", "Add &Comment"
> "@action:inmenu", "Edit &Comment"
>
> ----------  Weitergeleitete Nachricht  ----------
>
> Betreff: Ark: please add context for accelerator keys in part.cpp
> Datum: Samstag, 14. Mai 2016, 17:02:33 CEST
> Von: Andrej Mernik <andrejm@ubuntu.si>
> An: KDE i18n-doc <kde-i18n-doc@kde.org>
>
> Hello,
>

Hi

> in KF5 version of ark.po I found two strings that might confuse the
> translators, They are located at:
>
> #: part/part.cpp:460
>
> and contain accelerator key &C. At first I thought this might be a bug
> preventing user to use one of the options, but looking at the code it looks
> that they are exclusive.
>
> Can a context be added so the translators will know that one is active if
> archive has comment and other when the archive has no comment?

Not sure how to handle this, since both actions already have
"@action:inmenu" as context.
Should we replace that context with something like this?

m_editCommentAction->setText(m_model->archive()->hasComment() ?
i18nc("mutually exclusive with Add &Comment", "Edit &Comment"),
i18nc("mutually exclusive with Edit &Comment", "Add &Comment"));

Possible alternative:

m_editCommentAction->setText(i18nc("%1 is either Add or Edit", "%1
&Comment", m_model->archive()->hasComment() ? i18n("Edit") :
i18n("Add")));

Which one would you prefer?


> Thanks and best regards,
> Andrej Mernik
>

Cheers,
Elvis


> -------------------------------------------------------------
> --
> Burkhard Lück
>
_______________________________________________
Kde-utils-devel mailing list
Kde-utils-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-utils-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic