Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion i18n of Django admin message "was changed successfully"
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
 
Sergiy Kuzmenko  
View profile  
 More options Oct 1 2011, 7:00 pm
From: Sergiy Kuzmenko <s.kuzme...@gmail.com>
Date: Sat, 1 Oct 2011 19:00:15 -0400
Local: Sat, Oct 1 2011 7:00 pm
Subject: Re: i18n of Django admin message "was changed successfully"

> According to gettext manual[1] one can use \u to uppercase the next char.
> > But I have no idea whether "\u%(name)s" works. If it does not, a small
> patch
> > for Django admin to fix this would be nice.
> > [1]
> http://www.gnu.org/software/gettext/manual/gettext.html#Interpolation-I

> That section of the documentation is Perl-specific AFAICT.

Yes I goofed here. Now that I think again about the question, there is
nothing gettext can do about uppercasing. It simply returns a translated
string and variable interpolation happens in Python code.

If the translation must start with the interpolated word the only way to
address it would be upper case the first character in Python code before
outputting the message.

SK


 
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.