Commit 0f669a58 authored by Jennie Yoder's avatar Jennie Yoder

more german translations.

parent 5473707d
......@@ -264,10 +264,17 @@ Blockly.Xml.domToWorkspace = function(workspace, xml) {
// read in default color information.
if (xmlChild.nodeName.toLowerCase() == 'color') {
var col = xmlChild.getAttribute('rgba');
if (col == "undefined") {
// set color to default
found_color = true;
Blockscad.setColor(255, 128, 255);
}
else {
var colA = col.split(',');
Blockscad.setColor(colA[0],colA[1],colA[2]);
found_color = true;
}
}
if (xmlChild.nodeName.toLowerCase() == 'block') {
var block = Blockly.Xml.domToBlock(workspace, xmlChild);
var blockX = parseInt(xmlChild.getAttribute('x'), 10);
......
......@@ -629,7 +629,7 @@ Blockscad.readStlFile = function(evt) {
};
// Load Blockly's (and Blockscad's) language strings.
console.log("trying to include message strings");
// console.log("trying to include message strings");
document.write('<script src="blockly/msg/js/' + BSUtils.LANG + '.js"></script>\n');
document.write('<script src="blockscad/msg/js/' + BSUtils.LANG + '.js"></script>\n');
......@@ -1813,7 +1813,7 @@ Blockscad.initLanguage = function() {
document.head.parentElement.setAttribute('dir', rtl ? 'rtl' : 'ltr');
document.head.parentElement.setAttribute('lang', BSUtils.LANG);
console.log("lang is:",BSUtils.LANG);
// console.log("lang is:",BSUtils.LANG);
// Sort languages alphabetically.
var languages = [];
......@@ -1855,12 +1855,10 @@ Blockscad.saveBlocksLocal = function() {
// don't save without a filename. Name isn't checked for quality.
// console.log("in SaveBlocksLocal with: ", blocks_filename);
if (blocks_filename) {
if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
{
console.log("found Safari");
saveAs(blob, blocks_filename + ".txt");
}
else saveAs(blob, blocks_filename + ".xml");
// if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
// {
// }
saveAs(blob, blocks_filename + ".xml");
// console.log("SAVED locally: setting needToSave to 0");
Blockscad.setNoSaveNeeded();
}
......
This diff is collapsed.
......@@ -16,7 +16,7 @@ Blockly.Xml = Blockly.Xml || {};
* @private
*/
BlocklyStorage.backupBlocks_ = function() {
console.log("in backupBlocks");
// console.log("in backupBlocks");
if ('localStorage' in window) {
// clear out old stuff from localStorage
localStorage.clear();
......@@ -71,7 +71,7 @@ BlocklyStorage.backupOnUnload = function() {
BlocklyStorage.restoreBlocks = function() {
var url = window.location.href.split('#')[0];
url = url.split('?lang')[0];
console.log("url for restoring blocks is:",url);
// console.log("url for restoring blocks is:",url);
var url2 = url + "proj_name";
var url3 = url + "current_project";
var url4 = url + "current_project_key";
......
......@@ -1406,7 +1406,7 @@ Blockscad.Processor.prototype = {
}[format];
},
generateAndSaveRenderedFile: function() {
generateAndSvaeRenderedFile: function() {
var blob = this.currentObjectToBlob();
var ext = this.selectedFormatInfo().extension;
......
......@@ -9,9 +9,9 @@
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="173.33546mm"
height="74.702179mm"
viewBox="0 0 614.18078 264.69276"
width="182.92386mm"
height="74.427254mm"
viewBox="0 0 648.15541 263.71862"
id="svg4208"
version="1.1"
inkscape:version="0.91 r13725"
......@@ -27,7 +27,7 @@
inkscape:pageshadow="2"
inkscape:zoom="0.71402898"
inkscape:cx="489.58952"
inkscape:cy="-2.4141017"
inkscape:cy="-2.4141171"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
......@@ -35,8 +35,8 @@
inkscape:snap-global="false"
inkscape:object-nodes="true"
inkscape:snap-smooth-nodes="true"
inkscape:window-width="1858"
inkscape:window-height="1178"
inkscape:window-width="1304"
inkscape:window-height="746"
inkscape:window-x="54"
inkscape:window-y="-8"
inkscape:window-maximized="1"
......@@ -52,7 +52,7 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
......@@ -60,7 +60,7 @@
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-116.87792,-294.77042)">
transform="translate(-116.87792,-295.74454)">
<path
style="opacity:1;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m 329.38909,434.73022 30.72177,0"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment