>There is a somewhat undocumented algorithm to figure out fallback<br>>locale (eg: if locale is ne_NP, look inside ne_NP, if not found, look<br>>inside ne, and so on)<br>I really like this idea.<br><br>>so how about naming convention for the audio files<br>
>langCode_htmlElementId.ogg ?<br>you mean something like:<br><br>en_content.ogg//suppose content is <div id="content" ...> <br>en_answer.ogg //suppose answer is <div id="answer" ...> <br>
?<br><br>felipe<br><br><div class="gmail_quote">2009/6/23 Bryan Berry <span dir="ltr"><<a href="mailto:bryan@olenepal.org">bryan@olenepal.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tue, 2009-06-23 at 14:57 +0530, Sayamindu Dasgupta wrote:<br>
> The above layout looks fine to me. I think it should be quite easy to<br>
> load <LANGCODE>/audiofile.ogg when you have the langcode.<br>
> There is a somewhat undocumented algorithm to figure out fallback<br>
> locale (eg: if locale is ne_NP, look inside ne_NP, if not found, look<br>
> inside ne, and so on)<br>
> Many years back, I wrote a hackish Python script to do it:<br>
> <a href="http://sayamindu.randomink.org/misc/get_language_names4.pytxt" target="_blank">http://sayamindu.randomink.org/misc/get_language_names4.pytxt</a><br>
<br>
</div>what do u think about my suggestion that we put LANGCODE in the file<br>
name? We have a huge archive of audio files at the OLE office and it is<br>
a major pain to differentiate b/w the Nepali audio files and the English<br>
audio files.<br>
<br>
<br>
so how about naming convention for the audio files<br>
langCode_htmlElementId.ogg ?<br>
<div class="im"><br>
<br>
> Producing the audio files is going to be another issue. Pootle won't<br>
> be useful here - if we want to use the existing "crowdsourcing"<br>
> approach, we might have to develop a custom webapp (or extend Pootle)<br>
> to take in and handle audio files.<br>
<br>
</div>I would really, really like to crowdsource audio. Short audio snippets<br>
are really essential to language learning. We have also found that our<br>
kids really like audio feedback during exercises.<br>
<div class="im"><br>
<br>
> Take a look at the javascript implementation of gettext:<br>
> <a href="http://jsgettext.berlios.de/doc/html/Gettext.html" target="_blank">http://jsgettext.berlios.de/doc/html/Gettext.html</a><br>
> Does it solve some of your problems ?<br>
<br>
</div>Will read through and the let u know<br>
<div class="im"><br>
> > 2) What are some pitfalls I haven’t thought of?<br>
> > 3) How could we ensure dynamically generated numbers are presented in<br>
> > the locale without making the programmer’s job too hard?<br>
> ><br>
><br>
> You mean native digits for numerals like ०१२३४... ?<br>
<br>
</div>Yes<br>
<div class="im"><br>
> glibc 2.2 and<br>
> above has a flag character called I - so if you do printf ("%Id",<br>
> ...), it will give you the locale specific digit. I'm not sure if this<br>
> is available anywhere else though (Python does not have it - though I<br>
> have some ideas about implementing it)<br>
<br>
</div>jquery.i18n utility seems to perform this service<br>
<a href="http://code.google.com/p/jquery-utils/wiki/I18N" target="_blank">http://code.google.com/p/jquery-utils/wiki/I18N</a><br>
<div class="im"><br>
> > And a request: Pls, pls direct me to great i18n resources and guides. If<br>
> > there is already an established standard for this, I will be happy to<br>
> > copy it.<br>
> ><br>
<br>
> The gettext manual is the best place to begin work:<br>
> <a href="http://www.gnu.org/software/gettext/manual/gettext.html" target="_blank">http://www.gnu.org/software/gettext/manual/gettext.html</a><br>
<br>
</div>tks, i will definitely read thru that<br>
<br>
tks for all your help Sayamindu in this and many previous instances !<br>
<div><div></div><div class="h5"><br>
--<br>
Bryan W. Berry<br>
Technology Director<br>
OLE Nepal, <a href="http://www.olenepal.org" target="_blank">http://www.olenepal.org</a><br>
<br>
</div></div></blockquote></div><br>