Re: [development] Creating recordset displays

2009-09-23 Thread la...@garfieldtech.com
There's also the "scaffolding" template module here, courtesy Jeff Eaton: http://cvs.drupal.org/viewvc.py/drupal/contributions/docs/developer/examples/scaffolding_example/ Stupid long CVS URLs... --Larry Garfield andrew morton wrote: I'd suggest looking at the Views Bulk Operation module: htt

Re: [development] Translating database fields

2009-09-23 Thread Gábor Hojtsy
On Wed, Sep 23, 2009 at 6:36 PM, mark burdett wrote: > On Wed, Sep 23, 2009 at 7:42 AM, Jennifer Hodgdon > wrote: >> There's a whole section in the Handbook on how to do this: >>   http://drupal.org/node/303984 > > This is the specific page I used recently, > http://drupal.org/node/304002 "Makin

Re: [development] Translating database fields

2009-09-23 Thread Earl Miles
Peter Droogmans wrote: You can do the opposite, define a tt function if the module doesn't exist, it keeps your code cleaner You need to do it this way: if (!module_exists('i18nstrings') && !function_exists('tt')) { function tt($string) { return $string; } } That way 2 modules trying

Re: [development] Translating database fields

2009-09-23 Thread Peter Droogmans
You can do the opposite, define a tt function if the module doesn't exist, it keeps your code cleaner Met vriendelijke groeten, Peter Droogmans Attiks Ketsstraat 94 2140 Borgerhout pe...@attiks.com 03-288 61 17 0497-44 44 77 -Original Message- From: mark burdett Sent: woensdag 23 septe

Re: [development] Translating database fields

2009-09-23 Thread mark burdett
On Wed, Sep 23, 2009 at 7:42 AM, Jennifer Hodgdon wrote: > There's a whole section in the Handbook on how to do this: > http://drupal.org/node/303984 This is the specific page I used recently, http://drupal.org/node/304002 "Making your custom data translatable" Littering your module with if (m

Re: [development] Translating database fields

2009-09-23 Thread Jennifer Hodgdon
There's a whole section in the Handbook on how to do this: http://drupal.org/node/303984 --Jennifer Jeremy Andrews wrote: Hello, I'm looking for advice on the proper way to resolve this issue: http://drupal.org/node/571742 Summary: The support module [1] defines four default states ("

Re: [development] Translating database fields

2009-09-23 Thread Gábor Hojtsy
Didn't you ask to follow up on the issue? :D On Wed, Sep 23, 2009 at 3:48 PM, Jeremy Andrews wrote: > So you're suggesting that currently the "correct" way to make text > stored in the database translatable is to use tt()? I don't know of a better way. We tried to get people to review approaches

Re: [development] Adding a co-maintainer

2009-09-23 Thread Stewart Robinson
That makes sense, I am already only a co-maintainer. The main guy must be the only person to get that option. Thanks 2009/9/23 Neil Hastings > If they already have an account, do to your module page, click on the "CVS > access" tab and add them to the list. > > Cheers, > Neil > > > On Wed, Sep

Re: [development] Creating recordset displays

2009-09-23 Thread andrew morton
I'd suggest looking at the Views Bulk Operation module: http://drupal.org/project/views_bulk_operations On Wed, Sep 23, 2009 at 8:12 AM, Raja Sekharan wrote: > Hi all, > > In many applications I create I find myself doing just one thing - > create CRUD interfaces in the admin panel. So far I have

Re: [development] Translating database fields

2009-09-23 Thread Jeremy Andrews
On Wed, 2009-09-23 at 15:17 +0200, Gábor Hojtsy wrote: > On Wed, Sep 23, 2009 at 3:10 PM, Ken Winters wrote: > > Hmm, tt() doesn't seem very developer friendly. > > > > If you're developing a module that is translatable, you can't realistically > > require i18n, and checking for the module / funct

Re: [development] Adding a co-maintainer

2009-09-23 Thread Neil Hastings
If they already have an account, do to your module page, click on the "CVS access" tab and add them to the list. Cheers, Neil On Wed, Sep 23, 2009 at 9:20 AM, Stewart Robinson wrote: > HI, > > I have google around and tried re-applying for a CVS account which it > doesn't let you do. I am trying

[development] Adding a co-maintainer

2009-09-23 Thread Stewart Robinson
HI, I have google around and tried re-applying for a CVS account which it doesn't let you do. I am trying to add someone as a co-maintainer who already has a CVS account. What do I have to do to add this person apart from saying it is ok to add him in a public issue? Thanks Stew

Re: [development] Translating database fields

2009-09-23 Thread Gábor Hojtsy
On Wed, Sep 23, 2009 at 3:10 PM, Ken Winters wrote: > Hmm, tt() doesn't seem very developer friendly. > > If you're developing a module that is translatable, you can't realistically > require i18n, and checking for the module / function in 100 places would be > unpleasant (assuming that it is norm

Re: [development] Translating database fields

2009-09-23 Thread Ken Winters
Hmm, tt() doesn't seem very developer friendly. If you're developing a module that is translatable, you can't realistically require i18n, and checking for the module / function in 100 places would be unpleasant (assuming that it is normally used the same way as t() in the code). Other tha

[development] Creating recordset displays

2009-09-23 Thread Raja Sekharan
Hi all, In many applications I create I find myself doing just one thing - create CRUD interfaces in the admin panel. So far I have been writing code to generate the list of items and everything. Is it possible to create a recordset form using any API in drupal? Here is what I want to do: I want

Re: [development] Translating database fields

2009-09-23 Thread Gábor Hojtsy
On Wed, Sep 23, 2009 at 3:23 AM, Jeremy Andrews wrote: > Hello, > > I'm looking for advice on the proper way to resolve this issue: >  http://drupal.org/node/571742 http://drupal.org/node/571742#comment-2073144 Gábor