Version: 2.9.2 Reporter: GDmac - expocom —
This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report
In an effort to amend the dutch translation, i bumped into a couple of small issues.
(1) In the view/tools/translate.php i added the following code to fill in missing translations with the original line.
(2) Added a ‘uniqish’ key to the form submit button
...
foreach ($language_list as $label => $value)
{
$this->table->add_row(
array('data' => form_label($value['original'], $label), 'style' => 'text-align:right;'),
($value['trans']==''?'* ':'').form_input(array('id' => $label,
'name' => $label,
'value' => ($value['trans'] ? $value['trans'] : $value['original'] ),
'class'=>'field translate_field'))
);
}
echo $this->table->generate();
?>
<?=form_submit('translate_submit', lang('update'), 'class="submit"')?>
...
In controllers/cp/tools_utilities.php i then filter out the submit button (2) before saving the file in method translation_save()
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```