Closed (fixed)
Project:
(Obsolete) configuration translation for Drupal 8
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
7 Mar 2013 at 11:26 UTC
Updated:
12 Apr 2013 at 16:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
gábor hojtsyhttp://drupalcode.org/project/config_translation.git/commit/7abb37d700e0...
Committed a first version of this which covers the site info and the site maintenance page. It tracks where you came from, so if you came from the site info admin page, it will land you back on that overview, otherwise it will land you back into the config translation overview. (May not be correct yet, since it does not actually make you return to the same page levels, will need to adapt).
Config entities, such as views not yet supported.
Also, the user page also proved to be an interesting page, because the one screen has translatables under two config keys. So we'll need to change the form logic to be able to present two configs on the same screen. It may be that we need to attack this problem from defining concepts to translate first, since the concept can be composed of multiple config files, or can be a config entity or a standalone config file. Food for thought. For now celebrate this:
Comment #2
gábor hojtsyJust pushed another big update for this, needed to turn the API upside down since now we need to support multiple config keys per form. This *will* need some more cleanups and code organization improvements, however now it is possible to define better titles for config translatable and also possible to edit multiple keys under the same form. Key parts:
on delete:
etc.
http://drupalcode.org/project/config_translation.git/commitdiff/f0ee1dc5...
Comment #3
gábor hojtsyMoved this further by abstracting the config groups a bit to their own class: http://drupalcode.org/project/config_translation.git/commitdiff/335a8102... - this way we can ask them whether they have schema, translatables, etc. Also added an alter hook possibility.
The bug from before where the second config file is not saved is still present :/
Comment #4
gábor hojtsyAlso expanded on this to support config entities. Views translation, building the translation operation right into the options for views. http://drupalcode.org/project/config_translation.git/commitdiff/14c4daef... Still needs refinement.
Comment #5
gábor hojtsyI think this is essentially done functionality-wise. There are certainly ways we should be able to expand this and Drupal 8-ify the architecture, but the basics are working (and tested thanks to #1954086: Add testing for a config entity).