diff --git a/resources/config.edn b/resources/config.edn index 0fcb152..23b1f58 100644 --- a/resources/config.edn +++ b/resources/config.edn @@ -29,12 +29,12 @@ { :content-dir "resources/public/content" ;; where content is served from. - :default-locale "en-GB" ;; default language used for messages + :default-locale "lt-LT" ;; default language used for messages :formatters {"vega" smeagol.formatting/process-vega "vis" smeagol.formatting/process-vega "mermaid" smeagol.formatting/process-mermaid "backticks" smeagol.formatting/process-backticks} - :log-level :info ;; the minimum logging level; one of + :log-level :trace ;; the minimum logging level; one of ;; :trace :debug :info :warn :error :fatal :passwd "resources/passwd" ;; where the password file is stored diff --git a/resources/i18n/de-DE.edn b/resources/i18n/de-DE.edn index e65114d..5457d10 100644 --- a/resources/i18n/de-DE.edn +++ b/resources/i18n/de-DE.edn @@ -135,10 +135,10 @@ nicht finden; wahrscheinlich wegen einer Fehlkonfiguration oder fehlenden Umgebu ;; text of the is admin widget prompt on edit user page :user-title-prefix "Benutzer bearbeiten" ;; prefix for title of edit user page :vers-col-hdr "Version" ;; header for the version column in history - :what-col-hdr "Wann" ;; header for the what column in history + :what-col-hdr "Wass" ;; header for the what column in history :what-changed-prompt "Was haben Sie verändert?" ;; text of the summary widget prompt on edit ;; content page - :when-col-hdr "When" ;; header for the when column in history + :when-col-hdr "Was" ;; header for the when column in history :your-uname-prompt "Ihr Benutzername" ;; text of the username widget prompt on the login page } diff --git a/resources/i18n/de.edn b/resources/i18n/de.edn new file mode 120000 index 0000000..d74964e --- /dev/null +++ b/resources/i18n/de.edn @@ -0,0 +1 @@ +de-DE.edn \ No newline at end of file diff --git a/resources/i18n/lt.edn b/resources/i18n/lt.edn new file mode 120000 index 0000000..ef91fe5 --- /dev/null +++ b/resources/i18n/lt.edn @@ -0,0 +1 @@ +lt_LT.edn \ No newline at end of file diff --git a/resources/i18n/ru.edn b/resources/i18n/ru.edn new file mode 120000 index 0000000..4a740ce --- /dev/null +++ b/resources/i18n/ru.edn @@ -0,0 +1 @@ +ru_RU.edn \ No newline at end of file diff --git a/resources/public/content/Introduction.md b/resources/public/content/Introduction.md index 6709957..07d263f 100644 --- a/resources/public/content/Introduction.md +++ b/resources/public/content/Introduction.md @@ -17,6 +17,9 @@ Smeagol uses the Markdown format as provided by [markdown-clj](https://github.co ## Security and authentication Smeagol now has good security and authentication. While the initial password supplied with the system is not encrypted, when it is changed it will be; and passwords for new users added through the user administration pages are encrypted. Read more about [[Security and authentication]]. +## Internationalisation +Smeagol has built in internationalisation. Currently it has translation files for English, German, Lithuanian and Russian. We'd welcome volunteers to translate it into other languages. + ## Images You can (if you're logged in) upload files, including images, using the **Upload a file** link on the top menu bar. You can link to an uploaded image, or to other images already available on the web, like this: diff --git a/src/smeagol/routes/wiki.clj b/src/smeagol/routes/wiki.clj index fe80349..28e97fb 100644 --- a/src/smeagol/routes/wiki.clj +++ b/src/smeagol/routes/wiki.clj @@ -141,7 +141,7 @@ (timbre/info (format "Showing history of page '%s'" page)) (layout/render "history.html" (merge (util/standard-params request) - {:title (str "History of " page) + {:title (util/get-message :history-title-prefix request) :page page :history (hist/find-history repo-path file-name)}))))