Forums / Developer / Problem with language_id

Problem with language_id

Author Message

Marko Žmak

Sunday 26 September 2010 3:02:05 pm

I'm using a multilanguage installation of eZP 4.3 and something strange is happening with the languages. It seems like the language_id of the object atributes is messed up. This is what happens...
In the output of {$node.object.data_map.text|attribute(show)} I get this:

language_code     string     'cro-HR'
language_id     string     3 

and in the output of {$node.object.current_language_object|attribute(show)} I get this:

id     string     2
name     string     'Croatian (Hrvatski)'
locale     string     'cro-HR' 

Also when I look at the Croatian language definition in the admin interface it's ID is 2.
Further more, by inspecting the ezcontentobject_attribute database table I found that all entries have language_code = cro-HR, and language_id = 3.
Any ideas why this happens?
Is it a bug in eZP, is something messed up in my installation, or am I missing something?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth