Tuesday, October 2, 2012

Re: i18n - no flags

hey patrick, i need something like this on cakephp 1.3. i would like to extract the pot file from the views folder. The cook book dont say much about things what to do next, how exactly do I change the language on the website?
Of course, first I need to edit the po files, but if I have multiple domains, how exactly do I force cakephp to use certain .po file with translation? If you can give any sort of advice or guidance, I would be grateful.



2012/10/2 Dr. Drijk <pdrijk@gmail.com>
Update and case closed.

The problem could be in the latest version of cakePHP.(v2.3).
After reinstalling the previous version, everthing went well.

but hej, thank you for searching.

Patrick.

Op dinsdag 25 september 2012 16:46:03 UTC+2 schreef Dr. Drijk het volgende:
maybe a silly question, but anyway.

I'm using the i18n plugin, copied into the plugin folder.
I use an element which creates the heading for each page. In this element i use the switchFlag function of the pluging:
     
"<td class="button"><?php echo $this->Html->image('printer-icoon.gif',array('alt'=>'print de pagina', 'onclick'=>'window.print()', 'onmouseover'=>'this.style.border = "1px Solid #EEDDFF 1px"', 'onmouseout'=>'this.style.border ="0px Solid #EEDDFF"')); ?></td>
<td><?php echo $this->I18n->flagSwitcher(array('class' => 'languages', 'id' => 'language-switcher')); ?></td>"
 
The created 'flag' functions quite well, no problem with that, but the pictures themself aren't shown.
the html-code generated looks like this
<img alt="" src="/VR/V6/i18n/img/flags/fr.png"/>

I don't know it this is related to it. since I introduced the flags even the results of DebugKit aren't rendered wel.
All te results are shown at the end of the page and not as a toobar.

any idea how to solve this?

Patrick
    

--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 



--
Ivan Rimac
tel: +385 95 555 99 66

--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: