| Author |
Message |
SkunX
Nuke Soldier


Joined: Jan 03, 2006
Posts: 11
|
Posted:
Tue Jan 03, 2006 3:41 am |
  |
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. |
|
|
   |
 |
ethana
Sergeant


Joined: Dec 26, 2005
Posts: 81
|
Posted:
Tue Jan 03, 2006 7:11 am |
  |
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). |
|
|
   |
 |
ethana
Sergeant


Joined: Dec 26, 2005
Posts: 81
|
Posted:
Tue Jan 03, 2006 7:18 am |
  |
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. |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12403
|
Posted:
Tue Jan 03, 2006 12:42 pm |
  |
|
     |
 |
SkunX
Nuke Soldier


Joined: Jan 03, 2006
Posts: 11
|
Posted:
Tue Jan 03, 2006 3:11 pm |
  |
| 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. |
|
|
   |
 |
ethana
Sergeant


Joined: Dec 26, 2005
Posts: 81
|
Posted:
Tue Jan 03, 2006 3:16 pm |
  |
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. |
|
|
   |
 |
SkunX
Nuke Soldier


Joined: Jan 03, 2006
Posts: 11
|
Posted:
Tue Jan 03, 2006 6:25 pm |
  |
| 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:
? |
|
|
   |
 |
SkunX
Nuke Soldier


Joined: Jan 03, 2006
Posts: 11
|
Posted:
Tue Jan 03, 2006 6:28 pm |
  |
Ethana, yes, "both of those questions come out to yes" and the site will be mostly Macedonian with some English features... |
|
|
   |
 |
ethana
Sergeant


Joined: Dec 26, 2005
Posts: 81
|
Posted:
Tue Jan 03, 2006 6:34 pm |
  |
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. |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12403
|
Posted:
Tue Jan 03, 2006 7:20 pm |
  |
|
     |
 |
SkunX
Nuke Soldier


Joined: Jan 03, 2006
Posts: 11
|
Posted:
Wed Jan 04, 2006 3:48 am |
  |
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. |
|
|
   |
 |
ethana
Sergeant


Joined: Dec 26, 2005
Posts: 81
|
Posted:
Wed Jan 04, 2006 6:57 am |
  |
I'm no help on this last question. |
|
|
   |
 |
SkunX
Nuke Soldier


Joined: Jan 03, 2006
Posts: 11
|
Posted:
Thu Jan 05, 2006 9:38 am |
  |
And maybe I should open new topic about that...
Thank you ppl  |
|
|
   |
 |
|
|