Commit graph

15 commits

Author SHA1 Message Date
Brian Coca
27bf193483 added missing license headers
fixes #508
2015-07-30 14:48:59 -04:00
Michael Scherer
1d5afdc139 Do not assume that /var/lib/locales/supported.d/local exist
Since people can generate their own image with debootstrap, and
this wouldn't create a file /var/lib/locales/supported.d/local,
better check if it exist and work if it doesn't.

Fix #656
2015-07-25 12:21:28 +02:00
Mathias Merscher
44df5a9be5 ISO-8859-15 locale normalization in locale_gen module
Signed-off-by: Mathias Merscher <Mathias.Merscher@dg-i.net>
2015-07-21 21:08:02 +02:00
Greg DeKoenigsberg
45478760e3 Adding author's github id 2015-05-14 01:06:16 -04:00
Matt Martz
a258606694 Use try/finally with file opening to close the file 2015-05-11 10:29:28 -05:00
Matt Martz
e568032bc3 Fix up modules that have python24 syntax error 2015-05-11 09:51:48 -05:00
Toshio Kuratomi
2b192c7f8e remove non-ascii quotes from message string
Fixes https://github.com/ansible/ansible/pull/8564
2015-03-26 11:42:56 -07:00
Richard Gray
7c40201c3d Set default for locale_gen state parameter
Fix the state parameter for the locale_gen module to be non-mandatory
with a default value of 'present', as indicated by the module
documentation.
2015-03-07 21:24:32 +13:00
Brian Coca
9f11d10135 Merge pull request #181 from sterfield/devel
Allow every type of locales + archlinux fix
2015-02-17 13:45:12 -05:00
Hiroshi Umehara
759e032473 Generalize locale name normalization 2015-01-22 12:07:10 +09:00
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.
2015-01-21 16:10:12 +09:00
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.
2015-01-03 22:24:27 +01:00
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.
2015-01-03 18:01:13 +01:00
Baptiste Mispelon
827da3ae1a Fixed typo in locale_gen documentation. 2014-10-02 16:42:13 +02:00
Michael DeHaan
b1e789968b File extensions! 2014-09-26 10:40:16 -04:00
Renamed from system/locale_gen (Browse further)