You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 27, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: .github/README.md
+21-22Lines changed: 21 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,14 @@ Beta : This is a work in progress port of translations to Kirby 3. The "saved" s
6
6
7
7
This plugin enhances the translation handling of pages for [Kirby 3](http://getkirby.com) with the following features:
8
8
9
-
## How it works
10
-
11
-
The plugin automatically detects if there's a language `.txt` file for the current page in your content folder and displays additional language tabs. For now there are two possible states:
12
-
13
-
+**RED**: The translated `.txt`-file does not exist
14
-
+**GREEN**: The translated `.txt`-file exists
9
+
- The language menu explicitly shows if the translation exists :
10
+
-**RED**: The translated `.txt`-file does not exist
11
+
-**GREEN**: The translated `.txt`-file exists
15
12
16
13
For all non-default languages you can:
17
14
18
-
-delete a translation (without deleting the whole page)
19
-
-resynchronise translations with the default language file
15
+
-Delete a translation (without deleting the whole page).
16
+
-Resynchronise translations with the default language file (revert).
20
17
21
18
Also, the plugin offers an option to replace the kirby languages menu by an enhanced one.
Within your website project, you can customise the header language menu as such:
56
+
57
+
```php
58
+
// Site /site/config/config.php
59
+
return [
60
+
'daandelange.translations.options.header.replaceKirbyLanguages': false, // To disable replacing the native lang menu
61
+
'daandelange.translations.options.header.compactMode': true, // To enable compact mode
62
+
'daandelange.translations.options.header.delete': false, // To disallow deleting a language
63
+
'daandelange.translations.options.header.revert': false, // To disallow reverting a language
64
+
];
65
+
```
66
+
67
+
### Translations Section
68
+
Add the following `section` to your blueprint. (optional)
58
69
59
70
```yaml
60
71
sections:
@@ -80,16 +91,8 @@ sections:
80
91
revertable: false
81
92
```
82
93
83
-
To replace kirby's default language switcher in the header, do …
84
-
85
-
```yaml
86
-
sections:
87
-
translations:
88
-
type: translations
89
-
portaled: false
90
-
```
91
94
92
-
To use a more compact layout, do … *(automatically enabled if portaled)*
95
+
To use a more compact layout, do …
93
96
94
97
```yaml
95
98
sections:
@@ -100,10 +103,6 @@ sections:
100
103
101
104
Of course, you can combine all options.
102
105
103
-
## Known issues
104
-
105
-
For Kirby 3.5 and before, using the default language switcher in the Panel breaks the display of the actions (delete, revert), but this should be fixed for Kirby 3.6+
0 commit comments