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

Translation PT-br #7

Closed
pedroct opened this issue May 5, 2021 · 5 comments
Closed

Translation PT-br #7

pedroct opened this issue May 5, 2021 · 5 comments

Comments

@pedroct
Copy link

pedroct commented May 5, 2021

I would like to translate your component version into my language (PT-BR). I've managed to translate almost everything, these words were missing:

File: init.py

lib = body_metrics.bodyMetrics(weight, height, age, gender, impedance)
bodyscale = ['Obeso', 'Sobrepeso', 'Grosso-conjunto', 'Falta de exercício', 'Equilibrado', 'Musculoso equilibrado', 'Magro', 'Magro equilibrado', 'Magro musculoso']

File: body_scales.py

# Return body type scale
def getBodyTypeScale(self):
      return ['Obeso', 'Sobrepeso', 'Grosso-conjunto', 'Falta de exercício', 'Equilibrado', 'Musculoso equilibrado', 'Magro', 'Magro equilibrado', 'Magro musculoso']

Can you help me change these lines? I am not a developer and I am having difficulties.

@dckiller51
Copy link
Owner

You just need to remove the uppercase letters in the body_scales.py file

    # Return body type scale
    def getBodyTypeScale(self):
        return ['obeso', 'sobrepeso', 'grosso-conjunto', 'falta de exercício', 'equilibrado', 'musculoso equilibrado', 'magro', 'magro equilibrado', 'magro musculoso']

@pedroct
Copy link
Author

pedroct commented May 7, 2021

You just need to remove the uppercase letters in the body_scales.py file

    # Return body type scale
    def getBodyTypeScale(self):
        return ['obeso', 'sobrepeso', 'grosso-conjunto', 'falta de exercício', 'equilibrado', 'musculoso equilibrado', 'magro', 'magro equilibrado', 'magro musculoso']

Thank you!

@pedroct pedroct closed this as completed May 7, 2021
@dckiller51
Copy link
Owner

@pedroct
Hello, can you translate this map into your language? Thank you for your help.https://github.com/dckiller51/lovelace-body-miscale-card/tree/main/translations

@pedroct
Copy link
Author

pedroct commented May 27, 2021 via email

@dckiller51
Copy link
Owner

dckiller51 commented May 30, 2021

I added your language to my card. I'll let you correct the translation mistakes. Thank you
https://github.com/dckiller51/lovelace-body-miscale-card/blob/main/translations/pt-BR.json

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

2 participants