0

必须做什么才能使新闻使用默认语言以外的另一种语言。我已经有了:

  • 网站语言
  • 新闻概览的页面翻译(显示:最新)
  • 详细新闻的页面翻译(显示:SINGLE)

在我的默认语言中,一切正常。但是对于新语言,我只能在页面上看到带有 [更多] 链接的空白新闻,no news_id given单击该链接会给我。我是否必须为存储新闻的文件夹创建页面翻译?到目前为止,我只能为每个新闻条目设置语言。

编辑:

我为存储新闻的文件夹创建了翻译。现在它似乎工作了。但是,如果没有翻译,如何删除 [more] 链接?

这是在 HTML 代码中

<div class="news-latest-container">

          <div class="news-latest-item">
            <div class="news-item-left"><a title="" href="xxx/news/news-detail.html"></a></div>
            <div class="news-item-right">
                <h3><a title="" href="xxx/news/news-detail.html"></a></h3>
                <p></p><hr class="clearer">

                <div class="news-latest-morelink"><a title="" href="xxx/news/news-detail.html">[more]</a></div>
            </div>
          </div>


          <div class="news-latest-item">
            <div class="news-item-left"><a title="" href="xxx/news/news-detail.html"></a></div>
            <div class="news-item-right">
                <h3><a title="" href="xxx/news/news-detail.html"></a></h3>
                <p></p><hr class="clearer">

                <div class="news-latest-morelink"><a title="" href="xxx/news/news-detail.html">[more]</a></div>
            </div>
          </div>


</div>

我也用过

plugin.tt_news.displayList.subheader_stdWrap.append > 

压制第二个更多的链接。但是为什么会显示空消息呢?

4

1 回答 1

0

我为存储新闻的文件夹创建了翻译。现在它似乎工作了。对于另一个问题:我添加了以下代码行:

plugin.tt_news.showNewsWithoutDefaultTranslation = 0
plugin.tt_news.sys_language_mode = strict

现在no news in this list.显示。

于 2011-12-07T12:08:37.793 回答