# How to install a language package in Texmaker on Ubuntu 12.04?

I'm having problems with the babel language package with TeXmaker could someone propose a fix I've typed in \usepackage[french]{babel} and I get the following error:

Package babel Warning: No hyphenation patterns were loaded for
(babel) the language "French"
\l@french = a dialect from \language0


I also have letters with accents show up as in the following screenshot (it's meant to be é â è) I'd assume I need to /usepackage but don't know which:

If someone could suggest a fix to these two problems, I'd be very grateful, I think I need to install a language package but I'm not sure how to go about that on Ubuntu 12.04 with TeXmaker and for the accents I don't know what package to use.

-
sudo apt-get texlive-lang-french; related tex.stackexchange.com/questions/1972/… –  egreg Sep 21 '12 at 15:18
Did you try \usepackage[frenchb]{babel}? –  T. Verron Sep 21 '12 at 15:21
Does tex.stackexchange.com/questions/73016/… help at all? It's the 'general case' answer for dealing with package installation on Linux. –  Joseph Wright Sep 23 '12 at 8:31

Have you tried this in a terminal?

$sudo apt-cache search texlive french texlive-doc-fr - TeX Live: French documentation texlive-lang-french - TeX Live: French$sudo apt-get install texlive-lang-french


This example should work in a well installed TeX Live:

\documentclass[french,11pt]{article}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\begin{document}
\section*{L'histoire de la France au Moyen Âge}
L'histoire de la France au Moyen Âge se
caractérise par plusieurs périodes et événements
marquants durant dix siècles: de Clovis à
Charles VIII, en passant par la fin de la
Gaule romaine quand elle se détache de
l'Empire romain, la guerre de Cent Ans,
l'unification de la Gaule qui, au terme d'une
longue genèse, deviendra un État spécifique,
le Royaume de France. Celui-ci apportera l'essor
du christianisme, des campagnes, de la
population française, la renaissance
urbaine accompagnée par l'apparition
et l'affirmation des universités, la
formation de la langue française et
le développement du commerce (foires
et marchés).
\end{document}

-
I'd forgotten to add that accents weren't working either, if you don't know how to solve that I'll accept your answer as it fixed my original problem and I'll post a separate question on accents. –  Oyibo Sep 23 '12 at 7:01
@Oyibo, see the edited answer –  Fran Sep 23 '12 at 8:16
Thanks for your time, perfect answer! –  Oyibo Sep 23 '12 at 20:41