Language ID rework
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Product Descriptions</td>
|
||||
<td><?php echo Form::select('language_id',array('','EN'=>'EN')); ?></td>
|
||||
<td><?php echo Form::select('language_id',ORMOSB::form('language',TRUE)); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
@@ -11,7 +11,7 @@
|
||||
// If there isnt a translated page, show the default language
|
||||
// @todo - default language should come from configuration
|
||||
if (! $translate->loaded())
|
||||
$translate = $record->product_translate->where('product_id','=',$record->id)->and_where('language_id','=','en')->find();
|
||||
$translate = $record->product_translate->where('product_id','=',$record->id)->and_where('language_id','=',1)->find();
|
||||
?>
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
|
@@ -10,7 +10,7 @@ $translate = $record->product_translate->where('product_id','=',$record->id)->an
|
||||
// If there isnt a translated page, show the default language
|
||||
// @todo - default language should come from configuration
|
||||
if (! $translate->loaded())
|
||||
$translate = $record->product_translate->where('product_id','=',$record->id)->and_where('language_id','=','en')->find();
|
||||
$translate = $record->product_translate->where('product_id','=',$record->id)->and_where('language_id','=',1)->find();
|
||||
|
||||
// @todo Need to add in product attributes
|
||||
// @todo Need to add in product plugins
|
||||
|
Reference in New Issue
Block a user