Re: [Tails-l10n] inline news and currentlang

このメッセージを削除

このメッセージに返信
著者: sajolida
日付:  
To: Tails localization discussion
題目: Re: [Tails-l10n] inline news and currentlang
drebs:
> Hello.
>
> While translating the initial page, we come across the use of the "inline"
> directive for including news and security pages:
>
>   [[!inline
>     pages=\"page(news/*)
>       and !news/*/*
>       and !news/discussion
>       and currentlang()\"
>     show=\"2\"
>     feeds=\"no\"
>     archive=\"yes\"]]

>
> If we use the exact same directive for portuguese, then the list of included
> news and security items is different from the english page because of 2
> reasons:
>
> 1. the "currentlang()" condition is used in the inline directive, and
> 2. no (or few old) news and security items are actually translated to portuguese.
>
> Question is: how to deal with this situation? I think ideally we would want to
> include exactly the same entries as the ones in english page, but replace for
> translated entries if they are available. Is this possible?


First of all, take into account that this directive has changed in
4ca7ed3 as we disabled translations for our monthly reports (to lower
the load of what is meant to be translated) and very old release notes
(to speed up the build of the website).

So maybe the difference you see come from this.

Otherwise I think that it already does what you want. For example on
https://tails.boum.org/news/index.de.html I see release notes in German,
monthly reports and calls for testing in English.