I have the same problem, did you came up with a solution?
Thank you!
El lunes, 23 de enero de 2012 16:05:43 UTC-3, Anna P escribió:
>
> Hello.
>
> I'm making multilingual website and I want administrator to add and
> edit subpage in all available languages within one form.
>
> The add function
Hello.
I'm making multilingual website and I want administrator to add and
edit subpage in all available languages within one form.
The add function works fine, the problem is when I want to edit
subpage and all translations at one time - one of the fields does not
want to update in i18n table.
YES THIS IS THE SOLUTION that i want!
Thank you Zaky. You really help me lot.
Regards,
Jason
On Apr 5, 12:21 pm, Zaky Katalan-Ezra wrote:
> http://stackoverflow.com/questions/1794412/adding-a-prefix-to-every-u...
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cak
http://stackoverflow.com/questions/1794412/adding-a-prefix-to-every-url-in-cakephp
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsu
Hi,
i have two languages to allow user to choose/switch: en or fr
i want the url as:
•
xxx.com/en/ --> default language is en
•
xxx.com/en/stock/stockName1/ -> dynamic page in EN language, it is
similar to xxx.com/stock.php?lang=en&stockid=123
•
xxx.com/fr/stock/stockName1/ -> dynamic page i
echo $this->Html->css('default_rtl');
}
when default_rtl only override values
like this
#container {
text-align: right;
direction:rtl;
}
On Wed, Jul 7, 2010 at 10:29 AM, Yasir Arafat Hasib wrote:
> Please help me in cakephp multilingual site. If y
read('Config.language'))) {
$this->Session->write('Config.language', $lang);
$this->Cookie->write('lang', $lang, null, '20 days');
}
$this->set('currentLanguage', $lang);
}
On Jul 7, 9:29 am
Please help me in cakephp multilingual site. If you have any tutorial about
this please send
--
Thanks & regards.
Yasir Arafat (Hasib)
Software Engineer
Epsilon Consulting and Development Services (ECDS)
Contact Information:
Cell : +8801816536901
Web:
Yannis,
I think you are using the translate behavior.
Try this everytime user changes language:
if (!class_exists('L10n')) {
App::import('Core', 'L10n');
}
$l10n = new L10n();
$l10n->get($lang);
On Jul 29, 8:37 am, Yannis wrote:
> I can see from the debug output that when I click
Hello Yannis
Your system must have the specified locale installed, or else the
setlocale function won't work. You can check whether it's working or
not by doing this:
$l = 'es_ES';
echo "trying to set locale to $l...";
$x = setlocale( LC_ALL, $l );
echo $x ? "locale successfully set" : "couldn'
I'm not sure I fully understand you here.
The $currLang routine is just there to switch the language between
link & text. It's really just aesthetic.
I don't do any language switching on the database. This just pulls
messages out of the po files in the required language.
Leo
--~--~-~--~-
I can see from the debug output that when I click on the code you
have
given me for changing language there is no change on the database
request.
I have tried different language codes but nothing. The only thing that
can bring
a change to the database is if I change the Configure::wite
('Config.
Thank you guys,
Djogo, what exactly do you mean here??
> - check if the locale is installed in your system. sometimes it's
> lang.encoding, like pt_BR.UTF-8 instead of pt_BR
Where do I check that?
On Jul 28, 2:33 pm, djogo wrote:
> Hey
>
> I spent many time trying to figure out how to make i
Hey
I spent many time trying to figure out how to make i18n work... I'm
not following this topic realtime, but I'd like to post some tips that
would really had helped me back then:
- always use utf-8, no matter what's the language you're i18ng
- check if the locale is installed in your system. s
> Do I have to add something else to change the database locale?
No, I don't think so. That's all I have!
I can only suggest that you look carefully at the folder names and the
two or three letter acronyms to ensure that you have the correct ones
in the correct places.
Start with just two langu
OK you were right!
There was a space after the ?> in routes.
- However: i10n works / i18n doesn't work.
Meaning the po messages change but the database locale is always eng.
-Your code for language change stays the same, meaning that english is
always the chosen lang
Do I have to add something
I can't see what is causing the problem, but it is a warning rather
than an error. It seems to indicate that the code executed okay, but
the headers had already been sent. If you have copied & pasted the
code, you may have picked up a space after the ?> in p28n.php (I see
by swiping the code that
Hi leop,
Thanks for the code. I've used it but I get the following error:
Warning (2): Cannot modify header information - headers already sent
by (output started at .../config/routes.php:49) [CORE/cake/libs/
controller/components/cookie.php, line 364]
If that rings any bell?!?!
Looks like the l
Yannis,
Here are the crucial fragments. As you can see, the use of three
letter and two letter language codes is confusing, more so because
catalan doesn't seem to have a xx_xx code.
I hope you can understand the following. I've included my version of
p28n.php because I think I might have made s
I have managed to make the po files work.
All I did was rename them to default.po
and it worked. I'm still changing the language
through core.php though.
thank you very much leop
Y
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
The site is one I did a while back.
I will have access to the code when I get home - about 3-4 hours from
the timestamp on this comment.
I used poedit to do the extraction, not the console as, like you, I
found it very buggy.
The rest I'll check later and get back to you.
L
--~--~-~--~
Is that your site .. multilingual works great. Well done!
OK let's try and follow this step by step. If you have the time I
would
appreciate it. Otherwise no worries maybe someone else can help on the
way.
** A **
So I have a table with articles and a table with i18n
I set the core.php: Configure
Thank you very much leop!
The article you're referring to was actually one of the last ones I
read this morning.
Still cannot make it work with my app.
However it is quite informative. I am having a look right now on the
second link and
will get back here if I get more specific.
respectfully
Yan
Try this link: http://tinyurl.com/4w3d49 (p28n, the top to bottom
persistent internationalization tutorial.) That's what I used.
Switching languages can be awkward, depending on how and where you're
doing it. I'm looking out some examples for you - might be a little
while though as I'm working on
Hi guys,
I have been struggling to make my small cakephp cms multilingual.
I have been reading loads of articles on the net but nothing seems to
work 100%
Could someone please direct me to a "correct" study path, a book, an
article a tutorial, a hint or a clue
that could generate some results.
-
25 matches
Mail list logo