replace sprintf except for the most trivial cases

This commit is contained in:
Jean-Francois Dockes 2010-11-15 11:28:13 +01:00
parent f62a76f59c
commit c34e945299
12 changed files with 228 additions and 4273 deletions

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

View File

@ -1,6 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS><TS>
<!DOCTYPE TS>
<TS version="2.0" language="lt_LT">
<context> <context>
<name>AdvSearch</name> <name>AdvSearch</name>
<message> <message>
@ -35,10 +33,6 @@
<source>other</source> <source>other</source>
<translation>kita</translation> <translation>kita</translation>
</message> </message>
<message>
<source>Cannot execute pure negative query. Please enter common terms in the &apos;any words&apos; field</source>
<translation>Nepavyksta vykdyti neigiamos užklausos. Prašome įvesti bendrus raktinius žodžius &apos;bet kokie žodžiai&apos; laukelyje</translation>
</message>
</context> </context>
<context> <context>
<name>AdvSearchBase</name> <name>AdvSearchBase</name>
@ -143,8 +137,8 @@
</message> </message>
<message> <message>
<source>. <source>.
Click Cancel if you want to edit the configuration file before indexation starts, or Ok to let it proceed.</source> Click Cancel if you want to edit the configuration file before indexing 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> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
<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. <translation>Nurodyta peržiūros programa šiam mime tipui %1: %2 nerandama.
Ar norėtumete iššaukti nustatymų langą?</translation> Ar norėtumete iššaukti nustatymų langą?</translation>
</message> </message>
<message>
<source>Can&apos;t access file: </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Can&apos;t uncompress file: </source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>RclMainBase</name> <name>RclMainBase</name>
@ -581,6 +583,26 @@ Ar norėtumete iššaukti nustatymų langą?</translation>
<source>&amp;Show missing helpers</source> <source>&amp;Show missing helpers</source>
<translation>&amp;Trūkstamos pagalbinės programos</translation> <translation>&amp;Trūkstamos pagalbinės programos</translation>
</message> </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>&amp;Full Screen</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>F11</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ResList</name> <name>ResList</name>
@ -596,10 +618,6 @@ Ar norėtumete iššaukti nustatymų langą?</translation>
<source>&amp;Preview</source> <source>&amp;Preview</source>
<translation>&amp;Peržiūra</translation> <translation>&amp;Peržiūra</translation>
</message> </message>
<message>
<source>&amp;Edit</source>
<translation>&amp;Redaguoti</translation>
</message>
<message> <message>
<source>Copy &amp;File Name</source> <source>Copy &amp;File Name</source>
<translation>Kopijuoti &amp;Bylos vardą</translation> <translation>Kopijuoti &amp;Bylos vardą</translation>
@ -632,14 +650,6 @@ Ar norėtumete iššaukti nustatymų langą?</translation>
<source>&lt;p&gt;&lt;b&gt;No results found&lt;/b&gt;&lt;br&gt;</source> <source>&lt;p&gt;&lt;b&gt;No results found&lt;/b&gt;&lt;br&gt;</source>
<translation>&lt;p&gt;&lt;b&gt;Nerasta rezultatų&lt;/b&gt;&lt;br&gt;</translation> <translation>&lt;p&gt;&lt;b&gt;Nerasta rezultatų&lt;/b&gt;&lt;br&gt;</translation>
</message> </message>
<message>
<source>Documents &lt;b&gt;%d-%d&lt;/b&gt; out of at least &lt;b&gt;%d&lt;/b&gt; for </source>
<translation>Dokumentai &lt;b&gt;%d-%d&lt;/b&gt; iš bent &lt;b&gt;%d&lt;/b&gt; </translation>
</message>
<message>
<source>Documents &lt;b&gt;%d-%d&lt;/b&gt; for </source>
<translation>Dokumentai &lt;b&gt;%d-%d&lt;/b&gt; </translation>
</message>
<message> <message>
<source>Previous</source> <source>Previous</source>
<translation>Ankstesnis</translation> <translation>Ankstesnis</translation>
@ -676,6 +686,22 @@ Ar norėtumete iššaukti nustatymų langą?</translation>
<source>&amp;Open Parent document/folder</source> <source>&amp;Open Parent document/folder</source>
<translation>Atidaryti &amp;Aukštesnio lygio dokumentus/direktorijas</translation> <translation>Atidaryti &amp;Aukštesnio lygio dokumentus/direktorijas</translation>
</message> </message>
<message>
<source>Documents</source>
<translation>Dokumentai</translation>
</message>
<message>
<source>out of at least</source>
<translation> bent</translation>
</message>
<message>
<source>for</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>&amp;Open</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>SSearch</name> <name>SSearch</name>
@ -855,8 +881,12 @@ Ar norėtumete iššaukti nustatymų langą?</translation>
<translation>Raktinis žodis</translation> <translation>Raktinis žodis</translation>
</message> </message>
<message> <message>
<source>Count</source> <source>No db info.</source>
<translation>Suskaičiuoti</translation> <translation type="unfinished"></translation>
</message>
<message>
<source>Doc. / Tot.</source>
<translation type="unfinished"></translation>
</message> </message>
</context> </context>
<context> <context>
@ -893,6 +923,18 @@ Ar norėtumete iššaukti nustatymų langą?</translation>
<source>No expansion found</source> <source>No expansion found</source>
<translation>Nerasta praplėtimų</translation> <translation>Nerasta praplėtimų</translation>
</message> </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>
<context> <context>
<name>UIPrefsDialog</name> <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> <source>Display category filter as toolbar instead of button panel (needs restart).</source>
<translation>Kategorijų filtrą rodyti kaip įrankų juostą (reikalauja perkrovimo).</translation> <translation>Kategorijų filtrą rodyti kaip įrankų juostą (reikalauja perkrovimo).</translation>
</message> </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>
<context> <context>
<name>ViewAction</name> <name>ViewAction</name>

File diff suppressed because it is too large Load Diff

View File

@ -34,10 +34,6 @@
<source>other</source> <source>other</source>
<translation>diğer</translation> <translation>diğer</translation>
</message> </message>
<message>
<source>Cannot execute pure negative query. Please enter common terms in the &apos;any words&apos; field</source>
<translation type="obsolete">Tamamen negatif sorgu çalıştırılamaz. Lütfen &apos;herhangi bir sözcük&apos; alanına genel ifadeler girin</translation>
</message>
</context> </context>
<context> <context>
<name>AdvSearchBase</name> <name>AdvSearchBase</name>
@ -49,10 +45,6 @@
<source>Search for &lt;br&gt;documents&lt;br&gt;satisfying:</source> <source>Search for &lt;br&gt;documents&lt;br&gt;satisfying:</source>
<translation>Uyan &lt;br&gt;belgeleri&lt;br&gt;ara:</translation> <translation>Uyan &lt;br&gt;belgeleri&lt;br&gt;ara:</translation>
</message> </message>
<message>
<source>All non blank fields will be combined with OR or AND conjunctions. &lt;br&gt;&quot;Any&quot; &quot;All&quot; and &quot;None&quot; field types can accept a mix of simple words, and phrases enclosed in double quotes.&lt;br&gt;Fields with no data are ignored.</source>
<translation type="obsolete">Tüm boş alanlar VEYA ya da VE bağlaçları ile birleştirilecek. &lt;br&gt; &quot;Herhangi biri&quot; &quot;Tümü&quot; ve &quot;Hiçbiri&quot; alan tipleri basit sözcüklerin karışımını ve çift tırnak içine alınmış ifadeleri kabul edebilir.&lt;br&gt;Veri içermeyen alanlar yoksayılır.</translation>
</message>
<message> <message>
<source>Delete clause</source> <source>Delete clause</source>
<translation>İfadeyi sil</translation> <translation>İfadeyi sil</translation>
@ -132,10 +124,6 @@
</context> </context>
<context> <context>
<name>Main</name> <name>Main</name>
<message>
<source>Configuration problem: </source>
<translation type="obsolete">Yapılandırma sorunu: </translation>
</message>
<message> <message>
<source>Configuration problem (dynconf</source> <source>Configuration problem (dynconf</source>
<translation>Yapılandırma sorunu</translation> <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> <source>Cannot create temporary directory</source>
<translation>Geçici dizin oluşturulamadı</translation> <translation>Geçici dizin oluşturulamadı</translation>
</message> </message>
<message>
<source>File does not exist</source>
<translation type="obsolete">Dosya yok</translation>
</message>
<message> <message>
<source>Cancel</source> <source>Cancel</source>
<translation>İptal</translation> <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&amp;rtı</translation> <translation type="unfinished">Eşleşme Şa&amp;rtı</translation>
</message> </message>
</context> </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>&amp;Search for:</source>
<translation type="obsolete">A&amp;ra:</translation>
</message>
<message>
<source>&amp;Next</source>
<translation type="obsolete">&amp;Sonraki</translation>
</message>
<message>
<source>Alt+N</source>
<translation type="obsolete">Alt+S</translation>
</message>
<message>
<source>&amp;Previous</source>
<translation type="obsolete">&amp;Ö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 &amp;Case</source>
<translation type="obsolete">Eşleşme Şa&amp;rtı</translation>
</message>
<message>
<source>Alt+C</source>
<translation type="obsolete">Alt+R</translation>
</message>
</context>
<context> <context>
<name>PreviewTextEdit</name> <name>PreviewTextEdit</name>
<message> <message>
@ -331,33 +272,6 @@ Click Cancel if you want to edit the configuration file before indexing starts,
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
<context>
<name>QtGuiResListPager</name>
<message>
<source>&lt;p&gt;&lt;b&gt;No results found&lt;/b&gt;&lt;br&gt;</source>
<translation type="obsolete">&lt;p&gt;&lt;b&gt;Sonuç bulunamadı&lt;/b&gt;&lt;br&gt;</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> <context>
<name>RclMain</name> <name>RclMain</name>
<message> <message>
@ -404,18 +318,10 @@ Click Cancel if you want to edit the configuration file before indexing starts,
<source>Query results</source> <source>Query results</source>
<translation>Arama Sonuçları</translation> <translation>Arama Sonuçları</translation>
</message> </message>
<message>
<source>Query results (sorted)</source>
<translation type="obsolete">Arama sonuçları (sıralanmış)</translation>
</message>
<message> <message>
<source>Cannot retrieve document info from database</source> <source>Cannot retrieve document info from database</source>
<translation>Veritabanından belge bilgileri alınamadı</translation> <translation>Veritabanından belge bilgileri alınamadı</translation>
</message> </message>
<message>
<source>Cannot access document file: </source>
<translation type="obsolete">Belge dosyasına erişilemedi: </translation>
</message>
<message> <message>
<source>Warning</source> <source>Warning</source>
<translation>Uyarı</translation> <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> <source>This search is not active any more</source>
<translation>Bu arama atrık etkin değil</translation> <translation>Bu arama atrık etkin değil</translation>
</message> </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> <message>
<source>Bad viewer command line for %1: [%2] <source>Bad viewer command line for %1: [%2]
Please check the mimeconf file</source> Please check the mimeconf file</source>
<translation>%1 için uygun olmayan komut: [%2] <translation>%1 için uygun olmayan komut: [%2]
Lütfen mimeconf dosyasını kontrol edin</translation> 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>
<message> <message>
<source>Cannot extract document or create temporary file</source> <source>Cannot extract document or create temporary file</source>
@ -456,10 +352,6 @@ Tercihler penceresini açmak ister misiniz?</translation>
<source>About Recoll</source> <source>About Recoll</source>
<translation>Recoll Hakkında</translation> <translation>Recoll Hakkında</translation>
</message> </message>
<message>
<source>Starting help browser </source>
<translation type="obsolete">Yardım tarayıcıyı başlat </translation>
</message>
<message> <message>
<source>History data</source> <source>History data</source>
<translation>Geçmiş verileri</translation> <translation>Geçmiş verileri</translation>
@ -717,22 +609,10 @@ Do you want to start the preferences dialog ?</source>
<source>Result list</source> <source>Result list</source>
<translation>Sonuç listesi</translation> <translation>Sonuç listesi</translation>
</message> </message>
<message>
<source>Show query details</source>
<translation type="obsolete">Sorgu detaylarını göster</translation>
</message>
<message> <message>
<source>&lt;p&gt;&lt;b&gt;No results found&lt;/b&gt;&lt;br&gt;</source> <source>&lt;p&gt;&lt;b&gt;No results found&lt;/b&gt;&lt;br&gt;</source>
<translation type="unfinished">&lt;p&gt;&lt;b&gt;Sonuç bulunamadı&lt;/b&gt;&lt;br&gt;</translation> <translation type="unfinished">&lt;p&gt;&lt;b&gt;Sonuç bulunamadı&lt;/b&gt;&lt;br&gt;</translation>
</message> </message>
<message>
<source>Documents &lt;b&gt;%1-%2&lt;/b&gt; out of at least &lt;b&gt;%3&lt;/b&gt; for </source>
<translation type="obsolete">Toplam &lt;b&gt;%3&lt;/b&gt; sonucun &lt;b&gt;%1-%2&lt;/b&gt; arası, sorgu </translation>
</message>
<message>
<source>Documents &lt;b&gt;%1-%2&lt;/b&gt; for </source>
<translation type="obsolete">Sonuçlar &lt;b&gt;%1-%2&lt;/b&gt; arası, sorgu </translation>
</message>
<message> <message>
<source>(show query)</source> <source>(show query)</source>
<translation>(sorguyu göster)</translation> <translation>(sorguyu göster)</translation>
@ -753,10 +633,6 @@ Do you want to start the preferences dialog ?</source>
<source>&amp;Preview</source> <source>&amp;Preview</source>
<translation>&amp;Önizle</translation> <translation>&amp;Önizle</translation>
</message> </message>
<message>
<source>&amp;Edit</source>
<translation>&amp;Düzenle</translation>
</message>
<message> <message>
<source>Copy &amp;File Name</source> <source>Copy &amp;File Name</source>
<translation>&amp;Dosya Adını Kopyala</translation> <translation>&amp;Dosya Adını Kopyala</translation>
@ -769,10 +645,6 @@ Do you want to start the preferences dialog ?</source>
<source>Find &amp;similar documents</source> <source>Find &amp;similar documents</source>
<translation>Benzer belgeleri &amp;bul</translation> <translation>Benzer belgeleri &amp;bul</translation>
</message> </message>
<message>
<source>P&amp;arent document/folder</source>
<translation type="obsolete">Ü&amp;st belge/dizin</translation>
</message>
<message> <message>
<source>Query details</source> <source>Query details</source>
<translation>Sorgu detayları</translation> <translation>Sorgu detayları</translation>
@ -789,14 +661,6 @@ Do you want to start the preferences dialog ?</source>
<source>Document history</source> <source>Document history</source>
<translation type="unfinished">Belge geçmişi</translation> <translation type="unfinished">Belge geçmişi</translation>
</message> </message>
<message>
<source>Documents &lt;b&gt;%d-%d&lt;/b&gt; out of at least &lt;b&gt;%d&lt;/b&gt; for </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Documents &lt;b&gt;%d-%d&lt;/b&gt; for </source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Preview</source> <source>Preview</source>
<translation type="unfinished">Önizle</translation> <translation type="unfinished">Önizle</translation>
@ -821,6 +685,22 @@ Do you want to start the preferences dialog ?</source>
<source>&amp;Open Parent document/folder</source> <source>&amp;Open Parent document/folder</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>&amp;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>
<context> <context>
<name>SSearch</name> <name>SSearch</name>
@ -887,10 +767,6 @@ Do you want to start the preferences dialog ?</source>
<source>Start query</source> <source>Start query</source>
<translation>Sorguyu başlat</translation> <translation>Sorguyu başlat</translation>
</message> </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> <message>
<source>Enter search terms here. Type ESC SPC for completions of current term.</source> <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> <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> <source>Term</source>
<translation>İfade</translation> <translation>İfade</translation>
</message> </message>
<message>
<source>Count</source>
<translation type="obsolete">Sayı</translation>
</message>
<message> <message>
<source>No db info.</source> <source>No db info.</source>
<translation type="unfinished"></translation> <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> <source>Maximum text size highlighted for preview (megabytes)</source>
<translation>Önizlemede vurgulanacak en fazla metin boyutu (MB)</translation> <translation>Önizlemede vurgulanacak en fazla metin boyutu (MB)</translation>
</message> </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> <message>
<source>Auto-start simple search on whitespace entry.</source> <source>Auto-start simple search on whitespace entry.</source>
<translation>Beyaz alan girdisi olduğunda basit aramayı otomatik olarak başlat.</translation> <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> <source>No aspell usage</source>
<translation>Aspell kullanımı yok</translation> <translation>Aspell kullanımı yok</translation>
</message> </message>
<message>
<source>Disables use of aspell to generate spelling approximation in the term explorer tool.&lt;br&gt; 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.&lt;br&gt; Aspell olmadığında ya da çalışmadığında kullanışlıdır. </translation>
</message>
<message> <message>
<source>Aspell language</source> <source>Aspell language</source>
<translation>Aspell dili</translation> <translation>Aspell dili</translation>

File diff suppressed because it is too large Load Diff

View File

@ -614,10 +614,6 @@ Do you want to start the preferences dialog ?</source>
<source>&amp;Preview</source> <source>&amp;Preview</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>&amp;Edit</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Copy &amp;File Name</source> <source>Copy &amp;File Name</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -650,14 +646,6 @@ Do you want to start the preferences dialog ?</source>
<source>&lt;p&gt;&lt;b&gt;No results found&lt;/b&gt;&lt;br&gt;</source> <source>&lt;p&gt;&lt;b&gt;No results found&lt;/b&gt;&lt;br&gt;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Documents &lt;b&gt;%d-%d&lt;/b&gt; out of at least &lt;b&gt;%d&lt;/b&gt; for </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Documents &lt;b&gt;%d-%d&lt;/b&gt; for </source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Previous</source> <source>Previous</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -694,6 +682,22 @@ Do you want to start the preferences dialog ?</source>
<source>&amp;Open Parent document/folder</source> <source>&amp;Open Parent document/folder</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>&amp;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>
<context> <context>
<name>SSearch</name> <name>SSearch</name>

View File

@ -90,6 +90,7 @@ TRANSLATIONS = \
../qtgui/i18n/recoll_de.ts \ ../qtgui/i18n/recoll_de.ts \
../qtgui/i18n/recoll_fr.ts \ ../qtgui/i18n/recoll_fr.ts \
../qtgui/i18n/recoll_it.ts \ ../qtgui/i18n/recoll_it.ts \
../qtgui/i18n/recoll_lt.ts \
../qtgui/i18n/recoll_ru.ts \ ../qtgui/i18n/recoll_ru.ts \
../qtgui/i18n/recoll_tr.ts \ ../qtgui/i18n/recoll_tr.ts \
../qtgui/i18n/recoll_uk.ts \ ../qtgui/i18n/recoll_uk.ts \

View File

@ -127,8 +127,9 @@ ResList::~ResList()
#endif #endif
static const char* strings[] = { static const char* strings[] = {
QT_TR_NOOP("<p><b>No results found</b><br>"), 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"),
QT_TR_NOOP("Documents <b>%d-%d</b> for "), QT_TR_NOOP("out of at least"),
QT_TR_NOOP("for"),
QT_TR_NOOP("Previous"), QT_TR_NOOP("Previous"),
QT_TR_NOOP("Next"), QT_TR_NOOP("Next"),
QT_TR_NOOP("Unavailable document"), QT_TR_NOOP("Unavailable document"),

View File

@ -225,7 +225,7 @@ void SpellW::doExpand()
it != res.entries.end(); it++) { it != res.entries.end(); it++) {
#endif #endif
LOGDEB(("SpellW::expand: %6d [%s]\n", it->wcf, it->term.c_str())); LOGDEB(("SpellW::expand: %6d [%s]\n", it->wcf, it->term.c_str()));
char num[20]; char num[30];
if (it->wcf) if (it->wcf)
sprintf(num, "%d / %d", it->docs, it->wcf); sprintf(num, "%d / %d", it->docs, it->wcf);
else else

View File

@ -7,6 +7,10 @@ static char rcsid[] = "@(#$Id: reslistpager.cpp,v 1.7 2008-12-16 14:20:10 dockes
#include <math.h> #include <math.h>
#include <time.h> #include <time.h>
#include <sstream>
using std::ostringstream;
using std::endl;
#include "reslistpager.h" #include "reslistpager.h"
#include "debuglog.h" #include "debuglog.h"
#include "rclconfig.h" #include "rclconfig.h"
@ -79,7 +83,7 @@ void ResListPager::displayPage()
if (m_hiliter == 0) if (m_hiliter == 0)
m_hiliter = &g_hiliter; m_hiliter = &g_hiliter;
string chunk; ostringstream chunk;
// Display list header // Display list header
// We could use a <title> but the textedit doesnt display // 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 // gets confused. Hence the use of the 'chunk' text
// accumulator // accumulator
// Also note that there can be results beyond the estimated resCnt. // Also note that there can be results beyond the estimated resCnt.
chunk = "<html><head><meta http-equiv=\"content-type\"" chunk << "<html><head><meta http-equiv=\"content-type\""
"content=\"text/html; charset=utf-8\"></head><body>"; "content=\"text/html; charset=utf-8\"></head><body>"
chunk += pageTop(); << pageTop()
chunk += "<p><font size=+1><b>"; << "<p><font size=+1><b>"
chunk += m_docSource->title(); << m_docSource->title()
chunk += "</b></font>" << "</b></font>&nbsp;&nbsp;&nbsp;";
"&nbsp;&nbsp;&nbsp;";
if (pageEmpty()) { if (pageEmpty()) {
chunk += trans("<p><b>No results found</b><br>"); chunk << trans("<p><b>No results found</b><br>");
vector<string>uterms; vector<string>uterms;
m_docSource->getUTerms(uterms); m_docSource->getUTerms(uterms);
if (!uterms.empty()) { if (!uterms.empty()) {
vector<string> spellings; vector<string> spellings;
suggest(uterms, spellings); suggest(uterms, spellings);
if (!spellings.empty()) { if (!spellings.empty()) {
chunk += chunk <<
trans("<p><i>Alternate spellings (accents suppressed): </i>"); trans("<p><i>Alternate spellings (accents suppressed): </i>");
for (vector<string>::iterator it = spellings.begin(); for (vector<string>::iterator it = spellings.begin();
it != spellings.end(); it++) { it != spellings.end(); it++) {
chunk += *it; chunk << *it;
chunk += " "; chunk << " ";
} }
chunk += "</p>"; chunk << "</p>";
} }
} }
} else { } else {
unsigned int resCnt = m_docSource->getResCnt(); unsigned int resCnt = m_docSource->getResCnt();
if (m_winfirst + m_respage.size() < resCnt) { if (m_winfirst + m_respage.size() < resCnt) {
string f1 = trans("Documents <b>%d-%d</b> out of at least <b>%d</b> for "); chunk << trans("Documents") << " <b>" << m_winfirst + 1
char buf[1024]; << "-" << m_winfirst + m_respage.size() << "</b> "
snprintf(buf, 1023, f1.c_str(), m_winfirst+1, << trans("out of at least") << " "
m_winfirst + m_respage.size(), resCnt); << resCnt << " " << trans("for") << " " ;
chunk += buf;
} else { } else {
string f1 = trans("Documents <b>%d-%d</b> for "); chunk << trans("Documents") << " <b>"
char buf[1024]; << m_winfirst + 1 << "-" << m_winfirst + m_respage.size()
snprintf(buf, 1023, f1.c_str(), m_winfirst + 1, << "</b> " << trans("for") << " ";
m_winfirst + m_respage.size());
chunk += buf;
} }
} }
chunk += detailsLink(); chunk << detailsLink();
if (hasPrev() || hasNext()) { if (hasPrev() || hasNext()) {
chunk += "&nbsp;&nbsp;"; chunk << "&nbsp;&nbsp;";
if (hasPrev()) { if (hasPrev()) {
chunk += "<a href=\"" + prevUrl() + "\"><b>"; chunk << "<a href=\"" + prevUrl() + "\"><b>"
chunk += trans("Previous"); << trans("Previous")
chunk += "</b></a>&nbsp;&nbsp;&nbsp;"; << "</b></a>&nbsp;&nbsp;&nbsp;";
} }
if (hasNext()) { if (hasNext()) {
chunk += "<a href=\""+ nextUrl() + "\"><b>"; chunk << "<a href=\""+ nextUrl() + "\"><b>"
chunk += trans("Next"); << trans("Next")
chunk += "</b></a>"; << "</b></a>";
} }
} }
chunk += "</p>"; chunk << "</p>";
append(chunk); append(chunk.rdbuf()->str());
chunk.rdbuf()->str("");
if (pageEmpty()) if (pageEmpty())
return; return;
@ -169,7 +170,7 @@ void ResListPager::displayPage()
percent = doc.pc; percent = doc.pc;
} }
// Percentage of 'relevance' // Percentage of 'relevance'
char perbuf[10]; char perbuf[20];
sprintf(perbuf, "%3d%% ", percent); sprintf(perbuf, "%3d%% ", percent);
// Determine icon to display if any // Determine icon to display if any
@ -227,12 +228,10 @@ void ResListPager::displayPage()
string richabst = lr.front(); string richabst = lr.front();
// Links; // Links;
string linksbuf; ostringstream linksbuf;
char vlbuf[100];
if (canIntern(doc.mimetype, RclConfig::getMainConfig())) { if (canIntern(doc.mimetype, RclConfig::getMainConfig())) {
sprintf(vlbuf, "\"P%d\"", docnumforlinks); linksbuf << "<a href=\"P" << docnumforlinks << "\">"
linksbuf += string("<a href=") + vlbuf + ">" + trans("Preview") << trans("Preview") << "</a>&nbsp;&nbsp;";
+ "</a>&nbsp;&nbsp;";
} }
string apptag; string apptag;
@ -241,19 +240,17 @@ void ResListPager::displayPage()
apptag = it->second; apptag = it->second;
if (!RclConfig::getMainConfig()->getMimeViewerDef(doc.mimetype, apptag).empty()) { if (!RclConfig::getMainConfig()->getMimeViewerDef(doc.mimetype, apptag).empty()) {
sprintf(vlbuf, "E%d", docnumforlinks); linksbuf << "<a href=\"E" << docnumforlinks << "\">"
linksbuf += string("<a href=") + vlbuf + ">" + trans("Open") << trans("Open") << "</a>";
+ "</a>";
} }
// Build the result list paragraph: // Build the result list paragraph:
chunk = "";
// Subheader: this is used by history // Subheader: this is used by history
if (!sh.empty()) if (!sh.empty())
chunk += "<p><b>" + sh + "</p>\n<p>"; chunk << "<p><b>" << sh << "</p>\n<p>";
else else
chunk += "<p>"; chunk << "<p>";
// Configurable stuff // Configurable stuff
map<string,string> subs; map<string,string> subs;
@ -263,7 +260,7 @@ void ResListPager::displayPage()
subs["i"] = doc.ipath; subs["i"] = doc.ipath;
subs["K"] = !doc.meta[Rcl::Doc::keykw].empty() ? subs["K"] = !doc.meta[Rcl::Doc::keykw].empty() ?
escapeHtml(doc.meta[Rcl::Doc::keykw]) + "<br>" : ""; escapeHtml(doc.meta[Rcl::Doc::keykw]) + "<br>" : "";
subs["L"] = linksbuf; subs["L"] = linksbuf.rdbuf()->str();
subs["N"] = numbuf; subs["N"] = numbuf;
subs["M"] = doc.mimetype; subs["M"] = doc.mimetype;
subs["R"] = perbuf; subs["R"] = perbuf;
@ -276,31 +273,32 @@ void ResListPager::displayPage()
string formatted; string formatted;
pcSubst(parFormat(), formatted, subs); pcSubst(parFormat(), formatted, subs);
chunk += formatted; chunk << formatted;
chunk += "</p>\n"; chunk << "</p>" << endl;
LOGDEB2(("Chunk: [%s]\n", (const char *)chunk.c_str())); LOGDEB2(("Chunk: [%s]\n", (const char *)chunk.rdbuf()->str().c_str()));
append(chunk, i, doc); append(chunk.rdbuf()->str(), i, doc);
chunk.rdbuf()->str("");
} }
// Footer // Footer
chunk = "<p align=\"center\">"; chunk << "<p align=\"center\">";
if (hasPrev() || hasNext()) { if (hasPrev() || hasNext()) {
if (hasPrev()) { if (hasPrev()) {
chunk += "<a href=\"" + prevUrl() + "\"><b>"; chunk << "<a href=\"" + prevUrl() + "\"><b>"
chunk += trans("Previous"); << trans("Previous")
chunk += "</b></a>&nbsp;&nbsp;&nbsp;"; << "</b></a>&nbsp;&nbsp;&nbsp;";
} }
if (hasNext()) { if (hasNext()) {
chunk += "<a href=\""+ nextUrl() + "\"><b>"; chunk << "<a href=\""+ nextUrl() + "\"><b>"
chunk += trans("Next"); << trans("Next")
chunk += "</b></a>"; << "</b></a>";
} }
} }
chunk += "</p>\n"; chunk << "</p>" << endl;
chunk += "</body></html>\n"; chunk << "</body></html>" << endl;
append(chunk); append(chunk.rdbuf()->str());
} }
// Default implementations for things that should be implemented by // Default implementations for things that should be implemented by