Add belarusian transliteration

This commit is contained in:
Maksim Tamkovič 2013-01-18 22:21:56 +03:00
parent 976bff6303
commit 1fb23efe1e
11 changed files with 642 additions and 110 deletions

View file

@ -21,3 +21,4 @@ Zdenko Podobný <zdenop\gmail.com>: Slovak translation
Amos Batto <amosbatto\yahoo.com>: Quechua, Aymara and Bolivian Spanish translations
Carlos A. Cortijo Bon: Spanish from Spain translation
Victor Ibragimov <victor.ibragimov\gmail.com>: Tajik translation
Maksim Tamkovič <quendimax\gmail.com>: Belarusian translation and transliteration

429
belarusiantranslit.cc Normal file
View file

@ -0,0 +1,429 @@
/* This file is (c) 2013 Maksim Tamkovicz <quendimax@gmail.com>
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
#include "belarusiantranslit.hh"
#include "transliteration.hh"
#include <QCoreApplication>
namespace BelarusianTranslit {
class BelarusianLatinToClassicTable: public Transliteration::Table
{
public:
BelarusianLatinToClassicTable()
{
// Utf8ins()
// latin to cyrillic
ins( "a", "а" );
ins( "b", "б" );
ins( "c", "ц" );
ins( "ć", "ць" );
ins( "č", "ч" );
ins( "cz", "ч" );
ins( "d", "д" );
ins( "e", "э" );
ins( "f", "ф" );
ins( "g", "ґ" );
ins( "h", "г" );
ins( "i", "і" );
ins( "j", "й" );
ins( "k", "к" );
ins( "l", "ль" );
ins( "ł", "л" );
ins( "m", "м" );
ins( "n", "н" );
ins( "ń", "нь" );
ins( "o", "о" );
ins( "p", "п" );
ins( "r", "р" );
ins( "s", "с" );
ins( "ś", "сь" );
ins( "š", "ш" );
ins( "sz", "ш" );
ins( "t", "т" );
ins( "u", "у" );
ins( "ŭ", "ў" );
ins( "v", "в" );
ins( "w", "в" );
ins( "y", "ы" );
ins( "z", "з" );
ins( "ź", "зь" );
ins( "ž", "ж" );
ins( "ż", "ж" );
ins( "ch", "х" );
ins( "ja", "я" ); ins( "je", "е" ); ins( "jo", "ё" ); ins( "ju", "ю" );
ins( "la", "ля" ); ins( "le", "ле" ); ins( "lo", "лё" ); ins( "lu", "лю" ); ins( "li", "лі" );
ins( "bia", "бя" ); ins( "bie", "бе" ); ins( "bio", "бё" ); ins( "biu", "бю" );
ins( "cia", "ця" ); ins( "cie", "це" ); ins( "cio", "цё" ); ins( "ciu", "цю" );
ins( "dzia","дзя" ); ins( "dzie","дзе" ); ins( "dzio","дзё" ); ins( "dziu","дзю" );
ins( "fia", "фя" ); ins( "fie", "фе" ); ins( "fio", "фё" ); ins( "fiu", "фю" );
ins( "gia", "ґя" ); ins( "gie", "ґе" ); ins( "gio", "ґё" ); ins( "giu", "ґю" );
ins( "hia", "гя" ); ins( "hie", "ге" ); ins( "hio", "гё" ); ins( "hiu", "гю" );
ins( "kia", "кя" ); ins( "kie", "ке" ); ins( "kio", "кё" ); ins( "kiu", "кю" );
ins( "lia", "ліa" ); ins( "lie", "ліэ" ); ins( "lio", "ліо" ); ins( "liu", "ліу" );
ins( "mia", "мя" ); ins( "mie", "ме" ); ins( "mio", "мё" ); ins( "miu", "мю" );
ins( "nia", "ня" ); ins( "nie", "не" ); ins( "nio", "нё" ); ins( "niu", "ню" );
ins( "pia", "пя" ); ins( "pie", "пе" ); ins( "pio", "пё" ); ins( "piu", "пю" );
ins( "sia", "ся" ); ins( "sie", "се" ); ins( "sio", "сё" ); ins( "siu", "сю" );
ins( "via", "вя" ); ins( "vie", "ве" ); ins( "vio", "вё" ); ins( "viu", "вю" );
ins( "wia", "вя" ); ins( "wie", "ве" ); ins( "wio", "вё" ); ins( "wiu", "вю" );
ins( "zia", "зя" ); ins( "zie", "зе" ); ins( "zio", "зё" ); ins( "ziu", "зю" );
ins( "chia", "хя" ); ins( "chie", "хе" ); ins( "chio", "хё" ); ins( "chiu", "хю" );
ins( "bja", "б" ); ins( "bje", "б'е" ); ins( "bjo", "б" ); ins( "bju", "б" );
ins( "cia", "ц'я" ); ins( "cje", "ц'е" ); ins( "cjo", "ц'ё" ); ins( "cju", "ц'ю" );
ins( "fja", "ф'я" ); ins( "fje", "ф'е" ); ins( "fjo", "ф'ё" ); ins( "fju", "ф'ю" );
ins( "hja", "г" ); ins( "hje", "г'е" ); ins( "hjo", "г" ); ins( "hju", "г" );
ins( "kja", "к'я" ); ins( "kje", "к'е" ); ins( "kjo", "к'ё" ); ins( "kju", "к'ю" );
ins( "łja", "л'я" ); ins( "łje", "л'е" ); ins( "łjo", "л'ё" ); ins( "łju", "л'ю" );
ins( "mja", "м'я" ); ins( "mje", "м'е" ); ins( "mjo", "м'ё" ); ins( "mju", "м'ю" );
ins( "nja", "н'я" ); ins( "nje", "н'е" ); ins( "njo", "н'ё" ); ins( "nju", "н'ю" );
ins( "pja", "п'я" ); ins( "pje", "п'е" ); ins( "pjo", "п'ё" ); ins( "pju", "п'ю" );
ins( "sja", "с" ); ins( "sje", "с'е" ); ins( "sjo", "с" ); ins( "sju", "с" );
ins( "vja", "в'я" ); ins( "vje", "в'е" ); ins( "vjo", "в'ё" ); ins( "vju", "в'ю" );
ins( "wja", "в'я" ); ins( "wje", "в'е" ); ins( "wjo", "в'ё" ); ins( "wju", "в'ю" );
ins( "zja", "з'я" ); ins( "zje", "з'е" ); ins( "zjo", "з'ё" ); ins( "zju", "з'ю" );
ins( "chja", "х" ); ins( "chje", "х'е" ); ins( "chjo", "х" ); ins( "chju", "х" );
ins( "nnia", "ньня" ); ins( "nnie", "ньне" ); ins( "nnio", "ньнё" ); ins( "nniu", "ньню" );ins( "nni", "ньні" );
// cyrillic to latin
ins( "а", "a" ); ins( "б", "b" ); ins( "в", "v" ); ins( "г", "h" );
ins( "ґ", "g" ); ins( "д", "d" ); ins( "е", "je" ); ins( "ё", "jo" );
ins( "ж", "ž" ); ins( "з", "z" ); ins( "і", "i" ); ins( "ї", "ï" );
ins( "й", "j" ); ins( "к", "k" ); ins( "л", "ł" ); ins( "м", "m" );
ins( "н", "n" ); ins( "о", "o" ); ins( "п", "p" ); ins( "р", "r" );
ins( "с", "s" ); ins( "т", "t" ); ins( "у", "u" ); ins( "ў", "ŭ" );
ins( "ф", "f" ); ins( "х", "ch" ); ins( "ц", "c" ); ins( "ч", "č" );
ins( "ш", "š" ); ins( "ы", "y" ); ins( "э", "e" ); ins( "ю", "ju" );
ins( "я", "ja" ); ins( "кг", "g" );
ins( "бе", "bie" ); ins( "бё", "bio" ); ins( "бю", "biu" ); ins( "бя", "bia" );
ins( "ве", "vie" ); ins( "вё", "vio" ); ins( "вю", "viu" ); ins( "вя", "via" );
ins( "ге", "hie" ); ins( "гё", "hio" ); ins( "гю", "hiu" ); ins( "гя", "hia" );
ins( "ґе", "gie" ); ins( "ґё", "gio" ); ins( "ґю", "giu" ); ins( "ґя", "gia" );
ins( "кге", "gie" ); ins( "кгё", "gio" ); ins( "кгю", "giu" ); ins( "кгя", "gia" );
ins( "зе", "zie" ); ins( "зё", "zio" ); ins( "зю", "ziu" ); ins( "зя", "zia" ); ins( "зь", "ź" );
ins( "ке", "kie" ); ins( "кё", "kio" ); ins( "кю", "kiu" ); ins( "кя", "kia" );
ins( "ле", "le" ); ins( "лё", "lo" ); ins( "лю", "lu" ); ins( "ля", "la" ); ins( "ль", "l" ); ins( "лі", "li" );
ins( "ме", "mie" ); ins( "мё", "mio" ); ins( "мю", "miu" ); ins( "мя", "mia" ); ins( "мь", "m" );
ins( "не", "nie" ); ins( "нё", "nio" ); ins( "ню", "niu" ); ins( "ня", "nia" ); ins( "нь", "ń" );
ins( "пе", "pie" ); ins( "пё", "pio" ); ins( "пю", "piu" ); ins( "пя", "pia" ); ins( "пь", "p" );
ins( "се", "sie" ); ins( "сё", "sio" ); ins( "сю", "siu" ); ins( "ся", "sia" ); ins( "сь", "ś" );
ins( "фе", "fie" ); ins( "фё", "fio" ); ins( "фю", "fiu" ); ins( "фя", "fia" ); ins( "фь", "f" );
ins( "хе", "chie" ); ins( "хё", "chio" ); ins( "хю", "chiu" ); ins( "хя", "chia" );
ins( "це", "cie" ); ins( "цё", "cio" ); ins( "цю", "ciu" ); ins( "ця", "cia" ); ins( "ць", "ć" );
ins( "бʼ", "b" ); ins( "б'", "b" ); ins( "б", "b" );
ins( "вʼ", "v" ); ins( "в'", "v" ); ins( "в’", "v" );
ins( "гʼ", "h" ); ins( "г'", "h" ); ins( "г", "h" );
ins( "ґʼ", "g" ); ins( "ґ'", "g" ); ins( "ґ’", "g" );
ins( "дʼ", "d" ); ins( "д'", "d" ); ins( "д’", "d" );
ins( "жʼ", "ž" ); ins( "ж'", "ž" ); ins( "ж’", "ž" );
ins( "зʼ", "z" ); ins( "з'", "z" ); ins( "з’", "z" );
ins( "кʼ", "k" ); ins( "к'", "k" ); ins( "к’", "k" );
ins( "лʼ", "ł" ); ins( "л'", "ł" ); ins( "л’", "ł" );
ins( "мʼ", "m" ); ins( "м'", "m" ); ins( "м’", "m" );
ins( "нʼ", "n" ); ins( "н'", "n" ); ins( "н’", "n" );
ins( "пʼ", "p" ); ins( "п'", "p" ); ins( "п’", "p" );
ins( "рʼ", "r" ); ins( "р'", "r" ); ins( "р", "r" );
ins( "сʼ", "s" ); ins( "с'", "s" ); ins( "с", "s" );
ins( "тʼ", "t" ); ins( "т'", "t" ); ins( "т’", "t" );
ins( "фʼ", "f" ); ins( "ф'", "f" ); ins( "ф’", "f" );
ins( "хʼ", "ch" ); ins( "х'", "ch" ); ins( "х", "ch" );
ins( "цʼ", "c" ); ins( "ц'", "c" ); ins( "ц’", "c" );
ins( "чʼ", "č" ); ins( "ч'", "č" ); ins( "ч’", "č" );
ins( "шʼ", "š" ); ins( "ш'", "š" ); ins( "ш’", "š" );
}
};
class BelarusianLatinToSchoolTable: public Transliteration::Table
{
public:
BelarusianLatinToSchoolTable()
{
// Utf8ins()
// latin to cyrillic
ins( "a", "а" );
ins( "b", "б" );
ins( "c", "ц" );
ins( "ć", "ць" );
ins( "č", "ч" );
ins( "cz", "ч" );
ins( "d", "д" );
ins( "e", "э" );
ins( "f", "ф" );
ins( "g", "г" );
ins( "h", "г" );
ins( "i", "і" );
ins( "j", "й" );
ins( "k", "к" );
ins( "l", "ль" );
ins( "ł", "л" );
ins( "m", "м" );
ins( "n", "н" );
ins( "ń", "нь" );
ins( "o", "о" );
ins( "p", "п" );
ins( "r", "р" );
ins( "s", "с" );
ins( "ś", "сь" );
ins( "š", "ш" );
ins( "sz", "ш" );
ins( "t", "т" );
ins( "u", "у" );
ins( "ŭ", "ў" );
ins( "v", "в" );
ins( "w", "в" );
ins( "y", "ы" );
ins( "z", "з" );
ins( "ź", "зь" );
ins( "ž", "ж" );
ins( "ż", "ж" );
ins( "ch", "х" );
ins( "ja", "я" ); ins( "je", "е" ); ins( "jo", "ё" ); ins( "ju", "ю" );
ins( "la", "ля" ); ins( "le", "ле" ); ins( "lo", "лё" ); ins( "lu", "лю" ); ins( "li", "лі" );
ins( "bia", "бя" ); ins( "bie", "бе" ); ins( "bio", "бё" ); ins( "biu", "бю" );
ins( "cia", "ця" ); ins( "cie", "це" ); ins( "cio", "цё" ); ins( "ciu", "цю" );
ins( "dzia","дзя" ); ins( "dzie","дзе" ); ins( "dzio","дзё" ); ins( "dziu","дзю" );
ins( "fia", "фя" ); ins( "fie", "фе" ); ins( "fio", "фё" ); ins( "fiu", "фю" );
ins( "gia", "гя" ); ins( "gie", "ге" ); ins( "gio", "гё" ); ins( "giu", "гю" );
ins( "hia", "гя" ); ins( "hie", "ге" ); ins( "hio", "гё" ); ins( "hiu", "гю" );
ins( "kia", "кя" ); ins( "kie", "ке" ); ins( "kio", "кё" ); ins( "kiu", "кю" );
ins( "lia", "ліa" ); ins( "lie", "ліэ" ); ins( "lio", "ліо" ); ins( "liu", "ліу" );
ins( "mia", "мя" ); ins( "mie", "ме" ); ins( "mio", "мё" ); ins( "miu", "мю" );
ins( "nia", "ня" ); ins( "nie", "не" ); ins( "nio", "нё" ); ins( "niu", "ню" );
ins( "pia", "пя" ); ins( "pie", "пе" ); ins( "pio", "пё" ); ins( "piu", "пю" );
ins( "sia", "ся" ); ins( "sie", "се" ); ins( "sio", "сё" ); ins( "siu", "сю" );
ins( "via", "вя" ); ins( "vie", "ве" ); ins( "vio", "вё" ); ins( "viu", "вю" );
ins( "wia", "вя" ); ins( "wie", "ве" ); ins( "wio", "вё" ); ins( "wiu", "вю" );
ins( "zia", "зя" ); ins( "zie", "зе" ); ins( "zio", "зё" ); ins( "ziu", "зю" );
ins( "chia", "хя" ); ins( "chie", "хе" ); ins( "chio", "хё" ); ins( "chiu", "хю" );
ins( "bja", "б" ); ins( "bje", "б'е" ); ins( "bjo", "б" ); ins( "bju", "б" );
ins( "cia", "ц'я" ); ins( "cje", "ц'е" ); ins( "cjo", "ц'ё" ); ins( "cju", "ц'ю" );
ins( "fja", "ф'я" ); ins( "fje", "ф'е" ); ins( "fjo", "ф'ё" ); ins( "fju", "ф'ю" );
ins( "hja", "г" ); ins( "hje", "г'е" ); ins( "hjo", "г" ); ins( "hju", "г" );
ins( "kja", "к'я" ); ins( "kje", "к'е" ); ins( "kjo", "к'ё" ); ins( "kju", "к'ю" );
ins( "łja", "л'я" ); ins( "łje", "л'е" ); ins( "łjo", "л'ё" ); ins( "łju", "л'ю" );
ins( "mja", "м'я" ); ins( "mje", "м'е" ); ins( "mjo", "м'ё" ); ins( "mju", "м'ю" );
ins( "nja", "н'я" ); ins( "nje", "н'е" ); ins( "njo", "н'ё" ); ins( "nju", "н'ю" );
ins( "pja", "п'я" ); ins( "pje", "п'е" ); ins( "pjo", "п'ё" ); ins( "pju", "п'ю" );
ins( "sja", "с" ); ins( "sje", "с'е" ); ins( "sjo", "с" ); ins( "sju", "с" );
ins( "vja", "в'я" ); ins( "vje", "в'е" ); ins( "vjo", "в'ё" ); ins( "vju", "в'ю" );
ins( "wja", "в'я" ); ins( "wje", "в'е" ); ins( "wjo", "в'ё" ); ins( "wju", "в'ю" );
ins( "zja", "з'я" ); ins( "zje", "з'е" ); ins( "zjo", "з'ё" ); ins( "zju", "з'ю" );
ins( "źja", "з'я" ); ins( "źje", "з'е" ); ins( "źjo", "з'ё" ); ins( "źju", "з'ю" );
ins( "chja", "х" ); ins( "chje", "х'е" ); ins( "chjo", "х" ); ins( "chju", "х" );
ins( "śbia", "сбя" ); ins( "śbie", "сбе" ); ins( "śbio", "сбё" ); ins( "śbiu", "сбю" ); ins( "śbi", "сбі" );
ins( "ścia", "сця" ); ins( "ście", "сце" ); ins( "ścio", "сцё" ); ins( "ściu", "сцю" ); ins( "ści", "сці" ); ins( "ść", "сць" );
ins( "śdzia","сдзя" ); ins( "śdzie","сдзе" ); ins( "śdzio","сдзё" ); ins( "śdziu","сдзю" ); ins( "śdzi","сдзі" ); ins( "śdź","сдзь" );
ins( "śfia", "сфя" ); ins( "śfie", "сфе" ); ins( "śfio", "сфё" ); ins( "śfiu", "сфю" ); ins( "śfi", "сфі" );
ins( "ślia", "сліa" ); ins( "ślie", "сліэ" ); ins( "ślio", "сліо" ); ins( "śliu", "сліу" ); ins( "śli", "слі" ); ins( "śl", "сль" );
ins( "śmia", "смя" ); ins( "śmie", "сме" ); ins( "śmio", "смё" ); ins( "śmiu", "смю" ); ins( "śmi", "смі" );
ins( "śnia", "сня" ); ins( "śnie", "сне" ); ins( "śnio", "снё" ); ins( "śniu", "сню" ); ins( "śni", "сні" ); ins( "śń", "снь" );
ins( "śpia", "спя" ); ins( "śpie", "спе" ); ins( "śpio", "спё" ); ins( "śpiu", "спю" ); ins( "śpi", "спі" );
ins( "śsia", "сся" ); ins( "śsie", "ссе" ); ins( "śsio", "ссё" ); ins( "śsiu", "ссю" ); ins( "śsi", "ссі" );
ins( "śvia", "свя" ); ins( "śvie", "све" ); ins( "śvio", "свё" ); ins( "śviu", "свю" ); ins( "śvi", "сві" );
ins( "świa", "свя" ); ins( "świe", "све" ); ins( "świo", "свё" ); ins( "świu", "свю" ); ins( "świ", "сві" );
ins( "śzia", "сзя" ); ins( "śzie", "сзе" ); ins( "śzio", "сзё" ); ins( "śziu", "сзю" ); ins( "śzi", "сзі" ); ins( "śź", "сзь" );
ins( "ćbia", "цбя" ); ins( "ćbie", "цбе" ); ins( "ćbio", "цбё" ); ins( "ćbiu", "цбю" ); ins( "ćbi", "цбі" );
ins( "ćcia", "цця" ); ins( "ćcie", "цце" ); ins( "ćcio", "ццё" ); ins( "ćciu", "ццю" ); ins( "ćci", "цці" );
ins( "ćdzia","цдзя" ); ins( "ćdzie","цдзе" ); ins( "ćdzio","цдзё" ); ins( "ćdziu","цдзю" ); ins( "ćdzi","цдзі" );
ins( "ćfia", "цфя" ); ins( "ćfie", "цфе" ); ins( "ćfio", "цфё" ); ins( "ćfiu", "цфю" ); ins( "ćfi", "цфі" );
ins( "ćlia", "цліa" ); ins( "ćlie", "цліэ" ); ins( "ćlio", "цліо" ); ins( "ćliu", "цліу" ); ins( "ćli", "цлі" ); ins( "ćl", "цль" );
ins( "ćmia", "цмя" ); ins( "ćmie", "цме" ); ins( "ćmio", "цмё" ); ins( "ćmiu", "цмю" ); ins( "ćmi", "цмі" );
ins( "ćnia", "цня" ); ins( "ćnie", "цне" ); ins( "ćnio", "цнё" ); ins( "ćniu", "цню" ); ins( "ćni", "цні" ); ins( "ćń", "цнь" );
ins( "ćpia", "цпя" ); ins( "ćpie", "цпе" ); ins( "ćpio", "цпё" ); ins( "ćpiu", "цпю" ); ins( "ćpi", "цпі" );
ins( "ćsia", "цся" ); ins( "ćsie", "цсе" ); ins( "ćsio", "цсё" ); ins( "ćsiu", "цсю" ); ins( "ćsi", "цсі" ); ins( "ćś", "цсь" );
ins( "ćvia", "цвя" ); ins( "ćvie", "цве" ); ins( "ćvio", "цвё" ); ins( "ćviu", "цвю" ); ins( "ćvi", "цві" );
ins( "ćwia", "цвя" ); ins( "ćwie", "цве" ); ins( "ćwio", "цвё" ); ins( "ćwiu", "цвю" ); ins( "ćwi", "цві" );
ins( "ćzia", "цзя" ); ins( "ćzie", "цзе" ); ins( "ćzio", "цзё" ); ins( "ćziu", "цзю" ); ins( "ćzi", "цзі" ); ins( "ćź", "цзь" );
ins( "źbia", "збя" ); ins( "źbie", "збе" ); ins( "źbio", "збё" ); ins( "źbiu", "збю" ); ins( "źbi", "збі" );
ins( "źcia", "зця" ); ins( "źcie", "зце" ); ins( "źcio", "зцё" ); ins( "źciu", "зцю" ); ins( "źci", "зці" ); ins( "źć", "зць" );
ins( "ździa","здзя" ); ins( "ździe","здзе" ); ins( "ździo","здзё" ); ins( "ździu","здзю" ); ins( "ździ","здзі" ); ins( "źdź","здзь" );
ins( "źfia", "зфя" ); ins( "źfie", "зфе" ); ins( "źfio", "зфё" ); ins( "źfiu", "зфю" ); ins( "źfi", "зфі" );
ins( "źlia", "зліa" ); ins( "źlie", "зліэ" ); ins( "źlio", "зліо" ); ins( "źliu", "зліу" ); ins( "źli", "злі" ); ins( "źl", "зль" );
ins( "źmia", "змя" ); ins( "źmie", "зме" ); ins( "źmio", "змё" ); ins( "źmiu", "змю" ); ins( "źmi", "змі" );
ins( "źnia", "зня" ); ins( "źnie", "зне" ); ins( "źnio", "знё" ); ins( "źniu", "зню" ); ins( "źni", "зні" );
ins( "źpia", "зпя" ); ins( "źpie", "зпе" ); ins( "źpio", "зпё" ); ins( "źpiu", "зпю" ); ins( "źpi", "зпі" );
ins( "źsia", "зся" ); ins( "źsie", "зсе" ); ins( "źsio", "зсё" ); ins( "źsiu", "зсю" ); ins( "źsi", "зсі" );
ins( "źvia", "звя" ); ins( "źvie", "зве" ); ins( "źvio", "звё" ); ins( "źviu", "звю" ); ins( "źvi", "зві" );
ins( "źwia", "звя" ); ins( "źwie", "зве" ); ins( "źwio", "звё" ); ins( "źwiu", "звю" ); ins( "źwi", "зві" );
ins( "źzia", "ззя" ); ins( "źzie", "ззе" ); ins( "źzio", "ззё" ); ins( "źziu", "ззю" ); ins( "źzi", "ззі" );
ins( "ńnia", "ння" ); ins( "ńnie", "нне" ); ins( "ńnio", "ннё" ); ins( "ńniu", "нню" ); ins( "ńni", "нні" );
ins( "dździa", "ддзя" ); ins( "dździe", "ддзе" ); ins( "dździo", "ддзё" ); ins( "dździu", "ддзю" ); ins( "dździ", "ддзі" );
// cyrillic to latin
ins( "а", "a" ); ins( "б", "b" ); ins( "в", "v" ); ins( "г", "h" );
ins( "ґ", "g" ); ins( "д", "d" ); ins( "е", "je" ); ins( "ё", "jo" );
ins( "ж", "ž" ); ins( "з", "z" ); ins( "і", "i" ); ins( "ї", "ï" );
ins( "й", "j" ); ins( "к", "k" ); ins( "л", "ł" ); ins( "м", "m" );
ins( "н", "n" ); ins( "о", "o" ); ins( "п", "p" ); ins( "р", "r" );
ins( "с", "s" ); ins( "т", "t" ); ins( "у", "u" ); ins( "ў", "ŭ" );
ins( "ф", "f" ); ins( "х", "ch" ); ins( "ц", "c" ); ins( "ч", "č" );
ins( "ш", "š" ); ins( "ы", "y" ); ins( "э", "e" ); ins( "ю", "ju" );
ins( "я", "ja" ); ins( "кг", "g" );
ins( "бе", "bie" ); ins( "бё", "bio" ); ins( "бю", "biu" ); ins( "бя", "bia" );
ins( "ве", "vie" ); ins( "вё", "vio" ); ins( "вю", "viu" ); ins( "вя", "via" );
ins( "ге", "hie" ); ins( "гё", "hio" ); ins( "гю", "hiu" ); ins( "гя", "hia" );
ins( "ґе", "gie" ); ins( "ґё", "gio" ); ins( "ґю", "giu" ); ins( "ґя", "gia" );
ins( "кге", "gie" ); ins( "кгё", "gio" ); ins( "кгю", "giu" ); ins( "кгя", "gia" );
ins( "зе", "zie" ); ins( "зё", "zio" ); ins( "зю", "ziu" ); ins( "зя", "zia" ); ins( "зь", "ź" );
ins( "ке", "kie" ); ins( "кё", "kio" ); ins( "кю", "kiu" ); ins( "кя", "kia" );
ins( "ле", "le" ); ins( "лё", "lo" ); ins( "лю", "lu" ); ins( "ля", "la" ); ins( "ль", "l" ); ins( "лі", "li" );
ins( "ме", "mie" ); ins( "мё", "mio" ); ins( "мю", "miu" ); ins( "мя", "mia" ); ins( "мь", "m" );
ins( "не", "nie" ); ins( "нё", "nio" ); ins( "ню", "niu" ); ins( "ня", "nia" ); ins( "нь", "ń" );
ins( "пе", "pie" ); ins( "пё", "pio" ); ins( "пю", "piu" ); ins( "пя", "pia" ); ins( "пь", "p" );
ins( "се", "sie" ); ins( "сё", "sio" ); ins( "сю", "siu" ); ins( "ся", "sia" ); ins( "сь", "ś" );
ins( "фе", "fie" ); ins( "фё", "fio" ); ins( "фю", "fiu" ); ins( "фя", "fia" ); ins( "фь", "f" );
ins( "хе", "chie" ); ins( "хё", "chio" ); ins( "хю", "chiu" ); ins( "хя", "chia" );
ins( "це", "cie" ); ins( "цё", "cio" ); ins( "цю", "ciu" ); ins( "ця", "cia" ); ins( "ць", "ć" );
ins( "бʼ", "b" ); ins( "б'", "b" ); ins( "б", "b" );
ins( "вʼ", "v" ); ins( "в'", "v" ); ins( "в’", "v" );
ins( "гʼ", "h" ); ins( "г'", "h" ); ins( "г", "h" );
ins( "ґʼ", "g" ); ins( "ґ'", "g" ); ins( "ґ’", "g" );
ins( "дʼ", "d" ); ins( "д'", "d" ); ins( "д’", "d" );
ins( "жʼ", "ž" ); ins( "ж'", "ž" ); ins( "ж’", "ž" );
ins( "зʼ", "z" ); ins( "з'", "z" ); ins( "з’", "z" );
ins( "кʼ", "k" ); ins( "к'", "k" ); ins( "к’", "k" );
ins( "лʼ", "ł" ); ins( "л'", "ł" ); ins( "л’", "ł" );
ins( "мʼ", "m" ); ins( "м'", "m" ); ins( "м’", "m" );
ins( "нʼ", "n" ); ins( "н'", "n" ); ins( "н’", "n" );
ins( "пʼ", "p" ); ins( "п'", "p" ); ins( "п’", "p" );
ins( "рʼ", "r" ); ins( "р'", "r" ); ins( "р", "r" );
ins( "сʼ", "s" ); ins( "с'", "s" ); ins( "с", "s" );
ins( "тʼ", "t" ); ins( "т'", "t" ); ins( "т’", "t" );
ins( "фʼ", "f" ); ins( "ф'", "f" ); ins( "ф’", "f" );
ins( "хʼ", "ch" ); ins( "х'", "ch" ); ins( "х", "ch" );
ins( "цʼ", "c" ); ins( "ц'", "c" ); ins( "ц’", "c" );
ins( "чʼ", "č" ); ins( "ч'", "č" ); ins( "ч’", "č" );
ins( "шʼ", "š" ); ins( "ш'", "š" ); ins( "ш’", "š" );
}
};
class BelarusianSchoolToClassicTable: public Transliteration::Table
{
public:
BelarusianSchoolToClassicTable()
{
ins( "ньне", "нне" ); ins( "ньня", "ння" ); ins( "ньню", "нню" ); ins( "ньнё", "ннё" ); ins( "ньні", "нні" );
ins( "нне", "ньне" ); ins( "ння", "ньня" ); ins( "нню", "ньню" ); ins( "ннё", "ньнё" ); ins( "нні", "ньні" );
ins( "льле", "лле" ); ins( "льля", "лля" ); ins( "льлю", "ллю" ); ins( "льлё", "ллё" ); ins( "льлі", "ллі" );
ins( "лле", "льле" ); ins( "лля", "льля" ); ins( "ллю", "льлю" ); ins( "ллё", "льлё" ); ins( "ллі", "льлі" );
ins( "зьбе", "збе" ); ins( "зьбя", "збя" ); ins( "зьбю", "збю" ); ins( "зьбё", "збё" ); ins( "зьбі", "збі" );
ins( "збе", "зьбе" ); ins( "збя", "зьбя" ); ins( "збю", "зьбю" ); ins( "збё", "зьбё" ); ins( "збі", "зьбі" );
ins( "зьве", "зве" ); ins( "зьвя", "звя" ); ins( "зьвю", "звю" ); ins( "зьвё", "звё" ); ins( "зьві", "зві" );
ins( "зве", "зьве" ); ins( "звя", "зьвя" ); ins( "звю", "зьвю" ); ins( "звё", "зьвё" ); ins( "зві", "зьві" );
ins( "зьдзе", "здзе" ); ins( "зьдзя", "здзя" ); ins( "зьдзю", "здзю" ); ins( "зьдзё", "здзё" ); ins( "зьдзі", "здзі" ); ins( "зьдзь", "здзь" );
ins( "здзе", "зьдзе" ); ins( "здзя", "зьдзя" ); ins( "здзю", "зьдзю" ); ins( "здзё", "зьдзё" ); ins( "здзі", "зьдзі" ); ins( "здзь", "здзь" );
ins( "зьзе", "ззе" ); ins( "зьзя", "ззя" ); ins( "зьзю", "ззю" ); ins( "зьзё", "ззё" ); ins( "зьзі", "ззі" ); ins( "зьзь", "ззь" );
ins( "ззе", "зьзе" ); ins( "ззя", "зьзя" ); ins( "ззю", "зьзю" ); ins( "ззё", "зьзё" ); ins( "ззі", "зьзі" ); ins( "ззь", "зьзь" );
ins( "зьле", "зле" ); ins( "зьля", "зля" ); ins( "зьлю", "злю" ); ins( "зьлё", "злё" ); ins( "зьлі", "злі" ); ins( "зьль", "зль" );
ins( "зле", "зьле" ); ins( "зля", "зьля" ); ins( "злю", "зьлю" ); ins( "злё", "зьлё" ); ins( "злі", "зьлі" ); ins( "зль", "зьль" );
ins( "зьме", "зме" ); ins( "зьмя", "змя" ); ins( "зьмю", "змю" ); ins( "зьмё", "змё" ); ins( "зьмі", "змі" );
ins( "зме", "зьме" ); ins( "змя", "зьмя" ); ins( "змю", "зьмю" ); ins( "змё", "зьмё" ); ins( "змі", "зьмі" );
ins( "зьне", "зне" ); ins( "зьня", "зня" ); ins( "зьню", "зню" ); ins( "зьнё", "знё" ); ins( "зьні", "зні" ); ins( "зьнь", "знь" );
ins( "зне", "зьне" ); ins( "зня", "зьня" ); ins( "зню", "зьню" ); ins( "знё", "зьнё" ); ins( "зні", "зьні" ); ins( "знь", "зьнь" );
ins( "зьпе", "зпе" ); ins( "зьпя", "зпя" ); ins( "зьпю", "зпю" ); ins( "зьпё", "зпё" ); ins( "зьпі", "зпі" );
ins( "зпе", "зьпе" ); ins( "зпя", "зьпя" ); ins( "зпю", "зьпю" ); ins( "зпё", "зьпё" ); ins( "зпі", "зьпі" );
ins( "зьсе", "зсе" ); ins( "зься", "зся" ); ins( "зьсю", "зсю" ); ins( "зьсё", "зсё" ); ins( "зьсі", "зсі" ); ins( "зьсь", "зсь" );
ins( "зсе", "зьсе" ); ins( "зся", "зься" ); ins( "зсю", "зьсю" ); ins( "зсё", "зьсё" ); ins( "зсі", "зьсі" ); ins( "зсь", "зьсь" );
ins( "зьфе", "зфе" ); ins( "зьфя", "зфя" ); ins( "зьфю", "зфю" ); ins( "зьфё", "зфё" ); ins( "зьфі", "зфі" );
ins( "зфе", "зьфе" ); ins( "зфя", "зьфя" ); ins( "зфю", "зьфю" ); ins( "зфё", "зьфё" ); ins( "зфі", "зьфі" );
ins( "зьхе", "зхе" ); ins( "зьхя", "зхя" ); ins( "зьхю", "зхю" ); ins( "зьхё", "зхё" ); ins( "зьхі", "зхі" );
ins( "зхе", "зьхе" ); ins( "зхя", "зьхя" ); ins( "зхю", "зьхю" ); ins( "зхё", "зьхё" ); ins( "зхі", "зьхі" );
ins( "зьце", "зце" ); ins( "зьця", "зця" ); ins( "зьцю", "зцю" ); ins( "зьцё", "зцё" ); ins( "зьці", "зці" ); ins( "зьць", "зць" );
ins( "зце", "зьце" ); ins( "зця", "зьця" ); ins( "зцю", "зьцю" ); ins( "зцё", "зьцё" ); ins( "зці", "зьці" ); ins( "зць", "зьць" );
ins( "сьбе", "сбе" ); ins( "сьбя", "сбя" ); ins( "сьбю", "сбю" ); ins( "сьбё", "сбё" ); ins( "сьбі", "сбі" );
ins( "сбе", "сьбе" ); ins( "сбя", "сьбя" ); ins( "сбю", "сьбю" ); ins( "сбё", "сьбё" ); ins( "сбі", "сьбі" );
ins( "сьве", "све" ); ins( "сьвя", "свя" ); ins( "сьвю", "свю" ); ins( "сьвё", "свё" ); ins( "сьві", "сві" );
ins( "све", "сьве" ); ins( "свя", "сьвя" ); ins( "свю", "сьвю" ); ins( "свё", "сьвё" ); ins( "сві", "зьві" );
ins( "сьдзе", "сдзе" ); ins( "сьдзя", "сдзя" ); ins( "сьдзю", "сдзю" ); ins( "сьдзё", "сдзё" ); ins( "сьдзі", "сдзі" ); ins( "сьдзь", "сдзь" );
ins( "сдзе", "сьдзе" ); ins( "сдзя", "сьдзя" ); ins( "сдзю", "сьдзю" ); ins( "сдзё", "сьдзё" ); ins( "сдзі", "сьдзі" ); ins( "сдзь", "сьдзь" );
ins( "сьзе", "сзе" ); ins( "сьзя", "сзя" ); ins( "сьзю", "сзю" ); ins( "сьзё", "сзё" ); ins( "сьзі", "сзі" ); ins( "сьзь", "сзь" );
ins( "сзе", "сьзе" ); ins( "сзя", "сьзя" ); ins( "сзю", "сьзю" ); ins( "сзё", "сьзё" ); ins( "сзі", "сьзі" ); ins( "сзь", "сьзь" );
ins( "сьле", "сле" ); ins( "сьля", "сля" ); ins( "сьлю", "слю" ); ins( "сьлё", "слё" ); ins( "сьлі", "слі" ); ins( "сьль", "сль" );
ins( "сле", "сьле" ); ins( "сля", "сьля" ); ins( "слю", "сьлю" ); ins( "слё", "сьлё" ); ins( "слі", "сьлі" ); ins( "сль", "сьль" );
ins( "сьме", "сме" ); ins( "сьмя", "смя" ); ins( "сьмю", "смю" ); ins( "сьмё", "смё" ); ins( "сьмі", "смі" );
ins( "сме", "сьме" ); ins( "смя", "сьмя" ); ins( "смю", "сьмю" ); ins( "смё", "сьмё" ); ins( "смі", "сьмі" );
ins( "сьне", "сне" ); ins( "сьня", "сня" ); ins( "сьню", "сню" ); ins( "сьнё", "снё" ); ins( "сьні", "сні" ); ins( "сьнь", "снь" );
ins( "сне", "сьне" ); ins( "сня", "сьня" ); ins( "сню", "сьню" ); ins( "снё", "сьнё" ); ins( "сні", "сьні" ); ins( "снь", "сьнь" );
ins( "сьпе", "спе" ); ins( "сьпя", "спя" ); ins( "сьпю", "спю" ); ins( "сьпё", "спё" ); ins( "сьпі", "спі" );
ins( "спе", "сьпе" ); ins( "спя", "сьпя" ); ins( "спю", "сьпю" ); ins( "спё", "сьпё" ); ins( "спі", "сьпі" );
ins( "сьсе", "ссе" ); ins( "сься", "сся" ); ins( "сьсю", "ссю" ); ins( "сьсё", "ссё" ); ins( "сьсі", "ссі" ); ins( "сьсь", "ссь" );
ins( "ссе", "сьсе" ); ins( "сся", "сься" ); ins( "ссю", "сьсю" ); ins( "ссё", "сьсё" ); ins( "ссі", "сьсі" ); ins( "ссь", "сьсь" );
ins( "сьфе", "сфе" ); ins( "сьфя", "сфя" ); ins( "сьфю", "сфю" ); ins( "сьфё", "сфё" ); ins( "сьфі", "сфі" );
ins( "сфе", "сьфе" ); ins( "сфя", "сьфя" ); ins( "сфю", "сьфю" ); ins( "сфё", "сьфё" ); ins( "сфі", "сьфі" );
ins( "сьхе", "схе" ); ins( "сьхя", "схя" ); ins( "сьхю", "схю" ); ins( "сьхё", "схё" ); ins( "сьхі", "схі" );
ins( "схе", "сьхе" ); ins( "схя", "сьхя" ); ins( "схю", "сьхю" ); ins( "схё", "сьхё" ); ins( "схі", "сьхі" );
ins( "сьце", "сце" ); ins( "сьця", "сця" ); ins( "сьцю", "сцю" ); ins( "сьцё", "сцё" ); ins( "сьці", "сці" ); ins( "сьць", "сць" );
ins( "сце", "сьце" ); ins( "сця", "сьця" ); ins( "сцю", "сьцю" ); ins( "сцё", "сьцё" ); ins( "сці", "сьці" ); ins( "сць", "сьць" );
ins( "цьбе", "цбе" ); ins( "цьбя", "цбя" ); ins( "цьбю", "цбю" ); ins( "цьбё", "цбё" ); ins( "цьбі", "цбі" );
ins( "цбе", "цьбе" ); ins( "цбя", "цьбя" ); ins( "цбю", "цьбю" ); ins( "цбё", "цьбё" ); ins( "цбі", "цьбі" );
ins( "цьве", "цве" ); ins( "цьвя", "цвя" ); ins( "цьвю", "цвю" ); ins( "цьвё", "цвё" ); ins( "цьві", "цві" );
ins( "цве", "цьве" ); ins( "цвя", "цьвя" ); ins( "цвю", "цьвю" ); ins( "цвё", "цьвё" ); ins( "цві", "цьві" );
ins( "цьдзе", "цдзе" ); ins( "цьдзя", "цдзя" ); ins( "цьдзю", "цдзю" ); ins( "цьдзё", "цдзё" ); ins( "цьдзі", "цдзі" ); ins( "цьдзь", "цдзь" );
ins( "цдзе", "цьдзе" ); ins( "цдзя", "цьдзя" ); ins( "цдзю", "цьдзю" ); ins( "цдзё", "цьдзё" ); ins( "цдзі", "цьдзі" ); ins( "цдзь", "цьдзь" );
ins( "цьзе", "цзе" ); ins( "цьзя", "цзя" ); ins( "цьзю", "цзю" ); ins( "цьзё", "цзё" ); ins( "цьзі", "цзі" ); ins( "цьзь", "цзь" );
ins( "цзе", "цьзе" ); ins( "цзя", "цьзя" ); ins( "цзю", "цьзю" ); ins( "цзё", "цьзё" ); ins( "цзі", "цьзі" ); ins( "цзь", "цьзь" );
ins( "цьле", "цле" ); ins( "цьля", "цля" ); ins( "цьлю", "цлю" ); ins( "цьлё", "цлё" ); ins( "цьлі", "цлі" ); ins( "цьль", "цль" );
ins( "цле", "цьле" ); ins( "цля", "цьля" ); ins( "цлю", "цьлю" ); ins( "цлё", "цьлё" ); ins( "цлі", "цьлі" ); ins( "цль", "цьль" );
ins( "цьме", "цме" ); ins( "цьмя", "цмя" ); ins( "цьмю", "цмю" ); ins( "цьмё", "цмё" ); ins( "цьмі", "цмі" );
ins( "цме", "цьме" ); ins( "цмя", "цьмя" ); ins( "цмю", "цьмю" ); ins( "цмё", "цьмё" ); ins( "цмі", "цьмі" );
ins( "цьне", "цне" ); ins( "цьня", "цня" ); ins( "цьню", "цню" ); ins( "цьнё", "цнё" ); ins( "цьні", "цні" ); ins( "цьнь", "цнь" );
ins( "цне", "цьне" ); ins( "цня", "цьня" ); ins( "цню", "цьню" ); ins( "цнё", "цьнё" ); ins( "цні", "цьні" ); ins( "цнь", "цьнь" );
ins( "цьпе", "цпе" ); ins( "цьпя", "цпя" ); ins( "цьпю", "цпю" ); ins( "цьпё", "цпё" ); ins( "цьпі", "цпі" );
ins( "цпе", "цьпе" ); ins( "цпя", "цьпя" ); ins( "цпю", "цьпю" ); ins( "цпё", "цьпё" ); ins( "цпі", "цьпі" );
ins( "цьсе", "цсе" ); ins( "цься", "цся" ); ins( "цьсю", "цсю" ); ins( "цьсё", "цсё" ); ins( "цьсі", "цсі" ); ins( "цьсь", "цсь" );
ins( "цсе", "цьсе" ); ins( "цся", "цься" ); ins( "цсю", "цьсю" ); ins( "цсё", "цьсё" ); ins( "цсі", "цьсі" ); ins( "цсь", "цьсь" );
ins( "цьфе", "цфе" ); ins( "цьфя", "цфя" ); ins( "цьфю", "цфю" ); ins( "цьфё", "цфё" ); ins( "цьфі", "цфі" );
ins( "цфе", "цьфе" ); ins( "цфя", "цьфя" ); ins( "цфю", "цьфю" ); ins( "цфё", "цьфё" ); ins( "цфі", "цьфі" );
ins( "цьце", "цце" ); ins( "цьця", "цця" ); ins( "цьцю", "ццю" ); ins( "цьцё", "ццё" ); ins( "цьці", "цці" ); ins( "цьць", "цць" );
ins( "цце", "цьце" ); ins( "цця", "цьця" ); ins( "ццю", "цьцю" ); ins( "ццё", "цьцё" ); ins( "цці", "цьці" ); ins( "цць", "цьць" );
ins( "дзьдзе", "ддзе" ); ins( "дзьдзя", "ддзя" ); ins( "дзьдзю", "ддзю" ); ins( "дзьдзё", "ддзё" ); ins( "дзьдзі", "ддзі" );
ins( "ддзе", "дзьдзе" ); ins( "ддзя", "дзьдзя" ); ins( "ддзю", "дзьдзю" ); ins( "ддзё", "дзьдзё" ); ins( "ддзі", "дзьдзі" );
ins( "з'е", "зье" ); ins( "з'я", "зья" ); ins( "з'ю", "зью" ); ins( "з'ё", "зьё" ); ins( "з'і", "зьі" );
ins( "зье", "з'е" ); ins( "зья", "з'я" ); ins( "зью", "з'ю" ); ins( "зьё", "з'ё" ); ins( "зьі", "з'і" );
ins( "зʼе", "зье" ); ins( "зʼя", "зья" ); ins( "зʼю", "зью" ); ins( "зʼё", "зьё" ); ins( "зʼі", "зьі" );
ins( "зье", "зʼе" ); ins( "зья", "зʼя" ); ins( "зью", "зʼю" ); ins( "зьё", "зʼё" ); ins( "зьі", "зʼі" );
ins( "з’е", "зье" ); ins( "з’я", "зья" ); ins( "з’ю", "зью" ); ins( "з’ё", "зьё" ); ins( "з’і", "зьі" );
ins( "зье", "з’е" ); ins( "зья", "з’я" ); ins( "зью", "з’ю" ); ins( "зьё", "з’ё" ); ins( "зьі", "з’і" );
}
};
std::vector< sptr< Dictionary::Class > > makeDictionaries() throw( std::exception )
{
static BelarusianLatinToClassicTable t0;
static BelarusianLatinToSchoolTable t1;
static BelarusianSchoolToClassicTable t2;
std::vector< sptr< Dictionary::Class > > dicts;
dicts.push_back( new Transliteration::TransliterationDictionary( "c31b24abf412abc9b23bb40a898f1040",
QCoreApplication::translate( "BelarusianTranslit", "Belarusian transliteration from latin to cyrillic (classic orthography)" ).toUtf8().data(),
QIcon( ":/flags/by.png" ), t0, false ) );
dicts.push_back( new Transliteration::TransliterationDictionary( "c31b24abf412abc9b23bb40a898f1041",
QCoreApplication::translate( "BelarusianTranslit", "Belarusian transliteration from latin to cyrillic (school orthography)" ).toUtf8().data(),
QIcon( ":/flags/by.png" ), t1, false ) );
dicts.push_back( new Transliteration::TransliterationDictionary( "c31b24abf412abc9b23bb40a898f1042",
QCoreApplication::translate( "BelarusianTranslit", "Belarusian transliteration (smoothes out the difference\n"
"between classic and school orthography in cyrillic)" ).toUtf8().data(),
QIcon( ":/flags/by.png" ), t2, false ) );
return dicts;
}
}

17
belarusiantranslit.hh Normal file
View file

@ -0,0 +1,17 @@
/* This file is (c) 2013 Maksim Tamkovicz <quendimax@gmail.com>
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
#ifndef __BELARUSIANTRANSLIT_HH_INCLUDED__
#define __BELARUSIANTRANSLIT_HH_INCLUDED__
#include <vector>
#include "dictionary.hh"
// Support for Belarusian transliteration
namespace BelarusianTranslit {
std::vector< sptr< Dictionary::Class > > makeDictionaries() throw( std::exception );
}
#endif

View file

@ -491,6 +491,9 @@ Class load() throw( exError )
applyBoolOption( c.transliteration.enableGreekTransliteration,
transliteration.namedItem( "enableGreekTransliteration" ) );
applyBoolOption( c.transliteration.enableBelarusianTransliteration,
transliteration.namedItem( "enableBelarusianTransliteration" ) );
QDomNode romaji = transliteration.namedItem( "romaji" );
if ( !romaji.isNull() )
@ -974,6 +977,12 @@ void save( Class const & c ) throw( exError )
opt.appendChild( dd.createTextNode( c.transliteration.enableGreekTransliteration ? "1":"0" ) );
transliteration.appendChild( opt );
// Belarusian translit
opt = dd.createElement( "enableBelarusianTransliteration" );
opt.appendChild( dd.createTextNode( c.transliteration.enableBelarusianTransliteration ? "1":"0" ) );
transliteration.appendChild( opt );
// Romaji
QDomElement romaji = dd.createElement( "romaji" );

View file

@ -297,13 +297,15 @@ struct Transliteration
bool enableRussianTransliteration;
bool enableGermanTransliteration;
bool enableGreekTransliteration;
bool enableBelarusianTransliteration;
Romaji romaji;
bool operator == ( Transliteration const & other ) const
{ return enableRussianTransliteration == other.enableRussianTransliteration &&
romaji == other.romaji &&
enableGermanTransliteration == other.enableGermanTransliteration &&
enableGreekTransliteration == other.enableGreekTransliteration;
enableGreekTransliteration == other.enableGreekTransliteration &&
enableBelarusianTransliteration == other.enableBelarusianTransliteration;
}
bool operator != ( Transliteration const & other ) const
@ -312,7 +314,8 @@ struct Transliteration
Transliteration():
enableRussianTransliteration( false ),
enableGermanTransliteration( false ),
enableGreekTransliteration( false )
enableGreekTransliteration( false ),
enableBelarusianTransliteration( false )
{}
};

View file

@ -173,6 +173,7 @@ HEADERS += folding.hh \
loaddictionaries.hh \
transliteration.hh \
romaji.hh \
belarusiantranslit.hh \
russiantranslit.hh \
german.hh \
website.hh \
@ -274,6 +275,7 @@ SOURCES += folding.cc \
loaddictionaries.cc \
transliteration.cc \
romaji.cc \
belarusiantranslit.cc \
russiantranslit.cc \
german.cc \
website.cc \

View file

@ -15,6 +15,7 @@
#include "russiantranslit.hh"
#include "german.hh"
#include "greektranslit.hh"
#include "belarusiantranslit.hh"
#include "website.hh"
#include "forvo.hh"
#include "programs.hh"
@ -243,6 +244,13 @@ void loadDictionaries( QWidget * parent, bool showInitially,
if ( cfg.transliteration.enableGreekTransliteration )
dictionaries.push_back( GreekTranslit::makeDictionary() );
// Make Belarusian transliteration
if ( cfg.transliteration.enableBelarusianTransliteration )
{
vector< sptr< Dictionary::Class > > dicts = BelarusianTranslit::makeDictionaries();
dictionaries.insert( dictionaries.end(), dicts.begin(), dicts.end() );
}
///// We create MediaWiki dicts syncronously, since they use netmgr
{

View file

@ -301,6 +301,26 @@
<translation>Не атрымалася зладаваць пазначанага рэсурсу.</translation>
</message>
</context>
<context>
<name>BelarusianTranslit</name>
<message>
<location filename="../belarusiantranslit.cc" line="416"/>
<source>Belarusian transliteration from latin to cyrillic (classic orthography)</source>
<translation>Беларуская трансьлітэрацыя з лаціны ў кірыліцу (клясычны правапіс)</translation>
</message>
<message>
<location filename="../belarusiantranslit.cc" line="419"/>
<source>Belarusian transliteration from latin to cyrillic (school orthography)</source>
<translation>Беларуская трансьлітэрацыя з лаціны ў кірыліцу (школьны правапіс)</translation>
</message>
<message>
<location filename="../belarusiantranslit.cc" line="422"/>
<source>Belarusian transliteration (smoothes out the difference
between classic and school orthography in cyrillic)</source>
<translation>Беларуская трансьлітэрацыя (згладжвае розьніцу
між клясычным і школьным правапісам)</translation>
</message>
</context>
<context>
<name>DictGroupWidget</name>
<message>
@ -743,12 +763,12 @@
<context>
<name>HunspellDictsModel</name>
<message>
<location filename="../sources.cc" line="1102"/>
<location filename="../sources.cc" line="1104"/>
<source>Enabled</source>
<translation>Улучана</translation>
</message>
<message>
<location filename="../sources.cc" line="1104"/>
<location filename="../sources.cc" line="1106"/>
<source>Name</source>
<translation>Назва</translation>
</message>
@ -1783,7 +1803,7 @@
<context>
<name>LoadDictionaries</name>
<message>
<location filename="../loaddictionaries.cc" line="215"/>
<location filename="../loaddictionaries.cc" line="216"/>
<source>Error loading dictionaries</source>
<translation>Памылка пры ладаваньня слоўнікаў</translation>
</message>
@ -2334,22 +2354,22 @@
<context>
<name>MediaWikisModel</name>
<message>
<location filename="../sources.cc" line="393"/>
<location filename="../sources.cc" line="395"/>
<source>Enabled</source>
<translation>Улучаны</translation>
</message>
<message>
<location filename="../sources.cc" line="395"/>
<location filename="../sources.cc" line="397"/>
<source>Name</source>
<translation>Назва</translation>
</message>
<message>
<location filename="../sources.cc" line="397"/>
<location filename="../sources.cc" line="399"/>
<source>Address</source>
<translation>Адрас</translation>
</message>
<message>
<location filename="../sources.cc" line="399"/>
<location filename="../sources.cc" line="401"/>
<source>Icon</source>
<translation>Значак</translation>
</message>
@ -2438,12 +2458,12 @@
<context>
<name>PathsModel</name>
<message>
<location filename="../sources.cc" line="891"/>
<location filename="../sources.cc" line="893"/>
<source>Path</source>
<translation>Шлях</translation>
</message>
<message>
<location filename="../sources.cc" line="893"/>
<location filename="../sources.cc" line="895"/>
<source>Recursive</source>
<translation>Рэкурсіўна</translation>
</message>
@ -3096,27 +3116,27 @@ It is not needed to select this option if you don&apos;t use such programs.</sou
<context>
<name>ProgramTypeEditor</name>
<message>
<location filename="../sources.cc" line="799"/>
<location filename="../sources.cc" line="801"/>
<source>Audio</source>
<translation>Аўдыё</translation>
</message>
<message>
<location filename="../sources.cc" line="801"/>
<location filename="../sources.cc" line="803"/>
<source>Plain Text</source>
<translation>Тэкст</translation>
</message>
<message>
<location filename="../sources.cc" line="803"/>
<location filename="../sources.cc" line="805"/>
<source>Html</source>
<translation>Html</translation>
</message>
<message>
<location filename="../sources.cc" line="805"/>
<location filename="../sources.cc" line="807"/>
<source>Prefix Match</source>
<translation>Паводле прэфіксу</translation>
</message>
<message>
<location filename="../sources.cc" line="807"/>
<location filename="../sources.cc" line="809"/>
<source>Unknown</source>
<translation>Няведама</translation>
</message>
@ -3142,27 +3162,27 @@ It is not needed to select this option if you don&apos;t use such programs.</sou
<context>
<name>ProgramsModel</name>
<message>
<location filename="../sources.cc" line="707"/>
<location filename="../sources.cc" line="709"/>
<source>Enabled</source>
<translation>Улучана</translation>
</message>
<message>
<location filename="../sources.cc" line="709"/>
<location filename="../sources.cc" line="711"/>
<source>Type</source>
<translation>Тып</translation>
</message>
<message>
<location filename="../sources.cc" line="711"/>
<location filename="../sources.cc" line="713"/>
<source>Name</source>
<translation>Назва</translation>
</message>
<message>
<location filename="../sources.cc" line="713"/>
<location filename="../sources.cc" line="715"/>
<source>Command Line</source>
<translation>Загадны радок</translation>
</message>
<message>
<location filename="../sources.cc" line="715"/>
<location filename="../sources.cc" line="717"/>
<source>Icon</source>
<translation>Значак</translation>
</message>
@ -3172,7 +3192,7 @@ It is not needed to select this option if you don&apos;t use such programs.</sou
<message>
<location filename="../groups_widgets.cc" line="1023"/>
<source>Dictionary search/filter (Ctrl+F)</source>
<translation>Фільтр слоўнікаў паводле назвы (Ctrl+F)</translation>
<translation>Фільтраваць слоўнікі паводле назвы (Ctrl+F)</translation>
</message>
<message>
<location filename="../groups_widgets.cc" line="1032"/>
@ -3284,12 +3304,12 @@ could be resized or managed in other ways.</source>
<context>
<name>SoundDirsModel</name>
<message>
<location filename="../sources.cc" line="997"/>
<location filename="../sources.cc" line="999"/>
<source>Path</source>
<translation>Шлях</translation>
</message>
<message>
<location filename="../sources.cc" line="999"/>
<location filename="../sources.cc" line="1001"/>
<source>Name</source>
<translation>Назва</translation>
</message>
@ -3486,34 +3506,39 @@ p, li { white-space: pre-wrap; }
<translation>Нямецкая трансьлітэрацыя</translation>
</message>
<message>
<location filename="../sources.ui" line="663"/>
<location filename="../sources.ui" line="648"/>
<source>Belarusian transliteration</source>
<translation>Беларуская трансьлітэрацыя</translation>
</message>
<message>
<location filename="../sources.ui" line="674"/>
<source>Enables to use the Latin alphabet to write the Japanese language</source>
<translation>Улучае лацінскі альфабэт для японскае мовы</translation>
</message>
<message>
<location filename="../sources.ui" line="666"/>
<location filename="../sources.ui" line="677"/>
<source>Japanese Romaji</source>
<translation>Японскі рамадзі</translation>
</message>
<message>
<location filename="../sources.ui" line="678"/>
<location filename="../sources.ui" line="689"/>
<source>Systems:</source>
<translation>Сыстэмы:</translation>
</message>
<message>
<location filename="../sources.ui" line="685"/>
<location filename="../sources.ui" line="696"/>
<source>The most widely used method of transcription of Japanese,
based on English phonology</source>
<translation>Найбольш ужываны мэтад транскрыпцыі японскай мовы
на падставе анґельскае фаналёґіі</translation>
</message>
<message>
<location filename="../sources.ui" line="689"/>
<location filename="../sources.ui" line="700"/>
<source>Hepburn</source>
<translation>Гэпбёрн</translation>
</message>
<message>
<location filename="../sources.ui" line="699"/>
<location filename="../sources.ui" line="710"/>
<source>The most regular system, having a one-to-one relation to the
kana writing systems. Standardized as ISO 3602
@ -3524,12 +3549,12 @@ Not implemented yet in GoldenDict.</source>
У GoldenDict покуль не падтрымліваецца.</translation>
</message>
<message>
<location filename="../sources.ui" line="705"/>
<location filename="../sources.ui" line="716"/>
<source>Nihon-shiki</source>
<translation>Ніхон-сікі</translation>
</message>
<message>
<location filename="../sources.ui" line="715"/>
<location filename="../sources.ui" line="726"/>
<source>Based on Nihon-shiki system, but modified for modern standard Japanese.
Standardized as ISO 3602
@ -3540,70 +3565,70 @@ Not implemented yet in GoldenDict.</source>
У GoldenDict покуль не падтрымліваецца.</translation>
</message>
<message>
<location filename="../sources.ui" line="721"/>
<location filename="../sources.ui" line="732"/>
<source>Kunrei-shiki</source>
<translation>Кунрэй-сікі</translation>
</message>
<message>
<location filename="../sources.ui" line="728"/>
<location filename="../sources.ui" line="739"/>
<source>Syllabaries:</source>
<translation>Складовыя абэцэды:</translation>
</message>
<message>
<location filename="../sources.ui" line="735"/>
<location filename="../sources.ui" line="746"/>
<source>Hiragana Japanese syllabary</source>
<translation>Складовая абэцэда Хіраґана</translation>
</message>
<message>
<location filename="../sources.ui" line="738"/>
<location filename="../sources.ui" line="749"/>
<source>Hiragana</source>
<translation>Хіраґана</translation>
</message>
<message>
<location filename="../sources.ui" line="745"/>
<location filename="../sources.ui" line="756"/>
<source>Katakana Japanese syllabary</source>
<translation>Складовая абэцэда Кітакана</translation>
</message>
<message>
<location filename="../sources.ui" line="748"/>
<location filename="../sources.ui" line="759"/>
<source>Katakana</source>
<translation>Катакана</translation>
</message>
<message>
<location filename="../sources.cc" line="107"/>
<location filename="../sources.cc" line="108"/>
<source>(not available in portable version)</source>
<translation>(не даступна ў пераноснай вэрсіі)</translation>
</message>
<message>
<location filename="../sources.cc" line="143"/>
<location filename="../sources.cc" line="170"/>
<location filename="../sources.cc" line="197"/>
<location filename="../sources.cc" line="144"/>
<location filename="../sources.cc" line="171"/>
<location filename="../sources.cc" line="198"/>
<source>Choose a directory</source>
<translation>Выбар каталёґу</translation>
</message>
<message>
<location filename="../sources.cc" line="157"/>
<location filename="../sources.cc" line="184"/>
<location filename="../sources.cc" line="224"/>
<location filename="../sources.cc" line="248"/>
<location filename="../sources.cc" line="272"/>
<location filename="../sources.cc" line="158"/>
<location filename="../sources.cc" line="185"/>
<location filename="../sources.cc" line="225"/>
<location filename="../sources.cc" line="249"/>
<location filename="../sources.cc" line="273"/>
<source>Confirm removal</source>
<translation>Пацьверджаньне прыбіраньня</translation>
</message>
<message>
<location filename="../sources.cc" line="158"/>
<location filename="../sources.cc" line="185"/>
<location filename="../sources.cc" line="159"/>
<location filename="../sources.cc" line="186"/>
<source>Remove directory &lt;b&gt;%1&lt;/b&gt; from the list?</source>
<translation>Прыбраць каталёґ &lt;b&gt;%1&lt;/b&gt; са сьпісу?</translation>
</message>
<message>
<location filename="../sources.cc" line="225"/>
<location filename="../sources.cc" line="249"/>
<location filename="../sources.cc" line="226"/>
<location filename="../sources.cc" line="250"/>
<source>Remove site &lt;b&gt;%1&lt;/b&gt; from the list?</source>
<translation>Прыбраць сайт &lt;b&gt;%1&lt;/b&gt; са сьпісу?</translation>
</message>
<message>
<location filename="../sources.cc" line="273"/>
<location filename="../sources.cc" line="274"/>
<source>Remove program &lt;b&gt;%1&lt;/b&gt; from the list?</source>
<translation>Прыбраць праґраму &lt;b&gt;%1&lt;/b&gt; са сьпісу?</translation>
</message>
@ -3632,22 +3657,22 @@ Not implemented yet in GoldenDict.</source>
<context>
<name>WebSitesModel</name>
<message>
<location filename="../sources.cc" line="550"/>
<location filename="../sources.cc" line="552"/>
<source>Enabled</source>
<translation>Улучаны</translation>
</message>
<message>
<location filename="../sources.cc" line="552"/>
<location filename="../sources.cc" line="554"/>
<source>Name</source>
<translation>Назва</translation>
</message>
<message>
<location filename="../sources.cc" line="554"/>
<location filename="../sources.cc" line="556"/>
<source>Address</source>
<translation>Адрас</translation>
</message>
<message>
<location filename="../sources.cc" line="556"/>
<location filename="../sources.cc" line="558"/>
<source>Icon</source>
<translation>Значак</translation>
</message>

View file

@ -301,6 +301,26 @@
<translation>Nie atrymałasia zładavać paznačanaha resursu.</translation>
</message>
</context>
<context>
<name>BelarusianTranslit</name>
<message>
<location filename="../belarusiantranslit.cc" line="416"/>
<source>Belarusian transliteration from latin to cyrillic (classic orthography)</source>
<translation>Biełaruskaja tranśliteracyja z łaciny ŭ kirylicu (klasyčny pravapis)</translation>
</message>
<message>
<location filename="../belarusiantranslit.cc" line="419"/>
<source>Belarusian transliteration from latin to cyrillic (school orthography)</source>
<translation>Biełaruskaja tranśliteracyja z łaciny ŭ kirylicu (školny pravapis)</translation>
</message>
<message>
<location filename="../belarusiantranslit.cc" line="422"/>
<source>Belarusian transliteration (smoothes out the difference
between classic and school orthography in cyrillic)</source>
<translation>Biełaruskaja tranśliteracyja (zhładžvaje roźnicu
miž klasyčnym i školnym pravapisam)</translation>
</message>
</context>
<context>
<name>DictGroupWidget</name>
<message>
@ -743,12 +763,12 @@
<context>
<name>HunspellDictsModel</name>
<message>
<location filename="../sources.cc" line="1102"/>
<location filename="../sources.cc" line="1104"/>
<source>Enabled</source>
<translation>Ułučana</translation>
</message>
<message>
<location filename="../sources.cc" line="1104"/>
<location filename="../sources.cc" line="1106"/>
<source>Name</source>
<translation>Nazva</translation>
</message>
@ -1783,7 +1803,7 @@
<context>
<name>LoadDictionaries</name>
<message>
<location filename="../loaddictionaries.cc" line="215"/>
<location filename="../loaddictionaries.cc" line="216"/>
<source>Error loading dictionaries</source>
<translation>Pamyłka pry ładavańnia słoŭnikaŭ</translation>
</message>
@ -2334,22 +2354,22 @@
<context>
<name>MediaWikisModel</name>
<message>
<location filename="../sources.cc" line="393"/>
<location filename="../sources.cc" line="395"/>
<source>Enabled</source>
<translation>Ułučany</translation>
</message>
<message>
<location filename="../sources.cc" line="395"/>
<location filename="../sources.cc" line="397"/>
<source>Name</source>
<translation>Nazva</translation>
</message>
<message>
<location filename="../sources.cc" line="397"/>
<location filename="../sources.cc" line="399"/>
<source>Address</source>
<translation>Adras</translation>
</message>
<message>
<location filename="../sources.cc" line="399"/>
<location filename="../sources.cc" line="401"/>
<source>Icon</source>
<translation>Značak</translation>
</message>
@ -2438,12 +2458,12 @@
<context>
<name>PathsModel</name>
<message>
<location filename="../sources.cc" line="891"/>
<location filename="../sources.cc" line="893"/>
<source>Path</source>
<translation>Šlach</translation>
</message>
<message>
<location filename="../sources.cc" line="893"/>
<location filename="../sources.cc" line="895"/>
<source>Recursive</source>
<translation>Rekursiŭna</translation>
</message>
@ -3096,27 +3116,27 @@ Nia treba ŭłučać hetaje opcyi, kali vaša nie karystajecca takimi pragramami
<context>
<name>ProgramTypeEditor</name>
<message>
<location filename="../sources.cc" line="799"/>
<location filename="../sources.cc" line="801"/>
<source>Audio</source>
<translation>Aŭdyjo</translation>
</message>
<message>
<location filename="../sources.cc" line="801"/>
<location filename="../sources.cc" line="803"/>
<source>Plain Text</source>
<translation>Tekst</translation>
</message>
<message>
<location filename="../sources.cc" line="803"/>
<location filename="../sources.cc" line="805"/>
<source>Html</source>
<translation>Html</translation>
</message>
<message>
<location filename="../sources.cc" line="805"/>
<location filename="../sources.cc" line="807"/>
<source>Prefix Match</source>
<translation>Pavodle prefiksu</translation>
</message>
<message>
<location filename="../sources.cc" line="807"/>
<location filename="../sources.cc" line="809"/>
<source>Unknown</source>
<translation>Niaviedama</translation>
</message>
@ -3142,27 +3162,27 @@ Nia treba ŭłučać hetaje opcyi, kali vaša nie karystajecca takimi pragramami
<context>
<name>ProgramsModel</name>
<message>
<location filename="../sources.cc" line="707"/>
<location filename="../sources.cc" line="709"/>
<source>Enabled</source>
<translation>Ułučana</translation>
</message>
<message>
<location filename="../sources.cc" line="709"/>
<location filename="../sources.cc" line="711"/>
<source>Type</source>
<translation>Typ</translation>
</message>
<message>
<location filename="../sources.cc" line="711"/>
<location filename="../sources.cc" line="713"/>
<source>Name</source>
<translation>Nazva</translation>
</message>
<message>
<location filename="../sources.cc" line="713"/>
<location filename="../sources.cc" line="715"/>
<source>Command Line</source>
<translation>Zahadny radok</translation>
</message>
<message>
<location filename="../sources.cc" line="715"/>
<location filename="../sources.cc" line="717"/>
<source>Icon</source>
<translation>Značak</translation>
</message>
@ -3172,7 +3192,7 @@ Nia treba ŭłučać hetaje opcyi, kali vaša nie karystajecca takimi pragramami
<message>
<location filename="../groups_widgets.cc" line="1023"/>
<source>Dictionary search/filter (Ctrl+F)</source>
<translation>Filtr słoŭnikaŭ pavodle nazvy (Ctrl+F)</translation>
<translation>Filtravać słoŭniki pavodle nazvy (Ctrl+F)</translation>
</message>
<message>
<location filename="../groups_widgets.cc" line="1032"/>
@ -3284,12 +3304,12 @@ could be resized or managed in other ways.</source>
<context>
<name>SoundDirsModel</name>
<message>
<location filename="../sources.cc" line="997"/>
<location filename="../sources.cc" line="999"/>
<source>Path</source>
<translation>Šlach</translation>
</message>
<message>
<location filename="../sources.cc" line="999"/>
<location filename="../sources.cc" line="1001"/>
<source>Name</source>
<translation>Nazva</translation>
</message>
@ -3486,34 +3506,39 @@ p, li { white-space: pre-wrap; }
<translation>Niamieckaja tranśliteracyja</translation>
</message>
<message>
<location filename="../sources.ui" line="663"/>
<location filename="../sources.ui" line="648"/>
<source>Belarusian transliteration</source>
<translation>Biełaruskaja tranśliteracyja</translation>
</message>
<message>
<location filename="../sources.ui" line="674"/>
<source>Enables to use the Latin alphabet to write the Japanese language</source>
<translation>Ułučaje łacinski alfabet dla japonskaje movy</translation>
</message>
<message>
<location filename="../sources.ui" line="666"/>
<location filename="../sources.ui" line="677"/>
<source>Japanese Romaji</source>
<translation>Japonski ramadzi</translation>
</message>
<message>
<location filename="../sources.ui" line="678"/>
<location filename="../sources.ui" line="689"/>
<source>Systems:</source>
<translation>Systemy:</translation>
</message>
<message>
<location filename="../sources.ui" line="685"/>
<location filename="../sources.ui" line="696"/>
<source>The most widely used method of transcription of Japanese,
based on English phonology</source>
<translation>Najbolš užyvany metad transkrypcyi japonskaj movy
na padstavie angielskaje fanalogii</translation>
</message>
<message>
<location filename="../sources.ui" line="689"/>
<location filename="../sources.ui" line="700"/>
<source>Hepburn</source>
<translation>Hepbiorn</translation>
</message>
<message>
<location filename="../sources.ui" line="699"/>
<location filename="../sources.ui" line="710"/>
<source>The most regular system, having a one-to-one relation to the
kana writing systems. Standardized as ISO 3602
@ -3524,12 +3549,12 @@ Standartyzavanaja u ISO 3602.
U GoldenDict pokul nie padtrymlivajecca.</translation>
</message>
<message>
<location filename="../sources.ui" line="705"/>
<location filename="../sources.ui" line="716"/>
<source>Nihon-shiki</source>
<translation>Nichon-siki</translation>
</message>
<message>
<location filename="../sources.ui" line="715"/>
<location filename="../sources.ui" line="726"/>
<source>Based on Nihon-shiki system, but modified for modern standard Japanese.
Standardized as ISO 3602
@ -3540,70 +3565,70 @@ Standartyzavanaja u ISO 3602.
U GoldenDict pokul nie padtrymlivajecca.</translation>
</message>
<message>
<location filename="../sources.ui" line="721"/>
<location filename="../sources.ui" line="732"/>
<source>Kunrei-shiki</source>
<translation>Kunrej-siki</translation>
</message>
<message>
<location filename="../sources.ui" line="728"/>
<location filename="../sources.ui" line="739"/>
<source>Syllabaries:</source>
<translation>Składovyja abecedy:</translation>
</message>
<message>
<location filename="../sources.ui" line="735"/>
<location filename="../sources.ui" line="746"/>
<source>Hiragana Japanese syllabary</source>
<translation>Składovaja abeceda Chiragana</translation>
</message>
<message>
<location filename="../sources.ui" line="738"/>
<location filename="../sources.ui" line="749"/>
<source>Hiragana</source>
<translation>Chiragana</translation>
</message>
<message>
<location filename="../sources.ui" line="745"/>
<location filename="../sources.ui" line="756"/>
<source>Katakana Japanese syllabary</source>
<translation>Składovaja abeceda Kitakana</translation>
</message>
<message>
<location filename="../sources.ui" line="748"/>
<location filename="../sources.ui" line="759"/>
<source>Katakana</source>
<translation>Katakana</translation>
</message>
<message>
<location filename="../sources.cc" line="107"/>
<location filename="../sources.cc" line="108"/>
<source>(not available in portable version)</source>
<translation>(nie dastupna ŭ pieranosnaj versii)</translation>
</message>
<message>
<location filename="../sources.cc" line="143"/>
<location filename="../sources.cc" line="170"/>
<location filename="../sources.cc" line="197"/>
<location filename="../sources.cc" line="144"/>
<location filename="../sources.cc" line="171"/>
<location filename="../sources.cc" line="198"/>
<source>Choose a directory</source>
<translation>Vybar katalogu</translation>
</message>
<message>
<location filename="../sources.cc" line="157"/>
<location filename="../sources.cc" line="184"/>
<location filename="../sources.cc" line="224"/>
<location filename="../sources.cc" line="248"/>
<location filename="../sources.cc" line="272"/>
<location filename="../sources.cc" line="158"/>
<location filename="../sources.cc" line="185"/>
<location filename="../sources.cc" line="225"/>
<location filename="../sources.cc" line="249"/>
<location filename="../sources.cc" line="273"/>
<source>Confirm removal</source>
<translation>Paćvierdžańnie prybirańnia</translation>
</message>
<message>
<location filename="../sources.cc" line="158"/>
<location filename="../sources.cc" line="185"/>
<location filename="../sources.cc" line="159"/>
<location filename="../sources.cc" line="186"/>
<source>Remove directory &lt;b&gt;%1&lt;/b&gt; from the list?</source>
<translation>Prybrać katalog &lt;b&gt;%1&lt;/b&gt; sa śpisu?</translation>
</message>
<message>
<location filename="../sources.cc" line="225"/>
<location filename="../sources.cc" line="249"/>
<location filename="../sources.cc" line="226"/>
<location filename="../sources.cc" line="250"/>
<source>Remove site &lt;b&gt;%1&lt;/b&gt; from the list?</source>
<translation>Prybrać sajt &lt;b&gt;%1&lt;/b&gt; sa śpisu?</translation>
</message>
<message>
<location filename="../sources.cc" line="273"/>
<location filename="../sources.cc" line="274"/>
<source>Remove program &lt;b&gt;%1&lt;/b&gt; from the list?</source>
<translation>Prybrać pragramu &lt;b&gt;%1&lt;/b&gt; sa śpisu?</translation>
</message>
@ -3632,22 +3657,22 @@ U GoldenDict pokul nie padtrymlivajecca.</translation>
<context>
<name>WebSitesModel</name>
<message>
<location filename="../sources.cc" line="550"/>
<location filename="../sources.cc" line="552"/>
<source>Enabled</source>
<translation>Ułučany</translation>
</message>
<message>
<location filename="../sources.cc" line="552"/>
<location filename="../sources.cc" line="554"/>
<source>Name</source>
<translation>Nazva</translation>
</message>
<message>
<location filename="../sources.cc" line="554"/>
<location filename="../sources.cc" line="556"/>
<source>Address</source>
<translation>Adras</translation>
</message>
<message>
<location filename="../sources.cc" line="556"/>
<location filename="../sources.cc" line="558"/>
<source>Icon</source>
<translation>Značak</translation>
</message>

View file

@ -80,6 +80,7 @@ Sources::Sources( QWidget * parent, Config::Paths const & paths,
ui.enableRussianTransliteration->setChecked( trs.enableRussianTransliteration );
ui.enableGermanTransliteration->setChecked( trs.enableGermanTransliteration );
ui.enableGreekTransliteration->setChecked( trs.enableGreekTransliteration );
ui.enableBelarusianTransliteration->setChecked( trs.enableBelarusianTransliteration );
ui.enableRomaji->setChecked( trs.romaji.enable );
ui.enableHepburn->setChecked( trs.romaji.enableHepburn );
ui.enableNihonShiki->setChecked( trs.romaji.enableNihonShiki );
@ -293,6 +294,7 @@ Config::Transliteration Sources::getTransliteration() const
tr.enableRussianTransliteration = ui.enableRussianTransliteration->isChecked();
tr.enableGermanTransliteration = ui.enableGermanTransliteration->isChecked();
tr.enableGreekTransliteration = ui.enableGreekTransliteration->isChecked();
tr.enableBelarusianTransliteration = ui.enableBelarusianTransliteration->isChecked();
tr.romaji.enable = ui.enableRomaji->isChecked();
tr.romaji.enableHepburn = ui.enableHepburn->isChecked();
tr.romaji.enableNihonShiki = ui.enableNihonShiki->isChecked();

View file

@ -642,6 +642,17 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="enableBelarusianTransliteration">
<property name="text">
<string>Belarusian transliteration</string>
</property>
<property name="icon">
<iconset resource="flags.qrc">
<normaloff>:/flags/by.png</normaloff>:/flags/by.png</iconset>
</property>
</widget>
</item>
</layout>
</item>
<item>