Basically our obstacle is a lack of bzr expertise. For now, people wanting to use the pt_BR langpack will just have to add $string['parentlanguage'] = 'pt'; to the langpack's langconfig.php file manually.
]]>Actually the $string['parentlanguage'] line should be part of the language pack itself. I added it to the documentation for creating a new language pack: https://wiki.mahara.org/index.php/Developer_Area/Language_Packs
I also noticed that the pt_BR language pack was missing some even more essential elements from langconfig.php, so I added those in as well. At least, to the master branch. Unfortunately, the Launchpad langpack setup doesn't make it easy to edit the settings of langconfig.php, since they're not really "translations" but are stored in a lang string file.
I couldn't figure out at all how to get parentlanguage into the pt_BR pack through Launchpad. I suspect I'll need to push it in through bzr somehow, but I don't know how to do that. I'll see if Son can help.
Cheers,
Aaron
]]>Great. I added that info to https://wiki.mahara.org/index.php/System_Administrator's_Guide/Next_Steps
Cheers
Kristina
]]>
$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
]]>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
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
]]>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
Thank you very much for wanting to contribute to the translation of Mahara into Brazilian Portuguese.
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. :-)
]]>
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!
]]>So, the problem seems to be with the Brazilian's one!
]]>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!)
]]>