Re: How is build CakeBook

2009-03-22 Thread kicaj

Okey, thanks for answer!

...but source of cookbook is to big to me, i'm new in cake:)

A read your links and I found 
http://book.cakephp.org/pl/view/797/Retrieve-all-translation-records-for-a-field

It's return array with 'nameTranslation' array, but only in default
translation.
How get the same array for other languages and when filed 'name' will
be empty, we get 'name' from default language?


Sorry, but my english it's not perfect, i wan't explain more simple...

...for example:
I have field 'name' for translation. My default language is Polish (pl/
pol)
When I switch to english, I should display translation from polish to
english.
But if there is no translation english for 'name' field, it should get
oryginal-default value for polish.

Thank's a lot!
On 12 Mar, 09:25, AD7six andydawso...@gmail.com wrote:
 On Mar 11, 11:53 pm,kicajki...@kdev.pl wrote:

  Hi,

  How is build book.cakephp.org?
  When I write Polish version 
  (e.g.http://book.cakephp.org/pl/complete/14/Struktura-CakePHP),
  ...and when I click 
  forhttp://book.cakephp.org/pl/view/19/CakePHP-File-Structure
  i see english (default language) text because there is no translated
  to Polish.

  My question is How does it work (exactly: display default version when
  there is no translated)?

  I try do this the same, but I don't know How?

 Hi,
 The book's source code is available on the chaw [1]. However you
 should probably start with the translate behavior [2] as it
 transparently does the task you're asking.

 Please feel free to translate any and all of the book's contents that
 pops up in English for you [3] :).

 Cheers,

 AD
 [1]http://thechaw.com/cakebook
 [2]http://book.cakephp.org/pl/view/92/Translate
 [3]http://book.cakephp.org/pl#Jak-to-dzia%C5%82a-526
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How is build CakeBook

2009-03-12 Thread AD7six



On Mar 11, 11:53 pm, kicaj ki...@kdev.pl wrote:
 Hi,

 How is build book.cakephp.org?
 When I write Polish version 
 (e.g.http://book.cakephp.org/pl/complete/14/Struktura-CakePHP),
 ...and when I click 
 forhttp://book.cakephp.org/pl/view/19/CakePHP-File-Structure
 i see english (default language) text because there is no translated
 to Polish.

 My question is How does it work (exactly: display default version when
 there is no translated)?

 I try do this the same, but I don't know How?

Hi,
The book's source code is available on the chaw [1]. However you
should probably start with the translate behavior [2] as it
transparently does the task you're asking.

Please feel free to translate any and all of the book's contents that
pops up in English for you [3] :).

Cheers,

AD
[1] http://thechaw.com/cakebook
[2] http://book.cakephp.org/pl/view/92/Translate
[3] http://book.cakephp.org/pl#Jak-to-dzia%C5%82a-526
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---