8000 [2.1] Extracting translations support. by xaav · Pull Request #1259 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[2.1] Extracting translations support. #1259

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

Closed
wants to merge 13 commits into from
Closed

Conversation

xaav
Copy link
Contributor
@xaav xaav commented Jun 9, 2011

Now its finished.

<parameter key="translation.formatter.php.class">Symfony\Component\Translation\Formatter\PhpFormatter</parameter>
<parameter key="translation.formatter.pot.class">Symfony\Component\Translation\Formatter\PotFormatter</parameter>
<parameter key="translation.formatter.xliff.class">Symfony\Component\Translation\Formatter\XliffFormatter</parameter>
<parameter key="translation.formatter.yml.class">Symfony\Component\Translation\Formatter\YamlFormatter</parameter>
Copy link
Member

Choose a reason for hiding this comment

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

Still not indented right :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, aptana studio doesn't listen to my indentation settings.

use Symfony\Component\Console\Input\InputOption;

class UpdateTransCommand extends Command {

Copy link
Member

Choose a reason for hiding this comment

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

The curly braces should be on the next line.

@stof
Copy link
Member
stof commented Jun 10, 2011

This command should go in TwigBundle as it only supports Twig templates.

Thus, its design is broken: what about bundle using string translated by another bundle (especially true for app-specific bundles integrating shared bundles) ? In this case, strings may already be translated in another bundle.

@michelsalib
Copy link

I would have liked to pull this request myself as long as I am the owner of theo riginal repository (https://github.com/michelsalib/ExtraToolsBundle). But ok.

Also, I do agree with @stof about the bundle thing. But this kind of helper commands cannot satisfy every requirements at first.

@fabpot
Copy link
Member
fabpot commented Jun 10, 2011

@michelsalib: If you are the original author, then you should do the PR yourself.

@michelsalib
Copy link

@ fabpot : thanks. Is it ok if I push it tomorrow ? I'll also take into consideration the comments in this thread.

@fabpot
Copy link
Member
fabpot commented Jun 10, 2011

You have plenty of time as this feature won't be included in 2.0 anyway. It will be considered for 2.1.

@xaav
Copy link
Contributor Author
xaav commented Jun 10, 2011

@fabpot michesalib said he would do this pull request but did not do it, so that's why I submitted it.

@michelsalib I have fixed some things with your code to use the DIC, so you should probably fork xaav/symfony instead of symfony/symfony to include those changes.

@xaav
Copy link
Contributor Author
xaav commented Jun 10, 2011

I'm closing this, as I will be requesting a pull into michelsalib's fork.

@xaav xaav closed this Jun 10, 2011
@michelsalib
Copy link

@xaav you are right about the fact I told I would pull it. But you you raised at the time the question of the DIC and I did not have the time to solve it at the moment. So I did not pull the code. BTW thank you for your job about this issue. I planed on using your implementation. Sorry for the inconvenience.
@stof @Seldaek I will take your remarks into consideration before the push.
@stof any idea about the process we should use to address the issue you raise about the cross bundle thing ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0