powerpaul17 / nc_money

Nextcloud app for finance management
GNU Affero General Public License v3.0
97 stars 9 forks source link

Use Transifex for continuous translation please #4

Closed p-bo closed 1 year ago

p-bo commented 1 year ago

Hello, would it be possible to follow instructions on: https://docs.nextcloud.com/server/latest/developer_manual/basics/front-end/l10n.html#adding-translations ...and gain benefits from work of whole Nextcloud translators community for users of your app please?

For instance:

To conclude: with continuous translation workflow, result is, that users of your app are getting more complete and more polished localization, so their user experience is much more pleasant.

powerpaul17 commented 1 year ago

Hey, although I'm not a big fan of such services I can see that it would make the process of translation easier and the app better for a lot of people. It is not my top priority at the moment since I haven't even released version 1 yet. But I'll have a look at it..

powerpaul17 commented 1 year ago

@rakekniven, thanks for your answer on Transifex 🙂 . Here's the issue.. 😉

rakekniven commented 1 year ago

Hello, it was brought to my attention that it would be good to make it possible to translate my app (money) with transifex. I just prefer to push/pull the translations manually into the repo. I guess you would have to add a resource to the Nextcloud project for it, right? Sorry if I bother you here but I could not find more information on this topic elsewhere.

The user @nextcloudbot needs to be invited with write permissions. It syncs once a day. Manually sync is not possible but the mechanism works really nice for more than 100 apps. If you are ok with that I will start with the first steps. @powerpaul17 Just let me know.

rakekniven commented 1 year ago

Just seen that last commit has been done some years ago. Will you continue to develop your app?

powerpaul17 commented 1 year ago

Just seen that last commit has been done some years ago. Will you continue to develop your app?

Yeah, I'm actually developing right now, changes are currently on complete_rework branch :wink:

rakekniven commented 1 year ago

What do you think about connecting your app to translation sync after you did your rework and merged it to master/main?

powerpaul17 commented 1 year ago

I'll think about it, but I'm not a big fan of letting the bot polluting the repo.. also it doesn't seem to support json format..

rakekniven commented 1 year ago

The bot will not pollute your repo. It writes in just one folder called "l10n".

also it doesn't seem to support json format.

This is not clear to me. See https://github.com/nextcloud/activity/tree/master/l10n There are two files for each language, one is json.

powerpaul17 commented 1 year ago

The bot will not pollute your repo. It writes in just one folder calles "l10n".

I meant that the bot is committing daily if only a word or sentence changed. I really would like to pull in all translation changes before preparing a new release

This is not clear to me. See https://github.com/nextcloud/activity/tree/master/l10n There are two files for each language, one is json.

That was not clear to me, I thought I have to use gettext to extract everything into .po files or so.. Also my translation files live in src/locales since I only need them in the frontend..

rakekniven commented 1 year ago

Ok, then I cannot help you here.

In the first post a link provides details about the process (https://docs.nextcloud.com/server/latest/developer_manual/basics/front-end/l10n.html#adding-translations). All apps are handled the same way.

powerpaul17 commented 1 year ago

Ok, I thought about it and read the documentation again and I decided to use Nextcloud's translation system. I set up the l10n directory and included @nextcloud/l10n. Only thing left is to let the bot do its job, right? Do I also need to create a Transifex configuration as well?

rakekniven commented 1 year ago

Hello,

good decision for your app. Please see https://github.com/nextcloud/docker-ci/issues/426

rakekniven commented 1 year ago

Do I also need to create a Transifex configuration as well?

Yes.

powerpaul17 commented 1 year ago

Wow great, thanks for the quick answer :slightly_smiling_face:

rakekniven commented 1 year ago

Done, or? :-)

powerpaul17 commented 1 year ago

Yes :slightly_smiling_face:

rakekniven commented 1 year ago

Enjoy the power of the Nextcloud translation community :-)

powerpaul17 commented 1 year ago

Thanks, I'm already impressed by the quick translation updates.. 🤩