Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Как можно расширить TRANSTABLE? #25

Closed
SashaBorandi opened this issue Feb 24, 2015 · 1 comment
Closed

Как можно расширить TRANSTABLE? #25

SashaBorandi opened this issue Feb 24, 2015 · 1 comment

Comments

@SashaBorandi
Copy link

Хочу расширить таблицу транслита дополнительными символами. Как это можно сделать, если я использую Django?

@last-partizan
Copy link
Owner

from pytils import translit

# extend base table
translit.TRANSTABLE += (
    ('—', '-'),
    ('і', 'i'),
    ('ї', 'i'),
    ('ґ', 'g'),
    ('є', 'e'),
    ('І', 'I'),
    ('Ї', 'I'),
    ('Ґ', 'G'),
    ('Є', 'E'),
) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants