babybuddy / babybuddy-for-android

Android client for the Baby Buddy webapp
MIT License
16 stars 6 forks source link

Dutch translation #69

Closed zjean closed 2 months ago

zjean commented 7 months ago

Hi, I would like to create a PR to add Dutch translations to the app. Is this doable? Any suggestions how implement this?

Regards

MrApplejuice commented 6 months ago

Hey zjean!

Yes, translations. I really would like to get them going, actually, but did not get around creating any because I gave priority to the "UI 2.0"-Design for now which will include tracking of ALL babybuddy event types. But if you have some spare time to provide some translations, I would be very happy to put a localized on the fast track and release it!

Any suggestions how implement this?

For Android, the newbie-friendly way probably is to use the translation editor in Android Studio: https://developer.android.com/studio/write/translations-editor . Alternativel

I should have collected all relevant strings in one files at this point: https://github.com/babybuddy/babybuddy-for-android/blob/master/app/src/main/res/values/strings.xml

The process should be relatively straight-forward and create a file called res/values-nl/strings.xml (for Dutch) which is the file I would need. With the file present, it should pretty much already be done for 90%. I did not pay very close attention to how strings are formulated or exported at this point which is why I expect some teething problems with plural forms of words etc. but those can all be addressed relatively easily I think. Someone would just need to get this process started.

You can, of course, also manually create the translated strings.xml file, but that could be a bit trickier.

But suffice to say: If you find some time and have some interest to contribute, your help would be very much appreciated! :+1:

zjean commented 6 months ago

Thanks for your response! Added a PR in #70

MrApplejuice commented 2 months ago

Dutch translation was actually added already! Just forgot to close this. Thanks again for your help!