TO DO: make cpg absolutly fully multilingual
-> i18n - l10n (languages)

#1: TO DO: make cpg absolutly fully multilingual Author: ErtanLocation: Germany PostPosted: Tue Jul 20, 2004 2:32 pm
    ----
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:
Code::
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

#2: Re: make cpg full multilingual - move all outputtxt in lang Author: Śyama_DāsaLocation: Dragonfly CMS Tribe PostPosted: Tue Jul 20, 2004 5:53 pm
    ----
we are working on this.. I will confirm each file and make new vars... they will be posted here
cpgnuke.com/cvs/languages/


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

#3: Re: make cpg full multilingual - move all outputtxt in lang Author: ErtanLocation: Germany PostPosted: Tue Jul 20, 2004 7:57 pm
    ----
yeap
thanx

#4: Re: TO DO: make cpg absolutly fully multilingual Author: wi777Location: Taiwan PostPosted: Mon Aug 02, 2004 6:33 am
    ----
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

PHP:

result
PHP:
<?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&amp;file=ug_auth&amp;mode=group');
$menuitems['_AMENU4'][_GROUPPERMS]['IMG'] = 'groupperms.gif';
$menuitems['_AMENU4'][_USERPERMS]['URL'] = adminlink('forums&amp;file=ug_auth&amp;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


PHP:

Thank you very much

#5: Re: TO DO: make cpg absolutly fully multilingual Author: roRiscLocation: Montreal, Canada PostPosted: Sun Aug 08, 2004 8:18 pm
    ----
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.

#6: Re: TO DO: make cpg absolutly fully multilingual Author: TrevorLocation: New York PostPosted: Sun Aug 08, 2004 9:26 pm
    ----
roRisc wrote:
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.

#7: Re: TO DO: make cpg absolutly fully multilingual Author: wi777Location: Taiwan PostPosted: Mon Aug 09, 2004 12:41 am
    ----
just to add

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

html\admin\modules\forums.php

#8: Re: TO DO: make cpg absolutly fully multilingual Author: Śyama_DāsaLocation: Dragonfly CMS Tribe PostPosted: Mon Aug 09, 2004 7:35 pm
    ----
_YES and _NO have been added to the main language file and are being deleted from the modules files

#9: Re: TO DO: make cpg absolutly fully multilingual Author: Śyama_DāsaLocation: Dragonfly CMS Tribe PostPosted: Sun Dec 26, 2004 4:43 am
    ----
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

#10: Re: TO DO: make cpg absolutly fully multilingual Author: rakoon13Location: GA PostPosted: Mon Sep 12, 2005 9:09 am
    ----
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

#11: Re: TO DO: make cpg absolutly fully multilingual Author: Śyama_DāsaLocation: Dragonfly CMS Tribe PostPosted: Mon Sep 12, 2005 9:46 pm
    ----
for dragonfly rakoon13?



-> i18n - l10n (languages)

All times are GMT

Page 1 of 1