You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 49 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Language selector -> language name change? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
SkunX
Nuke Soldier
Nuke Soldier


Joined: Jan 03, 2006
Posts: 11


PostPosted: Tue Jan 03, 2006 3:41 am Reply with quoteBack to top

Hi everyone,

I have a small problem: i can't find this option inside the source code:

<option value="index.php?newlang=macedonian" selected>Macedonian</option>

and i need to change option selected from "Macedonian" to "Makedonski" for example.
I can see this code line only when i browse my site with IE od Firefox. (with show source code option in browsers)
I have searched the whole souce code (in local site) with DreamWeaver and get no results.

Any idea where/how to change it?

Thanks in forward.
Find all posts by SkunXView user's profileSend private message
ethana
Sergeant
Sergeant


Joined: Dec 26, 2005
Posts: 81


PostPosted: Tue Jan 03, 2006 7:11 am Reply with quoteBack to top

If this is for the general language select block then id assume it would be under the blocks source code (cant remember exactly what the block is called but im sure its language something).
Find all posts by ethanaView user's profileSend private message
ethana
Sergeant
Sergeant


Joined: Dec 26, 2005
Posts: 81


PostPosted: Tue Jan 03, 2006 7:18 am Reply with quoteBack to top

Took a look at the languages block...

Looks like it goes to the language directory and reads each file...stripping off the lang- and then building the links with rest...i changed a language file to lang-tester.php and it worked...language block now shows Tester as an option.
Find all posts by ethanaView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12403


PostPosted: Tue Jan 03, 2006 12:42 pm Reply with quoteBack to top

Correct, it reads from the file names. You'd have to change all lang-macedonian.php to lang-makedonski.php

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
SkunX
Nuke Soldier
Nuke Soldier


Joined: Jan 03, 2006
Posts: 11


PostPosted: Tue Jan 03, 2006 3:11 pm Reply with quoteBack to top

Evaders99 wrote:
Correct, it reads from the file names. You'd have to change all lang-macedonian.php to lang-makedonski.php


Hmm, then is it possible to change it to lang-Ìàêåäîíñêè.php?
Encoding is Cyrilic Windows 1251.
Find all posts by SkunXView user's profileSend private message
ethana
Sergeant
Sergeant


Joined: Dec 26, 2005
Posts: 81


PostPosted: Tue Jan 03, 2006 3:16 pm Reply with quoteBack to top

I'm going to go out on a ledge on this and say you have a couple of dependicies...one, is the web server capable of that character set? And two, are most of your users going to have that character set.

I'm not the best with character sets but if both of those questions come out to yes and it begins with lang- ...i dont see why not.
Find all posts by ethanaView user's profileSend private message
SkunX
Nuke Soldier
Nuke Soldier


Joined: Jan 03, 2006
Posts: 11


PostPosted: Tue Jan 03, 2006 6:25 pm Reply with quoteBack to top

Evaders99 wrote:
Correct, it reads from the file names. You'd have to change all lang-macedonian.php to lang-makedonski.php


And btw, how sure are you about that? Because is not logical to me to change all lang-macedonian files, just to have it on the dropdown menu...

This is what i am talking about:

Image

?
Find all posts by SkunXView user's profileSend private message
SkunX
Nuke Soldier
Nuke Soldier


Joined: Jan 03, 2006
Posts: 11


PostPosted: Tue Jan 03, 2006 6:28 pm Reply with quoteBack to top

Ethana, yes, "both of those questions come out to yes" Smile and the site will be mostly Macedonian with some English features...
Find all posts by SkunXView user's profileSend private message
ethana
Sergeant
Sergeant


Joined: Dec 26, 2005
Posts: 81


PostPosted: Tue Jan 03, 2006 6:34 pm Reply with quoteBack to top

Evaders is right...by selecting a language out of that drop down it sets the whole sites language....and a lot of the modules, themes, etc...come with their own language files. So if someone sets it but there are no matching language files for the modules, theme, etc...then your going to be stuck with english. Also more than likely your going to have to do some major addition to that language file to fully convert everything on the site. When i say it...make one through language file and put it everywhere else...being careful to check for the extra definitions that theme and module makes specify in their own language files.
Find all posts by ethanaView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12403


PostPosted: Tue Jan 03, 2006 7:20 pm Reply with quoteBack to top

Unfortunately, that the way its coded. You could manually rewrite the box for which languages you want. Would take a little code work, but its possible

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
SkunX
Nuke Soldier
Nuke Soldier


Joined: Jan 03, 2006
Posts: 11


PostPosted: Wed Jan 04, 2006 3:48 am Reply with quoteBack to top

My solution was choosing flags and not text.
I know that other solution is to make 2 new blocks (separate for each language) but this is also ok.

Now I have some other problem: about the PAGE TITLE in cyrillic?
Should I make index.php to be encoded by default in 1251 (and is it possible like that) or any idea where to change the default page encoding?
I have already set Macedonian as a default language for my site, but the TITLE remains unreadable when I write it in cyrillic... (even when I manually change the page encoding in browser). Actually browser knows how to encode page and set the 1521 automatic, but this does not affect page title... strange.

Thanks for your time.
Find all posts by SkunXView user's profileSend private message
ethana
Sergeant
Sergeant


Joined: Dec 26, 2005
Posts: 81


PostPosted: Wed Jan 04, 2006 6:57 am Reply with quoteBack to top

I'm no help on this last question.
Find all posts by ethanaView user's profileSend private message
SkunX
Nuke Soldier
Nuke Soldier


Joined: Jan 03, 2006
Posts: 11


PostPosted: Thu Jan 05, 2006 9:38 am Reply with quoteBack to top

And maybe I should open new topic about that...

Thank you ppl Smile
Find all posts by SkunXView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.692 Seconds - 262 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::