Translate Custom Fields (Description:)

JonJagd

Joined: 2003-08-02
Posts: 10
Posted: Sun, 2003-08-17 09:23

Hi,

I've translated most of what I need at this time. However there is a field which I just can't find. It's the Description: field that you can see in the Configure Custom Fields. I tried to change it there, but if I use the danish word for Description the field and the content of that field don't show up when you view the album. I've also tried to look the Description: up in most of the code but I can't find it. Where is it?? :-?

Jon

 
dbcm

Joined: 2003-08-17
Posts: 8
Posted: Sun, 2003-08-17 21:29

the custom fields are custom, you just changed the default costum fields to be added to the new albums.

you must edit all your albums and change the custom field name hitting the "custom fields" link on each album

hope i helped you

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Mon, 2003-08-18 10:30

Jon,

Custom fields are free strings chosen by the admin. You can have any word you want. As these are not translated, the program has no way of realising that "Description" and "signalement" (wild use of translation software) are the same field.

The idea is you chose the names of the custom fields in your chosen language.

. . . . however, you could try this quick hack to get the field translated on the view_photo page.

edit view_photo.php, find print "<tr><td valign=top align=right><b>$field:<b></td><td>". and change it to print "<tr><td valign=top align=right><b><?php echo _($field) ?>:<b></td><td>".

Note: **** UNTESTED ******

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2003-08-29 13:26

Hi Jon,

you have a danish translation for 1.4 ?

Can you please contact me via email ?
There are other danish volunteers...
Maybe you can work in a team ?

note to joan suggestion:
_($field) works fine but the content of $field has to be added manually to .po file and rebuild corresponding .mo

Jens

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Fri, 2003-08-29 16:58
Tim_j wrote:
note to joan suggestion:
_($field) works fine but the content of $field has to be added manually to .po file and rebuild corresponding .mo

He was quite specific: he wants to translate "Description" which should already be translated into most languages.

But more generally, you are right.