Index: branches/5.0.x/units/currencies/currencies_config.php =================================================================== diff -u -r12924 -r13267 --- branches/5.0.x/units/currencies/currencies_config.php (.../currencies_config.php) (revision 12924) +++ branches/5.0.x/units/currencies/currencies_config.php (.../currencies_config.php) (revision 13267) @@ -1,6 +1,6 @@ Array ('curr' => '!la_title_EditingCurrency!'), 'new_titlefield' => Array ('curr' => '!la_title_NewCurrency!'), ), - 'currencies_list'=>Array ( 'prefixes' => Array ('curr_List'), + 'currencies_list' =>Array ( 'prefixes' => Array ('curr_List'), 'format' => "!la_title_Currencies!", ), - 'currencies_edit'=>Array ( 'prefixes' => Array ('curr'), + 'currencies_edit' =>Array ( 'prefixes' => Array ('curr'), 'new_titlefield' => Array ('curr' => '!la_title_NewCurrency!'), 'format' => "#curr_status# '#curr_titlefield#' - !la_title_General!", ), @@ -82,13 +82,13 @@ 'SubItems' => Array (), - 'ListSQLs' => Array ( ''=> 'SELECT %1$s.*, + 'ListSQLs' => Array ( '' => 'SELECT %1$s.*, phr.Translation FROM %1$s LEFT JOIN '.TABLE_PREFIX.'Phrase phr ON %1$s.Name = phr.Phrase'), // key - special, value - list select sql - 'ItemSQLs' => Array ( ''=> 'SELECT * FROM %s'), + 'ItemSQLs' => Array ( '' => 'SELECT * FROM %s'), 'CalculatedFields' => Array ( '' => Array ( @@ -102,23 +102,33 @@ 'Sorting' => Array ('ISO' => 'asc'), ) ), - 'Fields' => Array - ( - 'CurrencyId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'ISO' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), - 'Symbol' => Array ('type' => 'string', 'default' => null), - 'SymbolPosition' => Array ('type' => 'int', 'default' => null,'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_Left', 1 => 'la_Right'),'use_phrases' => '1'), - 'Name' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), - 'RateToPrimary' => Array ('type' => 'float', 'not_null' => 1, 'min_value_exc' => 0, 'formatter' => 'kFormatter', 'format' => '%0.4f', 'default' => 1), - 'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'Status' => Array ('type' => 'int', 'not_null' => 1, 'default' => 1, 'options' => Array ( 1 => 'la_Active', 0 => 'la_Disabled' ), 'use_phrases' => 1, 'formatter' => 'kOptionsFormatter'), - 'IsPrimary' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - ), + 'Fields' => Array ( + 'CurrencyId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'ISO' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), + 'Symbol' => Array ('type' => 'string', 'default' => null), + 'SymbolPosition' => Array ('type' => 'int', 'default' => null, 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_Left', 1 => 'la_Right'), 'use_phrases' => '1'), + 'Name' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), + 'RateToPrimary' => Array ('type' => 'float', 'not_null' => 1, 'min_value_exc' => 0, 'formatter' => 'kFormatter', 'format' => '%0.4f', 'default' => 1), + 'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), + 'Status' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 1 => 'la_Active', 0 => 'la_Disabled' ), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 1, + ), + 'IsPrimary' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, + 'not_null' => 1, 'default' => 0, + ), + 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + ), 'VirtualFields' => Array ( - 'Translation' => Array ('type' => 'string'), - ), + 'Translation' => Array ('type' => 'string'), + ), + 'Grids' => Array ( 'Default' => Array ( 'Icons' => Array (