Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
sfDoctrineGuard translation
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Diogo Baeder  
View profile   Translate to Translated (View Original)
 More options Dec 22 2009, 3:04 pm
From: Diogo Baeder <diogobae...@gmail.com>
Date: Tue, 22 Dec 2009 18:04:50 -0200
Local: Tues, Dec 22 2009 3:04 pm
Subject: sfDoctrineGuard translation
Hi there,

I'm translating some strings that lacked in the original pt_BR XLIFF
file for Symfony 1.4.2-DEV. Even though, my translation for
sfDoctrineGuardPlugin is not working; None of them is being read.

How can I translating the plugin, so that the authentication screen and
messages stay in my language? (Brazillian Portuguese.)

Thanks!

--
Diogo Baeder - desenvolvedor web
http://diogobaeder.com.br


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
diogobaeder  
View profile  
 More options Dec 26 2009, 9:30 pm
From: diogobaeder <diogobae...@gmail.com>
Date: Sat, 26 Dec 2009 18:30:14 -0800 (PST)
Local: Sat, Dec 26 2009 9:30 pm
Subject: Re: sfDoctrineGuard translation
No solution for that? Anybody?

On 22 dez, 18:04, Diogo Baeder <diogobae...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Lohse  
View profile  
 More options Dec 27 2009, 5:44 am
From: Daniel Lohse <annismcken...@googlemail.com>
Date: Sun, 27 Dec 2009 11:44:38 +0100
Local: Sun, Dec 27 2009 5:44 am
Subject: Re: [symfony-users] Re: sfDoctrineGuard translation
You'll need to name the file sf_admin.pt_BR.xml

Cheers, Daniel

On Dec 27, 2009, at 3:30 AM, diogobaeder wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
diogobaeder  
View profile  
 More options Dec 27 2009, 8:57 am
From: diogobaeder <diogobae...@gmail.com>
Date: Sun, 27 Dec 2009 05:57:20 -0800 (PST)
Local: Sun, Dec 27 2009 8:57 am
Subject: Re: sfDoctrineGuard translation
Hi, Daniel,

I've already named the file like you said, and part of the admin is
translated. But the part that stays in the plugins (sfDoctrineGuard
and sfMediaBrowser) is not translated. It seems like the translation
file I created only works with translation for the core components.

Any other idea?

Thanks!

On 27 dez, 08:44, Daniel Lohse <annismcken...@googlemail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Lohse  
View profile  
 More options Dec 27 2009, 9:12 am
From: Daniel Lohse <annismcken...@googlemail.com>
Date: Sun, 27 Dec 2009 15:12:03 +0100
Local: Sun, Dec 27 2009 9:12 am
Subject: Re: [symfony-users] Re: sfDoctrineGuard translation
Could you elaborate on/rephrase your last message again, please?
I did not understand what stays where and does not get translated... :)

Daniel

On Dec 27, 2009, at 2:57 PM, diogobaeder wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
diogobaeder  
View profile  
 More options Dec 27 2009, 7:43 pm
From: diogobaeder <diogobae...@gmail.com>
Date: Sun, 27 Dec 2009 16:43:07 -0800 (PST)
Local: Sun, Dec 27 2009 7:43 pm
Subject: Re: sfDoctrineGuard translation
Daniel,

For example, in the signinSuccess.php template, at
sfDoctrineGuardPlugin, we have a "__('Forgot your password?')" call,
that should be translated if a translation is put in the
sf_admin.pt_BR.xml file. I've put a translation element there, but
it's not working. But for a translation for a gettext function call in
the Symfony core, for example a "__('Choose an action')" call (the
first <option> for the <select> at the bottom of the admin list
actions), it works.

So, if I have:

      <trans-unit>
        <source>Choose an action</source>
        <target>Selecione uma ação</target>
      </trans-unit>
      <trans-unit>
        <source>Forgot your password?</source>
        <target>Esqueceu sua senha?</target>
      </trans-unit>

The first translation is working, but the second is not. I realized
that the second is used in a plugin, so that's why I thought it could
be something with how the translations relate to plugins.

Any ideas?

Diogo

On 27 dez, 12:12, Daniel Lohse <annismcken...@googlemail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Lohse  
View profile  
 More options Dec 28 2009, 3:35 am
From: Daniel Lohse <annismcken...@googlemail.com>
Date: Mon, 28 Dec 2009 09:35:57 +0100
Local: Mon, Dec 28 2009 3:35 am
Subject: Re: [symfony-users] Re: sfDoctrineGuard translation
For your example it's pretty clear that symfony can't find the translations. And sure enough, you forgot to add the catalogue to the __() method call. Plugin or not, it doesn't matter.

In the signinSuccess.php change this:

        __('Forgot your password?')

to this:

        __('Forgot your password?', array(), 'sf_admin')

and it should work.

Cheers, Daniel

On Dec 28, 2009, at 1:43 AM, diogobaeder wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
diogobaeder  
View profile  
 More options Dec 28 2009, 9:46 pm
From: diogobaeder <diogobae...@gmail.com>
Date: Mon, 28 Dec 2009 18:46:15 -0800 (PST)
Local: Mon, Dec 28 2009 9:46 pm
Subject: Re: sfDoctrineGuard translation
Hi, Daniel,

Thanks for the help, it really worked for the __() function calls! :-)

Despite, I noticed that fields generated by widgets don't include this
function call, so I would have to declare localized labels for them,
too... wouldn't it be a better idea if these plugins were already
prepared for internationalization? I mean, loading the i18n helper at
the templates and form libs, so that the user could easily create
translation files for the plugin?

Diogo

On 28 dez, 06:35, Daniel Lohse <annismcken...@googlemail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Lohse  
View profile  
 More options Dec 28 2009, 9:51 pm
From: Daniel Lohse <annismcken...@googlemail.com>
Date: Tue, 29 Dec 2009 03:51:49 +0100
Local: Mon, Dec 28 2009 9:51 pm
Subject: Re: [symfony-users] Re: sfDoctrineGuard translation
I'm glad it worked! :)

You can set a different catalogue to use for a form in the form formatter class.

As far as the module code generation goes... hmm, you'd have to create your own module generation theme.

Cheers, Daniel

On Dec 29, 2009, at 3:46 AM, diogobaeder wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »