Laguage Key will not accept String with 2 HTML codes back to back

I have been trying to edit my _PRIVACY Language Key.  I can find, access and change the String text for English language, but when I click save, it does not save.  My browser says that the information is being sent, but I do not get a saved message.  I have figured out that I can save my changes only if there are no HTML codes back to back. Meaning there must be some kind of actual character in between th "><" of adjacent codes. 

For instance the following will save and dispplay:

Testing HTML Code<br>Does This work?

also this:

Testing HTML Code<br>Does This work?<br>No Problem

even this:

Testing HTML Code<br>.<br>Does This work?No Problem

But this does not work:

Testing HTML Code<br><br>Does This work?

Nor does this:

Testing HTML Code
<br>
<br>
Does This work?No

Nor does this:

Testing HTML Code<br> <br>Does This work?

I obviously don't want to put random charachters in between each of my HTML codes, but I have tried a few other things that haven't work for me including:

Entering my text directly into the data base via phpMyAdmin (Although it will show up in the Language Key text field, my Privacy page will not display the changes even if I clear all caches and even if I manually delete the files in my cache folders on my server.)

Re entering the original text (Will not save)

Creating a new Language Key

Any combination of spaces or line spaces makes any difference.

I even tried entering an "invisible" character (Ctrl+0160) in between the HTML codes. (No change)

I also tried using Firefox. (No difference)

I saw a solution offered by houstonlively for saving code in HTML blocks but I don't think it will directly apply in this situation since I don't think the language ket editor uses the tinyMCE editor functions. But, I am hoping for a similar solution.

Any suggestions?

Even smart people do stupid things.
Quote · 2 Nov 2012

I have a dumb question; Why would you put <br><br> anyway?

What does <br> do for you in HTML

Line break?

Testing HTML Code<br>Does This work?Line Break is what that is for and proper use is <br /> and only one..

<p><br />Line Break</p>

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 2 Nov 2012

You can enter lots of HTML code in language keys..

Like on say a HTML box names "Weather Alerts"

for the language key i.e. _weather_alerts you would enter in the box

<a href="http://www.wunderground.com/maps/" target="_parent">Weather Alerts</a> 

then of course re compile the language file and your box "Title" will have the name but also be a linked to other page.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 2 Nov 2012

 

I have a dumb question; Why would you put <br><br> anyway?

What does <br> do for you in HTML

Line break?

Testing HTML Code<br>Does This work?Line Break is what that is for and proper use is <br /> and only one..

<p><br />Line Break</p>

 Yes, what <br> does for me is line break. It will also do that in a language key. So does <br/> as well as <br />.  What <br><br> is supposed to do is two line breaks.  This should not be a problem and there is nothing unusual about using two line breaks in a row.  I tried <br /><br /> with the same result.  The language key simply will not save.

I know that I can use HTML, the problem I am having is that I do not seem to be able to use two consecutive tags.

For instance, I just entered the example you posted

<p><br />Line Break</p>

and it still will not save. 

Even smart people do stupid things.
Quote · 3 Nov 2012

 

You can enter lots of HTML code in language keys..

Like on say a HTML box names "Weather Alerts"

for the language key i.e. _weather_alerts you would enter in the box

<a href="http://www.wunderground.com/maps/" target="_parent">Weather Alerts</a> 

then of course re compile the language file and your box "Title" will have the name but also be a linked to other page.

Thank you newton27. Although I still am not able to enter and save the code I want via the manage language enterface, the thing I was missing was recompiling.  I wasn't aware that this was my problem since saving a simple message in  the language key (even with HTML) showed up immediately on my site.

Even smart people do stupid things.
Quote · 3 Nov 2012

PROBLEM SOLVED.  Here is how it worked for me.  Enter the changes I want (as much HTML as I can dream up) directly into my data base in the sys_localization_strings table.  Then compile Languages in the Manage Languages area of settings in my Admin panel.

Even smart people do stupid things.
Quote · 3 Nov 2012

No... problem not solved.... only bypassed.  As  far as I know, you are the first one to ever experience this problem.  There has to be a reason.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 3 Nov 2012

you have 2 lang keys with same names. check your database.

so much to do....
Quote · 3 Nov 2012

That is interesting.  I saw a few other posts about people having trouble editing the Privacy and About Us pages. I thought I was having a similar issue.

I checked my database. I have _Privacy and _PRIVACY but not two identical Lang Keys.  Also, I have the same issue if I create an entirely new Lang Key with a unique name.

I am interested in the root cause and the solution.  I don't want this to be a stability issue for my site.

If you have any other ideas or suggestions, let me know.

Thanks

Even smart people do stupid things.
Quote · 3 Nov 2012

I think you have to install firebug firefox extension or use chrome "Inspect element" to check the ajax response when you click save button.

so much to do....
Quote · 3 Nov 2012

I installed firebug for firefox, but I'm sorry to admit that I don't know how to read the results.  Now the cat's out of the bag!

Even smart people do stupid things.
Quote · 8 Nov 2012

I have been able to look at the Ajax Response, but it is a very large file and I am not sophisticated enough to know what specifically I am looking for.

I may have caused the problem by editing some of the php files using Notepad.  I did the same thing with a recent mod that I got from deano92964  He suggested I try it with WordPad and it worked fine.  He recommended I use a better editor.  I got Notepad++.

Is there a file that saving Language Keys relies on that I may have messed up by using NotePad?

Or can you tell me what to look for in the Ajax Response that may point me in the right direction.

Thank you everyone for your help and suggestions on this.

Even smart people do stupid things.
Quote · 11 Nov 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.