replace sprintf except for the most trivial cases
This commit is contained in:
parent
f62a76f59c
commit
c34e945299
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0" language="lt_LT">
|
||||
<!DOCTYPE TS><TS>
|
||||
<context>
|
||||
<name>AdvSearch</name>
|
||||
<message>
|
||||
@ -35,10 +33,6 @@
|
||||
<source>other</source>
|
||||
<translation>kita</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cannot execute pure negative query. Please enter common terms in the 'any words' field</source>
|
||||
<translation>Nepavyksta vykdyti neigiamos užklausos. Prašome įvesti bendrus raktinius žodžius 'bet kokie žodžiai' laukelyje</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>AdvSearchBase</name>
|
||||
@ -143,8 +137,8 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>.
|
||||
Click Cancel if you want to edit the configuration file before indexation starts, or Ok to let it proceed.</source>
|
||||
<translation>Paspauskite Nutraukti, jei norite redaguoti nustatymų bylą prieš prasidedant indeksavimui arba spauskite Gerai jai vykti. </translation>
|
||||
Click Cancel if you want to edit the configuration file before indexing starts, or Ok to let it proceed.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -450,6 +444,14 @@ Do you want to start the preferences dialog ?</source>
|
||||
<translation>Nurodyta peržiūros programa šiam mime tipui %1: %2 nerandama.
|
||||
Ar norėtumete iššaukti nustatymų langą?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Can't access file: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Can't uncompress file: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>RclMainBase</name>
|
||||
@ -581,6 +583,26 @@ Ar norėtumete iššaukti nustatymų langą?</translation>
|
||||
<source>&Show missing helpers</source>
|
||||
<translation>&Trūkstamos pagalbinės programos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PgDown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Shift+Home, Ctrl+S, Ctrl+Q, Ctrl+S</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PgUp</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Full Screen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>F11</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ResList</name>
|
||||
@ -596,10 +618,6 @@ Ar norėtumete iššaukti nustatymų langą?</translation>
|
||||
<source>&Preview</source>
|
||||
<translation>&Peržiūra</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Edit</source>
|
||||
<translation>&Redaguoti</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Copy &File Name</source>
|
||||
<translation>Kopijuoti &Bylos vardą</translation>
|
||||
@ -632,14 +650,6 @@ Ar norėtumete iššaukti nustatymų langą?</translation>
|
||||
<source><p><b>No results found</b><br></source>
|
||||
<translation><p><b>Nerasta rezultatų</b><br></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Documents <b>%d-%d</b> out of at least <b>%d</b> for </source>
|
||||
<translation>Dokumentai <b>%d-%d</b> iš bent <b>%d</b> </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Documents <b>%d-%d</b> for </source>
|
||||
<translation>Dokumentai <b>%d-%d</b> </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Previous</source>
|
||||
<translation>Ankstesnis</translation>
|
||||
@ -676,6 +686,22 @@ Ar norėtumete iššaukti nustatymų langą?</translation>
|
||||
<source>&Open Parent document/folder</source>
|
||||
<translation>Atidaryti &Aukštesnio lygio dokumentus/direktorijas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Documents</source>
|
||||
<translation>Dokumentai</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>out of at least</source>
|
||||
<translation>iš bent</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>for</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Open</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SSearch</name>
|
||||
@ -855,8 +881,12 @@ Ar norėtumete iššaukti nustatymų langą?</translation>
|
||||
<translation>Raktinis žodis</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Count</source>
|
||||
<translation>Suskaičiuoti</translation>
|
||||
<source>No db info.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Doc. / Tot.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -893,6 +923,18 @@ Ar norėtumete iššaukti nustatymų langą?</translation>
|
||||
<source>No expansion found</source>
|
||||
<translation>Nerasta praplėtimų</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Term</source>
|
||||
<translation type="unfinished">Raktinis žodis</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Doc. / Tot.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Index: %1 documents, average length %2 terms</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UIPrefsDialog</name>
|
||||
@ -1110,6 +1152,18 @@ Didelės apimties dokumentams gali lėtai veikti.</translation>
|
||||
<source>Display category filter as toolbar instead of button panel (needs restart).</source>
|
||||
<translation>Kategorijų filtrą rodyti kaip įrankų juostą (reikalauja perkrovimo).</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The words in the list will be automatically turned to ext:xxx clauses in the query language entry.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Query language magic file name suffixes.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enable</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ViewAction</name>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -34,10 +34,6 @@
|
||||
<source>other</source>
|
||||
<translation>diğer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cannot execute pure negative query. Please enter common terms in the 'any words' field</source>
|
||||
<translation type="obsolete">Tamamen negatif sorgu çalıştırılamaz. Lütfen 'herhangi bir sözcük' alanına genel ifadeler girin</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>AdvSearchBase</name>
|
||||
@ -49,10 +45,6 @@
|
||||
<source>Search for <br>documents<br>satisfying:</source>
|
||||
<translation>Uyan <br>belgeleri<br>ara:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>All non blank fields will be combined with OR or AND conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored.</source>
|
||||
<translation type="obsolete">Tüm boş alanlar VEYA ya da VE bağlaçları ile birleştirilecek. <br> "Herhangi biri" "Tümü" ve "Hiçbiri" alan tipleri basit sözcüklerin karışımını ve çift tırnak içine alınmış ifadeleri kabul edebilir.<br>Veri içermeyen alanlar yoksayılır.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Delete clause</source>
|
||||
<translation>İfadeyi sil</translation>
|
||||
@ -132,10 +124,6 @@
|
||||
</context>
|
||||
<context>
|
||||
<name>Main</name>
|
||||
<message>
|
||||
<source>Configuration problem: </source>
|
||||
<translation type="obsolete">Yapılandırma sorunu: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Configuration problem (dynconf</source>
|
||||
<translation>Yapılandırma sorunu</translation>
|
||||
@ -165,10 +153,6 @@ Click Cancel if you want to edit the configuration file before indexing starts,
|
||||
<source>Cannot create temporary directory</source>
|
||||
<translation>Geçici dizin oluşturulamadı</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>File does not exist</source>
|
||||
<translation type="obsolete">Dosya yok</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cancel</source>
|
||||
<translation>İptal</translation>
|
||||
@ -210,49 +194,6 @@ Click Cancel if you want to edit the configuration file before indexing starts,
|
||||
<translation type="unfinished">Eşleşme Şa&rtı</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>PreviewBase</name>
|
||||
<message>
|
||||
<source>Preview</source>
|
||||
<translation type="obsolete">Önizle</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Preview 1</source>
|
||||
<translation type="obsolete">Önizleme 1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Search for:</source>
|
||||
<translation type="obsolete">A&ra:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Next</source>
|
||||
<translation type="obsolete">&Sonraki</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Alt+N</source>
|
||||
<translation type="obsolete">Alt+S</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Previous</source>
|
||||
<translation type="obsolete">&Önceki</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Alt+P</source>
|
||||
<translation type="obsolete">Alt+Ö</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Clear</source>
|
||||
<translation type="obsolete">Temizle</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Match &Case</source>
|
||||
<translation type="obsolete">Eşleşme Şa&rtı</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Alt+C</source>
|
||||
<translation type="obsolete">Alt+R</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>PreviewTextEdit</name>
|
||||
<message>
|
||||
@ -331,33 +272,6 @@ Click Cancel if you want to edit the configuration file before indexing starts,
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QtGuiResListPager</name>
|
||||
<message>
|
||||
<source><p><b>No results found</b><br></source>
|
||||
<translation type="obsolete"><p><b>Sonuç bulunamadı</b><br></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Previous</source>
|
||||
<translation type="obsolete">Önceki</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Next</source>
|
||||
<translation type="obsolete">Sonraki</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Unavailable document</source>
|
||||
<translation type="obsolete">Erişilemez belge</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Preview</source>
|
||||
<translation type="obsolete">Önizle</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>(show query)</source>
|
||||
<translation type="obsolete">(sorguyu göster)</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>RclMain</name>
|
||||
<message>
|
||||
@ -404,18 +318,10 @@ Click Cancel if you want to edit the configuration file before indexing starts,
|
||||
<source>Query results</source>
|
||||
<translation>Arama Sonuçları</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Query results (sorted)</source>
|
||||
<translation type="obsolete">Arama sonuçları (sıralanmış)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cannot retrieve document info from database</source>
|
||||
<translation>Veritabanından belge bilgileri alınamadı</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cannot access document file: </source>
|
||||
<translation type="obsolete">Belge dosyasına erişilemedi: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Warning</source>
|
||||
<translation>Uyarı</translation>
|
||||
@ -428,21 +334,11 @@ Click Cancel if you want to edit the configuration file before indexing starts,
|
||||
<source>This search is not active any more</source>
|
||||
<translation>Bu arama atrık etkin değil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No external viewer configured for mime type </source>
|
||||
<translation type="obsolete">Mime tipi için bir dış gösterici ayarlanmamış</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bad viewer command line for %1: [%2]
|
||||
Please check the mimeconf file</source>
|
||||
<translation>%1 için uygun olmayan komut: [%2]
|
||||
Lütfen mimeconf dosyasını kontrol edin</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The viewer specified in mimeconf for %1: %2 is not found.
|
||||
Do you want to start the preferences dialog ?</source>
|
||||
<translation type="obsolete">%1 için mimeconf dosyasında belirtilen gösterici: %2 bulunamadı.
|
||||
Tercihler penceresini açmak ister misiniz?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cannot extract document or create temporary file</source>
|
||||
@ -456,10 +352,6 @@ Tercihler penceresini açmak ister misiniz?</translation>
|
||||
<source>About Recoll</source>
|
||||
<translation>Recoll Hakkında</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Starting help browser </source>
|
||||
<translation type="obsolete">Yardım tarayıcıyı başlat </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>History data</source>
|
||||
<translation>Geçmiş verileri</translation>
|
||||
@ -717,22 +609,10 @@ Do you want to start the preferences dialog ?</source>
|
||||
<source>Result list</source>
|
||||
<translation>Sonuç listesi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show query details</source>
|
||||
<translation type="obsolete">Sorgu detaylarını göster</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source><p><b>No results found</b><br></source>
|
||||
<translation type="unfinished"><p><b>Sonuç bulunamadı</b><br></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Documents <b>%1-%2</b> out of at least <b>%3</b> for </source>
|
||||
<translation type="obsolete">Toplam <b>%3</b> sonucun <b>%1-%2</b> arası, sorgu </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Documents <b>%1-%2</b> for </source>
|
||||
<translation type="obsolete">Sonuçlar <b>%1-%2</b> arası, sorgu </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>(show query)</source>
|
||||
<translation>(sorguyu göster)</translation>
|
||||
@ -753,10 +633,6 @@ Do you want to start the preferences dialog ?</source>
|
||||
<source>&Preview</source>
|
||||
<translation>&Önizle</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Edit</source>
|
||||
<translation>&Düzenle</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Copy &File Name</source>
|
||||
<translation>&Dosya Adını Kopyala</translation>
|
||||
@ -769,10 +645,6 @@ Do you want to start the preferences dialog ?</source>
|
||||
<source>Find &similar documents</source>
|
||||
<translation>Benzer belgeleri &bul</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>P&arent document/folder</source>
|
||||
<translation type="obsolete">Ü&st belge/dizin</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Query details</source>
|
||||
<translation>Sorgu detayları</translation>
|
||||
@ -789,14 +661,6 @@ Do you want to start the preferences dialog ?</source>
|
||||
<source>Document history</source>
|
||||
<translation type="unfinished">Belge geçmişi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Documents <b>%d-%d</b> out of at least <b>%d</b> for </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Documents <b>%d-%d</b> for </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Preview</source>
|
||||
<translation type="unfinished">Önizle</translation>
|
||||
@ -821,6 +685,22 @@ Do you want to start the preferences dialog ?</source>
|
||||
<source>&Open Parent document/folder</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Open</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Documents</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>out of at least</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>for</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SSearch</name>
|
||||
@ -887,10 +767,6 @@ Do you want to start the preferences dialog ?</source>
|
||||
<source>Start query</source>
|
||||
<translation>Sorguyu başlat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Choose type of search: any term, all terms, filename with possible wildcards.</source>
|
||||
<translation type="obsolete">Arama tipini seçin: herhangi bir sözcük, tüm sözcükler, özel karakterler de kullanılabilen dosya adı.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter search terms here. Type ESC SPC for completions of current term.</source>
|
||||
<translation>Aranacak ifadeleri buraya girin. Geçerli sözcüğün tamamlanması için ESC SPACE kullanın.</translation>
|
||||
@ -1003,10 +879,6 @@ Do you want to start the preferences dialog ?</source>
|
||||
<source>Term</source>
|
||||
<translation>İfade</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Count</source>
|
||||
<translation type="obsolete">Sayı</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No db info.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@ -1136,22 +1008,6 @@ Do you want to start the preferences dialog ?</source>
|
||||
<source>Maximum text size highlighted for preview (megabytes)</source>
|
||||
<translation>Önizlemede vurgulanacak en fazla metin boyutu (MB)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>HTML help browser</source>
|
||||
<translation type="obsolete">HTML yardım tarayıcı</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select file</source>
|
||||
<translation type="obsolete">Dosya seç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Choose external viewer applications</source>
|
||||
<translation type="obsolete">Dış gösterici uygulamaları seç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Manage</source>
|
||||
<translation type="obsolete">Yönet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Auto-start simple search on whitespace entry.</source>
|
||||
<translation>Beyaz alan girdisi olduğunda basit aramayı otomatik olarak başlat.</translation>
|
||||
@ -1503,10 +1359,6 @@ This will help searching very big text files (ie: log files).</source>
|
||||
<source>No aspell usage</source>
|
||||
<translation>Aspell kullanımı yok</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Disables use of aspell to generate spelling approximation in the term explorer tool.<br> Useful is aspell is absent or does not work. </source>
|
||||
<translation type="obsolete">İfade gösterme aracı için heceleme yakınlığı oluşturma özelliğini kapatır.<br> Aspell olmadığında ya da çalışmadığında kullanışlıdır. </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Aspell language</source>
|
||||
<translation>Aspell dili</translation>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -614,10 +614,6 @@ Do you want to start the preferences dialog ?</source>
|
||||
<source>&Preview</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Edit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Copy &File Name</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@ -650,14 +646,6 @@ Do you want to start the preferences dialog ?</source>
|
||||
<source><p><b>No results found</b><br></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Documents <b>%d-%d</b> out of at least <b>%d</b> for </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Documents <b>%d-%d</b> for </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Previous</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@ -694,6 +682,22 @@ Do you want to start the preferences dialog ?</source>
|
||||
<source>&Open Parent document/folder</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Open</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Documents</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>out of at least</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>for</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SSearch</name>
|
||||
|
||||
@ -90,6 +90,7 @@ TRANSLATIONS = \
|
||||
../qtgui/i18n/recoll_de.ts \
|
||||
../qtgui/i18n/recoll_fr.ts \
|
||||
../qtgui/i18n/recoll_it.ts \
|
||||
../qtgui/i18n/recoll_lt.ts \
|
||||
../qtgui/i18n/recoll_ru.ts \
|
||||
../qtgui/i18n/recoll_tr.ts \
|
||||
../qtgui/i18n/recoll_uk.ts \
|
||||
|
||||
@ -127,8 +127,9 @@ ResList::~ResList()
|
||||
#endif
|
||||
static const char* strings[] = {
|
||||
QT_TR_NOOP("<p><b>No results found</b><br>"),
|
||||
QT_TR_NOOP("Documents <b>%d-%d</b> out of at least <b>%d</b> for "),
|
||||
QT_TR_NOOP("Documents <b>%d-%d</b> for "),
|
||||
QT_TR_NOOP("Documents"),
|
||||
QT_TR_NOOP("out of at least"),
|
||||
QT_TR_NOOP("for"),
|
||||
QT_TR_NOOP("Previous"),
|
||||
QT_TR_NOOP("Next"),
|
||||
QT_TR_NOOP("Unavailable document"),
|
||||
|
||||
@ -225,7 +225,7 @@ void SpellW::doExpand()
|
||||
it != res.entries.end(); it++) {
|
||||
#endif
|
||||
LOGDEB(("SpellW::expand: %6d [%s]\n", it->wcf, it->term.c_str()));
|
||||
char num[20];
|
||||
char num[30];
|
||||
if (it->wcf)
|
||||
sprintf(num, "%d / %d", it->docs, it->wcf);
|
||||
else
|
||||
|
||||
@ -7,6 +7,10 @@ static char rcsid[] = "@(#$Id: reslistpager.cpp,v 1.7 2008-12-16 14:20:10 dockes
|
||||
#include <math.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <sstream>
|
||||
using std::ostringstream;
|
||||
using std::endl;
|
||||
|
||||
#include "reslistpager.h"
|
||||
#include "debuglog.h"
|
||||
#include "rclconfig.h"
|
||||
@ -79,7 +83,7 @@ void ResListPager::displayPage()
|
||||
if (m_hiliter == 0)
|
||||
m_hiliter = &g_hiliter;
|
||||
|
||||
string chunk;
|
||||
ostringstream chunk;
|
||||
|
||||
// Display list header
|
||||
// We could use a <title> but the textedit doesnt display
|
||||
@ -89,65 +93,62 @@ void ResListPager::displayPage()
|
||||
// gets confused. Hence the use of the 'chunk' text
|
||||
// accumulator
|
||||
// Also note that there can be results beyond the estimated resCnt.
|
||||
chunk = "<html><head><meta http-equiv=\"content-type\""
|
||||
"content=\"text/html; charset=utf-8\"></head><body>";
|
||||
chunk += pageTop();
|
||||
chunk += "<p><font size=+1><b>";
|
||||
chunk += m_docSource->title();
|
||||
chunk += "</b></font>"
|
||||
" ";
|
||||
chunk << "<html><head><meta http-equiv=\"content-type\""
|
||||
"content=\"text/html; charset=utf-8\"></head><body>"
|
||||
<< pageTop()
|
||||
<< "<p><font size=+1><b>"
|
||||
<< m_docSource->title()
|
||||
<< "</b></font> ";
|
||||
|
||||
if (pageEmpty()) {
|
||||
chunk += trans("<p><b>No results found</b><br>");
|
||||
chunk << trans("<p><b>No results found</b><br>");
|
||||
vector<string>uterms;
|
||||
m_docSource->getUTerms(uterms);
|
||||
if (!uterms.empty()) {
|
||||
vector<string> spellings;
|
||||
suggest(uterms, spellings);
|
||||
if (!spellings.empty()) {
|
||||
chunk +=
|
||||
chunk <<
|
||||
trans("<p><i>Alternate spellings (accents suppressed): </i>");
|
||||
for (vector<string>::iterator it = spellings.begin();
|
||||
it != spellings.end(); it++) {
|
||||
chunk += *it;
|
||||
chunk += " ";
|
||||
chunk << *it;
|
||||
chunk << " ";
|
||||
}
|
||||
chunk += "</p>";
|
||||
chunk << "</p>";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
unsigned int resCnt = m_docSource->getResCnt();
|
||||
if (m_winfirst + m_respage.size() < resCnt) {
|
||||
string f1 = trans("Documents <b>%d-%d</b> out of at least <b>%d</b> for ");
|
||||
char buf[1024];
|
||||
snprintf(buf, 1023, f1.c_str(), m_winfirst+1,
|
||||
m_winfirst + m_respage.size(), resCnt);
|
||||
chunk += buf;
|
||||
chunk << trans("Documents") << " <b>" << m_winfirst + 1
|
||||
<< "-" << m_winfirst + m_respage.size() << "</b> "
|
||||
<< trans("out of at least") << " "
|
||||
<< resCnt << " " << trans("for") << " " ;
|
||||
} else {
|
||||
string f1 = trans("Documents <b>%d-%d</b> for ");
|
||||
char buf[1024];
|
||||
snprintf(buf, 1023, f1.c_str(), m_winfirst + 1,
|
||||
m_winfirst + m_respage.size());
|
||||
chunk += buf;
|
||||
chunk << trans("Documents") << " <b>"
|
||||
<< m_winfirst + 1 << "-" << m_winfirst + m_respage.size()
|
||||
<< "</b> " << trans("for") << " ";
|
||||
}
|
||||
}
|
||||
chunk += detailsLink();
|
||||
chunk << detailsLink();
|
||||
if (hasPrev() || hasNext()) {
|
||||
chunk += " ";
|
||||
chunk << " ";
|
||||
if (hasPrev()) {
|
||||
chunk += "<a href=\"" + prevUrl() + "\"><b>";
|
||||
chunk += trans("Previous");
|
||||
chunk += "</b></a> ";
|
||||
chunk << "<a href=\"" + prevUrl() + "\"><b>"
|
||||
<< trans("Previous")
|
||||
<< "</b></a> ";
|
||||
}
|
||||
if (hasNext()) {
|
||||
chunk += "<a href=\""+ nextUrl() + "\"><b>";
|
||||
chunk += trans("Next");
|
||||
chunk += "</b></a>";
|
||||
chunk << "<a href=\""+ nextUrl() + "\"><b>"
|
||||
<< trans("Next")
|
||||
<< "</b></a>";
|
||||
}
|
||||
}
|
||||
chunk += "</p>";
|
||||
chunk << "</p>";
|
||||
|
||||
append(chunk);
|
||||
append(chunk.rdbuf()->str());
|
||||
chunk.rdbuf()->str("");
|
||||
if (pageEmpty())
|
||||
return;
|
||||
|
||||
@ -169,7 +170,7 @@ void ResListPager::displayPage()
|
||||
percent = doc.pc;
|
||||
}
|
||||
// Percentage of 'relevance'
|
||||
char perbuf[10];
|
||||
char perbuf[20];
|
||||
sprintf(perbuf, "%3d%% ", percent);
|
||||
|
||||
// Determine icon to display if any
|
||||
@ -227,12 +228,10 @@ void ResListPager::displayPage()
|
||||
string richabst = lr.front();
|
||||
|
||||
// Links;
|
||||
string linksbuf;
|
||||
char vlbuf[100];
|
||||
ostringstream linksbuf;
|
||||
if (canIntern(doc.mimetype, RclConfig::getMainConfig())) {
|
||||
sprintf(vlbuf, "\"P%d\"", docnumforlinks);
|
||||
linksbuf += string("<a href=") + vlbuf + ">" + trans("Preview")
|
||||
+ "</a> ";
|
||||
linksbuf << "<a href=\"P" << docnumforlinks << "\">"
|
||||
<< trans("Preview") << "</a> ";
|
||||
}
|
||||
|
||||
string apptag;
|
||||
@ -241,19 +240,17 @@ void ResListPager::displayPage()
|
||||
apptag = it->second;
|
||||
|
||||
if (!RclConfig::getMainConfig()->getMimeViewerDef(doc.mimetype, apptag).empty()) {
|
||||
sprintf(vlbuf, "E%d", docnumforlinks);
|
||||
linksbuf += string("<a href=") + vlbuf + ">" + trans("Open")
|
||||
+ "</a>";
|
||||
linksbuf << "<a href=\"E" << docnumforlinks << "\">"
|
||||
<< trans("Open") << "</a>";
|
||||
}
|
||||
|
||||
// Build the result list paragraph:
|
||||
chunk = "";
|
||||
|
||||
// Subheader: this is used by history
|
||||
if (!sh.empty())
|
||||
chunk += "<p><b>" + sh + "</p>\n<p>";
|
||||
chunk << "<p><b>" << sh << "</p>\n<p>";
|
||||
else
|
||||
chunk += "<p>";
|
||||
chunk << "<p>";
|
||||
|
||||
// Configurable stuff
|
||||
map<string,string> subs;
|
||||
@ -263,7 +260,7 @@ void ResListPager::displayPage()
|
||||
subs["i"] = doc.ipath;
|
||||
subs["K"] = !doc.meta[Rcl::Doc::keykw].empty() ?
|
||||
escapeHtml(doc.meta[Rcl::Doc::keykw]) + "<br>" : "";
|
||||
subs["L"] = linksbuf;
|
||||
subs["L"] = linksbuf.rdbuf()->str();
|
||||
subs["N"] = numbuf;
|
||||
subs["M"] = doc.mimetype;
|
||||
subs["R"] = perbuf;
|
||||
@ -276,31 +273,32 @@ void ResListPager::displayPage()
|
||||
|
||||
string formatted;
|
||||
pcSubst(parFormat(), formatted, subs);
|
||||
chunk += formatted;
|
||||
chunk << formatted;
|
||||
|
||||
chunk += "</p>\n";
|
||||
chunk << "</p>" << endl;
|
||||
|
||||
LOGDEB2(("Chunk: [%s]\n", (const char *)chunk.c_str()));
|
||||
append(chunk, i, doc);
|
||||
LOGDEB2(("Chunk: [%s]\n", (const char *)chunk.rdbuf()->str().c_str()));
|
||||
append(chunk.rdbuf()->str(), i, doc);
|
||||
chunk.rdbuf()->str("");
|
||||
}
|
||||
|
||||
// Footer
|
||||
chunk = "<p align=\"center\">";
|
||||
chunk << "<p align=\"center\">";
|
||||
if (hasPrev() || hasNext()) {
|
||||
if (hasPrev()) {
|
||||
chunk += "<a href=\"" + prevUrl() + "\"><b>";
|
||||
chunk += trans("Previous");
|
||||
chunk += "</b></a> ";
|
||||
chunk << "<a href=\"" + prevUrl() + "\"><b>"
|
||||
<< trans("Previous")
|
||||
<< "</b></a> ";
|
||||
}
|
||||
if (hasNext()) {
|
||||
chunk += "<a href=\""+ nextUrl() + "\"><b>";
|
||||
chunk += trans("Next");
|
||||
chunk += "</b></a>";
|
||||
chunk << "<a href=\""+ nextUrl() + "\"><b>"
|
||||
<< trans("Next")
|
||||
<< "</b></a>";
|
||||
}
|
||||
}
|
||||
chunk += "</p>\n";
|
||||
chunk += "</body></html>\n";
|
||||
append(chunk);
|
||||
chunk << "</p>" << endl;
|
||||
chunk << "</body></html>" << endl;
|
||||
append(chunk.rdbuf()->str());
|
||||
}
|
||||
|
||||
// Default implementations for things that should be implemented by
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user