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

Volunteer for translation (pt-BR) #10

Open
luizsoliveira opened this issue Jun 29, 2018 · 5 comments
Open

Volunteer for translation (pt-BR) #10

luizsoliveira opened this issue Jun 29, 2018 · 5 comments

Comments

@luizsoliveira
Copy link

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

Best regards.

@marcelcampinas
Copy link

marcelcampinas commented Jun 29, 2018

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
Copy link
Contributor

fredqian commented Jun 29, 2018 via email

@luizsoliveira
Copy link
Author

luizsoliveira commented Jul 3, 2018 via email

@macomzzl
Copy link
Contributor

macomzzl commented Jul 4, 2018

  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
Copy link

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!

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

No branches or pull requests

5 participants