Bug 343234 - Download Error
Summary: Download Error
Status: RESOLVED FIXED
Alias: None
Product: gcompris
Classification: Applications
Component: general (show other bugs)
Version: 0.26 (android)
Platform: Android Android 4.x
: NOR normal
Target Milestone: ---
Assignee: Bruno Coudoin
URL: http://gcompris.net/data/voices/voice...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-24 10:09 UTC by cmy
Modified: 2015-07-10 23:37 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cmy 2015-01-24 10:09:46 UTC
android  Download Error  
203: Error downloading http://gcompris.net/data/voices/voices-zh.rcc  -server replied:Not Found

Reproducible: Always
Comment 1 Christoph Feck 2015-01-27 01:04:43 UTC
The actual file is http://gcompris.net/data/voices/voices-zh_CN.rcc

Maybe there should be a link for the old name.
Comment 2 cmy 2015-01-27 10:42:34 UTC
(In reply to Christoph Feck from comment #1)
> The actual file is http://gcompris.net/data/voices/voices-zh_CN.rcc
> 
> Maybe there should be a link for the old name.
version:GCompris-Android-arm-0.26.apk
it gives error when selecting  "中文简体" in software language setting
what can i do?
Comment 3 Holger Kaelberer 2015-01-27 20:49:49 UTC
(In reply to cmy from comment #2)
> (In reply to Christoph Feck from comment #1)
> > The actual file is http://gcompris.net/data/voices/voices-zh_CN.rcc
> > 
> > Maybe there should be a link for the old name.
> version:GCompris-Android-arm-0.26.apk
> it gives error when selecting  "中文简体" in software language setting
> what can i do?

Please retry.

As a quick-fix Bruno did more or less what Christoph proposed.

Will be properly fixed in one of the next releases.
Comment 4 Holger Kaelberer 2015-02-01 16:57:10 UTC
I did not pay enough attention on how locale-names where used in the config-dialog vs. voices-filenames.

Also we currently download wrong voices for pt_BR, ie. we fetch pt. As the portuguese translations is ready we only have the option to be more specific in all places and use the <country>_<language> string.

We have it also the other way round and use voices specified by <country> only (en) for different languages in the application (en_US + en_GB) we must take care to create also symlinks for all <country>_<language> locales use in the application during voices-rcc creation.

Patches are in preparation ...
Comment 5 Jazeix Johnny 2015-02-01 21:00:17 UTC
We also need to think of languages without country like catalan where, for now, it looks for http://gcompris.net/data/voices/voices-ca.UTF-8.rcc instead of http://gcompris.net/data/voices/voices-ca.rcc.
Comment 6 cmy 2015-02-02 00:41:07 UTC
Thank you!
Comment 7 Holger Kaelberer 2015-02-04 05:26:49 UTC
(In reply to jazeix from comment #5)
> We also need to think of languages without country like catalan where, for
> now, it looks for http://gcompris.net/data/voices/voices-ca.UTF-8.rcc
> instead of http://gcompris.net/data/voices/voices-ca.rcc.

Good point.
This is due to the fact that the locale is specified as ca instead of ca_XX (expected by localeShort()) in DialogConfig. Besides, we don't have voices for ca, yet.

Aren't languages without a native country handled like all the others by the locale system. For ca my linux systems knows ca_ES/AD/FR/IT for example. If so, I don't see why we specify Catalan locale as "ca.UTF-8" but German as "de_DE.UTF-8". Imho we should specify them all as aa_BB.UTF8, to unify locale handling (localShort() e.g. relies on the presence of the '_').

Other candidate: uk.UTF-8 --> uk_UA.UTF-8
Comment 8 Holger Kaelberer 2015-07-03 21:19:46 UTC
This is fixed for a while already. I can't resolve the ticket, nor can I reassign it. Can you Bruno?!