Bug #9564

translated file doesn't get parsed in ikiwiki

Added by muri 2015-06-12 09:41:43 . Updated 2018-12-02 21:45:24 .

Status:
Duplicate
Priority:
Normal
Assignee:
muri
Category:
Target version:
Start date:
2015-06-12
Due date:
% Done:

0%

Feature Branch:
Type of work:
Website
Blueprint:

Starter:
Affected tool:
Deliverable for:

Description

in wiki/src/doc/first_steps/upgrade.mdwn the line

[[!inline pages="doc/first_steps/upgrade.release_notes" raw="yes"]]


occurs two times. when translating the file, we translate this line to

[[!inline pages="doc/first_steps/upgrade.release_notes.de" raw="yes"]]


this leads to the translated release notes to be included as expected at the first occurance of this inline statement, but at the second occurrance, it is being included but not parsed.
i’ve attached a screenshot and the commits to reproduce the behaviour are in https://gitlab.com/muri/tails.git, branch bug-ikiwiki-po


Files


Subtasks


Related issues

Is duplicate of Tails - Bug #6907: ikiwiki po plugin does not play well with inline directives Resolved 2018-12-03 2019-03-12

History

#1 Updated by sajolida 2015-06-16 07:24:27

  • Status changed from New to Confirmed
  • Assignee set to sajolida

I’ll have a look “at some point”.

Until then, if you want to try to fix that yourself I would start by converting doc/first_steps/upgrade.release_notes and the rest of the content of the <div> to pure HTML. In ikiwiki, once you open an HTML tag (here <div>) you should write pure HTML inside (ikiwiki can’t guess when you’re going back to markdown). This means adding <p> for each paragraph, etc.

#2 Updated by sajolida 2015-08-18 10:02:44

  • File fixed.png added
  • Assignee changed from sajolida to muri
  • QA Check changed from Dev Needed to Ready for QA

I finally had a look and I could fix this locally. See the screenshot in attachment. To do so maybe commit 44486bc help. I pushed it to master.

But most of all, I had to fix my ikiwiki.setup to include “inc/stable_i386_release_notes” in the list of translatable pages. So if this happened to you locally only, make sure to synchronize with the po_translatable_pages with ikiwiki.setup.

If that works for you, then please close this ticket.

#3 Updated by emmapeel 2015-08-28 05:28:09

I have seen this today in the Download page, see screenshot:

!Screenshot from 2015-08-28 12:12:05.png!

#4 Updated by sajolida 2015-08-28 07:17:29

All the times I’ve seen this happened it was caused by buggy po_translatable_pages in ikiwiki.setup. So I’m reopening Bug #9279 instead.

#5 Updated by muri 2015-09-29 10:22:24

  • Status changed from Confirmed to Duplicate

hi,

i tested again and at the moment locally the inline statement mentioned in the bug report doesn’t get translated at all. but as far as i can see, there are now multiple other tickets about this po-bug, so i’m closing as duplicate (hope thats the right way to handle this one)

#6 Updated by intrigeri 2015-10-03 02:51:25

> but as far as i can see, there are now multiple other tickets about this po-bug, so i’m closing as duplicate (hope thats the right way to handle this one)

Indeed, there’s more details on Bug #9671, Bug #9279 and Bug #10124, so that should be enough tickets about this bug for now.

#7 Updated by intrigeri 2015-10-03 02:57:46

  • is duplicate of Bug #6907: ikiwiki po plugin does not play well with inline directives added

#8 Updated by intrigeri 2018-12-02 21:45:24

  • QA Check deleted (Ready for QA)