mixly / Mixly_Arduino

A visual programming editor based on blockly for Arduino、Microbit、MicroPython、Python
http://mixly.org/
Apache License 2.0
248 stars 106 forks source link

Volunteer for translation (pt-BR) #10

Open luizsoliveira opened 6 years ago

luizsoliveira commented 6 years ago

I would like to know how I can help with the translation of Mixly to Brazilian Portuguese?

Best regards.

marcelcampinas commented 6 years ago

Boa Tarde,

Já foi 100% Traduzido para PT-BR por este site: www.hackeduca.com.br/. Uso sempre em aula.

Olha Aqui: Google Drive

fredqian commented 6 years ago

mixly is developed based on blockly,so all the language is in the directory named blockly\msg\js,you can edit the file you like. then you should edit file apps\mixly\code.js,of course ,i can edit for you on this file

在2018-06-30 02:11:01,傅骞fredqian@bnu.edu.cn写道:

I would like to know how I can help with the translation of Mixly to Brazilian Portuguese?

Best regards.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

luizsoliveira commented 6 years ago

Dear Fredqian,

I noticed that the Google Blockly project already has a translation to pt-br (Português Brasil).

The language files available in blockly\msg\js are generated automatically from JSON files translated collaboratively through https://translatewiki.net/.

I made the following modification in the apps\mixly\code.js file, but the translation is not loaded successfully. Can you verify by kindness? https://github.com/luizsoliveira/Mixly_Arduino/commit/3e37218b0e0d862f727fd73b19bd907d8de37524#diff-6e7a43295dfc648a2681d55563f8842c

In addition, there are other buttons in Mixly that do not inherit messages from Google Blockly, such as the bottom bar buttons and the undo and redo buttons. How can I translate these widgets?

Best regards.

[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5& Remetente notificado por Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5& 03/07/18 14:48:44

On Fri, Jun 29, 2018 at 8:36 PM, fredqian notifications@github.com wrote:

mixly is developed based on blockly,so all the language is in the directory named blockly\msg\js,you can edit the file you like. then you should edit file apps\mixly\code.js,of course ,i can edit for you on this file

在2018-06-30 02:11:01,傅骞fredqian@bnu.edu.cn写道:

I would like to know how I can help with the translation of Mixly to Brazilian Portuguese?

Best regards.

— You are receiving this because you are subscribed to this thread.

Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xbed/Mixly_Arduino/issues/10#issuecomment-401498868, or mute the thread https://github.com/notifications/unsubscribe-auth/AAa-5x0MG4tbFXO5WPRAtEL2YzvFA0Exks5uBroXgaJpZM4U9a0P .

-- Att. Luiz Felipe

21 99483 2747 - Celular

macomzzl commented 6 years ago
  1. I made the following modification in the apps\mixly\code.js file, but the translation is not loaded successfully.

The reason is that some translation in pt-br.js is lacked. for example, there are some translation in en.js, but not in pt-br.js, as below.

var MSG = {
  catInOut: "In/Out",
  catControl: "Control",
  catMath: "Math",
  catText: "Text",
  catLists: "Lists",
  catMicropyLists: "Lists",
  catDicts: "Dictory",
  catLogic: "Logic",
  catSerialPort:"SerialPort",
  catGroup: "Communicate",
  catStorage:"Storage",
  catSensor: "Sensor",
  catActuator: "Actuator",
  catMonitor:"Monitor",
  catVar: "Variables",
  catFun: "Functions",
  catEthernet:"Ethernet",
  catEthernet_init:"Init",
  catEthernet_clinet:"Client",
  catSense: "Labplus(Box)",
  catSense2: "Labplus(Robot)",
  catLuxe:"LuxeRobot",
  tab_blocks: "Blocks",
  tab_arduino: "Code",
  copyright:"Copyright © Mixly Team@BNU              HTTP://MIXLY.ORG",
  viewNormal:"Normal",
  viewAdvanced:"Advanced",
  catGame:"Game",
  catSystem:"System",
  catTurtle:"Turtle",
  catTuple:"Tuple",
  catSet:"Set"
};

Just compare pt-bt.js and en.js carefully,and fill up the lack msg. And then, everything will be ok.

  1. In addition, there are other buttons in Mixly that do not inherit messages from Google Blockly

I'm sorry for tell you that this part of mixly is not open source for some reason. But as below, Here are all messages in english that are not inherit Google Blockly. You can change the value in pt-br,and comment it as the follows, and then I will take it into mixly in next version.

new=New 
open=Open
save=Save
save_as=Save as
export=Export
import=Import
manager=Manager
compile=Compile
upload=Upload
port_monitor=Monitor
rename=Rename
delete=Delete
open_directory=Open directory
send=Send
clear=Clear
baud_rate=Baud Rate
auto_scroll=Auto scroll
lib_manager=Library manager
input_new_name=Input a new name
compile_success=Compile success!
compile_failed=Compile failed!
upload_success=Upload success!
upload_failed=Upload failed!
btn_ok=Yes
btn_cancel=Cancel
warning=Warning!!!
warning_text=Your program has not been saved, continue this operation?
btn_huitu=Draw
txt_max=Max
txt_min=Min
btn_txt_mode=Text mode
value=Value
msg_compiling=Compiling
msg_uploading=Uploading
canceled=\ is canceled! 
hardwaraTestTooltip=Hardware Test
saveBlocksImg=Save Imagine
sliderTooltip=drag to zoom
noPortAvailable=no port available
saveAsMixFile=save as ".mix" file
openFile=open xml/mix file
libraryName=library_name
exportLibrary=export library
exportSuccessfully=export library successfully! the file is:
importLibrary=import library
tip=tip:
alreadyCovered=is already rewritten
importCustomLibrarySuccessfully=import custom library successfully!
importCustomLibraryFailed=import custom library failed!
notALibraryFile=your chosen file is not a valid library file
uploadingHardwareTestProgram=uploading hardware test program, please wait...
uploadHardwareTestProgramSuccessfully=upload hardware test program successfully, now spying on the pin status...
uploadHardwareTestProgramFailed=upload hardware test program failed, we can not spy on the pin status!
userAgreement=User Agreement
userAgreementText=\nDo you agree that Mixly collects users to use the data to further improve the Mixly? \n If you disagree, please click "do not agree" button continue!
btnAgree=Yes
btnNotAgree=No
runpy=Run
killpy=Cancel
burnFirmware=Firmware
burning=Init Firmware...
burnSucc=Init Firmware Success!
burnFailed=Init Firmware Failed!
burnSucc=Init Firmware Success!
samufraga commented 4 years ago

Hi, I'd like to contribute if there's still time. It would be nice if you added the portuguese language.

new=Novo open=Abrir save=Salvar save_as=Salvar como export=Exportar import=Importar manager=Gerenciar compile=Compilar upload=Carregar port_monitor=Monitorar rename=Renomear delete=Excluir open_directory=Abrir diretório send=Enviar clear=Limpar baud_rate=Baud Rate auto_scroll=Auto-rolagem lib_manager=Gerenciador de biblioteca input_new_name=Inserir um novo nome compile_success=Compilação terminada! compile_failed=Falha na compilação! upload_success=Carregado com sucesso! upload_failed=Falha no carregamento! btn_ok=Sim btn_cancel=Cancelar warning=Atenção!!! warning_text=Seu programa não foi salvo, deseja continuar? btn_huitu=Plotar txt_max=Max txt_min=Min btn_txt_mode=Modo texto value=Valor msg_compiling=Compilando msg_uploading=Carregando canceled=\ foi cancelado(a)! hardwaraTestTooltip=Teste de Hardware saveBlocksImg=Salvar imagem sliderTooltip=arraste para o zoom noPortAvailable=nenhuma porta disponível saveAsMixFile=salvar como arquivo ".mix" openFile=abrir arquivo xml/mix libraryName=nome_da_biblioteca exportLibrary=exportar biblioteca exportSuccessfully=biblioteca exportada com sucesso! O arquivo é: importLibrary=importar biblioteca tip=dica: alreadyCovered=já foi reescrito(a) importCustomLibrarySuccessfully=biblioteca importada com sucesso! importCustomLibraryFailed=falha ao importar biblioteca! notALibraryFile=o arquivo escolhido não é um arquivo de biblioteca válido uploadingHardwareTestProgram=carregando programa de teste de hardware, aguarde... uploadHardwareTestProgramSuccessfully=programa de teste de hardware carregado com sucesso, monitorando o estado dos pinos... uploadHardwareTestProgramFailed=falha ao carregar programa de teste de hardware, não é possível monitorar o estado dos pinos! userAgreement=Acordo de usuário userAgreementText=\nVocê concorda que o Mixly colete dados de uso afim de usá-los para aprimoramentos futuros no Mixly?\n Se você discorda, clique em "não concordo"! btnAgree=Sim, concordo btnNotAgree=Não concordo runpy=Executar killpy=Cancelar burnFirmware=Firmware burning=Inicializando Firmware... burnSucc=Firmware inicializada com sucesso! burnFailed=Falha ao inicializar Firmware!