Javascript.RU

Создать новую тему Ответ
 
Опции темы Искать в теме
  #1 (permalink)  
Старый 22.01.2011, 08:51
Новичок на форуме
Отправить личное сообщение для coolbola Посмотреть профиль Найти все сообщения от coolbola
 
Регистрация: 22.01.2011
Сообщений: 1

Проблемы с xml
Здравствуйте,

У меня возникла проблема следующего вида, использую скрипт чата рулетки в ней имеется функция выбора языка, языки находятся в файле langConfig.xml и имеют следующий вид:

Код:
    <language    langId="English"
                btnStart="Connect"
                btnStop="Leave"
                btnNext="Find / Next"
                cbAutoFindNext="Auto find"
                txtiam="I am:"
                rbGirl="Girl"
                rbGuy="Guy"
                txtChatWith="Chat with:"
                rbSexBoth="Anyone"
                rbSexFemale="Girls"
                rbSexMale="Guys"
                txtVolume="Volume:"
                txtMicrophone="Microphone:"
                btnPreview="Preview"
                txtAudCapture="Audio capture:"
                btnSend="Send"
                btnClear="Clear"
                txtPower="Powered by"
                lblPartner="Partner"
                lblYou="You"

                txtVideoCapture="Video capture:"

                statusText1="No microphone available."
                status1="No microphone available."
                status2="No camera available."
                status3="Welcome to "
                status4="First, please select whether you're a guy or a girl, and who would you like to chat with."
                status5="Then hit &lt;font color='#00afe2'&gt;&lt;b&gt;Connect&lt;/b&gt;&lt;/font&gt;."

                status7="You are now entering "
                status8="... Please be patient..."
                status9="&lt;font color='#666666'&gt;Connecting to server... This might take a few seconds...&lt;/font&gt;"

                status11="Successfully connected. Enjoy!"
                status12="Your partner has &lt;font color='#00afe2'&gt;&lt;b&gt;disconnected&lt;/b&gt;&lt;/font&gt;."

                status14="Hit &lt;font color='#00afe2'&gt;&lt;b&gt;Find / Next&lt;/b&gt;&lt;/font&gt; to find a new random chat partner."

                status18="Hit &lt;font color='#00afe2'&gt;&lt;b&gt;Find / Next&lt;/b&gt;&lt;/font&gt; to find a random chat partner."
                status19="If you want the app to automatically keep looking for partners, select the &lt;font color='#00afe2'&gt;&lt;b&gt;Auto find&lt;/b&gt;&lt;/font&gt; checkbox."
                status20="&lt;font color='#666666'&gt;Gender changed.&lt;/font&gt;"

                status22="Users online: &lt;b&gt;&lt;/b&gt;"
                status23="Seems there's no one available."
                status24="You might want to enable &lt;b&gt;Auto find&lt;/b&gt; and click &lt;font color='#00afe2'&gt;&lt;b&gt;Find / Next&lt;/b&gt;&lt;/font&gt; again."
                status25="Found someone! Trying to connect..."
                status26="&lt;font color='#666666'&gt;This might take up to 5 seconds, so please be patient...&lt;/font&gt;"
                status27="We couldn't find anybody."
                status28="&lt;font color='#666666'&gt;You're currently looking for &lt;font color='#00afe2'&gt;&lt;b&gt;girls only&lt;/b&gt;&lt;/font&gt;. Maybe selecting &lt;font color='#00afe2'&gt;&lt;b&gt;Chat with Anyone&lt;/b&gt;&lt;/font&gt; helps.&lt;/font&gt;"
                status29="&lt;font color='#666666'&gt;You're currently looking for &lt;font color='#00afe2'&gt;&lt;b&gt;guys only&lt;/b&gt;&lt;/font&gt;. Maybe selecting &lt;font color='#00afe2'&gt;&lt;b&gt;Chat with Anyone&lt;/b&gt;&lt;/font&gt; helps.&lt;/font&gt;"
                status30="We've switched &lt;font color='#00afe2'&gt;&lt;b&gt;Auto find&lt;/b&gt;&lt;/font&gt; off for you."
                status31="Hit &lt;font color='#00afe2'&gt;&lt;b&gt;Find / Next&lt;/b&gt;&lt;/font&gt; again to find a random chat partner."
                status32="Could not connect to the service. The extended error message given was:."
                status33="Please refresh the page to start over."
                status34="&lt;font color='#00afe2'&gt;&lt;b&gt;Partner:&lt;/b&gt;&lt;/font&gt; "
                status35="Unfortunately, your partner wasn't a &lt;b&gt;girl&lt;/b&gt;. We &lt;font color='#00afe2'&gt;&lt;b&gt;disconnected&lt;/b&gt;&lt;/font&gt; for you."
                status36="Unfortunately, your partner wasn't a &lt;b&gt;guy&lt;/b&gt;. We &lt;font color='#00afe2'&gt;&lt;b&gt;disconnected&lt;/b&gt;&lt;/font&gt; for you."
                status37="&lt;font color='#00afe2'&gt;&lt;b&gt;Connected!&lt;/b&gt;&lt;/font&gt; Enjoy your conversation!"
                status38="At any time, simply click &lt;font color='#00afe2'&gt;&lt;b&gt;Find / Next&lt;/b&gt;&lt;/font&gt; to get a new partner."
                status39="All partners are currently busy. Hit &lt;font color='#00afe2'&gt;&lt;b&gt;Find / Next&lt;/b&gt;&lt;/font&gt; again, or check &lt;font color='#00afe2'&gt;&lt;b&gt;Auto find&lt;/b&gt;&lt;/font&gt;."
                status40="You &lt;font color='#00afe2'&gt;&lt;b&gt;disconnected&lt;/b&gt;&lt;/font&gt; your partner. Want a new one? Hit &lt;font color='#00afe2'&gt;&lt;b&gt;Find / Next&lt;/b&gt;&lt;/font&gt;!"
                status41="&lt;font color='#00afe2'&gt;&lt;b&gt;Auto find&lt;/b&gt;&lt;/font&gt; is active. You can uncheck it anytime, to stop searching for a partner."
                status42="&lt;font color='#666666'&gt;Trying to find someone to chat with...&lt;/font&gt;"
                status43="Couldn't find anybody in time."
                status44="You might want to enable &lt;font color='#00afe2'&gt;&lt;b&gt;Auto find&lt;/b&gt;&lt;/font&gt; and click &lt;font color='#00afe2'&gt;&lt;b&gt;Find / Next&lt;/b&gt;&lt;/font&gt; again."
                status45="Connection timed out."
                status46="You might want to enable &lt;font color='#00afe2'&gt;&lt;b&gt;Auto find&lt;/b&gt;&lt;/font&gt; and click &lt;font color='#00afe2'&gt;&lt;b&gt;Find / Next&lt;/b&gt;&lt;/font&gt; again."
                status47="&lt;font color='#00afe2'&gt;&lt;b&gt;Partner:&lt;/b&gt;&lt;/font&gt; "
                status48="You are now &lt;font color='#00afe2'&gt;&lt;b&gt;Connected!&lt;/b&gt;&lt;/font&gt; Enjoy your conversation!"
                status49="At any time, simply click &lt;font color='#00afe2'&gt;&lt;b&gt;Find / Next&lt;/b&gt;&lt;/font&gt; to get a new partner."
                status50="You &lt;font color='#00afe2'&gt;&lt;b&gt;Disconnected&lt;/b&gt;&lt;/font&gt; from the &lt;b&gt;"
                status51="&lt;/b&gt; server."
                status52="Click &lt;font color='#00afe2'&gt;&lt;b&gt;Connect&lt;/b&gt;&lt;/font&gt; in the upper left corner to return."
                status53="You're a girl."
                status54="You're a guy."
                status55="You wish to chat only with girls."
                status56="You wish to chat only with guys."
                status57="&lt;b&gt;You:&lt;/b&gt; "
                status58="You wish to chat with anyone."

                lblCcCallState1="Service is not available"
                lblCcCallState2="Service ready"
                lblCcCallState3="Connection established"
                lblCcCallState4="Connecting..."

                taChat1="Partner:"
            />
Языки разбиты таким образом, надо что бы при выборе языка на странице сайта тоже текст менялся.

Буду очень признтелен за помощь с xml ранее дела не имел поэтому не получается.
Ответить с цитированием
Ответ



Опции темы Искать в теме
Искать в теме:

Расширенный поиск


Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Помогите с парсингом XML Verhal Общие вопросы Javascript 2 12.06.2010 22:25
Как удалить из памяти весь XML документ? EisBerg Events/DOM/Window 1 03.04.2010 14:45
Изменение текста в XML (не удаленный, но править нельзя) Qwe2Qwe Общие вопросы Javascript 3 28.02.2010 12:44
Не получается загрузить xml из php Alekson jQuery 2 08.07.2009 09:33
глюк форума Gvozd Сайт Javascript.ru 11 18.03.2009 14:37