03:58 p.m.
Para: Cake PHP
Asunto: Re: i18n 1.2 - database tables
I have done some reading on gettext since your post and wondered if
creating the pot files is possible using 'xgettext' command? since the
strings that need translating in the cake views are not wrapped using
PHP's gettext() function
For your question 2 : use of translation table isn't implemented at
time, as you can see in file Translate.php
On Jan 31, 9:49 am, Ámon Tamás [EMAIL PROTECTED] wrote:
Larry E. Masters aka PhpNut wrote:
$language = 'deu';
Configure::write('Config.language', $language);
You can
Maybe they could make the route something like
http://www.site.com / :lng / :controller /:action
is $lng is not a good language then $lng will be set to the default
lng of the browser
On Feb 1, 11:12 am, Na [EMAIL PROTECTED] wrote:
For your question 2 : use of translation table isn't
Larry E. Masters aka PhpNut wrote:
$language = 'deu';
Configure::write('Config.language', $language);
You can also use:
$language = 'deu';
$this-Session-write('Config.language', $language);
Thanks, bud I have a lot of other question about it:
1. I like the url's look like
hi,
I have found solution for implementing multilingual static content in
CakePHP 1.2. I want to know, how to use database based multilingual
content. please help me.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hi,
Checkout the link,
http://groups.google.com/group/cake-php/browse_thread/thread/2f9d4367bfd43f38/?lnk=igtc#
On Jan 10, 12:05 am, Sebastian Macias
[EMAIL PROTECTED] wrote:
Can anybody post a short example of this new feature usage?
I found this in the bakery:
Its mostly automagic, just
How does working this i18n feature in 1.2? I like to make a multilangual
site with it...
--
Ámon Tamás
http://linkfelho.amon.hu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post
How does working this i18n feature in 1.2? I like to make a multilangual
site with it...
first steps should be easy.
in your view
[index.ctp]
? __(Hello, my friend); ?
create /app/locale/deu/LC_MESSAGES/default.po
(** deu = your LANGUAGE code **)
[default.po]
msgid Hello, my friend
That was a good start. Thanks.
How do I select a language so that the user can change the language
while browsing.?
thanks in advance :-)
Kaste wrote:
How does working this i18n feature in 1.2? I like to make a multilangual
site with it...
first steps should be easy.
in your view
:
That was a good start. Thanks.
How do I select a language so that the user can change the language
while browsing.?
thanks in advance :-)
Kaste wrote:
How does working this i18n feature in 1.2? I like to make a multilangual
site with it...
first steps should be easy
I found one way, is that the proper way?
The correct way would be:
$language = 'deu';
Configure::write('Config.language', $language);
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/
$language = 'deu';
Configure::write('Config.language', $language);
You can also use:
$language = 'deu';
$this-Session-write('Config.language', $language);
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/
Thanks a lot :-)
Larry E. Masters aka PhpNut wrote:
I found one way, is that the proper way?
The correct way would be:
$language = 'deu';
Configure::write('Config.language', $language);
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
*
Can anybody post a short example of this new feature usage?
I found this in the bakery:
Its mostly automagic, just use the __() method to wrap your static
text. Then put some po in the locale and get jiggy with it. You can see
it in action now[5], the site should display in the language your
Hi, All,
I am creating a website tht have 3 different lanuage version. And I try
to use the Locale Package. It great.
But,
Create or edit this file /app/views/layouts/default.thtml, adding this
line anywhere.
?php echo $this-renderElement('language', $params) ?
Now the user need only press a
401 - 415 of 415 matches
Mail list logo