solved Reusing id numbers in language files - confusing?

Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
I was looking to change one of the strings on my profile page from "Latest Videos" to "Latest Uploaded Videos" because JR makes a difference between uploaded videos and videos from Vimeo and YouTube.

I searched on "Latest," got two results, and updated the one that did not have a modifier, and, as can be seen in the top image of the composite screenshot, three different labels on my profile page were modified.

It turns out that the one I need to update was Videos with an ID of 23. Of course, figuring out which one to select was a matter of chance without looking closely at the template code (ahhh, but which template?

Several things occur to me:

  • Having one label appear in multiple places could be a source of confusion as this makes it necessary to check every page in case the language ID# is used on more than one page.
  • Not having context in the search results (not knowing what page/s an ID is used on) makes for a lot more work than is absolutely necessary.
Neither of these is a huge priority, but when time permits, having unique language IDs along with knowing which page(s) or module(s) each language ID is used on/in could be helpful to those of us who'd prefer not taking a fine tooth comb to the templates to figure out which is which.

updated by @claygordon: 03/26/15 03:03:46AM
michael
@michael
10 years ago
7,778 posts
thechocolatelife:
.....at the template code (ahhh, but which template?....
/skins/(your skin)/profile_index.tpl

Thats the file for the top of a profile. From there you look for the section you want to alter, by searching for "Latest". There might be an included file that handles that section, something like:
{jrCore_include template="profile_index_music.tpl"}

So go look in that for any code thats not shown.
/skins/(your skin)/profile_index_music.tpl
In there you will see:
<h3>{jrCore_lang skin=$_conf.jrCore_active_skin id="20" default="Latest"} {jrCore_lang skin=$_conf.jrCore_active_skin id="14" default="Music"}   .........

That tells you that its the skins language file #20 that is responsible for the first word.

If its ONLY that location you want to change it and you're not translating your site into other languages, then go ahead and use the text right there and skip the language system all together.
<h3>Latest Uploaded {jrCore_lang skin=$_conf.jrCore_active_skin id="14" default="Music"}   .........

updated by @michael: 01/15/15 12:01:34AM

Tags