From e888e899d4ed6ee2a5a1403fe611d7c9624319e0 Mon Sep 17 00:00:00 2001 From: thepra Date: Sat, 3 Oct 2026 15:26:21 +0200 Subject: [PATCH] Add Italian and the strings every UI key needs AllStrings.resx was empty, so all 74 UI keys rendered as their own text. It now holds every key the app uses, with English values. That includes: - the members of the enums shown through Localizer[value.ToString()], such as FollowersOnly and PlainText; - the new toast, HttpService, ErrorViewer and Settings strings. AllStrings.it.resx has the same keys in Italian. ErrorMessages.resx gains MaxLength, with its Designer property, and an Italian sibling. MessageForm's [StringLength] referenced that key, which didn't exist, so failing that validation threw at runtime. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw --- Resources/AllStrings.it.resx | 323 ++++++++++++++++++++++++++ Resources/AllStrings.resx | 342 ++++++++++++++++++++++++++-- Resources/ErrorMessages.Designer.cs | 9 + Resources/ErrorMessages.it.resx | 50 ++++ Resources/ErrorMessages.resx | 3 + 5 files changed, 707 insertions(+), 20 deletions(-) create mode 100644 Resources/AllStrings.it.resx create mode 100644 Resources/ErrorMessages.it.resx diff --git a/Resources/AllStrings.it.resx b/Resources/AllStrings.it.resx new file mode 100644 index 0000000..655d183 --- /dev/null +++ b/Resources/AllStrings.it.resx @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ActivityPub? + + + Amministrazione + + + Testo alternativo + + + Crescente + + + Audio + + + Autenticazione + + + Blocca + + + Condividi + + + ha condiviso + + + Chiudi + + + Modalità scura + + + Colore del tema scuro + + + Importazione/esportazione dati + + + Elimina + + + Decrescente + + + Diretto + + + Messaggio diretto + + + Documenti + + + Emoji? + + + Vuoto + + + Espandi + + + Preferito + + + Federazione + + + Segui l'impostazione chiara o scura del sistema + + + Solo follower + + + Frontend + + + Generale + + + Grigio + + + Home + + + HTML + + + Immagini + + + Home + + + Istanza + + + Lingua + + + Colore del tema chiaro + + + Formattazione dei link + + + caricamento + + + Locale + + + Disconnessione in corso... + + + Accedi + + + Esci + + + Markdown + + + Messaggio eliminato. + + + Visibilità del messaggio: {0} + + + Metadati + + + Manca il contenuto: scrivi un messaggio o allega un file + + + Silenzia + + + Silenziati/Bloccati + + + Non trovato + + + oh no... ci risiamo + + + Altro + + + Testo semplice + + + Regole + + + Pubblica + + + Profilo + + + Pubblico + + + Rispondi + + + Segnalazioni + + + Ripristina + + + Impostazioni + + + Mostra anteprima + + + Spiacenti, a questo indirizzo non c'è nulla. + + + Il file "{0}" pesa {1} e supera il massimo di {2}. + + + Non è stato possibile completare l'azione. + + + Impossibile leggere il file "{0}". + + + Si possono allegare al massimo {0} file, ma ne sono stati forniti {1}. + + + Non è stato possibile preparare la richiesta. Ricarica la pagina e riprova. + + + Il server non è raggiungibile. Riprova più tardi. + + + Il server non risponde ancora dopo {0} tentativi. Riprova più tardi. + + + Il server ha segnalato un errore interno (HTTP {0}). + + + Il server ha inviato una risposta non valida. + + + Il server ha impiegato troppo tempo a rispondere. Riprova più tardi. + + + Questo dispositivo è offline. Controlla la connessione e riprova. + + + Questo messaggio non esiste. + + + Titolo (facoltativo) + + + Non in elenco + + + Caricamenti + + + Utenti + + + Video + + + Non hai l'autorizzazione per accedere a questa risorsa. + + + Non hai l'autorizzazione per farlo. + + + La sessione è scaduta. Accedi di nuovo. + + + {0} - {1} + + + Hai bloccato {0}. + + + {0} giorno/i + + + {0} ora/e + + + {0} minuto/i + + + Hai silenziato {0}. + + + {0}g + + + {0}h + + + {0}KB + + + {0}m + + + {0}MB + + diff --git a/Resources/AllStrings.resx b/Resources/AllStrings.resx index 4ba99c0..f25d3a5 100644 --- a/Resources/AllStrings.resx +++ b/Resources/AllStrings.resx @@ -1,21 +1,323 @@ - - + - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ActivityPub? + + + Administration + + + Alternative text + + + Ascending + + + Audio + + + Authentication + + + Block + + + Boost + + + boosted + + + Close + + + Dark mode + + + Dark theme colour + + + Data import/export + + + Delete + + + Descending + + + Direct + + + Direct message + + + Documents + + + Emoji? + + + Empty + + + Expand + + + Favourite + + + Federation + + + Follow the system's light or dark setting + + + Followers only + + + Frontend + + + General + + + Grey + + + Home + + + HTML + + + Images + + + Home + + + Instance + + + Language + + + Light theme colour + + + Link formatter + + + loading + + + Local + + + Logging out... + + + Login + + + Logout + + + Markdown + + + Message deleted. + + + Message scope type: {0} + + + Metadata + + + Missing content, either message or media + + + Mute + + + Mutes/Blocks + + + Not found + + + oh shit... here we go again + + + Other + + + Plain text + + + Policies + + + Post + + + Profile + + + Public + + + Reply + + + Reports + + + Reset + + + Settings + + + Show preview + + + Sorry, there's nothing at this address. + + + Supplied file "{0}" with size {1} exceeds the maximum of {2}. + + + The action could not be completed. + + + The file "{0}" could not be read. + + + The maximum number of files accepted is {0}, but {1} were supplied. + + + The request could not be prepared. Reload the page and try again. + + + The server can't be reached. Try again later. + + + The server is still not answering after {0} attempts. Try again later. + + + The server reported an internal error (HTTP {0}). + + + The server sent an invalid response. + + + The server took too long to answer. Try again later. + + + This device is offline. Check the connection and try again. + + + This message doesn't exist. + + + Title (optional) + + + Unlisted + + + Upload + + + Users + + + Video + + + You are not authorized to access this resource. + + + You are not authorized to do this. + + + Your session has expired. Sign in again. + + + {0} - {1} + + + {0} blocked. + + + {0} day/s + + + {0} hour/s + + + {0} minute/s + + + {0} muted. + + + {0}d + + + {0}h + + + {0}KB + + + {0}m + + + {0}MB + + diff --git a/Resources/ErrorMessages.Designer.cs b/Resources/ErrorMessages.Designer.cs index f6c62d3..150979c 100644 --- a/Resources/ErrorMessages.Designer.cs +++ b/Resources/ErrorMessages.Designer.cs @@ -60,6 +60,15 @@ namespace decePubClient.Resources { } } + /// + /// Looks up a localized string similar to The field {0} can be at most {1} characters long.. + /// + public static string MaxLength { + get { + return ResourceManager.GetString("MaxLength", resourceCulture); + } + } + /// /// Looks up a localized string similar to This field is required.. /// diff --git a/Resources/ErrorMessages.it.resx b/Resources/ErrorMessages.it.resx new file mode 100644 index 0000000..be4a2de --- /dev/null +++ b/Resources/ErrorMessages.it.resx @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Il campo {0} può contenere al massimo {1} caratteri. + + + Questo campo è obbligatorio. + + diff --git a/Resources/ErrorMessages.resx b/Resources/ErrorMessages.resx index 4cf3e1a..2b14b3e 100644 --- a/Resources/ErrorMessages.resx +++ b/Resources/ErrorMessages.resx @@ -117,6 +117,9 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + The field {0} can be at most {1} characters long. + This field is required.