hi,
i've looked around for a good content management solution and while comparing some popular, i figured out that phpope is a really cool and powerful thing.
my problem in this posting is:
i want to use two languages, english & german. espacially for the website itself, for the system it is ok as well. beside the problem that i don't know yet how to switch languages on the webpage, the german "flag" in the system is set to "/de_na.gif". the english flag is set to "en.gif" and is not clickable. if i try to click on "de_na.gif" - can we switch the system language here, or what? - nothing happens! there is no ability to change the status of "de_na.gif" to "de.gif"? is this right? if it is, whatfor is the flag "en_na.gif" in "/images/default/flags/" ?
My general question deals with the first, too. i think phpope is a cool thing. i have to choose wether i go on to develop my own cms version 2, or to use another tool like phpope. in the moment i tend to have a try with phpope. but my greatest wish is to get a little bit more information / documentation of how it works. with the current state of doc. the time to get into it is huge.
i think i will check out the cvs next days and have a look on the developement states and rate. if it is as good as i think, i am interested in helping developing or - writing some documentation.
i'll be back. would be very nice to get an answer for my language problem
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi and thank you for your answers so far.
i think the flags in the top right corner of the system pages - in this case german and english flags - should both be clickable, and depending on the one you click, their statues and - probably some language context - should change.
is that right?
after following exactly the installation instructions and setting up the config file exactly the way we have discussed here has no effect on the flags.
two flags are displayed. english and german. the english flag is set to "en.gif" and is not clickable, the german is set to "de_na.gif", is clickable, but the click has no effect, beside that the page reloads.
is this behaviour right or not?
i check it later on, looking what the link referrs to...
greetings,
mathias
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes the content will changed after the click on an other language. If you have executed the translation sql scripts in db/languages/, the captions of the system will change. Now if you add a new news in the english content, it will not available on the german system because it will switch the database.
A click must on a flag must change the language. Which version you use? All multi-lingual systems works. 0.9a and 1.0.0. Only the cvs version is untested in this case.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok, i can't figure it out in the moment, because I am at work. your answers should help, now it know that something is not right in my installation.
i have installed version 1.0.0, the recent download version. i did create the 5 databases (2 languages) and executetet the sql language scripts into the sys database. because of the language problem i deleted the complete installation and had another try this morning, but the result was the same.
i will have a look on it this evening and afterwards i will post here again some results of my investigations.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok, thanx, i'll try it this evening (?lang_select=de). this seems to be the answer for switching the language on the webpage.
In admin mode there are these flags for the languages and they seem not to do what they are supposed to do, as described above?
surely, i did create the databases
xxx_mod_de
xxx_mod_en
xxx_ghost_de
xxx_ghost_en
and filled the xxx_sys with the language files shipped with phpopes download. the language array in the config file is set to "en","de" and the preferred language variable does no different if set to "de" or "en"?
should phpope behave different concerning the language flags as described above?
i do not have the system in front of me, but i will have another look at it this evening.
thanx.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi, i hope you are still online!
the first thing i've encounterd id that the following short loop is hardcoded two times AND is parsed two times:
/plugnis/adminhead/index.php AND
/includes/adminhead.php
maybe the one who wrote it was right to name the var $damn_this... seems to be damned!
If you echo $GLOBALS["lang"]->lang; as the first statement of the foreach loop you get displayed en 4 times! please note my config settings:
$config["default"]["baselang"] = array("en", "de"); and
$config["default"]["lang"] = "de";
If you replace the echo statement above with the $damn var, "en de en de" is displayed. (assuming that the echo statement is written in the foreach loop in both files!)
why do you parse the same loop two times?
where is the $conf array set to $GLOBALS["config"]?
why do you use $GLOBALS["config"] as an array container AND as an object?
where is the object $GLOBALS["config"]["lang"]->lang defined?
Last but not least:
If I set the language config vars mentioned above to:
$config["default"]["baselang"] = array("de");
$config["default"]["lang"] = "de";
the german flag is finally set to "de.gif", but as expected, the english option is missing totally...
but the first time i've seen the german translation on the desktop!!!
Now if you try
$config["default"]["baselang"] = array("de", "en");
the same problems occurs again...
ok, i think we will get it work.
by the way, can you give me a phpinfo() of a working installation? want to be sure that i set the important directives.
thank you,
mathias
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've read in the general discussion forum something about professional systems and use of multiple databases for one system. that is ok for me. but i wonder if the use of magic_qoutes_gpc is professional? i hope you do not use register_globals ... (doesn't seem so) please give me a working phpinfo() example.
thank you.
mathias
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi,
please forget the question with the global setting above. but another question comes up here instead.
why do you use <? global $something ?> in procedural code? look at the public_html/index.php. there you set some variables global without any context (function or method). why? there is no need for.
the same with the $GLOBALS["lang"] var. it is used above not within a function. there is no need to call it via the superglobal $GLOBALS. I assume you did it for naming convention? but the " global $something " calls are really superfluous outside of methods/functions, are'nt they?
thanx,
mathias
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi,
i've looked around for a good content management solution and while comparing some popular, i figured out that phpope is a really cool and powerful thing.
my problem in this posting is:
i want to use two languages, english & german. espacially for the website itself, for the system it is ok as well. beside the problem that i don't know yet how to switch languages on the webpage, the german "flag" in the system is set to "/de_na.gif". the english flag is set to "en.gif" and is not clickable. if i try to click on "de_na.gif" - can we switch the system language here, or what? - nothing happens! there is no ability to change the status of "de_na.gif" to "de.gif"? is this right? if it is, whatfor is the flag "en_na.gif" in "/images/default/flags/" ?
My general question deals with the first, too. i think phpope is a cool thing. i have to choose wether i go on to develop my own cms version 2, or to use another tool like phpope. in the moment i tend to have a try with phpope. but my greatest wish is to get a little bit more information / documentation of how it works. with the current state of doc. the time to get into it is huge.
i think i will check out the cvs next days and have a look on the developement states and rate. if it is as good as i think, i am interested in helping developing or - writing some documentation.
i'll be back. would be very nice to get an answer for my language problem
You can change the language with the request:
http://yoursystem/index.php?lang_select=de
But you must have the DB: xxx_mod_de xxx_mod_en xxx_ghost_de xxx_ghost_en xxx_sys
and the entry in the main configfile (../includes/config.php)
you must only set the database names in the config without the language suffix:
xxx_mod
xxx_ghost
And to use the new language add it to the language array:
$config["default"]["baselang"] = array("en","de");
If you would german as primary language, just change the default language:
$config["default"]["lang"] = "de";
hi and thank you for your answers so far.
i think the flags in the top right corner of the system pages - in this case german and english flags - should both be clickable, and depending on the one you click, their statues and - probably some language context - should change.
is that right?
after following exactly the installation instructions and setting up the config file exactly the way we have discussed here has no effect on the flags.
two flags are displayed. english and german. the english flag is set to "en.gif" and is not clickable, the german is set to "de_na.gif", is clickable, but the click has no effect, beside that the page reloads.
is this behaviour right or not?
i check it later on, looking what the link referrs to...
greetings,
mathias
Yes the content will changed after the click on an other language. If you have executed the translation sql scripts in db/languages/, the captions of the system will change. Now if you add a new news in the english content, it will not available on the german system because it will switch the database.
A click must on a flag must change the language. Which version you use? All multi-lingual systems works. 0.9a and 1.0.0. Only the cvs version is untested in this case.
ok, i can't figure it out in the moment, because I am at work. your answers should help, now it know that something is not right in my installation.
i have installed version 1.0.0, the recent download version. i did create the 5 databases (2 languages) and executetet the sql language scripts into the sys database. because of the language problem i deleted the complete installation and had another try this morning, but the result was the same.
i will have a look on it this evening and afterwards i will post here again some results of my investigations.
ok, thanx, i'll try it this evening (?lang_select=de). this seems to be the answer for switching the language on the webpage.
In admin mode there are these flags for the languages and they seem not to do what they are supposed to do, as described above?
surely, i did create the databases
xxx_mod_de
xxx_mod_en
xxx_ghost_de
xxx_ghost_en
and filled the xxx_sys with the language files shipped with phpopes download. the language array in the config file is set to "en","de" and the preferred language variable does no different if set to "de" or "en"?
should phpope behave different concerning the language flags as described above?
i do not have the system in front of me, but i will have another look at it this evening.
thanx.
hi, i hope you are still online!
the first thing i've encounterd id that the following short loop is hardcoded two times AND is parsed two times:
/plugnis/adminhead/index.php AND
/includes/adminhead.php
foreach ($GLOBALS["config"]["default"]["baselang"] as $damn) { echo $GLOBALS["lang"]->lang;
if ($damn == $GLOBALS["lang"]->lang) {
$damn_this .= '<td width="1"><img src="images/admin/zr_w.gif" alt=""/></td><td width="24" background="images/admin/zr.gif" style="padding: 1px 1px 4px 1px"><img src="images/default/flags/' . $damn . '.gif" alt="' . $GLOBALS["lang"]->tr($damn) . '"></td>';
} else {
$damn_this .= '<td width="1"><img src="images/admin/zr_w.gif" alt=""/></td><td width="24" background="images/admin/zr.gif" style="padding: 1px 1px 4px 1px"><a href="index.php?TPL=' . $this->id . '&lang_select=' . $damn . '"><img src="images/default/flags/' . $damn . '_na.gif" alt="' . $GLOBALS["lang"]->tr($damn) . '" border="0"></a></td>';
}
}
$top_tpl->setvariable("LANGSELECT",$damn_this);
maybe the one who wrote it was right to name the var $damn_this... seems to be damned!
If you echo $GLOBALS["lang"]->lang; as the first statement of the foreach loop you get displayed en 4 times! please note my config settings:
$config["default"]["baselang"] = array("en", "de"); and
$config["default"]["lang"] = "de";
If you replace the echo statement above with the $damn var, "en de en de" is displayed. (assuming that the echo statement is written in the foreach loop in both files!)
why do you parse the same loop two times?
where is the $conf array set to $GLOBALS["config"]?
why do you use $GLOBALS["config"] as an array container AND as an object?
where is the object $GLOBALS["config"]["lang"]->lang defined?
Last but not least:
If I set the language config vars mentioned above to:
$config["default"]["baselang"] = array("de");
$config["default"]["lang"] = "de";
the german flag is finally set to "de.gif", but as expected, the english option is missing totally...
but the first time i've seen the german translation on the desktop!!!
Now if you try
$config["default"]["baselang"] = array("de", "en");
the same problems occurs again...
ok, i think we will get it work.
by the way, can you give me a phpinfo() of a working installation? want to be sure that i set the important directives.
thank you,
mathias
I've read in the general discussion forum something about professional systems and use of multiple databases for one system. that is ok for me. but i wonder if the use of magic_qoutes_gpc is professional? i hope you do not use register_globals ... (doesn't seem so) please give me a working phpinfo() example.
thank you.
mathias
hi,
please forget the question with the global setting above. but another question comes up here instead.
why do you use <? global $something ?> in procedural code? look at the public_html/index.php. there you set some variables global without any context (function or method). why? there is no need for.
the same with the $GLOBALS["lang"] var. it is used above not within a function. there is no need to call it via the superglobal $GLOBALS. I assume you did it for naming convention? but the " global $something " calls are really superfluous outside of methods/functions, are'nt they?
thanx,
mathias