Translations #9

Open
opened 2022-05-15 02:21:09 +01:00 by NGnius · 20 comments
NGnius commented 2022-05-15 02:21:09 +01:00 (Migrated from github.com)

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.

**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 2022-09-09 19:05:41 +01:00 (Migrated from github.com)

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

i can translate to french if you generate po/pot files and use GetText
NicolasKlaue commented 2022-11-06 20:48:26 +00:00 (Migrated from github.com)

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

I can translate both to german and spanish is help is still required
NGnius commented 2022-11-06 22:34:45 +00:00 (Migrated from github.com)

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

Help is always appreciated. I haven't seen much interest in getting translations into PowerTools so its simply low-priority.
NicolasKlaue commented 2022-11-06 23:09:57 +00:00 (Migrated from github.com)

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

> 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 2022-12-25 05:56:08 +00:00 (Migrated from github.com)

I can provide Chinese

I can provide Chinese
NGnius commented 2023-01-11 02:07:29 +00:00 (Migrated from github.com)

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).

As of [8bc9c7b](https://github.com/NGnius/PowerTools/commit/8bc9c7b2d82dbd2841c5472c0de7f68398edf87d) 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 commented 2023-01-11 14:39:52 +00:00 (Migrated from github.com)
French done https://github.com/NGnius/PowerTools/pull/60
danyi commented 2023-01-12 08:04:26 +00:00 (Migrated from github.com)

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

Add Simplified Chinese translation https://github.com/NGnius/PowerTools/pull/61
ZXRRX commented 2023-01-12 13:44:32 +00:00 (Migrated from github.com)

Spanish translation #62

Spanish translation #62
danyi commented 2023-01-15 09:44:16 +00:00 (Migrated from github.com)

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

Add Traditional Chinese translation https://github.com/NGnius/PowerTools/pull/63
NGnius commented 2023-01-29 20:38:04 +00:00 (Migrated from github.com)

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).

Just a heads up that I [added a new translation string "Defaults"](https://github.com/NGnius/PowerTools/commit/5481587167421cdfac1b98f4c0bd4beddc2e9449) (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 2023-01-29 21:25:00 +00:00 (Migrated from github.com)

French is accurate for default :)

French is accurate for default :)
NGnius commented 2023-01-29 21:44:51 +00:00 (Migrated from github.com)

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

Sweet, 12 years of French classes have finally paid off!
NGnius commented 2023-02-03 22:17:31 +00:00 (Migrated from github.com)

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.

Another heads up about translation changes: I've [renamed the "Persistent" toggle](https://github.com/NGnius/PowerTools/commit/ec97003e389e5a61ea06291c1d7148b9784cd3f4). 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 2023-02-14 17:01:26 +00:00 (Migrated from github.com)

I will translate to czech language...

I will translate to czech language...
Fereval commented 2023-03-09 20:30:37 +00:00 (Migrated from github.com)

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 :)

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 2023-03-09 21:26:36 +00:00 (Migrated from github.com)

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.

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 2023-03-26 16:00:40 +01:00 (Migrated from github.com)

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

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 2023-05-02 23:28:52 +01:00 (Migrated from github.com)

#98 is Italian

#98 is Italian
Yue-xin97 commented 2023-07-02 05:48:34 +01:00 (Migrated from github.com)

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

I can translate Simplified Chinese. I have already translated the newly added strings.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: NG-SD-Plugins/PowerTools#9
No description provided.