Commit a4229399 authored by Claudius Ellsel's avatar Claudius Ellsel Committed by Kurt Hindenburg
Browse files

Add hint to also translate a leading space

Having spaces (especially leading or trailing ones) in translatable
strings is probably not a pretty good idea as that is a source of
errors. Maybe there can be some refactoring of the setSuffix function
to add a space by itself, so it can be left out of the translatable
string.

For now I added a hint that this space has to be translated as well.
I ran into this because it is not there in the German translation for
"row(s)".

!126
parent 37ffb50e
...@@ -452,8 +452,8 @@ void EditProfileDialog::setupGeneralPage(const Profile::Ptr &profile) ...@@ -452,8 +452,8 @@ void EditProfileDialog::setupGeneralPage(const Profile::Ptr &profile)
_generalUi->startInSameDirButton->setChecked(profile->startInCurrentSessionDir()); _generalUi->startInSameDirButton->setChecked(profile->startInCurrentSessionDir());
// initial terminal size // initial terminal size
const auto colsSuffix = ki18ncp("Suffix of the number of columns (N columns)", " column", " columns"); const auto colsSuffix = ki18ncp("Suffix of the number of columns (N columns). The leading space is needed to separate it from the number value.", " column", " columns");
const auto rowsSuffix = ki18ncp("Suffix of the number of rows (N rows)", " row", " rows"); const auto rowsSuffix = ki18ncp("Suffix of the number of rows (N rows). The leading space is needed to separate it from the number value.", " row", " rows");
_generalUi->terminalColumnsEntry->setValue(profile->terminalColumns()); _generalUi->terminalColumnsEntry->setValue(profile->terminalColumns());
_generalUi->terminalRowsEntry->setValue(profile->terminalRows()); _generalUi->terminalRowsEntry->setValue(profile->terminalRows());
_generalUi->terminalColumnsEntry->setSuffix(colsSuffix); _generalUi->terminalColumnsEntry->setSuffix(colsSuffix);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment