diff options
Diffstat (limited to 'doc/md/Shaarli-configuration.md')
-rw-r--r-- | doc/md/Shaarli-configuration.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/md/Shaarli-configuration.md b/doc/md/Shaarli-configuration.md index d90e95eb..920c7e27 100644 --- a/doc/md/Shaarli-configuration.md +++ b/doc/md/Shaarli-configuration.md | |||
@@ -55,6 +55,7 @@ _These settings should not be edited_ | |||
55 | - **links_per_page**: Number of shaares displayed per page. | 55 | - **links_per_page**: Number of shaares displayed per page. |
56 | - **timezone**: See [the list of supported timezones](http://php.net/manual/en/timezones.php). | 56 | - **timezone**: See [the list of supported timezones](http://php.net/manual/en/timezones.php). |
57 | - **enabled_plugins**: List of enabled plugins. | 57 | - **enabled_plugins**: List of enabled plugins. |
58 | - **default_note_title**: Default title of a new note. | ||
58 | 59 | ||
59 | ### Security | 60 | ### Security |
60 | 61 | ||
@@ -80,6 +81,20 @@ _These settings should not be edited_ | |||
80 | - **page_cache**: Shaarli's internal cache directory. | 81 | - **page_cache**: Shaarli's internal cache directory. |
81 | - **ban_file**: Banned IP file path. | 82 | - **ban_file**: Banned IP file path. |
82 | 83 | ||
84 | ### Translation | ||
85 | |||
86 | - **language**: translation language (also see [Translations](Translations)) | ||
87 | - **auto** (default): The translation language is chosen from the browser locale. | ||
88 | It means that the language can be different for 2 different visitors depending on their locale. | ||
89 | - **en**: Use the English translation. | ||
90 | - **fr**: Use the French translation. | ||
91 | - **mode**: | ||
92 | - **auto** or **php** (default): Use the PHP implementation of gettext (slower) | ||
93 | - **gettext**: Use PHP builtin gettext extension | ||
94 | (faster, but requires `php-gettext` to be installed and to reload the web server on update) | ||
95 | - **extension**: Translation extensions for custom themes or plugins. | ||
96 | Must be an associative array: `translation domain => translation path`. | ||
97 | |||
83 | ### Updates | 98 | ### Updates |
84 | 99 | ||
85 | - **check_updates**: Enable or disable update check to the git repository. | 100 | - **check_updates**: Enable or disable update check to the git repository. |
@@ -90,6 +105,7 @@ _These settings should not be edited_ | |||
90 | 105 | ||
91 | - **default_private_links**: Check the private checkbox by default for every new link. | 106 | - **default_private_links**: Check the private checkbox by default for every new link. |
92 | - **hide_public_links**: All links are hidden while logged out. | 107 | - **hide_public_links**: All links are hidden while logged out. |
108 | - **force_login**: if **hide_public_links** and this are set to `true`, all anonymous users are redirected to the login page. | ||
93 | - **hide_timestamps**: Timestamps are hidden. | 109 | - **hide_timestamps**: Timestamps are hidden. |
94 | - **remember_user_default**: Default state of the login page's *remember me* checkbox | 110 | - **remember_user_default**: Default state of the login page's *remember me* checkbox |
95 | - `true`: checked by default, `false`: unchecked by default | 111 | - `true`: checked by default, `false`: unchecked by default |
@@ -194,6 +210,7 @@ _These settings should not be edited_ | |||
194 | "privacy": { | 210 | "privacy": { |
195 | "default_private_links": true, | 211 | "default_private_links": true, |
196 | "hide_public_links": false, | 212 | "hide_public_links": false, |
213 | "force_login": false, | ||
197 | "hide_timestamps": false, | 214 | "hide_timestamps": false, |
198 | "remember_user_default": true | 215 | "remember_user_default": true |
199 | }, | 216 | }, |
@@ -208,6 +225,13 @@ _These settings should not be edited_ | |||
208 | "plugins": { | 225 | "plugins": { |
209 | "WALLABAG_URL": "http://demo.wallabag.org", | 226 | "WALLABAG_URL": "http://demo.wallabag.org", |
210 | "WALLABAG_VERSION": "1" | 227 | "WALLABAG_VERSION": "1" |
228 | }, | ||
229 | "translation": { | ||
230 | "language": "fr", | ||
231 | "mode": "php", | ||
232 | "extensions": { | ||
233 | "demo": "plugins/demo_plugin/languages/" | ||
234 | } | ||
211 | } | 235 | } |
212 | } ?> | 236 | } ?> |
213 | ``` | 237 | ``` |