Skip to content

Commit 50b73ce

Browse files
added language keys
1 parent a37fa62 commit 50b73ce

3 files changed

Lines changed: 33 additions & 15 deletions

File tree

Plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class Plugin extends PluginBase
1212
public function pluginDetails()
1313
{
1414
return [
15-
'name' => 'Github Projects',
16-
'description' => '',
15+
'name' => 'pkleindienst.githubprojects::lang.plugin.name',
16+
'description' => 'pkleindienst.githubprojects::lang.plugin.description',
1717
'author' => 'Pascal Kleindienst',
1818
];
1919
}

components/Item.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class Item extends ComponentBase
2121
public function componentDetails()
2222
{
2323
return [
24-
'name' => 'Github Repository Item',
25-
'description' => 'Outputs information about a github repository.'
24+
'name' => 'pkleindienst.githubprojects::lang.item.name',
25+
'description' => 'pkleindienst.githubprojects::lang.item.description'
2626
];
2727
}
2828

@@ -33,10 +33,12 @@ public function defineProperties()
3333
{
3434
return [
3535
'user' => [
36-
'title' => 'User',
36+
'title' => 'pkleindienst.githubprojects::lang.item.user_title',
37+
'description' => 'pkleindienst.githubprojects::lang.item.user_desc'
3738
],
3839
'repo' => [
39-
'title' => 'Repository',
40+
'title' => 'pkleindienst.githubprojects::lang.item.repo_title',
41+
'description' => 'pkleindienst.githubprojects::lang.item.repo_desc'
4042
]
4143
];
4244
}

components/RepoList.php

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class RepoList extends ComponentBase
2020
public function componentDetails()
2121
{
2222
return [
23-
'name' => 'Github Repository List',
24-
'description' => 'List public repositories for the specified user.'
23+
'name' => 'pkleindienst.githubprojects::lang.list.name',
24+
'description' => 'pkleindienst.githubprojects::lang.list.description'
2525
];
2626
}
2727

@@ -32,22 +32,38 @@ public function defineProperties()
3232
{
3333
return [
3434
'user' => [
35-
'title' => 'User',
35+
'title' => 'pkleindienst.githubprojects::lang.list.user_title',
36+
'description' => 'pkleindienst.githubprojects::lang.list.user_desc'
3637
],
3738
'type' => [
38-
'title' => 'Type',
39+
'title' => 'pkleindienst.githubprojects::lang.list.type_title',
40+
'description' => 'pkleindienst.githubprojects::lang.list.type_desc',
3941
'type' => 'dropdown',
40-
'options' => ['all' => 'All', 'owner' => 'Owner', 'member' => 'Member']
42+
'options' => [
43+
'all' => 'pkleindienst.githubprojects::lang.list.type_opt_all',
44+
'owner' => 'pkleindienst.githubprojects::lang.list.type_opt_owner',
45+
'member' => 'pkleindienst.githubprojects::lang.list.type_opt_member'
46+
]
4147
],
4248
'sort' => [
43-
'title' => 'Sorting',
49+
'title' => 'pkleindienst.githubprojects::lang.list.sort_title',
50+
'description' => 'pkleindienst.githubprojects::lang.list.sort_desc',
4451
'type' => 'dropdown',
45-
'options' => ['created' => 'Created', 'updated' => 'Updated', 'pushed' => 'Pushed', 'full_name' => 'Full-Name']
52+
'options' => [
53+
'created' => 'pkleindienst.githubprojects::lang.list.sort_opt_created',
54+
'updated' => 'pkleindienst.githubprojects::lang.list.sort_opt_updated',
55+
'pushed' => 'pkleindienst.githubprojects::lang.list.sort_opt_pushed',
56+
'full_name' => 'pkleindienst.githubprojects::lang.list.sort_opt_fullname'
57+
]
4658
],
4759
'direction' => [
48-
'title' => 'Sort Direction',
60+
'title' => 'pkleindienst.githubprojects::lang.list.direction_title',
61+
'description' => 'pkleindienst.githubprojects::lang.list.direction_desc',
4962
'type' => 'dropdown',
50-
'options' => ['asc' => 'Ascending', 'desc' => 'Descending']
63+
'options' => [
64+
'asc' => 'pkleindienst.githubprojects::lang.list.direction_opt_asc',
65+
'desc' => 'pkleindienst.githubprojects::lang.list.direction_opt_desc'
66+
]
5167
]
5268
];
5369
}

0 commit comments

Comments
 (0)