Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Translations #9

Open
NGnius opened this issue May 15, 2022 · 20 comments
Open

Translations #9

NGnius opened this issue May 15, 2022 · 20 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@NGnius
Copy link
Owner

NGnius commented May 15, 2022

Describe what you'd like to be able to do
Use PowerTools with text in a different language, ideally the system language of SteamOS.

Additional context
This would require people to volunteer to translate, as well as a big re-write of the UI components to load text at runtime.

@NGnius NGnius added the enhancement New feature or request label May 15, 2022
@NGnius NGnius added the help wanted Extra attention is needed label May 22, 2022
@james2432
Copy link
Contributor

i can translate to french if you generate po/pot files and use GetText

@NicolasKlaue
Copy link

I can translate both to german and spanish is help is still required

@NGnius
Copy link
Owner Author

NGnius commented Nov 6, 2022

Help is always appreciated. I haven't seen much interest in getting translations into PowerTools so its simply low-priority.

@NicolasKlaue
Copy link

Help is always appreciated. I haven't seen much interest in getting translations into PowerTools so its simply low-priority.

Just hit me up if at some point it becomes one, I'd be so proud to be able to help with this amazing project

@danyi
Copy link
Contributor

danyi commented Dec 25, 2022

I can provide Chinese

@NGnius
Copy link
Owner Author

NGnius commented Jan 11, 2023

As of 8bc9c7b I've added support for alternate translations with per-string fallback to the current English ones. This works almost exactly like how gettext works, with some larger differences in implementation details which don't really matter for translators.


Important info for interested translators:

  • The strings that need to be translated are in translations/pt.pot, so make a copy and start filling it out. msgid is the reference phrase; the translated one should go in the corresponding (empty) msgstr line. This is the standard gettext format, so if you're unsure on how to fill it out look into that.
  • Name your translated copy <locale>.po where <locale> is the four-letter language name (e.g. en-CA for Canadian English, fr-FR for France French, etc.).
  • I'm happy to test for people, since it's a bit of a pain to compile and transfer over the locale files and the dev branch of PowerTools to a Steam Deck
  • Please submit translations in here (by attaching your finished .po file to a comment) or through a pull request. I'd recommend doing a PR since it gets you name on the contributors list.

Thanks to anyone who expressed interest. Please don't feel obligated to write translations or anything like that, even if you were interested in the past. I know that ruins the fun in hobby projects for me (which is partly why this update is taking so long).

@james2432
Copy link
Contributor

French done #60

@danyi
Copy link
Contributor

danyi commented Jan 12, 2023

Add Simplified Chinese translation #61

@ZXRRX
Copy link
Contributor

ZXRRX commented Jan 12, 2023

Spanish translation #62

@danyi
Copy link
Contributor

danyi commented Jan 15, 2023

Add Traditional Chinese translation #63

@NGnius
Copy link
Owner Author

NGnius commented Jan 29, 2023

Just a heads up that I added a new translation string "Defaults" (I missed the button at the bottom of the UI). I think my horrible new French and Spanish translations are ok, but the Chinese translations are not updated (they'll just fall back to English).

@james2432
Copy link
Contributor

French is accurate for default :)

@NGnius
Copy link
Owner Author

NGnius commented Jan 29, 2023

Sweet, 12 years of French classes have finally paid off!

@NGnius
Copy link
Owner Author

NGnius commented Feb 3, 2023

Another heads up about translation changes: I've renamed the "Persistent" toggle. The translations msgid strings have all been updated, but none of the actual translation text has been. It's up to you whether you want to update translations to reflect that change.

Personally I don't care either way, since I thought the old name and description were good enough.

@zen0bit
Copy link

zen0bit commented Feb 14, 2023

I will translate to czech language...

@Fereval
Copy link

Fereval commented Mar 9, 2023

Hello thanks all that worked on the translation but is there a way to make it optional ?
Like I spend some time to understand where to turn off "SMT" simply because in French its named differently (not using the accronym).

When doing research online on Steam settings its pretty much everything sourced in English language making it hard to know what users are talking about if my interface is foreign :)

@NGnius
Copy link
Owner Author

NGnius commented Mar 9, 2023

Currently the only way is by removing the files in ~/homebrew/plugins/PowerTools/translations. You'll probably need superuser privileges to do that.

I can definitely add a better way to disable the translated UI, but I wasn't planning on it.

@NGnius
Copy link
Owner Author

NGnius commented Mar 26, 2023

I've added a few more strings that can be translated, if anyone wants to update their translations. I've update French myself since I can understand it well enough to have a decent chance of getting it right.

(stuff in green is new)
https://github.com/NGnius/PowerTools/compare/dev#diff-6f2985c68b21595b592613cf0dd6e6853b2c8467247ffdcff84e325b6b4fae2c

@NGnius
Copy link
Owner Author

NGnius commented May 2, 2023

#98 is Italian

@Yue-xin97
Copy link

I can translate Simplified Chinese.
I have already translated the newly added strings.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

8 participants