[LON-CAPA-admin] LON-CAPA-admin Digest, Vol 45, Issue 4

Stuart Raeburn raeburn at msu.edu
Mon May 11 14:22:38 EDT 2015


Hi,

> I added ko,pm into loncom/localize/localize folder

To include ko as a selectable language code from the drop-down menu in  
the domain configuration menu you will need to do the following:

1. Update the language.tab file.

wget -O /home/httpd/lonTabs/language.tab
'http://source.loncapa.org/cgi-bin/cvsweb.cgi/~checkout~/loncom/publisher/language.tab?rev=1.26;content-type=text%2Fplain'

2. Download the latest version of the ko.pm lexicon file.

wget -O /home/httpd/lib/perl/Apache/localize/ko.pm  
'http://source.loncapa.org/cgi-bin/cvsweb.cgi/~checkout~/loncom/localize/localize/ko.pm?rev=1.3;content-type=text/plain'

chown www:www /home/httpd/lib/perl/Apache/localize/ko.pm

3. Edit the version of /home/httpd/lib/perl/Apache/loncommon.pm to  
include the differences between rev. 1.1075.2.93 and rev. 1.1075.2.94

You can view the relevant changes via this link:

http://source.loncapa.org/cgi-bin/cvsweb.cgi/loncom/interface/loncommon.pm.diff?r1=1.1075.2.93;r2=1.1075.2.94


4. Reload the web server

/etc/init.d/httpd reload


Notes:
(a) loncommon.pm rev. 1.1075.2.94 is tagged for 2.11.1, so if your are  
willing to wait until 2.11.1 is released (in a day or to) you can skip  
step 3.

(b) As ko.pm is not officially supported in 2.11.1 you will need to  
repeat step 1 (above) after you update 2.11.0 to 2.11.1

(c) The changes in loncommon.pm (item 3 above) fix an encoding issue  
in the "Default locale for dates" drop-down list which affected some  
of the items in the language selection list in the "Default language"  
drop-down list.

Let me know if you have any questions.

Thanks

Stuart Raeburn
LON-CAPA Academic Consortium


Quoting Jong-Dae Park <jdpark7 at gmail.com>:

> Hello,
>
> I added ko,pm into loncom/localize/localize folder but I do not know how to
> change the option item in default language (in /adm/domainprefs default
> language settings)
>
> Thanks for any comments.
>
> Jong-Dae Park
>
>
>
> 2015-05-09 2:54 GMT+09:00 <lon-capa-admin-request at mail.lon-capa.org>:
>
>> Send LON-CAPA-admin mailing list submissions to
>>         lon-capa-admin at mail.lon-capa.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>         http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin
>> or, via email, send a message with subject or body 'help' to
>>         lon-capa-admin-request at mail.lon-capa.org
>>
>> You can reach the person managing the list at
>>         lon-capa-admin-owner at mail.lon-capa.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of LON-CAPA-admin digest..."
>>
>>
>> Today's Topics:
>>
>>    1. Re: LON-CAPA-admin Digest, Vol 45, Issue 3 (Jong-Dae Park)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Fri, 8 May 2015 11:22:06 +0900
>> From: Jong-Dae Park <jdpark7 at gmail.com>
>> To: lon-capa-admin at mail.lon-capa.org
>> Subject: Re: [LON-CAPA-admin] LON-CAPA-admin Digest, Vol 45, Issue 3
>> Message-ID:
>>         <
>> CAJmtHaW59WwJh3UH6TG0kUAwmzXHEU5X2X2B2Hv1Qi8-S6shjg at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hello, Stuart Raeburn,
>>
>> Thanks for your email.
>>
>> I update the server and I tried to change the language but the menu was not
>> readable.
>>
>> I appended the captured image.
>>
>> Thanks.
>>
>> Jong-Dae Park
>>
>>
>>
>>
>>
>>
>>
>> 2015-05-07 1:00 GMT+09:00 <lon-capa-admin-request at mail.lon-capa.org>:
>>
>> > Send LON-CAPA-admin mailing list submissions to
>> >         lon-capa-admin at mail.lon-capa.org
>> >
>> > To subscribe or unsubscribe via the World Wide Web, visit
>> >         http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin
>> > or, via email, send a message with subject or body 'help' to
>> >         lon-capa-admin-request at mail.lon-capa.org
>> >
>> > You can reach the person managing the list at
>> >         lon-capa-admin-owner at mail.lon-capa.org
>> >
>> > When replying, please edit your Subject line so it is more specific
>> > than "Re: Contents of LON-CAPA-admin digest..."
>> >
>> >
>> > Today's Topics:
>> >
>> >    1. Re: translation of lon-capa (Stuart Raeburn)
>> >
>> >
>> > ----------------------------------------------------------------------
>> >
>> > Message: 1
>> > Date: Wed, 06 May 2015 11:48:47 -0400
>> > From: Stuart Raeburn <raeburn at msu.edu>
>> > To: lon-capa-admin at mail.lon-capa.org
>> > Subject: Re: [LON-CAPA-admin] translation of lon-capa
>> > Message-ID: <20150506114847.9wutynpug0c0gwo8 at loncapa.org>
>> > Content-Type: text/plain;       charset=ISO-8859-1;     DelSp="Yes";
>> >         format="flowed"
>> >
>> > Hi,
>> >
>> > > I want to translate lon-capa web interface into Korean.
>> > > I am looking for a documentation for translation.
>> >
>> > Localization of the LON-CAPA interface for each supported language
>> > uses a file found in /home/httpd/lib/perl/Apache/localize/ on a
>> > LON-CAPA server.
>> >
>> > Below is a description of LON-CAPA's implementation of localization,
>> > which I have copied from the perldoc contained in
>> > /home/httpd/lib/perl/Apache/lonlocal.pm file.
>> >
>> > The lonlocal.pm module itself provides localization services for
>> > LON-CAPA programmers based on the CPAN module: Locale::Maketext. See
>> > "
>> >
>> http://search.cpan.org/~toddr/Locale-Maketext-1.26/lib/Locale/Maketext.pod
>> > "
>> > for more information on Maketext.
>> >
>> > "The internationalization process involves putting a wrapper around
>> > on-screen user messages and menus and turning them into keys, which
>> > the Maketext library translates into the desired language output using
>> > a look-up table ("lexicon").
>> >
>> > As keys we are currently using the plain English messages, and
>> > Maketext is configured to replace the message by its own key if no
>> > translation is found. This makes it easy to phase in the
>> > internationalization without disturbing the screen output."
>> >
>> > I have added a lexicon file for ko.pm to the LON-CAPA CVS repository.
>> > You can retrieve that file from:
>> >
>> >
>> >
>> http://source.loncapa.org/cgi-bin/cvsweb.cgi/~checkout~/loncom/localize/localize/ko.pm?rev=1.1;content-type=text/plain
>> >
>> > Currently the ko.pm file contains about 10,000 keys (phrases in
>> > English).  As you make translations, you will replace the
>> > corresponding value for each key with the translation of the phrase
>> > used for the key (currently each value is the same as the original key).
>> >
>> > Lexicons for other languages (de.pm -- the lexicon for German is the
>> > most complete, and was the one I used to create the initial ko.pm
>> > file) can be found at:
>> >
>> >
>> >
>> http://source.loncapa.org/cgi-bin/cvsweb.cgi/~checkout~/loncom/localize/localize
>> >
>> > If you would like to share your ko.pm lexicon with the LON-CAPA
>> > community that would be much appreciated. If you choose to do that, I
>> > can include the lexicon with future LON-CAPA releases.
>> >
>> > Let me know if you have any questions.
>> >
>> > Thanks,
>> >
>> > Stuart Raeburn
>> > LON-CAPA Academic Consortium
>> >
>> >
>> > Quoting Jong-Dae Park <jdpark7 at gmail.com>:
>> >
>> > > Hello,
>> > >
>> > > I want to translate lon-capa web interface into Korean.
>> > >
>> > > I am looking for a documentation for translation.
>> > >
>> > > Thanks in advance.
>> > >
>> > > Jong-Dae Park
>> > >
>> > > Pai Chai University.
>> > >
>> > > Daejon, Korea
>> > >
>> >
>> >
>> >
>> > ------------------------------
>> >
>> > _______________________________________________
>> > LON-CAPA-admin mailing list
>> > LON-CAPA-admin at mail.lon-capa.org
>> > http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin
>> >
>> >
>> > End of LON-CAPA-admin Digest, Vol 45, Issue 3
>> > *********************************************
>> >
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://mail.lon-capa.org/pipermail/lon-capa-admin/attachments/20150508/29a3ceda/attachment.html
>> >
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: language_setting.png
>> Type: image/png
>> Size: 42370 bytes
>> Desc: not available
>> URL: <
>> http://mail.lon-capa.org/pipermail/lon-capa-admin/attachments/20150508/29a3ceda/attachment.png
>> >
>>
>> ------------------------------
>>
>> _______________________________________________
>> LON-CAPA-admin mailing list
>> LON-CAPA-admin at mail.lon-capa.org
>> http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin



More information about the LON-CAPA-admin mailing list