-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
313 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p></p> |
1 change: 1 addition & 0 deletions
1
tests/i18nTest/_fakewebroot/i18nnonstandardmodule/tests/NothingInHere.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php |
Empty file.
12 changes: 12 additions & 0 deletions
12
tests/i18nTest/_fakewebroot/i18nothermodule/code/i18nOtherModule.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
class i18nOtherModule | ||
{ | ||
public function mymethod() | ||
{ | ||
_t( | ||
'i18nOtherModule.ENTITY', | ||
'Other Module Entity' | ||
); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/i18nTest/_fakewebroot/i18nothermodule/code/i18nProviderClass.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
use SilverStripe\i18n\i18nEntityProvider; | ||
|
||
class i18nProviderClass implements i18nEntityProvider | ||
{ | ||
public function provideI18nEntities() | ||
{ | ||
return [ | ||
'i18nProviderClass.TITLE' => 'My Provider Class', | ||
'i18nProviderClass.PLURALS' => [ | ||
'comment' => 'Plural forms for the test class', | ||
'one' => 'A class', | ||
'other' => '{count} classes', | ||
], | ||
'i18nProviderClass.OTHER_MODULE' => [ | ||
'comment' => 'Test string in another module', | ||
'default' => 'i18ntestmodule string defined in i18nothermodule', | ||
'module' => 'i18ntestmodule' | ||
], | ||
]; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
tests/i18nTest/_fakewebroot/i18nothermodule/code/i18nTestModuleDecorator.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
use SilverStripe\ORM\DataExtension; | ||
|
||
class i18nTestModuleExtension extends DataExtension | ||
{ | ||
|
||
public static $db = [ | ||
'MyExtraField' => 'Varchar' | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
de: | ||
i18nOtherModule: | ||
ENTITY: Other Module Entity (de) | ||
MAINTEMPLATE: Main Template Other Module (de) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
en: | ||
i18nOtherModule: | ||
ENTITY: Other Module Entity | ||
MAINTEMPLATE: Main Template Other Module |
1 change: 1 addition & 0 deletions
1
tests/i18nTest/_fakewebroot/i18nothermodule/templates/i18nOtherModule.ss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<%t i18nOtherModule.MAINTEMPLATE "Main Template Other Module" %> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php |
27 changes: 27 additions & 0 deletions
27
tests/i18nTest/_fakewebroot/i18ntestmodule/code/i18nTestModule.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
use SilverStripe\ORM\DataObject; | ||
use SilverStripe\Dev\TestOnly; | ||
|
||
class i18nTestModule extends DataObject implements TestOnly | ||
{ | ||
private static $db = [ | ||
'MyField' => 'Varchar', | ||
]; | ||
|
||
public function myMethod() | ||
{ | ||
_t( | ||
'i18nTestModule.ENTITY', | ||
'Entity with "Double Quotes"', | ||
'Comment for entity' | ||
); | ||
} | ||
} | ||
class i18nTestModule_Addition | ||
{ | ||
public function myAdditionalMethod() | ||
{ | ||
_t('i18nTestModule.ADDITION', 'Addition'); | ||
} | ||
} |
Empty file.
8 changes: 8 additions & 0 deletions
8
tests/i18nTest/_fakewebroot/i18ntestmodule/code/subfolder/i18nTestNamespacedClass.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace i18nTest; | ||
|
||
class i18nTestNamespacedClass | ||
{ | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
tests/i18nTest/_fakewebroot/i18ntestmodule/code/subfolder/i18nTestSubModule.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
class i18nTestSubModule | ||
{ | ||
public function __construct() | ||
{ | ||
_t('i18nTestModule.OTHERENTITY', 'Other Entity'); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
tests/i18nTest/_fakewebroot/i18ntestmodule/code/subfolder/lang/de.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
de: | ||
i18nTestModule: | ||
PRIORITYNOTICE: High Module Priority (de) | ||
OTHERENTITY: Other Entity (de) |
3 changes: 3 additions & 0 deletions
3
tests/i18nTest/_fakewebroot/i18ntestmodule/code/subfolder/lang/en.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
en: | ||
i18nTestModule: | ||
OTHERENTITY: Other Entity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
de: | ||
NONAMESPACE: Include Entity without Namespace (de) | ||
REPLACEMENTNONAMESPACE: "My replacement no namespace: {replacement} (de)" | ||
REPLACEMENTINCLUDENONAMESPACE: "My include replacement no namespace: {replacement} (de)" | ||
LAYOUTTEMPLATENONAMESPACE: Layout Template no namespace (de) | ||
i18nTestModule: | ||
# Comment for entity | ||
ENTITY: 'Entity with "Double Quotes" (de)' | ||
ADDITION: Addition (de) | ||
MAINTEMPLATE: Main Template (de) | ||
WITHNAMESPACE: Include Entity with Namespace (de) | ||
LAYOUTTEMPLATE: Layout Template (de) | ||
REPLACEMENTNAMESPACE: "My replacement: {replacement} (de)" | ||
PRIORITYNOTICE: Low Module Priority (de) | ||
i18nTestModuleInclude_ss: | ||
REPLACEMENTINCLUDENAMESPACE: "My include replacement: {replacement} (de)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
de_AT: | ||
i18nTestModule: | ||
ENTITY: 'Entity with "Double Quotes" (de_AT)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
en: | ||
NONAMESPACE: Include Entity without Namespace | ||
REPLACEMENTNONAMESPACE: 'My replacement no namespace: {replacement}' | ||
REPLACEMENTINCLUDENONAMESPACE: 'My include replacement no namespace: {replacement}' | ||
LAYOUTTEMPLATENONAMESPACE: Layout Template no namespace | ||
i18nTestModule: | ||
# Comment for entity | ||
ENTITY: 'Entity with "Double Quotes"' | ||
ADDITION: Addition | ||
MAINTEMPLATE: Main Template | ||
WITHNAMESPACE: Include Entity with Namespace | ||
LAYOUTTEMPLATE: Layout Template | ||
REPLACEMENTNAMESPACE: 'My replacement: {replacement}' | ||
PLURALS: | ||
one: 'A test' | ||
other: '{count} tests' | ||
i18nTestModuleInclude_ss: | ||
REPLACEMENTINCLUDENAMESPACE: "My include replacement: {replacement}" | ||
Month: | ||
PLURALS: | ||
one: 'A month' | ||
other: '{count} months' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
en: | ||
NONAMESPACE: Include Entity without Namespace | ||
REPLACEMENTNONAMESPACE: "My replacement no namespace: {replacement}" | ||
REPLACEMENTINCLUDENONAMESPACE: "My include replacement no namespace: {replacement}" | ||
LAYOUTTEMPLATENONAMESPACE: Layout Template no namespace | ||
i18nTestModule: | ||
# Comment for entity | ||
ENTITY: 'Entity with "Double Quotes"' | ||
ADDITION: Addition | ||
MAINTEMPLATE: Main Template | ||
WITHNAMESPACE: Include Entity with Namespace | ||
LAYOUTTEMPLATE: Layout Template | ||
REPLACEMENTNAMESPACE: "My replacement: {replacement}" | ||
i18nTestModuleInclude_ss: | ||
REPLACEMENTINCLUDENAMESPACE: "My include replacement: {replacement}" |
5 changes: 5 additions & 0 deletions
5
tests/i18nTest/_fakewebroot/i18ntestmodule/lang/en_corrupt.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
en: | ||
NONAMESPACE: Include Entity without Namespace | ||
Invalid: Foo | ||
About: 'About us' | ||
- Invalid # this should throw "A colon cannot be used in an unquoted mapping value at line 5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
en: | ||
NONAMESPACE: Include Entity without Namespace | ||
REPLACEMENTNONAMESPACE: 'My replacement no namespace: {replacement}' | ||
REPLACEMENTINCLUDENONAMESPACE: 'My include replacement no namespace: {replacement}' | ||
LAYOUTTEMPLATENONAMESPACE: Layout Template no namespace | ||
i18nTestModule: | ||
# Comment for entity | ||
ENTITY: Entity with "Double Quotes" | ||
ADDITION: Addition | ||
MAINTEMPLATE: Main Template | ||
WITHNAMESPACE: Include Entity with Namespace | ||
LAYOUTTEMPLATE: Layout Template | ||
REPLACEMENTNAMESPACE: 'My replacement: {replacement}' | ||
i18nTestModuleInclude_ss: | ||
REPLACEMENTINCLUDENAMESPACE: 'My include replacement: {replacement}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
en: | ||
NONAMESPACE: Include Entity without Namespace | ||
REPLACEMENTNONAMESPACE: 'My replacement no namespace: {replacement}' | ||
REPLACEMENTINCLUDENONAMESPACE: 'My include replacement no namespace: {replacement}' | ||
LAYOUTTEMPLATENONAMESPACE: Layout Template no namespace | ||
i18nTestModule: | ||
# Comment for entity | ||
ENTITY: Entity with "Double Quotes" | ||
ADDITION: Addition | ||
MAINTEMPLATE: Main Template | ||
WITHNAMESPACE: Include Entity with Namespace | ||
LAYOUTTEMPLATE: Layout Template | ||
REPLACEMENTNAMESPACE: 'My replacement: {replacement}' | ||
i18nTestModuleInclude_ss: | ||
REPLACEMENTINCLUDENAMESPACE: 'My include replacement: {replacement}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fr: | ||
i18nTestModule: | ||
ENTITY: 'Entity with "Double Quotes" (fr)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ja: | ||
Month: | ||
PLURALS: | ||
other: '{count}日' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mi_NZ: | ||
i18nTestModule: | ||
ENTITY: Translation (mi_NZ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
pl: | ||
Month: | ||
PLURALS: | ||
one: '1 miesiąc' | ||
few: '{count} miesiące' | ||
many: '{count} miesięcy' | ||
other: '{count} miesiąca' |
4 changes: 4 additions & 0 deletions
4
tests/i18nTest/_fakewebroot/i18ntestmodule/templates/Includes/i18nTestModuleInclude.ss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<%t i18nTestModule.WITHNAMESPACE 'Include Entity with Namespace' %> | ||
<%t NONAMESPACE 'Include Entity without Namespace' %> | ||
<%t i18nTestModuleInclude_ss.REPLACEMENTINCLUDENAMESPACE 'My include replacement: {replacement}' replacement=$TestProperty %> | ||
<%t REPLACEMENTINCLUDENONAMESPACE 'My include replacement no namespace: {replacement}' replacement=$TestProperty %> |
12 changes: 12 additions & 0 deletions
12
tests/i18nTest/_fakewebroot/i18ntestmodule/templates/Layout/i18nTestModule.ss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<%t i18nTestModule.LAYOUTTEMPLATE "Layout Template" %> | ||
<%t LAYOUTTEMPLATENONAMESPACE "Layout Template no namespace" %> | ||
<%t i18nTestModule.REPLACEMENTNAMESPACE 'My replacement: {replacement}' replacement=$TestProperty %> | ||
<%t REPLACEMENTNONAMESPACE 'My replacement no namespace: {replacement}' replacement=$TestProperty %> | ||
<% include i18nTestModuleInclude %> | ||
|
||
<%t i18nTestModule.NEWMETHODSIG "New _t method signature test" %> | ||
<%t i18nTestModule.INJECTIONS_DOES_NOT_EXIST "Hello {name} {greeting}. But it is late, {goodbye}" name="Mark" greeting="welcome" goodbye="bye" %> | ||
<%t i18nTestModule.INJECTIONS "Hello {name} {greeting}. But it is late, {goodbye}" name="Paul" greeting="good you are here" goodbye="see you" %> | ||
<%t i18nTestModule.INJECTIONS "Hello {name} {greeting}. But it is late, {goodbye}" is "New context (this should be ignored)" name="Steffen" greeting="willkommen" goodbye="wiedersehen" %> | ||
<%t i18nTestModule.INJECTIONS name="Cat" greeting='meow' goodbye="meow" %> | ||
<%t i18nTestModule.INJECTIONS name=$absoluteBaseURL greeting=$get_locale goodbye="global calls" %> |
7 changes: 7 additions & 0 deletions
7
tests/i18nTest/_fakewebroot/i18ntestmodule/templates/i18nTestModule.ss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<%t i18nTestModule.MAINTEMPLATE "Main Template" %> | ||
$Layout | ||
lonely _t() call that should be ignored | ||
<%t i18nTestModule.NEWENTITY "Not stored in master file yet" %> | ||
Single: <%t i18nTestModule.PLURALS 'An item|{count} items' count=1 %> | ||
Multiple: <%t i18nTestModule.PLURALS 'An item|{count} items' count=4 %> | ||
None: <%t i18nTestModule.PLURALS 'An item|{count} items' count=0 %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
de: | ||
i18nTestTheme1: | ||
LAYOUTTEMPLATE: Theme1 Layout Template (de) | ||
REPLACEMENTNAMESPACE: 'Theme1 My replacement: {replacement} (de)' | ||
i18nTestTheme1Include: | ||
WITHNAMESPACE: Theme1 Include Entity with Namespace (de) | ||
REPLACEMENTINCLUDENAMESPACE: 'Theme1 My include replacement: {replacement} (de)' | ||
NONAMESPACE: Theme1 Include Entity without Namespace (de) | ||
REPLACEMENTINCLUDENONAMESPACE: 'Theme1 My include replacement no namespace: {replacement} (de)' | ||
LAYOUTTEMPLATENONAMESPACE: Theme1 Layout Template no namespace (de) | ||
REPLACEMENTNONAMESPACE: 'Theme1 My replacement no namespace: {replacement} (de)' |
11 changes: 11 additions & 0 deletions
11
tests/i18nTest/_fakewebroot/themes/testtheme1/lang/de_DE.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
global $lang; | ||
|
||
if (array_key_exists('de_DE', $lang ?? []) && is_array($lang['de_DE'])) { | ||
$lang['de_DE'] = array_merge($lang['en_US'], $lang['de_DE']); | ||
} else { | ||
$lang['de_DE'] = $lang['en_US']; | ||
} | ||
|
||
$lang['de_DE']['i18nOtherModule']['LEGACYTHEME'] = 'Legacy translation (de_DE)'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
en: | ||
i18nTestTheme1: | ||
LAYOUTTEMPLATE: Theme1 Layout Template | ||
REPLACEMENTNAMESPACE: 'Theme1 My replacement: {replacement}' | ||
i18nTestTheme1Include: | ||
WITHNAMESPACE: Theme1 Include Entity with Namespace | ||
REPLACEMENTINCLUDENAMESPACE: 'Theme1 My include replacement: {replacement}' | ||
NONAMESPACE: Theme1 Include Entity without Namespace | ||
REPLACEMENTINCLUDENONAMESPACE: 'Theme1 My include replacement no namespace: {replacement}' | ||
LAYOUTTEMPLATENONAMESPACE: Theme1 Layout Template no namespace | ||
REPLACEMENTNONAMESPACE: 'Theme1 My replacement no namespace: {replacement}' |
Oops, something went wrong.