#1 2020-12-01 18:20:03

jclifford
Member
2019-01-06
41

A small irritation

When I display an individual photo I have set my installation to display underneath it the IPTC fields Author, Created on (=date taken) and Keywords on separate lines.

Piwigo normally shows each of these three lines centred (left to right), but if there are a lot of keywords the first word in each line gets pushed to the left , the Keywords overflow onto as many lines as they need (good) but the "on" part of "Created on" gets a line to itself with nothing else on it (unsightly and mystifying).

The obvious cures would be to link "Created" and "on" with an underscore symbol instead of a space or not  to use the superfluous word "on" at all.

I am happy to make this correction myself if someone could tell me which file contains the text "Created on".  I have tried a Windows search through the installed files with no result.

    Piwigo 2.10.2 Check for upgrade
    Operating system: Linux
    PHP: 7.2.34 (Show info) [2020-12-01 11:59:34]
    MySQL: 10.3.22-MariaDB-cll-lve [2020-12-01 17:59:34]
    Graphics Library: ImageMagick 7.0.10-10


Piwigo URL: http://

Offline

 

#2 2020-12-02 01:35:54

erAck
Only trying to help
2015-09-06
2196

Re: A small irritation

Your Windows search is broken, "Created on" appears in a lot of files; however, relevant are the translated language files and what is displayed depends on the language the browser requests. Then again, if a language does not contain a translation for that term the source's "Created on" is displayed. So you can try to change the right hand term in language/en_UK/common.lang.php

$lang['Created on'] = "Created on";
to
$lang['Created on'] = "Created_on";

and see if that works for you. If your browser requests en_US instead you may still see the "Created on" (not sure if there is some fallback to en_UK for that case because an en_US translation does not exist), but if you change that in all source places (.php and .tpl theme templates) you'll also have to change it accordingly for the left hand term in all language files, otherwise it wouldn't be found and translations would display the then changed "Created_on" source string.

Also note that translations may (and do) use more than one word, so think twice whether you really want to undergo that hassle..

And of course you'll have to redo the change after any upgrade, which overwrites files.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2020-12-02 08:00:02

nicolas
Former Piwigo Team
2004-12-30
1233

Re: A small irritation

What a strange way to fix your "problem". You'd better try to solve it by using word-wrap. You can try it by using you're browser inspector and adding the property on the "Created on" to see if it solved the problem.

Offline

 

#4 2020-12-02 16:57:04

jclifford
Member
2019-01-06
41

Re: A small irritation

erAck

Thank you - that is very helpful and has done the trick. My site is using en_GB but I presume that some settings are inherited from en_UK. I only have one administrator (me) and guest viewers so I do not need to worry about other languages.

Nicolas

1. I did not mention any problem

2. adding a style setting is more typing than just removing one character and may need finding the correct CSS file as well as the appropriate  language file and the exact syntax for the setting

3. I would still have to check and possibly re-do the changes after installling updates

Offline

 

#5 2020-12-02 20:33:04

erAck
Only trying to help
2015-09-06
2196

Re: A small irritation

jclifford wrote:

My site is using en_GB but I presume that some settings are inherited from en_UK. I only have one administrator (me) and guest viewers so I do not need to worry about other languages.

Well, guest viewers can visit with any other browser language..

1. I did not mention any problem

The label being split on two lines was the problem, no?


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact