diff --git a/src/Mod/Web/Gui/Resources/translations/Web.ts b/src/Mod/Web/Gui/Resources/translations/Web.ts new file mode 100644 index 000000000..8ef102469 --- /dev/null +++ b/src/Mod/Web/Gui/Resources/translations/Web.ts @@ -0,0 +1,168 @@ + + + + + CmdWebBrowserBack + + + Web + + + + + Previous page + + + + + Go back to the previous page + + + + + CmdWebBrowserNext + + + Web + + + + + Next page + + + + + Go to the next page + + + + + CmdWebBrowserRefresh + + + Web + + + + + + Refresh web page + + + + + CmdWebBrowserStop + + + Web + + + + + Stop loading + + + + + Stop the current loading + + + + + CmdWebBrowserZoomIn + + + Web + + + + + Zoom in + + + + + Zoom into the page + + + + + CmdWebBrowserZoomOut + + + Web + + + + + Zoom out + + + + + Zoom out of the page + + + + + CmdWebOpenWebsite + + + Web + + + + + Open website... + + + + + Opens a website in FreeCAD + + + + + QObject + + + Browser + + + + + File does not exist! + + + + + WebGui::BrowserView + + + Error + + + + + Loading %1... + + + + + WebGui::WebView + + + Open in External Browser + + + + + Workbench + + + Navigation + + + + diff --git a/src/Tools/updateTranslations.py b/src/Tools/updateTranslations.py index 711cca763..035c71e9e 100755 --- a/src/Tools/updateTranslations.py +++ b/src/Tools/updateTranslations.py @@ -86,7 +86,8 @@ locations = [["Arch","../Mod/Arch/Resources/translations","../Mod/Arch/Resources ["StartPage","../Mod/Start/Gui/Resources/translations","../Mod/Start/Gui/Resources/Start.qrc"], ["Test","../Mod/Test/Gui/Resources/translations","../Mod/Test/Gui/Resources/Test.qrc"], ["Ship","../Mod/Ship/resources/translations","../Mod/Ship/resources/Ship.qrc"], - ["Plot","../Mod/Plot/resources/translations","../Mod/Plot/resources/Plot.qrc"]] + ["Plot","../Mod/Plot/resources/translations","../Mod/Plot/resources/Plot.qrc"], + ["Test","../Mod/Web/Gui/Resources/translations","../Mod/Web/Gui/Resources/Web.qrc"]] def updateqrc(qrcpath,lncode): "updates a qrc file with the given translation entry" @@ -116,7 +117,12 @@ def updateqrc(qrcpath,lncode): if ".qm" in resources[i]: pos = i if pos == None: - print "ERROR: couldn't find any qm file entry in this resource: " + qrcpath + print "No existing .qm file in this resource. Appending to the end position" + for i in range(len(resources)): + if "" in resources[i]: + pos = i-1 + if pos == None: + print "ERROR: couldn't add qm files to this resource: " + qrcpath sys.exit() # inserting new entry just after the last one