From 0d8ff3f87e55b7144dd61fb68c8638bdc53ad989 Mon Sep 17 00:00:00 2001 From: Alexander Bong Date: Thu, 7 Mar 2024 11:21:26 +0100 Subject: [PATCH] - Translation lvl50 - verified in German only --- CityBIM/ResourcePictures.Designer.cs | 9 -- CityBIM/ResourcePictures.resx | 3 - .../Properties/Resources.Designer.cs | 144 ++++++++++++++++++ .../Properties/Resources.de.resx | 50 +++++- .../Properties/Resources.es.resx | 48 ++++++ .../Properties/Resources.fr.resx | 48 ++++++ .../Properties/Resources.it.resx | 48 ++++++ .../Properties/Resources.pt.resx | 48 ++++++ IFCGeoRefCheckerGUI/Properties/Resources.resx | 48 ++++++ IFCGeorefShared/GeoRefChecker.cs | 28 ++-- 10 files changed, 447 insertions(+), 27 deletions(-) diff --git a/CityBIM/ResourcePictures.Designer.cs b/CityBIM/ResourcePictures.Designer.cs index 0909dac..445ef55 100644 --- a/CityBIM/ResourcePictures.Designer.cs +++ b/CityBIM/ResourcePictures.Designer.cs @@ -200,15 +200,6 @@ public static System.Drawing.Bitmap IFC_32px_96dpi { } } - /// - /// Sucht eine lokalisierte Zeichenfolge, die LoGeoRef50 is not fulfilled ähnelt. - /// - public static string LoGeoRef50IsNotFulfilled { - get { - return ResourceManager.GetString("LoGeoRef50IsNotFulfilled", resourceCulture); - } - } - /// /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. /// diff --git a/CityBIM/ResourcePictures.resx b/CityBIM/ResourcePictures.resx index 8662c43..415c1ef 100644 --- a/CityBIM/ResourcePictures.resx +++ b/CityBIM/ResourcePictures.resx @@ -178,7 +178,4 @@ img\XPlan_32px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - LoGeoRef50 is not fulfilled - \ No newline at end of file diff --git a/IFCGeoRefCheckerGUI/Properties/Resources.Designer.cs b/IFCGeoRefCheckerGUI/Properties/Resources.Designer.cs index fa85b66..1c140d3 100644 --- a/IFCGeoRefCheckerGUI/Properties/Resources.Designer.cs +++ b/IFCGeoRefCheckerGUI/Properties/Resources.Designer.cs @@ -96,6 +96,15 @@ internal static string CheckedOn { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die for ContextType ähnelt. + /// + internal static string ContextType { + get { + return ResourceManager.GetString("ContextType", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die Country ähnelt. /// @@ -105,6 +114,15 @@ internal static string Country { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Description: ähnelt. + /// + internal static string Description { + get { + return ResourceManager.GetString("Description", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die Direction of X-axis is ähnelt. /// @@ -141,6 +159,15 @@ internal static string FILES_LOADED_FORMAT { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Found no IfcGeometricRepresentationContext ähnelt. + /// + internal static string FoundNo { + get { + return ResourceManager.GetString("FoundNo", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die is fullfilled ✓ ähnelt. /// @@ -150,6 +177,15 @@ internal static string Fulfilled { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Geodetic Datum: ähnelt. + /// + internal static string GeoDatum { + get { + return ResourceManager.GetString("GeoDatum", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die Local placement of this entity has geographic context. ähnelt. /// @@ -240,6 +276,15 @@ internal static string MapConversion { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die IfcMapConversion defined in ähnelt. + /// + internal static string MapConversionDefined { + get { + return ResourceManager.GetString("MapConversionDefined", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die Maximum coordinates are ähnelt. /// @@ -267,6 +312,24 @@ internal static string NoGeographicLocation { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die No IfcMapConverison specified by # ähnelt. + /// + internal static string NoMapConvBy { + get { + return ResourceManager.GetString("NoMapConvBy", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die No IfcMapConversion specified in file ähnelt. + /// + internal static string NoMapConvIn { + get { + return ResourceManager.GetString("NoMapConvIn", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die No postal address found for Entity # ähnelt. /// @@ -411,6 +474,42 @@ internal static string Region { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Rotation X-Axis Abscissa: ähnelt. + /// + internal static string RotXAbs { + get { + return ResourceManager.GetString("RotXAbs", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Rotation X-Axis Ordinate: ähnelt. + /// + internal static string RotXOrd { + get { + return ResourceManager.GetString("RotXOrd", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Scale: ähnelt. + /// + internal static string Scale { + get { + return ResourceManager.GetString("Scale", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Scale of map conversion is between 0.9 and 1.1. This might not be used for conversion of units. ähnelt. + /// + internal static string ScaleMapConversion { + get { + return ResourceManager.GetString("ScaleMapConversion", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die Set working directory ähnelt. /// @@ -456,6 +555,15 @@ internal static string STATUS_REPORT { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Target CRS is: ähnelt. + /// + internal static string TargetCRS { + get { + return ResourceManager.GetString("TargetCRS", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die Town ähnelt. /// @@ -465,6 +573,33 @@ internal static string Town { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Translation Eastings: ähnelt. + /// + internal static string TransEast { + get { + return ResourceManager.GetString("TransEast", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Translation Height: ähnelt. + /// + internal static string TransHeight { + get { + return ResourceManager.GetString("TransHeight", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Translation Northings: ähnelt. + /// + internal static string TransNorth { + get { + return ResourceManager.GetString("TransNorth", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die True North is ähnelt. /// @@ -483,6 +618,15 @@ internal static string UpperEntity { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Vertical Datum: ähnelt. + /// + internal static string VertDatum { + get { + return ResourceManager.GetString("VertDatum", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die with ähnelt. /// diff --git a/IFCGeoRefCheckerGUI/Properties/Resources.de.resx b/IFCGeoRefCheckerGUI/Properties/Resources.de.resx index 3fc6633..638aead 100644 --- a/IFCGeoRefCheckerGUI/Properties/Resources.de.resx +++ b/IFCGeoRefCheckerGUI/Properties/Resources.de.resx @@ -256,7 +256,7 @@ Parameter des Weltkoordinatensystems - Attribut Weltkoordinatensystem des ifcGeometricRepresentationContext wird nicht für die Georeferenzierung verwendet + Attribut Weltkoordinatensystem des IfcGeometricRepresentationContext wird nicht für die Georeferenzierung verwendet verweist auf @@ -264,4 +264,52 @@ vom Typ + + IfcMapConversion definiert in + + + Translation Ostwert: + + + Translation Nordwert: + + + Translation Höhe: + + + Maßstab: + + + Der Maßstab der MapConversion liegt zwischen 0,9 und 1,1. Dies wird möglicherweise nicht für die Umwandlung von Einheiten verwendet. + + + Ziel-CRS ist: + + + Beschreibung: + + + Geodätisches Datum: + + + Vertikales Datum: + + + Keine IfcMapConverison angegeben durch # + + + für ContextType + + + Kein IfcGeometricRepresentationContext gefunden + + + In der Datei ist keine IfcMapConversion angegeben + + + Rotation x-Achse Abszisse: + + + Rotation x-Achse Ordinate: + \ No newline at end of file diff --git a/IFCGeoRefCheckerGUI/Properties/Resources.es.resx b/IFCGeoRefCheckerGUI/Properties/Resources.es.resx index f7e71c2..a7d1118 100644 --- a/IFCGeoRefCheckerGUI/Properties/Resources.es.resx +++ b/IFCGeoRefCheckerGUI/Properties/Resources.es.resx @@ -264,4 +264,52 @@ de tipo + + IfcMapConversion definida en + + + Traducción Eastings: + + + Traducción Northings: + + + Altura de traducción: + + + Escala: + + + La escala de la conversión de mapas es entre 0.9 y 1.1. Esto podría no usarse para la conversión de unidades. + + + Target CRS es: + + + Descripción: + + + Dato geodésico: + + + Dato vertical: + + + No ifcMapConverison especificado por # + + + para contexttype + + + Encontrado no ifcgeometricrePresentationContext + + + No IFCMapConversion especificada en el archivo + + + Rotación del eje x abscisa: + + + Ordenada de eje X de rotación: + \ No newline at end of file diff --git a/IFCGeoRefCheckerGUI/Properties/Resources.fr.resx b/IFCGeoRefCheckerGUI/Properties/Resources.fr.resx index 4a53622..a17d633 100644 --- a/IFCGeoRefCheckerGUI/Properties/Resources.fr.resx +++ b/IFCGeoRefCheckerGUI/Properties/Resources.fr.resx @@ -264,4 +264,52 @@ de type + + IfcMapConversion définie dans + + + Traduction Eastings: + + + Northings de traduction: + + + Hauteur de traduction: + + + Échelle: + + + L'échelle de la conversion de la carte se situe entre 0,9 et 1,1. Cela pourrait ne pas être utilisé pour la conversion des unités. + + + CRS cible est: + + + Description: + + + DATE GÉODÉTIQUE: + + + Date verticale: + + + Non IFCMAPCONVERISON SPÉCIFIÉ PAR # + + + pour ContextType + + + Trouvé aucun ifcgeometRepresentationContext + + + Non ifcmapConversion spécifié dans le fichier + + + ROTATION AUSSA AXIS X: + + + Rotation x-axe ordonnée: + \ No newline at end of file diff --git a/IFCGeoRefCheckerGUI/Properties/Resources.it.resx b/IFCGeoRefCheckerGUI/Properties/Resources.it.resx index 94602fe..233b25a 100644 --- a/IFCGeoRefCheckerGUI/Properties/Resources.it.resx +++ b/IFCGeoRefCheckerGUI/Properties/Resources.it.resx @@ -264,4 +264,52 @@ di tipo + + Ifcmapconversion definito in + + + Translation Eastings: + + + Translation Northings: + + + Altezza della traduzione: + + + Scala: + + + La scala della conversione delle mappe è compresa tra 0,9 e 1,1. Questo potrebbe non essere usato per la conversione delle unità. + + + Target CRS è: + + + Descrizione: + + + Datum geodetico: + + + Datum verticale: + + + Nessun IfcmapConverison specificato da # + + + per contestyType + + + Non ha trovato IfCgeometricRepresentationContext + + + Nessuna IfcmapConversion specificata nel file + + + Rotazione X-Axis Ascissa: + + + Ordinata dell'asse X di rotazione: + \ No newline at end of file diff --git a/IFCGeoRefCheckerGUI/Properties/Resources.pt.resx b/IFCGeoRefCheckerGUI/Properties/Resources.pt.resx index c9c7746..d3a6156 100644 --- a/IFCGeoRefCheckerGUI/Properties/Resources.pt.resx +++ b/IFCGeoRefCheckerGUI/Properties/Resources.pt.resx @@ -264,4 +264,52 @@ do tipo + + IfcmapConverSion definido em + + + Lastes de tradução: + + + Tradução Northings: + + + Altura de tradução: + + + Escala: + + + A escala da conversão do mapa está entre 0,9 e 1,1. Isso pode não ser usado para conversão de unidades. + + + Target CRS é: + + + Descrição: + + + Datum geodésico: + + + Dado vertical: + + + NO IFCMAPConverison especificado por # + + + para contextType + + + Não encontrou o IFCGEOMETRICREPRESENTATIONCONTEXT + + + NO IFCMAPCONVERSION especificado no arquivo + + + ROTAÇÃO X-Eixo Abcissa: + + + Ordenada de eixo x de rotação: + \ No newline at end of file diff --git a/IFCGeoRefCheckerGUI/Properties/Resources.resx b/IFCGeoRefCheckerGUI/Properties/Resources.resx index 8e07a32..06df974 100644 --- a/IFCGeoRefCheckerGUI/Properties/Resources.resx +++ b/IFCGeoRefCheckerGUI/Properties/Resources.resx @@ -264,4 +264,52 @@ of type + + IfcMapConversion defined in + + + Translation Eastings: + + + Translation Northings: + + + Translation Height: + + + Scale: + + + Scale of map conversion is between 0.9 and 1.1. This might not be used for conversion of units. + + + Target CRS is: + + + Description: + + + Geodetic Datum: + + + Vertical Datum: + + + No IfcMapConverison specified by # + + + for ContextType + + + Found no IfcGeometricRepresentationContext + + + No IfcMapConversion specified in file + + + Rotation X-Axis Abscissa: + + + Rotation X-Axis Ordinate: + \ No newline at end of file diff --git a/IFCGeorefShared/GeoRefChecker.cs b/IFCGeorefShared/GeoRefChecker.cs index 93bdfea..6d0bc1e 100644 --- a/IFCGeorefShared/GeoRefChecker.cs +++ b/IFCGeorefShared/GeoRefChecker.cs @@ -808,25 +808,25 @@ private string WriteResultLvl50() var xAxisAbscissa = lvl50.MapConversion.XAxisAbscissa; var XaxisOrdinate = lvl50.MapConversion.XAxisOrdinate; - sb.AppendLine($"IfcMapConversion defined in #{lvl50.MapConversion.EntityLabel} for {lvl50.context!.GetType().Name} (#{lvl50.context.EntityLabel}) for ContextType {lvl50.context.ContextType}"); - sb.AppendLine($"Translation Eastings: {lvl50.MapConversion.Eastings}"); - sb.AppendLine($"Translation Northings: {lvl50.MapConversion.Northings}"); - sb.AppendLine($"Translation Height: {lvl50.MapConversion.OrthogonalHeight}"); - sb.AppendLine($"Rotation X-Axis Abscissa: {lvl50.MapConversion.XAxisAbscissa}"); - sb.AppendLine($"Rotation X-Axis Ordinate: {lvl50.MapConversion.XAxisOrdinate}"); - sb.AppendLine($"Scale: {lvl50.MapConversion.Scale}"); + sb.AppendLine($"{_translationService.Translate("MapConversionDefined", CultureInfo.CurrentCulture)} #{lvl50.MapConversion.EntityLabel} for {lvl50.context!.GetType().Name} (#{lvl50.context.EntityLabel}) {_translationService.Translate("ContextType", CultureInfo.CurrentCulture)} {lvl50.context.ContextType}"); + sb.AppendLine($"{_translationService.Translate("TransEast", CultureInfo.CurrentCulture)} {lvl50.MapConversion.Eastings}"); + sb.AppendLine($"{_translationService.Translate("TransNorth", CultureInfo.CurrentCulture)} {lvl50.MapConversion.Northings}"); + sb.AppendLine($"{_translationService.Translate("TransHeight", CultureInfo.CurrentCulture)} {lvl50.MapConversion.OrthogonalHeight}"); + sb.AppendLine($"{_translationService.Translate("RotXAbs", CultureInfo.CurrentCulture)} {lvl50.MapConversion.XAxisAbscissa}"); + sb.AppendLine($"{_translationService.Translate("RotXOrd", CultureInfo.CurrentCulture)} {lvl50.MapConversion.XAxisOrdinate}"); + sb.AppendLine($"{_translationService.Translate("Scale", CultureInfo.CurrentCulture)} {lvl50.MapConversion.Scale}"); if (lvl50.MapConversion.Scale < 0.9 && lvl50.MapConversion.Scale < 1.1) { - sb.AppendLine("Scale of map conversion is between 0.9 and 1.1. This might not be used for conversion of units."); + sb.AppendLine($"{_translationService.Translate("ScaleMapConversion", CultureInfo.CurrentCulture)}"); } sb.AppendLine(); - sb.AppendLine($"Target CRS is: {lvl50.MapConversion.TargetCRS.Name}"); - sb.AppendLine($"Description: {(lvl50.MapConversion.TargetCRS.Description.HasValue ? lvl50.MapConversion.TargetCRS.Description : "not specified")}"); - sb.AppendLine($"Geodetic Datum: {(lvl50.MapConversion.TargetCRS.GeodeticDatum.HasValue ? lvl50.MapConversion.TargetCRS.GeodeticDatum : "not specified")}"); - sb.AppendLine($"Vertical Datum: {(lvl50.MapConversion.TargetCRS.VerticalDatum.HasValue ? lvl50.MapConversion.TargetCRS.VerticalDatum : "not specified")}"); + sb.AppendLine($"{_translationService.Translate("TargetCRS", CultureInfo.CurrentCulture)} {lvl50.MapConversion.TargetCRS.Name}"); + sb.AppendLine($"{_translationService.Translate("Description", CultureInfo.CurrentCulture)} {(lvl50.MapConversion.TargetCRS.Description.HasValue ? lvl50.MapConversion.TargetCRS.Description : "not specified")}"); + sb.AppendLine($"{_translationService.Translate("GeoDatum", CultureInfo.CurrentCulture)} {(lvl50.MapConversion.TargetCRS.GeodeticDatum.HasValue ? lvl50.MapConversion.TargetCRS.GeodeticDatum : "not specified")}"); + sb.AppendLine($"{_translationService.Translate("VertDatum", CultureInfo.CurrentCulture)} {(lvl50.MapConversion.TargetCRS.VerticalDatum.HasValue ? lvl50.MapConversion.TargetCRS.VerticalDatum : "not specified")}"); sb.AppendLine(); sb.AppendLine($"LoGeoRef50 {_translationService.Translate("Fulfilled", CultureInfo.CurrentCulture)}"); @@ -834,7 +834,7 @@ private string WriteResultLvl50() } else { - sb.AppendLine($"{(lvl50.context != null ? $"No IfcMapConversion specified by #{lvl50.context.EntityLabel} IfcGeometricRepresentationContext for ContextType {lvl50.context.ContextType}" : "Found no IfcGeometricRepresentationContext")}"); + sb.AppendLine($"{(lvl50.context != null ? $"{_translationService.Translate("NoMapConvBy", CultureInfo.CurrentCulture)}{lvl50.context.EntityLabel} IfcGeometricRepresentationContext {_translationService.Translate("ContextType", CultureInfo.CurrentCulture)} {lvl50.context.ContextType}" : $"{_translationService.Translate("FoundNo", CultureInfo.CurrentCulture)}")}"); sb.AppendLine(); sb.AppendLine($"LoGeoRef50 {_translationService.Translate("NotFulfilled", CultureInfo.CurrentCulture)}"); @@ -848,7 +848,7 @@ private string WriteResultLvl50() if (this.LoGeoRef50.Count < 1) { - sb.AppendLine("No IfcMapConversion specified in file"); + sb.AppendLine($"{_translationService.Translate("NoMapConvIn", CultureInfo.CurrentCulture)}"); } sb.AppendLine();