mozilla

Revision 239134 of Template:fx minversion header

  • Revision slug: Template:fx_minversion_header
  • Revision title: Template:fx minversion header
  • Revision id: 239134
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment

Revision Content

<% var lang = env.locale; var articleName = "Firefox " + $0 + " for developers"; var newIn = "This content covers features introduced in "; var newInEnd = "."; switch(lang) { case 'de': articleName = "Firefox " + $0 + " für Entwickler"; newIn = "Dieser Artikel umfasst Features, die in "; newInEnd = " eingeführt wurden."; break; case 'es': articleName = "Firefox " + $0 + " para desarrolladores"; newIn = "Este artículo cubre características introducidas en "; break; case 'fr': articleName = "Firefox " + $0 + " pour les développeurs"; newIn = "Cet article traite de fonctionnalités introduites dans "; break; case 'ja': newIn = "この記事は "; newInEnd = " の新機能について述べています"; break; case 'ko': newIn = "이 문서는 Firefox 개발자들을 위한 정보입니다. "; break; case 'pl': articleName = "Firefox " + $0 + " dla programistów"; newIn = "Ten artykuł obejmuje funkcje wprowadzone w "; break; case 'pt': articleName = "Firefox " + $0 + " para desenvolvedores"; newIn = "Este artigo cobre características introduzidas no "; break; case 'zh-CN': newIn = "该条目记录了 "; newInEnd = " 引入的新特性"; break; case 'zh-TW': newIn = "本文描述 "; articleName = "Firefox " + $0 + " 技術文件"; newInEnd = " 之後加入的功能。"; break; case 'ru': articleName = "Firefox " + $0 + " для разработчиков"; break; } %>

<%= newIn %> <%- web.link(wiki.uri(lang + '/' + articleName), "Firefox " + $0) %> <%= newInEnd %>

Revision Source

<%
var lang = env.locale;

var articleName = "Firefox " + $0 + " for developers";
var newIn = "This content covers features introduced in ";
var newInEnd = ".";

switch(lang) {
  case 'de':
    articleName = "Firefox " + $0 + " für Entwickler";
    newIn = "Dieser Artikel umfasst Features, die in ";
    newInEnd = " eingeführt wurden.";
    break;
  case 'es':
    articleName = "Firefox " + $0 + " para desarrolladores";
    newIn = "Este artículo cubre características introducidas en ";
    break;
  case 'fr':
    articleName = "Firefox " + $0 + " pour les développeurs";
    newIn = "Cet article traite de fonctionnalités introduites dans ";
    break;
  case 'ja':
    newIn = "この記事は ";
    newInEnd = " の新機能について述べています";
    break;
  case 'ko':
    newIn = "이 문서는 Firefox 개발자들을 위한 정보입니다. ";
    break;
  case 'pl':
    articleName = "Firefox " + $0 + " dla programistów";
    newIn = "Ten artykuł obejmuje funkcje wprowadzone w ";
    break;
  case 'pt':
    articleName = "Firefox " + $0 + " para desenvolvedores";
    newIn = "Este artigo cobre características introduzidas no ";
    break;
  case 'zh-CN':
    newIn = "该条目记录了 ";
    newInEnd = " 引入的新特性";
    break;
  case 'zh-TW':
    newIn = "本文描述 ";
    articleName = "Firefox " + $0 + " 技術文件";
    newInEnd = " 之後加入的功能。";
    break;
  case 'ru':
    articleName = "Firefox " + $0 + " для разработчиков";
    break;
}
%>
<div class="standardNote">
  <p style="margin: 4px 0px;">
    <%= newIn %>
    <%- web.link(wiki.uri(lang + '/' + articleName), "Firefox " + $0) %>
    <%= newInEnd %>
  </p>
</div>
Revert to this revision