block labeling in german
This commit is contained in:
		
							parent
							
								
									345aa57b7e
								
							
						
					
					
						commit
						104d432278
					
				| @ -2,7 +2,8 @@ import React, { Component } from 'react'; | |||||||
| import PropTypes from 'prop-types'; | import PropTypes from 'prop-types'; | ||||||
| import { connect } from 'react-redux'; | import { connect } from 'react-redux'; | ||||||
| import { onChangeWorkspace, clearStats } from '../../actions/workspaceActions'; | import { onChangeWorkspace, clearStats } from '../../actions/workspaceActions'; | ||||||
| import * as De from './msg/de'; | // import * as De from 'blockly/msg/de';
 | ||||||
|  | import {De} from './msg/de'; | ||||||
| import BlocklyComponent from './BlocklyComponent'; | import BlocklyComponent from './BlocklyComponent'; | ||||||
| import BlocklySvg from './BlocklySvg'; | import BlocklySvg from './BlocklySvg'; | ||||||
| import * as Blockly from 'blockly/core'; | import * as Blockly from 'blockly/core'; | ||||||
|  | |||||||
| @ -1,5 +1,9 @@ | |||||||
|  | // import * as Blockly from 'blockly/core';
 | ||||||
| 
 | 
 | ||||||
| import * as Blockly from 'blockly/core'; | // https://developers.google.com/blockly/guides/configure/web/translations
 | ||||||
|  | 
 | ||||||
|  | const Blockly = {}; | ||||||
|  | Blockly.Msg = {}; | ||||||
| 
 | 
 | ||||||
| Blockly.Msg.ADD_COMMENT = "Kommentar hinzufügen"; | Blockly.Msg.ADD_COMMENT = "Kommentar hinzufügen"; | ||||||
| Blockly.Msg.AUTH = "Bitte autorisiere diese App zum Aktivieren der Speicherung deiner Arbeit und zum Teilen."; | Blockly.Msg.AUTH = "Bitte autorisiere diese App zum Aktivieren der Speicherung deiner Arbeit und zum Teilen."; | ||||||
| @ -770,3 +774,4 @@ Blockly.Msg.senseBox_telegram_send = "Sende Nachricht" | |||||||
| 
 | 
 | ||||||
| Blockly.Msg.senseBox_scd30 = "CO2 Sensor (Sensirion SCD30)"; | Blockly.Msg.senseBox_scd30 = "CO2 Sensor (Sensirion SCD30)"; | ||||||
| 
 | 
 | ||||||
|  | export const De = Blockly.Msg; | ||||||
|  | |||||||
| @ -1,5 +1,9 @@ | |||||||
|  | // import * as Blockly from 'blockly/core';
 | ||||||
| 
 | 
 | ||||||
| import * as Blockly from 'blockly/core'; | // https://developers.google.com/blockly/guides/configure/web/translations
 | ||||||
|  | 
 | ||||||
|  | const Blockly = {}; | ||||||
|  | Blockly.Msg = {}; | ||||||
| 
 | 
 | ||||||
| Blockly.Msg.ADD_COMMENT = "Add Comment"; | Blockly.Msg.ADD_COMMENT = "Add Comment"; | ||||||
| Blockly.Msg.AUTH = "Please authorize this app to enable your work to be saved and to allow it to be shared by you."; | Blockly.Msg.AUTH = "Please authorize this app to enable your work to be saved and to allow it to be shared by you."; | ||||||
| @ -751,3 +755,5 @@ Blockly.Msg.sensebox_soil_smt50 = "Soil Moisture and Temperature (SMT50)"; | |||||||
| Blockly.Msg.sensebox_web_readHTML_filename = "File:"; | Blockly.Msg.sensebox_web_readHTML_filename = "File:"; | ||||||
| 
 | 
 | ||||||
| Blockly.Msg.senseBox_scd30 = "CO2 Sensor (Sensirion SCD30)"; | Blockly.Msg.senseBox_scd30 = "CO2 Sensor (Sensirion SCD30)"; | ||||||
|  | 
 | ||||||
|  | export const En = Blockly.Msg; | ||||||
|  | |||||||
| @ -183,7 +183,7 @@ class Toolbox extends React.Component { | |||||||
|                     <Block type="sensebox_send_to_osem" /> |                     <Block type="sensebox_send_to_osem" /> | ||||||
|                 </Category> |                 </Category> | ||||||
|                 <Category id="catSenseBoxOutput_LoRa" name="  LoRa" colour={getColour().sensebox}> |                 <Category id="catSenseBoxOutput_LoRa" name="  LoRa" colour={getColour().sensebox}> | ||||||
|                     <Category id="catSenseBoxOutput_LoRa_activation" name="  Activation" colour={getColour().sensebox}> |                     <Category id="catSenseBoxOutput_LoRa_activation" name="    Aktiviereung" colour={getColour().sensebox}> | ||||||
|                         <Block type="sensebox_lora_initialize_otaa" /> |                         <Block type="sensebox_lora_initialize_otaa" /> | ||||||
|                         <Block type="sensebox_lora_initialize_abp" /> |                         <Block type="sensebox_lora_initialize_abp" /> | ||||||
|                     </Category> |                     </Category> | ||||||
| @ -202,7 +202,7 @@ class Toolbox extends React.Component { | |||||||
|                         <Block type="sensebox_lora_cayenne_gps" /> |                         <Block type="sensebox_lora_cayenne_gps" /> | ||||||
|                     </Category> |                     </Category> | ||||||
|                 </Category> |                 </Category> | ||||||
|                 <Category name="Logic" colour={getColour().logic}> |                 <Category name="Logik" colour={getColour().logic}> | ||||||
|                     <Block type="controls_if" /> |                     <Block type="controls_if" /> | ||||||
|                     <Block type="controls_ifelse" /> |                     <Block type="controls_ifelse" /> | ||||||
|                     <Block type="logic_compare" /> |                     <Block type="logic_compare" /> | ||||||
| @ -211,7 +211,7 @@ class Toolbox extends React.Component { | |||||||
|                     <Block type="logic_boolean" /> |                     <Block type="logic_boolean" /> | ||||||
|                     <Block type="switch_case" /> |                     <Block type="switch_case" /> | ||||||
|                 </Category> |                 </Category> | ||||||
|                 <Category id="loops" name="Loops" colour={getColour().loops}> |                 <Category id="loops" name="Schleifen" colour={getColour().loops}> | ||||||
|                     <Block type="controls_repeat_ext"> |                     <Block type="controls_repeat_ext"> | ||||||
|                         <Value name="TIMES"> |                         <Value name="TIMES"> | ||||||
|                             <Block type="math_number"> |                             <Block type="math_number"> | ||||||
| @ -250,7 +250,7 @@ class Toolbox extends React.Component { | |||||||
|                     <Block type="text_length" /> |                     <Block type="text_length" /> | ||||||
|                     <Block type="text_isEmpty" /> |                     <Block type="text_isEmpty" /> | ||||||
|                 </Category> |                 </Category> | ||||||
|                 <Category id="time" name="Time" colour={getColour().time}> |                 <Category id="time" name="Zeit" colour={getColour().time}> | ||||||
|                     <Block type="time_delay"> |                     <Block type="time_delay"> | ||||||
|                         <Value name="DELAY_TIME_MILI"> |                         <Value name="DELAY_TIME_MILI"> | ||||||
|                             <Block type="math_number"> |                             <Block type="math_number"> | ||||||
| @ -270,7 +270,7 @@ class Toolbox extends React.Component { | |||||||
|                     <Block type="infinite_loop"></Block> |                     <Block type="infinite_loop"></Block> | ||||||
|                     <Block type="sensebox_interval_timer"></Block> |                     <Block type="sensebox_interval_timer"></Block> | ||||||
|                 </Category> |                 </Category> | ||||||
|                 <Category id="catMath" name="Math" colour={getColour().math}> |                 <Category id="catMath" name="Mathematik" colour={getColour().math}> | ||||||
|                     <Block type="math_number"></Block> |                     <Block type="math_number"></Block> | ||||||
|                     <Block type="math_arithmetic"></Block> |                     <Block type="math_arithmetic"></Block> | ||||||
|                     <Block type="math_single"></Block> |                     <Block type="math_single"></Block> | ||||||
| @ -325,7 +325,7 @@ class Toolbox extends React.Component { | |||||||
|                 </Category> |                 </Category> | ||||||
|                 <Category name="Variablen" colour={getColour().variables} custom="CREATE_TYPED_VARIABLE"></Category>; |                 <Category name="Variablen" colour={getColour().variables} custom="CREATE_TYPED_VARIABLE"></Category>; | ||||||
|                 <sep></sep> |                 <sep></sep> | ||||||
|                 <Category name="Input/Output" colour={getColour().io}> |                 <Category name="Eingang/Ausgang" colour={getColour().io}> | ||||||
|                     <Block type="io_digitalwrite"></Block> |                     <Block type="io_digitalwrite"></Block> | ||||||
|                     <Block type="io_digitalread"></Block> |                     <Block type="io_digitalread"></Block> | ||||||
|                     <Block type="io_builtin_led"></Block> |                     <Block type="io_builtin_led"></Block> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user