Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
For peace of mind i need to ask the question as its been so long. . .

7.5.9 has Language file changes.

I will be upgrading from 7.58 to 7.59
I have made lots of changes to my language files making them more local to me.

When i do the upgrade and it updates the language files what is the process ?

Will it overwrite any existing language changes i have made ?
Will it ignore any language changes ive made ?
And any i don't have does it just add them ?

I always back them up prior to an update but hold my breath in case my hard work is rubbed out.

How does the Process work updating the language files via the update wizard.


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jun 2006
Posts: 16,289
Likes: 115
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,289
Likes: 115
The upgrader just checks for new/changed strings and replaces them for you (unless you select the "i will update my lang files myself" option).

I'd back up what you already have, just in case.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
So if the string is Modified its not updated ?

And

If it does not exist (New) its created ?


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jun 2006
Posts: 16,289
Likes: 115
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,289
Likes: 115
I believe the upgrader simply looks for "updated" or "new" as far as what to do with strings. If it's marked as "updated" it'll try to update the field, "new" it'll insert the field.



I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
"install/upgrade.php" looks within the "LANGUAGE_CHANGES.txt" file for "CHANGED", "NEW", "REMOVED" line items.
There is also "DELETED", for removing the whole language file -- very rare.

Looking at this single line within LANGUAGE_CHANGES.txt, just for example:
VERSION-7.5.9:CHANGED:FILE-addpost.php:KEY-$ubbt_lang['POST_ICON']:VALUE-"Post Icon";

CHANGED - Changed Language Strings
1. The upgrade file will look at the version: VERSION-7.5.9
2. It will take the COMMAND of: CHANGED
3. It will look in this FILE: addpost.php
4. For this KEY: $ubbt_lang['POST_ICON']
5. And will rename whatever VALUE is currently there, to this: "Post Icon"

NEW - New Language Strings
If COMMAND = "NEW", the line will be added to the end of the language FILE

REMOVED - Removed Language Strings
If COMMAND = "REMOVED", then it the FILE will be searched for that KEY and will remove just that line.

DELETED - Remove Language Files
This will delete the whole language file. It cleans up files that are no longer used. Its very rare that this option is ever used, but it does get used.


Within the upgrade process, there are two button options given when you reach the language upgrade steps.
option 1 - "Update my language files"
this will automatically do everything for you. If you have custom modifications within your language files, its recommended to update them yourself, and choose option 2

option 2 - "I have updated my language files by hand"
This will bypass the language file updater, allowing you to use a program such as, "BeyondCompare" to compare and manually update your current language files with the new ones from the /languages/english/ directory.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Thanks guys clear Now smile


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Forum Privacy Policy
by ECNet - 02/26/2024 11:58 AM
Who's Online Now
2 members (Nightcrawler, Ruben), 322 guests, and 160 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)