Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ const labels = {
const copy = computed(() => labels[locale.value]);

const hostname = window.location.hostname;
const brand = { language: "Tala", talac: "talac", tazel: "Tazel" }[site];
const brand = { language: "Tala", talac: "Talac", tazel: "Tazel" }[site];
// The other two sites are linked by their names, which read the same in every language.
const siblings = (["language", "talac", "tazel"] as const)
.filter((other): other is Site => other !== site)
.map((other) => ({
label: { language: "Tala", talac: "talac", tazel: "Tazel" }[other],
label: { language: "Tala", talac: "Talac", tazel: "Tazel" }[other],
href: siteUrl(other, siteHome[other], hostname),
}));

Expand Down
40 changes: 20 additions & 20 deletions frontend/src/content/talac.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ const optionTerms = (d: {
const commandLine: DocTopic = {
"en-US": {
nav: "Command line",
title: "Command line · talac",
title: "Command line · Talac",
description:
"The command line of talac, the Tala compiler: inputs, options, the entry class and warnings.",
"The command line of Talac, the Tala compiler: inputs, options, the entry class and warnings.",
section: "TALAC / COMMAND LINE",
heading: "The compiler and its command line",
lead: "talac is the compiler and nothing else: sources or artifacts go in, one artifact comes out. Projects, dependencies, formatting and linting belong to Tazel, which starts talac as a separate program.",
lead: "Talac is the compiler and nothing else: sources or artifacts go in, one artifact comes out. Projects, dependencies, formatting and linting belong to Tazel, which starts Talac as a separate program.",
blocks: [
{ kind: "code", code: compile },
{
Expand Down Expand Up @@ -112,12 +112,12 @@ const commandLine: DocTopic = {
},
"de-DE": {
nav: "Befehlszeile",
title: "Befehlszeile · talac",
title: "Befehlszeile · Talac",
description:
"Die Befehlszeile von talac, dem Tala-Compiler: Eingaben, Optionen, die Einstiegsklasse und Warnungen.",
"Die Befehlszeile von Talac, dem Tala-Compiler: Eingaben, Optionen, die Einstiegsklasse und Warnungen.",
section: "TALAC / BEFEHLSZEILE",
heading: "Der Compiler und seine Befehlszeile",
lead: "talac ist der Compiler und nichts sonst: Quellen oder Artefakte gehen hinein, ein Artefakt kommt heraus. Projekte, Abhängigkeiten, Formatierung und Linting gehören zu Tazel, das talac als eigenes Programm startet.",
lead: "Talac ist der Compiler und nichts sonst: Quellen oder Artefakte gehen hinein, ein Artefakt kommt heraus. Projekte, Abhängigkeiten, Formatierung und Linting gehören zu Tazel, das Talac als eigenes Programm startet.",
blocks: [
{ kind: "code", code: compile },
{
Expand Down Expand Up @@ -171,12 +171,12 @@ const commandLine: DocTopic = {
},
"ru-RU": {
nav: "Командная строка",
title: "Командная строка · talac",
title: "Командная строка · Talac",
description:
"Командная строка talac, компилятора Tala: входные файлы, параметры, класс точки входа и предупреждения.",
"Командная строка Talac, компилятора Tala: входные файлы, параметры, класс точки входа и предупреждения.",
section: "TALAC / КОМАНДНАЯ СТРОКА",
heading: "Компилятор и его командная строка",
lead: "talac — это компилятор и ничего больше: на вход подаются исходники или артефакты, на выходе получается один артефакт. Проекты, зависимости, форматирование и линтинг относятся к Tazel, который запускает talac как отдельную программу.",
lead: "Talac — это компилятор и ничего больше: на вход подаются исходники или артефакты, на выходе получается один артефакт. Проекты, зависимости, форматирование и линтинг относятся к Tazel, который запускает Talac как отдельную программу.",
blocks: [
{ kind: "code", code: compile },
{
Expand Down Expand Up @@ -229,11 +229,11 @@ const commandLine: DocTopic = {
},
"he-IL": {
nav: "שורת הפקודה",
title: "שורת הפקודה · talac",
description: "שורת הפקודה של talac, המהדר של Tala: קלטים, אפשרויות, מחלקת הכניסה ואזהרות.",
title: "שורת הפקודה · Talac",
description: "שורת הפקודה של Talac, המהדר של Tala: קלטים, אפשרויות, מחלקת הכניסה ואזהרות.",
section: "TALAC / שורת הפקודה",
heading: "המהדר ושורת הפקודה שלו",
lead: "talac הוא המהדר ותו לא: קבצי מקור או תוצרים נכנסים, ותוצר אחד יוצא. פרויקטים, תלויות, עיצוב קוד ובדיקות lint שייכים ל-Tazel, שמפעיל את talac כתוכנית נפרדת.",
lead: "Talac הוא המהדר ותו לא: קבצי מקור או תוצרים נכנסים, ותוצר אחד יוצא. פרויקטים, תלויות, עיצוב קוד ובדיקות lint שייכים ל-Tazel, שמפעיל את Talac כתוכנית נפרדת.",
blocks: [
{ kind: "code", code: compile },
{
Expand Down Expand Up @@ -300,9 +300,9 @@ const outputTerms = (
const outputs: DocTopic = {
"en-US": {
nav: "Outputs",
title: "Outputs · talac",
title: "Outputs · Talac",
description:
"What talac reads and writes: --build and --emit, the intermediate stages, and the record of a check.",
"What Talac reads and writes: --build and --emit, the intermediate stages, and the record of a check.",
section: "TALAC / OUTPUTS",
heading: "Inputs and outputs",
lead: "--build says what the inputs are and --emit says what to write. The default is to build an executable from Tala sources. The output cannot be an earlier stage than the input.",
Expand Down Expand Up @@ -334,9 +334,9 @@ const outputs: DocTopic = {
},
"de-DE": {
nav: "Ausgaben",
title: "Ausgaben · talac",
title: "Ausgaben · Talac",
description:
"Was talac liest und schreibt: --build und --emit, die Zwischenstufen und der Nachweis einer Prüfung.",
"Was Talac liest und schreibt: --build und --emit, die Zwischenstufen und der Nachweis einer Prüfung.",
section: "TALAC / AUSGABEN",
heading: "Eingaben und Ausgaben",
lead: "--build sagt, was die Eingaben sind, und --emit, was geschrieben wird. Vorgabe ist eine ausführbare Datei aus Tala-Quellen. Die Ausgabe kann keine frühere Stufe sein als die Eingabe.",
Expand Down Expand Up @@ -368,9 +368,9 @@ const outputs: DocTopic = {
},
"ru-RU": {
nav: "Результаты",
title: "Результаты · talac",
title: "Результаты · Talac",
description:
"Что talac читает и записывает: --build и --emit, промежуточные стадии и запись о проверке.",
"Что Talac читает и записывает: --build и --emit, промежуточные стадии и запись о проверке.",
section: "TALAC / РЕЗУЛЬТАТЫ",
heading: "Входные данные и результаты",
lead: "--build говорит, что подаётся на вход, а --emit — что записать. По умолчанию из исходников Tala собирается исполняемый файл. Результат не может быть более ранней стадией, чем вход.",
Expand Down Expand Up @@ -402,8 +402,8 @@ const outputs: DocTopic = {
},
"he-IL": {
nav: "פלטים",
title: "פלטים · talac",
description: "מה talac קורא וכותב: ‎--build ו-‎--emit, שלבי הביניים והרשומה של בדיקה.",
title: "פלטים · Talac",
description: "מה Talac קורא וכותב: ‎--build ו-‎--emit, שלבי הביניים והרשומה של בדיקה.",
section: "TALAC / פלטים",
heading: "קלטים ופלטים",
lead: "‎--build אומר מה הקלטים, ו-‎--emit אומר מה לכתוב. ברירת המחדל היא לבנות קובץ הרצה מקבצי Tala. הפלט אינו יכול להיות שלב מוקדם יותר מהקלט.",
Expand Down
24 changes: 12 additions & 12 deletions frontend/src/content/tazel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ const commands: DocTopic = {
"The commands of Tazel, the build system and package manager of Tala, and how they select targets.",
section: "TAZEL / COMMANDS",
heading: "The build system and its commands",
lead: "Tazel reads the project file, finds the sources and starts talac, talafmt or talalint as separate programs. It compiles nothing itself. The name joins Tala and Bazel.",
lead: "Tazel reads the project file, finds the sources and starts Talac, talafmt or talalint as separate programs. It compiles nothing itself. The name joins Tala and Bazel.",
blocks: [
{ kind: "code", code: everyday },
{
kind: "terms",
items: commandTerms({
check:
"Starts talac with --emit=metadata and the compiler options of the project. Writes no executable.",
"Starts Talac with --emit=metadata and the compiler options of the project. Writes no executable.",
build:
"Builds the executables into the output directory of the build mode, under the name of the target.",
run: "Builds the executables and runs them; what follows -- goes to the program.",
Expand Down Expand Up @@ -139,14 +139,14 @@ const commands: DocTopic = {
"Die Befehle von Tazel, dem Build-System und Paketmanager von Tala, und wie sie Ziele auswählen.",
section: "TAZEL / BEFEHLE",
heading: "Das Build-System und seine Befehle",
lead: "Tazel liest die Projektdatei, findet die Quellen und startet talac, talafmt oder talalint als eigene Programme. Selbst kompiliert es nichts. Der Name verbindet Tala und Bazel.",
lead: "Tazel liest die Projektdatei, findet die Quellen und startet Talac, talafmt oder talalint als eigene Programme. Selbst kompiliert es nichts. Der Name verbindet Tala und Bazel.",
blocks: [
{ kind: "code", code: everyday },
{
kind: "terms",
items: commandTerms({
check:
"Startet talac mit --emit=metadata und den Compiler-Optionen des Projekts. Schreibt keine ausführbare Datei.",
"Startet Talac mit --emit=metadata und den Compiler-Optionen des Projekts. Schreibt keine ausführbare Datei.",
build:
"Baut die ausführbaren Dateien in das Ausgabeverzeichnis des Build-Modus, unter dem Namen des Ziels.",
run: "Baut die ausführbaren Dateien und startet sie; was nach -- folgt, geht an das Programm.",
Expand Down Expand Up @@ -190,14 +190,14 @@ const commands: DocTopic = {
description: "Команды Tazel, системы сборки и менеджера пакетов Tala, и как они выбирают цели.",
section: "TAZEL / КОМАНДЫ",
heading: "Система сборки и её команды",
lead: "Tazel читает файл проекта, находит исходники и запускает talac, talafmt или talalint как отдельные программы. Сам он ничего не компилирует. Название соединяет Tala и Bazel.",
lead: "Tazel читает файл проекта, находит исходники и запускает Talac, talafmt или talalint как отдельные программы. Сам он ничего не компилирует. Название соединяет Tala и Bazel.",
blocks: [
{ kind: "code", code: everyday },
{
kind: "terms",
items: commandTerms({
check:
"Запускает talac с --emit=metadata и параметрами компилятора из проекта. Исполняемый файл не создаётся.",
"Запускает Talac с --emit=metadata и параметрами компилятора из проекта. Исполняемый файл не создаётся.",
build: "Собирает исполняемые файлы в каталог результатов режима сборки под именем цели.",
run: "Собирает исполняемые файлы и запускает их; всё после -- передаётся программе.",
test: "Собирает и запускает наборы тестов.",
Expand Down Expand Up @@ -240,14 +240,14 @@ const commands: DocTopic = {
description: "הפקודות של Tazel, מערכת הבנייה ומנהל החבילות של Tala, ואיך הן בוחרות יעדים.",
section: "TAZEL / פקודות",
heading: "מערכת הבנייה והפקודות שלה",
lead: "Tazel קורא את קובץ הפרויקט, מוצא את קבצי המקור ומפעיל את talac, ‏talafmt או talalint כתוכניות נפרדות. הוא עצמו אינו מהדר דבר. השם מחבר את Tala ואת Bazel.",
lead: "Tazel קורא את קובץ הפרויקט, מוצא את קבצי המקור ומפעיל את Talac, ‏talafmt או talalint כתוכניות נפרדות. הוא עצמו אינו מהדר דבר. השם מחבר את Tala ואת Bazel.",
blocks: [
{ kind: "code", code: everyday },
{
kind: "terms",
items: commandTerms({
check:
"מפעיל את talac עם ‎--emit=metadata ועם אפשרויות המהדר של הפרויקט. אינו כותב קובץ הרצה.",
"מפעיל את Talac עם ‎--emit=metadata ועם אפשרויות המהדר של הפרויקט. אינו כותב קובץ הרצה.",
build: "בונה את קובצי ההרצה לתיקיית הפלט של מצב הבנייה, בשם היעד.",
run: "בונה את קובצי ההרצה ומריץ אותם; מה שאחרי ‎-- עובר לתוכנית.",
test: "בונה ומריץ את חבילות הבדיקה.",
Expand Down Expand Up @@ -307,7 +307,7 @@ const projectFile: DocTopic = {
{ kind: "heading", text: "Compiler settings" },
{
kind: "text",
text: "Tazel writes every setting onto the command line of talac, the defaults too. optLevel defaults to O0 in a debug build and O3 in a release build. No warning level turns wshadow on, and wshadow with Warnings.NONE is rejected.",
text: "Tazel writes every setting onto the command line of Talac, the defaults too. optLevel defaults to O0 in a debug build and O3 in a release build. No warning level turns wshadow on, and wshadow with Warnings.NONE is rejected.",
},
{ kind: "code", code: compiler },
{ kind: "heading", text: "Dependencies" },
Expand Down Expand Up @@ -350,7 +350,7 @@ const projectFile: DocTopic = {
{ kind: "heading", text: "Compiler-Einstellungen" },
{
kind: "text",
text: "Tazel schreibt jede Einstellung auf die Befehlszeile von talac, auch die Vorgaben. optLevel ist in einem Debug-Build O0 und in einem Release-Build O3. Keine Warnstufe schaltet wshadow ein, und wshadow zusammen mit Warnings.NONE wird abgelehnt.",
text: "Tazel schreibt jede Einstellung auf die Befehlszeile von Talac, auch die Vorgaben. optLevel ist in einem Debug-Build O0 und in einem Release-Build O3. Keine Warnstufe schaltet wshadow ein, und wshadow zusammen mit Warnings.NONE wird abgelehnt.",
},
{ kind: "code", code: compiler },
{ kind: "heading", text: "Abhängigkeiten" },
Expand Down Expand Up @@ -393,7 +393,7 @@ const projectFile: DocTopic = {
{ kind: "heading", text: "Настройки компилятора" },
{
kind: "text",
text: "Tazel передаёт в командную строку talac каждую настройку, в том числе значения по умолчанию. optLevel по умолчанию O0 в отладочной сборке и O3 в релизной. Ни один уровень предупреждений не включает wshadow, а wshadow вместе с Warnings.NONE отклоняется.",
text: "Tazel передаёт в командную строку Talac каждую настройку, в том числе значения по умолчанию. optLevel по умолчанию O0 в отладочной сборке и O3 в релизной. Ни один уровень предупреждений не включает wshadow, а wshadow вместе с Warnings.NONE отклоняется.",
},
{ kind: "code", code: compiler },
{ kind: "heading", text: "Зависимости" },
Expand Down Expand Up @@ -436,7 +436,7 @@ const projectFile: DocTopic = {
{ kind: "heading", text: "הגדרות המהדר" },
{
kind: "text",
text: "Tazel כותב כל הגדרה לשורת הפקודה של talac, גם את ברירות המחדל. ברירת המחדל של optLevel היא O0 בבניית debug ו-O3 בבניית release. אף רמת אזהרות אינה מפעילה את wshadow, ו-wshadow יחד עם Warnings.NONE נדחה.",
text: "Tazel כותב כל הגדרה לשורת הפקודה של Talac, גם את ברירות המחדל. ברירת המחדל של optLevel היא O0 בבניית debug ו-O3 בבניית release. אף רמת אזהרות אינה מפעילה את wshadow, ו-wshadow יחד עם Warnings.NONE נדחה.",
},
{ kind: "code", code: compiler },
{ kind: "heading", text: "תלויות" },
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { applyPageMetadata } from "./seo";
import { site, siteHome } from "./site";
import "./styles/site.css";

// tala.run has its home page and two pages built by hand; the documentation of talac and Tazel, on their own
// tala.run has its home page and two pages built by hand; the documentation of Talac and Tazel, on their own
// hosts, is rendered from content and opens on its first topic.
const pages: RouteRecordRaw[] =
site === "language"
Expand Down
2 changes: 1 addition & 1 deletion frontend/tests/sites.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ test("the documentation teaches the current command lines only", () => {

test("each site names its pages and points canonical URLs at its own host", () => {
const talac = pageMetadata("/docs/outputs", "de-DE", "talac");
assert.equal(talac.title, "Ausgaben · talac");
assert.equal(talac.title, "Ausgaben · Talac");
assert.equal(talac.canonicalPath, "/docs/outputs");
const tazel = pageMetadata("/", "en-US", "tazel");
assert.equal(tazel.canonicalPath, "/docs/commands");
Expand Down
Loading