Skip to content

Commit 0064fb8

Browse files
committed
add i18l
1 parent 0fa4e31 commit 0064fb8

File tree

46 files changed

+2054
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2054
-0
lines changed

src/Bootstrap.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55

66
use yii\base\BootstrapInterface;
7+
use yii\i18n\PhpMessageSource;
78
use yii\web\Application as WebApplication;
89

910
class Bootstrap implements BootstrapInterface
@@ -27,6 +28,11 @@ public function bootstrap($app)
2728
],
2829
],
2930
];
31+
32+
$app->i18n->translations['cms*']=[
33+
'class' => PhpMessageSource::className(),
34+
'basePath' => '@nullref/cms/messages',
35+
];
3036
}
3137
}
3238

src/messages/ar/cms.php

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
/**
3+
* Message translations.
4+
*
5+
* This file is automatically generated by 'yii message' command.
6+
* It contains the localizable messages extracted from source code.
7+
* You may modify this file by translating the extracted messages.
8+
*
9+
* Each array element represents the translation (value) of a message (key).
10+
* If the value is empty, the message is considered as not translated.
11+
* Messages that no longer need translation will have their translations
12+
* enclosed between a pair of '@@' marks.
13+
*
14+
* Message string can be used with plural forms format. Check i18n section
15+
* of the guide for details.
16+
*
17+
* NOTE: this file must be saved in UTF-8 encoding.
18+
*/
19+
return [
20+
'Are you sure you want to delete this item?' => '',
21+
'Available Blocks' => '',
22+
'Block Type' => '',
23+
'Blocks' => '',
24+
'CMS' => '',
25+
'Config' => '',
26+
'Create' => '',
27+
'Create Block' => '',
28+
'Create Block ({name})' => '',
29+
'Create Page' => '',
30+
'Created At' => '',
31+
'Delete' => '',
32+
'ID' => '',
33+
'Layout' => '',
34+
'Layout file must exist' => '',
35+
'List' => '',
36+
'Page Content' => '',
37+
'Page not found.' => '',
38+
'Pages' => '',
39+
'Route' => '',
40+
'Save' => '',
41+
'Title' => '',
42+
'Update' => '',
43+
'Update {modelClass}: ' => '',
44+
'Updated At' => '',
45+
'e.g. @app/views/layouts/main' => '',
46+
];

src/messages/az/cms.php

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
/**
3+
* Message translations.
4+
*
5+
* This file is automatically generated by 'yii message' command.
6+
* It contains the localizable messages extracted from source code.
7+
* You may modify this file by translating the extracted messages.
8+
*
9+
* Each array element represents the translation (value) of a message (key).
10+
* If the value is empty, the message is considered as not translated.
11+
* Messages that no longer need translation will have their translations
12+
* enclosed between a pair of '@@' marks.
13+
*
14+
* Message string can be used with plural forms format. Check i18n section
15+
* of the guide for details.
16+
*
17+
* NOTE: this file must be saved in UTF-8 encoding.
18+
*/
19+
return [
20+
'Are you sure you want to delete this item?' => '',
21+
'Available Blocks' => '',
22+
'Block Type' => '',
23+
'Blocks' => '',
24+
'CMS' => '',
25+
'Config' => '',
26+
'Create' => '',
27+
'Create Block' => '',
28+
'Create Block ({name})' => '',
29+
'Create Page' => '',
30+
'Created At' => '',
31+
'Delete' => '',
32+
'ID' => '',
33+
'Layout' => '',
34+
'Layout file must exist' => '',
35+
'List' => '',
36+
'Page Content' => '',
37+
'Page not found.' => '',
38+
'Pages' => '',
39+
'Route' => '',
40+
'Save' => '',
41+
'Title' => '',
42+
'Update' => '',
43+
'Update {modelClass}: ' => '',
44+
'Updated At' => '',
45+
'e.g. @app/views/layouts/main' => '',
46+
];

src/messages/bg/cms.php

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
/**
3+
* Message translations.
4+
*
5+
* This file is automatically generated by 'yii message' command.
6+
* It contains the localizable messages extracted from source code.
7+
* You may modify this file by translating the extracted messages.
8+
*
9+
* Each array element represents the translation (value) of a message (key).
10+
* If the value is empty, the message is considered as not translated.
11+
* Messages that no longer need translation will have their translations
12+
* enclosed between a pair of '@@' marks.
13+
*
14+
* Message string can be used with plural forms format. Check i18n section
15+
* of the guide for details.
16+
*
17+
* NOTE: this file must be saved in UTF-8 encoding.
18+
*/
19+
return [
20+
'Are you sure you want to delete this item?' => '',
21+
'Available Blocks' => '',
22+
'Block Type' => '',
23+
'Blocks' => '',
24+
'CMS' => '',
25+
'Config' => '',
26+
'Create' => '',
27+
'Create Block' => '',
28+
'Create Block ({name})' => '',
29+
'Create Page' => '',
30+
'Created At' => '',
31+
'Delete' => '',
32+
'ID' => '',
33+
'Layout' => '',
34+
'Layout file must exist' => '',
35+
'List' => '',
36+
'Page Content' => '',
37+
'Page not found.' => '',
38+
'Pages' => '',
39+
'Route' => '',
40+
'Save' => '',
41+
'Title' => '',
42+
'Update' => '',
43+
'Update {modelClass}: ' => '',
44+
'Updated At' => '',
45+
'e.g. @app/views/layouts/main' => '',
46+
];

src/messages/bs/cms.php

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
/**
3+
* Message translations.
4+
*
5+
* This file is automatically generated by 'yii message' command.
6+
* It contains the localizable messages extracted from source code.
7+
* You may modify this file by translating the extracted messages.
8+
*
9+
* Each array element represents the translation (value) of a message (key).
10+
* If the value is empty, the message is considered as not translated.
11+
* Messages that no longer need translation will have their translations
12+
* enclosed between a pair of '@@' marks.
13+
*
14+
* Message string can be used with plural forms format. Check i18n section
15+
* of the guide for details.
16+
*
17+
* NOTE: this file must be saved in UTF-8 encoding.
18+
*/
19+
return [
20+
'Are you sure you want to delete this item?' => '',
21+
'Available Blocks' => '',
22+
'Block Type' => '',
23+
'Blocks' => '',
24+
'CMS' => '',
25+
'Config' => '',
26+
'Create' => '',
27+
'Create Block' => '',
28+
'Create Block ({name})' => '',
29+
'Create Page' => '',
30+
'Created At' => '',
31+
'Delete' => '',
32+
'ID' => '',
33+
'Layout' => '',
34+
'Layout file must exist' => '',
35+
'List' => '',
36+
'Page Content' => '',
37+
'Page not found.' => '',
38+
'Pages' => '',
39+
'Route' => '',
40+
'Save' => '',
41+
'Title' => '',
42+
'Update' => '',
43+
'Update {modelClass}: ' => '',
44+
'Updated At' => '',
45+
'e.g. @app/views/layouts/main' => '',
46+
];

src/messages/ca/cms.php

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
/**
3+
* Message translations.
4+
*
5+
* This file is automatically generated by 'yii message' command.
6+
* It contains the localizable messages extracted from source code.
7+
* You may modify this file by translating the extracted messages.
8+
*
9+
* Each array element represents the translation (value) of a message (key).
10+
* If the value is empty, the message is considered as not translated.
11+
* Messages that no longer need translation will have their translations
12+
* enclosed between a pair of '@@' marks.
13+
*
14+
* Message string can be used with plural forms format. Check i18n section
15+
* of the guide for details.
16+
*
17+
* NOTE: this file must be saved in UTF-8 encoding.
18+
*/
19+
return [
20+
'Are you sure you want to delete this item?' => '',
21+
'Available Blocks' => '',
22+
'Block Type' => '',
23+
'Blocks' => '',
24+
'CMS' => '',
25+
'Config' => '',
26+
'Create' => '',
27+
'Create Block' => '',
28+
'Create Block ({name})' => '',
29+
'Create Page' => '',
30+
'Created At' => '',
31+
'Delete' => '',
32+
'ID' => '',
33+
'Layout' => '',
34+
'Layout file must exist' => '',
35+
'List' => '',
36+
'Page Content' => '',
37+
'Page not found.' => '',
38+
'Pages' => '',
39+
'Route' => '',
40+
'Save' => '',
41+
'Title' => '',
42+
'Update' => '',
43+
'Update {modelClass}: ' => '',
44+
'Updated At' => '',
45+
'e.g. @app/views/layouts/main' => '',
46+
];

src/messages/cs/cms.php

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
/**
3+
* Message translations.
4+
*
5+
* This file is automatically generated by 'yii message' command.
6+
* It contains the localizable messages extracted from source code.
7+
* You may modify this file by translating the extracted messages.
8+
*
9+
* Each array element represents the translation (value) of a message (key).
10+
* If the value is empty, the message is considered as not translated.
11+
* Messages that no longer need translation will have their translations
12+
* enclosed between a pair of '@@' marks.
13+
*
14+
* Message string can be used with plural forms format. Check i18n section
15+
* of the guide for details.
16+
*
17+
* NOTE: this file must be saved in UTF-8 encoding.
18+
*/
19+
return [
20+
'Are you sure you want to delete this item?' => '',
21+
'Available Blocks' => '',
22+
'Block Type' => '',
23+
'Blocks' => '',
24+
'CMS' => '',
25+
'Config' => '',
26+
'Create' => '',
27+
'Create Block' => '',
28+
'Create Block ({name})' => '',
29+
'Create Page' => '',
30+
'Created At' => '',
31+
'Delete' => '',
32+
'ID' => '',
33+
'Layout' => '',
34+
'Layout file must exist' => '',
35+
'List' => '',
36+
'Page Content' => '',
37+
'Page not found.' => '',
38+
'Pages' => '',
39+
'Route' => '',
40+
'Save' => '',
41+
'Title' => '',
42+
'Update' => '',
43+
'Update {modelClass}: ' => '',
44+
'Updated At' => '',
45+
'e.g. @app/views/layouts/main' => '',
46+
];

src/messages/da/cms.php

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
/**
3+
* Message translations.
4+
*
5+
* This file is automatically generated by 'yii message' command.
6+
* It contains the localizable messages extracted from source code.
7+
* You may modify this file by translating the extracted messages.
8+
*
9+
* Each array element represents the translation (value) of a message (key).
10+
* If the value is empty, the message is considered as not translated.
11+
* Messages that no longer need translation will have their translations
12+
* enclosed between a pair of '@@' marks.
13+
*
14+
* Message string can be used with plural forms format. Check i18n section
15+
* of the guide for details.
16+
*
17+
* NOTE: this file must be saved in UTF-8 encoding.
18+
*/
19+
return [
20+
'Are you sure you want to delete this item?' => '',
21+
'Available Blocks' => '',
22+
'Block Type' => '',
23+
'Blocks' => '',
24+
'CMS' => '',
25+
'Config' => '',
26+
'Create' => '',
27+
'Create Block' => '',
28+
'Create Block ({name})' => '',
29+
'Create Page' => '',
30+
'Created At' => '',
31+
'Delete' => '',
32+
'ID' => '',
33+
'Layout' => '',
34+
'Layout file must exist' => '',
35+
'List' => '',
36+
'Page Content' => '',
37+
'Page not found.' => '',
38+
'Pages' => '',
39+
'Route' => '',
40+
'Save' => '',
41+
'Title' => '',
42+
'Update' => '',
43+
'Update {modelClass}: ' => '',
44+
'Updated At' => '',
45+
'e.g. @app/views/layouts/main' => '',
46+
];

src/messages/de/cms.php

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
/**
3+
* Message translations.
4+
*
5+
* This file is automatically generated by 'yii message' command.
6+
* It contains the localizable messages extracted from source code.
7+
* You may modify this file by translating the extracted messages.
8+
*
9+
* Each array element represents the translation (value) of a message (key).
10+
* If the value is empty, the message is considered as not translated.
11+
* Messages that no longer need translation will have their translations
12+
* enclosed between a pair of '@@' marks.
13+
*
14+
* Message string can be used with plural forms format. Check i18n section
15+
* of the guide for details.
16+
*
17+
* NOTE: this file must be saved in UTF-8 encoding.
18+
*/
19+
return [
20+
'Are you sure you want to delete this item?' => '',
21+
'Available Blocks' => '',
22+
'Block Type' => '',
23+
'Blocks' => '',
24+
'CMS' => '',
25+
'Config' => '',
26+
'Create' => '',
27+
'Create Block' => '',
28+
'Create Block ({name})' => '',
29+
'Create Page' => '',
30+
'Created At' => '',
31+
'Delete' => '',
32+
'ID' => '',
33+
'Layout' => '',
34+
'Layout file must exist' => '',
35+
'List' => '',
36+
'Page Content' => '',
37+
'Page not found.' => '',
38+
'Pages' => '',
39+
'Route' => '',
40+
'Save' => '',
41+
'Title' => '',
42+
'Update' => '',
43+
'Update {modelClass}: ' => '',
44+
'Updated At' => '',
45+
'e.g. @app/views/layouts/main' => '',
46+
];

0 commit comments

Comments
 (0)