Author Topic: Transname  (Read 5238 times)

0 Members and 1 Guest are viewing this topic.

mgpw4me@yahoo.com

  • Guest
Transname
« on: March 29, 2010, 06:16:03 am »
I've written a script (PHP) to convert UTF to English characters.  I've successfully stored this in the TRANSNAME (person) field, but my skin will not display the translated name.  Direct database access displays the translated name.  In EDIT mode, the translated name is  displayed in the edit box.

          <column width="135" halign="right">
           <fieldlabel field="transname" autosize="true"><font><bold/><color>$000000</color></font></fieldlabel>
          </column>
          <column>
           <transname autosize="true"><font><color>$0000ff</color><bold/></font></transname>
          </column>

Using translated names as a sort criteria (for my language) is significantly better for me in finding people.  I suppose this is true for everyone (for those that care), in whatever language they are most comfortable with.  My script is set up similar to the LNG files, so it could be used in a similar fashion (I think PHP is about a 7mb download...my script is about 140 lines).

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: Transname
« Reply #1 on: March 29, 2010, 05:46:17 pm »
Most probably your translated name is equal to name, so it is hidden as there is no need to see two equal names in the information card...
Gentlemen, you can’t fight in here! This is the War Room!

mgpw4me@yahoo.com

  • Guest
Re: Transname
« Reply #2 on: March 29, 2010, 07:54:57 pm »
I should have checked the most obvious solution first.  Thanks. 

BTW, the transname sort works perfectly for what I wanted. Carré Otis is sorted as if the 'é' were an 'e' (which it IS in the transname).

 

anything