OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?

BookLibary Component Support

Go to bottom Favoured: 0

Add new language

sean (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Add new language 2 Years, 12 Months ago
Karma: 0  
I’m trying to follow the instructions here, but they seem to be out of date or at least, the latest files don’t match what’s described.

The instructions say to edit /administrator/components/com_booklibrary/booklibrary_j3.xml and add line for your language after the one containing language/english.php, but this file doesn’t reference english.php at all!

There are two locations in the file that refer to languages and both use the same format:

Code:

    <languages folder="../language">
      <language tag="en-GB">en-GB/en-GB.com_booklibrary.sys.ini</language>
    </languages>



This appears as a <languages> node by itself and then again as a sub-node of <administration>

I’ve copied the English ini file to /language/--langcode--/--langcode--.com_booklibrary.sys.ini and added it to booklibrary_j3.xml instead of Step 2.

Step 3 says “To ensure the languages you use are visible inside the dropdown boxes in the administration part for selecting, you will need to add the language entries to every language file in use in your installation. In each language file, find the part marked //Languages and add your language there.”

This is so ambiguous I have no idea what it’s supposed to mean. Which files? The downloadable language files only contain <language-name>.php files. What other files need to be edited? /components/com_booklibrary/language/constant.php ?
Logged Logged
Last Edit: 2021/12/20 06:54 By sean.
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:Add new language 2 Years, 12 Months ago
Karma: 102  
Hi

I am sorry, we corrected ours manual how add new language to Book library wbsite software

In common you right, but you also need copy your language file to folder.
/components/com_booklibrary/language/
There you see all languages files for Book library website software.
Or you need rename
/components/com_booklibrary/language/English.php
to your language, as example for Spanish
/components/com_booklibrary/language/Spanish.php

Please check, below file:
/components/com_booklibrary/language/constant.php
You need change only when you adding new constants. In common you no need edit it.

And also most important: If you not add new language to booklibrary, and you need only change some text or fields name - you need do this with BookLibrary::Language Manager

Regards
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»