Need to Use Language Specific for Minimum Needs
Closed this issue · 12 comments
Hi @ivanbusthomi - can you please take a look at this? I think this is related to the templates
I think this is not related to the template. You can replicate this in the QGIS actually. The problem is we use one minimum needs profile to run the analysis (BNPN_en). Since the minimum needs profile is not translatable, we will get an English minimum needs even if we use Bahasa Indonesia report. CMIIW @lucernae
Alternative solution:
- Use different minimum needs for English and Bahasa Indonesia report
- Make the minimum needs translatable
Hi @ismailsunni - I think we already have BNPB_id so maybe that is the solution. How do we handle this in desktop?
In desktop, you need to run two analysis with those two minimum needs profile (BNPB_en and BNPB_id). So perhaps we need to do this also in the realtime.
this should be addressed in v4 migration
Yes correct, @ismailsunni then we need to provide BNPB_id to realtime.
Providing BNPB_id profile is easy. The problem is how we apply it, since we need to restart QGIS to make InaSAFE use different minimum needs profile (after changing the minimum needs profile, of course), and re-run the analysis.
What do you think @lucernae ?
Whoops. So it still needs a restart? Is there no way to trigger profile changes programmatically? Did you concerned with the Behaviour in InaSAFE Desktop or in Realtime? I mean, in InaSAFE Realtime we can just feed the task into a worker for different language. But I prefer more elegant solutions if any.
For realtime.
Well, IIRC, we need to restart since the fields for minimum needs are dynamic and created when InaSAFE starts (CMIIW @myarjunar or @Gustry)
For the current system, how do you create two report for each English and Bahasa Indonesia? IIRC, changing the language also needs to restart InaSAFE.
Yes, see PR about avoiding restarting QGIS: inasafe/inasafe#3976
@lucernae Is the worker starting QGIS?
Can be concluded, I think.