Module: Multilanguage Support for Gallery3
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
EDIT: Latest multilang version can be downloaded from: multilang3_4.0.zip Hello, I have developed a module for multi-language for gallery 3. Using this the publisher can publish it's gallery in multiple languages. This is like Multilang module in Gallery2, with some additional features: Features: The multilang edit is accessible through 2. sidebar The multilang edit dialog: you can check the discussion thread at for more detail: |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
Can this be added to contrib repository? is there any procedure for it? |
|
joe7rocks
![]()
Joined: 2004-10-07
Posts: 560 |
![]() |
Could be added as a pull request in case you are familiar with GIT, otherwise will just get someone to take the zip and add it |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
I have created a skeletal codex page: Dave |
|
Cluster5020
Joined: 2010-05-08
Posts: 35 |
![]() |
yaa, nice work gopu!! Thanks a lot! How is the best way to update from my preVersion? greetings. |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
Just replace the old files with new ones |
|
Cluster5020
Joined: 2010-05-08
Posts: 35 |
![]() |
edit: Solved! Thanks gopu. Problem was caused by the old Beta Version I used ;) |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
Is it happening when you try to edit a photo? How can you help me in reproducing the bug? -------------------------------------------------------------------------------- |
|
krikman
Joined: 2011-02-22
Posts: 24 |
![]() |
Hi there/ Something badly wrong with interface of this useful plugin. It writes: and does not save multilang editing. what's may be wrong? |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
You can not have same Album Internet address for two languages ... -------------------------------------------------------------------------------- |
|
OC2PS
![]()
Joined: 2010-09-08
Posts: 428 |
![]() |
Any luck with automated Google Translate translations? SoosKriszta |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
No yet -------------------------------------------------------------------------------- |
|
OC2PS
![]()
Joined: 2010-09-08
Posts: 428 |
![]() |
Also, can you think about making this work with Captionator and BatchTag modules? So that just like we do for default language, we can also mass tag/caption in additional languages... SoosKriszta |
|
OC2PS
![]()
Joined: 2010-09-08
Posts: 428 |
![]() |
Another idea - Different headers based on viewing language selected Themes like Greydragon allow users to input custom headers. Now, if you are running more than just a gallery, there is a fair chance that you use text in the header...even menus may be....so it is important to show different headers for different languages.... Obviously different people's headers have different text items...so what this would entail from this module's perspective is - having one field for header that can be entered in multiple languages...but this one field permits input of code (HTML, JS, PHP etc) SoosKriszta |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
EDIT: New version updated Those who are using TAGs, one critical bug has been fixed regarding Tags. If you are using it, you must upgrade to http://gallery.menalto.com/files/multilang3_4.0.zip -------------------------------------------------------------------------------- |
|
krikman
Joined: 2011-02-22
Posts: 24 |
![]() |
About 2 months ago I play with this wonderful module and got some troubles. Now I more familiar with it and finally conclude that troubles with naming begins after repetitive changing _default_ locale in G3. Don't change defaults and module works as expected. Thanks. |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
That's the reason why there is a warning about this before it gets installed. The problem with changing the default language is that, the information on default language is maintained in core table (i.e. items) It could have been supported but beside the effort in development it requires lot of hours in testing also and that's for to support a unlikely scenario. -------------------------------------------------------------------------------- |
|
ignacio_db
Joined: 2011-04-22
Posts: 1 |
![]() |
Hi, |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
Yes, you can. For this you need to have multilang sidebar enabled. -gopu |
|
OC2PS
![]()
Joined: 2010-09-08
Posts: 428 |
![]() |
Any change of getting Batchtag to work with multilingual? SoosKriszta |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
hi sooskriszta, EDIT: updated the download link To know whether you got affected or not, you can click on the individual tag names. Anybody who got affected by the bug, please report to me. I have no plan for batch tag feature until all the basic are present and COMPLETELY bug free. - gopu -------------------------------------------------------------------------------- |
|
OC2PS
![]()
Joined: 2010-09-08
Posts: 428 |
![]() |
I didn't get affected, as I don't have multilingual working on production site yet. At various times I have tested it on test installs. SoosKriszta |
|
krikman
Joined: 2011-02-22
Posts: 24 |
![]() |
Thank you. There was an unpredictable mess with tags losses. |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
hi krikman, sorry about your tag losses. with the updated one this bug is fixed. |
|
karin_de
![]()
Joined: 2011-06-16
Posts: 3 |
![]() |
Thank you for this great addon, gopu! I have only used it for testing yet but I already like it a lot. I wonder if you or someone else could help me with this one: I just imported my gallery2 into gallery3 but it doesn't seem to have imported the multi-lingual descriptions. Neither in the gallery itself I can find them nor directly in the database. (Using phpmyadmin the field ..multilang_items is showed to be gray.) Is there any somewhat automatic way to import the multi-lingual descriptions from gallery2? |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
I am working on the feature to migrate the multilang content of G2 to G3. |
|
karin_de
![]()
Joined: 2011-06-16
Posts: 3 |
![]() |
That's great news! I'm really looking forward to it. |
|
OC2PS
![]()
Joined: 2010-09-08
Posts: 428 |
![]() |
Google Translations next in line? ;-) SoosKriszta |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
SoosKriszta, thanks for your patience. Yes, translation next in line. |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
karin_de, please let me know... |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
Hello, I have added the feature to import multilang data from Gallery2. To import is very simple. It does not matter if you have already imported your G2 once. Enjoy. |
|
OC2PS
![]()
Joined: 2010-09-08
Posts: 428 |
![]() |
Good job! I hadn't started using multilang in G2, so can't test it, but I am certain this is a critical feature for many people who are still sticking with G2 for they are scared of losing the multilang capability. SoosKriszta |
|
OC2PS
![]()
Joined: 2010-09-08
Posts: 428 |
![]() |
Hey Gopu, Still waiting with bated breath for Google Translate integration ;-) SoosKriszta |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
|
|
OC2PS
![]()
Joined: 2010-09-08
Posts: 428 |
![]() |
I would greatly appreciate it. This is the only thing stopping me from deploying this module on my production site. Waiting eagerly. SoosKriszta |
|
OC2PS
![]()
Joined: 2010-09-08
Posts: 428 |
![]() |
Gopu, hope you had a good weekend. Any good news on the Google Translate front? SoosKriszta |
|
karin_de
![]()
Joined: 2011-06-16
Posts: 3 |
![]() |
Hi gopu, |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
SoosKriszta, i have started working on it. I realized that the AJAX scripts that i tried for this, will no more be supported in post December 2011. -------------------------------------------------------------------------------- |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
Hi sooskriszta, it looks like Google Translation will be paid. The one that they are currently offering, will soon be deprecated. I am dropping this task of implementing Language translation G3 multilang, unless a way is found to do it FREE. -gopu |
|
betuska
Joined: 2011-09-06
Posts: 1 |
![]() |
Hello Gopu. Thanks |
|
OC2PS
![]()
Joined: 2010-09-08
Posts: 428 |
![]() |
sooskriszta wrote:
Also, can you think about making this work with Captionator and BatchTag modules? Batchtag module allows the admin to apply a tag to all items in an album. Would be good if we can do this in other languages too...i.e. somehow making your multilingual play ball with rWatcher's Batchtag. Similarly, captionator allows setting descriptions, titles etc of all photos in an album on one page. It would be good if we can do the same for other languages, not just default one. http://gallery.menalto.com/node/103744 SoosKriszta |
|
OC2PS
![]()
Joined: 2010-09-08
Posts: 428 |
![]() |
gopu wrote:
it looks like Google Translation will be paid. Damn! How about the free Microsoft APIs SoosKriszta |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
I do NOT prefer to use Microsoft APIs for open source product. |
|
OC2PS
![]()
Joined: 2010-09-08
Posts: 428 |
![]() |
What about BatchTag and Captionator functionality for non-default languages? |
|
krikman
Joined: 2011-02-22
Posts: 24 |
![]() |
Justs a little thanks to Gupu - Module still works. |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
Thanks for you feedback. I appreciate it. |
|
letic
Joined: 2011-12-23
Posts: 13 |
![]() |
Hey Gopu, I tested the import features with the multilang module but it crashed with the following error : 2011-12-29 17:02:30 +00:00 --- error: exception 'Exception' with message '@todo G2_FUNCTION_FAILED' in /var/www/clients/client1/web1/web/gallery3/modules/g2_import/helpers/g2_import.php:1368 Stack trace: #0 /var/www/clients/client1/web1/web/gallery3/modules/multilang3/helpers/MY_g2_import.php(57): g2(Array) #1 /var/www/clients/client1/web1/web/gallery3/modules/multilang3/helpers/MY_g2_import.php(47): g2_import::g2_multilang_import(7, '1') #2 /var/www/clients/client1/web1/web/gallery3/modules/g2_import/helpers/g2_import_task.php(137): g2_import::import_album(Array) I scratched my head for a while as the code seemed ok until I enabled the mysql logs and found out that the MySQL query was wrong (at least with my DB, maybe the table was renamed later on and not by the the upgrade scripts), so here is a small patch to solve the issue : --- multilang3/helpers/MY_g2_import.php 2011-12-29 18:25:31.000000000 +0000 +++ multilang3/helpers/MY_g2_import.php 2011-12-29 18:25:37.000000000 +0000 @@ -53,8 +53,8 @@ global $gallery; if ($g2_id && $g3_id){ $results = g2($gallery->search( - "Select [MultilangItemMap::language], [MultilangItemMap::title], [MultilangItemMap::summary], [MultilangItemMap::description] ". - "from [MultilangItemMap] where [MultilangItemMap::itemId] = ".$g2_id)); + "Select [MultiLangItemMap::language], [MultiLangItemMap::title], [MultiLangItemMap::summary], [MultiLangItemMap::description] ". + "from [MultiLangItemMap] where [MultiLangItemMap::itemId] = ".$g2_id)); while ($results && $result = $results->nextResult()) { $multilang = ORM::factory("multilang_item")
Or simply run : After that the import module does run fine and most of the albums translations are correctly imported but some aren't (need to investigate why). Anyway hope this help and thanks for the module |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
Thanks letic. I ll analyze and get back to this ASAP... probably by next weekend only |
|
OC2PS
![]()
Joined: 2010-09-08
Posts: 428 |
![]() |
Hey, Gopu! Any chance you'll get time to look at making BatchTag and Captionator multilingual soon? |
|
Dogen
Joined: 2012-01-09
Posts: 10 |
![]() |
Hello friends, Any ideas about that? P.S: My gallery 3 was migrated previously from gallery 2 Thank you! |
|
gopu
![]()
Joined: 2009-08-28
Posts: 137 |
![]() |
Hello Dogen, Is it possible to have admin access to your site? That's only easiest and fastest way to solve your problem. -gopu |
|