Need the previous version of that documentation

Need the previous version of that documentation

by ODUCATE E -
Number of replies: 13
Hi,

I see that the documentation on 'Setting up your development environment for the Moodle App' has been updated. I need the previous version of that documentation. Kindly provide the URL of that.

Thanks in advance.
Average of ratings: -
In reply to ODUCATE E

Re: Need the previous version of that documentation

by Isabel Renedo -
Picture of Moodle HQ Picture of Particularly helpful Moodlers
Hello

You can  click on 'History' (top right) and then select on the date you want to view.  (MoodleDocs is based on wiki technology and is powered by MediaWiki)

>>I see that the documentation on 'Setting up your development environment for the Moodle App' has been updated. I need the previous version of that documentation
In this specific case I'd suggest to visit: https://docs.moodle.org/dev/index.php?title=Setting_up_your_development_environment_for_the_Moodle_App&oldid=60469, if you want older /newer versions you can click on '← Older revision' / 'Newer revision →' (or click again on 'History')

Kind regards,

Isabel
Average of ratings: Useful (3)
In reply to Isabel Renedo

Re: Need the previous version of that documentation

by ODUCATE E -
Thank you very much Isabel.
In reply to ODUCATE E

Re: Need the previous version of that documentation

by Noel De Martin -
Picture of Core developers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers

Hi there,

As Isabel mentioned, you can see the previous versions of the document looking at the history. But I'm curious, what did you need to see that wasn't in the new version? If we removed something that was important, let us know, we can add it again.

In reply to Noel De Martin

Re: Need the previous version of that documentation

by Ardian Deari -
Hi Noel and everyone,
I tried to build the last version, unfortunately the language packs aren't downloaded by default. The next thing, I tried to change the nvm version then couldn't build it and got stuck for many days. I think that the person who asked this has probably the same issue, there should be mentioned a nvm version just like in the previous documentation.
All the best,
In reply to Ardian Deari

Re: Need the previous version of that documentation

by Noel De Martin -
Picture of Core developers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers

Thanks for the feedback, I'll look into the language packs issue and get back to you.

About the nvm version, it is mentioned twice in the new document: in Requirements and in Troubleshooting. If you mean that the exact version is not mentioned, that's a conscious decision. Given that the version can change in the future, it is better not to mention it explicitly so that the document stays up to date. You should be able to configure the correct version by running nvm install, or looking at engines within package.json if you're not using nvm.

In reply to Ardian Deari

Re: Need the previous version of that documentation

by Noel De Martin -
Picture of Core developers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers

Hi again,

I just tried on a new clone and everything seems to work correctly following the instructions.

Maybe your issue was that by default English is the only language available in the app? If that's what your problem, I don't think that's an issue for development. We (MoodleHQ developers) always develop with the app in English, and unless we have to look into something specific regarding translations, that's ok. It would also be a waste to download all the translations automatically for everyone, when most developers will not use them.

What problems did it cause you?

Average of ratings: Useful (1)
In reply to Noel De Martin

Re: Need the previous version of that documentation

by Thiago Araujo -
Hi,

I'm having the same problem, to reproduce the problem just change the language in the App or set another language as default, you'll see that the language doesn't change
In reply to Noel De Martin

Re: Need the previous version of that documentation

by Ardian Deari -
I forced to be the app in german language on moodle.config.json , the app still appears in English when you change the language. The german is not downloaded automatically just like in the previous versions, if this is a new change then it is totally fine. I used nvm v14.17.6,

"default_lang": "de",
"forcedefaultlanguage": true

PS: If the language packs are not downloaded by default, where can we get the new updated language files.

All the best,
In reply to Ardian Deari

Re: Need the previous version of that documentation

by Noel De Martin -
Picture of Core developers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers

Sorry for the confusion, I've looked at the repo and you're right that this has changed. I didn't notice because I always develop in English, but it's true that the previous version of the app included the languages out of the box.

At the moment, you should be able to get the language packs running the scripts/update_lang.sh script, but I have tried and it doesn't work in my machine because it requires having php installed (I don't have it because I run Moodle using Docker). So I have opened an issue to look into that, you can watch it if you want to be notified when it's ready: MOBILE-3864.

Thanks for your help!

Average of ratings: Useful (1)
In reply to Noel De Martin

Re: Need the previous version of that documentation

by Ardian Deari -
Thanks a lot, however it must be admitted that the new ionic5 works way faster than the old version... Moodle is our big hope in Educational technologies ❤️

PS: I forgot about Albanian language pack is not added yet, I have done some contributions in Albanian on the Moodle App component - ATMOS but is there a specific percentage for the language to be added on the app? 
All the best
In reply to Ardian Deari

Re: Need the previous version of that documentation

by Noel De Martin -
Picture of Core developers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers

Thanks for the good vibes smile I'm glad that you like it.

About the translations, it seems like there aren't enough translations in Albanian at this point. There are currently 1930 out of 2250 translated, and we need at least 50%. You can read more about that in the Moodle App Translation page.

In reply to Noel De Martin

Re: Need the previous version of that documentation

by ODUCATE E -
Hi Noel,

Actually, the problem started to arise from the Moodle Mobile app version 3.9.0. The app never gets to build, and there are a lot of problems in setting up the development environment with app above 3.8.2 version. I posted a question about that in forum (https://moodle.org/mod/forum/discuss.php?d=426007) but unfortunately it never got answered.

For example in the latest version of app (3.9.5):
When I run this first command (git clone git@github.com:moodlehq/moodleapp.git)
I get this error (screenshot also attached):
---------------------->
C:\>git clone git@github.com:moodlehq/moodleapp.git
Cloning into 'moodleapp'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
---------------------->

Attachment 3.9.5 error.png
In reply to ODUCATE E

Re: Need the previous version of that documentation

by Noel De Martin -
Picture of Core developers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers

This is a github error telling you that you don't have ssh keys configured properly, you can read about it in Github's documentation. It has nothing to do with the Moodle App, because the repository is public so you don't need any special permissions to clone it.

About the error in the other post, it seems to have something to do with one of the plugins. We recently improved the way we declare plugin dependencies, so I'd suggest that you update the code to the latest version and try again.

In the new version of the documentation, we also added a new General advice section. It should fix most common problems such as the ones you're having, or at least help you find where's the problem.