(code, modifier)
| 383 | return langname + '.' + encoding |
| 384 | |
| 385 | def _append_modifier(code, modifier): |
| 386 | if modifier == 'euro': |
| 387 | if '.' not in code: |
| 388 | return code + '.ISO8859-15' |
| 389 | _, _, encoding = code.partition('.') |
| 390 | if encoding in ('ISO8859-15', 'UTF-8'): |
| 391 | return code |
| 392 | if encoding == 'ISO8859-1': |
| 393 | return _replace_encoding(code, 'ISO8859-15') |
| 394 | return code + '@' + modifier |
| 395 | |
| 396 | def normalize(localename): |
| 397 |
no test coverage detected