From 22a1efc7901f5d776c8addf5080e71ae61997b7c Mon Sep 17 00:00:00 2001 From: Matteo Guglielmetti Date: Fri, 18 Oct 2019 10:10:26 +0200 Subject: [PATCH 1/7] Italian complete translation --- ui/src/i18next.ts | 4 +- ui/src/translations/it.ts | 189 ++++++++++++++++++++++++++++++++++++++ ui/src/utils.ts | 3 + 3 files changed, 195 insertions(+), 1 deletion(-) create mode 100644 ui/src/translations/it.ts diff --git a/ui/src/i18next.ts b/ui/src/i18next.ts index 069c820d1..c45270fe8 100644 --- a/ui/src/i18next.ts +++ b/ui/src/i18next.ts @@ -9,6 +9,7 @@ import { sv } from './translations/sv'; import { ru } from './translations/ru'; import { zh } from './translations/zh'; import { nl } from './translations/nl'; +import { it } from './translations/it'; // https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66 // TODO don't forget to add moment locales for new languages. @@ -22,6 +23,7 @@ const resources = { sv, ru, nl, + it, } function format(value: any, format: any, lng: any) { @@ -40,7 +42,7 @@ i18n resources, interpolation: { format: format - + } }); diff --git a/ui/src/translations/it.ts b/ui/src/translations/it.ts new file mode 100644 index 000000000..6c03c1faf --- /dev/null +++ b/ui/src/translations/it.ts @@ -0,0 +1,189 @@ +export const it = { + translation: { + post: 'post', + remove_post: 'Rimuovi Post', + no_posts: 'Nessun Post.', + create_a_post: 'Crea un post', + create_post: 'Crea Post', + number_of_posts: '{{count}} Posts', + posts: 'Posts', + related_posts: 'Questi post potrebbero essere correlati', + cross_posts: 'Questo link è stato postato anche in:', + cross_post: 'cross-post', + comments: 'Commenti', + number_of_comments: '{{count}} Commenti', + remove_comment: 'Rimuovi Commento', + communities: 'Comunità', + users: 'Utenti', + create_a_community: 'Crea una Comunità', + create_community: 'Crea Comunità', + remove_community: 'Rimuovi Comunità', + subscribed_to_communities: 'Iscritto alle <1>comunità', + trending_communities: '<1>Comunità in crescita', + list_of_communities: 'Lista di comunità', + number_of_communities: '{{count}} Comunità', + community_reqs: 'minuscole, trattini bassi e nessuno spazio.', + edit: 'modifica', + reply: 'rispondi', + cancel: 'Annulla', + preview: 'Anteprima', + upload_image: 'carica immagine', + formatting_help: 'aiuto formattazione', + view_source: 'visualizza sorgente', + unlock: 'sblocca', + lock: 'blocca', + sticky: 'evidenzia', + unsticky: 'rimuovi evidenza', + link: 'link', + mod: 'moderatore', + mods: 'moderatori', + moderates: 'Moderatore di', + settings: 'Impostazioni', + remove_as_mod: 'rimuovi come moderatore', + appoint_as_mod: 'nomina come moderatore', + modlog: 'Registro di moderazione', + admin: 'amministratore', + admins: 'amministratori', + remove_as_admin: 'rimuovi come amministratore', + appoint_as_admin: 'nomina come amministratore', + remove: 'rimuovi', + removed: 'rimosso', + locked: 'bloccato', + stickied: 'evidenziato', + reason: 'Ragione', + mark_as_read: 'segna come letto', + mark_as_unread: 'segna come non letto', + delete: 'cancella', + deleted: 'cancellato', + delete_account: 'Cancella Account', + delete_account_confirm: 'Attenzione: stai per cancellare permanentemente tutti i tuoi dati. Sei sicuro?', + restore: 'ripristina', + ban: 'ban', + ban_from_site: 'banna dal sito', + unban: 'rimuovi ban', + unban_from_site: 'rimuove il ban dal sito', + banned: 'bannato', + save: 'salva', + unsave: 'rimuovi', + create: 'crea', + creator: 'autore', + username: 'Username', + email_or_username: 'Email o Username', + number_of_users: '{{count}} Utenti', + number_of_subscribers: '{{count}} Iscritti', + number_of_points: '{{count}} Punti', + number_online: '{{count}} Utenti Online', + name: 'Nome', + title: 'Titolo', + category: 'Categoria', + subscribers: 'Iscritti', + both: 'Entrambi', + saved: 'Salvato', + unsubscribe: 'Disiscriviti', + subscribe: 'Iscriviti', + subscribed: 'Iscritto', + prev: 'Precedente', + next: 'Prossima', + sidebar: 'Barra laterale', + sort_type: 'Ordina per', + hot: 'Popolari', + new: 'Nuovi', + top_day: 'Migliori della giornata', + week: 'Settimana', + month: 'Mese', + year: 'Anno', + all: 'Tutti', + top: 'Migliori', + api: 'API', + inbox: 'Posta in arrivo', + inbox_for: 'Posta di <1>{{user}}', + mark_all_as_read: 'segna tutti come letti', + type: 'Tipo', + unread: 'Non letti', + reply_sent: 'Risposta inviata', + search: 'Cerca', + overview: 'Panoramica', + view: 'Visualizza', + logout: 'Logout', + login_sign_up: 'Login / Iscriviti', + login: 'Login', + sign_up: 'Iscriviti', + notifications_error: 'Le notifiche desktop non sono supportate sul tuo browser. Prova Firefox o Chrome.', + unread_messages: 'Messaggi Non Letti', + password: 'Password', + verify_password: 'Verifica Password', + email: 'Email', + optional: 'Opzionale', + expires: 'Scade', + url: 'URL', + body: 'Contenuto', + copy_suggested_title: 'copia titolo suggerito: {{title}}', + community: 'Comunità', + expand_here: 'Visualizza qui', + subscribe_to_communities: 'Iscriviti ad una <1>comunità.', + chat: 'Chat', + recent_comments: 'Commenti Recenti', + no_results: 'Nessun risultato.', + setup: 'Setup', + lemmy_instance_setup: 'Setup dell\'istanza di Lemmy', + setup_admin: 'Imposta Amministratore del Sito', + your_site: 'il tuo sito', + modified: 'modificato', + nsfw: 'NSFW', + show_nsfw: 'Mostra contenuto NSFW', + theme: 'Tema', + sponsors: 'Sponsors', + sponsors_of_lemmy: 'Sponsors di Lemmy', + sponsor_message: 'Lemmy è un software gratuito e <1>open-source, il che significa nessuna pubblicità, monetizzazione o investitori esterni, per sempre. Le tue donazioni supportano direttamente lo sviluppo full-time del progetto. Si ringraziano le seguenti persone:', + support_on_patreon: 'Supporta su Patreon', + general_sponsors: 'I "General Sponsors" sono quelli che hanno investito dai 10$ ai 39$ su Lemmy.', + crypto: 'Crypto', + bitcoin: 'Bitcoin', + ethereum: 'Ethereum', + monero: 'Monero', + code: 'Code', + joined: 'Iscritto da', + by: 'di', + to: 'su', + transfer_community: 'trasferisci comunità', + transfer_site: 'trasferisci sito', + are_you_sure: 'sei sicuro?', + yes: 'si', + no: 'no', + powered_by: 'Powered by', + landing_0: 'Lemmy è un <1>aggregatore di link / alternativa a reddit, creato per integrarsi con il <2>fediverse. <3>È self-hosted, i commenti sono aggiornati in tempo reale ed è molto piccolo (<4>~80kB). La Federazione con la rete ActivityPub sarà implementata nel futuro. <5>Questa versione è una <6>beta molto giovane e molte funzionalità sono incomplete o mancanti. <7>Suggerisci nuove funzionalità o segnala errori a <8>questa pagina.<9>Sviluppato con <10>Rust, <11>Actix, <12>Inferno, <13>Typescript.', + not_logged_in: 'Non hai effettuato l\'accesso.', + community_ban: 'Sei stato bannato da questa comunità.', + site_ban: 'Sei stato bannato dal sito', + couldnt_create_comment: 'Impossibile creare il commento.', + couldnt_like_comment: 'Impossibile mettere \'Mi piace\' al commento.', + couldnt_update_comment: 'Impossibile aggiornare il commento.', + couldnt_save_comment: 'Impossibile salvare il commento.', + no_comment_edit_allowed: 'Non sei autorizzato a modificare il commento.', + no_post_edit_allowed: 'Non sei autorizzato a modificare il post.', + no_community_edit_allowed: 'Non sei autorizzato a modificare la comunità.', + couldnt_find_community: 'Impossibile trovare la comunità.', + couldnt_update_community: 'Impossibile aggiornare la comunità.', + community_already_exists: 'La comunità esiste già.', + community_moderator_already_exists: 'Questo utente è già moderatore della comunità.', + community_follower_already_exists: 'Questo utente è già moderatore della comunità.', + community_user_already_banned: 'L\'utente della comunità è già stato bannato.', + couldnt_create_post: 'Impossibile creare il post.', + couldnt_like_post: 'Impossibile mettere \'Mi piace\' post.', + couldnt_find_post: 'Impossibile trovare il post.', + couldnt_get_posts: 'Impossibile recuperare i post', + couldnt_update_post: 'Impossibile aggiornare il post', + couldnt_save_post: 'Impossibile salvare il post.', + no_slurs: 'Niente offese.', + not_an_admin: 'Non un amministratore.', + site_already_exists: 'Il sito esiste già.', + couldnt_update_site: 'Impossibile aggiornare il sito.', + couldnt_find_that_username_or_email: 'L\'username o la email non sono stati trovati.', + password_incorrect: 'Password non corretta.', + passwords_dont_match: 'Le password non corrispondono.', + admin_already_created: 'Spiacente, esiste già un amministratore.', + user_already_exists: 'L\'utente esiste già.', + couldnt_update_user: 'Impossibile aggiornare l\'utente.', + system_err_login: 'Si è verificato un errore. Prova ad effettuare nuovamente il login.', + }, +} diff --git a/ui/src/utils.ts b/ui/src/utils.ts index 350a8205a..4fec23f08 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -6,6 +6,7 @@ import 'moment/locale/fr'; import 'moment/locale/sv'; import 'moment/locale/ru'; import 'moment/locale/nl'; +import 'moment/locale/it'; import { UserOperation, Comment, User, SortType, ListingType, SearchType } from './interfaces'; import * as markdown_it from 'markdown-it'; @@ -231,6 +232,8 @@ export function getMomentLanguage(): string { lang = 'eo'; } else if (lang.startsWith('nl')) { lang = 'nl'; + } else if (lang.startsWith('it')) { + lang = 'it'; } else { lang = 'en'; } From 272361ea5fb3361c77d7868f4bbed083b7cdeddf Mon Sep 17 00:00:00 2001 From: Matteo Guglielmetti Date: Fri, 18 Oct 2019 10:33:29 +0200 Subject: [PATCH 2/7] Adds i18n to Prev and Next buttons in modlog --- ui/src/components/modlog.tsx | 45 ++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/ui/src/components/modlog.tsx b/ui/src/components/modlog.tsx index 3af122a8e..1c1a7bac3 100644 --- a/ui/src/components/modlog.tsx +++ b/ui/src/components/modlog.tsx @@ -8,6 +8,7 @@ import { msgOp, addTypeInfo, fetchLimit } from '../utils'; import { MomentTime } from './moment-time'; import * as moment from 'moment'; import { i18n } from '../i18next'; +import { T } from 'inferno-i18next'; interface ModlogState { combined: Array<{type_: string, data: ModRemovePost | ModLockPost | ModStickyPost | ModRemoveCommunity | ModAdd | ModBan}>, @@ -89,42 +90,42 @@ export class Modlog extends Component { {i.data.mod_user_name} - {i.type_ == 'removed_posts' && + {i.type_ == 'removed_posts' && <> - {(i.data as ModRemovePost).removed? 'Removed' : 'Restored'} + {(i.data as ModRemovePost).removed? 'Removed' : 'Restored'} Post {(i.data as ModRemovePost).post_name}
{(i.data as ModRemovePost).reason && ` reason: ${(i.data as ModRemovePost).reason}`}
} - {i.type_ == 'locked_posts' && + {i.type_ == 'locked_posts' && <> - {(i.data as ModLockPost).locked? 'Locked' : 'Unlocked'} + {(i.data as ModLockPost).locked? 'Locked' : 'Unlocked'} Post {(i.data as ModLockPost).post_name} } - {i.type_ == 'stickied_posts' && + {i.type_ == 'stickied_posts' && <> - {(i.data as ModStickyPost).stickied? 'Stickied' : 'Unstickied'} + {(i.data as ModStickyPost).stickied? 'Stickied' : 'Unstickied'} Post {(i.data as ModStickyPost).post_name} } - {i.type_ == 'removed_comments' && + {i.type_ == 'removed_comments' && <> - {(i.data as ModRemoveComment).removed? 'Removed' : 'Restored'} + {(i.data as ModRemoveComment).removed? 'Removed' : 'Restored'} Comment {(i.data as ModRemoveComment).comment_content} by {(i.data as ModRemoveComment).comment_user_name}
{(i.data as ModRemoveComment).reason && ` reason: ${(i.data as ModRemoveComment).reason}`}
} - {i.type_ == 'removed_communities' && + {i.type_ == 'removed_communities' && <> - {(i.data as ModRemoveCommunity).removed ? 'Removed' : 'Restored'} + {(i.data as ModRemoveCommunity).removed ? 'Removed' : 'Restored'} Community {(i.data as ModRemoveCommunity).community_name}
{(i.data as ModRemoveCommunity).reason && ` reason: ${(i.data as ModRemoveCommunity).reason}`}
{(i.data as ModRemoveCommunity).expires && ` expires: ${moment.utc((i.data as ModRemoveCommunity).expires).fromNow()}`}
} - {i.type_ == 'banned_from_community' && + {i.type_ == 'banned_from_community' && <> {(i.data as ModBanFromCommunity).banned ? 'Banned ' : 'Unbanned '} {(i.data as ModBanFromCommunity).other_user_name} @@ -134,7 +135,7 @@ export class Modlog extends Component {
{(i.data as ModBanFromCommunity).expires && ` expires: ${moment.utc((i.data as ModBanFromCommunity).expires).fromNow()}`}
} - {i.type_ == 'added_to_community' && + {i.type_ == 'added_to_community' && <> {(i.data as ModAddCommunity).removed ? 'Removed ' : 'Appointed '} {(i.data as ModAddCommunity).other_user_name} @@ -142,7 +143,7 @@ export class Modlog extends Component { {(i.data as ModAddCommunity).community_name} } - {i.type_ == 'banned' && + {i.type_ == 'banned' && <> {(i.data as ModBan).banned ? 'Banned ' : 'Unbanned '} {(i.data as ModBan).other_user_name} @@ -150,7 +151,7 @@ export class Modlog extends Component {
{(i.data as ModBan).expires && ` expires: ${moment.utc((i.data as ModBan).expires).fromNow()}`}
} - {i.type_ == 'added' && + {i.type_ == 'added' && <> {(i.data as ModAdd).removed ? 'Removed ' : 'Appointed '} {(i.data as ModAdd).other_user_name} @@ -170,8 +171,8 @@ export class Modlog extends Component { render() { return (
- {this.state.loading ? -
: + {this.state.loading ? +
:
{this.state.communityName && /c/{this.state.communityName} } @@ -199,21 +200,21 @@ export class Modlog extends Component { paginator() { return (
- {this.state.page > 1 && - + {this.state.page > 1 && + } - +
); } - nextPage(i: Modlog) { + nextPage(i: Modlog) { i.state.page++; i.setState(i.state); i.refetch(); } - prevPage(i: Modlog) { + prevPage(i: Modlog) { i.state.page--; i.setState(i.state); i.refetch(); @@ -239,6 +240,6 @@ export class Modlog extends Component { this.state.loading = false; window.scrollTo(0,0); this.setCombined(res); - } + } } } From 623c8c7a5fe7a72387f748a6dd0988c866a689d8 Mon Sep 17 00:00:00 2001 From: Matteo Guglielmetti Date: Mon, 21 Oct 2019 08:42:17 +0200 Subject: [PATCH 3/7] Revert "Adds i18n to Prev and Next buttons in modlog" This reverts commit 272361ea5fb3361c77d7868f4bbed083b7cdeddf. --- ui/src/components/modlog.tsx | 45 ++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/ui/src/components/modlog.tsx b/ui/src/components/modlog.tsx index 1c1a7bac3..3af122a8e 100644 --- a/ui/src/components/modlog.tsx +++ b/ui/src/components/modlog.tsx @@ -8,7 +8,6 @@ import { msgOp, addTypeInfo, fetchLimit } from '../utils'; import { MomentTime } from './moment-time'; import * as moment from 'moment'; import { i18n } from '../i18next'; -import { T } from 'inferno-i18next'; interface ModlogState { combined: Array<{type_: string, data: ModRemovePost | ModLockPost | ModStickyPost | ModRemoveCommunity | ModAdd | ModBan}>, @@ -90,42 +89,42 @@ export class Modlog extends Component { {i.data.mod_user_name} - {i.type_ == 'removed_posts' && + {i.type_ == 'removed_posts' && <> - {(i.data as ModRemovePost).removed? 'Removed' : 'Restored'} + {(i.data as ModRemovePost).removed? 'Removed' : 'Restored'} Post {(i.data as ModRemovePost).post_name}
{(i.data as ModRemovePost).reason && ` reason: ${(i.data as ModRemovePost).reason}`}
} - {i.type_ == 'locked_posts' && + {i.type_ == 'locked_posts' && <> - {(i.data as ModLockPost).locked? 'Locked' : 'Unlocked'} + {(i.data as ModLockPost).locked? 'Locked' : 'Unlocked'} Post {(i.data as ModLockPost).post_name} } - {i.type_ == 'stickied_posts' && + {i.type_ == 'stickied_posts' && <> - {(i.data as ModStickyPost).stickied? 'Stickied' : 'Unstickied'} + {(i.data as ModStickyPost).stickied? 'Stickied' : 'Unstickied'} Post {(i.data as ModStickyPost).post_name} } - {i.type_ == 'removed_comments' && + {i.type_ == 'removed_comments' && <> - {(i.data as ModRemoveComment).removed? 'Removed' : 'Restored'} + {(i.data as ModRemoveComment).removed? 'Removed' : 'Restored'} Comment {(i.data as ModRemoveComment).comment_content} by {(i.data as ModRemoveComment).comment_user_name}
{(i.data as ModRemoveComment).reason && ` reason: ${(i.data as ModRemoveComment).reason}`}
} - {i.type_ == 'removed_communities' && + {i.type_ == 'removed_communities' && <> - {(i.data as ModRemoveCommunity).removed ? 'Removed' : 'Restored'} + {(i.data as ModRemoveCommunity).removed ? 'Removed' : 'Restored'} Community {(i.data as ModRemoveCommunity).community_name}
{(i.data as ModRemoveCommunity).reason && ` reason: ${(i.data as ModRemoveCommunity).reason}`}
{(i.data as ModRemoveCommunity).expires && ` expires: ${moment.utc((i.data as ModRemoveCommunity).expires).fromNow()}`}
} - {i.type_ == 'banned_from_community' && + {i.type_ == 'banned_from_community' && <> {(i.data as ModBanFromCommunity).banned ? 'Banned ' : 'Unbanned '} {(i.data as ModBanFromCommunity).other_user_name} @@ -135,7 +134,7 @@ export class Modlog extends Component {
{(i.data as ModBanFromCommunity).expires && ` expires: ${moment.utc((i.data as ModBanFromCommunity).expires).fromNow()}`}
} - {i.type_ == 'added_to_community' && + {i.type_ == 'added_to_community' && <> {(i.data as ModAddCommunity).removed ? 'Removed ' : 'Appointed '} {(i.data as ModAddCommunity).other_user_name} @@ -143,7 +142,7 @@ export class Modlog extends Component { {(i.data as ModAddCommunity).community_name} } - {i.type_ == 'banned' && + {i.type_ == 'banned' && <> {(i.data as ModBan).banned ? 'Banned ' : 'Unbanned '} {(i.data as ModBan).other_user_name} @@ -151,7 +150,7 @@ export class Modlog extends Component {
{(i.data as ModBan).expires && ` expires: ${moment.utc((i.data as ModBan).expires).fromNow()}`}
} - {i.type_ == 'added' && + {i.type_ == 'added' && <> {(i.data as ModAdd).removed ? 'Removed ' : 'Appointed '} {(i.data as ModAdd).other_user_name} @@ -171,8 +170,8 @@ export class Modlog extends Component { render() { return (
- {this.state.loading ? -
: + {this.state.loading ? +
:
{this.state.communityName && /c/{this.state.communityName} } @@ -200,21 +199,21 @@ export class Modlog extends Component { paginator() { return (
- {this.state.page > 1 && - + {this.state.page > 1 && + } - +
); } - nextPage(i: Modlog) { + nextPage(i: Modlog) { i.state.page++; i.setState(i.state); i.refetch(); } - prevPage(i: Modlog) { + prevPage(i: Modlog) { i.state.page--; i.setState(i.state); i.refetch(); @@ -240,6 +239,6 @@ export class Modlog extends Component { this.state.loading = false; window.scrollTo(0,0); this.setCombined(res); - } + } } } From 0c6024c5f1f62420f2560f97dcbdff71748e9619 Mon Sep 17 00:00:00 2001 From: Matteo Guglielmetti Date: Mon, 21 Oct 2019 09:02:20 +0200 Subject: [PATCH 4/7] Adds last translations, updates README with percentages --- README.md | 5 +++-- ui/src/translations/it.ts | 2 ++ ui/translation_report.ts | 18 ++++++++++-------- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e8307a3a6..a945a9d25 100644 --- a/README.md +++ b/README.md @@ -198,7 +198,7 @@ Lemmy is free, open-source software, meaning no advertising, monetizing, or vent If you'd like to add translations, take a look a look at the [English translation file](ui/src/translations/en.ts). -- Languages supported: English (`en`), Chinese (`zh`), Dutch (`nl`), Esperanto (`eo`), French (`fr`), Spanish (`es`), Swedish (`sv`), German (`de`), Russian (`ru`). +- Languages supported: English (`en`), Chinese (`zh`), Dutch (`nl`), Esperanto (`eo`), French (`fr`), Spanish (`es`), Swedish (`sv`), German (`de`), Russian (`ru`), Italian (`it`). lang | done | missing --- | --- | --- @@ -206,10 +206,11 @@ de | 81% | cross_posts,cross_post,users,number_of_communities,preview,upload_ima eo | 90% | number_of_communities,preview,upload_image,formatting_help,view_source,sticky,unsticky,stickied,delete_account,delete_account_confirm,banned,creator,number_online,replies,mentions,theme,are_you_sure,yes,no es | 99% | replies,mentions fr | 99% | replies,mentions +it | 100% | nl | 92% | preview,upload_image,formatting_help,view_source,sticky,unsticky,stickied,delete_account,delete_account_confirm,banned,creator,number_online,replies,mentions,theme ru | 86% | cross_posts,cross_post,number_of_communities,preview,upload_image,formatting_help,view_source,sticky,unsticky,stickied,delete_account,delete_account_confirm,banned,creator,number_online,replies,mentions,recent_comments,theme,monero,by,to,transfer_community,transfer_site,are_you_sure,yes,no sv | 99% | replies,mentions -zh | 83% | cross_posts,cross_post,users,number_of_communities,preview,upload_image,formatting_help,view_source,sticky,unsticky,settings,stickied,delete_account,delete_account_confirm,banned,creator,number_online,replies,mentions,recent_comments,nsfw,show_nsfw,theme,monero,by,to,transfer_community,transfer_site,are_you_sure,yes,no +zh | 83% | cross_posts,cross_post,users,number_of_communities,preview,upload_image,formatting_help,view_source,sticky,unsticky,settings,stickied,delete_account,delete_account_confirm,banned,creator,number_online,replies,mentions,recent_comments,nsfw,show_nsfw,theme,monero,by,to,transfer_community,transfer_site,are_you_sure,yes,noMenzioniMenzioni If you'd like to update this report, run: diff --git a/ui/src/translations/it.ts b/ui/src/translations/it.ts index 6c03c1faf..db22eeb45 100644 --- a/ui/src/translations/it.ts +++ b/ui/src/translations/it.ts @@ -100,6 +100,8 @@ export const it = { mark_all_as_read: 'segna tutti come letti', type: 'Tipo', unread: 'Non letti', + replies: 'Risposte', + mentions: 'Menzioni', reply_sent: 'Risposta inviata', search: 'Cerca', overview: 'Panoramica', diff --git a/ui/translation_report.ts b/ui/translation_report.ts index 8e579f274..da4cd3aa6 100644 --- a/ui/translation_report.ts +++ b/ui/translation_report.ts @@ -7,16 +7,18 @@ import { fr } from './src/translations/fr'; import { sv } from './src/translations/sv'; import { ru } from './src/translations/ru'; import { nl } from './src/translations/nl'; +import { it } from './src/translations/it'; let files = [ - {t: de, n: 'de'}, - {t: eo, n: 'eo'}, - {t: es, n: 'es'}, - {t: fr, n: 'fr'}, - {t: nl, n: 'nl'}, - {t: ru, n: 'ru'}, - {t: sv, n: 'sv'}, - {t: zh, n: 'zh'}, + {t: de, n: 'de'}, + {t: eo, n: 'eo'}, + {t: es, n: 'es'}, + {t: fr, n: 'fr'}, + {t: it, n: 'it'}, + {t: nl, n: 'nl'}, + {t: ru, n: 'ru'}, + {t: sv, n: 'sv'}, + {t: zh, n: 'zh'}, ]; let masterKeys = Object.keys(en.translation); From bc22650eee3f2ed2bcd01f4b4a7753145dadbcdc Mon Sep 17 00:00:00 2001 From: Matteo Guglielmetti Date: Mon, 21 Oct 2019 09:04:36 +0200 Subject: [PATCH 5/7] Fixes typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a945a9d25..9867b949d 100644 --- a/README.md +++ b/README.md @@ -210,7 +210,7 @@ it | 100% | nl | 92% | preview,upload_image,formatting_help,view_source,sticky,unsticky,stickied,delete_account,delete_account_confirm,banned,creator,number_online,replies,mentions,theme ru | 86% | cross_posts,cross_post,number_of_communities,preview,upload_image,formatting_help,view_source,sticky,unsticky,stickied,delete_account,delete_account_confirm,banned,creator,number_online,replies,mentions,recent_comments,theme,monero,by,to,transfer_community,transfer_site,are_you_sure,yes,no sv | 99% | replies,mentions -zh | 83% | cross_posts,cross_post,users,number_of_communities,preview,upload_image,formatting_help,view_source,sticky,unsticky,settings,stickied,delete_account,delete_account_confirm,banned,creator,number_online,replies,mentions,recent_comments,nsfw,show_nsfw,theme,monero,by,to,transfer_community,transfer_site,are_you_sure,yes,noMenzioniMenzioni +zh | 83% | cross_posts,cross_post,users,number_of_communities,preview,upload_image,formatting_help,view_source,sticky,unsticky,settings,stickied,delete_account,delete_account_confirm,banned,creator,number_online,replies,mentions,recent_comments,nsfw,show_nsfw,theme,monero,by,to,transfer_community,transfer_site,are_you_sure,yes,no If you'd like to update this report, run: From 0b07834a43b3a5d212d3fbe37dcf37dad304c1d8 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 21 Oct 2019 12:52:51 -0700 Subject: [PATCH 6/7] Minor formatting issue. --- ui/src/i18next.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/i18next.ts b/ui/src/i18next.ts index a2d743b15..3dd152a41 100644 --- a/ui/src/i18next.ts +++ b/ui/src/i18next.ts @@ -40,7 +40,7 @@ i18n.init({ resources, interpolation: { format: format, - } + }, }); export { i18n, resources }; From 746cabda2d87441b171297023a0d5877a2438f28 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 21 Oct 2019 12:55:13 -0700 Subject: [PATCH 7/7] Reformatting from translation report. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9867b949d..f7cbf0bfd 100644 --- a/README.md +++ b/README.md @@ -210,7 +210,7 @@ it | 100% | nl | 92% | preview,upload_image,formatting_help,view_source,sticky,unsticky,stickied,delete_account,delete_account_confirm,banned,creator,number_online,replies,mentions,theme ru | 86% | cross_posts,cross_post,number_of_communities,preview,upload_image,formatting_help,view_source,sticky,unsticky,stickied,delete_account,delete_account_confirm,banned,creator,number_online,replies,mentions,recent_comments,theme,monero,by,to,transfer_community,transfer_site,are_you_sure,yes,no sv | 99% | replies,mentions -zh | 83% | cross_posts,cross_post,users,number_of_communities,preview,upload_image,formatting_help,view_source,sticky,unsticky,settings,stickied,delete_account,delete_account_confirm,banned,creator,number_online,replies,mentions,recent_comments,nsfw,show_nsfw,theme,monero,by,to,transfer_community,transfer_site,are_you_sure,yes,no +zh | 83% | cross_posts,cross_post,users,number_of_communities,preview,upload_image,formatting_help,view_source,sticky,unsticky,settings,stickied,delete_account,delete_account_confirm,banned,creator,number_online,replies,mentions,recent_comments,nsfw,show_nsfw,theme,monero,by,to,transfer_community,transfer_site,are_you_sure,yes,no If you'd like to update this report, run: