To my understanding, yes, it will cause problems. There has to be
consistency or things will eventually break. Whether they should be
all translatable, or none translatable, I don't know, though. I would
tend to the latter, as translations change.

Rick

On Aug 31, 5:05 am, Guido Erlinger <[email protected]> wrote:
> Hello
>
> I am not shure if I should ask this question in this group?
>
> The methode UserGroup::create() is sometimes called with _t() and
> sometimes without. I found the following usages:
>
> ==> with _t():
>
> > $group = UserGroup::create( array( 'name' => _t('admin') ) );
> > $group = UserGroup::create( array( 'name' => _t('anonymous') ) );
> > $admin_group = UserGroup::create( array( 'name' => _t('admin') ) );
> > $authenticated_group = UserGroup::create( array( 'name' => 
> > _t('authenticated') ) );
> > $anonymous_group = UserGroup::create( array( 'name' => _t('anonymous') ) );
>
> ==> without _t():
>
> > $admin_group = UserGroup::create( array( 'name' => 'admin' ) );
> > $group = UserGroup::create( array( 'name' => 'admin' ) );
>
> Why is it that different? ... the same with UserGroup::get_by_name()
>
> ==> with _t():
>
> > $authenticated_group = UserGroup::get_by_name( _t('authenticated') );
> > $admin_group = UserGroup::get_by_name( _t('admin') );
> > $anonymous_group = UserGroup::get_by_name( _t('anonymous') );
>
> ==> without _t():
>
> > $admin_group = UserGroup::get_by_name( 'admin' );
>
> Doesn't this lead to an problem with localization/translation of
> Habari. If Habari is installed with entlish language, will the
> groups be found, if the language is switched later?
>
> Should'nt there be a difference between the group id and the group
> name ... the id would be language independent and the name could be
> localizable.
>
> I already mentioned a similar problem with ACL::create_token in
> habari-dev group.
>
> regards,
> guido
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to