Commit Graph

7 Commits (c0fbdc33168d7e60afd44e301897eb01f940cf24)

Author SHA1 Message Date
Brian Coca 9f11d10135 Merge pull request #181 from sterfield/devel
Allow every type of locales + archlinux fix
10 years ago
Hiroshi Umehara 759e032473 Generalize locale name normalization 10 years ago
Hiroshi Umehara 42f79478a7 Add EUC-JP locale name normalization
The function normalizes checks for UTF-8, but the same issue exists for
other locales as well.  This fix adds normalization for EUC-JP, a Japanese
locale.
10 years ago
Sterfield 48ecbd037e Missing import re
I don't even know how it magically worked, but the fact is the code was
correct, and ran OK without the import re.
10 years ago
Sterfield c9656ff3b4 Now allow every type of locales + archlinux fix
The previous version of this code was supporting only locales using the
format "<language>_<territory>.<charset>". But all the locales that
doesn't have this format were not installable (such as "fr_FR" or
"fr_FR@euro").
Also, if an invalid locales was provided, the module kept sending a
"changed" status.

Now :
 * if the user provides an invalid locales, the module failed. Locales
   are verified using /etc/locale.gen or /usr/share/i18n/SUPPORTED if
   Ubuntu
 * Every types of valid locales are now supported.
 * The locale module was not working on Archlinux, as there's no space
   between the "#" and the locale. This is now supported. Credits goes
   to danderson189, this is his code.

This module was tested on debian jessie, ubuntu 14 LTS and last
Archlinux.
10 years ago
Baptiste Mispelon 827da3ae1a Fixed typo in locale_gen documentation. 10 years ago
Michael DeHaan b1e789968b File extensions! 10 years ago