Permalink
Browse files

added i18n files ( polish so far )

  • Loading branch information...
Grzegorz Śliwiński
Grzegorz Śliwiński committed Apr 22, 2010
1 parent 8340b9b commit 56a7cf5a7866df1ed7627e36a6e93807b19aaeba
View
No changes.
View
@@ -10,5 +10,4 @@ all:
filter_hide: false # show/hide filtered items
maxshownitems: 30 # maximum numbers that will be shown at dropdown list (less better performance)
maxitems: # maximum item that can be added to the list
- firstselected: false # automaticly select first element from dropdown
- complete_text: "Start to type..."
+ firstselected: false # automaticly select first element from dropdown
@@ -30,7 +30,10 @@ public function listenToFormPostConfigureEvent(sfEvent $event)
if( $form instanceof BaseFormDoctrine && $form->getObject()->getTable()->hasTemplate('fzTaggable'))
{
$form->setWidget('tags', new sfWidgetFormFzTagsAutocomplete(
- array('choices' => $form->getObject()->getTagNames() )
+ array('choices' => $form->getObject()->getTagNames(),
+ 'complete_text' => sfContext::getInstance()
+ ->getI18N()->
+ __( 'Start to type...', array(), 'fzTag' ))
));
$form->setValidator('tags', new sfValidatorFzTagsAutocomplete(array(
View
@@ -0,0 +1,17 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE xliff PUBLIC "-//XLIFF//DTD XLIFF//EN" "http://www.oasis-open.org/committees/xliff/documents/xliff.dtd">
+<xliff version="1.0">
+ <file source-language="EN" target-language="pl" datatype="plaintext" original="fzTag" date="2010-03-16T21:58:27Z" product-name="fzTag">
+ <header/>
+ <body>
+ <trans-unit id="1" approved="yes">
+ <source>Tags</source>
+ <target>Tagi</target>
+ </trans-unit>
+ <trans-unit id="2" approved="yes">
+ <source>Start to type...</source>
+ <target>Zacznij pisać...</target>
+ </trans-unit>
+ </body>
+ </file>
+</xliff>
@@ -46,7 +46,6 @@ private function setFcbkCompleteOptions()
$this->addOption('filter_case', $appOptions['filter_case'] );
$this->addOption('filter_hide', $appOptions['filter_hide'] );
$this->addOption('filter_selected', false);
- $this->addOption('complete_text', $appOptions['complete_text'] );
$this->addOption('maxshownitems', $appOptions['maxshownitems'] );
$this->addOption('maxitems', $appOptions['maxitems'] );
$this->addOption('onselect', false);
@@ -1,4 +1,4 @@
-<h4>Tags</h4>
+<h4><?php echo __('Tags', array(), 'fzTag') ?></h4>
<ul>
<?php foreach( $tags as $tag ): ?>
<li><?php echo $tag ?></li>

0 comments on commit 56a7cf5

Please sign in to comment.