Forums | Mahara Community

Support /
Translation into Danish: From po-file to language pack?


22 March 2018, 8:05

Hi

I'm new to Mahara and have recently translated Mahara 17.10 into Danish and uploaded it to Launchpad for review. However, I need to install and use 'my' version as we will be piloting a major Mahara-project in 3 weeks time. 

My question is: How do we transfer a *.po or *.mo file into a language pack - ready for installation?

For your information: I'm neither a Mahara-developer nor have the pleasure of working with one. (Nonetheless, we manage the server, installation and maintenance part ourselves).

Thanks in advance, Per

Cecilia Vela's profile picture
Posts: 110

23 March 2018, 15:47

Hello Per,

we have a script to help us translate .po files into language packs. You just need to get the script from the repository and run it.

Please find here the the detailed instructions:
https://wiki.mahara.org/wiki/Developer_Area/Language_Pack_Generation#Manually_create_a_tar_ball_of_a_language_for_testing

 

Cheers,

Cecilia

23 March 2018, 22:49

Thank you very much, Cecilia. Unfortunately we get a 'permission denied (publickey)' error  when trying to access the repository - text from a screen dump attached.

Any suggestion on how to solve this?

 

Thanks in advance, Per

*******

root@debian:/home/administartor/code# git clone git git.mahara.org: scripts/mahara-scripts.git

Cloning into 'mahara-scripts'...

Permission denied (publickey)

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

********

Cecilia Vela's profile picture
Posts: 110

26 March 2018, 15:39

Hi Per,

does it happen the same if you try

git clone https://git.mahara.org/scripts/mahara-scripts.git

instead?

Cecilia

 

09 April 2018, 18:50

Hi Cecilia Sorry for the late reply. We are requested to type credentials i.e. when cloning into 'mahara-script' we need to add username/password for 'https://git.mahara.org'. 

Any suggestions?

Thanks in advance

Per

 

Kristina Hoeppner's profile picture
Posts: 4731

09 April 2018, 21:27

Hello Per,

When you use

git clone https://git.mahara.org/scripts/mahara-scripts.git

You shouldn't need a username and password when wanting to clone as that is an anonymous way of pulling a repository to your computer.

Can you please give

git clone https://git.mahara.org/user-manual/manual.git

a go (it'll pull the Mahara user manual)? I know for sure that people can clone that repository to their own computer without being asked for a username and password.

You would not be able to push to the repository as you would need a username and password. However, cloning is fine.

We do not give out usernames and passwords for git.mahara.org at this stage as that comes with a host of other questions and hosting repositories that may not have anything to do with Mahara, for which we are not prepared. ;-)

Cheers

Kristina

 

10 April 2018, 20:01

When we follow the instructions as below

*********

mkdir ~/code

cd ~/code

git clone [email protected]:scripts/mahara-scripts.git

  • Get the po file of the language from Launchpad
  • Run the script po-php.pl

************

cd mahara-scripts/mahara-langpacks

po-php.pl /path/to/po/files/<po file> /path/to/langpacks/<language code>.utf8 <language code>.utf8

 ****

we get the following error when executing po-php.pl:

 Git mahara error.png

 Any suggestions?

Thanks in advance

Per

Robert Lyon's profile picture
Posts: 757

11 April 2018, 8:33

Hi Per

The error message mentions you are missing a Perl module called Locale/PO.pm

To install a missing Perl module the info here should help https://stackoverflow.com/questions/65865/whats-the-easiest-way-to-install-a-missing-perl-module

Try installing the missing module and then try again. If it complains about other Per modules install them as well.

Cheers

Robert

Kristina Hoeppner's profile picture
Posts: 4731

11 April 2018, 8:43

Hello Per,

You can only do git clone git@ when you have an SSH key on the git server, which you don't have. Therefore, please use

git clone https://git.mahara.org/user-manual/manual.git

Cheers

Kristina

 

11 April 2018, 20:46

Thanks you so much for your help.

Now we have compiled Perl and the required modules (Cpan and Locale :: PO). Subsequently, we have executed the script. The result is that a folder is generated with the name we entered in the script ie. dk.utf8. This folder contains some subfolders and files, so something has happened during the execution of the script. Does this look OK? We have attached a link to the zipped folder, placed in dropbox.

Thanks in advance

Per

dropbox utf8.zip

12 results