Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: 1 [2] 3   Go Down

Author Topic: Multi Lingual cat/alb/pic titles and descriptions (experimental)  (Read 100952 times)

0 Members and 1 Guest are viewing this topic.

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: Multi Lingual cat/alb/pic titles and descriptions (experimental)
« Reply #20 on: September 08, 2006, 02:21:10 pm »

I installed the plugin with japanese. I didn't fill japanese. But i want to add the Dutch langage.
Do you think i can fill the japanese field with dutch and go in the database to find "japanese" and replace by "dutch" in the translation table ?
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Multi Lingual cat/alb/pic titles and descriptions (experimental)
« Reply #21 on: September 09, 2006, 09:48:23 am »

Ok here you go...

First take a backup of your current database then go to database via phpMyAdmin or any other tool. In the cpg_config table there will be one row with 'name' column as 'mod_active_lang'. The 'value' of that row will be a string with your current languages (something like french,japenese). Edit the value to whatever language you want. Example french,dutch. Note that it is a comma separated string. There should not be any spaces between the commas or lang names.

Attached is the revised mod_lang.php file. Download it and replace your current mod_lang.php with this one. Then open the mod_lang page in browser and click on "Synchronize Languages" tab. This will add/delete the languages as per the settings in config i.e. as per the lang string you edited in the config table.
Logged
Chief Geek at Ranium Systems

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: Multi Lingual cat/alb/pic titles and descriptions (experimental)
« Reply #22 on: September 09, 2006, 11:44:41 pm »

Hello
Thanks Abbas !! I have done what you said and japanese is become dutch  :)
Fortunately i installed the japanese langage more the first time  ::)
Thanks
Logged

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: Multi Lingual cat/alb/pic titles and descriptions (experimental)
« Reply #23 on: September 22, 2006, 03:40:49 pm »

Is it possible to add this plugin on a 132 coppermine version ?
Because i have a 132 version very modified and i can't upgrade it.
If we can and if it is not automatic, i could do it.
Thanks
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Multi Lingual cat/alb/pic titles and descriptions (experimental)
« Reply #24 on: September 23, 2006, 06:58:19 am »

cpg1.3.x does not support plugins. Plugins were introduced in 1.4. So we cannot add this rather any plugin to cpg132.
Logged
Chief Geek at Ranium Systems

Maradona10

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Multi Lingual cat/alb titles and descriptions
« Reply #25 on: April 20, 2007, 10:21:42 am »

Hi,

I installed and edited everything correctly, but when I want to submit the translation I get this error:

Illegal variable _files or _env or _get or _post or _cookie or _server or _session or globals passed to script.

Anyone know what this means?

EDIT: I found that when deleting this in joomla.inc.php it does translate without errors

checkInputArray( $_GET );
checkInputArray( $_POST );

Is this wrong to delete?     
      
« Last Edit: April 20, 2007, 10:52:29 am by Maradona10 »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Multi Lingual cat/alb titles and descriptions
« Reply #26 on: April 25, 2007, 09:28:19 am »

Don't have any idea about bridge files.
Logged
Chief Geek at Ranium Systems

Quinti

  • Translator
  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 79
    • Quinti.net
Multi Lingual cat/alb titles and descriptions
« Reply #27 on: July 01, 2007, 12:46:33 am »

Hi Abbas

There are a module for Xoops, in that you can translate any thing capable of route interfering form.

very simple to translate: Yo especifi a lang,
Code: [Select]
([en], [fr], [es]) and in any form, you can post all the content in all langs..., for example: field Title:
Code: [Select]
[en]Photo Title[/en][fr]Foté Titulé[/fr][es]Título Foto[/es]
is very good i think...

well, is a suggestion, maybe is impossible in the cpg core...
or maybe is dangerous, but is a suggestion if you did'nt kewn, i don't know much php

http://www.xoops.org/modules/repository/viewcat.php?cid=111
http://xoops.org.cn/modules/wfdownloads/singlefile.php?lid=314&cid=8

well, greetings

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Multi Lingual cat/alb titles and descriptions
« Reply #28 on: July 03, 2007, 08:38:57 am »

Thanks Quinti for the suggestion. The plugin which i have created is not well designed and i don't like it myself. I will go through the xoops site.
Logged
Chief Geek at Ranium Systems

rubenix

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Rubrenix Gallery
Multi Lingual cat/alb titles and descriptions
« Reply #29 on: October 14, 2007, 10:58:09 am »

first of all thanks for this great plug!!

worked fine until I upgraded to 1.4.13 applied the mods in index and functions php files... info in the database still there, but it doesnt show the info in the different languages...

Any ideas?? thanks in advance!
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Multi Lingual cat/alb titles and descriptions
« Reply #30 on: December 04, 2007, 06:03:33 am »

Make sure that the plugin is activated from plugin manager page.
Logged
Chief Geek at Ranium Systems

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Logged
Chief Geek at Ranium Systems

LFox

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
Re: Multi Lingual cat/alb/pic titles and descriptions (experimental)
« Reply #32 on: April 16, 2008, 05:23:00 pm »

Can I install this plug-in on 1.3.4 version?
Logged

Nibbler

  • Guest
Re: Multi Lingual cat/alb/pic titles and descriptions (experimental)
« Reply #33 on: April 16, 2008, 05:40:27 pm »

Of course not. 1.3 does not have a plugin system. Update your gallery.
Logged

LFox

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
Re: Multi Lingual cat/alb/pic titles and descriptions (experimental)
« Reply #34 on: April 16, 2008, 11:00:27 pm »

I just update gallery, and install this plugin... This is great plug-in!
Very useful for multilingual sites!!! And what important - very simple install)
« Last Edit: April 16, 2008, 11:28:24 pm by LFox »
Logged

LFox

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
Re: Multi Lingual cat/alb/pic titles and descriptions (experimental)
« Reply #35 on: April 16, 2008, 11:03:25 pm »

Can I add new languages to this plug-in after install?
« Last Edit: April 16, 2008, 11:29:51 pm by LFox »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Multi Lingual cat/alb/pic titles and descriptions (experimental)
« Reply #36 on: April 17, 2008, 06:30:27 am »

I must confess that though i wrote the plugin - i almost forgot how it works. I think you cannot add new languages after install.
Logged
Chief Geek at Ranium Systems

pixstreet

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • pixstreet.co.uk
Re: Multi Lingual cat/alb/pic titles and descriptions (experimental)
« Reply #37 on: June 08, 2008, 01:08:34 am »

hi there, i have installed your 'Multi Lingual cat/alb/pic titles and descriptions' plug in and it works great. But I have also installed 'title below thumbnail' link > http://forum.coppermine-gallery.net/index.php/topic,25076.0.html

unfortunately these 2 plug ins do not work together, do you have any suggestions.

i have also requested the same from the other plug in creator.

pixstreet
Logged

LFox

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
Re: Multi Lingual cat/alb/pic titles and descriptions (experimental)
« Reply #38 on: June 24, 2008, 11:52:48 am »

can someone tell me what's going on... this plugin at my gallery left off to work (((
all was fine, but yesterday, all new additions don't show at the gallery... I try to explain more detailed:
when I add/change description in mod_lang.php and then save changes, this description don't appear at the displayimage page under picture... in original description changes work... but when I add it at mod_lang.php - not. But in mod_lang.php this changes - saved. And in MySQL - saved.
In some languages changes don't work, but one language don't work at all... all descriptions don't show when I click on flag - it shows on original language - english.
Tell me please what can be a reason in?
« Last Edit: June 24, 2008, 12:05:00 pm by LFox »
Logged

anselmej

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Multi Lingual cat/alb/pic titles and descriptions (experimental)
« Reply #39 on: November 05, 2008, 09:07:35 am »

it works fine , any new version on the way ?
I have created a button in admin menu for mod_lang.php

in ./include/themes.inc.php >> function theme_admin_mode_menu()
after
                '{DOCUMENTATION_TITLE}' => $lang_gallery_admin_menu['documentation_title'],
                '{DOCUMENTATION_LNK}' => $lang_gallery_admin_menu['documentation_lnk'],
add
'{MULTILANG_TITLE}' => $lang_gallery_admin_menu['multilang_title'],
            '{MULTILANG_LNK}' => $lang_gallery_admin_menu['multilang_lnk'],

Logged
Pages: 1 [2] 3   Go Up
 

Page created in 0.052 seconds with 20 queries.