liguista / sk-dvx

Automatically exported from code.google.com/p/sk-dvx
0 stars 0 forks source link

YouDescribe needs to store the language in which a description is recorded #103

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In order to make searching for and listing descriptions more convenient, DVX 
supports a mechanism to store the language in which a description is recorded.

To do this, DVX stores a language value for every clip. The clip upload API 
accepts a language parameter; according to the DVX documentation from 
10/16/2013, the API supports:

    Unspecified 0
    English     1
    Italian     2
    Japanese    3
    Mandarin    4
    French      5
    German      6
    Spanish     7

(Note that the upload API takes the string value, but the metadata API returns 
the numeric value as 'LanguageFk').

Currently, YouDescribe always sets the Language to 'English', and there is no 
mechanism to change it.

Several methods for determining the language of the description are/may be 
possible:

1/. If YouTube stores metadata indicating the language of the video itself, 
then assume that the description is in the language of the video.

2/. If it is possible to detect the language that the user's browser is 
configured for, assume that the description is being recorded in that language.

3/. Give the user a list of languages in the addCreate page, and allow them to 
select which language they are speaking.

4/. Allow the user to specify their default language, and save that in DVX. 
(Note that a user might still change what language they are recording in, if 
they speak more than one language, so 3/. would still be necessary)

All of this needs some investigation and development work.

(Note that this 'enhancement' does not deal with what to do with a 
description's language once stored; that is a separate enhancement).

(Note also that a language is stored for each _movie_ as well, when it is first 
created in the DVX database; this also is always set to 'English' currently by 
YouDescribe. It's not clear exactly how this would be used; perhaps the 
language from YouTube, if available, could be stored here, and that used as the 
default as described in 1/. above?).

Original issue reported on code.google.com by Owen.R.E...@gmail.com on 5 Mar 2014 at 6:35