Skip to content

Commit

Permalink
Organizing localization
Browse files Browse the repository at this point in the history
  • Loading branch information
Serg-Norseman committed Oct 5, 2023
1 parent 10cc5a1 commit 5108185
Show file tree
Hide file tree
Showing 269 changed files with 4,193 additions and 4,208 deletions.
2 changes: 1 addition & 1 deletion locales/Belarusian.lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;1059,bel,Беларуская мова,xt
;1059,bel,Беларуская мова
001=Файл
002=Рэдагаваць
003=Радавод
Expand Down
2 changes: 1 addition & 1 deletion locales/Chinese Simplified.lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;2052,zho,中文,xt
;2052,zho,中文
001=文件
002=编辑
003=家谱
Expand Down
2 changes: 1 addition & 1 deletion locales/English.lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;1033,enu,English,xt
;1033,enu,English
001=File ; main menu item
002=Edit ; main menu item
003=Pedigree ; main menu item
Expand Down
2 changes: 1 addition & 1 deletion locales/Hungarian.lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;1038,hun,Magyar,xt
;1038,hun,Magyar
001=Fájl
002=Szerkesztés
003=Származás
Expand Down
2 changes: 1 addition & 1 deletion locales/Icelandic.lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;1039,isl,Íslenska,xt
;1039,isl,Íslenska
001=Skrá
002=Breyta
003=Pedigree
Expand Down
2 changes: 1 addition & 1 deletion locales/Kazakh (Cyrillic).lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;1087,kaz,Қазақ (кириллица),xt
;1087,kaz,Қазақ (кириллица)
001=Файл
002=Түзету
003=Pedigree
Expand Down
2 changes: 1 addition & 1 deletion locales/Portuguese.lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;2070,por,Português,xt
;2070,por,Português
001=Arquivo
002=Editar
003=Pedigree
Expand Down
2 changes: 1 addition & 1 deletion locales/Serbian (Latin).lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;2074,srp,Srpski,xt
;2074,srp,Srpski
001=Fajl
002=Uredi
003=Rodoslov
Expand Down
2 changes: 1 addition & 1 deletion locales/Spanish.lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;1034,spa,Español,xt
;1034,spa,Español
001=Archivo
002=Editar
003=Pedigrí
Expand Down
2 changes: 1 addition & 1 deletion locales/czech.lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;1029,cze,Čeština,xt
;1029,cze,Čeština
001=Soubor
002=Upravit
003=Rodokmen
Expand Down
2 changes: 1 addition & 1 deletion locales/french.lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;1036,fra,Français,xt
;1036,fra,Français
001=Fichier
002=Modification
003=Généalogie
Expand Down
2 changes: 1 addition & 1 deletion locales/german.lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;1031,deu,Deutsch,xt
;1031,deu,Deutsch
001=Datei
002=Bearbeiten
003=Stammbaum
Expand Down
2 changes: 1 addition & 1 deletion locales/italian.lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;1040,ita,Italiano,xt
;1040,ita,Italiano
001=File
002=Modifica
003=Pedigree
Expand Down
2 changes: 1 addition & 1 deletion locales/polish.lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;1045,pol,Polski,xt
;1045,pol,Polski
001=Plik
002=Edycja
003=Rodowód
Expand Down
2 changes: 1 addition & 1 deletion locales/russian.lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;1049,rus,Русский,xt
;1049,rus,Русский
001=Файл
002=Правка
003=Родословная
Expand Down
2 changes: 1 addition & 1 deletion locales/ukrainian.lng
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;1058,ukr,Українська,xt
;1058,ukr,Українська
001=Файл
002=Правка
003=Родовід
Expand Down
13 changes: 6 additions & 7 deletions projects/GKCore/GDModel/GDMCustomEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

using System;
using GDModel.Providers.GEDCOM;
using GKCore.Calendar;
using GKCore.Types;

namespace GDModel
Expand Down Expand Up @@ -173,6 +172,12 @@ protected override void Dispose(bool disposing)
base.Dispose(disposing);
}

public void SetName(string tagName)
{
int tagId = GEDCOMTagsTable.Lookup(tagName);
SetName(tagId);
}

internal override void TrimExcess()
{
base.TrimExcess();
Expand Down Expand Up @@ -291,11 +296,5 @@ public int GetChronologicalYear()
{
return Date.GetChronologicalYear();
}

public void SetName(string tagName)
{
int tagId = GEDCOMTagsTable.Lookup(tagName);
SetName(tagId);
}
}
}
6 changes: 3 additions & 3 deletions projects/GKCore/GDModel/Providers/GEDCOM/GEDCOMChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ private bool CheckRecordXRef(GDMRecord record)
private void ConvertIdentifiers()
{
if (fProgress != null)
fProgress.Begin(LangMan.LS(LSID.LSID_IDsCorrect), fTree.RecordsCount * 2);
fProgress.Begin(LangMan.LS(LSID.IDsCorrect), fTree.RecordsCount * 2);

GDMXRefReplacer repMap = new GDMXRefReplacer();
try {
Expand Down Expand Up @@ -499,7 +499,7 @@ private bool CheckFormat()
}

if (fProgress != null)
fProgress.Begin(LangMan.LS(LSID.LSID_FormatCheck), 100);
fProgress.Begin(LangMan.LS(LSID.FormatCheck), 100);

try {
bool xrefValid = true;
Expand Down Expand Up @@ -537,7 +537,7 @@ private bool CheckFormat()
}
} catch (Exception ex) {
Logger.WriteError("GEDCOMChecker.CheckFormat()", ex);
AppHost.StdDialogs.ShowError(LangMan.LS(LSID.LSID_CheckGedComFailed));
AppHost.StdDialogs.ShowError(LangMan.LS(LSID.CheckGedComFailed));
}

return result;
Expand Down
2 changes: 1 addition & 1 deletion projects/GKCore/GDModel/Providers/GEDCOM/GEDCOMProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public GEDCOMProvider(GDMTree tree, bool keepRichNames) : base(tree)

public override string GetFilesFilter()
{
return LangMan.LS(LSID.LSID_GEDCOMFilter);
return LangMan.LS(LSID.GEDCOMFilter);
}

#region Encoding routines
Expand Down
2 changes: 1 addition & 1 deletion projects/GKCore/GDModel/Providers/GedML/GedMLProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public GedMLProvider(GDMTree tree) : base(tree)

public override string GetFilesFilter()
{
return LangMan.LS(LSID.LSID_GedMLFilter);
return LangMan.LS(LSID.GedMLFilter);
}

protected override Encoding GetDefaultEncoding()
Expand Down
2 changes: 1 addition & 1 deletion projects/GKCore/GKCore/AppHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public void ShowTips()
if (fTips.Count <= 0) return;

using (var dlg = fIocContainer.Resolve<IDayTipsDlg>()) {
dlg.Init(LangMan.LS(LSID.LSID_BirthDays), AppHost.Options.ShowTips, fTips);
dlg.Init(LangMan.LS(LSID.BirthDays), AppHost.Options.ShowTips, fTips);
ShowModalX(dlg, null, false);
AppHost.Options.ShowTips = dlg.ShowTipsChecked;
}
Expand Down
Loading

0 comments on commit 5108185

Please sign in to comment.