Re: [Tails-l10n] [fa][review] updates to farsi files

Nachricht löschen

Nachricht beantworten
Autor: intrigeri
Datum:  
To: Tails localization discussion
Betreff: Re: [Tails-l10n] [fa][review] updates to farsi files
Hi,

emma peel:
> xin:
>> Hello, it looks good except:
>> install/linux/usb-overview.fa.po
>> install/mac.fa.po
>> install/mac/dvd-overview.fa.po
>> upgrade/tails-overview.fa.po
>>
>> In these pages, the "meta title" is still in english.


> Yes, I wanted to translate the other part of the string:


> [[inline pages="install/inc/tails-installation-assistant.inline.fa" raw="yes" sort="age"]]


> But I could not translate only those...


Ouch. Indeed, all this is parsed as one single string:

[[!meta title="Install from Linux"]]

[[!meta stylesheet="bootstrap.min" rel="stylesheet" title=""]]
[[!meta stylesheet="inc/stylesheets/assistant" rel="stylesheet" title=""]]
[[!meta stylesheet="inc/stylesheets/overview" rel="stylesheet" title=""]]
[[!meta stylesheet="inc/stylesheets/linux" rel="stylesheet" title=""]]

[[!inline pages="install/inc/tails-installation-assistant.inline" raw="yes" sort="age"]]

[[!inline pages="install/inc/overview" raw="yes" sort="age"]]


I think we need to take a step back and fix this problem for real.
I see two potential ways out:

1. Make a per-language ad-hoc decision for each affected page

For each such file, decide what's the best trade-off between
"inline translated pages but pretend that the title is translated
while it's not" and "don't pretend the string is fully translated
and thus inline English pages"; I guess it depends on whether the
inlined pages are actually translated.

That sounds time-consuming, implies recurring costs (this decision
needs to be updated every now and then) and the best we can get is
a trade-off, not a fix.

2. Fix the English source pages

Find a way to trick ikiwiki po plugin (well, really: po4a under the
hood) into splitting the inline directives into separate strings.
For example, this works for me™:

--- a/wiki/src/install/linux/usb-overview.html
+++ b/wiki/src/install/linux/usb-overview.html
@@ -5,9 +5,13 @@
[[!meta stylesheet="inc/stylesheets/overview" rel="stylesheet" title=""]]
[[!meta stylesheet="inc/stylesheets/linux" rel="stylesheet" title=""]]

+<div class="pofix">
[[!inline pages="install/inc/tails-installation-assistant.inline" raw="yes" sort="age"]]
+</div>

+<div class="pofix">
[[!inline pages="install/inc/overview" raw="yes" sort="age"]]
+</div>

[[
<div class="panel panel-primary">


I think option (2) would be a much better investment.

Cheers,
--
intrigeri