We’re with you. JoomShaper is offering a 20% Discount on all plans due to the impact of COVID-19.

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

create a language string for a preset

Featured Lock Resolved Issue
I'd like to give my presets names, instead of Preset 1-8.
In options.xml I changed preset 7 to
<preset name="spring" label="spring" default="#123456">
That works fine, in the template preset 7 is now spring.

How do I add a language string, so it works in different languages?

<preset name="spring" label="HELIX_ULTIMATE_PRESET_7" default="#123456"> doesn't work. Not between () and not with ' ' .

8 Answers

Paul Frankowski - Staff

More than a month ago #Permalink
Hi,
indeed it doesn't work probably because this is not a field or option field.

josflachs

More than a month ago #Permalink
Yes, so much is obvious. So I cannot translate presets?

Sifat - Staff

More than a month ago #Permalink
Hi,
If i may...
Please follow the following steps:
1) Goto this location and replace the attached file there.
location: plugins/system/helixultimate/fields/helixpresets.php

2) Please make sure you've added language string to this language file.
location: language/en-GB/en-GB.tpl_shaper_helixultimate.ini
http://prntscr.com/m23j0t

HELIX_ULTIMATE_PRESET_7="Preset 7"


let me know if that helps.

-Best Regards

Attachments (1)

  • helixpresets.zip 1.4 KB

Paul Frankowski - Staff

More than a month ago #Permalink
Thanks, but as you noticed it request code customization.
So you have to repeat it after each update :(

josflachs

More than a month ago #Permalink
So far, no luck. This is what I did:
a- install presets as per instruction in plugins/system/helixulitmate
1- open /site/language/en-GB/en-GB_template.ini
2- Go to line 254 ;Presets
3- Add HELIX_ULTIMATE_PRESET_7="Spring"
4- Reload

no changes.

Sifat - Staff

More than a month ago #Permalink
So far, no luck.

I think you didn't replaced the attached file in the given location plugins/system/helixultimate/fields/helixpresets.php

Please replace the attached file there and let me know.

-Thanks

Attachments (1)

  • helixpresets.zip 1.4 KB

josflachs

More than a month ago #Permalink
Actually, I did. I opened the zip, installed in site/plugins/system//helixultimate/fields/. It's there.

Sifat - Staff

More than a month ago #Permalink
Please check this screencast https://files.fm/u/arq7ak5y


There are no replies made for this post yet.
Be one of the first to reply to this post!

125

Templates

331826

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us