Skip to content

Commit

Permalink
Added translation support
Browse files Browse the repository at this point in the history
  • Loading branch information
Petar Simic authored and jonom committed Jul 24, 2016
1 parent 6d6121d commit 93abbf5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/FocusPointField.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(Image $image)
TextField::create('FocusY'),
);
$this->setName('FocusPoint');
$this->setTitle('Focus Point');
$this->setTitle(_t('FocusPointField.FOCUSPOINT','Focus Point'));
$this->addExtraClass('focuspoint-fieldgroup');
if (Director::isDev() && $this->config()->get('debug')) {
$this->addExtraClass('debug');
Expand Down
3 changes: 3 additions & 0 deletions lang/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
en:
FocusPointField:
FOCUSPOINT: 'Focus Point'
3 changes: 3 additions & 0 deletions lang/hr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hr:
FocusPointField:
FOCUSPOINT: 'Točka fokusa'
3 changes: 3 additions & 0 deletions lang/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sr@latin:
FocusPointField:
FOCUSPOINT: 'Tačka fokusa'
3 changes: 3 additions & 0 deletions lang/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sr_RS@latin:
FocusPointField:
FOCUSPOINT: 'Tačka fokusa'

0 comments on commit 93abbf5

Please sign in to comment.