-
Notifications
You must be signed in to change notification settings - Fork 93
Bundle does not work properly with new Intl ICU translations #452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
bocharsky-bw
merged 32 commits into
php-translation:master
from
kram-soft:handle-icu-domain
Jan 23, 2023
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
b020360
Remove both "normal" and ICU domain from messages set
snpy d4c78c2
Add new configuration for new message format
snpy 3952ec8
Add new field and getter based on recently added new config option
snpy bdad565
Make sure importer is ICU format aware
snpy c7284ed
Make sure new_message_format configuration is defined
snpy ab6631d
Pass to converter new_message_format configuration
snpy bd68a10
Make sure importer is aware of ICU domain format
snpy 6429fb4
Let code "breath" a bit
snpy ef9c691
Make sure we're always aware of ICU domain
snpy af20898
Make sure we're aware of 3 different message domains
snpy 04a1f1e
Persist PHP CS Fixer changes
snpy 0b1317a
Merge pull request #2 from php-translation/master
snpy c040dab
Remove both "normal" and ICU domain from messages set
snpy 1e88a37
Add new configuration for new message format
snpy a383c24
Add new field and getter based on recently added new config option
snpy 5b321e1
Make sure importer is ICU format aware
snpy a39113e
Make sure new_message_format configuration is defined
snpy 592b8f2
Pass to converter new_message_format configuration
snpy c3dbe3b
Make sure importer is aware of ICU domain format
snpy ee0cc66
Let code "breath" a bit
snpy d3b44d9
Make sure we're always aware of ICU domain
snpy 1c7da76
Make sure we're aware of 3 different message domains
snpy 8802b6f
Persist PHP CS Fixer changes
snpy b4b4f5a
Merge branch 'handle-icu-domain' of github.com:kram-soft/symfony-bund…
snpy f2e80e0
Apply PHP CS fixer automated fix
snpy bc9bd5f
Fix main PHPUnit issue
snpy 1e099ec
Fix catalogue counter
snpy 4116221
Make assertion more wordy
snpy cabf00a
Update configuration to have passing tests
snpy 0c31b96
Merge pull request #3 from php-translation/master
snpy 202af61
Merge branch 'master' into handle-icu-domain
snpy 4c52eec
Apply PHP-CS-Fixer suggestion
snpy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,2 +1,3 @@ | ||
messages+intl-icu.sv.xlf | ||
messages.sv.xlf | ||
*~ |
27 changes: 27 additions & 0 deletions
27
Tests/Functional/app/Resources/translations/messages+intl-icu.en.xlf
This file contains hidden or 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 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" version="2.0" srcLang="fr-FR" trgLang="en-US"> | ||
<file id="messages.en_US"> | ||
<unit id="IcuLCa0a2j"> | ||
<notes> | ||
<note category="state">new</note> | ||
<note category="approved">true</note> | ||
<note category="section" priority="1">user login</note> | ||
</notes> | ||
<segment> | ||
<source>key2</source> | ||
<target>trans2</target> | ||
</segment> | ||
</unit> | ||
<unit id="IcuLCa0a2b"> | ||
<notes> | ||
<note category="file-source" priority="1">Resources/views/translated.html.twig:12</note> | ||
<note>file-source</note> | ||
<note>status:new</note> | ||
</notes> | ||
<segment> | ||
<source>key3</source> | ||
<target>trans3</target> | ||
</segment> | ||
</unit> | ||
</file> | ||
</xliff> |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think naming this parameter
use_icu_format
as a boolean is better hereThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now we have 2 formats; later we may have more (though with pace of changes and ICU capability I guess we'd have to wait for at least a decade to have something new).
It's just future proof option; however I do not have any problems with replacing this with a bool configuration.
One remark here - the name does not reflect the its nature (it may suggest all translations will be casted to ICU format; for now it just places new translations in ICU formatted file).