Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
locale.module
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Apr 2013 at 13:25 UTC
Updated:
29 Jul 2014 at 22:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ParisLiakos commentedThis could move to settings as well..not really sure
See also here #1813762-27: Introduce unified interfaces, use dependency injection for interface translation
Comment #2
ParisLiakos commentedi will roll a patch for settings
Comment #3
ParisLiakos commentedComment #4
tstoecklerCan we add an example code to default.settings.php, please? If I'm not mistaken, we have done this for all new settings so far, and I think it really helps site builders / developers.
Comment #5
tstoecklerForgot to say, that it looks great already!!! Found one other little nit-pick:
This should be \Drupal::settings()
Comment #6
ParisLiakos commented#4: there is already one:)
#5: better wait for #1813762: Introduce unified interfaces, use dependency injection for interface translation, since it is rtbc and then inject settings to CustomStrings translator
Comment #7
tstoecklerRe #6: There is the following code in default.settings.php:
The example code should be changed to something like:
Also:
1. I think, but I'm not sure, the [''] key is bogus.
2. We should move the entire block up to where the rest of the $settings are.
3. I think the docs could be improved, in particular they should mention that the _en part is in fact dynamic and works for any (enabled) language.
Comment #8
ParisLiakos commentedas per #6
Comment #9
ParisLiakos commentedook, injected settings into CustomStrings object, move the settings part together with rest of them, and added documentation about the langcode part.
I agree that '' is bogus, but not sure what to do here
Comment #11
ParisLiakos commentedmeh, the installer needs parameteters as well
Comment #12
ParisLiakos commentedComment #14
ParisLiakos commented#11: drupal-locale_custom_strings_settings-1975490-11.patch queued for re-testing.
Comment #16
ParisLiakos commentedComment #17
ParisLiakos commentedoh sigh, empty patch...interdiff is correct
Comment #19
ParisLiakos commented#17: drupal-locale_custom_strings_settings-1975490-17.patch queued for re-testing.
Comment #20
tstoecklerLooks very good to me, but I'm not into the locale system enough to RTBC this myself.
Comment #21
aspilicious commented#17: drupal-locale_custom_strings_settings-1975490-17.patch queued for re-testing.
Comment #23
ParisLiakos commentedok lets reroll this one
Comment #25
ParisLiakos commentedoh, forgot a line during reroll
Comment #26
dawehnerThis baseclass really feel wrong. Can't we not just add this to the WebTestBase?
A little be out of scope, but fine.
Is there a reason why this was moved in the file?
Comment #27
catchComment #28
dawehner.
Comment #29
ParisLiakos commentedSo it is grouped with the rest of the settings section. also see #7
Comment #30
ParisLiakos commentedmeh, the interdiff ;)
Comment #32
ParisLiakos commentedComment #33
dawehnerI think we should describe that the custom translations are added to the settings object.
Otherwise this looks really good.
Comment #34
ParisLiakos commentedprobably something like that
Comment #35
dawehnerNice!
Comment #36
gábor hojtsyComment #37
catchThis looks great. Committed/pushed to 8.x, thanks!
Comment #38
gábor hojtsySuperb, thanks!
Comment #39
gábor hojtsyAdded a quick change notice at https://drupal.org/node/2109883