Skip to content

Commit ea55150

Browse files
authored
Merge pull request #425 from humhub/fix/missing-translations
Wiki - Missing Translations
2 parents 09a6ff0 + ee0ad00 commit ea55150

7 files changed

Lines changed: 50 additions & 11 deletions

File tree

docs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
2.5.8 (Unreleased)
5+
----------------------
6+
- Fix #425: Fix missing translations
7+
48
2.5.7 (March 4, 2026)
59
----------------------
610
- Fix #423: Fix button icon

module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Wiki",
44
"description": "Create and edit pages with this powerful tool. Build a collaborative knowledge base, view and share information with your colleagues.",
55
"keywords": ["wiki"],
6-
"version": "2.5.7",
6+
"version": "2.5.8",
77
"humhub": {
88
"minVersion": "1.18.1",
99
"maxVersion": "1.18"

permissions/AdministerPages.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
use humhub\modules\space\models\Space;
1212
use humhub\modules\user\models\User;
13+
use Yii;
1314

1415
/**
1516
* Page Administration Permission
@@ -40,12 +41,18 @@ class AdministerPages extends \humhub\libs\BasePermission
4041
/**
4142
* @inheritdoc
4243
*/
43-
protected $title = "Administer pages";
44+
public function getTitle()
45+
{
46+
return Yii::t('WikiModule.base', 'Administer pages');
47+
}
4448

4549
/**
4650
* @inheritdoc
4751
*/
48-
protected $description = "Allows the user to administer pages (rename, delete, protect, make homepage)";
52+
public function getDescription()
53+
{
54+
return Yii::t('WikiModule.base', 'Allows the user to administer pages (rename, delete, protect, make homepage)');
55+
}
4956

5057
/**
5158
* @inheritdoc

permissions/CreatePage.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
use humhub\modules\space\models\Space;
1212
use humhub\modules\user\models\User;
13+
use Yii;
1314

1415
/**
1516
* CreatePage Permission
@@ -41,12 +42,18 @@ class CreatePage extends \humhub\libs\BasePermission
4142
/**
4243
* @inheritdoc
4344
*/
44-
protected $title = "Create pages";
45+
public function getTitle()
46+
{
47+
return Yii::t('WikiModule.base', 'Create pages');
48+
}
4549

4650
/**
4751
* @inheritdoc
4852
*/
49-
protected $description = "Allows the user to create new pages";
53+
public function getDescription()
54+
{
55+
return Yii::t('WikiModule.base', 'Allows the user to create new pages');
56+
}
5057

5158
/**
5259
* @inheritdoc

permissions/EditPages.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
use humhub\modules\space\models\Space;
1212
use humhub\modules\user\models\User;
13+
use Yii;
1314

1415
/**
1516
* Edit page Permission
@@ -41,12 +42,18 @@ class EditPages extends \humhub\libs\BasePermission
4142
/**
4243
* @inheritdoc
4344
*/
44-
protected $title = "Edit pages";
45+
public function getTitle()
46+
{
47+
return Yii::t('WikiModule.base', 'Edit pages');
48+
}
4549

4650
/**
4751
* @inheritdoc
4852
*/
49-
protected $description = "Allows the user to edit or revert pages";
53+
public function getDescription()
54+
{
55+
return Yii::t('WikiModule.base', 'Allows the user to edit or revert pages');
56+
}
5057

5158
/**
5259
* @inheritdoc

permissions/ViewHistory.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
use humhub\modules\space\models\Space;
1212
use humhub\modules\user\models\User;
13+
use Yii;
1314

1415
/**
1516
* Edit page Permission
@@ -30,12 +31,18 @@ class ViewHistory extends \humhub\libs\BasePermission
3031
/**
3132
* @inheritdoc
3233
*/
33-
protected $title = "View History";
34+
public function getTitle()
35+
{
36+
return Yii::t('WikiModule.base', 'View History');
37+
}
3438

3539
/**
3640
* @inheritdoc
3741
*/
38-
protected $description = "Allows the user to view the history of wiki pages";
42+
public function getDescription()
43+
{
44+
return Yii::t('WikiModule.base', 'Allows the user to view the history of wiki pages');
45+
}
3946

4047
/**
4148
* @inheritdoc

permissions/ViewPages.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
use humhub\modules\space\models\Space;
1212
use humhub\modules\user\models\User;
13+
use Yii;
1314

1415
/**
1516
* Edit page Permission
@@ -42,12 +43,18 @@ class ViewPages extends \humhub\libs\BasePermission
4243
/**
4344
* @inheritdoc
4445
*/
45-
protected $title = "View pages";
46+
public function getTitle()
47+
{
48+
return Yii::t('WikiModule.base', 'View pages');
49+
}
4650

4751
/**
4852
* @inheritdoc
4953
*/
50-
protected $description = "Allows the user to view wiki pages";
54+
public function getDescription()
55+
{
56+
return Yii::t('WikiModule.base', 'Allows the user to view wiki pages');
57+
}
5158

5259
/**
5360
* @inheritdoc

0 commit comments

Comments
 (0)