Add code to use OpenAI API to do transalations
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<root>
|
||||
<Text><![CDATA[
|
||||
<p><span class=label>
|
||||
%=l('${prefix}_${Label}'), class => 'label'
|
||||
%=l('${prefix}_${Label}')
|
||||
</span><span class=data>
|
||||
%= ${Value}, class => 'data'
|
||||
%= ${Value}
|
||||
</span></p>
|
||||
]]></Text>
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
</email>
|
||||
|
||||
<password><![CDATA[
|
||||
<p><span class=label>
|
||||
<p><span class='label'>
|
||||
%=l('${Label}')
|
||||
</span><span class=data>
|
||||
</span>span></p>
|
||||
@@ -100,17 +100,17 @@
|
||||
</password>
|
||||
|
||||
<Table><![CDATA[
|
||||
<br /><table class="sme-border TableSort">
|
||||
<br /><table class="sme-border TableSort sme-table">
|
||||
<thead>
|
||||
<tr><tal:block tal:repeat="ColHead TopHeadings">
|
||||
<th class='sme-border'><%=l('${ColHead}')%></th></tal:block>
|
||||
<tr table-head-row><tal:block tal:repeat="ColHead TopHeadings">
|
||||
<th class='sme-border table-head-col table-head-col-${ColHead} '><%=l('${ColHead}')%></th></tal:block>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
% my $control_data = $self->stash('${TableControl}');
|
||||
% foreach my $row (@$control_data) {
|
||||
<tr><tal:block tal:repeat="ColContent Columns">
|
||||
<td class='sme-border'><%=$c->render_to_string(inline=>$row->{${ColContent}})%></td></tal:block>
|
||||
<tr class='table-row'><tal:block tal:repeat="ColContent Columns">
|
||||
<td class='sme-border table-col table-col-${ColContent}'><%=$c->render_to_string(inline=>$row->{${ColContent}})%></td></tal:block>
|
||||
</tr>
|
||||
%}
|
||||
</tbody>
|
||||
|
Reference in New Issue
Block a user