EPrints Technical Mailing List Archive

Message: #00420


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: divisions language


Hello. Thanks for answer.

You wrote:
The Multilang field (which subject.name is) has a predefined set of
languages, which allows the user to input different languages.

How can I add my lang in this predefined set?

-
Ihor
www.oa.edu.ua



2012/4/18 Tim Brody <tdb2@ecs.soton.ac.uk>:
> On Tue, 2012-04-17 at 20:27 +0300, Ігор Ростиславович wrote:
>> Hello. In my cfg.d/languages.pl i see this:
>> $c->{defaultlanguage} = 'uk';
>> $c->{languages} = [ 'en','uk' ];
>>
>> but on divisions editing page i see this: http://upload.oa.edu.ua/lang.jpg
>> How can I change unspecified to ukrainian? and where does eprint get
>> other languages? i didn't install them.
>> Thanks.
>
> Currently you can't do that - if you set a part of the field (e.g. lang)
> then the whole row would be "set" and written to the database. You could
> (as with anything) customise EPrint's behaviour by writing a custom
> InputForm component, or a Javascript "hack" to modify the behaviour.
>
> The Multilang field (which subject.name is) has a predefined set of
> languages, which allows the user to input different languages.
>
> The language of the interface is determined by whether a lang matches
> the browser's language. If your browser is set to 'uk' EPrints will look
> for phrases first in 'uk', then in the next language available ('en').
>
> Cheers,
> Tim.
>
>> 2012/4/16 Tim Brody <tdb2@ecs.soton.ac.uk>:
>> > On Tue, 2012-04-10 at 23:05 +0300, Ігор Ростиславович wrote:
>> >> Hello. When I adding new divisions or edit existing I see field
>> >> Language  where my language named as unspecified. You can see this on
>> >> the screen - http://awesomescreenshot.com/0bc37g7c7
>> >> In the drop menu it show's any other languages. How can I add my lang
>> >> or rename unspecified as Ukrainian?
>> >> Thanks.
>> >>
>> >> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>> >> *** Archive: http://www.eprints.org/tech.php/
>> >> *** EPrints community wiki: http://wiki.eprints.org/
>> >
>> > The supported languages are defined in cfg.d/languages.pl:
>> >
>> > $c->{languages} = [ 'en', 'de', ];
>> >
>> > These are the system languages, of which only English is supplied in the
>> > distribution. You can find other language packs on files.eprints.org.
>> >
>> > Note: the subjects & divisions are stored in the database. You can
>> > create a backup of your subjects tree by doing:
>> > ./bin/export [archiveid] subject XML > subjects.xml
>> > And re-import this later with:
>> > ./bin/import_subjects --xml [archiveid] subjects.xml
>> >
>> > (In the past users have been surprised when they lost their custom
>> > subjects when they did ./bin/import_subjects from the default file)
>> >
>> > --
>> > All the best,
>> > Tim
>> >
>> > *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>> > *** Archive: http://www.eprints.org/tech.php/
>> > *** EPrints community wiki: http://wiki.eprints.org/
>> >
>>
>> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>> *** Archive: http://www.eprints.org/tech.php/
>> *** EPrints community wiki: http://wiki.eprints.org/
>
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
>