Illustration of connected portfolio elements

Portfolios for your
learning community

Try out Mahara

Create portfolios

Using Mahara, students and staff create their personal learning stories by uploading evidence of activities they have participated in, and embedding publicly accessible content they have previously put online. They can write reflections on their experiences that frame this evidence, map it to competencies or registration requirements, and provide necessary context.

Mahara can be used for many different portfolio purposes, such as study, professional development, work-integrated learning, assessment, showcase and presentation, and employability.

Learn about the portfolio options

Illustration of a person with their portfolio
Illustration of a paper airplane representing sharing

Share work

Mahara allows portfolios to be shared flexibly with one person, a specific group of people, or the entire world. Access can be further restricted to a particular time frame or just within an assessment task.

Find out about sharing portfolios

Engage with others

Mahara makes it easy to comment and give feedback. Portfolios can also be submitted to learning management systems via LTI (Learning Tools Interoperability) for marking.

Groups in Mahara allow people to create portfolios collaboratively and engage in forum discussions.

Learn about collaborating in Mahara

Illustration of a group of people collaborating
Illustration of a podcast logo

Listen to portfolio stories

In our podcast 'Create. Share. Engage.' portfolio practitioners, researchers, learning designers, and portfolio authors share their journey. Learn how they navigate the many different facets of portfolios in general, and Mahara specifically.

Listen on the podcast website or in your favourite app

Mahara Translation

Overriding individual strings in language packs

anonymous profile picture
Account deleted
Posts: 808
06 August 2009, 0:27

Hi guys,

I've been doing a bit of work on keeping customisations for Mahara sites out of the core/plugin code, using a '/local' directory like Moodle has.

So far I've just done database installs/upgrades but I'd also like to add support for overriding individual strings in language packs.

My current thinking is to put modified strings for language files into the /local/lang directory, but all at the same level, for example:

lang/en.utf8/mahara.php ==> local/lang/en.utf8/mahara.php
artefact/file/lang/en.utf8/artefact.file.php ==> local/lang/en.utf8/artefact.file.php

I don't expect this will affect translation work, but does anyone have any strong opinions on this?

R.

anonymous profile picture
Account deleted
Posts: 228
06 August 2009, 1:11

Re: Overriding individual strings in language packs

Awesome!

Does that mean you can add *new* strings as well as override existing ones?

Moodle 2.0 will have a full 'local' plugin system.  The analogy for Mahara would be that local woud be a new plugintype, and then every sub directory in there is a plugin, which means it would benefit from event subscriptions and cronjobs, both of which may be helpful too.  That's probably too much work, but you could add support for local event subscriptions and cronjobs without going the full plugintype route.

Either way, the file structure looks fine to me :)

Mitsuhiro Yoshida's profile picture
Mitsuhiro Yoshida
Posts: 55
06 August 2009, 2:25

Re: Overriding individual strings in language packs

Hi Richard,

I like your idea too.

And it would be very nice if  admin user can download a zipped local/lang directory.

Mits

 

anonymous profile picture
Account deleted
Posts: 338
06 August 2009, 3:46

Re: Overriding individual strings in language packs

Hello Richard,

If I have understood you correctly that means that Mahara administrators will be able to customize their own language strings just by adding the modified files into the local/lang directory. Am I right?

These are the changes in the code under the commit "Add checking for local upgrades".

I personally think that this new feauture would not interfire the transalation work  On the contrary, it would make it easier, as users can always customized their own strings if they are not happy with the "official translation".

 Regards


 

Fiorentino Sarro's profile picture
Fiorentino Sarro
Posts: 69
06 August 2009, 10:10

Re: Overriding individual strings in language packs

If this thing worked as Aaricia would be really good. I contributed to the translation of Mahara in Italian and I assure you that it was not easy. For many words is really difficult to choose the right translation. Then it is obvious that every user wants to customize the software depends on it will.
anonymous profile picture
Account deleted
Posts: 808
06 August 2009, 17:16

Re: Overriding individual strings in language packs

Yes, that's right.  Administrators can put modified (or new) language files in local/lang and have strings in there override the official translations.  So for example if an admin wanted to change "View" to "Page" for a site, they could do this without needing to hack on the original language files. That makes site upgrades easier (no merging), but they would still need to keep an eye out for new strings in an upgrade that contain "View".

I just made the change now, it's not the "Add checking for local upgrades" one, it's the later commit called "Look for strings in local/lang before searching language packs".  But it's not set in stone yet; it will be easy enough to change the behaviour any time before 1.2 comes out.