Allowing JText in field label names

More
11 years 1 month ago #34324 by bobthebob01
Hi,

It would be nice if we could use JText to load field labels.
That way it would solve the need of a third party for the translation since FC has everything to map/group translated items.

And for example, in the case of a pagination. You could then use JText as well for the "Previous button label", "Next button label" and "back to category". And what i mean is for example: "Next Job Entry". Which then need to be translated to other languages.

You are just left to do a simple language content override in the language manager since labels are "constant". You just need to translate according to the amount of active language on the site.

Unless there is a way, then, please let me know.

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #34325 by ggppdk
What about a parameter in

fields, content types, categories, etc,

that will be a multiple checkbox parameter

that will allow selecting which properties to filter via JText

e.g. for fields it will be label and description, thus you can enable this when needed anywhere


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #34364 by bobthebob01
Yes, that would be even better.
I was thinking more lazy (and without much knowledge of PHP obviously) to have something like:
Code:
<?php if ($field->label) : ?> <span class="label field_<?php echo $field->name; ?>"> <?php echo JText::_( '$field->label' );?> </span> <?php endif; ?>

That way, you can just use the value entered by the label as JTEXT if one need.

Again, my syntax is probably wrong. but that gives an idea. Although your solution is more elaborated and more functional.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.284 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline