Youjoomla Support Forums (http://www.youjoomla.com/joomla_support/index.php)
-   YJSG Template Framework Plugin (http://www.youjoomla.com/joomla_support/forumdisplay.php?f=269)
-   -   New feature: add lang shortcut (http://www.youjoomla.com/joomla_support/showthread.php?t=13005)

openweb 09-03-2014 11:00 AM

New feature: add lang shortcut
 
Add lang shortcut so we can use a joomla languague var in modules, articles, etc.

Ex: {lang COM_CONTENT_READ_MORE}

Are you sure your are posting in product assigned forum?: Yes

What is your CMS version?: Joomla 3.x

MySQL Version: 5.x

PHP version: 5.x

Link to installation: private

Have you edited any files? If yes tell us which ones.: N/A

Is this personal or client website?: Personal

neo 09-03-2014 11:10 AM

those should not be in the plugin
they can be added to a template lang file only if template demo has been modified to feature different lang string from default joomla component content.

otherwise you would need to add custom ones.

what we might do is this instead


YJSG_PLAY ="Play"
YJSG_READ_MORE="Read more"


and there are few more that are already in
Screenshot by Lightshot

openweb 09-03-2014 11:28 AM

I think we are talking about different things

I'm talking about a shortcode.
{lang XXXXXXX}
that will be replaced with JText::__('XXXXXXX') by the framework.

We have this in a custom plugin made by us and is very effective.
It saves us a lot of work when building multilangue sites.

Image if you want to make a article/module that is multilangue, you could use that shortcodes (with custom languague overrides if needed) and create only a multilangue article/module :) instead of making 1 article/module for each languague you have in the site.

It's a feature suggestion not a bug fix


All times are GMT -4. The time now is 08:44 PM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.