Localize the post published toast.
This commit is contained in:
@@ -12381,6 +12381,7 @@ mod tests {
|
||||
std::fs::create_dir_all(old_path.parent().unwrap()).unwrap();
|
||||
std::fs::write(&old_path, "old file").unwrap();
|
||||
let mut app = make_app(db, project, &tmp);
|
||||
app.ui_locale = UiLocale::De;
|
||||
open_post_editor(&mut app, &created);
|
||||
|
||||
let _ = app.publish_post_editor(&created.id);
|
||||
@@ -12395,6 +12396,10 @@ mod tests {
|
||||
assert!(!old_path.exists());
|
||||
assert!(tmp.path().join(&published.file_path).is_file());
|
||||
assert_eq!(app.post_editors[&created.id].status, PostStatus::Published);
|
||||
assert_eq!(
|
||||
app.toasts.last().map(|toast| toast.message.as_str()),
|
||||
Some("Beitrag veröffentlicht")
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -406,6 +406,7 @@ sidebar-filter-categories = Kategorien
|
||||
sidebar-filter-calendar = Archiv
|
||||
sidebar-filter-noResults = Keine Treffer
|
||||
editor-saved = Gespeichert.
|
||||
editor-published = Beitrag veröffentlicht
|
||||
editor-title = Titel
|
||||
editor-titlePlaceholder = Titel eingeben...
|
||||
editor-slug = Slug
|
||||
|
||||
@@ -391,6 +391,7 @@ sidebar-filter-categories = Categories
|
||||
sidebar-filter-calendar = Archive
|
||||
sidebar-filter-noResults = No matching items
|
||||
editor-saved = Saved.
|
||||
editor-published = Post published
|
||||
editor-title = Title
|
||||
editor-titlePlaceholder = Enter title...
|
||||
editor-slug = Slug
|
||||
|
||||
@@ -406,6 +406,7 @@ sidebar-filter-categories = Categorías
|
||||
sidebar-filter-calendar = Archivo
|
||||
sidebar-filter-noResults = Sin resultados
|
||||
editor-saved = Guardado.
|
||||
editor-published = Artículo publicado
|
||||
editor-title = Título
|
||||
editor-titlePlaceholder = Introducir título...
|
||||
editor-slug = Slug
|
||||
|
||||
@@ -406,6 +406,7 @@ sidebar-filter-categories = Catégories
|
||||
sidebar-filter-calendar = Archives
|
||||
sidebar-filter-noResults = Aucun résultat
|
||||
editor-saved = Enregistré.
|
||||
editor-published = Article publié
|
||||
editor-title = Titre
|
||||
editor-titlePlaceholder = Saisir le titre...
|
||||
editor-slug = Slug
|
||||
|
||||
@@ -406,6 +406,7 @@ sidebar-filter-categories = Categorie
|
||||
sidebar-filter-calendar = Archivio
|
||||
sidebar-filter-noResults = Nessun risultato
|
||||
editor-saved = Salvato.
|
||||
editor-published = Articolo pubblicato
|
||||
editor-title = Titolo
|
||||
editor-titlePlaceholder = Inserisci titolo...
|
||||
editor-slug = Slug
|
||||
|
||||
Reference in New Issue
Block a user