the given msgid, else it
> wil display the msgid given
> use __("button_submit", true) to return the value as opposed to
> echoing it
>
> I hope this saves others the time it took me to track it down.
>
> On Apr 13, 4:31 pm, "Aaron Thies" <[EMAI
out the msgstr for the given msgid, else it
wil display the msgid given
use __("button_submit", true) to return the value as opposed to
echoing it
I hope this saves others the time it took me to track it down.
On Apr 13, 4:31 pm, "Aaron Thies" <[EMAIL PROTECTED]>
I have been trying to find any kind of documentation on how to use
i18n and l10n in CakePHP 1.2. Any help would be appreciated.
--
Aaron Thies
"When you're married you'll understand the value of fresh produce."
- Tony Soprano
--~--~-~--~~~---~-
We are building a site that needs to support multiple languages -
content ( titles of topics etc), user names and DB strings etc. will
be in multiple languages - including chinese.
>From the information I found on the site, the 1.1 version will not
support this right? Will the alpha version (1.2
I had similar problem,
try __("TableFieldName", 0)
In my case it was right solution.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
Ok, sorry found it myself.
The problem resides in the xampp apache of my windows box.
On the linux apache its working fine with the first example, __('your
text',true);
But its still wired why my qindows box is crashing with it.
The error reports some errors on the zendoptimizer.dll.
So i have to
OK, this works for links and normal input fields without the helper.
But if i use this:
echo $form->input('fieldDefinitions/field',
array('label'=> __("TableFieldName",true),
'size'=>'40'))."\n";
It crashes my Apache ?!
I tried i
I read this post.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For
You could start by reading what people have posted before..
http://groups.google.com/group/cake-php/browse_thread/thread/996b916448eb9d6a/ecdcdf40b16387ae?lnk=gst&q=i18n&rnum=1#ecdcdf40b16387ae
--~--~-~--~~~---~--~~
You received this message because
How I can do the translations of fields of a database table?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this
e($html->link(__("LABEL_TERMS_CONDITIONS", true), "/terms"));
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this
Ok, I understand.
Something about the __() function:
I wanted to translate the title of a link : e($html-
>link(__("LABEL_TERMS_CONDITIONS"), "/terms"));
gives : Règles et Conditions, title outside the
tags.
The right solution : e($html->link(__("LABEL_TERMS_CONDITIONS", true),
"/terms"));
That
be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Stefan
Enviado el: Viernes, 23 de Febrero de 2007 10:47 p.m.
Para: Cake PHP
Asunto: i18n language name
Hi,
The ISO language name for french is fra , fre.
I made a directory app/locale/fra/LC_MESSAGES/ and put there a
default.po and default.mo and followed the instructions about using
i18n :
$language = 'fra';
$this->Session->write('Config.language', $language);
wi
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de palPalani
Enviado el: Sábado, 10 de Febrero de 2007 11:48 a.m.
Para: Cake PHP
Asunto: Re: How to use i18n with database in CakePHP 1.2
Thanks for you r
Hi Kathrin,
Thanks for you reply. Now i can able to translate static text using
your answer.
Can you provide database based i18n support in CakePHP.
Once again thanks for your reply.
thanks,
palPalani.
On 4 Feb, 15:58, "Kathrin" <[EMAIL PROTECTED]> wrote:
> In CakeP
Ámon Tamás wrote:
> Hello,
>
> I have a site, what I like to make multilangual and I like to change my
> urls from /controller/action to /lng/controller/action. How can I make this?
>
Hmmm? There was a little example in the wiki about it, but I do not find
in the new bakery. Is there a poss
ke views are not wrapped using
> > PHP's gettext() function.
>
> > I found this useful for anyone else that is researching this topic:
> >http://www.onlamp.com/pub/a/php/2002/06/13/php.html?page=1
>
> > Thanks, Richard
>
> > On Feb 4, 9:31 pm, "Mariano Iglesia
Hello,
I have a site, what I like to make multilangual and I like to change my
urls from /controller/action to /lng/controller/action. How can I make this?
--
Ámon Tamás
http://linkfelho.amon.hu
--~--~-~--~~~---~--~~
You received this message because you are s
ro de 2007 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&
=1
>
> Thanks, Richard
>
> On Feb 4, 9:31 pm, "Mariano Iglesias" <[EMAIL PROTECTED]>
> wrote:
> > CakePHP 1.2 uses gettext for i18n, which places the contents on text
> files,
> > as you can read here:
> >
> > http://ar.php.net/gettext
> >
ne else that is researching this topic:
http://www.onlamp.com/pub/a/php/2002/06/13/php.html?page=1
Thanks, Richard
On Feb 4, 9:31 pm, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:
> CakePHP 1.2 uses gettext for i18n, which places the contents on text files,
> as you can read here:
CakePHP 1.2 uses gettext for i18n, which places the contents on text files,
as you can read here:
http://ar.php.net/gettext
So if you need your text elements to be on a database (thus allowing your
application to easily modify them) you'll need to implement i18n DB support
by yoursel
In CakePHP 1.2 the function gettext is implement. You can write in
cake/local/LCMESSAGE/DEU/ in the core.po datei your msgid and
msgstring. Call msgfmt core.po >core.mo. Change in your view the
source (your msgid) like __('msgid') thats all.
http://www.gnu.org/software/gettext/
its realy simple
Ka
Hi,
I would like to create a multi-lingual website with editable content
through a CMS. Will this be possible with release of 1.2?
The stuff I have read places all the text into files opposed to
database tables.
Thanks in advance, Richard
--~--~-~--~~~---~--~~
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 impl
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);
>
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 automag
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 "
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'
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
> $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
> 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
*/
--~--~-~--~--
;
}
Michael Grunewalder wrote:
> 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 multilang
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...
>>
>>
>
&
>
> 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]
create /app/locale/deu/LC_MESSAGES/default.po
(** deu = your LANGUAGE code **)
[default.po]
msgid "Hello, my friend&qu
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 po
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
br
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.
renderElement('language', $params) ?>
Now the user need only press a button to be ab
The locale code isn't in the nightly, it's here:
https://trac.cakephp.org/browser/whiteboard/proposals/bundt/1.x.x.x/
However, there are several complete implementations which are being
used in production settings, most notably Andy Dawson's (AD7six)
implementation, which I believe you can find o
I am starting a new web project, and I want to give Cake a try. But
there's a caveat: I have to create a multilanguage site.
After searching this group and the Cake docs, I have found only a
couple of "hand made" solutions, and the promise to have i18n in
version 2 of CakePHP, but
401 - 441 of 441 matches
Mail list logo