Skip to content

Commit

Permalink
Merge pull request #15 from emmapeel2/patch-1
Browse files Browse the repository at this point in the history
Add url_prefix to the documentation
  • Loading branch information
pjgrizel authored Dec 22, 2021
2 parents 6eeae2a + 501274c commit 458d5ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ The idea of this plugin is to capture the **sentences** or **paragraphs** from y
translations = fr,es,it
i18npath = i18n
translate_paragraphwise = False
url_prefix = https://website_url/


Where :

* `content` is the language used to write `contents.lr` files (default is `en`)
* `translations` is the list of target languages (you want to translate into).
* `i18npath` is the directory where translation files will be produced/stored (default is `i18n`). This directory needs to be relative to root path.
* `translate_paragraphwise` specifies whether translation strings are created per line or per paragraph. The latter is helpful for documents wrapping texts at 80 character boundaries. It is set to `False` by default.
* `url_prefix` is the final url of your lektor website. This provides translators with a way to see the strings in context.

#### `babel.cfg`

Expand Down

0 comments on commit 458d5ce

Please sign in to comment.