mirror of
https://github.com/elpamplina/mastodon-threading.git
synced 2026-07-22 05:35:49 +00:00
German translation.
Fix broken credential encryption when using foreign charsets.
This commit is contained in:
parent
84b0f0f858
commit
b7b54bbde0
8 changed files with 88 additions and 5 deletions
17
CHANGELOG.md
Normal file
17
CHANGELOG.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Changelog
|
||||
|
||||
## [1.0.8](https://github.com/elpamplina/mastodon-threading/compare/1.0.7...1.0.8)
|
||||
|
||||
### Languages
|
||||
|
||||
* German translation, thanks to [platypusgit](https://github.com/platypusgit).
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix broken credential encryption when using foreign charsets.
|
||||
|
||||
> You MAY need to log in again in your server to get new credentials after this update is applied.
|
||||
|
||||
## [1.0.7](https://github.com/elpamplina/mastodon-threading/releases/tag/1.0.7)
|
||||
|
||||
First release on Obsidian repository.
|
||||
|
|
@ -136,7 +136,7 @@ Please note that this is a side project I'm working on in my spare time. I canno
|
|||
|
||||
## Internationalization
|
||||
|
||||
Language definitions are in the `lang` folder. Currently only English (default) and Spanish are supported. Constributions in other languages are GREATLY APPRECIATED!!
|
||||
Language definitions are in the `lang` folder. Currently only some languages are supported. Constributions in other languages are GREATLY APPRECIATED!!
|
||||
|
||||
Please send your language definitions via Pull Request on Github, or contact me at <elpamplinadecai@gmail.com> for further instructions.
|
||||
|
||||
|
|
@ -149,6 +149,7 @@ This plugin is free software, released under the [General Public License version
|
|||
This plugin is made and maintained as a side project for amusement only.
|
||||
|
||||
- Many thanks to Ulises Lafuente (@Rataunderground@paquita.masto.host) for adapting the Mastodon icon.
|
||||
- Thanks to [platypusgit](https://github.com/platypusgit) for the German translation.
|
||||
- Thanks to Eugen Rochko and all the Mastodon team for creating the best open and free social network ruled by the people.
|
||||
- Thanks to Ryō Igarashi for maintaining the masto.js library.
|
||||
- Thanks to the people at Obsidian for this great software.
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ const decrypt = async (cipher: ArrayBuffer, key: CryptoKey, iv: ArrayBuffer) =>
|
|||
return decode(encoded)
|
||||
}
|
||||
|
||||
const generateKey = (seed: string) => window.crypto.subtle.digest('SHA-256', unpack(seed));
|
||||
const generateKey = (seed: string) => window.crypto.subtle.digest('SHA-256', unpack(encodeURIComponent(seed)));
|
||||
|
||||
const encryptText = async (key: ArrayBuffer, text: string) => {
|
||||
const cryptoKey = await importKey(key);
|
||||
|
|
|
|||
61
lang/de.json
Normal file
61
lang/de.json
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
"settings": {
|
||||
"server": "Mastodon Server",
|
||||
"server_desc": "z.B. mastodon.social",
|
||||
"server_hint": "Domain Name",
|
||||
"connect_status": "Mit Mastodon auf {{server}} verbunden",
|
||||
"disconnect": "Verbindung trennen",
|
||||
"logged_out": "Vom Server ausgeloggt",
|
||||
"connect_to": "Mit Mastodon verbinden",
|
||||
"connect": "Verbinden",
|
||||
"error": "Fehler beim Verbinden mit dem Server!",
|
||||
"max_post": "Zeichenbegrenzung",
|
||||
"max_post_desc": "{{server}} erlaubt Beiträge mit {{max}} Zeichen.",
|
||||
"visibility_first": "Sichtbarkeit des ersten Beitrags",
|
||||
"visibility_first_desc": "Erster Beitrag im Thread (oder einzelner Beitrag).",
|
||||
"visibility_rest": "Sichtbarkeit der folgenden Beiträge",
|
||||
"visibility_rest_desc": "Darauffolgende Beiträge im Thread.",
|
||||
"visibility_warning": "Einen gesamten Thread öffentlich zu posten, wird häufig als unhöflich wahrgenommen. Bitte überprüfe, ob dies laut deinen Server-Regeln erlaubt ist.",
|
||||
"post_counter": "Beitragszähler",
|
||||
"post_counter_desc": "Füge einen Beitragszähler (z.B. 1/10) am Ende der einzelnen Beiträge des Threads ein.",
|
||||
"visibility": {
|
||||
"public": "Öffentlich",
|
||||
"public_not_recommended": "Öffentlich (Nicht empfohlen)",
|
||||
"unlisted": "Öffentlich (still) (ungelistet und nicht im Such-Algorithmus)",
|
||||
"private": "Follower (nur Personen, die dir folgen)"
|
||||
}
|
||||
},
|
||||
"modal": {
|
||||
"send_thread_count": "Versende einen Thread an Mastodon mit {{count}} Beiträgen",
|
||||
"visibility_single": "Sichtbarkeit",
|
||||
"visibility_first": "Sichtbarkeit des ersten Beitrags",
|
||||
"visibility_rest": "Sichtbarkeit der folgenden Beiträge im Thread",
|
||||
"submit": "Versenden",
|
||||
"no_description": "WARNUNG: Es sind Dateien ohne Beschreibung vorhanden. Trotzdem versenden?"
|
||||
},
|
||||
"command": {
|
||||
"single_post": "Versende einen einzelnen Beitrag an Mastodon",
|
||||
"send_thread": "Versende einen Thread an Mastodon",
|
||||
"insert_separator": "Thread-Trenner manuell einfügen",
|
||||
"create_fragments": "Thread-Trenner automatisch einfügen",
|
||||
"remove_separators": "Alle Thread-Trenner entfernen"
|
||||
},
|
||||
"ok": {
|
||||
"message_posted": "Beitrag versendet",
|
||||
"thread_posted": "Thread versendet"
|
||||
},
|
||||
"error": {
|
||||
"session_lost": "Die Mastodon-Session wurde getrennt!",
|
||||
"not_logged": "Du bist nicht mit Mastodon verbunden. Bitte überprüfe die Plugin-Einstellungen.",
|
||||
"not_posted": "FEHLER: Dieser Beitrag wurde nicht versendet!",
|
||||
"no_selection": "Kein Text ausgewählt!",
|
||||
"no_text": "Kein Text zum Versenden!",
|
||||
"size_exceeded": "NICHT VERSENDET: Mehr als {{max}} Zeichen in einem Beitrag.",
|
||||
"file_size_exceeded": "NICHT VERSENDET: Größe der Anhänge wurde überschritten.",
|
||||
"alt_exceeded": "NICHT VERSENDET: Mehr als {{max}} Zeichen in der Beschreibung.",
|
||||
"attachment_exceeded": "NICHT VERSENDET: Mehr als {{max}} angehängte Dateien in einem Beitrag.",
|
||||
"void_fragment": "NICHT VERSENDET: Leere Fragmente können nicht versendet werden! (z.B. Leerzeilen außerhalb des Threads)",
|
||||
"file_not_found": "FEHLER: Angehängte Dateien konnten nicht gefunden werden.",
|
||||
"filetype_not_allowed": "FEHLER: Typ des Anhangs wird nicht unterstützt."
|
||||
}
|
||||
}
|
||||
3
main.ts
3
main.ts
|
|
@ -15,6 +15,7 @@ import {createApp, getAuthToken, getAuthURL, getClient} from "./auth";
|
|||
import {mastodon} from "masto";
|
||||
import * as lang_en from 'lang/en.json';
|
||||
import * as lang_es from 'lang/es.json';
|
||||
import * as lang_de from 'lang/de.json';
|
||||
import {
|
||||
pattern_image,
|
||||
pattern_quote,
|
||||
|
|
@ -79,6 +80,8 @@ export default class MastodonThreading extends Plugin {
|
|||
i18next.addResourceBundle('en', 'plugin-mastodon-threading', lang_en);
|
||||
// @ts-ignore
|
||||
i18next.addResourceBundle('es', 'plugin-mastodon-threading', lang_es);
|
||||
// @ts-ignore
|
||||
i18next.addResourceBundle('de', 'plugin-mastodon-threading', lang_de);
|
||||
|
||||
addIcon('mastodon', '<defs id="defs1" /><path style="display:inline;opacity:1;fill:transparent;stroke:currentColor;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" d="M 80.194896,7.041879 C 61.252354,7.004439 40.245295,6.974149 19.993422,6.993209 12.868784,6.999909 7.088956,12.786413 7.085298,19.908809 7.073308,43.258638 7.065028,75.760167 7.065028,75.760167 l 73.162106,0.0275 A 12.80697,12.802919 0 0 0 93.038918,62.984751 V 19.908797 c 0,-7.09135 -5.750482,-12.852867 -12.844057,-12.86693 z" id="path2" /><path style="display:inline;opacity:1;fill:transparent;stroke:currentColor;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" d="m 7.065023,75.787671 v 8.597485 a 8.6001932,8.5974803 0 0 0 8.600193,8.597481 h 34.400786" id="path3" /><path style="display:inline;opacity:1;fill:transparent;stroke:currentColor;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1" d="M 71.467494,58.597486 V 32.805037 c 0,-12.896225 -21.478791,-12.765944 -21.467494,0 V 50 l 4e-6,-17.194965 c 0.01118,-12.765944 -21.467493,-12.896225 -21.467495,0 v 25.792451" id="path4-3" />');
|
||||
await this.loadSettings();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "mastodon-threading",
|
||||
"name": "Mastodon Threading",
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.8",
|
||||
"minAppVersion": "1.7.7",
|
||||
"description": "Compose and post threads to Mastodon.",
|
||||
"author": "El Pamplina de Cai",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "mastodon-threading",
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.8",
|
||||
"description": "Obsidian plugin to compose and post threads to Mastodon",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -3,5 +3,6 @@
|
|||
"1.0.4": "1.7.7",
|
||||
"1.0.5": "1.7.7",
|
||||
"1.0.6": "1.7.7",
|
||||
"1.0.7": "1.7.7"
|
||||
"1.0.7": "1.7.7",
|
||||
"1.0.8": "1.7.7"
|
||||
}
|
||||
Loading…
Reference in a new issue