NGnius / PowerTools

Moved to
https://git.ngni.us/NG-SD-Plugins/PowerTools
GNU General Public License v3.0
414 stars 29 forks source link

Translations #9

Open NGnius opened 2 years ago

NGnius commented 2 years ago

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.

james2432 commented 2 years ago

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

NicolasKlaue commented 1 year ago

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

NGnius commented 1 year ago

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

NicolasKlaue commented 1 year ago

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 commented 1 year ago

I can provide Chinese

NGnius commented 1 year ago

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:

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 commented 1 year ago

French done https://github.com/NGnius/PowerTools/pull/60

danyi commented 1 year ago

Add Simplified Chinese translation https://github.com/NGnius/PowerTools/pull/61

ZXRRX commented 1 year ago

Spanish translation #62

danyi commented 1 year ago

Add Traditional Chinese translation https://github.com/NGnius/PowerTools/pull/63

NGnius commented 1 year ago

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 commented 1 year ago

French is accurate for default :)

NGnius commented 1 year ago

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

NGnius commented 1 year ago

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 commented 1 year ago

I will translate to czech language...

Fereval commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

98 is Italian

Yue-xin97 commented 1 year ago

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