Forums | Mahara Community

Support /
Language Pack Doesn't Working (for me)


anonymous profile picture
Deleted user
Posts: 3

10 April 2013, 3:43 AM

Hi!

I've downloaded the pt_BR language pack, it's installed, but seems to doesn't work. It's still appearing only English as language option.

At the first time, I see a strange message when I run personal or admin settings:

// Plural forms, added by language pack generator $string['pluralrule'] = 'n > 1'; $string['pluralfunction'] = 'plural_pt_BR_utf8'; function plural_pt_BR_utf8($n) { return $n > 1; }

So, I've editted the langpacks/pt_BR.utf8/lang/pt_BR.utf8/langconfig.php and put the code between "<?php"  and "?>" tags. The message disappeared, but it still seems to doesn't works!!

 

Some info:

Lang pack source: http://langpacks.mahara.org/pt_BR-1.6_STABLE.tar.gz

Mahara version: 1.6.3 (installed from Softaculous)

(I don't know if there's any other useful info, so please ask me!)

anonymous profile picture
Deleted user
Posts: 3

10 April 2013, 3:55 AM

Another info: I've installed the Portugal's Portuguese pack and it seems to work.

So, the problem seems to be with the Brazilian's one!

Son Nguyen's profile picture
Posts: 28

10 April 2013, 10:47 AM

Hi Bruno;

The language pack pt_BR is NOT complete. 
You are welcome to contribute to this language if you want

Cheers,

Son Nguyen
anonymous profile picture
Deleted user
Posts: 3

10 April 2013, 12:53 PM

Hi Son,

 

It'll be nice to contribute.

So, how do I do it? Is there any guide?

Just for curiosity, how much strings must be translated?

 

Thanks!

Kristina Hoeppner's profile picture
Posts: 3602

10 April 2013, 8:59 PM

Hello Bruno,

Thank you very much for wanting to contribute to the translation of Mahara into Brazilian Portuguese.

  1. You would need to register an account on http://launchpad.net
  2. You would join the Portuguese translator group at https://translations.launchpad.net/+languages/pt_BR - I think when you join them, your translations will automatically be added instead of being marked "for review".
  3. Head over to https://translations.launchpad.net/mahara-lang/trunk/+pots/mahara/pt_BR/+translate and get started. :-)
  4. Join the Translation group here in Mahara.org to get in touch with other translators easily. https://mahara.org/group/mahara-translation

Currently, the language pack is only translated for slightly more than 6 %. So any help you can give would be welcome. Nevertheless, you should still be able to install it even if you only see a few words translated in Brazilian Portuguese and the rest in English. Something seems to be wrong in the lang pack itself and I think the plural forms might not be set up correctly.

Cheers

Kristina

P.S. Did you know that you can show off that you are a translator for Mahara? We have T-Shirts, mugs etc. for  great number of contributor roles to the project at http://cafepress.com/mahara - The translator is the one in the Superman cape. :-)

Aaron Wells's profile picture
Posts: 896

11 April 2013, 10:49 AM

Son & Kristina,

I don't know how the Mahara language pack system works, but would it be possible to set up the Brazilian Portuguese language pack so that it uses the Portuguese language pack as its starting point, rather than English? That one's 100% translated, and for Brazilian Portuguese users it would probably be a better fallback than English.

Cheers,
Aaron

11 April 2013, 6:41 PM

Dear Aaron,

You could install the number of language files you want. But the way is that Mahara always use the English language file (which is placed directly into the core in Mahara folder and sub-folders, but not in the maharadata/langpacks) when a string is not found in the "foreign" language package.

Of course you could install the Portuguese langpack instead of the Brazilian one, the time you or someone(s) have finished the translating.

By the way, translating Mahara is one of the best way to learn about it. It is a huge amount of work and it is worth it if you want to get expertise and teach how to use it within your colleagues or students.

Try to build a community around you and go for it. If you need any help, the translator community and Catalyst people are always here to help you.

Cheers,

-dajan

Aaron Wells's profile picture
Posts: 896

12 April 2013, 1:34 PM

I see. Moodle language packs have an optional "parent language" feature, which allows the language pack to specify which language to "fall back" to: http://docs.moodle.org/19/en/Language_packs#Parent_language_packs

Perhaps I'll file a wishlist bug to add this feature to Mahara as well.

Though I certainly encourage Bruno to help out with the Portuguese Brazilian translation. :)

Personally, the only languages I'm any good at are English (US) and a little bit of Spanish. But perhaps I can help out with those at some point.

Cheers,
Aaron

Aaron Wells's profile picture
Posts: 896

29 July 2013, 2:43 PM

Just an update to this, I was looking through the lang string code today, and discovered that Mahara already has "parent language" support. You just have to add a line like this to the langconfig.php file for the language:

$string['parentlanguage'] = '';

This will cause Mahara to fall back to the specified parent language if it finds no matching string in the child language. (If it doesn't find it in the parent language either, it will fall back to English).

I'll see about setting PT_BR to have PT as its parent language.

Cheers,

Aaron

Kristina Hoeppner's profile picture
Posts: 3602

30 July 2013, 12:01 AM

Hi Aaron,

Great. I added that info to https://wiki.mahara.org/index.php/System_Administrator's_Guide/Next_Steps

Cheers

Kristina

 

12 results