Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit c3e5616

Browse files
committed
Implement #87
Implement the parameter for the ReplacedOffset translation unit.
1 parent 9ac5c3d commit c3e5616

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

Interop/TranslationProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ private void FillToEnglishDefaults()
606606
EditConfig = "Edit Configurations";
607607
FoundInOff = "Found in offset {0} with length {1}";
608608
FoundNothing = "Found nothing";
609-
ReplacedOff = "Replaced in offset";
609+
ReplacedOff = "Replaced in offset {0}";
610610
ReplacedOcc = "Replaced {0} occurences in {1} documents";
611611
OccFound = "occurences found";
612612
EmptyPatt = "Empty search pattern";

Resources/lang_0_spedit.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<editconfig>Konfigurationen bearbeiten</editconfig>
2222
<foundinoff>Gefunden mit Offset {0} und Länge {1}</foundinoff>
2323
<foundnothing>Nichts gefunden</foundnothing>
24-
<replacedoff>Ersetzt am Offset</replacedoff>
24+
<replacedoff>Ersetzt am Offset {0}</replacedoff>
2525
<replacedocc>{0} Vorkommen ersetzt in {1} Dokumenten</replacedocc>
2626
<occfound>Vorkommen gefunden</occfound>
2727
<emptypatt>Leerer Suchausdruck</emptypatt>
@@ -212,7 +212,7 @@
212212
<editconfig>Modifier la configuration</editconfig>
213213
<foundinoff>Trouvé dans l'offset {0} avec un longueur de {1}</foundinoff>
214214
<foundnothing>Rien trouvé</foundnothing>
215-
<replacedoff>Remplacer dans l'offset</replacedoff>
215+
<replacedoff>Remplacer dans l'offset {0}</replacedoff>
216216
<replacedocc>{0} occurences remplacées dans {1} documents</replacedocc>
217217
<occfound>occurences trouvée</occfound>
218218
<emptypatt>Terme de recherche vide</emptypatt>
@@ -403,7 +403,7 @@
403403
<editconfig>컴파일 설정 편집</editconfig>
404404
<foundinoff>{0}위치에서 발견 (길이: {1})</foundinoff>
405405
<foundnothing>찾을 수 없음</foundnothing>
406-
<replacedoff>바꾸기 실행 위치:</replacedoff>
406+
<replacedoff>바꾸기 실행 위치: {0}</replacedoff>
407407
<replacedocc>{1}개 문서에서 바꾸기 {0}번 실행됨</replacedocc>
408408
<occfound>개의 일치 항목 발견</occfound>
409409
<emptypatt>검색할 내용을 입력해주세요.</emptypatt>
@@ -594,7 +594,7 @@
594594
<editconfig>Redigera konfigurationer</editconfig>
595595
<foundinoff>Hittad i {0} med längden {1}</foundinoff>
596596
<foundnothing>Hittade inget</foundnothing>
597-
<replacedoff>Bytte ut motvikt</replacedoff>
597+
<replacedoff>Bytte ut motvikt {0}</replacedoff>
598598
<replacedocc>Bytte {0} förekomster i {1} dokument</replacedocc>
599599
<occfound>Förekomster hittade</occfound>
600600
<emptypatt>Tomt sök mönster</emptypatt>
@@ -785,7 +785,7 @@
785785
<editconfig>Редактировать конфиги</editconfig>
786786
<foundinoff>Найдено в смещении {0} размером {1}</foundinoff>
787787
<foundnothing>Ничего не найдено</foundnothing>
788-
<replacedoff>Заменено в смещении</replacedoff>
788+
<replacedoff>Заменено в смещении {0}</replacedoff>
789789
<replacedocc>Произведено {0} замен в документе {1}</replacedocc>
790790
<occfound>совпадений найдено</occfound>
791791
<emptypatt>Поисковый шаблон пуст</emptypatt>
@@ -976,7 +976,7 @@
976976
<editconfig>Editar configurações</editconfig>
977977
<foundinoff>Encontrado no offset {0} com comprimento {1}</foundinoff>
978978
<foundnothing>Nada encontrado</foundnothing>
979-
<replacedoff>Substituído em offset</replacedoff>
979+
<replacedoff>Substituído em offset {0}</replacedoff>
980980
<replacedocc>Substituiu {0} ocorrências em {1} documentos</replacedocc>
981981
<occfound>Ocorrências encontradas</occfound>
982982
<emptypatt>Padrão de pesquisa vazio</emptypatt>
@@ -1167,7 +1167,7 @@
11671167
<editconfig>Edytuj Konfiguracje</editconfig>
11681168
<foundinoff>Znaleziono w marginesie {0} o długości {1}</foundinoff>
11691169
<foundnothing>Nie znaleziono</foundnothing>
1170-
<replacedoff>Zamieniono w marginesie</replacedoff>
1170+
<replacedoff>Zamieniono w marginesie {0}</replacedoff>
11711171
<replacedocc>Zamieniono {0} wystąpień w {1} dokumentach</replacedocc>
11721172
<occfound>znalezionych wystąpień</occfound>
11731173
<emptypatt>Pusty wzór wyszukiwania</emptypatt>
@@ -1358,7 +1358,7 @@
13581358
<editconfig>Düzen Yapılandırma</editconfig>
13591359
<foundinoff>Ofset ve uzunluğu {0} ile bulunan {1}</foundinoff>
13601360
<foundnothing>Hiçbir şey bulunamadı</foundnothing>
1361-
<replacedoff>Ofset değiştirir</replacedoff>
1361+
<replacedoff>Ofset değiştirir {0}</replacedoff>
13621362
<replacedocc>{0} olaylar {1} belgelerde yerini değiştir</replacedocc>
13631363
<occfound>Olaylar bulundu</occfound>
13641364
<emptypatt>Boş arama terimi</emptypatt>

Resources/lang_0_spedit_entryTemplate.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<editconfig>Edit Configurations</editconfig>
2121
<foundinoff>Found in offset {0} with length {1}</foundinoff>
2222
<foundnothing>Found Nothing</foundnothing>
23-
<replacedoff>Replaced in offset</replacedoff>
23+
<replacedoff>Replaced in offset {0}</replacedoff>
2424
<replacedocc>Replaced {0} occurences in {1} documents</replacedocc>
2525
<occfound>occurences found</occfound>
2626
<emptypatt>Empty search pattern</emptypatt>

UI/MainWindowFindReplaceHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ private void Replace()
238238
editors[index].editor.Select(m.Index + addToOffset, result.Length);
239239
var location = editors[index].editor.Document.GetLocation(m.Index + addToOffset);
240240
editors[index].editor.ScrollTo(location.Line, location.Column);
241-
FindResultBlock.Text = $"{Program.Translations.ReplacedOff} {MinHeight + addToOffset}";
241+
FindResultBlock.Text = string.Format(Program.Translations.ReplacedOff, MinHeight + addToOffset);
242242
break;
243243
}
244244
}

0 commit comments

Comments
 (0)