*/}}
Browse Source

Translation updates

YimingWu 3 weeks ago
parent
commit
fc8122478d
4 changed files with 163 additions and 9 deletions
  1. 8 0
      la_kernel.c
  2. 2 2
      resources/la_operators.c
  3. 7 7
      resources/la_properties.c
  4. 146 0
      resources/la_translations.c

+ 8 - 0
la_kernel.c

@@ -1298,6 +1298,14 @@ void la_FreeKeyMapItem(laKeyMapItem* kmi);
 
 void laShutoff(int SavePrefereces){
     if(MAIN.SavePreferenceOnExit && SavePrefereces){ laSaveUserPreferences(); }
+
+    //for(laPropContainer* pc=MAIN.PropContainers.pFirst;pc;pc=pc->Item.pNext){
+    //     transLate(pc->Description);
+    //    for(laProp* p=pc->Props.pFirst;p;p=p->Item.pNext){
+    //         transLate(p->Description);
+    //    }
+    //}
+
     transDumpMissMatchRecord("TranslationDump.txt");
 
     if(MAIN.Cleanup) MAIN.Cleanup();

+ 2 - 2
resources/la_operators.c

@@ -2371,7 +2371,7 @@ void la_RegisterBuiltinOperators(){
     laCreateOperatorType("LA_dock_panel", "Dock Panel", "Dock a panel",
                           OPCHK_IsPanel, 0, 0, OPINV_DockPanel, 0, 0, LA_ACTUATOR_SYSTEM);
     
-    laCreateOperatorType("LA_prop_restore_default", "Restore Default Value", "Restore property back to its default value", OPCHK_PropSetValue, 0, 0, OPINV_PropSetDefault, 0, U'⭯', LA_ACTUATOR_SYSTEM);
+    laCreateOperatorType("LA_prop_restore_default", "Restore default value", "Restore property back to its default value", OPCHK_PropSetValue, 0, 0, OPINV_PropSetDefault, 0, U'⭯', LA_ACTUATOR_SYSTEM);
     laCreateOperatorType("LA_prop_set_min", "Set Min Value", "Set property to its minimum value", OPCHK_PropSetValue, 0, 0, OPINV_PropSetMin, 0, 0, LA_ACTUATOR_SYSTEM);
     laCreateOperatorType("LA_prop_set_max", "Set Max Value", "Set property to its maximum value", OPCHK_PropSetValue, 0, 0, OPINV_PropSetMax, 0, 0, LA_ACTUATOR_SYSTEM);
     laCreateOperatorType("LA_string_set_default", "Set Default Value", "Set default string", OPCHK_StringSetValue, 0, 0, OPINV_PropSetDefault, 0, U'⭯', LA_ACTUATOR_SYSTEM);
@@ -2412,7 +2412,7 @@ void la_RegisterBuiltinOperators(){
     laAddOperatorProperty(pc, "confirm", "Confirm", "Confirm selection", "LA_file_dialog_confirm", U'✔', 0);
     p = laAddPropertyContainer("disk_item", "Disk Item", "A logical drive (in Windows)", 0, laui_FileBrowserDiskItem, 0, 0, 0, 1);{
         laAddStringProperty(p, "id", "ID", "Disk identifier", 0, 0, 0, 0, 0, 0, 0, laget_FileBrowserDiskID, 0, 0, 0);
-        laAddFloatProperty(p, "total_gb", "Total", "Disk Total Compacity In Gigabytes", 0, 0, "GB", 0, 0, 0, 0, 0, offsetof(laDiskItem, Total_GB), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,LA_READ_ONLY);
+        laAddFloatProperty(p, "total_gb", "Total", "Disk total compacity in gigabytes", 0, 0, "GB", 0, 0, 0, 0, 0, offsetof(laDiskItem, Total_GB), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,LA_READ_ONLY);
         laAddFloatProperty(p, "free_gb", "Free", "Disk Free Space Size In Gigabytes", 0, 0, "GB", 0, 0, 0, 0, 0, offsetof(laDiskItem, Free_GB), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,LA_READ_ONLY);
     }
     p = laAddPropertyContainer("file_item", "File Item", "A file item in a list", U'🖹', 0, 0, 0, 0, 0);{

+ 7 - 7
resources/la_properties.c

@@ -1135,7 +1135,7 @@ void la_RegisterGeneralProps(){
     p = la_SetGeneralRoot(&MAIN.GeneralStringSub, "__general_string__", "Genral String Operations", "Genral String Operations");
     laAddOperatorProperty(p, "copy", "Copy", "Copy to clipboard", "LA_string_copy", 0,0);
     laAddOperatorProperty(p, "paste", "Paste", "Paste from clipboard", "LA_system_paste", 0,0);
-    laAddOperatorProperty(p, "restore", "Restore Default", "Restore Default Value", "LA_string_set_default", U'⭯', 0);
+    laAddOperatorProperty(p, "restore", "Restore Default", "Restore default value", "LA_string_set_default", U'⭯', 0);
     laAddOperatorProperty(p, "get_folder_path", "Get Folder Path", "Get a folder path", "LA_string_get_folder_path", U'📁', 0);
     laAddOperatorProperty(p, "get_file_path", "Get File Path", "Get a file path", "LA_string_get_file_path", U'🖹', 0);
     p->MenuUiDefine=laui_StringPropUiDefine;
@@ -1686,7 +1686,7 @@ void la_RegisterInternalProps(){
             laAddFloatProperty(p, "idle_time", "Idle time", "Time out on no input to show tooltips", 0,0,0,2.0,0.3, 0.05, 0.75, 0,offsetof(LA, IdleTime), 0,0,0,0,0,0,0,0,0,0,0);
             laAddIntProperty(p, "top_framerate", "Top Framerate", "Framerate limiter for drawing the user interface", 0,0,0,60,25, 1, 60,0,offsetof(LA, TopFramerate), 0,0,0,0,0,0,0,0,0,0,0);
             laAddIntProperty(p, "valuator_threshold", "Valuator Threshold", "Drag how many pixels trigger a change in valuator", 0,0,0,10,1, 1, 3, 0,offsetof(LA, ValuatorThreshold), 0,0,0,0,0,0,0,0,0,0,0);
-            laAddIntProperty(p, "scroll_speed", "Scrolling Speed", "How many pixels to move when scrolling using mouse wheel", 0,0,0,10,1, 1, 3, 0,offsetof(LA, ScrollingSpeed), 0,0,0,0,0,0,0,0,0,0,0);
+            laAddIntProperty(p, "scroll_speed", "Scrolling Speed", "How many rows to move when scrolling using mouse wheel", 0,0,0,10,1, 1, 3, 0,offsetof(LA, ScrollingSpeed), 0,0,0,0,0,0,0,0,0,0,0);
             laAddFloatProperty(p, "animation_speed", "Animation Speed", "Ui animation speed", 0,0,0,0.6, 0.1, 0.05, 0.2, 0,offsetof(LA, AnimationSpeed), 0,0,0,0,0,0,0,0,0,0,0);
             laAddFloatProperty(p, "panel_animation_speed", "Panel Animation Speed", "Panel animation speed", 0,0,0,0.6, 0.1, 0.05, 0.2, 0,offsetof(LA, PanelAnimationSpeed), 0,0,0,0,0,0,0,0,0,0,0);
             laAddFloatProperty(p, "zoom_speed_2d", "Zoom Speed 2D", "2d canvas zooming speed", 0,0,0,0.5, 0.01, 0.01, 0.01, 0,offsetof(LA, ZoomSpeed2D), 0,0,0,0,0,0,0,0,0,0,0);
@@ -1749,7 +1749,7 @@ void la_RegisterInternalProps(){
             laAddIntProperty(p, "wacom_device_stylus", "Stylus Device", "Wacom stylus device ID", LA_WIDGET_INT_PLAIN, 0,0,0,0,0,0,0,offsetof(LA, WacomDeviceStylus), 0,0,0,0,0,0,0,0,0,0,LA_READ_ONLY|LA_UDF_IGNORE);
             laAddIntProperty(p, "wacom_device_eraser", "Eraser Device", "Wacom eraser device ID", LA_WIDGET_INT_PLAIN, 0,0,0,0,0,0,0,offsetof(LA, WacomDeviceEraser), 0,0,0,0,0,0,0,0,0,0,LA_READ_ONLY|LA_UDF_IGNORE);
             
-            ep = laAddEnumProperty(p, "wacom_driver", "Wacom driver", "Wacom driver to read pressure info from on windows", 0, 0, 0, 0, 0, offsetof(LA, InkOrWinTab), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); {
+            ep = laAddEnumProperty(p, "wacom_driver", "Wacom driver", "Wacom driver to read pressure info from on Windows", 0, 0, 0, 0, 0, offsetof(LA, InkOrWinTab), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); {
                 laAddEnumItemAs(ep, "WINDOWS_INK", "Windows Ink", "Use Windows Ink pressure events (WM_POINTERUPDATE).", 0, 0);
                 laAddEnumItemAs(ep, "WINTAB", "WinTab", "Use wacom WinTab driver to read pressure events (WT_PACKET).", 1, 0);
             }
@@ -1836,7 +1836,7 @@ void la_RegisterInternalProps(){
         p = laAddPropertyContainer("la_screen","Screen","Screen detected from system",0,0,sizeof(laScreen),0,0,1);{
             laAddStringProperty(p,"name","Name","Name of the screen",LA_WIDGET_STRING_PLAIN,0,0,0,1,offsetof(laScreen,Name),0,0,0,0,LA_READ_ONLY|LA_AS_IDENTIFIER);
             laAddStringProperty(p,"description","Description","Desctiption of this screen",LA_WIDGET_STRING_MONO_PLAIN,0,0,0,1,offsetof(laScreen,Description),0,0,0,0,LA_READ_ONLY);
-            ep = laAddEnumProperty(p, "color_space", "Output Color Space", "Output color space of this screen", 0,0,0,0,0,offsetof(laScreen,ColorSpace), 0,laset_ScreenColorSpace, 0,0,0,0,0,0,0,0);{
+            ep = laAddEnumProperty(p, "color_space", "Output Color Space", "Hardware color space of this screen ", 0,0,0,0,0,offsetof(laScreen,ColorSpace), 0,laset_ScreenColorSpace, 0,0,0,0,0,0,0,0);{
                 laAddEnumItemAs(ep, "SRGB", "sRGB", "Standard sRGB diplay", TNS_COLOR_SPACE_SRGB, 0);
                 laAddEnumItemAs(ep, "CLAY", "Clay", "Clay color space (AdobeRGB 1998 compatible)", TNS_COLOR_SPACE_CLAY, 0);
             }
@@ -1871,12 +1871,12 @@ void la_RegisterInternalProps(){
             laAddStringProperty(p, "title", "Title", "The title/name of a panel", 0,0,0,0,1, offsetof(laPanel, Title), 0,0,laset_PanelTitle, laread_PanelTitle,LA_AS_IDENTIFIER|LA_TRANSLATE);
             laAddIntProperty(p, "position", "Position", "The Position Of A Panel", 0,"X,Y", "px", 0,0,1, 0,0,offsetof(laPanel, X), 0,0,2, 0,0,0,0,0,0,0,LA_READ_ONLY);
             laAddIntProperty(p, "size", "Size", "The Size Of A Panel", 0,"Width,Height", "px", 0,0,1, 0,0,offsetof(laPanel, W), 0,0,2, 0,0,0,0,0,0,0,LA_READ_ONLY);
-            laAddIntProperty(p, "real_xywh", "Real Placemnt", "Placeent Data In Structure", 0,"X,Y,W,H", "px", 0,0,1, 0,0,offsetof(laPanel, TX), 0,0,4, 0,0,0,0,0,0,0,LA_READ_ONLY);
+            laAddIntProperty(p, "real_xywh", "Real Placemnt", "Placement data in structure", 0,"X,Y,W,H", "px", 0,0,1, 0,0,offsetof(laPanel, TX), 0,0,4, 0,0,0,0,0,0,0,LA_READ_ONLY);
             ep = laAddEnumProperty(p, "snap_enable", "Snap Enable", "Enable Snapping To Edges", 0,"Left,Right,Top,Bottom", 0,0,0,0,0,0,4, 0,laset_PanelSnapEnable, laget_PanelSnapEnable, 0,0,0,0);{
                 laAddEnumItem(ep, "no", "No Snap", "Not Snapped to edge", 0);
                 laAddEnumItem(ep, "yes", "Snap", "Snapped to edge", U'🞉');
             } //don't swap order with the one below
-            laAddIntProperty(p, "snap", "Snap Distance", "Snapping Distance To Edges", 0,"Left,Right,Top,Bottom", "px", 0,0,1, 0,0,offsetof(laPanel, SL), 0,0,4, 0,laset_PanelSnapDistance, 0,0,0, laread_PanelSnapDistance,0,0);
+            laAddIntProperty(p, "snap", "Snap Distance", "Snapping distance to edges", 0,"Left,Right,Top,Bottom", "px", 0,0,1, 0,0,offsetof(laPanel, SL), 0,0,4, 0,laset_PanelSnapDistance, 0,0,0, laread_PanelSnapDistance,0,0);
             laAddIntProperty(p, "show", "Show", "The panel is shown or not", 0,0,0,0,0,1, 0,0,offsetof(laPanel, Show), 0,0,0,0,0,0,0,0,0,0,0);
             laAddIntProperty(p, "mode", "Mode", "Normal/floating/static/modal etc.", 0,0,0,0,0,1, 0,0,offsetof(laPanel, Mode), 0,0,0,0,0,0,0,0,0,0,LA_READ_ONLY);
             ep = laAddEnumProperty(p, "is_menu_panel", "Is Menu Panel", "Is menu panel", 0,0,0,0,0,offsetof(laPanel, IsMenuPanel), 0,0,0,0,0,0,0,0,0,0);{
@@ -1907,7 +1907,7 @@ void la_RegisterInternalProps(){
             laAddIntProperty(p, "pan", "Pan", "Cavans Panning Pixels", 0,"Pan X,Pan Y", "px", 10000,0,1, 0,0,offsetof(laUiList, PanX), 0,0,2, 0,0,0,0,0,0,0,0);
             laAddSubGroup(p, "instance", "Instance", "Collection Instance For Every Item", "ui_instance",0,0,0,offsetof(laUiList, Instance), 0,0,0,0,0,0,0,LA_UDF_REFER);
 
-            laAddIntProperty(p, "height_coeff", "Height Coefficiency", "How Many Rows A Ui Should Take Or Reserve", 0,0,"Rows", 0,0,1, 0,0,offsetof(laUiList, HeightCoeff), 0,0,0,0,0,0,0,0,0,0,0)
+            laAddIntProperty(p, "height_coeff", "Height Coefficiency", "How many rows a ui should take or reserve", 0,0,"Rows", 0,0,1, 0,0,offsetof(laUiList, HeightCoeff), 0,0,0,0,0,0,0,0,0,0,0)
                 ->ElementBytes = 2;
             laAddIntProperty(p, "icon_id", "Icon ID", "Icon id for this ui list", 0,0,"#", 1800,32, 1, 0,0,offsetof(laUiList, IconID), 0,0,0,0,0,0,0,0,0,0,0)
                 ->ElementBytes = 2;

+ 146 - 0
resources/la_translations.c

@@ -19,6 +19,152 @@
 #include "la_5.h"
 
 static const char *entries[]={
+"Remove this resource folder entry","删除该资源文件夹条目",
+"Confirm selection","确认选择",
+"Rotate Viewing Camera","旋转照相机",
+"Whether OpenGL debug output should be in sync with the caller","OpenGL调试信息是否与调用同步",
+"Set property to its minimum value","设置属性到最小值",
+"Subdivide edges","细分边",
+"A joystick/gamepad controller","手柄控制器",
+"Delete parts of the mesh","删除网格的一部分",
+"Transparency of the edge color","边颜色的透明度",
+"Length of the action in seconds","以秒为单位的动作长度",
+"Show whether line width is acceptable by hardware","显示硬件是否接受提供的线宽",
+"Animation property","动画属性",
+"File size in convenient string","方便阅读的文件尺寸",
+"Name of the page","页面名字",
+"UDF file block","UDF文件块",
+"Loop iterations","循环次数",
+"Whether to enable color management or not","是否启用色彩管理",
+"Bookmark name","书签名字",
+"Internal node type","内部节点类型",
+"Data block is modified","数据块已修改",
+"File extension string","文件扩展名",
+"Custom signal","自定义信号",
+"Repeat a series of operations for a few times","多次重复一系列操作",
+"Zoom Factor On X,Y Axis","在X,Y轴的缩放程度",
+"Select by vertices or edges","按点或者边选择",
+"Base name of the file (withiout directory)","文件名(除去文件夹)",
+"Input mappings","输入映射",
+"Alpha of the wire color","线条颜色透明度",
+"Animation viewer global playhead","动画播放器全局播放位置",
+"The file this block came from/saves to","数据块来自/将储存到的文件",
+"Folders to search for resources","查找资源的文件夹",
+"Move 2D Canvans","移动2d画布",
+"How to play this action","如何播放该工作",
+"Show whether data blocks or UDF files","显示数据块还是UDF文件列表",
+"A logical drive (in Windows)","Windows下的一个逻辑驱动器",
+"Filtered custom signals","过滤的自定义信号",
+"Draw grid background on alpha<1","在alpha<1的位置绘制透明格子",
+"Transparency of the cursor","光标透明度",
+"Clamp output","钳制输出",
+"File path","文件路径",
+"Play head offset from global timing","全局播放位置的偏移",
+"Terminal input string","控制台输入",
+"Which controller should the data come from","数据来自哪个手柄",
+"Restore the property to the original value","恢复属性的初始值",
+"Prefer to show data blocks or files when saving","保存时默认显示数据块还是文件列表",
+"Select signal","选择信号",
+"Name of the screen","屏幕名字",
+"Brightness of the vertex color","点亮度",
+"Signal selection","信号选择",
+"Show stripes on overflowing colors","颜色超界时显示为条纹",
+"Disk total compacity in gigabytes","磁盘以GB计的总容量",
+"String of the pressed key","按键的字符描述",
+"Wacom eraser device ID","Wacom橡皮擦设备符号",
+"Delete this theme","删除该主题",
+"Remove this controller config","删除该控制器配置",
+"Insert key frame in the active action","在当前动作中插入关键帧",
+"Combine mesh objects","合并网格物体",
+"Use script instead of nodes","使用脚本而不是节点",
+"Viewport halftone size","视口半色调尺寸",
+"How many slices of color to give to node sockets","节点颜色数量",
+"Add objects/primitives","添加物体/几何",
+"Disk Free Space Size In Gigabytes","磁盘以GB计的空余容量",
+"The language list in the software","软件中的语言列表",
+"Remove this mapping","删除该映射",
+"Device type of the input event","该输入事件的设备类型",
+"Extrude parts of the mesh","挤出网格的一部分",
+"Close this panel","关闭该面板",
+"File Size In Bytes","文件尺寸以字节计",
+"Translate user interface into another language","将界面翻译为别的语言",
+"Themes Loded In The Program","程序已加载的主题",
+"Transparency of selected edges","选择边的透明度",
+"UID for shared resoure lookup","共享资源加载时的统一标识符",
+"Background brightness in active state","激活状态的背景亮度",
+"How saggy is a wire","线条松垮程度",
+"Reduced alpha on inactive widgets","不可用挂件改变的透明度",
+"Restore default value","恢复默认值",
+"Get a file path","获取一个文件路径",
+"Background brightness","背景亮度",
+"Solid shadow length for floating panels","浮动面板的硬阴影长度",
+"Brightness of the wires","线条亮度",
+"Name of this rack","该挂架的名字",
+"Target data block","目标数据块",
+"Desctiption of this screen","屏幕描述",
+"Create a new directory","创建一个新的文件夹",
+"Select folder or file","选择文件或者文件夹",
+"Unparent selected objects","去掉已选择物体的父级",
+"Remove this entry","删除该条目",
+"Output color space of this window, set this to the monitor's color space to get accurate result","该窗口的输出色彩空间,设置为匹配您显示器的色彩空间以获得更准确的结果",
+"Panel animation speed","面板动画速度",
+"Remove this screen config","删除该屏幕配置",
+"Brightness","亮度",
+"Add a rack into the page","在当前页面里添加一个挂架",
+"Output keyboard events","输出键盘事件",
+"glLineWidth() will follow 2dview zooming","glLineWidth() 跟随2d缩放",
+"Remove this action","删除该动作",
+"Transparency of selected vertices","选择点的透明度",
+"Saturation of the wires","线条饱和度",
+"Reference to target UDF file","引用的目标UDF文件",
+"A bookmarked folder from GTK3","GTK3的书签文件夹",
+"Viewport halftone mixing factor","视口半色调混合比例",
+"Reduced saturation on inactive widgets","非激活状态下减少挂件饱和度",
+"Joystick device number","手柄设备号",
+"Bookmarked directories in GTK3","GTK3的书签文件夹",
+"Automatically switch color space for windows on different screens","为不同屏幕上的窗口自动切换输出色彩空间",
+"Set property to its maximum value","设置属性到最大值",
+"Total frame count in the whole length of the action","该动作的总帧数",
+"Transparency of selected faces","选择面的透明度",
+"Save user preferences before exiting the program","退出程序前保存用户设置",
+"Transparency of the vertex color","点的透明度",
+"Automatically play this animation when player starts","游戏开始播放时自动启动该动画",
+"Hardware color space of this screen ","该屏幕的硬件色彩空间",
+"Theme accent color for warning etc","主题的警告色",
+"Enable log printing to stdout","允许内部信息输出到标准输出",
+"Select upper folder level In file browsers","浏览上一级文件夹",
+"Compose and adjust window colors, best for outdoor lighting","合成并调节窗口颜色以更好适应室外观察",
+"Enable OpenGL debug output in the system terminal","将OpenGL调试输出到系统控制台标准输出",
+"Allows less saturated colors to have more areas","允许低饱和度的颜色占据更大面积",
+"The height of the font related to the row height","字符相对于一行的高度",
+"Wacom driver to read pressure info from on Windows","使用何种驱动程序在Windows下读取Wacom压力数值",
+"How many rows to move when scrolling using mouse wheel","滚动时一次移动多少行",
+"UDF Manager Default View","UDF 管理界面默认视图",
+"Wacom stylus device ID","Wacom笔设备标识符",
+"New mapping entry","新映射条目",
+"Clear background","清空背景色",
+"Merge vertices","合并顶点",
+"The tooltip will hide if mouse moved away further","鼠标移开时工具提示会隐藏",
+"Ui Block","界面块",
+"Slider","滑块",
+"Small Math node","小数学节点",
+"Composing blackpoint","合成黑点",
+"How many rows a ui should take or reserve","界面元素占用多少高度",
+"Icon ID","图标编号",
+"Description of this recorded change","该更改的描述",
+"Points","点",
+"Key Down","键按下",
+"Text brightness","文字亮度",
+"Filter displayed signals","过滤列表中的信号",
+"Delete this rack","删除该挂架",
+"Auto Play","自动播放",
+"Clamp input","钳制输入",
+"Screens connected to this computer","该计算机连接到的显示屏",
+"Shadow transparency for floating panels","浮动面板阴影透明度",
+"Toggle delta transformation mode for animation editing","为动画编辑切换delta变换",
+"Set handle type of selected points","为选择的点设置手柄类型",
+"Available Extensions","可用扩展",
+"Background alpha","背景透明度",
 "New Directory","新文件夹",
 "Bytes","字节",
 "Thumbnail","缩略图",