(code, modifier)
| 373 | return langname + '.' + encoding |
| 374 | |
| 375 | def _append_modifier(code, modifier): |
| 376 | if modifier == 'euro': |
| 377 | if '.' not in code: |
| 378 | return code + '.ISO8859-15' |
| 379 | _, _, encoding = code.partition('.') |
| 380 | if encoding in ('ISO8859-15', 'UTF-8'): |
| 381 | return code |
| 382 | if encoding == 'ISO8859-1': |
| 383 | return _replace_encoding(code, 'ISO8859-15') |
| 384 | return code + '@' + modifier |
| 385 | |
| 386 | def normalize(localename): |
| 387 |
no test coverage detected