Skip to content

Commit 763c454

Browse files
committed
Setup basic documentation
1 parent e5df55a commit 763c454

File tree

6 files changed

+46
-0
lines changed

6 files changed

+46
-0
lines changed

addons/parley/parley_manager.gd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ func get_plugin_version() -> String:
156156

157157
## Update localisation for all known Dialogue Sequences
158158
func register_localisation_path(path: String) -> int:
159+
# TODO: do we need to consider the translation mode?
159160
var pot_generation_candidates: PackedStringArray = ProjectSettings.get_setting(ParleyConstants.TRANSLATIONS_POT_FILES, [])
160161
var changed: bool = false
161162

@@ -174,6 +175,7 @@ func register_localisation_path(path: String) -> int:
174175

175176
## Update localisation for all known Dialogue Sequences
176177
func update_localisations(dialogue_sequences_to_register: Array[ParleyDialogueSequenceAst] = [], clean: bool = true) -> int:
178+
# TODO: do we need to consider the translation mode?
177179
var pot_generation_candidates: PackedStringArray = ProjectSettings.get_setting(ParleyConstants.TRANSLATIONS_POT_FILES, [])
178180
var changed: bool = false
179181

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
description: |
3+
Parley supports multiple ways of handling translations for your game: using CSV files and using GNU gettext.
4+
---
5+
6+
Parley supports multiple ways of handling translations for your game:
7+
8+
- Using [CSV files](../internationalisation/localisation-using-csv.md)
9+
- Using [GNU gettext](../internationalisation/localisation-using-gettext.md)
10+
11+
By default, Parley will detect the current translation mode and attempt to
12+
translate defined text in using the unbuilt Godot `tr` function for the
13+
following nodes:
14+
15+
- [Dialogue Node](../nodes/dialogue-node.md)
16+
- [Dialogue Option Node](../nodes/dialogue-option-node.md)
17+
18+
> [tip]: You can select the modes that Parley will run under and also also turn
19+
> off translation support in Parley in the Parley project
20+
> [settings](../reference/parley-settings.md).
21+
22+
<!-- TODO: include information about characters -->
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
description: |
3+
Localisation using CSV files
4+
---
5+
6+
<!-- TODO: Localisation using CSV files -->
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
description: |
3+
Localisation using GNU gettext
4+
---
5+
6+
<!-- TODO: Localisation using GNU gettext -->

docs/latest/reference/parley-settings.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ translations. It can be one of several values:
7272
<!-- TODO: CSV -->
7373
<!-- TODO: - `OFF` - No internationalisation will be applied. -->
7474

75+
More information about internationalisation support in Parley can be found
76+
[here](../i18n/index.md).
77+
7578
Setting path: `parley/translations/mode`
7679

7780
Default: `PO`

docs/toc.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ const toc: RawTableOfContents = {
7676
["character-store", "Character Store"],
7777
],
7878
},
79+
internationalisation: {
80+
title: "Internationalisation",
81+
pages: [
82+
["localisation-using-csv", "Localisation using CSV files"],
83+
["localisation-using-gettext", "Localisation using GNU gettext"],
84+
],
85+
},
7986
customisation: {
8087
title: "Customisation",
8188
pages: [

0 commit comments

Comments
 (0)