Thread Locked This thread is locked - replies are not allowed.


This question is answered.


Permlink Replies: 8 - Pages: 1 - Last Post: 30 Mar 23, 22:20 Last Post By: JoeSchmoe5543
JoeSchmoe5543

Posts: 70
Registered: 22-Aug-2022
Is there a way to overwrite texts.properties at the project level?
Posted: 26 Mar 23, 01:24
 
So I learned how to overwrite prompts in text.properties ( https://jalbum.net/forum/thread.jspa?threadID=58911&tstart=0 )

Problem with this approach is - when the skin is updated all my changes will be lost.

Is there a way to overwrite texts.properties at the project level? This way changes will still be in effect after the skin is updated.
JeffTucker

Posts: 8,364
Registered: 31-Jan-2006
Re: Is there a way to overwrite texts.properties at the project level?
Posted: 26 Mar 23, 01:42   in response to: JoeSchmoe5543 in response to: JoeSchmoe5543
Correct
JoeSchmoe5543 wrote:
Is there a way to overwrite texts.properties at the project level?

No.

And this is one of the reasons why, in my skins, I don't make use of the texts.properties files. They're a pain in the butt to edit (you're sending users off into a sometimes bewildering world of field definitions), and skin updates wipe out your changes.

My skins provide project settings to define the text strings that appear in the album. They get saved with the project, and will survive skin updates. And if you want the text in the album to be in Urdu, you can simply enter that text. You don't have to create another version of the skin files.
Laza

Posts: 1,530
Registered: 6-Sep-2005
Re: Is there a way to overwrite texts.properties at the project level?
Posted: 26 Mar 23, 09:10   in response to: JoeSchmoe5543 in response to: JoeSchmoe5543
 
Which prompt you'd like to overwrite? For those fields that users often like to customize, I used to offer a text entry through the user interface.
JoeSchmoe5543

Posts: 70
Registered: 22-Aug-2022
Re: Is there a way to overwrite texts.properties at the project level?
Posted: 26 Mar 23, 17:45   in response to: Laza in response to: Laza
 
I want to overwrite "Write Feedback" button label, see attached. There seem to be no UI for this under the Tiger/Sectons/Feedback dialog.

To give you more context: existing Paypal integration doesn't work for what I want to do. I intend to re-purpose the Feedback functionality for the user to submit order request that will be reviewed and fulfilled manually. So the button will say something like "Submit order request"

As I mentioned in another post, I already know how to do this. But since this change will be discarded any time skin is updated I suggest a new feature similar to "Album Settings/Advanced/User variables" - give us ability to overwrite any variable from texts.properties.

This can be a different tab on UI. You wouldn't have to create a separate UI for each text.properies item - users would only add these they want to override. I hope this makes sense.

Edited by: JoeSchmoe5543 on 26 Mar 2023, 11:45
Laza

Posts: 1,530
Registered: 6-Sep-2005
Re: Is there a way to overwrite texts.properties at the project level?
Posted: 27 Mar 23, 11:01   in response to: JoeSchmoe5543 in response to: JoeSchmoe5543
Helpful
Yes, that could be implemented, but today text.properties is handled by jAlbum. Perhaps adding some way in jAlbum of overwriting some values could work.

And what about adding an extra user interface input for this button
JoeSchmoe5543

Posts: 70
Registered: 22-Aug-2022
Re: Is there a way to overwrite texts.properties at the project level?
Posted: 27 Mar 23, 14:22   in response to: Laza in response to: Laza
 
Sure, having an additional UI element on feedback tab would be useful. But everyone's needs are different. Personally, I will also overwrite a few other things. Adding dedicated UI for each and every item in text.properties is not feasible. This is why something like "User Variables" tab would be useful - you only need to implement it once and users can redefine any number of properties there. Plus you already have a foundation for UI for that.

Edited by: JoeSchmoe5543 on 27 Mar 2023, 08:23
Laza

Posts: 1,530
Registered: 6-Sep-2005
Re: Is there a way to overwrite texts.properties at the project level?
Posted: 27 Mar 23, 19:48   in response to: JoeSchmoe5543 in response to: JoeSchmoe5543
Helpful
Okay, I implemented your idea for the next release.
JoeSchmoe5543

Posts: 70
Registered: 22-Aug-2022
Re: Is there a way to overwrite texts.properties at the project level?
Posted: 27 Mar 23, 19:53   in response to: Laza in response to: Laza
 
Thank you, this is AWESOME!
JoeSchmoe5543

Posts: 70
Registered: 22-Aug-2022
Re: Is there a way to overwrite texts.properties at the project level?
Posted: 30 Mar 23, 22:20   in response to: Laza in response to: Laza
 
Laza, you are *THE BEST*! Thanks for implementing the features I suggested!
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums