Thread history

From Translating talk:MantisBT
Viewing a history listing
Jump to navigation Jump to search
Time User Activity Comment
01:23, 16 July 2017 Liuxinyu970226 (talk | contribs) Summary changed  
01:21, 16 July 2017 Liuxinyu970226 (talk | contribs) Summary changed  
08:55, 21 September 2011 Dregad (talk | contribs) New reply created (Reply to Missing strings to translate ?)
07:31, 21 September 2011 Nike (talk | contribs) New reply created (Reply to Missing strings to translate ?)
20:17, 20 September 2011 Dregad (talk | contribs) Comment text edited  
20:15, 20 September 2011 Dregad (talk | contribs) Comment text edited  
20:13, 20 September 2011 Dregad (talk | contribs) New thread created  

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

Dregad20:13, 20 September 2011

They are probably under optional messages task.

Nike07:31, 21 September 2011

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

Dregad08:55, 21 September 2011