forked from silverstripe/silverstripe-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEW Merge i18nTextCollector with existing (fixes silverstripe#1838)
This is a necessity for any further 3.1 pushes of master files to getlocalization. Because we'd otherwise remove existing master strings for CTF etc, which means we can no longer backport new translations to 3.0 (and there's no way for users to contribute translations to 3.0 via getlocalization). It's still a very monolithic class, but at least I've refactored it to return all collected strings without writing it to files (for easier testing).
- Loading branch information
Showing
4 changed files
with
77 additions
and
10 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
3 changes: 2 additions & 1 deletion
3
tests/i18n/_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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<% _t('i18nTestModule.MAINTEMPLATE',"Main Template") %> | ||
$Layout | ||
lonely _t() call that should be ignored | ||
lonely _t() call that should be ignored | ||
<% _t('i18nTestModule.NEWENTITY',"Not stored in master file yet") %> |
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