Languages and alternative language support ⇒ i18n - l10n (languages) :: Archives ⇒ TO DO: make cpg absolutly fully multilingual :: Archived ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum Indexi18n - l10n (languages)

Archived ⇒ TO DO: make cpg absolutly fully multilingual


beeeeee from cpgnuke.de makes a full german language paket

and he recognized that not all "language" stuff is moved to lang files

here a list of files with output text in it:
modules/surveys/index.php modules/our_sponsors/index.php modules/encyclopedia/index.php modules/groups/index.php modules/journal/display.php modules/journal/search.php modules/reviews/index.php includes/bbcode.js install/step1.php install/step2.php install/step2.php install/new.php admin/modules/authors.php admin/modules/groups.php admin/modules/users_cfg.php admin/modules/messages.php admin/modules/forums.php admin/modules/settings.php admin/modules/backup.php admin/modules/smilies.php admin/modules/cpgmm.php admin/modules/coppermine.php admin/modules/forum/admin_avatar.php db/db.php install.php admin.php header.php

.: USE THE FORCE :.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


we are working on this.. I will confirm each file and make new vars... they will be posted here
cpgnuke.com/cvs/languages/

AKA Akamu / Read these and your life will be successful | Find a Repair
--
Mods and Professional Support via YIM

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
win32 / Apache 1.3.33 / MySQL 4.1.16/PHP 4.4/CPG-CVS ( browsers: Mozilla 1.7.x / IE6 / Opera 8.0)

Last edited by Śyama_Dāsa on Mon Aug 02, 2004 2:22 am; edited 1 time in total


yeap
thanx

.: USE THE FORCE :.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


I really enjoy cpg-nuke so wish it better and better

don't forget the following files for admin page in multi-lang

admin\links\adlnk_main.php
admin\links\adlnk_cpgmm.php
admin\links\adlnk_coppermine.php
admin\links\adlnk_ShoutBlock.php


for instance,
edit admin\links\adlnk_main.php

$menuitems['_AMENU1']['Smilies']['URL'] = adminlink('smilies'); $menuitems['_AMENU1']['Smilies']['IMG'] = 'smilies.gif'; $menuitems['_AMENU2']['Groups']['URL'] = adminlink('Groups'); $menuitems['_AMENU2']['Groups']['IMG'] = 'groups.gif'; $menuitems['_AMENU4']['Group Perms']['URL'] = adminlink('forums&file=ug_auth&mode=group'); $menuitems['_AMENU4']['Group Perms']['IMG'] = 'groupperms.gif'; $menuitems['_AMENU4']['User Perms']['URL'] = adminlink('forums&file=ug_auth&mode=user'); $menuitems['_AMENU4']['User Perms']['IMG'] = 'userperms.gif'; $menuitems['_AMENU4']['Forums']['URL'] = adminlink('forums'); $menuitems['_AMENU4']['Forums']['IMG'] = 'forums.gif';

result
<?php /************************************************************************/ /* CPG-NUKE: Web Portal System */ /* =========================== */ /* */ /* Copyright (c) 2004 by DJ Maze */ /* www.cpgnuke.com */ /* */ /* This program is free software. You can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License. */ /* */ /* Last modification notes: */ /* */ /* $Id: adlnk_main.php,v 1.13 2004/05/01 03:33:00 djmaze Exp $ */ /* */ /************************************************************************/ if ($radminsuper) { $menuitems['_AMENU1'][_PREFERENCES]['URL'] = adminlink('Configure'); $menuitems['_AMENU1'][_PREFERENCES]['IMG'] = 'preferences.gif'; $menuitems['_AMENU1'][_DATABASE]['URL'] = adminlink('database'); $menuitems['_AMENU1'][_DATABASE]['IMG'] = 'backup.gif'; $menuitems['_AMENU1'][_BLOCKS]['URL'] = adminlink('BlocksAdmin'); $menuitems['_AMENU1'][_BLOCKS]['IMG'] = 'blocks.gif'; $menuitems['_AMENU1'][_MODULES]['URL'] = adminlink('modules'); $menuitems['_AMENU1'][_MODULES]['IMG'] = 'modules.gif'; $menuitems['_AMENU1'][_SMILIES]['URL'] = adminlink('smilies'); $menuitems['_AMENU1'][_SMILIES]['IMG'] = 'smilies.gif'; $menuitems['_AMENU2'][_EDITADMINS]['URL'] = adminlink('mod_authors'); $menuitems['_AMENU2'][_EDITADMINS]['IMG'] = 'authors.gif'; $menuitems['_AMENU2'][_GROUPS]['URL'] = adminlink('Groups'); $menuitems['_AMENU2'][_GROUPS]['IMG'] = 'groups.gif'; $menuitems['_AMENU3'][_MESSAGES]['URL'] = adminlink('messages'); $menuitems['_AMENU3'][_MESSAGES]['IMG'] = 'messages.gif'; $menuitems['_AMENU4'][_GROUPPERMS]['URL'] = adminlink('forums&file=ug_auth&mode=group'); $menuitems['_AMENU4'][_GROUPPERMS]['IMG'] = 'groupperms.gif'; $menuitems['_AMENU4'][_USERPERMS]['URL'] = adminlink('forums&file=ug_auth&mode=user'); $menuitems['_AMENU4'][_USERPERMS]['IMG'] = 'userperms.gif'; $menuitems['_AMENU6'][_HTTPREFERERS]['URL'] = adminlink('hreferer'); $menuitems['_AMENU6'][_HTTPREFERERS]['IMG'] = 'referers.gif'; $menuitems['_AMENU6'][_BANNERS]['URL'] = adminlink('BannersAdmin'); $menuitems['_AMENU6'][_BANNERS]['IMG'] = 'banners.gif'; } if ($radminsuper || $radminuser) { $menuitems['_AMENU2'][_EDITUSERS]['URL'] = adminlink('mod_users'); $menuitems['_AMENU2'][_EDITUSERS]['IMG'] = 'users.gif'; $menuitems['_AMENU2'][_USERSCONFIG]['URL'] = adminlink('UsersConfig'); $menuitems['_AMENU2'][_USERSCONFIG]['IMG'] = 'usersconfig.gif'; } if ($radminsuper || $radminnewsletter) { $menuitems['_AMENU5'][_NEWSLETTER]['URL'] = adminlink('newsletter'); $menuitems['_AMENU5'][_NEWSLETTER]['IMG'] = 'newsletter.gif'; } if ($radminsuper || $radminarticle) { $menuitems['_AMENU3'][_SUBMISSIONS]['URL'] = adminlink('submissions'); $menuitems['_AMENU3'][_SUBMISSIONS]['IMG'] = 'submissions.gif'; $menuitems['_AMENU3'][_ADDSTORY]['URL'] = adminlink('adminStory'); $menuitems['_AMENU3'][_ADDSTORY]['IMG'] = 'stories.gif'; } if ($radminsuper || $radmintopic) { $menuitems['_AMENU3'][_TOPICS]['URL'] = adminlink('topicsmanager'); $menuitems['_AMENU3'][_TOPICS]['IMG'] = 'topics.gif'; } if ($radminsuper || $radminsurvey) { $menuitems['_AMENU3'][_ADMPOLLS]['URL'] = adminlink('create'); $menuitems['_AMENU3'][_ADMPOLLS]['IMG'] = 'surveys.gif'; } if ($radminsuper || $radminforum) { $menuitems['_AMENU4'][_FORUMS]['URL'] = adminlink('forums'); $menuitems['_AMENU4'][_FORUMS]['IMG'] = 'forums.gif'; } if ($radminsuper || $radminephem) { $menuitems['_AMENU5'][_EPHEMERIDS]['URL'] = adminlink('Ephemerids'); $menuitems['_AMENU5'][_EPHEMERIDS]['IMG'] = 'ephemerids.gif'; } ?>


add the followin lines in \html\admin\language\lang-english.php


define("_HTTPREFERERS","Http References"); define("_FORUMS", "Forums"); define("_GROUPS", "Groups"); define("_USERPERMS", "User Perms"); define("_GROUPPERMS", "Group Perms"); define("_QSHOUTBLOCK", "SHOUTBLOCK"); define("_SMILIES","Smilies"); define("_COPPERMINE","Coppermine");

Thank you very much

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
WINXP SP2/ apache 2.0.54/ php 5.0/ mysql 4.1


just to add..
there is a lot of repetition....

for every module language translation.. the same fraze like "yes" "no" "previous" etc. etc. have to be retranslated.

is there a way to deal with this boring repetition?
thanks.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Gentoo Linux, Apache2 - mod-php


for every module language translation.. the same fraze like "yes" "no" "previous" etc. etc. have to be retranslated.

is there a way to deal with this boring repetition?


Yeah, we could add these definitions to the main language file and have the module grab definitions for the main site as well as that of the module in question.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 1.3.34 / 4.1.18 / 4.4.2 / CVS


just to add

this file also need be translated in multi-language from attachment_mod_v239

html\admin\modules\forums.php

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
WINXP SP2/ apache 2.0.54/ php 5.0/ mysql 4.1


_YES and _NO have been added to the main language file and are being deleted from the modules files

AKA Akamu / Read these and your life will be successful | Find a Repair
--
Mods and Professional Support via YIM

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
win32 / Apache 1.3.33 / MySQL 4.1.16/PHP 4.4/CPG-CVS ( browsers: Mozilla 1.7.x / IE6 / Opera 8.0)


Dragonfly 9.0 is a long way from phpnuke or even 8.2 in it's localization effort.

Beside the additonal vars added to bring the parts y'all have pointed out, blocks can use a language var for the tiitle and module use the modules language var.

We appreciate your help by please reporting any outstanding areas in our bug reporting module

AKA Akamu / Read these and your life will be successful | Find a Repair
--
Mods and Professional Support via YIM

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
win32 / Apache 1.3.33 / MySQL 4.1.16/PHP 4.4/CPG-CVS ( browsers: Mozilla 1.7.x / IE6 / Opera 8.0)


Can I use the code from above ?
coz it will help me alot but I don't wana use something without permission.

Please PM me.

Thanks. Laughing

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
v32.2


for dragonfly rakoon13?

AKA Akamu / Read these and your life will be successful | Find a Repair
--
Mods and Professional Support via YIM

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
win32 / Apache 1.3.33 / MySQL 4.1.16/PHP 4.4/CPG-CVS ( browsers: Mozilla 1.7.x / IE6 / Opera 8.0)

All times are UTC