|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
[WebSVN] Avalaible languagesHi,
From include/setup.php near line 382 foreach ($languages as $code => $d) { if(file_exists('languages/' . $d[0] . '.php')) { $sel = ($code == $userLang) ? ' selected="selected"' : ''; $vars["lang_select"] .= '<option value="'.$code.'"'.$sel.'>'.$d[2].' - '.$d[1].'</option>'; } } So if the php file of a language doesn't exist, this language will not appear into the select box. ------------------------------------------------------ http://websvn.tigris.org/ds/viewMessage.do?dsForumId=1547&dsMessageId=2400193 To unsubscribe from this discussion, e-mail: [dev-unsubscribe@...]. |
|
|
Re: [WebSVN] Avalaible languagesFirst off, this raises some questions: Why would the language file be
missing? Have they been deleted because you're not using them, and don't want to clutter the menu and/or save disk space? If so, I have some ideas... The approach you share would work, but checking the file system for each file for each page seems a bit excessive. The easier approach would be to remove (or comment out) the array entry from languages/ languages.php for each language file that should be excluded. - Quinn On Sep 25, 2009, at 4:28 AM, Yokav wrote: > Hi, > > From include/setup.php near line 382 > > foreach ($languages as $code => $d) { > if(file_exists('languages/' . $d[0] . '.php')) { > $sel = ($code == $userLang) ? ' selected="selected"' : ''; > $vars["lang_select"] .= '<option > value="'.$code.'"'.$sel.'>'.$d[2].' - '.$d[1].'</option>'; > } > } > > So if the php file of a language doesn't exist, this language will not > appear into the select box. > > ------------------------------------------------------ > http://websvn.tigris.org/ds/viewMessage.do?dsForumId=1547&dsMessageId=2400193 > > To unsubscribe from this discussion, e-mail: [dev- > unsubscribe@...]. http://websvn.tigris.org/ds/viewMessage.do?dsForumId=1547&dsMessageId=2400411 To unsubscribe from this discussion, e-mail: [dev-unsubscribe@...]. |
|
|
Re: [WebSVN] Avalaible languagesI was searching after a way to remove some language from WebSVN. There
is not information about it, so a newbie can try to remove the language files from the /languages folder but it will cause an php error which my code resolved. But in fact, that's true it's more easy to comment the language that we don't want to use into the file /languages/languages.php Maybe it could be a good idea to add a option into the config file which let the user choose which language he wants to use. Le 25/09/09 22:52, Quinn Taylor a écrit : > First off, this raises some questions: Why would the language file be > missing? Have they been deleted because you're not using them, and > don't want to clutter the menu and/or save disk space? If so, I have > some ideas... > > The approach you share would work, but checking the file system for > each file for each page seems a bit excessive. The easier approach > would be to remove (or comment out) the array entry from languages/ > languages.php for each language file that should be excluded. > > - Quinn > > > On Sep 25, 2009, at 4:28 AM, Yokav wrote: > >> Hi, >> >> From include/setup.php near line 382 >> >> foreach ($languages as $code => $d) { >> if(file_exists('languages/' . $d[0] . '.php')) { >> $sel = ($code == $userLang) ? ' selected="selected"' : ''; >> $vars["lang_select"] .= '<option >> value="'.$code.'"'.$sel.'>'.$d[2].' - '.$d[1].'</option>'; >> } >> } >> >> So if the php file of a language doesn't exist, this language will not >> appear into the select box. >> >> ------------------------------------------------------ >> http://websvn.tigris.org/ds/viewMessage.do?dsForumId=1547&dsMessageId=2400193 >> >> To unsubscribe from this discussion, e-mail: [dev- >> unsubscribe@...]. > > ------------------------------------------------------ > http://websvn.tigris.org/ds/viewMessage.do?dsForumId=1547&dsMessageId=2400411 > > To unsubscribe from this discussion, e-mail: [dev-unsubscribe@...]. ------------------------------------------------------ http://websvn.tigris.org/ds/viewMessage.do?dsForumId=1547&dsMessageId=2400530 To unsubscribe from this discussion, e-mail: [dev-unsubscribe@...]. |
|
|
Re: [WebSVN] Avalaible languagesYou mean the default language? That could be useful...
- Quinn On Sep 26, 2009, at 5:17 AM, Yokav wrote: > I was searching after a way to remove some language from WebSVN. There > is not information about it, so a newbie can try to remove the > language > files from the /languages folder but it will cause an php error > which my > code resolved. > > But in fact, that's true it's more easy to comment the language that > we > don't want to use into the file /languages/languages.php > > Maybe it could be a good idea to add a option into the config file > which > let the user choose which language he wants to use. > > Le 25/09/09 22:52, Quinn Taylor a écrit : >> First off, this raises some questions: Why would the language file be >> missing? Have they been deleted because you're not using them, and >> don't want to clutter the menu and/or save disk space? If so, I have >> some ideas... >> >> The approach you share would work, but checking the file system for >> each file for each page seems a bit excessive. The easier approach >> would be to remove (or comment out) the array entry from languages/ >> languages.php for each language file that should be excluded. >> >> - Quinn >> >> >> On Sep 25, 2009, at 4:28 AM, Yokav wrote: >> >>> Hi, >>> >>> From include/setup.php near line 382 >>> >>> foreach ($languages as $code => $d) { >>> if(file_exists('languages/' . $d[0] . '.php')) { >>> $sel = ($code == $userLang) ? ' selected="selected"' : ''; >>> $vars["lang_select"] .= '<option >>> value="'.$code.'"'.$sel.'>'.$d[2].' - '.$d[1].'</option>'; >>> } >>> } >>> >>> So if the php file of a language doesn't exist, this language will >>> not >>> appear into the select box. >>> >>> ------------------------------------------------------ >>> http://websvn.tigris.org/ds/viewMessage.do?dsForumId=1547&dsMessageId=2400193 >>> >>> To unsubscribe from this discussion, e-mail: [dev- >>> unsubscribe@...]. >> >> ------------------------------------------------------ >> http://websvn.tigris.org/ds/viewMessage.do?dsForumId=1547&dsMessageId=2400411 >> >> To unsubscribe from this discussion, e-mail: [dev- >> unsubscribe@...]. > > ------------------------------------------------------ > http://websvn.tigris.org/ds/viewMessage.do?dsForumId=1547&dsMessageId=2400530 > > To unsubscribe from this discussion, e-mail: [dev- > unsubscribe@...]. http://websvn.tigris.org/ds/viewMessage.do?dsForumId=1547&dsMessageId=2400552 To unsubscribe from this discussion, e-mail: [dev-unsubscribe@...]. |
|
|
Re: [WebSVN] Avalaible languagesNo but it's a good idea too !! :D
I mean an option in which we can specify the available languages. For example, my websvn only need to be display in french/english. It could avoide that the content is indexed into a language that we don't want. Le 26/09/09 16:12, Quinn Taylor a écrit : > You mean the default language? That could be useful... > - Quinn > > On Sep 26, 2009, at 5:17 AM, Yokav wrote: > >> I was searching after a way to remove some language from WebSVN. There >> is not information about it, so a newbie can try to remove the >> language >> files from the /languages folder but it will cause an php error >> which my >> code resolved. >> >> But in fact, that's true it's more easy to comment the language that >> we >> don't want to use into the file /languages/languages.php >> >> Maybe it could be a good idea to add a option into the config file >> which >> let the user choose which language he wants to use. >> >> Le 25/09/09 22:52, Quinn Taylor a écrit : >>> First off, this raises some questions: Why would the language file be >>> missing? Have they been deleted because you're not using them, and >>> don't want to clutter the menu and/or save disk space? If so, I have >>> some ideas... >>> >>> The approach you share would work, but checking the file system for >>> each file for each page seems a bit excessive. The easier approach >>> would be to remove (or comment out) the array entry from languages/ >>> languages.php for each language file that should be excluded. >>> >>> - Quinn >>> >>> >>> On Sep 25, 2009, at 4:28 AM, Yokav wrote: >>> >>>> Hi, >>>> >>>> From include/setup.php near line 382 >>>> >>>> foreach ($languages as $code => $d) { >>>> if(file_exists('languages/' . $d[0] . '.php')) { >>>> $sel = ($code == $userLang) ? ' selected="selected"' : ''; >>>> $vars["lang_select"] .= '<option >>>> value="'.$code.'"'.$sel.'>'.$d[2].' - '.$d[1].'</option>'; >>>> } >>>> } >>>> >>>> So if the php file of a language doesn't exist, this language will >>>> not >>>> appear into the select box. >>>> >>>> ------------------------------------------------------ >>>> http://websvn.tigris.org/ds/viewMessage.do?dsForumId=1547&dsMessageId=2400193 >>>> >>>> To unsubscribe from this discussion, e-mail: [dev- >>>> unsubscribe@...]. >>> >>> ------------------------------------------------------ >>> http://websvn.tigris.org/ds/viewMessage.do?dsForumId=1547&dsMessageId=2400411 >>> >>> To unsubscribe from this discussion, e-mail: [dev- >>> unsubscribe@...]. >> >> ------------------------------------------------------ >> http://websvn.tigris.org/ds/viewMessage.do?dsForumId=1547&dsMessageId=2400530 >> >> To unsubscribe from this discussion, e-mail: [dev- >> unsubscribe@...]. > > ------------------------------------------------------ > http://websvn.tigris.org/ds/viewMessage.do?dsForumId=1547&dsMessageId=2400552 > > To unsubscribe from this discussion, e-mail: [dev-unsubscribe@...]. ------------------------------------------------------ http://websvn.tigris.org/ds/viewMessage.do?dsForumId=1547&dsMessageId=2400718 To unsubscribe from this discussion, e-mail: [dev-unsubscribe@...]. |
| Free embeddable forum powered by Nabble | Forum Help |