[symfony-users] question about i18n

2009-05-04 Thread Jan De Coster
Hi, 

 

Recently they dicided to put the app to i18n and now i'm facing some
problems 

I have log files (masses) stuffed in a database like 'Document 1234 placed
in procedure'  

 

Anyone knows a way how i can translate this using i18n ? 

 

Kind regards, 

Jan De Coster 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Customize created_at field in Propel

2009-05-04 Thread Andrei Dziahel
Hi.

AFAIK, no - created_at and updated_at behavior is hardcoded, as far I can
remember.

2009/5/1 HiDDeN sombrasdepa...@gmail.com


 Maybe it is not possible?

 On 30 abr, 21:31, HiDDeN sombrasdepa...@gmail.com wrote:
  How can I customize the name of the created_at field?
 
  I mean, I'd like to have a field named, for example, created_date,
  that has the same behavior as the default created_at.
 
  How could accomplish that?
 
  Thanks!
 



-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Customize created_at field in Propel

2009-05-04 Thread David Ashwood
Not much help to your project but you can do it with the Timestampable 
behaviour in Doctrine.

 

BlogPost:

  actAs:

# ...

Timestampable:

  created:

name: created_date

type: timestamp

 

 

From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On 
Behalf Of Andrei Dziahel
Sent: 04 May 2009 12:47
To: symfony-users@googlegroups.com
Subject: [symfony-users] Re: Customize created_at field in Propel

 

Hi.

AFAIK, no - created_at and updated_at behavior is hardcoded, as far I can 
remember.

2009/5/1 HiDDeN sombrasdepa...@gmail.com


Maybe it is not possible?


On 30 abr, 21:31, HiDDeN sombrasdepa...@gmail.com wrote:
 How can I customize the name of the created_at field?

 I mean, I'd like to have a field named, for example, created_date,
 that has the same behavior as the default created_at.

 How could accomplish that?

 Thanks!




-- 
With the best regards, Andy.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Customize created_at field in Propel

2009-05-04 Thread Andrei Dziahel
Hi.

Haha, I've already switched to Doctrine some months ago :)

2009/5/4 David Ashwood da...@inspiredthinking.co.uk

  Not much help to your project but you can do it with the Timestampable
 behaviour in Doctrine.



 BlogPost:

   actAs:

 # ...

 Timestampable:

   created:

 name: created_date

 type: timestamp





 *From:* symfony-users@googlegroups.com [mailto:
 symfony-us...@googlegroups.com] *On Behalf Of *Andrei Dziahel
 *Sent:* 04 May 2009 12:47
 *To:* symfony-users@googlegroups.com
 *Subject:* [symfony-users] Re: Customize created_at field in Propel



 Hi.

 AFAIK, no - created_at and updated_at behavior is hardcoded, as far I can
 remember.

 2009/5/1 HiDDeN sombrasdepa...@gmail.com


 Maybe it is not possible?


 On 30 abr, 21:31, HiDDeN sombrasdepa...@gmail.com wrote:
  How can I customize the name of the created_at field?
 
  I mean, I'd like to have a field named, for example, created_date,
  that has the same behavior as the default created_at.
 
  How could accomplish that?
 
  Thanks!




 --
 With the best regards, Andy.


 



-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: symfony 1.2 with Doctrine 1.1?

2009-05-04 Thread CaMason

To confirm...

I tried to set up 1.1 with sf 1.2 last week (both 1.2.6 and trunk),
and neither worked properly. Jonathan has suggested sticking with 1.0
for the time being.

- Craig

On May 3, 10:16 pm, Jonathan Wage jonw...@gmail.com wrote:
 It is not guaranteed that Doctrine 1.1 will work with the symfony 1.2
 sfDoctrinePlugin. The issue is that things change in major versions of
 Doctrine(i.e. Doctrine 1.0 to 1.1) that break things in sfDoctrinePlugin.

 I know of a few confirmed issues and they have been fixed in the symfony 1.3
 branch.

 - Jon

 On Sun, May 3, 2009 at 5:55 AM, David Ashwood
 da...@inspiredthinking.co.ukwrote:





  The main thing missing is the DB Web Debug bar when using Doctrine 1.1

  -Original Message-
  From: symfony-users@googlegroups.com [mailto:
  symfony-us...@googlegroups.com]
  On Behalf Of Keith
  Sent: 03 May 2009 04:56
  To: symfony users
  Subject: [symfony-users] Re: symfony 1.2 with Doctrine 1.1?

  It works. To use doctrine 1.1 is pretty simple. just replace the
  contents of
  symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\
  with the contents of doctrine 1.1

  On Apr 24, 4:57 am, Matthias N. matthias.nothh...@googlemail.com
  wrote:
   Hi,

   has anyone experience with using sf 1.2 and Doctrine 1.1 ?

   Does that combination work or are there incompatibilies one can not
   work around?

   I would like to use Doctrine 1.1 for the improved migration features.

   regards,
   Matthias

 --
 Jonathan H. Wage
 Open Source Software Developer  Evangelist
 sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: symfony + doctrine + MS SQL Server

2009-05-04 Thread pcummins

Todd,

Can you post an example of the PDO/dblib DSN you are using in
database.yml?

Thanks!

-pat

On Mar 18, 6:17 pm, Todd Mcneill todd.mcne...@pmigroup.com wrote:
 Actually, I was able to resolve the issue for pdo_dblib, but not for ODBC.  
 There are two issues, both with Doctrine, not Symfony.  One is already fixed 
 in the latest Doctrine code base, but depending on how you deployed Doctrine 
 and Symfony, the fix may not be there.  There is a TRAC ticket for this fix:

 http://trac.symfony-project.org/ticket/5853

 My additional fix was to add the data type translation into the 
 doctrine/Doctrine/DataDict/Mssql.php file.  Here is my diff:

 # diff Mssql.php Mssql.php.orig
 149,151d148
              case 'bigint':
                  $type[0] = 'integer';
              break;

 The length (8 bytes) of the bigint data type is captured appropriately by the 
 Doctrine tools.

 Hope this helps.

 Todd

 -Original Message-
 From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] 
 On Behalf Of umberleigh
 Sent: Wednesday, March 18, 2009 9:41 AM
 To: symfony users
 Subject: [symfony-users] Re: symfony + doctrine + MS SQL Server

 Did you find a fix/workaround for this? I've run into the same problem

 On Mar 10, 4:32 pm, Todd McNeill todd.mcne...@pmigroup.com wrote:
  Hi -

  I'm new to Symfony and I have a small project that I wanted to start,
  but I'm having trouble building the schema using Doctrine/PDO/SQL
  Server.  I'm running Symfony 1.2.4 on RHEL 5 with Apache 2.2.3.  I'm
  using FreeTDS to communicate to my SQL Server, and I'm successfully
  connecting to the database both natively via FreeTDS and using ODBC
  (unixODBC).  A small database has already been built with a few tables
  containing test data and referential integrity.  I'm attempting to
  build the schema using the following command:

  symfony doctrine:build-schema

  While using the dblib DSN in my config/databases.yml file, I get the
  following error:

  [sfException]
  unknown database attribute type: bigint

  With the ODBC DSN, I get the following error:

  [sfException]
  SQLSTATE[24000]: Invalid cursor state: 0 [unixODBC][Driver Manager]
  Invalid cursor state (SQLFetchScroll[0] at /var/tmp/PDO_ODBC/
  odbc_stmt.c:372)

  Any insight on how I should proceed?

  Thanks,
  Todd

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Customize created_at field in Propel

2009-05-04 Thread nchambrier

Give your field the name you want, just define its phpName to be
CreatedAt or UpdatedAt and I think it should work ;)

On 4 mai, 14:03, Andrei Dziahel trickster...@gmail.com wrote:
 Hi.

 Haha, I've already switched to Doctrine some months ago :)

 2009/5/4 David Ashwood da...@inspiredthinking.co.uk



   Not much help to your project but you can do it with the Timestampable
  behaviour in Doctrine.

  BlogPost:

    actAs:

  # ...

      Timestampable:

        created:

          name: created_date

          type: timestamp

  *From:* symfony-users@googlegroups.com [mailto:
  symfony-us...@googlegroups.com] *On Behalf Of *Andrei Dziahel
  *Sent:* 04 May 2009 12:47
  *To:* symfony-users@googlegroups.com
  *Subject:* [symfony-users] Re: Customize created_at field in Propel

  Hi.

  AFAIK, no - created_at and updated_at behavior is hardcoded, as far I can
  remember.

  2009/5/1 HiDDeN sombrasdepa...@gmail.com

  Maybe it is not possible?

  On 30 abr, 21:31, HiDDeN sombrasdepa...@gmail.com wrote:
   How can I customize the name of the created_at field?

   I mean, I'd like to have a field named, for example, created_date,
   that has the same behavior as the default created_at.

   How could accomplish that?

   Thanks!

  --
  With the best regards, Andy.

 --
 With the best regards, Andy.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] sfBBCodeParserPlugin - modify it or install normal BBCodeParser

2009-05-04 Thread dziobacz

Could somebody help me modify sfBBCodeParserPlugin
OR
tell me where I should put folder 'HTML' with a real BBCodeParser and
what should I do if I don't want write each time: require_once 'HTML/
BBCodeParser.php';
BECAUSE:
sfBBCodeParserPlugin have strange standards.


http://en.wikipedia.org/wiki/BBCode
In real BBCode we have:
[url]...[/url] or [url=.]Example[/url]

http://www.symfony-project.org/plugins/sfBBCodeParserPlugin
In sfBBCodeParserPlugin we have:
[url href=..]Example[/url]   !!

THIS IS HORRIBLE !!!

I use TinyMCE: http://tinymce.moxiecode.com/ with option bbcode on, it
converts url to real BBCode:
[url=http://www.onet.pl]onet[/url]
but it isn't correct for sfBBCodeParserPlugin - it can't convert it to
link - it DELETES IT.

So I had to use real BBCodeParser. I put in \sf_sandbox\web folder
'HTML' with files real BBCode and in action.class.php one of my module
I have at the beginning:
require_once 'HTML/BBCodeParser.php';

but it isn't comfortable, I must each time when I want use
BBCodeParser write:
require_once 'HTML/BBCodeParser.php';

Where should I put folder 'HTML' with BBCodeParser and what I should
do if I don't want write each time:
require_once 'HTML/BBCodeParser.php';
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony and JS - prototype or jquery?

2009-05-04 Thread Eno

On Sun, 3 May 2009, Sid Ferreira wrote:

 IMHO Prototype is way better.
 I've started with sf 1.0 and many tasks I feel much more simple with
 prototype.
 
 For example: I need 5 minutes to make a select box update a partial, and
 with jquery so far I failed.

Ive used Prototype but jQuery is nicer.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Set filter default value

2009-05-04 Thread Tomasz Ignatiuk

Do you know how to set default value for filter in admin generator? I
used setDefault but it doesn't work. I want to set default values for
date filter widget.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Symfony with Comet

2009-05-04 Thread Calvin Jeong

Hi all,

Has anybody used Comet technology [1] with Symfony? It needs to run a  
loop with sleep and flush the contents regularly.

Thanks in advance

Calvin

[1]: http://en.wikipedia.org/wiki/Comet_(programming)
 : http://ajaxpatterns.org/HTTP_Streaming

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---