Commit 687187d2 authored by Jonathan.Wage's avatar Jonathan.Wage

Updated I18n example.

parent 23cc4af2
...@@ -47,11 +47,10 @@ In the following example we add some data with finnish and english translations: ...@@ -47,11 +47,10 @@ In the following example we add some data with finnish and english translations:
<code type="php"> <code type="php">
$item = new NewsItem(); $item = new NewsItem();
$item->title = 'Some title';
$item->content = 'This is some content. This field is not being translated.'; $item->content = 'This is some content. This field is not being translated.';
$item->Translation['FI']->title = 'Joku otsikko'; $item->Translation['FI']->title = 'Joku otsikko';
$item->Translation['EN']->title = 'Some title';
$item->save(); $item->save();
</code> </code>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment