diff --git a/README.md b/README.md index b045273d..a77da2f0 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,12 @@ Running the application in Production using minified code can be done by: 1. Create the minified/ugly files: `npm run uglify` 2. Ensure the minified/ugly files are being used: `NODE_ENV=production node app.js` -> Note: `openKB` supports Nodejs version 4.0 and above. +> Note: `openKB` supports Nodejs version 4.0 and above. As the latest change from `bcrypt-nodejs` to `bcrypt` for security reason is strongly adviced to use `node 10.X` and above to avoid the following error: +`bcrypt@3.0.6 install: node-pre-gyp install --fallback-to-build +npm ERR! Exit status 1 +npm ERR! +npm ERR! Failed at the bcrypt@3.0.6 install script. +npm ERR! This is probably not a problem with npm. There is likely additional logging output above.` ### Deploy on Heroku @@ -127,6 +132,11 @@ Most of the configuration can be done on the `/settings` page but there are some |`database`|The database type to use. See **Database setup**| |`google_analytics`|Adds Google Analytics to public facing pages. Include the entire code from Google including the <script> tags.| |`style`|Add any Hex color codes, HTML color names and fonts to style the public pages of your KB.| +|`base_link`|Insert the base url of the website to generate correct link when node is behind a reverse proxy (ex. nginx)| +|`owner-site`|Insert here the link of the site owner example https://mysite.com| +|`owner`|The name of the owner to show into the powered by| +|`heading`|The text to show above the search bar| +|`subheading`|The text to show down to the search bar| **Data sorting** You can control the sort order or articles. You can sort on anything but popular fields are `kb_viewcount`, `kb_published_date`, `kb_last_updated` or `kb_votes` diff --git a/app.js b/app.js index 7252e80d..7f17c389 100644 --- a/app.js +++ b/app.js @@ -26,7 +26,7 @@ const app = express(); // setup the translation const i18n = new (require('i18n-2'))({ - locales: ['en', 'de', 'da', 'es', 'cn', 'ru', 'pt-br', 'jp', 'fi', 'sv', 'tr'], + locales: ['en', 'it', 'de', 'da', 'es', 'cn', 'ru', 'pt-br', 'jp', 'fi', 'sv', 'tr'], directory: path.join(__dirname, 'locales/'), defaultLocale: 'en', cookieName: 'locale' diff --git a/config/config.json b/config/config.json index 7473dd9c..97adf5cd 100644 --- a/config/config.json +++ b/config/config.json @@ -22,7 +22,12 @@ "mathjax": false, "mathjax_input_mode": "TeX-MML-AM_CHTML", "app_context": "", + "base_link": "", "links_blank_page": true, + "owner-site": "https://openkb.markmoffat.com/", + "owner": "openKB", + "heading": "openKB", + "subheading": "openKB is an Open Source Node.js Markdown based knowledge base/FAQ/Wiki app with powerful lunr search", "database": { "type": "embedded" }, diff --git a/locales/en.js b/locales/en.js index e008688d..ff41b906 100644 --- a/locales/en.js +++ b/locales/en.js @@ -181,7 +181,21 @@ "dfdfd": "dfdfd", "url.URL.parse is not a function": "url.URL.parse is not a function", "A user with that email does not exist.": "A user with that email does not exist.", + "Trending topics": "Trending topics", + "Trending articles": "Trending articles", + "User deleted.": "User deleted.", + "Owner": "Owner", + "The owner of the KB that will be showed at powered by": "The owner of the KB that will be showed at powered by", + "Owner site": "Owner site", + "The owner's site that will be showed clicking on powered by Owner Eg: http://mysite.com": "The owner's site that will be showed clicking on powered by Owner Eg: http://mysite.com", + "Heading": "Heading", + "Insert the H1 text to show under the search bar": "Insert the H1 text to show under the search bar", + "Sub Heading": "Sub Heading", + "Insert the text to show under the Heading": "Insert the text to show under the Heading", + "KB Base URL": "KB Base URL", + "Insert the base url of the website Eg: http://myopenKB.com": "Insert the base url of the website Eg: http://myopenKB.com", "Visible state": "Visible state", "Public": "Public", "Private": "Private" -} \ No newline at end of file +} + diff --git a/locales/it.js b/locales/it.js new file mode 100644 index 00000000..d6e0f8f5 --- /dev/null +++ b/locales/it.js @@ -0,0 +1,193 @@ +{ + "Toggle navigation": "Attiva / disattiva la navigazione", + "Users": "Utenti", + "New": "Nuovo", + "Edit": "Modifica", + "My account": "Mio Account", + "Article": "Articolo", + "Settings": "Configurazione", + "Files": "Archivio file", + "Export": "Esporta", + "Cleanup files": "Cancella file", + "Logout": "Disconnetti", + "Powered by": "Realizzato da", + "Home": "Home", + "Published date": "Data di pubblicazione", + "Last updated": "Ultimo aggiornamento", + "Share article": "Condividi Articolo", + "Author": "Autore", + "keyword": "keyword", + "Articles": "Articolo", + "Filter articles": "Filtra articoli", + "Filter": "Filtra", + "Reset": "Reset", + "All": "Tutti", + "Published": "Pubblicato", + "Recent": "Recente", + "Are you sure you want to delete this article?": "¿Sei sicuro di voler rimuovere questo articolo?", + "Search": "Cerca", + "Featured articles": "Articoli suggeriti", + "Top articles": "Top Articoli", + "Suggest": "Suggerisci", + "Login": "Accedi", + "Please sign in": "Esegui il login", + "email address": "Indirizzo email", + "Password": "Password", + "Sign in": "Accedi", + "Website": "Sito Web", + "Display": "Visualizza", + "Update": "Aggiorna", + "Website title": "Titolo del sito", + "The title of your website": "Il titolo del tuo sito", + "Website description": "Descrizione del sito", + "A short website description when listing the homepage URL in search engines": "Breve descrizione quando la URL della home page viene visualizzata nei motori di ricerca", + "Show website logo": "Visualizzazione del logo del sito", + "true": "attivo", + "false": "disattivo", + "Controls whether to show the 'Website title' text or a logo located: '/public/logo.png' (by default)": "Controllo se si vuole visualizzare il 'Titolo del sito' o il logo presente in '/public/logo.png' (default)", + "Website context/base URL": "URL base del sito", + "Allows for the website to be run from a non root path. Eg: http://127.0.0.1:4444/openkb/": "Permetti l'esecuzione del sito da una subdirectory. Es: http://127.0.0.1:4444/openkb/", + "Allow API access": "Permetti l'accesso tramite API", + "Whether to allow API access to insert articles - See documentation for further information": "Permettere di inserire articoli attraverso la API - Leggere la documentazione ufficiale per maggiori informazioni", + "API access token": "Token di accesso alla API", + "Requires 'Allow API access' to be set to 'true'. The value is the access token required to access the public API. Please set to a hard to guess value": "Richiede che 'Permetti l'accesso tramite API' sia attivato. Questo valore rappresenta il token per l'accesso tramite la API pubblica. Definire un valore difficile da indovinare", + "Password protect": "Protezione con password", + "Setting to 'true' will require a user to login before viewing any pages": "Attivando questa opzione gli utenti dovranno effettuare il login prima di visualizzare qualsiasi pagina", + "Index article body": "Indicizzazione del contenuto degli articoli", + "Whether to add the body of your articles to the search index (requires restart)": "Consente di indicizzare il contenuto degli articoli nella ricerca (richiede riavvio)", + "Select a theme": "Seleziona un tema", + "The theme to use for public facing pages. Leave blank for default": "Tema utilizzato per la pagina pubblica iniziale. Lasciarlo vuoto per selezionare il tema di default", + "Show logon link": "Mostrare il link di accesso", + "Whether to show/hide the logon link in the top right of screen": "Mostra/nasconde il link di accesso nell'angolo in alto a destra dello schermo", + "Date format": "Formato della data", + "Sets the global date formatting. Uses moment.js date formatting, see more here: http://momentjs.com/docs/#/displaying": "Definisce il formata globale della data. Utilizza il formato previsto da moment.js, maggiori informazioni qui: http://momentjs.com/docs/#/displaying", + "Article suggestions allowed": "Permette il suggerimento degli articoli", + "If enabled non authenticated users can submit article suggestions for approval": "Se attivato, gli utenti non autenticati possono suggerire gli articoli", + "Google analytics code": "Codice per Google analytics", + "Adds Google Analytics to public facing pages. Include the entire code from Google including the <script> tags": "Aggiungi il codice di Google Analytics per la pagina pubblica. Includere il cosice completo di google incluso <script>", + "Allow voting": "Permette la votazione", + "Whether to allow users to vote on an article": "Permette agli utenti di votare un articolo", + "Show article meta data": "Visualizza i metadati degli articoli", + "Whether to show article meta data including published date, last updated date, author etc": "Visualizzare i metadati degli articoli includento la data di publicazione, la data dell'ultimo aggiornamento, l'autore etc...", + "Show author email": "Mostra l'indirizzo email dell'autore", + "Controls whether the authors email address is displayed in the meta. Requires 'Show article meta data' to be true": "Definisce se visualizzare l'indirizzo email dell'autore. Necessita che 'Visualizza i metadati degli articoli' sia abilitato", + "Article links open new page": "Apri i link degli articoli in una nuova pagina", + "Controls whether links within articles open a new page (tab)": "Controlla che i link all'interno degli articoli vengano aperti in una nuova pagina (tab)", + "Add header anchors": "Aggiungere link nell'header", + "Whether to add HTML anchors to all heading tags for linking within articles or direct linking from other articles": "Definisce se aggiungere link HTML a tutti i tag di intestazione per il collegamento all'interno di articoli o il collegamento diretto da altri articoli", + "Enable editor spellchecker": "Attivazione controllo ortografico", + "Controls whether to enable the editor spellchecker": "Definisce se attivare il controllo ortografico", + "Allow article versioning": "Permettere il versioning degli articoli", + "Whether to track article versions with each save of the editor": "Permette di mantenere lo storico delle versioni degli articoli per ogni editore", + "Number of top articles shown on homepage": "Numero degli articoli visualizzati nella homepage", + "Sets the number of results shown on the home page": "Imposta il numero di risultati da visualizzare nella homepage", + "Show published date": "Mostra la data di pubblicazione", + "Shows the published date next to the results on the homepage and search": "Mostra la data di publicazione dopo i risultati della ricerca nella homepage", + "Show view count": "Mostra il numero di visualizzazioni", + "Shows the view count next to the results on the homepage and search": "Mostra il numero di visualizzazioni dopo i risultati della ricerca nella homepage", + "Update view count when logged in": "Aggiorna il contatore delle visualizzazioni dopo l'accesso", + "Updates the view count also when users are logged in": "Aggiorna il contatore delle visualizzazioni anche quando gli utenti effettuano l'accesso", + "Show featured articles": "Mostra gli articoli in evidenza", + "Whether to show any articles set to featured in a sidebar": "Definisce se mostrare gli articoli in evidenza in primo piano in una barra laterale", + "Show featured articles when viewing article": "Mostra articoli in primo piano durante la visualizzazione dell'articolo", + "Whether to show any articles set to featured in a sidebar when viewing an article": "Indica se mostrare gli articoli impostati in primo piano in una barra laterale durante la visualizzazione di un articolo", + "Featured article count": "Conteggio articoli in evidenza", + "The number of featured articles shown": "Numero di articoli in evidenza mostrati", + "Adds Google Analytics to public facing pages. Include the entire code from Google including the