Lines Matching refs:alias
3 Convert the X11 locale.alias file into a mapping dictionary suitable
13 # Location of the X11 alias file.
14 LOCALE_ALIAS = '/usr/share/X11/locale/locale.alias'
22 # Remove mojibake in /usr/share/X11/locale/locale.alias.
32 locale, alias = line.split()
34 if '@' in alias:
35 alias_lang, _, alias_mod = alias.partition('@')
38 alias = alias_lang + '.' + alias_enc + '@' + alias_mod
53 data[locale] = alias
72 alias, alias_encoding = words
74 locale = alias.lower()
81 # Add an encoding to alias
82 alias, _, modifier = alias.partition('@')
83 alias = _locale._replace_encoding(alias, alias_encoding)
85 alias += '@' + modifier
86 data[locale] = alias
119 # Check that all alias definitions from the X11 file
120 # are actually mapped to the correct alias locales.
132 parser.add_argument('--locale-alias', default=LOCALE_ALIAS,
133 help='location of the X11 alias file '