This one adds a simple language field to the following tables: node, vocabulary, term_data

Includes a small patch for taxonomy module in order to add the new fields to the list of fields to be inserted/updated.

This is not needed for node module, as the field can be introduced with hook_nodeapi

CommentFileSizeAuthor
i18n_language_fields_01.patch4.65 KBjose reyero

Comments

jose reyero’s picture

Steven’s picture

char(2) is not sufficient for language codes. There are 3 letter codes too, but also, you can add local variants (en-gb, nl-be).

I'm not sure we need this in core. Core already outputs a language attribute in the <html> tag. This belongs in i18n.module in a separate table.

jose reyero’s picture

Status: Needs review » Closed (fixed)

Ok, agreed that unless we have some multi language module in core, this belongs to the module's database script. Also, I have found some workarounds to save this patches to node.module and taxonomy.module, so closing this one for now.