Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
base system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2005 at 11:29 UTC
Updated:
20 Aug 2005 at 11:50 UTC
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
| Comment | File | Size | Author |
|---|---|---|---|
| i18n_language_fields_01.patch | 4.65 KB | jose reyero |
Comments
Comment #1
jose reyero commentedComment #2
Steven commentedchar(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.
Comment #3
jose reyero commentedOk, 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.