rabhrabh wrote:
>
> now i just want to ask is that,
> in plone we r having a preferences template...
> if we use that template in my site then after user
logged in ,he have to
> make preferences that which language he like..then he
saves his
> preferences...
> so whenever he will open the site,he can see that in
that language in
> which he saves in preferences...
>
> if u have seen that preferences template,
> wen user saves his preferences,the changes appears only
for that
> particular page,not for all the site pages...
>
> do u know how to do it whole whole pages in the site?
> let me know some about preferences in plones for
internationalization...
>
hi,
the only solution seems to me, that you set the
language-cookie with
the language from the user's preferences everytime a user
logs in.
therefore you will have to customize/modify the
python-script at
portal_skins/plone_login/login_next
like this:
##########
#after this section:
if membership_tool.isAnonymousUser():
REQUEST.RESPONSE.expireCookie('__ac', path='/')
util.addPortalMessage(_(u'Login failed'))
return state.set(status='failure')
# add the following to use the language from user
preferences
else:
user=membership_tool.getAuthenticatedMember()
ulang= user.getProperty('language')
if ulang != '':
REQUEST.RESPONSE.setCookie('I18N_LANGUAGE', ulang,
path='/')
###########
I don't know if this works for your setup/versions, but
maybe it does..
--
View this message in context: h
ttp://www.nabble.com/how-to-do-internationalization-after-ge
nerating-.POT-files--tf4473172s6748.html#a12827921
Sent from the Internationalization mailing list archive at
Nabble.com.
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
_______________________________________________
Plone-i18n mailing list
Plone-i18n lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-i18n
a>
|