[pLog-general] Different New User Creation Templates.

Jon Daley plogworld at jon.limedaley.com
Wed Sep 14 13:11:10 GMT 2005


 	Someone had a question on the forums the other day, and I register 
a new/english blog, but got some other language as the default posts, so I 
think Zaid is probably correct in his guess about the "summary" object.

On Wed, 14 Sep 2005, Zaid B. Amireh wrote:
> Well, it appears that the strings 'register_default_article_text' etc. get 
> translated according to the locale of the summary page, this can be found in 
> the file "class/summary/action/dofinishregister.class.php" in the function 
> "createBlog($userId)"
>
> $articleText  = $this->_locale->tr("register_default_article_text" );
>
> if I understand this correctly, $this is a 'summary' object and not a 'user' 
> object so the translation is not dependant on the selected locale of the 
> user, its dependant on the locale of the summary page which is kinda 
> incorrect if you ask me.
>
> please note that I'm not a developer, I'm just a lazy admin :D
>
> cheers
>
> Zaid Amireh
>
>
> Oscar Renalias wrote:
>
>> It's already done like that, the category name and the post text are
>> localized according to the selection of the user during the
>> registration process.
>> 
>> Oscar
>> 
>> On 9/14/05, Zaid B. Amireh <zamireh at albawaba.com> wrote:
>> 
>>> Hello All,
>>> 
>>> We are currently implementing pLog supporting two locales, english and
>>> arabic.
>>> 
>>> We need to know how we can change the creation template (or 'skeleton'
>>> would be more appropriate) of the user according to his locale choice.
>>> 
>>> For example, if the user chooses the english locale when registering he
>>> would get a 'General' category and an english 'Welcome' post, but if the
>>> user chooses the arabic locale it would be nice to have the first post
>>> in arabic and so the category.
>>> 
>>> I hope this was clear.
>>> 
>>> with regards.
>>> 
>>> Zaid Amireh
>>> _______________________________________________
>>> pLog-general mailing list
>>> pLog-general at devel.plogworld.net
>>> http://devel.plogworld.net/mailman/listinfo/plog-general
>>>
>>> 
>> _______________________________________________
>> pLog-general mailing list
>> pLog-general at devel.plogworld.net
>> http://devel.plogworld.net/mailman/listinfo/plog-general
>> 
>
> _______________________________________________
> pLog-general mailing list
> pLog-general at devel.plogworld.net
> http://devel.plogworld.net/mailman/listinfo/plog-general
>

**************************************
Jon Daley
http://jon.limedaley.com/plog/

As computer scientists, we don't like to think that we're fools.
We like to think we are better than that.
-- Professor Tygar



More information about the pLog-general mailing list