Error in NLPSolver string

Hello all,
while translating the newly uploaded NLPSolver / NLPSolverCommon_it.properties
in Pootle, I found a string that is surely misspelled: "Size of Swam" should be
"Size of Swarm". In fact also the notes says:
"NLPSolverCommon.Properties.SwarmSize"

I reported the issue here just to let the translator know about it, can someone
with better knowledge than me raise the problem in a more suitable place?

Bye
Paolo

2010.12.16 17:44, Paolo Pozzan rašė:

Hello all,
while translating the newly uploaded NLPSolver / NLPSolverCommon_it.properties
in Pootle, I found a string that is surely misspelled: "Size of Swam" should be
"Size of Swarm". In fact also the notes says:
"NLPSolverCommon.Properties.SwarmSize"

I fixed this in Pootle. Unfortunately, I also overrode all the existing translations of this string, for which I'm sorry.

Everyone, please translate that string again. It will not be shown as missing, but it's one of the first strings in that file, so should be able to find it easily.

I reported the issue here just to let the translator know about it, can someone
with better knowledge than me raise the problem in a more suitable place?

Perhaps Kohei Yoshida (cc'ed) could fix this upstream?

Rimas

I also noticed this bug. I'll make a patch. This module needs to patched
anyway to handle the translations.

Thanks,
Andras

Hi all,

2010.12.16 18:24, Rimas Kudelis rašė:

2010.12.16 17:44, Paolo Pozzan rašė:

Hello all,
while translating the newly uploaded NLPSolver / NLPSolverCommon_it.properties
in Pootle, I found a string that is surely misspelled: "Size of Swam" should be
"Size of Swarm". In fact also the notes says:
"NLPSolverCommon.Properties.SwarmSize"

I fixed this in Pootle. Unfortunately, I also overrode all the existing translations of this string, for which I'm sorry.

Everyone, please translate that string again. It will not be shown as missing, but it's one of the first strings in that file, so should be able to find it easily.

I've actually took some time to delete that string from all translations manually, so it's now shown as untranslated for all languages, except ast, ca, and it.

Everyone else, please update it when you have a few spare minutes.

Thanks!
Rimas

I have another one which I suspect is wrong:

"Process stopped at iteration %d of %d."

Usually %d is replaced by a value at runtime, so it may show to the user as "100 of 100", "234 of 234".... i.e. the two numbers will be the same always.

Am I wrong?

Hi Oliver,

I have another one which I suspect is wrong:

"Process stopped at iteration %d of %d."

Usually %d is replaced by a value at runtime, so it may show to the user as
"100 of 100", "234 of 234".... i.e. the two numbers will be the same always.

No - they are not the same - the "d" is not a variable name, but a
data-type (%s would be a string, %d is decimal/a number)

Am I wrong?

Yes.
It's used like this for example:
sprintf (buffer, "%d plus %d is %d", a, b, a+b);
first %d is replaced by the value of a, second %d is replaced by the
value of b, and third is replaced by the result of a+b

ciao
Christian

Hi Christian
Thanks!!!!!
Never too late to learn something new. :slight_smile:
Olivier