Skip to content

Conversation

@LookNowThis
Copy link
Contributor

Added Lithuanian (lt) translations to Starplot:

  • Full set of astronomical object names
  • Correct Lithuanian terminology for nebulae, clusters, planets, and directions
  • Consistent casing and style following existing translation patterns

This improves localization coverage and adds support for Lithuanian users.

@steveberardi
Copy link
Owner

@LookNowThis thanks for this!! I just realized yesterday I forgot to copy the current Lithuanian translations to that Python file. Would you mind making the translations consistent between that CSV and the Python dictionary?

Comment on lines 146 to 161
def language_name_column(language: str, column_prefix: str = "name") -> str:
language_name = language.replace("-", "_").lower()

return f"{column_prefix}_{language_name}"


def translate(text: str, language: str) -> str:
if not text:
return text

translation = LABELS[language.lower()].get(text.lower())

if not translation:
return text

return translation.title()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add these functions back? They're important for using the translations

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I’ve added both functions back.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! did you see my other comment about making the translations consistent between that CSV and the Python dictionary in this file? I noticed there's a few differences, and unfortunately I don't know Lithuanian to make an educated guess. Would greatly appreciate your help!

Added translation functions for language handling.
@steveberardi steveberardi merged commit 520e100 into steveberardi:main Dec 21, 2025
@zodiakas
Copy link
Contributor

zodiakas commented Dec 25, 2025 via email

@steveberardi
Copy link
Owner

I updated lithuanian terms in csv file. Could you please use official lt terminology rather than literal translations of LookNowThis. Refer to the linked respectful lt terminology sources in the enclosed txt file for guidance (if any doubt). Thanks for your efforts. Merry Christmas.

@zodiakas can you post the link to the TXT file you're referring to? I'm certainly happy to use the most accepted translations, so if you have a reference from some astronomical society / org or something, that'll help confirm that's the best translation. Thanks!! And, Merry Christmas to you too! 🎄 -Steve

@zodiakas
Copy link
Contributor

zodiakas commented Dec 25, 2025 via email

@steveberardi
Copy link
Owner

@zodiakas great, thanks for providing that info. I'll include your originally submitted translations for the other terms in the next version of Starplot, v0.18 -- which should be out in the next week or two.

I think I'll also start requesting translation sources for future translations, just to help be sure that we use the best translation.

Thanks again!

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

Successfully merging this pull request may close these issues.

3 participants