Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,22 @@ The following templates are built-in and available for use without any additiona
</a>
</td>
</tr>
<tr>
<td align="center">
<code>win98</code><br/><br/>
<picture>
<img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ferror-pages.goatcounter.com%2Fcounter%2F%2Fuse-template%2Fwin98.json&query=%24.count&label=used%20times" alt="used times">
</picture>
</td>
<td>
<a href="https://tarampampam.github.io/error-pages/win98/404.html">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/user-attachments/assets/bdebb475-0524-43ac-8cc6-4b194228e6e1">
<img align="center" src="https://github.com/user-attachments/assets/dc503e2d-dde1-4606-994c-3b448e2acd94">
</picture>
</a>
</td>
</tr>
</tbody>
</table>

Expand Down Expand Up @@ -819,7 +835,7 @@ Transfer/sec: 1.94GB
</details>

<!--GENERATED:CLI_DOCS-->
<!-- Documentation inside this block generated by github.com/urfave/cli; DO NOT EDIT -->
<!-- Documentation inside this block generated by github.com/urfave/cli-docs/v3; DO NOT EDIT -->
## CLI interface

Usage:
Expand Down Expand Up @@ -857,7 +873,7 @@ The following flags are supported:
| `--json-format="…"` | Override the default error page response in JSON format (Go templates are supported; the error page will use this template if the client requests JSON content type) | | `RESPONSE_JSON_FORMAT` |
| `--xml-format="…"` | Override the default error page response in XML format (Go templates are supported; the error page will use this template if the client requests XML content type) | | `RESPONSE_XML_FORMAT` |
| `--plaintext-format="…"` | Override the default error page response in plain text format (Go templates are supported; the error page will use this template if the client requests plain text content type or does not specify any) | | `RESPONSE_PLAINTEXT_FORMAT` |
| `--template-name="…"` (`-t`) | Name of the template to use for rendering error pages (built-in templates: app-down, cats, connection, ghost, hacker-terminal, l7, lost-in-space, noise, orient, shuffle) | `app-down` | `TEMPLATE_NAME` |
| `--template-name="…"` (`-t`) | Name of the template to use for rendering error pages (built-in templates: app-down, cats, connection, ghost, hacker-terminal, l7, lost-in-space, noise, orient, shuffle, win98) | `app-down` | `TEMPLATE_NAME` |
| `--disable-l10n` | Disable localization of error pages (if the template supports localization) | `false` | `DISABLE_L10N` |
| `--default-error-page="…"` | The code of the default (index page, when a code is not specified) error page to render | `404` | `DEFAULT_ERROR_PAGE` |
| `--send-same-http-code` | The HTTP response should have the same status code as the requested error page (by default, every response with an error page will have a status code of 200) | `false` | `SEND_SAME_HTTP_CODE` |
Expand Down
39 changes: 39 additions & 0 deletions l10n/l10n.js
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,45 @@ Object.defineProperty(window, 'l10n', {
['pl', 'Sprawdź adres URL i spróbuj ponownie'],
['ko', 'URL을 다시 한번 확인해 주세요'],
])],
[tkn('My Computer'), new Map([
['fr', 'Poste de travail'],
['ru', 'Мой компьютер'],
['uk', 'Мій комп’ютер'],
['pt', 'Meu computador'],
['nl', 'Deze computer'],
['de', 'Arbeitsplatz'],
['es', 'Mi PC'],
['zh', '我的电脑'],
['id', 'Komputer Saya'],
['pl', 'Mój komputer'],
['ko', '내 컴퓨터'],
])],
[tkn('My Documents'), new Map([
['fr', 'Mes documents'],
['ru', 'Мои документы'],
['uk', 'Мої документи'],
['pt', 'Meus documentos'],
['nl', 'Mijn documenten'],
['de', 'Eigene Dateien'],
['es', 'Mis documentos'],
['zh', '我的文档'],
['id', 'Dokumen Saya'],
['pl', 'Moje dokumenty'],
['ko', '내 문서'],
])],
[tkn('Start'), new Map([
['fr', 'Démarrer'],
['ru', 'Пуск'],
['uk', 'Пуск'],
['pt', 'Iniciar'],
['nl', 'Start'],
['de', 'Start'],
['es', 'Inicio'],
['zh', '开始'],
['id', 'Mulai'],
['pl', 'Start'],
['ko', '시작'],
])],
]));

// detect browser locale (take only 2 first symbols)
Expand Down
2 changes: 1 addition & 1 deletion l10n/playground.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
'Request ID', 'Timestamp', 'client-side error', 'server-side error', 'Your Client', 'Network', 'Web Server',
'What happened?', 'What can i do?', 'Please try again in a few minutes', 'Working', 'Unknown',
'Please try to change the request method, headers, payload, or URL', 'Please check your authorization data',
'Please double-check the URL and try again',
'Please double-check the URL and try again', 'My Computer', 'My Documents', 'Start',
].forEach((token) => {
const $li = document.createElement('li');

Expand Down
Loading