Il testo citato deve essere pulito dalla formattazione quando tradotto

discourse-translator 0.2.0
discourse v2.4.0.beta1 +234
API Microsoft

Quando i post da tradurre contengono citazioni, sembra che venga inviato all’API il testo grezzo, inclusi gli elementi di formattazione. Questo interrompe il funzionamento del plugin.

7 Mi Piace

So what’s the status of this issue?

1 Mi Piace

Not fixed, but I would like to see this improved.

The correct process here is a bit tricky.

We would need to hoist out all sorts of blocks (like quotes, code blocks), then strip out html tags, translate and finally reconstruct the html.

I estimate there are a few days in a proper fix here.

@codinghorror did you want us to slot this or just put a pr-welcome on this?

1 Mi Piace

pr-welcome is fine for this

1 Mi Piace