Missing strings to translate ?
Hi,
Following an issue reported on the MantisBT tracker [1], where user claimed missing Spanish translation string, I checked here but found no missing translations.
Yet, looking at the source code, I can confirm that there are some English strings which do not exist in translated languages, for example (latest git master-1.2.x):
$ cd ~/dev/mantisbt/lang $ comm -3 <(grep '^\$' strings_english.txt |cut -d= -f1 |sort) <(grep '^\$' strings_spanish.txt |cut -d= -f1 |sort) $s_directionality $s_sponsorship_process_url $ comm -3 <(grep '^\$' strings_english.txt |cut -d= -f1 |sort) <(grep '^\$' strings_french.txt |cut -d= -f1 |sort) $s_directionality $s_sponsorship_process_url $s_word_separator
The output of comm shows lines present in strings_english.txt but missing from the target language (examples shown for Spanish and French).
Damien
They are probably under optional messages task.
You are correct, they are indeed in the optional messages [1]
The problem lies in the MantisBT code which does not correctly fall back to default language (English) when a string is not defined in the translated strings file. I'll fix that.
Thanks for pointing me in the right direction.
Damien