Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Added some Spanish translations (#376)
Browse files Browse the repository at this point in the history
* Update ArticlesByTag.ejs

* Update AvailableInWorkers.ejs

* Spanish translations
  • Loading branch information
juan-ferrer-toribio authored and teoli2003 committed Oct 31, 2017
1 parent 3b75154 commit 560f441
Show file tree
Hide file tree
Showing 16 changed files with 35 additions and 6 deletions.
1 change: 1 addition & 0 deletions macros/ArticlesByTag.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ var l10n = {
noArticles : mdn.localString({
"en-US": "There have been no articles written yet. <a href=\"/en-US/docs/MDN/Getting_started\">Please consider contributing</a>.",
"zh-CN": "这些文章尚未撰写。<a href=\"/zh-CN/docs/MDN/Getting_started\">欢迎贡献</a>。",
"es" : "Todavía no se han escrito artículos. <a href=\"/es/docs/MDN/Comenzando\">Por favor, considera hacer una contribución</a>.",
"fr" : "Aucun article n'a encore été écrit ou traduit. <a href=\"/fr/docs/MDN/Débuter_sur_MDN\">N'hésitez pas à contribuer.</a>",
"ru" : "Вы ещё не написали статей. <a href=\"/ru/docs/MDN/Getting_started\">Пожалуйста, посмотрите о вкладе</a>."
}),
Expand Down
1 change: 1 addition & 0 deletions macros/AvailableInWorkers.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var text = mdn.localString({
"en-US": "This feature is available in <a href=\"/" + locale + "/docs/Web/API/Web_Workers_API\">Web Workers</a>.",
"zh-CN": "此特性在 <a href=\"/" + locale + "/docs/Web/API/Web_Workers_API\">Web Worker</a> 中可用。",
"de": "Dieses Feature ist in <a href=\"/" + locale + "/docs/Web/API/Web_Workers_API\">Web Workers</a> verfügbar.",
"es": "Esta característica está disponible en <a href=\"/" + locale + "/docs/Web/API/Web_Workers_API\">Web Workers</a>.",
"fr": "Cette fonctionnalité est disponible via les <a href=\"/" + locale + "/docs/Web/API/Web_Workers_API\">Web Workers</a>.",
"ja": "この機能は <a href=\"/" + locale + "/docs/Web/API/Web_Workers_API\">Web Workers</a> 内で利用可能です。",
"ru": "Эта возможность доступна в <a href=\"/ru/docs/Web/API/Web_Workers_API\">Web Workers</a>."
Expand Down
2 changes: 1 addition & 1 deletion macros/CertifiedBadge.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var titleAttrValue = mdn.localString({
"cs": "Available only to certified apps on Firefox OS.",
"de": "Available only to certified apps on Firefox OS.",
"el": "Available only to certified apps on Firefox OS.",
"es": "Available only to certified apps on Firefox OS.",
"es": "Disponible sólo para aplicaciones certificadas de Firefox OS.",
"fa": "Available only to certified apps on Firefox OS.",
"fi": "Available only to certified apps on Firefox OS.",
"fr": "Seulement disponible pour les applications certifiées sur Firefox OS.",
Expand Down
2 changes: 2 additions & 0 deletions macros/ChapterTOC.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var i;
var s_TOC = mdn.localString({
"en-US": "Quick Table of Contents",
"es": "Tabla rápida de contenido",
"ja": "目次",
"ru": "Краткое содержание",
"zh-CN": "目录",
Expand All @@ -22,6 +23,7 @@ var s_TOC = mdn.localString({
var s_Expanded_TOC = mdn.localString({
"en-US": "Expanded Table of Contents",
"es": "Tabla extendida de contenido",
"ja": "追加コンテンツの目次",
"ru": "Расширенное содержание",
"fr": "Table des matières complète"
Expand Down
1 change: 1 addition & 0 deletions macros/ChromeBug.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var bugPageURL = "https://bugs.chromium.org/p/chromium/issues/detail?id=" + $0;
var s = "";
var linkLabel = mdn.replacePlaceholders(mdn.localString({
"en-US": "Chromium bug $1$",
"es": "Error Chromium $1$",
"de": "Chromium Bug $1$",
"ca": "Chromium errada $1$",
"cs": "Chromium chyba $1$",
Expand Down
9 changes: 6 additions & 3 deletions macros/Compat.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,18 @@ var localize = mdn.getLocalString;
var s_no_data_found = mdn.localString({
'en-US': `No compatibility data found. Please contribute data for "${query}" (depth: ${depth}) to the <a href="https://github.com/mdn/browser-compat-data">MDN compatibility data repository</a>.`
'en-US' : `No compatibility data found. Please contribute data for "${query}" (depth: ${depth}) to the <a href="https://github.com/mdn/browser-compat-data">MDN compatibility data repository</a>.`,
'es' : `No se han encontrado datos de compatibilidad. Por favor contribuye "${query}" (depth: ${depth}) en el <a href="https://github.com/mdn/browser-compat-data">repositorio de compatibilidad de datos de MDN</a>.`
});
var s_firefox_android = mdn.localString({
'en-US': 'Firefox for Android'
'en-US' : 'Firefox for Android',
'es' : 'Firefox para Android'
});
var s_chrome_android = mdn.localString({
'en-US': 'Chrome for Android'
'en-US' : 'Chrome for Android',
'es' : 'Chrome para Android'
});
const browsers = {
Expand Down
5 changes: 4 additions & 1 deletion macros/CompatEdge.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,22 @@ var edgeHTMLVersion = $0;
var str20OrEarlier = mdn.localString({
"en-US" : "20 or earlier",
"es" : "20 o anterior",
"fr" : "20 ou moins",
"de" : "20 oder früher",
"ru" : "20 или ранее"
});
var strUnknown = mdn.localString({
"en-US" : "Unknown",
"es" : "Desconocido",
"de" : "Unbekannt"
});
var title = mdn.localString({
"fr" : "Sorti le $releaseDate$.",
"en-US" : "Released on $releaseDate$.",
"es" : "Publicado en $releaseDate$.",
"fr" : "Sorti le $releaseDate$.",
"de" : "Veröffentlicht am $releaseDate$.",
"ru" : "Выпущен $releaseDate$."
});
Expand Down
2 changes: 2 additions & 0 deletions macros/CompatGeckoDesktop.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var geckoVer = $0;
var loca = mdn.localString({
'en-US' : '1.7 or earlier',
'es' : '1.7 o anterior',
'fr' : '1.7 ou moins',
'de' : '1.7 oder früher',
'ru' : '1.7 или ранее'
Expand Down Expand Up @@ -129,6 +130,7 @@ if ((fxVer != "1.0") && (fxVer != "Unknown")) { // No release notes for 1.0
titleStr = mdn.localString({
"fr" : "Sorti le " + releaseDateStr + ".",
"en-US" : "Released on " + releaseDateStr + ".",
"es" : "Publicado en " + releaseDateStr + ".",
"de" : "Veröffentlicht am " + releaseDateStr + ".",
"ru" : "Выпущен " + releaseDateStr + "."
});
Expand Down
1 change: 1 addition & 0 deletions macros/CompatNo.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
var text = mdn.localString({
"en-US": "No&nbsp;support",
"de" : "Nicht unterstützt",
"es" : "Sin soporte",
"fr" : "Pas de support",
"ja" : "未サポート",
"nl" : "Niet ondersteund",
Expand Down
4 changes: 4 additions & 0 deletions macros/CompatUnknown.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ var style = "color: rgb(255, 153, 0);";
// Localizers: add your language to the switch statement below!
switch(env.locale) {
case 'es':
title = "Compatibilidad desconocida, por favor actualízala.";
str = "?";
break;
case 'ru':
title = "Совместимость неизвестна; пожалуйста, обновите информацию.";
str = "?";
Expand Down
4 changes: 4 additions & 0 deletions macros/CompatVersionUnknown.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ var str = mdn.localStringMap({
'title': "Please update this with the earliest version of support.",
'text': "Yes"
},
"es": {
'title': "Por favor actualiza esto con la versión más reciente que de soporte.",
'text': "Yes"
},
"fr": {
'title': "Veuillez mettre à jour avec la version minimale du support",
'text': "Oui"
Expand Down
1 change: 1 addition & 0 deletions macros/CompatibilityTable.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
var s_header = mdn.localString({
"en-US": [ "Desktop", "Mobile" ],
"cs": [ "Plocha", "Mobile" ],
"en-US": [ "Escritorio", "Móvil" ],
"ja": [ "デスクトップ", "モバイル" ],
"pl": [ "Pulpit", "Mobile" ],
"de": [ "Desktop", "Mobile" ],
Expand Down
4 changes: 3 additions & 1 deletion macros/OpenEventProperties.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ var el = env.locale;
var s_th = mdn.localString({
"en-US" : ["Property" , "Type", "Description"],
"fr" : ["Propriété" , "Type", "Description"],
"es" : ["Propiedad" , "Tipo", "Descripción"],
"ja" : ["プロパティ", "" , "説明"],
"ru" : ["Свойство", "Тип", "Описание"]
});
var s = mdn.localString({
"ja" : ["イベントターゲット (DOM ツリー内最上位の対象)", "イベントの型", "通常時のバブリングの有無", "イベントのキャンセルの可否"],
"ja" : ["イベントターゲット (DOM ツリー内最上位の対象)", "イベントの型", "通常時のバブリングの有無", "イベントのキャンセルの可否"],
"en-US" : ["The event target (the topmost target in the DOM tree).", "The type of event.", "Whether the event normally bubbles or not", "Whether the event is cancellable or not?"],
"es" : ["El objetivo del evento (el elemento más superior en el árbol DOM).", "El tipo de evento.", "Si el elemento normalmente es burbuja o no", "Si el elemento es cancelable o no"],
"ru" : ["Цель события (самая важная в дереве DOM).","Тип события.","Будет ли событие нормально бить","Отменяемо ли событие?"]
});
Expand Down
1 change: 1 addition & 0 deletions macros/SeeCompatTable.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
var str = mdn.localString({
"de" : "<strong>Dies ist eine experimentelle Technologie</strong><br />Da diese Technologie noch nicht definitiv implementiert wurde, sollte die <a href='#Browser_compatibility'>Browser Kompatibilität</a> beachtet werden. Es ist auch möglich, dass der Syntax in einer späteren Spezifikation noch geändert wird.",
"es" : "<strong>Esta es una <a href='/en-US/docs/MDN/Contribute/Guidelines/Conventions_definitions#Experimental'>tecnología experimental</a></strong><br />Comprueba la <a href='#Browser_compatibility'>Tabla de compabilidad de navegadores</a> cuidadosamente antes de usarla en producción.",
"fr" : "<strong>Cette fonction est expérimentale</strong><br />Puisque cette fonction est toujours en développement dans certains navigateurs, veuillez consulter le <a href='#Browser_compatibility'>tableau de compatibilité</a> pour les préfixes à utiliser selon les navigateurs.<br />Il convient de noter qu'une fonctionnalité expérimentale peut voir sa syntaxe ou son comportement modifié dans le futur en fonction des évolutions de la spécification.",
"ja" : "<strong>これは実験段階の機能です。</strong><br />この機能は複数のブラウザーで開発中の状態にあります。<a href='#Browser_compatibility'>互換性テーブル</a>をチェックしてください。また、実験段階の機能の構文と挙動は、仕様変更に伴い各ブラウザーの将来のバージョンで変更になる可能性があることに注意してください。 ",
"zh-CN" : "<strong>这是一个实验中的功能</strong><br />此功能某些浏览器尚在开发中,请参考<a href='#Browser_compatibility'>浏览器兼容性表格</a>以得到在不同浏览器中适合使用的前缀。由于该功能对应的标准文档可能被重新修订,所以在未来版本的浏览器中该功能的语法和行为可能随之改变。",
Expand Down
2 changes: 2 additions & 0 deletions macros/SpecName.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,7 @@ url = specList[spec] && specList[spec].url || 'about:unknown';
if ($2) {
title = mdn.localString({
"en-US": "The definition of '" + $2 + "' in that specification.",
"es": "La definición de '" + $2 + "' en esta especificación.",
"fr": "La définition de '" + $2 + "' dans cette spécification.",
"de": "Die Definition von '" + $2 + "' in dieser Spezifikation.",
"ru": "Определение '" + $2 + "' в этой спецификации.",
Expand All @@ -1209,6 +1210,7 @@ if ($2) {
} else {
title = mdn.localString({
"en-US": "The '" + name + "' specification",
"es": "La especificación '" + name + "'",
"fr": "La spécificaction '" + name + "'",
"de": "Die '" + name + "' Spezifikation",
"ru": "Спецификация '" + name + "'",
Expand Down
1 change: 1 addition & 0 deletions macros/bug.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ var s_bug = mdn.localString({
"en-US": "bug",
"ca" : "errada",
"cs" : "chyba",
"es" : "error",
"ja" : "バグ",
"pl" : "błąd",
"de" : "Bug",
Expand Down

0 comments on commit 560f441

Please sign in to comment.