Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
language system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2012 at 03:06 UTC
Updated:
24 Nov 2012 at 05:22 UTC
Jump to comment: Most recent
Comments
Comment #1
damienmckennaFurther compounding this is that when a Spanish node on a English site with a default language of English is edited, the form hooks are all passed the $langcode for Spanish, not the English site default.
To me this suggests that a) when editing an entity you should use the $langcode value supplied, b) when viewing an entity you should first check for matching data against the $langcode value supposed, then default to the entity's language code if nothing found.
So when should LANGUAGE_NONE be used?
Comment #2
damienmckennaAnother problem, is there a standard practice on what to do when updating an existing object if the language value is changed? Is it best practice to manually identify the old language value and delete old records before saving new data, should it be left around, or should the action be determined by e.g. whether entity_translation is also enabled?