Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

Commit

Permalink
added i18n files ( polish so far )
Browse files Browse the repository at this point in the history
  • Loading branch information
Grzegorz Śliwiński committed Apr 22, 2010
1 parent 8340b9b commit 56a7cf5
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 5 deletions.
Empty file added .gitignore
Empty file.
3 changes: 1 addition & 2 deletions config/app.yml
Expand Up @@ -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
5 changes: 4 additions & 1 deletion config/fzTagPluginConfiguration.class.php
Expand Up @@ -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(
Expand Down
17 changes: 17 additions & 0 deletions i18n/pl/fzTag.xml
@@ -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>
1 change: 0 additions & 1 deletion lib/widget/sfWidgetFormFzTagsAutocomplete.class.php
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion modules/fzTag/templates/_list.php
@@ -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>
Expand Down

0 comments on commit 56a7cf5

Please sign in to comment.