I don't really understand the concept of T. in a Wiki-context!?
How can I translate Wiki Pages with T-Function?

My approach was to provide a link or drop down box for the user and to 
offer separate wiki pages (edited in arabic or english language) like 
@////ar_page1 and @////en_page1 or @////de_page1



Am Montag, 4. Januar 2016 21:32:36 UTC+1 schrieb Richard:
>
> About forcing translation :
>
> You will need to manually control translation with T.accepted_language I 
> guessm, Doc here :
>
>
> http://web2py.com/books/default/chapter/29/04/the-core?search=T.accepted_language
>
>
> if T.accepted_language.split('-')[0] == 'en':
>     # english UI stuff
> elif T.accepted_language.split('-')[0] == 'ar':
>     # arabic UI stuff
> etc.
>
> Richard
>
> On Mon, Jan 4, 2016 at 5:52 AM, Jörg Schneider <joerg.j...@gmail.com 
> <javascript:>> wrote:
>
>> At first I want to offer my help to translate the online book to German 
>> language (in the "books"-menu there is a translation of the Preface-Chapter 
>> of the 4th edition).
>>
>> Second one is a newbie-question (I'm not a programmer so please be 
>> patient with me and provide me with the right reading matter):
>>
>> I built a website with wiki pages (with help of the awesome online book). 
>> Because this website is meant to support refugees from Syria and from Iran 
>> we want to add extra pages with Arabic language and Farsi.
>>
>> A lot of the refugees don't use only there smartphones with their native 
>> language but also computers with german language settings. So I think it 
>> would be a good choice to add manual language choice for "session".
>>
>> Can anyone help with me with hints about how to use the built in wiki 
>> with different translations?
>>
>> Thnx!
>>
>> -- 
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web2py+un...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to