Quote from: elastic at Jun 25, 2009, 03:38 PM
Hi, I made package (languagebuilder beta2) and Install package on fresh installation Revolution.
It sets empty "name" in table lexicon_languages and empty "language" in table lexicon_entries.
I experienced the same. I used the most recent version of Revolution (RC1, rev6351), created a transport package on my local Windows system, and installed it using a Revo installation on a webserver. Then I had to manually change the language name in the database table <prefix>_lexicon_languages and in all new lexicon entries in <prefix>_lexicon_entries from "" to "de" because my translation wasn’t usable without this modification.
The entries in the zip file (lexicon.core.200rc1.de-1.0.0-alpha-1.zip, path /lexicon.core.200rc1.de-1.0.0-alpha-1/modLexiconLanguage/9a8f6d6732ba4dcae13ce5ddbfc46900.vehicle) seem to be correct:
<?php return array (
'preserve_keys' => false,
'update_object' => true,
'unique_key' => 'name',
'related_objects' =>
array (
'Entries' =>
array (
'760718de95a56179a45b3555d7765a6d' =>
array (
'preserve_keys' => false,
'update_object' => true,
'unique_key' =>
array (
0 => 'name',
1 => 'topic',
2 => 'namespace',
3 => 'language',
),
'class' => 'modLexiconEntry',
'object' => '{"id":2511,"name":"credits","value":"Danksagungen","topic":1,"namespace":"core","language":"de","createdon":"2010-02-11 21:54:02","editedon":"0000-00-00 00:00:00"}',
'guid' => '7ad1ddd7c4eced1c53a07755edeedc2f',
'native_key' => 2511,
'signature' => 'ca66e6b7ff44a3b992416d3160dadb47',
),
[...]
),
),
'related_object_attributes' =>
array (
'modLexiconEntry' =>
array (
'preserve_keys' => false,
'update_object' => true,
'unique_key' =>
array (
0 => 'name',
1 => 'topic',
2 => 'namespace',
3 => 'language',
),
),
),
'resolve' =>
array (
0 =>
array (
'type' => 'file',
'body' => '{"source":"lexicon.core.200rc1.de-1.0.0-alpha-1\\/modLexiconLanguage\\/9a8f6d6732ba4dcae13ce5ddbfc46900\\/0\\/","target":"return MODX_BASE_PATH . \'setup\\/lang\\/\';","name":"de"}',
),
),
'validate' => NULL,
'vehicle_package' => 'transport',
'vehicle_class' => 'xPDOObjectVehicle',
'guid' => 'dc664555147e7b9cecee8a309629acfb',
'package' => 'modx',
'class' => 'modLexiconLanguage',
'signature' => '9a8f6d6732ba4dcae13ce5ddbfc46900',
'native_key' => 'de',
'object' => '{"name":"de"}',
);
At least the language name does occur in the entry arrays and at the end of the file.
I attached the lexicon transport package to this posting - maybe you’d like to take a look at it.
Cheers,
Jan