Bug 307875

Summary: Split translations of strings "None"
Product: [Applications] kalzium Reporter: André Marcelo Alvarenga <alvarenga>
Component: generalAssignee: Kalzium Developers <kalzium>
Status: RESOLVED FIXED    
Severity: normal CC: lueck
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description André Marcelo Alvarenga 2012-10-05 03:19:11 UTC
The following three strings "None" have shared translations: 

src/kalziumelementproperty.cpp:88 
src/tools/moleculeviewerwidget.ui:154
src/tools/moleculeviewerwidget.ui:208

In pt_BR, I can translate "None" to "Nenhum" or "Nenhuma".

src/kalziumelementproperty.cpp:88 (use "Nenhum")
src/tools/moleculeviewerwidget.ui:154 (use "Nenhum")
src/tools/moleculeviewerwidget.ui:208 (use "Nenhuma")


Please, split the strings to allow different translations.

Reproducible: Always
Comment 1 Burkhard Lück 2014-10-29 19:25:07 UTC
Please provide different context for these messages in question to add proper i18nc() calls like i18nc("no foo", "None") to the code.

Thanks.
Comment 2 André Marcelo Alvarenga 2014-10-31 00:37:19 UTC
(In reply to Burkhard Lueck from comment #1)
> Please provide different context for these messages in question to add
> proper i18nc() calls like i18nc("no foo", "None") to the code.
> 
> Thanks.

Displayed in main window (drop-down list)
src/kalziumelementproperty.cpp:88
No gradient

Displayed in Molecular Editor (Display tab)
src/tools/moleculeviewerwidget.ui:154
2nd Style option    (None, Ribbon, Ring and Molecular Orbital)

Displayed in Molecular Editor (Display tab)
src/tools/moleculeviewerwidget.ui:208
Labels option       (None, Element symbols and Element names)
Comment 3 Burkhard Lück 2014-10-31 13:18:04 UTC
Git commit 38a88b237c78f312f845497384f1f910e3412003 by Burkhard Lück.
Committed on 31/10/2014 at 13:17.
Pushed by lueck into branch 'master'.

add context to string 'None' to enable different translation
Thanks for the report + explanation

M  +1    -1    src/kalziumelementproperty.cpp
M  +2    -2    src/tools/moleculeviewerwidget.ui

http://commits.kde.org/kalzium/38a88b237c78f312f845497384f1f910e3412003