Added base translation file for the Web WB - issue #453
This commit is contained in:
parent
0f559a7184
commit
6e5fbc74a8
168
src/Mod/Web/Gui/Resources/translations/Web.ts
Normal file
168
src/Mod/Web/Gui/Resources/translations/Web.ts
Normal file
|
@ -0,0 +1,168 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE TS>
|
||||||
|
<TS version="2.0">
|
||||||
|
<context>
|
||||||
|
<name>CmdWebBrowserBack</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="75"/>
|
||||||
|
<source>Web</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="76"/>
|
||||||
|
<source>Previous page</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="77"/>
|
||||||
|
<source>Go back to the previous page</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>CmdWebBrowserNext</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="103"/>
|
||||||
|
<source>Web</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="104"/>
|
||||||
|
<source>Next page</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="105"/>
|
||||||
|
<source>Go to the next page</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>CmdWebBrowserRefresh</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="131"/>
|
||||||
|
<source>Web</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="132"/>
|
||||||
|
<location filename="../../Command.cpp" line="133"/>
|
||||||
|
<source>Refresh web page</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>CmdWebBrowserStop</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="158"/>
|
||||||
|
<source>Web</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="159"/>
|
||||||
|
<source>Stop loading</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="160"/>
|
||||||
|
<source>Stop the current loading</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>CmdWebBrowserZoomIn</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="187"/>
|
||||||
|
<source>Web</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="188"/>
|
||||||
|
<source>Zoom in</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="189"/>
|
||||||
|
<source>Zoom into the page</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>CmdWebBrowserZoomOut</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="215"/>
|
||||||
|
<source>Web</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="216"/>
|
||||||
|
<source>Zoom out</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="217"/>
|
||||||
|
<source>Zoom out of the page</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>CmdWebOpenWebsite</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="50"/>
|
||||||
|
<source>Web</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="51"/>
|
||||||
|
<source>Open website...</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Command.cpp" line="52"/>
|
||||||
|
<source>Opens a website in FreeCAD</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>QObject</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../../AppWebGuiPy.cpp" line="49"/>
|
||||||
|
<source>Browser</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../BrowserView.cpp" line="204"/>
|
||||||
|
<source>File does not exist!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>WebGui::BrowserView</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../../BrowserView.cpp" line="199"/>
|
||||||
|
<source>Error</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../BrowserView.cpp" line="279"/>
|
||||||
|
<source>Loading %1...</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>WebGui::WebView</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../../BrowserView.cpp" line="100"/>
|
||||||
|
<source>Open in External Browser</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>Workbench</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../../Workbench.cpp" line="46"/>
|
||||||
|
<source>Navigation</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
</TS>
|
|
@ -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"],
|
["StartPage","../Mod/Start/Gui/Resources/translations","../Mod/Start/Gui/Resources/Start.qrc"],
|
||||||
["Test","../Mod/Test/Gui/Resources/translations","../Mod/Test/Gui/Resources/Test.qrc"],
|
["Test","../Mod/Test/Gui/Resources/translations","../Mod/Test/Gui/Resources/Test.qrc"],
|
||||||
["Ship","../Mod/Ship/resources/translations","../Mod/Ship/resources/Ship.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):
|
def updateqrc(qrcpath,lncode):
|
||||||
"updates a qrc file with the given translation entry"
|
"updates a qrc file with the given translation entry"
|
||||||
|
@ -116,7 +117,12 @@ def updateqrc(qrcpath,lncode):
|
||||||
if ".qm" in resources[i]:
|
if ".qm" in resources[i]:
|
||||||
pos = i
|
pos = i
|
||||||
if pos == None:
|
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 "</qresource>" in resources[i]:
|
||||||
|
pos = i-1
|
||||||
|
if pos == None:
|
||||||
|
print "ERROR: couldn't add qm files to this resource: " + qrcpath
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
# inserting new entry just after the last one
|
# inserting new entry just after the last one
|
||||||
|
|
Loading…
Reference in New Issue
Block a user