Internationalization, any thought?

1 view
Skip to first unread message

Aziz

unread,
Apr 4, 2008, 10:58:20 AM4/4/08
to Lovd by Less
Do you guys have any plan for adding localization to Lovd?
If someone, like me!, wants to implement localization feature which
plugin do you recommend?
I've used globalize in a recent project and I have no objection, it
works but it's kinda bloated, not that much lessful!


Steven A Bristol

unread,
Apr 4, 2008, 3:58:17 PM4/4/08
to lovdb...@googlegroups.com

I like globalize when  localization is needed. Considering how it tends to bloat apps and make them a pain to code in (<%= "Hello".t %> is the sux), I don't think we'll be adding that to lovd.

steve

Gaius

unread,
Apr 4, 2008, 5:26:11 PM4/4/08
to Lovd by Less
I plan on working on a branch that will have a few helper methods that
will make i18n easier, but it won't automatically do all the
translations. That's just too much of a pain.

I'm thinking of things like
<%= possessive(@p, 'Blog') %>
instead of
<%= @p.f %>'s Blog

This method is useful regardless of i18n because it allows you to
output "Your" instead of "John's" where applicable. You could easily
modify the method to take i18n into account ("Blog de John" vs.
"John's Blog") without having to change the views.

-Gaius

On Apr 4, 3:58 pm, "Steven A Bristol" <st...@lesseverything.com>
wrote:

Steven A Bristol

unread,
Apr 4, 2008, 9:42:50 PM4/4/08
to lovdb...@googlegroups.com

On 4/4/08, Gaius <james....@gmail.com> wrote:

I plan on working on a branch that will have a few helper methods that
will make i18n easier, but it won't automatically do all the
translations.  That's just too much of a pain.

I'm thinking of things like
<%= possessive(@p, 'Blog') %>
instead of
<%= @p.f %>'s Blog

This method is useful regardless of i18n because it allows you to
output "Your" instead of "John's" where applicable.  You could easily
modify the method to take i18n into account ("Blog de John" vs.
"John's Blog") without having to change the views.

-Gaius


Sorry to say I am going to need a bit more convincing.

steve

Gaius

unread,
Apr 4, 2008, 10:46:29 PM4/4/08
to Lovd by Less
If you use Facebook, or better yet, if you are a Facebook developer
doing FBML views, you've already seen what I'm talking about. You
just ask for "pronoun" and it renders the person's name or "you" or
"You" or "Your" or "yourself" or ... as appropriate.

See http://wiki.developers.facebook.com/index.php/Fb:pronoun for more
info.

The advantage is that your view can do "John's Blog" if you're logged
in as Carmen, but "Your Blog" if you're logged in as John - and all
without conditionals in the views.

In this form, it has nothing to do with i18n. All I was saying was
that it would be easier to modify the helper function to do i18n than
to change all the views.

-Gaius

On Apr 4, 9:42 pm, "Steven A Bristol" <st...@lesseverything.com>
wrote:

JeremyLuebke

unread,
Apr 4, 2008, 11:51:51 PM4/4/08
to Lovd by Less
That does sound like it will over complicate things.

When I look at lovd I see a base. Something that has just enough
features and is general enough to be able to be molded into anything
you can think of without much re-write.

On Apr 4, 9:46 pm, Gaius <james.a.ro...@gmail.com> wrote:
> If you use Facebook, or better yet, if you are a Facebook developer
> doing FBML views, you've already seen what I'm talking about. You
> just ask for "pronoun" and it renders the person's name or "you" or
> "You" or "Your" or "yourself" or ... as appropriate.
>
> Seehttp://wiki.developers.facebook.com/index.php/Fb:pronounfor more

Steven A Bristol

unread,
Apr 5, 2008, 6:40:05 AM4/5/08
to lovdb...@googlegroups.com


On 4/4/08, JeremyLuebke <jeremy...@gmail.com> wrote:

That does sound like it will over complicate things.

When I look at lovd I see a base.

+1


On 4/4/08, Gaius <james....@gmail.com> wrote:

I plan on working on a branch that will have a few helper methods that
will make i18n easier, but it won't automatically do all the
translations.  That's just too much of a pain.

I'm thinking of things like
<%= possessive(@p, 'Blog') %>
instead of
<%= @p.f %>'s Blog

-1
This sounds like something that belongs in rails core,  not lovd.

Maybe you could make a plugin and see if you can get it into core?

steve


Gaius

unread,
Apr 5, 2008, 7:00:30 AM4/5/08
to Lovd by Less
Well, Rails core doesn't have any sense of a "User," much less a
"logged-in User," but I might have a different idea: submit it to the
acts_as_authenticated folks.

PS: I really appreciate how hard the Less team fights to keep the
spirit of Lovd pure yet is willing to accept the good ideas out
there. Bravi!

PPS: As an outsider, I think I'm beginning to get a feel for what that
spirit is, though I can't be quite sure. The home page states, "Built
with Ruby on Rails, Lovd is a social networking solution that has
everything you need to build your community," but I think of it more
as "Lovd lets you build a social site that does the simple things in
the simple ways." Lovd will never have "everything" for every user,
but it can certainly do the common 80%. I think it already does most
of that very well.

On Apr 5, 6:40 am, "Steven A Bristol" <st...@lesseverything.com>
wrote:
> On 4/4/08, JeremyLuebke <jeremylue...@gmail.com> wrote:
>
>
>
> > That does sound like it will over complicate things.
>
> > When I look at lovd I see a base.
>
> +1
>
Reply all
Reply to author
Forward
0 new messages