Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n 'Procedures' and 'Variables' category in block list #12

Closed
GoogleCodeExporter opened this issue Dec 6, 2015 · 4 comments
Closed

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

To localize Blocks list. once to translate 'Procedures' and 'Variables' in 
category, I encounter:

  category: null,  // Procedures are handled specially.


What is the expected output? What do you see instead?

Able to localize Blocks category of  'Procedures' and 'Variables' 

Original issue reported on code.google.com by gasolin on 4 Jun 2012 at 11:21

@GoogleCodeExporter
Copy link
Author

It's ok, these are defined at the top of blockly.js along with the remaining 
messages.  Just add a file which redefines them.

Original comment by neil.fra...@gmail.com on 4 Jun 2012 at 11:30

  • Changed state: Invalid

@GoogleCodeExporter
Copy link
Author

Once I modify 

category: null,  // Procedures are handled specially.

to 

category: SomeCate,  // Procedures are handled specially.

the block list shows both 'SomeCate' and 'Procedures' in block list.

IMHO modify Blockly.MSG_PROCEDURE_CATEGORY and Blockly.MSG_VARIABLE_CATEGORY in 
blockly.js is not good enough because it needs to rebuild new 
blockly_compressed.js before use.

Original comment by gasolin on 5 Jun 2012 at 12:00

@GoogleCodeExporter
Copy link
Author

Include a new file in your HTML page (after blockly_compressed.js) which simply 
contains:
...
Blockly.MSG_PROCEDURE_CATEGORY = 'Verfahren';
Blockly.MSG_MUTATOR_TOOLTIP = 'Bearbeiten Sie diesen Block';
... 

Original comment by neil.fra...@gmail.com on 5 Jun 2012 at 12:03

@GoogleCodeExporter
Copy link
Author

Made an working zh_tw demo at 
http://www.gasolin.idv.tw/public/blockly/demos/code/index.html

Since Blockly.MSG_PROCEDURE_CATEGORY... is defined in html, 
it's a bit tricky to find a way to merge my contributions back to blockly 
itself.

Original comment by gasolin on 5 Jun 2012 at 2:36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant