mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: minor spelling and wording changes for en and de (#2096)
Minor spelling and wording changes I went through some of english and german localizations to correct or add minor things. Added `invalid-tag-name` to json. Which also means it should be translated elsewhere.
This commit is contained in:
@ -27,14 +27,14 @@ func (t *telegramHandler) BotToken(ctx context.Context) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
workingMessage = "Working on send your memo..."
|
workingMessage = "Working on sending your memo..."
|
||||||
successMessage = "Success"
|
successMessage = "Success"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (t *telegramHandler) MessageHandle(ctx context.Context, bot *telegram.Bot, message telegram.Message, attachments []telegram.Attachment) error {
|
func (t *telegramHandler) MessageHandle(ctx context.Context, bot *telegram.Bot, message telegram.Message, attachments []telegram.Attachment) error {
|
||||||
reply, err := bot.SendReplyMessage(ctx, message.Chat.ID, message.MessageID, workingMessage)
|
reply, err := bot.SendReplyMessage(ctx, message.Chat.ID, message.MessageID, workingMessage)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("fail to SendReplyMessage: %s", err)
|
return fmt.Errorf("Failed to SendReplyMessage: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
var creatorID int32
|
var creatorID int32
|
||||||
@ -79,7 +79,7 @@ func (t *telegramHandler) MessageHandle(ctx context.Context, bot *telegram.Bot,
|
|||||||
|
|
||||||
memoMessage, err := t.store.CreateMemo(ctx, create)
|
memoMessage, err := t.store.CreateMemo(ctx, create)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
_, err := bot.EditMessage(ctx, message.Chat.ID, reply.MessageID, fmt.Sprintf("failed to CreateMemo: %s", err), nil)
|
_, err := bot.EditMessage(ctx, message.Chat.ID, reply.MessageID, fmt.Sprintf("Failed to CreateMemo: %s", err), nil)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -95,13 +95,13 @@ func (t *telegramHandler) MessageHandle(ctx context.Context, bot *telegram.Bot,
|
|||||||
|
|
||||||
err := apiv1.SaveResourceBlob(ctx, t.store, &create, bytes.NewReader(attachment.Data))
|
err := apiv1.SaveResourceBlob(ctx, t.store, &create, bytes.NewReader(attachment.Data))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
_, err := bot.EditMessage(ctx, message.Chat.ID, reply.MessageID, fmt.Sprintf("failed to SaveResourceBlob: %s", err), nil)
|
_, err := bot.EditMessage(ctx, message.Chat.ID, reply.MessageID, fmt.Sprintf("Failed to SaveResourceBlob: %s", err), nil)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
resource, err := t.store.CreateResource(ctx, &create)
|
resource, err := t.store.CreateResource(ctx, &create)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
_, err := bot.EditMessage(ctx, message.Chat.ID, reply.MessageID, fmt.Sprintf("failed to CreateResource: %s", err), nil)
|
_, err := bot.EditMessage(ctx, message.Chat.ID, reply.MessageID, fmt.Sprintf("Failed to CreateResource: %s", err), nil)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ func (t *telegramHandler) MessageHandle(ctx context.Context, bot *telegram.Bot,
|
|||||||
ResourceID: resource.ID,
|
ResourceID: resource.ID,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
_, err := bot.EditMessage(ctx, message.Chat.ID, reply.MessageID, fmt.Sprintf("failed to UpsertMemoResource: %s", err), nil)
|
_, err := bot.EditMessage(ctx, message.Chat.ID, reply.MessageID, fmt.Sprintf("Failed to UpsertMemoResource: %s", err), nil)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -125,7 +125,7 @@ func (t *telegramHandler) CallbackQueryHandle(ctx context.Context, bot *telegram
|
|||||||
var visibility store.Visibility
|
var visibility store.Visibility
|
||||||
n, err := fmt.Sscanf(callbackQuery.Data, "%s %d", &visibility, &memoID)
|
n, err := fmt.Sscanf(callbackQuery.Data, "%s %d", &visibility, &memoID)
|
||||||
if err != nil || n != 2 {
|
if err != nil || n != 2 {
|
||||||
return bot.AnswerCallbackQuery(ctx, callbackQuery.ID, fmt.Sprintf("fail to parse callbackQuery.Data %s", callbackQuery.Data))
|
return bot.AnswerCallbackQuery(ctx, callbackQuery.ID, fmt.Sprintf("Failed to parse callbackQuery.Data %s", callbackQuery.Data))
|
||||||
}
|
}
|
||||||
|
|
||||||
update := store.UpdateMemo{
|
update := store.UpdateMemo{
|
||||||
@ -134,16 +134,16 @@ func (t *telegramHandler) CallbackQueryHandle(ctx context.Context, bot *telegram
|
|||||||
}
|
}
|
||||||
err = t.store.UpdateMemo(ctx, &update)
|
err = t.store.UpdateMemo(ctx, &update)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return bot.AnswerCallbackQuery(ctx, callbackQuery.ID, fmt.Sprintf("fail to call UpdateMemo %s", err))
|
return bot.AnswerCallbackQuery(ctx, callbackQuery.ID, fmt.Sprintf("Failed to call UpdateMemo %s", err))
|
||||||
}
|
}
|
||||||
|
|
||||||
keyboard := generateKeyboardForMemoID(memoID)
|
keyboard := generateKeyboardForMemoID(memoID)
|
||||||
_, err = bot.EditMessage(ctx, callbackQuery.Message.Chat.ID, callbackQuery.Message.MessageID, fmt.Sprintf("Saved as %s Memo %d", visibility, memoID), keyboard)
|
_, err = bot.EditMessage(ctx, callbackQuery.Message.Chat.ID, callbackQuery.Message.MessageID, fmt.Sprintf("Saved as %s Memo %d", visibility, memoID), keyboard)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return bot.AnswerCallbackQuery(ctx, callbackQuery.ID, fmt.Sprintf("fail to EditMessage %s", err))
|
return bot.AnswerCallbackQuery(ctx, callbackQuery.ID, fmt.Sprintf("Failed to EditMessage %s", err))
|
||||||
}
|
}
|
||||||
|
|
||||||
return bot.AnswerCallbackQuery(ctx, callbackQuery.ID, fmt.Sprintf("Success change Memo %d to %s", memoID, visibility))
|
return bot.AnswerCallbackQuery(ctx, callbackQuery.ID, fmt.Sprintf("Success changing Memo %d to %s", memoID, visibility))
|
||||||
}
|
}
|
||||||
|
|
||||||
func generateKeyboardForMemoID(id int32) [][]telegram.InlineKeyboardButton {
|
func generateKeyboardForMemoID(id int32) [][]telegram.InlineKeyboardButton {
|
||||||
|
@ -56,7 +56,7 @@ const CreateTagDialog: React.FC<Props> = (props: Props) => {
|
|||||||
|
|
||||||
const handleSaveBtnClick = async () => {
|
const handleSaveBtnClick = async () => {
|
||||||
if (!validateTagName(tagName)) {
|
if (!validateTagName(tagName)) {
|
||||||
toast.error("Invalid tag name");
|
toast.error(t("tag-list.invalid-tag-name"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@
|
|||||||
"cant-empty": "Inhalt kann nicht leer sein",
|
"cant-empty": "Inhalt kann nicht leer sein",
|
||||||
"local": "Lokal",
|
"local": "Lokal",
|
||||||
"resources": "Ressourcen",
|
"resources": "Ressourcen",
|
||||||
"editing": "Editing..."
|
"editing": "Bearbeitung..."
|
||||||
},
|
},
|
||||||
"memo": {
|
"memo": {
|
||||||
"view-detail": "Details anzeigen",
|
"view-detail": "Details anzeigen",
|
||||||
@ -132,7 +132,9 @@
|
|||||||
"text-placeholder": "Beginne einen Regex mit ^"
|
"text-placeholder": "Beginne einen Regex mit ^"
|
||||||
},
|
},
|
||||||
"tag-list": {
|
"tag-list": {
|
||||||
"tip-text": "Erstelle einen Tag mit `#tag`"
|
"all-tags": "Alle Tags",
|
||||||
|
"tip-text": "Erstelle einen Tag mit `#tag`",
|
||||||
|
"invalid-tag-name": "Ungültiger Tagname"
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"quickly-filter": "Schnellfilter"
|
"quickly-filter": "Schnellfilter"
|
||||||
@ -184,11 +186,11 @@
|
|||||||
"light": "Hell",
|
"light": "Hell",
|
||||||
"dark": "Dunkel"
|
"dark": "Dunkel"
|
||||||
},
|
},
|
||||||
"storage": "Storage",
|
"storage": "Speicherung",
|
||||||
"sso": "SSO",
|
"sso": "SSO",
|
||||||
"storage-section": {
|
"storage-section": {
|
||||||
"storage-services-list": "Storage service list",
|
"storage-services-list": "Storage service list",
|
||||||
"create-a-service": "Create a service",
|
"create-a-service": "Erstelle einen Service",
|
||||||
"update-a-service": "Update a service",
|
"update-a-service": "Update a service",
|
||||||
"warning-text": "Are you sure to delete this storage service? THIS ACTION IS IRREVERSIBLE❗",
|
"warning-text": "Are you sure to delete this storage service? THIS ACTION IS IRREVERSIBLE❗",
|
||||||
"delete-storage": "Delete Storage"
|
"delete-storage": "Delete Storage"
|
||||||
@ -204,6 +206,7 @@
|
|||||||
},
|
},
|
||||||
"message": {
|
"message": {
|
||||||
"no-memos": "Keine Memos 🌃",
|
"no-memos": "Keine Memos 🌃",
|
||||||
|
"no-data": "Vielleicht keine Daten gefunden?",
|
||||||
"memos-ready": "Alle Memos geladen 🎉",
|
"memos-ready": "Alle Memos geladen 🎉",
|
||||||
"restored-successfully": "Erfolgreich wiederhergestellt",
|
"restored-successfully": "Erfolgreich wiederhergestellt",
|
||||||
"memo-updated-datetime": "Erstellungszeitpunkt geändert.",
|
"memo-updated-datetime": "Erstellungszeitpunkt geändert.",
|
||||||
@ -240,7 +243,7 @@
|
|||||||
"succeed-update-additional-script": "Zusätzliches Skript wurde erfolgreich aktualisiert",
|
"succeed-update-additional-script": "Zusätzliches Skript wurde erfolgreich aktualisiert",
|
||||||
"update-succeed": "Update erfolgreich",
|
"update-succeed": "Update erfolgreich",
|
||||||
"succeed-copy-code": "Succeed to copy code to clipboard.",
|
"succeed-copy-code": "Succeed to copy code to clipboard.",
|
||||||
"page-not-found": "404 - Page Not Found 😥"
|
"page-not-found": "404 - Seite nicht gefunden 😥"
|
||||||
},
|
},
|
||||||
"days": {
|
"days": {
|
||||||
"monday": "Montag",
|
"monday": "Montag",
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
"auth": {
|
"auth": {
|
||||||
"signup-as-host": "Sign up as Host",
|
"signup-as-host": "Sign up as Host",
|
||||||
"host-tip": "You are registering as the Site Host.",
|
"host-tip": "You are registering as the Site Host.",
|
||||||
"not-host-tip": "If you don't have an account, please contact the site host.",
|
"not-host-tip": "If you don’t have an account, please contact the site host.",
|
||||||
"new-password": "New password",
|
"new-password": "New password",
|
||||||
"repeat-new-password": "Repeat the new password"
|
"repeat-new-password": "Repeat the new password"
|
||||||
},
|
},
|
||||||
@ -85,7 +85,7 @@
|
|||||||
"save": "Save",
|
"save": "Save",
|
||||||
"placeholder": "Any thoughts...",
|
"placeholder": "Any thoughts...",
|
||||||
"only-image-supported": "Only image file supported.",
|
"only-image-supported": "Only image file supported.",
|
||||||
"cant-empty": "Content can't be empty",
|
"cant-empty": "Content can’t be empty",
|
||||||
"local": "Local",
|
"local": "Local",
|
||||||
"resources": "Resources"
|
"resources": "Resources"
|
||||||
},
|
},
|
||||||
@ -95,7 +95,7 @@
|
|||||||
"embed": "Embed",
|
"embed": "Embed",
|
||||||
"archived-memos": "Archived Memos",
|
"archived-memos": "Archived Memos",
|
||||||
"no-archived-memos": "No archived memos.",
|
"no-archived-memos": "No archived memos.",
|
||||||
"fetching-data": "fetching data...",
|
"fetching-data": "Fetching data...",
|
||||||
"fetch-more": "Click here to fetch more",
|
"fetch-more": "Click here to fetch more",
|
||||||
"archived-at": "Archived at",
|
"archived-at": "Archived at",
|
||||||
"search-placeholder": "Search memos",
|
"search-placeholder": "Search memos",
|
||||||
@ -106,11 +106,11 @@
|
|||||||
"disabled": "Public memos are disabled"
|
"disabled": "Public memos are disabled"
|
||||||
},
|
},
|
||||||
"delete-memo": "Delete Memo",
|
"delete-memo": "Delete Memo",
|
||||||
"delete-confirm": "Are you sure to delete this memo?\n\nTHIS ACTION IS IRREVERSIBLE❗"
|
"delete-confirm": "Are you sure you want to delete this memo?\n\nTHIS ACTION IS IRREVERSIBLE❗"
|
||||||
},
|
},
|
||||||
"resource": {
|
"resource": {
|
||||||
"no-resources": "No resources.",
|
"no-resources": "No resources.",
|
||||||
"fetching-data": "fetching data...",
|
"fetching-data": "Fetching data...",
|
||||||
"copy-link": "Copy Link",
|
"copy-link": "Copy Link",
|
||||||
"reset-link": "Reset Link",
|
"reset-link": "Reset Link",
|
||||||
"reset-resource-link": "Reset Resource Link",
|
"reset-resource-link": "Reset Resource Link",
|
||||||
@ -151,7 +151,8 @@
|
|||||||
"tip-text": "Input `#tag` to create",
|
"tip-text": "Input `#tag` to create",
|
||||||
"create-tag": "Create Tag",
|
"create-tag": "Create Tag",
|
||||||
"all-tags": "All Tags",
|
"all-tags": "All Tags",
|
||||||
"tag-name": "TAG_NAME"
|
"tag-name": "TAG_NAME",
|
||||||
|
"invalid-tag-name": "Invalid tag name"
|
||||||
},
|
},
|
||||||
"daily-review": {
|
"daily-review": {
|
||||||
"title": "Daily Review",
|
"title": "Daily Review",
|
||||||
@ -189,7 +190,7 @@
|
|||||||
"mobile-editor-style": "Mobile editor style",
|
"mobile-editor-style": "Mobile editor style",
|
||||||
"default-memo-sort-option": "Memo display time",
|
"default-memo-sort-option": "Memo display time",
|
||||||
"telegram-user-id": "Telegram UserID",
|
"telegram-user-id": "Telegram UserID",
|
||||||
"telegram-user-id-placeholder": "Send any words to Your Telegram Bot to get",
|
"telegram-user-id-placeholder": "Send any words to your Telegram Bot as a memo",
|
||||||
"created_ts": "Created Time",
|
"created_ts": "Created Time",
|
||||||
"updated_ts": "Updated Time",
|
"updated_ts": "Updated Time",
|
||||||
"daily-review-time-offset": "Daily Review Time Offset",
|
"daily-review-time-offset": "Daily Review Time Offset",
|
||||||
@ -247,7 +248,7 @@
|
|||||||
"database-file-size": "Database File Size",
|
"database-file-size": "Database File Size",
|
||||||
"allow-user-signup": "Allow user signup",
|
"allow-user-signup": "Allow user signup",
|
||||||
"disable-password-login": "Disable password login",
|
"disable-password-login": "Disable password login",
|
||||||
"disable-password-login-warning": "This will disable password login for all users. It is not possible to log in without reverting this setting in the database if your configured identity providers fail. You'll also have to be extra carefull when removing an identity provider❗",
|
"disable-password-login-warning": "This will disable password login for all users. It is not possible to log in without reverting this setting in the database if your configured identity providers fail. You’ll also have to be extra carefull when removing an identity provider❗",
|
||||||
"disable-password-login-final-warning": "Please type \"CONFIRM\" if you know what you are doing.",
|
"disable-password-login-final-warning": "Please type \"CONFIRM\" if you know what you are doing.",
|
||||||
"enable-password-login": "Enable password login",
|
"enable-password-login": "Enable password login",
|
||||||
"enable-password-login-warning": "This will enable password login for all users. Continue only if you want to users to be able to log in using both SSO and password❗",
|
"enable-password-login-warning": "This will enable password login for all users. Continue only if you want to users to be able to log in using both SSO and password❗",
|
||||||
@ -334,7 +335,7 @@
|
|||||||
"day_other": "TAGE"
|
"day_other": "TAGE"
|
||||||
},
|
},
|
||||||
"message": {
|
"message": {
|
||||||
"no-data": "Maybe no data was found, maybe it should be another option.",
|
"no-data": "Maybe no data was found, or maybe it should be another option.",
|
||||||
"memos-ready": "all memos are ready 🎉",
|
"memos-ready": "all memos are ready 🎉",
|
||||||
"resource-ready": "all resource are ready 🎉",
|
"resource-ready": "all resource are ready 🎉",
|
||||||
"restored-successfully": "Restored successfully",
|
"restored-successfully": "Restored successfully",
|
||||||
@ -354,7 +355,7 @@
|
|||||||
"signup-failed": "Signup failed",
|
"signup-failed": "Signup failed",
|
||||||
"user-not-found": "User not found",
|
"user-not-found": "User not found",
|
||||||
"password-changed": "Password Changed",
|
"password-changed": "Password Changed",
|
||||||
"private-only": "This memo is private only.",
|
"private-only": "This memo is set to private.",
|
||||||
"copied": "Copied",
|
"copied": "Copied",
|
||||||
"succeed-copy-content": "Content copied successfully.",
|
"succeed-copy-content": "Content copied successfully.",
|
||||||
"succeed-copy-code": "Code copied successfully.",
|
"succeed-copy-code": "Code copied successfully.",
|
||||||
@ -367,9 +368,9 @@
|
|||||||
"count-selected-resources": "Total selected",
|
"count-selected-resources": "Total selected",
|
||||||
"too-short": "Too short",
|
"too-short": "Too short",
|
||||||
"too-long": "Too long",
|
"too-long": "Too long",
|
||||||
"not-allow-space": "Don't allow space",
|
"not-allow-space": "Don’t allow space",
|
||||||
"not-allow-chinese": "Don't allow chinese",
|
"not-allow-chinese": "Don’t allow chinese",
|
||||||
"succeed-vacuum-database": "Succeed to vacuum database",
|
"succeed-vacuum-database": "Successfully vacuumed database.",
|
||||||
"succeed-update-additional-style": "Additional style updated successfully.",
|
"succeed-update-additional-style": "Additional style updated successfully.",
|
||||||
"succeed-copy-resource-link": "Resource link copied successfully.",
|
"succeed-copy-resource-link": "Resource link copied successfully.",
|
||||||
"succeed-update-customized-profile": "Profile successfully customized.",
|
"succeed-update-customized-profile": "Profile successfully customized.",
|
||||||
@ -379,7 +380,7 @@
|
|||||||
"maximum-upload-size-is": "Maximum allowed upload size is {{size}} MiB",
|
"maximum-upload-size-is": "Maximum allowed upload size is {{size}} MiB",
|
||||||
"file-exceeds-upload-limit-of": "File {{file}} exceeds upload limit of {{size}} MiB",
|
"file-exceeds-upload-limit-of": "File {{file}} exceeds upload limit of {{size}} MiB",
|
||||||
"updating-setting-failed": "Updating setting failed",
|
"updating-setting-failed": "Updating setting failed",
|
||||||
"password-login-disabled": "Can't remove last identity provider when password login is disabled"
|
"password-login-disabled": "Can’t remove last identity provider when password login is disabled"
|
||||||
},
|
},
|
||||||
"days": {
|
"days": {
|
||||||
"mon": "Mon",
|
"mon": "Mon",
|
||||||
@ -392,7 +393,7 @@
|
|||||||
},
|
},
|
||||||
"embed-memo": {
|
"embed-memo": {
|
||||||
"title": "Embed Memo",
|
"title": "Embed Memo",
|
||||||
"text": "Copy and paste the below codes into your blog or website.",
|
"text": "Copy and paste the below code into your blog or website.",
|
||||||
"only-public-supported": "* Only public memos can be embedded.",
|
"only-public-supported": "* Only public memos can be embedded.",
|
||||||
"copy": "Copy"
|
"copy": "Copy"
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user