Skip to content
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

[Reference] Add default_locale config description #4711

Merged
merged 1 commit into from
Jan 3, 2015

Conversation

xelaris
Copy link
Contributor

@xelaris xelaris commented Dec 30, 2014

Q A
Doc fix? no
New docs? yes
Applies to all
Fixed tickets


This locale is used, if no ``_locale`` routing parameter has been set. It becomes
the service container parameter named ``kernel.default_locale``. It is also available
with the :method:`Request::getDefaultLocale <Symfony\\Component\\HttpFoundation\\Request::getDefaultLocale>`
Copy link
Member

Choose a reason for hiding this comment

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

Do we really need a custom label for the method role here?

@xelaris
Copy link
Contributor Author

xelaris commented Dec 30, 2014

Thanks @xabbuh I have updated the commit. I have just copied the method reference from https://github.com/symfony/symfony-docs/blame/2.3/reference/configuration/framework.rst#L78 Should I change it too? I also think the sentence is missing the word method. Am I right?


**type**: ``string`` **default**: ``en``

This locale is used if no ``_locale`` routing parameter has been set. It becomes
Copy link
Contributor

Choose a reason for hiding this comment

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

would prefer "The default locale is used ..." but i am also fine with merging this.

Copy link
Member

Choose a reason for hiding this comment

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

good suggestion

@timglabisch
Copy link
Contributor

👍

@xabbuh
Copy link
Member

xabbuh commented Dec 30, 2014

I have just copied the method reference from https://github.com/symfony/symfony-docs/blame/2.3/reference/configuration/framework.rst#L78 Should I change it too?

Now that I think of this again, the way it is seems to be better given that you can see instantly to which class the method belongs.

I also think the sentence is missing the word method. Am I right?

I think the same. Can you add it in both sentences?

@xelaris
Copy link
Contributor Author

xelaris commented Dec 31, 2014

Updated both sentences

@xabbuh
Copy link
Member

xabbuh commented Dec 31, 2014

Thank you @xelaris

@weaverryan
Copy link
Member

This is really nice - great work everyone!

@weaverryan weaverryan merged commit 7ae3489 into symfony:2.3 Jan 3, 2015
weaverryan added a commit that referenced this pull request Jan 3, 2015
…ris)

This PR was merged into the 2.3 branch.

Discussion
----------

[Reference] Add default_locale config description

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes
| Applies to    | all
| Fixed tickets |

Commits
-------

7ae3489 [Reference] Add default_locale config description
@xelaris xelaris deleted the patch-10 branch October 31, 2022 12:17
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.

4 participants