Skip to content

Commit

Permalink
chore(macros): remove translations for retired locales (#8127)
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner authored Feb 3, 2023
1 parent 4642372 commit c425520
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 270 deletions.
20 changes: 8 additions & 12 deletions docs/kumascript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,6 @@ const text = mdn.localStringMap({
'Complete_beginners_start_here': 'Complete beginners start here!',
'Getting_started_with_the_web': 'Getting started with the web',
},
'de': {
'Complete_beginners_start_here': 'Anfänger starten hier!',
'Getting_started_with_the_web': 'Lernen Sie das Internet kennen',
},
'fr': {
'Complete_beginners_start_here': 'Bienvenue aux débutants !',
'Getting_started_with_the_web': 'Commencer avec le Web',
Expand All @@ -470,31 +466,31 @@ appropriate locale. If a string is missing for a locale, it will fall back to
<%
const s_title = mdn.localString({
"en-US": "Firefox for Developers",
"de": "Firefox für Entwickler",
"es": "Firefox para desarrolladores"
"es": "Firefox para desarrolladores",
"fr": "Firefox pour les développeurs",
});

const body = mdn.localString({
"en-US": {
"hello": "Hello!",
"goodbye": "Goodbye!",
},
"de": {
"hello": "Hallo!",
"goodbye": "Auf Wiedersehen!",
},
"es": {
"hello": "¡Hola!"
},
"fr": {
"hello": "Bonjour !",
"goodbye": "Au revoir !",
}
});
%>
<%= s_title %> / <%= body['hello'] %> / <%= body['goodbye'] %>
```

Will render, for `de`:
Will render, for `fr`:

```plain
Firefox für Entwickler / Hallo! / Auf Wiedersehen!
Firefox pour les développeurs / Bonjour ! / Au revoir !
```

...and for `es`:
Expand Down
4 changes: 0 additions & 4 deletions kumascript/macros/DeprecatedGeneric.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ switch(lang) {
str = "Obsolète";
if (ver.length) { str = str + " depuis " + ver; }
break;
case 'it':
str = "Deprecato";
if (ver.length) { str = str + " " + ver; }
break;
case 'ja':
str = "非推奨";
if (ver.length) { str = str + " " + ver; }
Expand Down
27 changes: 0 additions & 27 deletions kumascript/macros/FirefoxSidebar.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ const text = mdn.localStringMap({
"Themes": "Themes",
"Firefox_documentation": "Firefox documentation",
},
"bn-BD": {
"Firefox_releases": "Firefox releases",
"Firefox_release_notes_developer": "Firefox release notes for developers",
"Experimental_features_firefox": "Experimental features in Firefox",
"Add-ons": "অ্যাড-অন",
"Browser_extensions": "Browser extensions",
"Themes": "থিম",
"Firefox_documentation": "Firefox documentation",
},
"es": {
"Firefox_releases": "Lanzamientos de Firefox",
"Firefox_release_notes_developer": "Notas de lanzamiento de Firefox, para desarrolladores",
Expand All @@ -42,24 +33,6 @@ const text = mdn.localStringMap({
"Themes": "Thèmes",
"Firefox_documentation": "Documentation de Firefox",
},
"id": {
"Firefox_releases": "Firefox releases",
"Firefox_release_notes_developer": "Firefox release notes for developers",
"Experimental_features_firefox": "Experimental features in Firefox",
"Add-ons": "Add-ons",
"Browser_extensions": "Browser extensions",
"Themes": "Themes",
"Firefox_documentation": "Firefox documentation",
},
"it": {
"Firefox_releases": "Firefox releases",
"Firefox_release_notes_developer": "Firefox release notes for developers",
"Experimental_features_firefox": "Experimental features in Firefox",
"Add-ons": "Componenti aggiuntivi",
"Browser_extensions": "WebExtensions",
"Themes": "Temi",
"Firefox_documentation": "Firefox documentation",
},
"ja": {
"Firefox_releases": "Firefox リリース",
"Firefox_release_notes_developer": "Firefox 開発者向けリリースノート",
Expand Down
112 changes: 0 additions & 112 deletions kumascript/macros/GamesSidebar.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -63,62 +63,6 @@ const text = mdn.localStringMap({
"Game_promotion": "Game promotion",
"Game_monetization": "Game monetization"
},
"bn-BD": {
"Introduction": "ওয়েবের জন্য গেম ডেভেলপমেন্ট পরিচিতি",
"Anatomy": "একটি ভিডিও গেমের বিশ্লেষণ",
"Examples": "Examples",
"APIs_for_game_development": "APIs for game development",
"Canvas": "Canvas",
"CSS": "CSS",
"Full_Screen": "Full screen",
"Gamepad": "Gamepad",
"IndexedDB": "IndexedDB",
"JavaScript": "JavaScript",
"Pointer_Lock": "Pointer Lock",
"SVG": "SVG",
"Typed_Arrays": "Typed Arrays",
"Web_Audio": "Web Audio",
"WebGL": "WebGL",
"WebRTC": "WebRTC",
"Web_Sockets": "WebSockets",
"WebVR": "WebVR",
"Web_Workers": "Web Workers",
"XMLHttpRequest": "XMLHttpRequest",
"Techniques": "কৌশল সমূহ",
"Using_async_scripts_for_asm.js": "asm.js এর জন্য async স্ক্রিপ্ট ব্যবহার কর",
"Optimizing_startup_performance": "চালু হওয়াকালীন পারফর্মেন্স উন্নত কর",
"Using_WebRTC_peer-to-peer_data_channels": "WebRTC peer-to-peer ডাটা চ্যানেল ব্যবহার কর",
"Efficient_animation_for_web_games": "ওয়েব গেমের জন্য দক্ষ এনিমেশন",
"Audio_for_Web_Games": "Audio for Web Games",
"2D_collision_detection": "2D collision detection",
"Tiles_and_tilemaps_overview": "Tiles and tilemaps overview",
"3D_games_on_the_Web": "3D games on the Web",
"3D_games_on_the_Web_overview": "3D games on the Web overview",
"Explaining_basic_3D_theory": "Explaining basic 3D theory",
"Building_up_a_basic_demo_with_A-Frame": "Building up a basic demo with A-Frame",
"Building_up_a_basic_demo_with_Babylon.js": "Building up a basic demo with Babylon.js",
"Building_up_a_basic_demo_with_PlayCanvas": "Building up a basic demo with PlayCanvas",
"Building_up_a_basic_demo_with_Three.js": "Building up a basic demo with Three.js",
"WebVR_guide": "WebVR",
"3D_collision_detection": "3D collision detection",
"Bounding_volume_collision_detection_with_THREE.js": "Bounding volume collision detection with THREE.js",
"Implementing_game_control_mechanisms": "Implementing game control mechanisms",
"Control_mechanisms": "Control mechanisms",
"Mobile_touch": "Mobile touch",
"Desktop_with_mouse_and_keyboard": "Desktop with mouse and keyboard",
"Desktop_with_gamepad": "Desktop with gamepad",
"Other": "Other",
"Tutorials": "Tutorials",
"2D_breakout_game_using_pure_JavaScript": "2D breakout game using pure JavaScript",
"2D_breakout_game_using_Phaser": "2D breakout game using Phaser",
"2D_maze_game_with_device_orientation": "2D maze_game with device orientation",
"2D_platform_game_using_Phaser": "2D platform game using Phaser",
"Publishing_games": "Publishing games",
"Publishing_games_overview": "Publishing games overview",
"Game_distribution": "Game distribution",
"Game_promotion": "Game promotion",
"Game_monetization": "Game monetization"
},
"es": {
"Introduction": "Introducción para desarrollo de juegos para la Web",
"Anatomy": "Anatomía de un videojuego",
Expand Down Expand Up @@ -399,62 +343,6 @@ const text = mdn.localStringMap({
"Game_promotion": "Promoção de Jogos",
"Game_monetization": "Monetização de Jogos"
},
"th": {
"Introduction": "Introduction",
"Anatomy": "Anatomy",
"Examples": "Examples",
"APIs_for_game_development": "APIs for game development",
"Canvas": "Canvas",
"CSS": "CSS",
"Full_Screen": "Full screen",
"Gamepad": "Gamepad",
"IndexedDB": "IndexedDB",
"JavaScript": "JavaScript",
"Pointer_Lock": "Pointer Lock",
"SVG": "SVG",
"Typed_Arrays": "Typed Arrays",
"Web_Audio": "Web Audio",
"WebGL": "WebGL",
"WebRTC": "WebRTC",
"Web_Sockets": "WebSockets",
"WebVR": "WebVR",
"Web_Workers": "Web Workers",
"XMLHttpRequest": "XMLHttpRequest",
"Techniques": "Kỹ thuật",
"Using_async_scripts_for_asm.js": "Sử dụng tập lệnh async cho asm.js",
"Optimizing_startup_performance": "Tối ưu hóa hiệu suất khởi động",
"Using_WebRTC_peer-to-peer_data_channels": "Sử dụng các kênh dữ liệu WebRTC peer-to-peer",
"Efficient_animation_for_web_games": "Hiệu quả hoạt hình cho các trò chơi trên web",
"Audio_for_Web_Games": "Âm thanh cho Trò chơi Web",
"2D_collision_detection": "Phát hiện va chạm 2D",
"Tiles_and_tilemaps_overview": "Gạch ngói và tổng quan",
"3D_games_on_the_Web": "Trò chơi 3D trên tổng quan về Web",
"3D_games_on_the_Web_overview": "Trò chơi 3D trên tổng quan về Web",
"Explaining_basic_3D_theory": "Giải thích lý thuyết cơ bản 3D",
"Building_up_a_basic_demo_with_A-Frame": "Xây dựng một bản giới thiệu cơ bản với A-Frame",
"Building_up_a_basic_demo_with_Babylon.js": "Xây dựng bản giới thiệu cơ bản với Babylon.js",
"Building_up_a_basic_demo_with_PlayCanvas": "Xây dựng bản giới thiệu cơ bản với PlayCanvas",
"Building_up_a_basic_demo_with_Three.js": "Xây dựng bản giới thiệu cơ bản với Three.js",
"WebVR_guide": "WebVR",
"3D_collision_detection": "Phát hiện va chạm 3D",
"Bounding_volume_collision_detection_with_THREE.js": "Bẫy sự va chạm khối lượng với THREE.js",
"Implementing_game_control_mechanisms": "Thực hiện cơ chế kiểm soát trò chơi",
"Control_mechanisms": "Tổng quan về cơ chế kiểm soát trò chơi",
"Mobile_touch": "Điều khiển cảm ứng di động",
"Desktop_with_mouse_and_keyboard": "Bộ điều khiển bàn phím chuột và bàn phím",
"Desktop_with_gamepad": "Bộ điều khiển trò chơi trên máy tính để bàn",
"Other": "Kiểm soát độc đáo",
"Tutorials": "Hướng dẫn",
"2D_breakout_game_using_pure_JavaScript": "Trò chơi 2D breakout sử dụng JavaScript thuần túy",
"2D_breakout_game_using_Phaser": "Trò chơi 2D breakout bằng Phaser",
"2D_maze_game_with_device_orientation": "Game 2D mê cung với định hướng thiết bị",
"2D_platform_game_using_Phaser": "Trò chơi nền tảng 2D sử dụng Phaser",
"Publishing_games": "Trò chơi xuất bản",
"Publishing_games_overview": "Xuất bản trò chơi tổng quan",
"Game_distribution": "Phân phối trò chơi",
"Game_promotion": "Quảng cáo trò chơi",
"Game_monetization": "Kiếm tiền từ trò chơi"
}
});
%>
Expand Down
2 changes: 0 additions & 2 deletions kumascript/macros/Non-standard_Header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ var str_long = mdn.localString({
"en-US": "This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.",
"es": "Esta característica no es parte de los estándares. No la uses en sitios Web en producción: no funcionará para todos los usuarios. Podrían haber también incompatibilidades considerables entre distintas implementaciones y el comportamiento podría cambiar en el futuro.",
"fr": "Cette fonctionnalité n'est ni standard, ni en voie de standardisation. Ne l'utilisez pas pour des sites accessibles sur le Web : elle ne fonctionnera pas pour tout utilisateur. Il peut également y avoir d'importantes incompatibilités entre les implémentations et son comportement peut être modifié dans le futur.",
"it": "Questa funzionalità non è standard e non è parte di un processo di standardizzazione. Non utilizzarla in siti accessibili dal Web: non funzionerà per tutti gli utenti. Inoltre si potrebbero verificare incompatibilità sostanziali tra le implementazioni, ed il comportamento potrebbe cambiare in futuro.",
"ja": "この機能は標準ではなく、標準化の予定もありません。公開されているウェブサイトには使用しないでください。ユーザーによっては使用できないことがあります。実装ごとに大きな差があることもあり、将来は振る舞いが変わるかもしれません。",
"ko": "이 기능은 비표준이므로 실제 프로덕션에서 사용하지 마세요. 모든 사용자 환경에서 작동하지 않을 수 도 있으며, 미래에 호환성 문제가 생길 수 있습니다.",
"ru": "Эта возможность не является стандартной и стандартизировать её пока никто не собирается. Не используйте её на сайтах, смотрящих во внешний мир: она будет работать не у всех пользователей. Также могут присутствовать большие несовместимости между реализациями и её поведение может в будущем измениться.",
Expand All @@ -26,7 +25,6 @@ var str_fxos_long = mdn.localString({
"en-US": "This feature is not on a current W3C standards track, but it is supported on the Firefox OS platform. Although implementations may change in the future and it is not supported widely across browsers, it is suitable for use in code dedicated to Firefox OS apps.",
"es": "Esta característica no está en ningún estándar actual del W3C, sin embargo está soportado en la plataforma Firefox OS. Aunque las implementaciones podrían cambiar en el futuro y no se soporta ampliamente por los navegadores, es apropiado usarse en código dedicado a aplicaciones de Firefox OS.",
"fr": "Cette fonctionnalité n'est pas en voie de standardisation au W3C, mais elle est supportée par la plateforme Firefox OS. Bien que son implémentation puisse changer dans le futur et qu'elle n'est pas largement supportée par les différents navigateurs, elle est utilisable pour du code dédié aux applications Firefox OS.",
"it": "Questa funzionalità non è al momento parte di un processo di standardizzazione del W3C, ma è supportata dalla piattaforma Firefox OS. Sebbene l'implementazione potrebbe cambiare in futuro e non è supportata sufficientemente tra i vari browser, è comunque adatta per l'utilizzo nel codice dedicato ad applicazioni per Firefox OS.",
"ko": "이 기능은 W3C 표준 기능은 아니지만, Firefox 운영체제에서 지원이 됩니다. 미래에는 동작이 바뀔 수 있고, 다른 브라우저에서는 동작 안할 수 있지만, Firefox 운영체제 앱에서는 사용 가능합니다.",
"ja": "この機能は現在 W3C の標準化のプロセスに乗っていませんが、Firefox OS プラットフォームではサポートされています。将来は動作が変わるかもしれませんし、他のブラウザーで広くサポートされているわけでもありませんが、Firefox OS アプリ専用のコードで使うには適しています。",
"ru": "Эта возможность не является стандартом W3C и стандартизировать её пока никто не собирается, но она поддерживается на платформе Firefox OS. Хотя возможность не поддерживается всеми браузерами и в будущем её реализация может изменяться, она может использоваться в коде приложений для Firefox OS."
Expand Down
21 changes: 0 additions & 21 deletions kumascript/macros/ObsoleteBadge.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,13 @@
// $0 If specified, the badge is "small"
var titleAttrValue = mdn.localString({
"bn-BD": "This is an obsolete API and is no longer guaranteed to work.",
"ca": "This is an obsolete API and is no longer guaranteed to work.",
"cs": "This is an obsolete API and is no longer guaranteed to work.",
"el": "This is an obsolete API and is no longer guaranteed to work.",
"en-US": "This is an obsolete API and is no longer guaranteed to work.",
"es": "This is an obsolete API and is no longer guaranteed to work.",
"fa": "This is an obsolete API and is no longer guaranteed to work.",
"fi": "This is an obsolete API and is no longer guaranteed to work.",
"fr": "This is an obsolete API and is no longer guaranteed to work.",
"fy-NL": "This is an obsolete API and is no longer guaranteed to work.",
"ga-IE": "This is an obsolete API and is no longer guaranteed to work.",
"he": "This is an obsolete API and is no longer guaranteed to work.",
"hr": "This is an obsolete API and is no longer guaranteed to work.",
"hu": "This is an obsolete API and is no longer guaranteed to work.",
"id": "This is an obsolete API and is no longer guaranteed to work.",
"it": "This is an obsolete API and is no longer guaranteed to work.",
"ja": "これは廃止された API であり、動作は保証されていません。",
"ko": "폐기된 API입니다. API의 동작이 보장 되지 않습니다. ",
"ms": "This is an obsolete API and is no longer guaranteed to work.",
"nl": "This is an obsolete API and is no longer guaranteed to work.",
"pt-BR": "This is an obsolete API and is no longer guaranteed to work.",
"pt-PT": "This is an obsolete API and is no longer guaranteed to work.",
"ro": "This is an obsolete API and is no longer guaranteed to work.",
"ru": "Этот API вышел из употребления и его работа больше не гарантируется.",
"sq": "This is an obsolete API and is no longer guaranteed to work.",
"th": "This is an obsolete API and is no longer guaranteed to work.",
"tr": "This is an obsolete API and is no longer guaranteed to work.",
"vi": "This is an obsolete API and is no longer guaranteed to work.",
"zh-CN": "This is an obsolete API and is no longer guaranteed to work.",
"zh-TW": "This is an obsolete API and is no longer guaranteed to work."
Expand Down
6 changes: 1 addition & 5 deletions kumascript/macros/PreviousMenuNext.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ var strMenu = "";
var s_PreviousNext = mdn.localString({
"en-US": [" Previous ", " Next "],
"cs" : [" Předchozí ", " Následující "],
"es" : [" Anterior ", " Siguiente "],
"fr" : [" Précédent ", " Suivant "],
"pt-PT": [" Anterior ", " Próxima "],
"pt-BR": [" Anterior ", " Próxima "],
"he" : [" קוד ם", "הבא "] ,
"ja" : [" 前のページ ", " 次のページ "],
"ko" : [" 이전 ", " 다음 "],
"pt-BR": [" Anterior ", " Próxima "],
"ru" : [" Назад ", " Далее "],
"zh-CN": [" 上一页 ", " 下一页 "],
"zh-TW": [" 前頁 ", " 次頁 "]
Expand Down
4 changes: 0 additions & 4 deletions kumascript/macros/PreviousNext.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@ var strNext = "";
var s_PreviousNext = mdn.localString({
"en-US": ["« Previous", "Next »"],
"cs" : ["« Předchozí", "Následující »"],
"es" : ["« Anterior", "Siguiente »"],
"fr" : ["« Précédent", "Suivant »"],
"pt-PT": ["« Anterior", "Próxima »"],
"he" : ["« קודם", "הבא »"] ,
"ja" : ["« 前のページ", "次のページ »"],
"ko" : ["« 이전", "다음 »"],
"ru" : ["« Предыдущая статья", "Следующая статья »"],
Expand Down
2 changes: 0 additions & 2 deletions kumascript/macros/WebkitBug.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
var bugPageURL = 'https://bugs.webkit.org/show_bug.cgi?id=' + $0;
var s = "";
var linkLabel = mdn.replacePlaceholders(mdn.localString({
"ca": "WebKit errada $1$",
"cs": "WebKit chyba $1$",
"en-US": "WebKit bug $1$",
"ko": "WebKit 오류 $1$",
"ru": "Баг WebKit $1$"
Expand Down
2 changes: 0 additions & 2 deletions kumascript/macros/bug.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ if ($2 != undefined && !isNaN($2)) {
var s_bug = mdn.localString({
"en-US": "bug",
"ca" : "errada",
"cs" : "chyba",
"es" : "error",
"ja" : "バグ",
"ko" : "오류",
Expand Down
Loading

0 comments on commit c425520

Please sign in to comment.