*/}}
浏览代码

translation updates

YimingWu 1 周之前
父节点
当前提交
469ba0ab4f
共有 8 个文件被更改,包括 20 次插入9 次删除
  1. 5 4
      CMakeLists.txt
  2. 1 1
      la_data.c
  3. 1 1
      la_tns.h
  4. 1 1
      la_tns_kernel.c
  5. 1 1
      resources/la_properties.c
  6. 1 1
      resources/la_templates.c
  7. 6 0
      resources/la_translations_es-ES.c
  8. 4 0
      resources/la_translations_zh-hans.c

+ 5 - 4
CMakeLists.txt

@@ -88,10 +88,11 @@ file(GLOB HEADER_FILES
 	./*.h ./*.hpp ./resources/*.h ./resources/*.hpp BuildResources/*.h)
 	./*.h ./*.hpp ./resources/*.h ./resources/*.hpp BuildResources/*.h)
 
 
 #add_definitions(-DLAGUI_FONT_CUSTOM_PATH=\"${LAGUI_FONT_CUSTOM_PATH}\")
 #add_definitions(-DLAGUI_FONT_CUSTOM_PATH=\"${LAGUI_FONT_CUSTOM_PATH}\")
-#add_definitions(-Wno-incompatible-pointer-types)
-#add_definitions(-Wno-int-conversion)
-#add_definitions(-Wno-discarded-qualifiers)
-#add_definitions(-Werror=implicit-function-declaration)
+add_definitions(-Wno-incompatible-pointer-types)
+add_definitions(-Wno-int-conversion)
+add_definitions(-Wno-discarded-qualifiers)
+add_definitions(-Werror=implicit-function-declaration)
+#add_definitions(-Wreturn-mismatch)
 add_definitions(-w)
 add_definitions(-w)
 
 
 if(${LAGUI_ANDROID})
 if(${LAGUI_ANDROID})

+ 1 - 1
la_data.c

@@ -3703,7 +3703,7 @@ laManagedUDF* la_EnsureManagedUDF(char* FileName, int PutAtTop){
     return m;
     return m;
 }
 }
 void la_MakeDummyManagedUDF(){
 void la_MakeDummyManagedUDF(){
-    MAIN.DummyManageUDF=la_EnsureManagedUDF(transLate("< Save as a new file >"), 1);
+    MAIN.DummyManageUDF=la_EnsureManagedUDF("< Save as a new file >", 1);
     if(!MAIN.DummyManageUDFSingle){
     if(!MAIN.DummyManageUDFSingle){
         MAIN.DummyManageUDFSingle=memAcquire(sizeof(laManagedUDF)); strSafeSet(&MAIN.DummyManageUDFSingle->BaseName, transLate("< Choose file >"));
         MAIN.DummyManageUDFSingle=memAcquire(sizeof(laManagedUDF)); strSafeSet(&MAIN.DummyManageUDFSingle->BaseName, transLate("< Choose file >"));
         MAIN.DummyManageUDFSingleForce=memAcquire(sizeof(laManagedUDF)); strSafeSet(&MAIN.DummyManageUDFSingleForce->BaseName, transLate("< Force >"));
         MAIN.DummyManageUDFSingleForce=memAcquire(sizeof(laManagedUDF)); strSafeSet(&MAIN.DummyManageUDFSingleForce->BaseName, transLate("< Force >"));

+ 1 - 1
la_tns.h

@@ -1104,7 +1104,7 @@ real tnsDist2dv(tnsVector2d l, tnsVector2d r);
 real tnsLength3d(tnsVector3d l);
 real tnsLength3d(tnsVector3d l);
 real tnsLength2d(tnsVector2d l);
 real tnsLength2d(tnsVector2d l);
 void tnsNormalize3d(tnsVector3d result, tnsVector3d l);
 void tnsNormalize3d(tnsVector3d result, tnsVector3d l);
-void tnsNormalizeSelf2d(tnsVector3d result);
+void tnsNormalizeSelf2d(tnsVector2d result);
 void tnsNormalizeSelf3d(tnsVector3d result);
 void tnsNormalizeSelf3d(tnsVector3d result);
 real tnsDot3d(tnsVector3d l, tnsVector3d r, int normalize);
 real tnsDot3d(tnsVector3d l, tnsVector3d r, int normalize);
 real tnsDot2d(tnsVector2d l, tnsVector2d r, int normalize);
 real tnsDot2d(tnsVector2d l, tnsVector2d r, int normalize);

+ 1 - 1
la_tns_kernel.c

@@ -778,7 +778,7 @@ void tnsNormalize2d(tnsVector2d result, tnsVector2d l){
     result[0] = l[0] / r;
     result[0] = l[0] / r;
     result[1] = l[1] / r;
     result[1] = l[1] / r;
 }
 }
-void tnsNormalizeSelf2d(tnsVector3d result){
+void tnsNormalizeSelf2d(tnsVector2d result){
     real r = sqrt(result[0] * result[0] + result[1] * result[1]);
     real r = sqrt(result[0] * result[0] + result[1] * result[1]);
     result[0] /= r;
     result[0] /= r;
     result[1] /= r;
     result[1] /= r;

+ 1 - 1
resources/la_properties.c

@@ -1817,7 +1817,7 @@ void la_RegisterInternalProps(){
         }
         }
 
 
         p = laAddPropertyContainer("managed_udf", "Managed UDF", "Managed UDF files", U'🖹', laui_ManagedUDFItem, sizeof(laManagedUDF), 0,0,0);{
         p = laAddPropertyContainer("managed_udf", "Managed UDF", "Managed UDF files", U'🖹', laui_ManagedUDFItem, sizeof(laManagedUDF), 0,0,0);{
-            laAddStringProperty(p, "basename", "Base Name", "Base name of the file (withiout directory)", 0,0,0,0,1, offsetof(laManagedUDF, BaseName), 0,0,0,0,LA_AS_IDENTIFIER|LA_READ_ONLY);
+            laAddStringProperty(p, "basename", "Base Name", "Base name of the file (withiout directory)", 0,0,0,0,1, offsetof(laManagedUDF, BaseName), 0,0,0,0,LA_AS_IDENTIFIER|LA_READ_ONLY|LA_TRANSLATE);
             laAddSubGroup(p, "udf", "UDF", "Reference to target UDF file", "udf",0,0,0,offsetof(laManagedUDF, udf), 0,0,0,0,0,0,0,LA_UDF_REFER);
             laAddSubGroup(p, "udf", "UDF", "Reference to target UDF file", "udf",0,0,0,offsetof(laManagedUDF, udf), 0,0,0,0,0,0,0,LA_UDF_REFER);
         }
         }
         p = laAddPropertyContainer("udf", "UDF File", "UDF file block", U'🖹', 0,sizeof(laUDF), 0,0,0);{
         p = laAddPropertyContainer("udf", "UDF File", "UDF file block", U'🖹', 0,sizeof(laUDF), 0,0,0);{

+ 1 - 1
resources/la_templates.c

@@ -98,7 +98,7 @@ void laui_DefaultPropDetails(laUiList *uil, laPropPack *This, laPropPack *Extra,
                         strSafeSet(&s,0); strSafePrint(&s,"la.managed_udfs@basename=%s.__self", safepath);
                         strSafeSet(&s,0); strSafePrint(&s,"la.managed_udfs@basename=%s.__self", safepath);
                         laShowItemFull(uil,c,0,s->Ptr,0,0,laui_ManagedUDFItem,0)->Flags|=LA_UI_FLAGS_NO_GAP|LA_UI_FLAGS_NO_DECAL;
                         laShowItemFull(uil,c,0,s->Ptr,0,0,laui_ManagedUDFItem,0)->Flags|=LA_UI_FLAGS_NO_GAP|LA_UI_FLAGS_NO_DECAL;
                     }else{
                     }else{
-                        laShowLabel(uil,c,"<Not saved yet>",0,0)->Flags|=LA_UI_FLAGS_DISABLED;
+                        laShowLabel(uil,c,"< Not saved yet >",0,0)->Flags|=LA_UI_FLAGS_DISABLED;
                     }
                     }
                 }
                 }
             }
             }

+ 6 - 0
resources/la_translations_es-ES.c

@@ -24,6 +24,12 @@
 #include "la_5.h"
 #include "la_5.h"
 
 
 static const char *entries[]={
 static const char *entries[]={
+"< Force >", "< Forzar >",
+"< Choose file >", "< Elegir archivo >",
+"< Not saved yet >","< Aún no guardado >",
+"< Save as a new file >", "< Guardar como un nuevo archivo >",
+"Support for EDID is only on Linux.", "El soporte para EDID solo está disponible en Linux.",
+"No icc profiles for soft proofing has been loaded.", "No se han cargado perfiles icc para pruebas suaves.",
 "Close Toolbox", "Cerrar caja de Herramientas",
 "Close Toolbox", "Cerrar caja de Herramientas",
 "Select a toolbox:", "Seleccionar caja de herramientras:",
 "Select a toolbox:", "Seleccionar caja de herramientras:",
 "Floating Panel", "Panel Flotante",
 "Floating Panel", "Panel Flotante",

+ 4 - 0
resources/la_translations_zh-hans.c

@@ -19,6 +19,10 @@
 #include "la_5.h"
 #include "la_5.h"
 
 
 static const char *entries[]={
 static const char *entries[]={
+"< Force >", "< 强制 >",
+"< Choose file >", "< 选择文件 >",
+"< Not saved yet >", "< 尚未储存 >",
+"< Save as a new file >", "< 储存为新文件 >",
 "Support for EDID is only on Linux.", "仅在Linux上支持EDID。",
 "Support for EDID is only on Linux.", "仅在Linux上支持EDID。",
 "No icc profiles for soft proofing has been loaded.", "未加载任何用于软打样的icc配置文件。",
 "No icc profiles for soft proofing has been loaded.", "未加载任何用于软打样的icc配置文件。",
 "Close Toolbox", "关闭工具箱",
 "Close Toolbox", "关闭工具箱",