Friday, February 3, 2012

Internationalizing Your Pandorabot's Wikipedia Query

If you want to allow non-English speaking Second Life residents to trigger a Pandorabot Wikipedia query in that person's native language then use the following settings in the Configuration notecard of your Pandorabot.

In order to detect German (Deutsch)  residents input and also to output Deutsch answers from your Pandorabot, use these settings:
LANG_CODE = de
LANG_NAME = Deutsch
WIKIPEDIA_TRIGGERS = was ist ein ,?, was sind die ,?, was ist ,?, was sind ,?, wer sind ,?, wer ist ,?, wo ist ,?, wo sind ,?, what is ,?, what's ,?, what're ,?, what is a ,?, what is an ,?, what is the ,?, what are the ,?, what's a ,?, what's an ,?, who is ,?, who are ,?, who're ,?, who's ,?,,?
To detect French (Français) residents input and output Français answers from your Pandorabot, use these settings:
LANG_CODE = fr
LANG_NAME = Français
WIKIPEDIA_TRIGGERS = quelle est la ,?, qui est le ,?, ce sont ,?, quelles sont les ,?, ce qui est une ,?, qu'est-ce qu'un ,?, quels sont les ,?, ce qui est ,?, qui est ,?, qui sont ,?, où est ,?, what is ,?,what's ,?,what're ,?,what is a ,?,what is an ,?,what is the ,?,what are the ,?,what's a ,?,what's an ,?,who is,?,who are,?,who're,?,who's,?,,?
 To detect Dutch (Nederlands) residents input and output Nederlands answers from your Pandorabot, use these settings:
LANG_CODE = nl
LANG_NAME = Nederlands
WIKIPEDIA_TRIGGERS = wat is een ,?, wat zijn de ,?, wat is de ,?, wat is ,?, die is ,?, die ,?, what is ,?, what's ,?, what're ,?, what is a ,?, what is an ,?, what is the ,?, what are the ,?, what's a ,?, what's an ,?, who is ,?, who are ,?, who're ,?, who's ,?,,?

To detect Italian (Italiano) residents input and output Italiano answers from your Pandorabot, use these settings:
LANG_CODE = it
LANG_NAME = Italiano
WIKIPEDIA_TRIGGERS = cosa è un ,?, ciò che è uno ,?, qual è il ,?, cosa è ,?, chi è ,?, che è il ,?, cosa sono ,?, chi sono ,?, quali sono le ,?, what is ,?, what's ,?, what're ,?, what is a ,?, what is an ,?, what is the ,?, what are the ,?, what's a ,?, what's an ,?, who is ,?, who are ,?, who're ,?, who's ,?,,?

To detect Portuguese (Português) residents input and output Português answers from your Pandorabot, use these settings:
LANG_CODE = pt
LANG_NAME = Português
WIKIPEDIA_TRIGGERS = o que é ,?, quem é ,?, o que é o ,?, quem é o ,?, quais são ,?, quem são ,?, o que é um ,?, o que é um ,?, o que são o ,?, what is ,?, what's ,?, what're ,?, what is a ,?, what is an ,?, what is the ,?, what are the ,?, what's a ,?, what's an ,?, who is ,?, who are ,?, who're ,?, who's ,?,,?
To detect Spanish (Español) residents input and output Español answers from your Pandorabot, use these settings:
LANG_CODE = es
LANG_NAME = Español
WIKIPEDIA_TRIGGERS = lo que es ,?, quien es ,?, ¿cuál es la ,?, quien es el ,?, ¿cuáles son ,?, que son ,?, ¿qué es un ,?, lo que es un ,?, ¿cuáles son las ,?, what is ,?, what's ,?, what're ,?, what is a ,?, what is an ,?, what is the ,?, what are the ,?, what's a ,?, what's an ,?, who is ,?, who are ,?, who're ,?, who's ,?,,?
To detect Polish (Polski) residents input and output Polski answers from your Pandorabot, use these settings:
LANG_CODE = pl
LANG_NAME = Polski
WIKIPEDIA_TRIGGERS = co jest ,?, , który jest ,?, co jest ,?, , który jest ,?, jakie sa ,?, którzy sa ,?, co jest ,?, co jest ,?, jakie sa ,?, what is ,?, what's ,?, what're ,?, what is a ,?, what is an ,?, what is the ,?, what are the ,?, what's a ,?, what's an ,?, who is ,?, who are ,?, who're ,?, who's ,?,,?
 And so ends the most awesome blog post ever.

No comments:

Post a Comment