Yes, it is OK, because this file is repsonsible for the description in English. All necessary translations are stored in the modules/boonex/russian/data/langs folder.
.. Now I understood what that file does. For others who are coming here -
The en.xml file is required for every language if you want to display the module name inside Studio. If you don't provide this, it will just display whatever string you have entered inside the install.sql (for example "_boonex_ru_wgt_cpt " instead of Russian)
Now few more questions related to Language :
Is it possible to automatically switch based on browser settings ?
And should I keep the language module inside the "installation_directory/module" folder ? Will this get overwrriten by automatic update done through UNA ?
Is there any other path outside the installation where I can keep the language / module so it does not get deleted during an update ? I have installed UNA using Softaculous. This I assume might delete the whole module folder during an update.
Yes, it is the one from the steps to use the proper language. Only the user's choice has higher priority.
Yes, it will if the module contains the some upgraded parts. As usually, you need to have the actual backup before the upgrade.
It's better to download your module locally because the UNA upgrade is sensitive to the non-usual files in the whole UNA's directory. I mean if you will have the file zm.php in the root of UNA - the upgrade will notice that.
This happens when visiting the following pages with my custom language. /joined-events/administrator?owner=1
Additional information - It works with English. There is no content in the site (so no events). And did not see any issue with other module related pages, only events has issue so far.
I cant see anything in "Audit" and unfortunately I don't have access to database logs on my hosting.
Is there any other way to print "error logs" with more debug information ?
(Should I create a separate thread for this .. Since this is related to the translate module,
In the main config file of the installed UNA (inc/header.inc.php) you may find the following line:
define('BX_DB_FULL_DEBUG_MODE', false); ///< upon db error - show detailed report (turn off in production mode)
Just replace the false to the true variant and save it. Then visit the page with the DB error again - you will get the full code of the MySQL error. You may provide it here or PM me directly, let's review what might be wrong there.
## Getting error for this url
/joined-events/administrator?owner=1## No error for the following urls
/events-calendar
/events-joined
/events-home
...
other events url are all ok.
Wondering why there is a /joined-events/ and another /events-joined/. url .. ?
Related to language, One thing I am missing in UNA compared to my Drupal sites is the ease of importing / Exporting languages without writing any module (very useful for non-software people). So I could import the language translation file and it will update automatically (please refer the picture below)
This allows us to
Export full site translation for a language to a file. Then we can find what keys are missing translations and add them.
This file can be imported. It also allows importing a partial file - say only 20 translation keys are available in an import.
A full export from a site can be imported into another site without writing a single line of code.
Not sure if it fits into your design philosophies of UNA, but I feel polyglot could be more powerful with this feature.
Footnote - at the minimum it would be great to have a filter to know what keys are missing translations.
@LeonidS - Related to language - Is it possible to have translation for Group name and descriptions ? So person with a particular language will see the title and description in that language ?
Hello @highlightings !
Yes, it is OK, because this file is repsonsible for the description in English. All necessary translations are stored in the modules/boonex/russian/data/langs folder.
H
.. Now I understood what that file does. For others who are coming here -
The en.xml file is required for every language if you want to display the module name inside Studio. If you don't provide this, it will just display whatever string you have entered inside the install.sql (for example "_boonex_ru_wgt_cpt " instead of Russian)
Now few more questions related to Language :
H
How do I debug errors ?
Error
Database query error
This happens when visiting the following pages with my custom language. /joined-events/administrator?owner=1
Additional information - It works with English. There is no content in the site (so no events). And did not see any issue with other module related pages, only events has issue so far.
I cant see anything in "Audit" and unfortunately I don't have access to database logs on my hosting.
Is there any other way to print "error logs" with more debug information ?
(Should I create a separate thread for this .. Since this is related to the translate module,
In the main config file of the installed UNA (inc/header.inc.php) you may find the following line:
define('BX_DB_FULL_DEBUG_MODE', false); ///< upon db error - show detailed report (turn off in production mode)
Just replace the false to the true variant and save it. Then visit the page with the DB error again - you will get the full code of the MySQL error. You may provide it here or PM me directly, let's review what might be wrong there.
H
Error Database query error Query: SELECT 0 `id`, 'സ്ഥിരസ്ഥിതി' `title` UNION (SELECT `l`.`id`, `l`.`title` FROM `bx_events_favorites_lists` `l` INNER JOIN `bx_events_favorites_track` `t` ON `t`.`list_id` = `l`.`id` WHERE `l`.`author_id` = :author GROUP BY `l`.`id`, `l`.`title` ORDER BY `l`.`date` DESC) LIMIT 0, 6 Mysql error: Illegal mix of collations (utf8mb4_unicode_ci,COERCIBLE) and (latin1_swedish_ci,IMPLICIT) for operation 'UNION' collation_connection: utf8mb4_unicode_ci Debug backtrace: ... ... < TRUNCATED BY ME> ...
I can send you the debug trace if needed.
BTW additional clue
## Getting error for this url /joined-events/administrator?owner=1 ## No error for the following urls /events-calendar /events-joined /events-home ... other events url are all ok.
You need to review both mentioned tables:
bx_events_favorites_lists` and `bx_events_favorites_track
and check the collation there. Both should have utf8mb4_unicode_ci variant. All tables of UNA should have this collation.
H
Thanks for all suggestions. It works now :)
Related to language, One thing I am missing in UNA compared to my Drupal sites is the ease of importing / Exporting languages without writing any module (very useful for non-software people). So I could import the language translation file and it will update automatically (please refer the picture below)
This allows us to
Not sure if it fits into your design philosophies of UNA, but I feel polyglot could be more powerful with this feature.
Footnote - at the minimum it would be great to have a filter to know what keys are missing translations.
H
@LeonidS - Related to language - Is it possible to have translation for Group name and descriptions ? So person with a particular language will see the title and description in that language ?
For now, without the code's modifications or integration of the "instant translation" tool it's not possible.
H
Hi @LeonidS , Where can I get this "instant translation" tool ?
I mean the tools used in for example Facebook to translate the content instantly.