Support Forums

Language File

This is a discussion on Language File within the Technical Support forums, part of the Technical Support Forums category; A question about the Language files. With css, if there are 2 identical selectors, it is the last one in ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 08-18-2009, 09:54 AM   #1
Customer
 
Join Date: Feb 2009
Location: Hong Kong
Posts: 30
Rep Power: 8
skekum is on a distinguished road
Default Language File

A question about the Language files.

With css, if there are 2 identical selectors, it is the last one in the file that is rendered onto the page. Is this the same with the entries in the language files?

eg: I have changed a few of entries in the language file, and each time I upgrade, I need to go through and use a file comparison application to merge the changes. I thought if I could just add the list of my changes at the end of the file, it will use my version instead of the one further up the list.

eg: The installed language file has this:
PHP Code:
define('LANG_PLEASE_LOGIN_FAVORITES''Login to save favorites'); 
but the spelling is incorrect for my part of world. If i change it to:
PHP Code:
define('LANG_PLEASE_LOGIN_FAVORITES''Login to save favourites'); 
but place it at the very end of the language.php file, will it use mine or the original?

This could save a fair bit of time.

Thanks
Glenn
__________________
68 Classifieds Developer v4.1.10

Template - Fluid-Ocean
Modules - adpack, debug, freecap, image_upload, listingfilter, maintenance, markitup, payment_providers, quick_search, statistics, tc_jcarousel, tc_site_map, template_switcher, templatezones.

http://www.themarketplace.com.hk
skekum is offline  
Old 08-18-2009, 11:31 AM   #2
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,058
Rep Power: 61
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Actually unless I'm mistaken, I believe that having duplicate entries will cause an error unlike in a CSS file. I ran into this myself while developing a module with a separate language file.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Old 08-18-2009, 11:32 AM   #3
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

No it wouldn't work the same because the language file uses php define. It will throw some sort of error with the same thing defined twice.

What I think the easiest option for you would be to just duplicate the english.php and name it differently. For example english-custom.php

Then during upgrades your changes will not get overwritten.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with language file Ghost Technical Support 13 05-18-2009 11:03 AM
Spanish language file available? GregorH Pre Sales Questions 7 02-06-2009 11:08 AM
German language file pat01 Pre Sales Questions 4 12-09-2008 09:37 AM
German Frontend Language file Eric Barnes Modules / Plugins / Modifications 0 09-19-2008 05:12 PM


All times are GMT -4. The time now is 10:05 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0