# Ubiquity wants to force EN language during installation

I'm struggling with Ubiquity for a customized live-cd based on Ubuntu and Xfce. Here's the thing : I removed all languages except FR (french) from the iso, everything works perfectly if I make an offline installation. Everything is in french, the post-install language tool only shows me the FR languages (french and canadian), without any extra packages to download.

But things are getting wierd when I install with a internet connection, Ubiquity wants to install EN packages, even if I decided to make a french installation. And of course, he wants to download ~150mo of packages.

I looked up in /usr/lib/ubiquity/localechooser/* and usr/share/ubiquity/localechooser-apply, but I can't see where does Ubiquity choose to add EN to my languages.

Does anyone have an idea to prevent Ubiquity to download and install EN languages in addition of selected language ? I could of course let the EN packages on the iso, but in my opinion, it's a waste of space, since I don't need them.

Thank you !

-
Do you consider this workaround to be a solution? If so, then you should post it as an answer (once you're able to, you may have to wait a little bit). If you don't need more solutions, you can even accept your own answer two days later (a gray check mark will appear to the left of it, which you can click). If you do need more solutions, then just don't accept your answer. –  Eliah Kagan Sep 7 '13 at 17:10
Ok I will post in 5 hours as a response. Thanks –  MrVaykadji Sep 7 '13 at 17:35

I found a workaround without having to play with preseeds.

Locate on the iso squashfs: etc/lib/ubiquity/localechooser/localechooser

    # Always support English (unless preseeded otherwise), so that we
# get English language packs etc.
if [ "$english" ]; then db_set$tpl_supportedlocales "$new" else db_set$tpl_supportedlocales "${new:+$new, }en_US.UTF-8"
fi
}


I changed the following lines :

    # Always support English (unless preseeded otherwise), so that we
# get English language packs etc.
if [ "$english" ]; then db_set$tpl_supportedlocales "$new" else # MODIFIED, original line is commented below # db_set$tpl_supportedlocales "${new:+$new, }en_US.UTF-8"
# Either or not the language is english, keep only the selected language.
db_set $tpl_supportedlocales "$new"
fi
}


It works great.

-