[App] Fix of untranslated first document's name (#7156)

* Change no need function newDocument("Unnamed") call to variant without parameter. "Unnamed" set in App newDocument function instead.
* Refactor New Document command to run without parameter.
* Translate new document's userName. Internal name = "Unnamed".
* Crowdin Add to updatets.py App.ts. Create new file App.ts
* Fix error where document name is set with one function parameter. In this situation set internal and user name to string variable. For default function call (without parameter) set internal name to Unnamed, userName = translate ("Unnamed")
This commit is contained in:
Kuzemko Alexsandr
2022-10-21 05:35:09 +03:00
committed by GitHub
parent 02fbf1334d
commit 63174d487f
11 changed files with 43 additions and 11 deletions

View File

@@ -159,7 +159,7 @@ private:
pcDoc = App::GetApplication().getDocument(DocName);
}
if (!pcDoc) {
pcDoc = App::GetApplication().newDocument("Unnamed");
pcDoc = App::GetApplication().newDocument();
}
Handle(XCAFApp_Application) hApp = XCAFApp_Application::GetApplication();