johnymarek / media-translate

Automatically exported from code.google.com/p/media-translate
0 stars 0 forks source link

youtube hl (youtubeRegion) for yt_categories.rss #41

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. correct the lr="zh-Hans" as lr="zh-TW"
2. add this script:
      if(lr != null){
        youtubeCategoriesURL+="?hl="+lr;
      }

What is the expected output? What do you see instead?
correct the categories with local language.

What version of the product are you using? On what operating system?
rss_ex_2.0.7_pre9

Please provide any additional information below.
Category search in video feeds
URL: http://code.google.com/intl/en/apis/youtube/2.0/reference.html

Original issue reported on code.google.com by weng.32...@gmail.com on 12 Mar 2011 at 5:48

GoogleCodeExporter commented 8 years ago
sorry, I am wrong:

Valid values for the lr parameter are ISO 639-1 two-letter language codes. You 
can also use the values zh-Hans for simplified Chinese and zh-Hant for 
traditional Chinese.

just need add:
      if(lr != null){
        youtubeCategoriesURL+="?hl="+lr;
      }

could get the categories with local language.

by the way, lr setting about taiwan should be:
if(youtubeRegion=="TW") lr="zh-Hant"; else

Original comment by weng.32...@gmail.com on 12 Mar 2011 at 6:36

GoogleCodeExporter commented 8 years ago
r530

Original comment by Serge.A.Timchenko@gmail.com on 14 Mar 2011 at 3:58