Yes you can do that.
first you need to create different stores in magento backend eg: magasin
Under each store create different storeviews corresponding to the language (similar to English, French and German storeviews in default magento installation).
Under System -> Configuration -> General -> Web -> Url options : set "Add Store Code to Urls" to "yes" (but read the warning before u you do this)
then create folders with the name you want for each language in your root directory (on server). "magasin" in your case
copy index.php and .htaccess to those folder (magasin)
in index.php (which is copied inside magasin folder)
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : '';
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : 'magasin'; // which was given in backend under store code
$compilerConfig = MAGENTO_ROOT . '/includes/config.php';
$mageFilename = MAGENTO_ROOT . '/app/Mage.php';
$compilerConfig = MAGENTO_ROOT . '../includes/config.php';
$mageFilename = MAGENTO_ROOT . '../app/Mage.php';
no changes in .htaccess needed.
in Admin panel again
under System -> Configuration -> GENERAL -> Web -> Unsecure section
(before editing, change the scope to magasin, which should be done under the Current Configuration Scope: on top left corner)
change the base url to something like
change the base skin url to something like
change the base media url to something like
change the base js url to something like
under secure section:
change only the base url to something like
http://website/magasin/ (do this only if all the above steps don't work)
remember the unsecure and secure urls should be changed under particular store configuration (scope) only, not under default scope.
if you want separate media and skin folder for this language copy them from root to magasin folder and give the relative path in unsecure section.
for having different urls for store views:
Edit the urls under System -> Configuration -> GENERAL -> Web -> Unsecure section with store view selected as "Current Configuration Scope"
http://website/magasin/french, where french is the store view code you used while creating the store view.
for help, refer this link