Re: how to deploy i18n translations ?

2016-01-29 Thread Dino Moreira
One year later and I have this exactly problem. Messages in __("English") are translated as expected in WAMP development environment. But not in Fedora FC21 Linux Using same apache+php versions... -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/

Re: how to deploy i18n translations ?

2016-01-03 Thread José Lorenzo
In what language are the messages inside __('...') ? On Tuesday, December 29, 2015 at 11:46:31 AM UTC+1, Alysson Azevedo wrote: > > In my development environment the I18n works fine, i can set the locale > with both ini_set('intl.default_locale', 'pt_BR') a

how to deploy i18n translations ?

2015-12-29 Thread Alysson Gonçalves de Azevedo
In my development environment the I18n works fine, i can set the locale with both ini_set('intl.default_locale', 'pt_BR') and I18n::locale('pt_BR'). But on my server nothing seems to work. Permissions are fine, cakephp can read the src/Locale files and write cache

CakePHP 2.6 and PHP PHP 5.6.7-1. Cabnnot run i18n shell

2015-05-01 Thread Athanassios
Hi everyone After I upgraded my test server from Debian Wheezy (PHP 5.4) to Jessie (PHP 5.6.7-1) I can no longer run my i18n shell. The error I am getting is : Error: Class FMFile does not exist #0 /var/www/hermonax/lib/Cake/Console/Command/Task/ExtractTask.php(498): ReflectionClass

Re: DRY - flash message i18n

2015-04-06 Thread Salines
OK, But what if you first time create post? -- Like Us on FaceBook 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 unsubscribe from this group and stop receiving ema

Re: DRY - flash message i18n

2015-04-05 Thread Harold Putman
How about: "Your changes have been saved." and "There was an error saving your changes." On Saturday, April 4, 2015 at 5:44:09 AM UTC-4, Salines wrote: > > Hi, > > as a person who works mostly non-English web applications, usually > frustrating me bake generated flash messages, where each mode

DRY - flash message i18n

2015-04-04 Thread Salines
Hi, as a person who works mostly non-English web applications, usually frustrating me bake generated flash messages, where each model has its own success and error messages. If you build an application with dozens of models, the process of translation is time-consuming, repetitive sentences wh

Re: cakephp-3.0.0-beta3 Fatal error: Class 'Locale' not found in \cakephp-3.0.0-beta3\vendor\cakephp\cakephp\src\I18n\I18n.php on line 229

2015-01-02 Thread John Andersen
I see you got the answer in another thread, so ignore my previous post :) Enjoy, John -- Like Us on FaceBook 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 unsubscr

Re: cakephp-3.0.0-beta3 Fatal error: Class 'Locale' not found in \cakephp-3.0.0-beta3\vendor\cakephp\cakephp\src\I18n\I18n.php on line 229

2015-01-02 Thread John Andersen
-beta3 version. > I get "*Fatal error*: Class 'Locale' not found in > *\cakephp-3.0.0-beta3\vendor\cakephp\cakephp\src\I18n\I18n.php* on line > *229*when I attempt to access http://localhost/cakephp-3.0.0-beta3 > > Can anyone give me some simple instructions as to how

cakephp-3.0.0-beta3 Fatal error: Class 'Locale' not found in \cakephp-3.0.0-beta3\vendor\cakephp\cakephp\src\I18n\I18n.php on line 229

2015-01-01 Thread Lorne Dudley
I am a novice cakephp user who just downloaded the 3.0.0-beta3 version. I get "*Fatal error*: Class 'Locale' not found in *\cakephp-3.0.0-beta3\vendor\cakephp\cakephp\src\I18n\I18n.php* on line *229*when I attempt to access http://localhost/cakephp-3.0.0-beta3 Can anyone give

Re: i18n problem

2014-10-22 Thread Lucky1968
e this. What Cake version are you using? > > On Monday, October 20, 2014 8:56:39 AM UTC+2, Lucky1968 wrote: >> >> Hi, >> >> Is there anyone who can help me with this? >> >> Thanx. >> >> On Wednesday, October 1, 2014 9

Re: i18n problem

2014-10-21 Thread Luc Bernard
this? >> >> Thanx. >> >>> On Wednesday, October 1, 2014 9:32:05 AM UTC+2, Lucky1968 wrote: >>> Hi, >>> >>> I'm using i18n in my application and it seems that in certain views I can >>> use $array['translated_field'] as i

Re: i18n problem

2014-10-21 Thread José Lorenzo
First time I see this. What Cake version are you using? On Monday, October 20, 2014 8:56:39 AM UTC+2, Lucky1968 wrote: > > Hi, > > Is there anyone who can help me with this? > > Thanx. > > On Wednesday, October 1, 2014 9:32:05 AM UTC+2, Lucky1968 wrote: >> >

Re: i18n problem

2014-10-19 Thread Lucky1968
Hi, Is there anyone who can help me with this? Thanx. On Wednesday, October 1, 2014 9:32:05 AM UTC+2, Lucky1968 wrote: > > Hi, > > I'm using i18n in my application and it seems that in certain views I can > use $array['translated_field'] as in other v

Re: i18n problem

2014-10-01 Thread Lucky1968
UPDATE: I also have to use $array[0]['Model__i18n_translated_field'] in normal (not forms) view files. On Wednesday, October 1, 2014 9:32:05 AM UTC+2, Lucky1968 wrote: > > Hi, > > I'm using i18n in my application and it seems that in certain views I can > use $a

i18n problem

2014-10-01 Thread Lucky1968
Hi, I'm using i18n in my application and it seems that in certain views I can use $array['translated_field'] as in other views I need to use $array[0]['Model__i18n_translated_field'] to get the same information coming from the same find in the same model. Can anyone t

Re: i18n base language and database fields

2014-10-01 Thread Dr. Tarique Sani
On Wed, Oct 1, 2014 at 12:07 PM, Lucky1968 wrote: > > > I suggest you use your solution c), so make everything in English by __() > and do the translation when your application is ready by extracting the > .pot files. Extremely easy. > Yep! +1 to the above suggestion .

Re: i18n base language and database fields

2014-09-30 Thread Lucky1968
llow cakePHP conventions, so my database tables and fields have > english names, as it so for cake's default error messages. I am building a > webapp for a Hungarian client. I would like to use i18n as I think later > the client will need internationalizing and localizing. But for

Re: i18n base language and database fields

2014-09-30 Thread Radharadhya Dasa
bel property, and than use __() method and translate. But I am not sure how should I do the translation. i18n shell will automatically extratct coloumn names also? 2. I added a menu to my default.ctp with a lot of links in an unordered list. Links are in Hungarian as the current request from the client is H

Re: i18n base language and database fields

2014-09-30 Thread José Lorenzo
ault error messages. I am building a > webapp for a Hungarian client. I would like to use i18n as I think later > the client will need internationalizing and localizing. But for now they do > not need it. > > So I do not want to create all my view files strings in English and than >

i18n base language and database fields

2014-09-29 Thread Radharadhya Dasa
Hi, I follow cakePHP conventions, so my database tables and fields have english names, as it so for cake's default error messages. I am building a webapp for a Hungarian client. I would like to use i18n as I think later the client will need internationalizing and localizing. But for now

Re: i18n & Tree problem

2013-12-01 Thread AD7six
gt; } else { >$optionslist = $modelObj->find('list'); > } > $options = ''; > foreach($optionslist as $key => $value) { >$options .= '' . $value . > ''; &g

i18n & Tree problem

2013-12-01 Thread Lucky1968
{ $options .= '' . $value . ''; } echo $options; This worked fine in my 1 language site but after changing to i18n the $value only holds the TREE_SPACER_ADMIN_LISTING without the actual $displayField value. When used in combination with a NON-TREE-obj

i18n shell validation msgs not being extracted

2013-09-17 Thread aka
I'm trying to generate the pot files from my site with cake's i18n shell useing cake 2.3. As mentioned in the cake docs the shell should automatically extract the validation msgs. However, none of the validation strings are added to my pot files. My validation array simply looks lik

Re: Pagination with i18n field condition (pagination + translation behavior error)

2013-09-10 Thread aka
Sorry, a little typo in my example: $conditions = array('OR' => array( 'I18n__title.content LIKE' => '%'.$searchKey.'%')); should be $conditions = array('OR' => array( I18n__titleTranslation LIKE' => '%'.$searchKey.'%')); That doesn't change the outcome though.. On Tuesday, September 10,

Pagination with i18n field condition (pagination + translation behavior error)

2013-09-10 Thread aka
Why is this no working (throws a column not found) : $conditions = array('OR' => array( 'I18n__title.content LIKE' => '%'.$searchKey.'%')); $this->paginate = array( 'conditions' => $conditions ); $results = $this->paginate(); *Error: * SQLSTATE[42S22

i18n Search for string in multiple translations

2013-09-03 Thread aka
Hi there, Im trying to set up a search function for a multilingual website. I'm using cake's (2.2) translation behavior and my translated fields are saved in a separate table (for example: I18n__titleTranslation) Now i would like to search these records and their translations but the only way

Re: CakePhp 2.x - Internationalization/Localization/Translate Behavior/i18n - How to use in 2.x?

2013-04-14 Thread Livin Inchina
Hi Kicaj and thanks for your post, I stumbled upon it before to start the internationalization of project. It was helpful but my main problem is that I can't save data with validation, I have to turn them off on my save($data,false) and I can't figure why it won't work! -- Like Us on FaceBook

Re: CakePhp 2.x - Internationalization/Localization/Translate Behavior/i18n - How to use in 2.x?

2013-04-09 Thread kicaj
view admin_edit.ctp. > > Using the console, I've created the i18n table by hitting the command > > cake i18n. > > Following are my files: > > *bootstrap.php* > > Configure::write('Config.languages', array('fra','eng')); > Config

CakePhp 2.x - Internationalization/Localization/Translate Behavior/i18n - How to use in 2.x?

2013-04-02 Thread Livin Inchina
oller.php and a view admin_edit.ctp. Using the console, I've created the i18n table by hitting the command > cake i18n. Following are my files: *bootstrap.php* Configure::write('Config.languages', array('fra','eng')); Configure::write('Config.language&#x

Re: Extracting core & validation messages for I18N with the cake shell

2012-12-19 Thread AD7six
why not just use https://github.com/cakephp/localized#po-files AD On Sunday, 9 December 2012 20:50:15 UTC+1, Cyrille Faucheux wrote: > > That's also what I thought. > > Which is the reason why I can't see why I cannot extract in one operation > every messages that may be displayed by my app: the

Re: Extracting core & validation messages for I18N with the cake shell

2012-12-09 Thread Cyrille Faucheux
That's also what I thought. Which is the reason why I can't see why I cannot extract in one operation every messages that may be displayed by my app: the core messages (like you said, the times/dates stuff), my app messages (from my views, controllers...) and the model validation messages. I'v

Re: Extracting core & validation messages for I18N with the cake shell

2012-12-09 Thread euromark
@cricket I think you messed sth up earlier. the dev messages (domain dev) are the ones not public. the normal core messages will very much end up in the frontend (being times/dates for examples or other global stuff) its just that they do not change that often - compared to the app ones. Am S

Re: Extracting core & validation messages for I18N with the cake shell

2012-12-08 Thread lowpass
On Sat, Dec 8, 2012 at 5:10 AM, Cyrille Faucheux wrote: > Yes, using version control is a solution, just as saving and replacing some > files, but I don't like this solution, because it requires a manual > intervention. > > What do you mean by "nothing will get done" ? That "it's working the way >

Re: Extracting core & validation messages for I18N with the cake shell

2012-12-08 Thread Cyrille Faucheux
t;> > >> > >> Am Donnerstag, 6. Dezember 2012 09:24:25 UTC+1 schrieb Cyrille > Faucheux: > >>> > >>> Hi everyone, > >>> > >>> I'm trying to internationalize an application, and I face some > problems > >&g

Re: Extracting core & validation messages for I18N with the cake shell

2012-12-07 Thread lowpass
Am Donnerstag, 6. Dezember 2012 09:24:25 UTC+1 schrieb Cyrille Faucheux: >>> >>> Hi everyone, >>> >>> I'm trying to internationalize an application, and I face some problems >>> with the I18N shell when extracting messages. >>> >>> When

Re: Extracting core & validation messages for I18N with the cake shell

2012-12-07 Thread Cyrille Faucheux
nce for the core and once for the app? > > > Am Donnerstag, 6. Dezember 2012 09:24:25 UTC+1 schrieb Cyrille Faucheux: >> >> Hi everyone, >> >> I'm trying to internationalize an application, and I face some problems >> with the I18N shell when extractin

Re: Extracting core & validation messages for I18N with the cake shell

2012-12-06 Thread euromark
why not running it twice? once for the core and once for the app? Am Donnerstag, 6. Dezember 2012 09:24:25 UTC+1 schrieb Cyrille Faucheux: > > Hi everyone, > > I'm trying to internationalize an application, and I face some problems > with the I18N shell when extracting mess

Extracting core & validation messages for I18N with the cake shell

2012-12-06 Thread Cyrille Faucheux
Hi everyone, I'm trying to internationalize an application, and I face some problems with the I18N shell when extracting messages. When I run the extract task (cake.bat i18n extract), I'm asked whether I want to extract messages from the Cake core, which is what I want since the

Problem in I18n table

2012-11-28 Thread jatin.bhatt
Hi. I have model "I18n" which stores turkish and english language content of different fileds. I have another model called "CompetitionAwards" which have title fields in turky and english language. The title field is stored in i18n table in both language perfectly. Now my pr

Re: Problem with "cake i18n extract"

2012-11-12 Thread Tommaso
On 8 Nov, 19:54, AD7six wrote: > Looks like you have a file named Model/User.php - which doesn't contain a > class named User Fixed! Thanks Tom -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are s

Re: Problem with "cake i18n extract"

2012-11-08 Thread AD7six
Looks like you have a file named Model/User.php - which doesn't contain a class named User AD On Tuesday, 6 November 2012 11:44:32 UTC+1, Tommaso wrote: > > Hello, > > I'm trying to use the "cake i18n extract" shell in cakephp 2.2.2 and > 2.2.3 but I'v

Problem with "cake i18n extract"

2012-11-07 Thread Tommaso
Hello, I'm trying to use the "cake i18n extract" shell in cakephp 2.2.2 and 2.2.3 but I've got a problem. After answered the questions the process starts with the message: = Extracting... --- Paths: /Users

Re: i18n - no flags

2012-10-02 Thread Ivan Rimac
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 i

Re: i18n - no flags

2012-10-02 Thread Dr. Drijk
estion, 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: > > " $this->Html->image('printer-icoon.gif

Re: i18n extract - not generating pot files

2012-10-01 Thread bberg
here's my shell ouput MachineName:app username$ ./Console/cake i18n extract -v --validation-domain validation Welcome to CakePHP v2.0.4 Console --- App : app Path: /Users/username/Sites/projec

i18n extract - not generating pot files

2012-10-01 Thread bberg
Hi, I've used the i18n shell before (with cake 1.3) and it worked for me. Now on 2.0.4 and 2.0.6 it just won't generate the pot files. No error messages, no strange logs, nothing. Any ideas? Thanks ps. also posted this question at http://ask.cakephp.org/ques

i18n - no flags

2012-09-25 Thread Patrick Drijkoningen
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: "Html->image('printer-icoon.gif',array('alt&#x

add 2 records in i18n for a new record

2012-07-04 Thread marcogo
hi i want to add a multiple lines (ita & eng) in i18n for one record in jewel so i add a afterSave in model cause i want to add multiple lines only for a new record and not for a modify one i add this public function afterSave($created) { if ($created) { if (isset ($this->data['

Data validation in multilingual website (with i18n)

2012-01-23 Thread Anna P
Hello. I'm building an multilingual website in CakePHP 2.0.5 with the use of I18n. My question is: how can I define (in model class) validation rules, so they apply to specified language version (locale)? I have an i18n table, "languages" table (id,code), "subpages"

Re: Error saving i18n

2011-12-29 Thread Constantin.FF
also i use $model->data[$model->alias]['title'] = $title; to set the title field On Dec 28, 8:39 pm, Constantin FF wrote: > absolutely the same result after adding >         $model->set(array('title' => $title, 'body' => $title)); > at the end of beforeSave -- Our newest site for the community:

Re: Error saving i18n

2011-12-28 Thread Constantin FF
absolutely the same result after adding $model->set(array('title' => $title, 'body' => $title)); at the end of beforeSave -- 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

Re: Error saving i18n

2011-12-28 Thread Constantin FF
title of the post. I am >> using this for attachments to set title, slug, create thumbs and so >> on .. >> >> With the testing till now these are the results: Set title inside: >> -Behavior beforeSave - does not save inside i18n table >> -Model bofereSave - does not

Re: Error saving i18n

2011-12-28 Thread Tilen Majerle
d so > on .. > > With the testing till now these are the results: Set title inside: > -Behavior beforeSave - does not save inside i18n table > -Model bofereSave - does not save inside i18n table > -Controller before $this->Attachment->save($this->data) - Working! > > Wha

Error saving i18n

2011-12-28 Thread Constantin.FF
I am using Behavior which beforeSave sets the title of the post. I am using this for attachments to set title, slug, create thumbs and so on .. With the testing till now these are the results: Set title inside: -Behavior beforeSave - does not save inside i18n table -Model bofereSave - does not

Re: i18n extract in plugins cakephp 2.0

2011-12-19 Thread Miles J
app/Plugin//Locale/eng/LC_MESSAGES/.po On Dec 19, 10:20 am, Cayetano Soriano wrote: > Hi i used  the console, for extract .po, from plugin, the problem, is > that I create a directory in my app/Plugins// called > Locale, and copy my .po, but it doesn't work, in app/Locale , it works > perfectly,

i18n extract in plugins cakephp 2.0

2011-12-19 Thread Cayetano Soriano
Hi i used the console, for extract .po, from plugin, the problem, is that I create a directory in my app/Plugins// called Locale, and copy my .po, but it doesn't work, in app/Locale , it works perfectly, how i can put that in my plugin/ directory Thank's a lot -- Our newest site for the communi

Re: Problem initialising i18n table using UUID in cake console

2011-10-24 Thread André Fischer
ndré Fischer wrote: > > > > > > > > > I created a database that uses UUIDs exclusively for all id fields. > > When I use cake i18n to initialise the table in the database to make > > various models translatable, it creates an id fiend as INT instead of >

Re: Problem initialising i18n table using UUID in cake console

2011-10-24 Thread euromark
my guess: cake doesnt support uuids for those things on "initialize" but you could probably change the field manually to uuid afterwards then it should work again On 24 Okt., 09:59, André Fischer wrote: > I created a database that uses UUIDs exclusively for all id fields. > When

Problem initialising i18n table using UUID in cake console

2011-10-24 Thread André Fischer
I created a database that uses UUIDs exclusively for all id fields. When I use cake i18n to initialise the table in the database to make various models translatable, it creates an id fiend as INT instead of CHAR(36), which breaks the translation behaviour. Am I doing something wrong, or is this a

Problems with HABTM Pagnitaion and i18n

2011-10-06 Thread Jörg
Hello all, i need help. I had a brand model with $hasAndBelongsToMany = array('Category'); Category is a model with the translation on the field 'name' Now depending on a category filter in a searchbox I want to identify which brands are in the search area and which other catgeories are assigned

Re: i18n script ans default.po file

2011-09-14 Thread Sean Dong
avairet: *Have you solved the problem? I am having the same thing here. The translation is not show up. Only the original string...* -- 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 oth

Re: implementing i18n in a non cakephp app

2011-09-02 Thread Miles J
__() wont work in a non-cake app, it's cake functionality. __() is just a custom function cake wrote that extends their i18n class. The i18n class deals with the loading of .po files and the extraction of message strings using gettext (I believe). On Aug 30, 1:09 pm, dole doug wrote: >

implementing i18n in a non cakephp app

2011-09-02 Thread dole doug
hi there I have an old webapp on which i have to add i18n support. At this moment I've added a __() around my messages which i need to be translated and changed in my interface. I don't have great experience with cake or programming in OO but I'll like to know the logic by wh

i18n and continuous integration

2011-07-26 Thread wiseguysonly
: + rm -rf junit.xml + cakerunner --cakephp-app-path=app --log-junit=junit.xml -R app/tests PHP Fatal error: Call to undefined method I18n::translate() in /var/ lib/hudson/jobs/Zumo CMS/workspace/cake/basics.php on line 668 PHP Stack trace: PHP 1. {main}() /usr/bin/cakerunner:0 PHP 2

Missing i18n string in PHP 5.2

2011-07-22 Thread Simon Males
Hi, I have a new i18n string: time_zone_abbreviation. Debugging I18n::getInstance() show's all my strings but not the latest edition. It feels like some level caching I am missing. Though I have restarted Apache and cleared the cache many a time. The error appears on a CentOS 5 server i

Re: i18n

2011-07-06 Thread Johan
You can use a third-party tool such as POEdit to scan your sources for i18n strings. You can define which files to scan and what functions to search. Cheers, - Johan On Tue, Jul 5, 2011 at 5:57 PM, Carlos Eduardo Sotelo Pinto < carlos.sotelo.pi...@gmail.com> wrote: > Hi people >

i18n

2011-07-05 Thread Carlos Eduardo Sotelo Pinto
Hi people When I use cakephp i18n, I must wite the sentences as Form->input('name', array(__('Un nombre', true))); ?> Then, I must do the next lines for extract the tranlate words $ cake i18n e Now, I am working with a template engine, dwoo, the main idea is avoid

Re: Extract .po file from my app with i18n extract console command

2011-07-02 Thread Glauco
Thank you Euromark, It's working now. But now I have other trouble... I wanna use the Translate behavior in a model... Already create the i18n table using the console. I added the below code at model: public $actAs = array( 'Translate' => arr

Re: Extract .po file from my app with i18n extract console command

2011-07-02 Thread euromark
you could have it way easier on windows http://www.dereuromark.de/2010/10/03/console-for-cakephp/ then you only need to navigate to your app folder and enter "cake i18n extract" etc thats all! no path stuff On 1 Jul., 19:57, Glauco wrote: > Hi there, I am trying extract a .po

Extract .po file from my app with i18n extract console command

2011-07-02 Thread Glauco
Hi there, I am trying extract a .po file from my application using the command i18n extract. When I type the command, I get a message like this (but the extracting dont start =/): Welcome to CakePHP v.1.3.8 Console __ App: app Path: c:\wamp\www

Re: App_controller function to obtain default.pot file ( i18n extract )

2011-06-18 Thread krisspnet
Thank you very much ;) -- View this message in context: http://cakephp.1045679.n5.nabble.com/App-controller-function-to-obtain-default-pot-file-i18n-extract-tp4495820p4502131.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video

Re: App_controller function to obtain default.pot file ( i18n extract )

2011-06-18 Thread krisspnet
Thank you very much. I will try it ! -- View this message in context: http://cakephp.1045679.n5.nabble.com/App-controller-function-to-obtain-default-pot-file-i18n-extract-tp4495820p4502127.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community

Re: App_controller function to obtain default.pot file ( i18n extract )

2011-06-18 Thread Ryan Schmidt
On Jun 18, 2011, at 12:14, krisspnet wrote: > Well, we have different persons in charge of the translations. > However, those persons don't know what is a terminal actually. > Because we often add new functions and views in our website, we all also add > new _('to be translated',true) tags in the

Re: App_controller function to obtain default.pot file ( i18n extract )

2011-06-18 Thread Miles J
ated > without asking us every time. > In this context, they feel free to translate the last version of the > website, when they want. > > I asked this question because we use > thehttp://book.cakephp.org/view/647/An-Automated-tool-for-creating-ACOs > build_acl  function, which

Re: App_controller function to obtain default.pot file ( i18n extract )

2011-06-18 Thread krisspnet
book.cakephp.org/view/647/An-Automated-tool-for-creating-ACOs build_acl function, which was first a shell command. Might it be possible to run the i18n extract command in a background terminal? -- View this message in context: http://cakephp.1045679.n5.nabble.com/App-controller-function-to-obt

Re: App_controller function to obtain default.pot file ( i18n extract )

2011-06-17 Thread Miles J
ork and I find it really amazing for > those who have few knowledge of website construction. > > My colleagues and I are working on a project that has to be shown each month > into different languages. > Therefore, we have started to build a multilingual interface with cake i18n

App_controller function to obtain default.pot file ( i18n extract )

2011-06-17 Thread krisspnet
interface with cake i18n extract shell command. Thanks to this page : http://cakephp.1045679.n5.nabble.com/create-po-file-from-database-table-multilingual-l10n-I18n-td1328082.html create-po-file-from-database-table-multilingual-l10n-I18n , we have build a simple interface to facilitate the life

URL-based language switching for i18n and l10n

2011-04-23 Thread acl68
Hello, I try to setup a multilanguge site with CakePHP and followed this tutorial. http://nuts-and-bolts-of-cakephp.com/2008/11/28/cakephp-url-based-language- switching-for-i18n-and-l10n-internationalization-and-localization/ I use Cake 1.3 and it doesn't work. I guess it might crash

Re: i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread DigitalDude
Hey, yeah I did exactly this, the language code will set the default language of the app to the given code. So when poniting Google to www.domain.com/it it should find the whole app in the italian locale and index its content correctly. Now I'll have to wait until the Robot comes back around to i

Re: i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread Ryan Schmidt
On Mar 22, 2011, at 09:02, DigitalDude wrote: > when entering the url www.domain.com/it, the default language and all > other language depending variables are set to italian. when entering > www.domain.com/es you'll have the same behaviour for spanish. Maybe > that will help the Google Bot indexi

Re: i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread DigitalDude
Hey, ok for now I did the following: when entering the url www.domain.com/it, the default language and all other language depending variables are set to italian. when entering www.domain.com/es you'll have the same behaviour for spanish. Maybe that will help the Google Bot indexing all other lan

Re: i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread Ryan Schmidt
On Mar 22, 2011, at 08:16, DigitalDude wrote: > half an hour ago I implemented a redirect to a link with the language > code based on the session language when no language code is given by > the url. So instead of displaying the view for www.domain.com, I check > in the controller if a language is

Re: i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread DigitalDude
Hey Ryan, half an hour ago I implemented a redirect to a link with the language code based on the session language when no language code is given by the url. So instead of displaying the view for www.domain.com, I check in the controller if a language is given by a passed-argument and if not, I r

Re: i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread Ryan Schmidt
On Mar 22, 2011, at 07:49, AD7six wrote: > On Mar 22, 1:45 pm, DigitalDude wrote: >> The app runs with i18n for 4 different languages. I set the language >> per Session. First, the session language is determined by checking the >> browsers language. if no matching language

Re: i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread DigitalDude
Hey, yeah I know the articles around i18n and the internal structure for this is correct in my app i think, I can't find anything on how to setup an application for correct indexing when having multiple languages. But maybe you know something I don't, so maybe you could give me a Ta

i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread DigitalDude
Hey, I ran into a really bad problem today with one of my multilingual apps and I have absolutely NO clue how to solve this! First, a slight overview of how my app is structured: The app runs with i18n for 4 different languages. I set the language per Session. First, the session language is

Re: i18n and Google Indexing Problem - Google only indexes default language

2011-03-22 Thread AD7six
On Mar 22, 1:45 pm, DigitalDude wrote: > Hey, > > I ran into a really bad problem today with one of my multilingual apps > and I have absolutely NO clue how to solve this! > > First, a slight overview of how my app is structured: > > The app runs with i18n for 4 differ

Re: Shell/CronJob - How to set locale for gettext() and i18n?

2011-02-19 Thread DigitalDude
and this shell/cronjob sends > >> weekly status reports about a users work-environment. In these emails, > >> there is text as gettext and sometimes even i18n models with specific > >> language-depending content. > > >> My problem is: How can I set a Session Langu

Re: Shell/CronJob - How to set locale for gettext() and i18n?

2011-02-17 Thread Ryan Schmidt
job sends >> weekly status reports about a users work-environment. In these emails, >> there is text as gettext and sometimes even i18n models with specific >> language-depending content. >> >> My problem is: How can I set a Session Language or a locale for the >>

Re: Shell/CronJob - How to set locale for gettext() and i18n?

2011-02-17 Thread John Andersen
I have a shell which is run as a cronjob, and this shell/cronjob sends > weekly status reports about a users work-environment. In these emails, > there is text as gettext and sometimes even i18n models with specific > language-depending content. > > My problem is: How can I set

Shell/CronJob - How to set locale for gettext() and i18n?

2011-02-17 Thread DigitalDude
Hey, I ran into a problem the other day, and I don't know what to do right now. I have a shell which is run as a cronjob, and this shell/cronjob sends weekly status reports about a users work-environment. In these emails, there is text as gettext and sometimes even i18n models with spe

CakePHP + i18n + MongoDB

2011-01-23 Thread Salines
CakePHP + i18n + MongoDB I want to hear your experience. Example code? How to set up? Thanks -- 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

Re: DB field i18n - where I wrong?

2010-11-21 Thread Amit Badkas
Support.id', >'Support.name' >)); > >return $this->find('all', $options); >} > } > ?> > > I've created via shell the i18n table and filled with: > 1

Re: i18n slug

2010-11-20 Thread Salines
I found a solution ;) 1. extra condition function view($slug = null) { if (!$slug) { $this->Session->setFlash(__('Invalid category', true)); $this->redirect(array('action' => 'index')); } $this->Categ

Re: i18n slug

2010-11-20 Thread Tilen Majerle
yes, u want to create a fast script, but findBySlug will need to check theree too...so its the same shit how u use :D Pozdrav i tebi :D -- Tilen Majerle http://majerle.eu 2010/11/20 Salines > Yes, I had the same idea, but I'm looking for a way without extra > queries, for example, using condi

Re: i18n slug

2010-11-20 Thread Salines
Yes, I had the same idea, but I'm looking for a way without extra queries, for example, using condition for findbyslug? Is such that if possible .. Pozdrav u sloveniju :) On Nov 20, 12:59 pm, Tilen Majerle wrote: > i think...you will need to check first for slug, typed in categories_i18ns > and

Re: i18n slug

2010-11-20 Thread Tilen Majerle
i think...you will need to check first for slug, typed in categories_i18ns and then, if exists this slug in some language, then get his foreign_key (id for post) and with this id get post from posts table (your posts table) i hope u understand what i mean -- Tilen Majerle http://majerle.eu 2010

i18n slug

2010-11-20 Thread Salines
Hello bakers, I developing a web page that uses three languages, one primary (croatian) and two secondary(english & german). In my db tables (categories) I have a field 'slug' with the corresponding data . Slug be also translated from croatian to english & german (deutch) and stored in i18ns table

DB field i18n - where I wrong?

2010-11-18 Thread Mariano C.
)); $options = array ( 'fields' => array( 'Support.id', 'Support.name' )); return $this->find('all', $

  1   2   3   4   5   >