Skip to content

[Translator] Dump translation constants as tree instead of simple list #14630

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
merged 1 commit into from
May 20, 2015

Conversation

gepo
Copy link
Contributor

@gepo gepo commented May 13, 2015

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets
License MIT
Doc PR

PR #14434 for 2.8 branch

@stof
Copy link
Member

stof commented May 13, 2015

Please rebase your branch to get rid of this merge commit

/**
* {@inheritdoc}
*/
protected function format(MessageCatalogue $messages, $domain)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to keep format above the getExtension function :)

@aitboudad aitboudad changed the title Yaml tree dumper for 2.8 branch [Translator] Dump translation constants as tree instead of simple list May 13, 2015
@aitboudad
Copy link
Contributor

ping @gepo

@gepo
Copy link
Contributor Author

gepo commented May 19, 2015

sorry, I was busy, will fix it today

@gepo gepo force-pushed the yaml_tree_dumper2.8 branch from c7fc4fb to 051a461 Compare May 20, 2015 09:32
…mp messages as tree instead of simple list.

Dump messages as tree based on '.' character as a delimeter in path.
For example this rray('foo.bar' => 'value') will be converted to array('foo' => array('bar' => 'value')).

Correctly process cases like this ['foo.bar' => 'test1', 'foo' => 'test2'].
@gepo gepo force-pushed the yaml_tree_dumper2.8 branch from 051a461 to 29ec5ca Compare May 20, 2015 09:35
@gepo
Copy link
Contributor Author

gepo commented May 20, 2015

done

@aitboudad
Copy link
Contributor

Thank you @gepo.

@aitboudad aitboudad merged commit 29ec5ca into symfony:2.8 May 20, 2015
aitboudad added a commit that referenced this pull request May 20, 2015
…d of simple list (gepo)

This PR was merged into the 2.8 branch.

Discussion
----------

[Translator] Dump translation constants as tree instead of simple list

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | no
| Fixed tickets |
| License       | MIT
| Doc PR        |

PR #14434 for 2.8 branch

Commits
-------

29ec5ca [Translation] add options 'as_tree', 'inline' to YamlFileDumper to dump messages as tree instead of simple list.
@fabpot fabpot mentioned this pull request Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants