For VoiceToGoog ( http://store.nokia.com/content/195998
http://code.google.com/p/voicetogoog/ ) for the Nokia N9 (and Linux/MeeGo
etc)...  I'm trying to fix the following issue:

// By Ben_CN (NS-QA) (Nov 7th 2011 06:45:22 UTC)
// Content failed in China because it contains a few options which China
user can't access, such as "Youtube".

What is a correct and portable way of fixing such internationalization,
portability and regional issues?

I've currently implemented this fix, very simply, by disabling access to
the "YouTube Search Selection(s)" function if the locale is set to 'zh-CN'.

Is  the code below sufficient to allow bugfix update VoiceToGoog 0.2.1
(soon to be submitted) to be distributed in China? Other than YouTube, what
other external functions of VoiceToGoog might be blocked in China? And what
might be a suggested equivalent alternative for blocked sites?

The VoiceToGoog "drive" "mail" and "contact" menu options invoke the
platform navigation, mail, and contacts programs per platform handlers (
http://standards.freedesktop.org/desktop-entry-spec/latest/
http://harmattan-dev.nokia.com/docs/library/html/qt4/qdesktopservices.html).
The only remaining potential issues would be Google Web Search and
Google Map Search, which I assume are also available in China.

Here's the full list of external actions/activities that use transcribed
voice-to-text for their data, e.g. enabling voice-based web search, map,
search functionality  available in VoiceToGoog:

>From source: voicetogoog/qml/voicetogoog/MenuModel.qml
......................
mModel.append({ name: "Launch External Programs ",      icon: "",
                menuState: null,
                cmd: CMD.noOpSeparator});
mModel.append({ name: "Web Search Selection(s)",    icon:
"ui-images/browser_search.png",
                menuState: null,
                cmd: CMD.webSearchSelections});
// Fix issue from Nokia blocking release in China:
// By Ben_CN (NS-QA) (Nov 7th 2011 06:45:22 UTC)
// Content failed in China because it contains a few options which China
user can't access, such as "Youtube".
if (appLang != 'zh-CN') { //'zh-CN' <-> "Mandarin for Mainland China" ;
'appLang' set from $LANG in main.cpp
    mModel.append({ name: "YouTube Search Selection(s)",    icon:
"ui-images/icn_youtube_logo.png",
                      menuState: null,
                      cmd: CMD.youTubeSearchSelections});
}
mModel.append({ name: "Google Map Selection(s)",    icon:
"ui-images/google_maps48x48.png",
                menuState: null,
                cmd: CMD.mapSearchSelections});

mModel.append({ name: "Drive to Selection Route",    icon:
"ui-images/redhat-starthere.png",
                menuState: null,
                cmd: CMD.driveToSelectionRoute});
mModel.append({ name: "Drive to Selection Position",    icon:
"ui-images/navigate.png",
                menuState: null,
                cmd: CMD.driveToSelectionPosition});
mModel.append({ name: "Contact/Call/SMS Selection",     icon:
"ui-images/phone.png",
                menuState: null,
                cmd: CMD.callToSelection});
mModel.append({ name: "Mail Selection(s) Contents",    icon:
"ui-images/kontact_mail.png", //was: meego-app-email.png
                menuState: null,
                cmd: CMD.mailSelectionsContents});
.................................

-- Niels
http://nielsmayer.com

PS: I believe my latest version of VoiceToGoog will be quite useful for
handset language entry in Chinese speaking regions (as well as Turkey,
Russia, etc) where language entry on a mobile keyboard might be
challenging...

  * VoiceToGoog 0.2.0: Second release to
http://store.nokia.com/content/195998 ( see also
http://code.google.com/p/voicetogoog/ ).
  * Adds language selection menu/button/icon with flag and language-code
display, showing current recognition language and clarifying which language
is recognized by default at application startup based on user's locale.
  * Locales not matching existing voice recognition languages default to
British English [en-GB] with the language selection button showing a UK
flag to indicate default input language to be used.
  * Switch language locales on-the-fly via GUI for voice-to-text languages
British English [en-GB], Amercian English [en-US], Mandarin Chinese
[zh-guoyu,zh-CN], Japanese [ja], French [fr], Italian [it], German [de].
Spanish [es], Korean [ko].
  * New voice-to-text support and language switching for Australian English
[en-AU], Indian English [en-IN], New Zealand English [en-NZ], South African
English [en-ZA], Latin American Spanish [es-419], Indonesian [ind],
Malaysian [zsm], Mandarin for Taiwan [zh-TW], Turkish [tr], Russian [ru],
Czech [cs], Polish [pl], Brazilian Portuguese [pt-BR], Dutch [nl],
Afrikaans [af], and Zulu [zu].
  * For some new languages, Latin American Spanish [es-419], Indonesian
[ind], Malaysian [zsm], Zulu [zu], text-to-speech output doesn't work;
voice-recogniztion language for English dialects doesn't produce the same
accent on text-to-speech.
  * For more info on languages supported by Google's services, see
http://www.google.com/support/mobile/bin/answer.py?hl=en&answer=165480
http://www.google.com/support/mobile/bin/answer.py?answer=169105#voice
http://www.google.com/support/mobile/bin/answer.py?answer=169105#tts
http://googleresearch.blogspot.com/2010/06/google-search-by-voice-now-available-in.html
http://googleresearch.blogspot.com/2010/06/google-launches-korean-voice-search.html
http://googleresearch.blogspot.com/2010/12/google-launches-cantonese-voice-search.html
http://googleresearch.blogspot.com/2011/03/word-of-mouth-introducing-voice-search.html
  * Various minor fixes, changes, and frobbings.
_______________________________________________
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines

Reply via email to