1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Fix i18n of 3D view name

Make the full view name translatable as a whole instead of combining
from sub-strings.
This commit is contained in:
Haoyu Qiu
2021-08-14 15:23:59 +08:00
parent 632844e464
commit afea754e97
2 changed files with 83 additions and 24 deletions

View File

@@ -211,6 +211,16 @@ class SpatialEditorViewport : public Control {
VIEW_PORTAL_CULLING,
};
enum ViewType {
VIEW_TYPE_USER,
VIEW_TYPE_TOP,
VIEW_TYPE_BOTTOM,
VIEW_TYPE_LEFT,
VIEW_TYPE_RIGHT,
VIEW_TYPE_FRONT,
VIEW_TYPE_REAR,
};
public:
enum {
GIZMO_BASE_LAYER = 27,
@@ -233,7 +243,7 @@ public:
private:
int index;
String name;
ViewType view_type;
void _menu_option(int p_option);
void _set_auto_orthogonal();
Spatial *preview_node;