metasmile / grit-i18n

Automatically exported from code.google.com/p/grit-i18n
BSD 2-Clause "Simplified" License
1 stars 2 forks source link

messages with the same id in two branches doesn't work when use_name_for_id=true #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add a message with the same id in two different conditional branches and set 
'use_name_for_id' to true
2. run grit 'compiler'

What is the expected output? What do you see instead?

Actual:  I got the following error : 

MakeClique
    assert c.GetMessage().GetPresentableContent() == presentable_text

Expected: The message in a branch meeting the condition is processed while 
other branches are ignored. 

What version of the product are you using? On what operating system?

grit-i18n @ r=84 on Linux, but it should be platform-independent. 

Please provide any additional information below.

See https://chromiumcodereview.appspot.com/11338052/#ps1

Original issue reported on code.google.com by jshin@chromium.org on 14 Nov 2012 at 9:15

GoogleCodeExporter commented 9 years ago

Original comment by joi@chromium.org on 21 Jan 2013 at 2:44